[Laszlo-dev] implementing addProperty on LzNode
P T Withington
ptw at pobox.com
Tue Jan 8 06:49:07 PST 2008
That's a good question. You would have to test if super will work.
My guess would be that it will not because I would think that only
'fixed' methods could participate in the class structure (i.e., that
the super method is computed at compile time).
Isn't this only needed because the tag compiler is not emitting class
declarations? I would hope that when the tag compiler emits class
declarations, it would declare all the methods.
On 2008-01-08, at 09:26 EST, Henry Minsky wrote:
> The (Laszlo) Class.addProperty method is used by LzNode to install
> methods dynamically.
> I've got it implemented just as
>
> function addProperty(key:*,val:*):void {
> this[key] = val;
> }
>
> in the LzNode swf9 development world right now. Is there anything
> else we need to when adding functions at runtime that refer to
> superclass methods (or "super()" )
> or will that "just work"?
>
> --
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com
More information about the Laszlo-dev
mailing list