[Laszlo-dev] how should this be handled for as3 compatibility?
Donald Anderson
dda at ddanderson.com
Tue Mar 25 04:58:20 PDT 2008
Is there a reason it can't be
public static var capabilities:* = {...}
in both cases?
On Mar 24, 2008, at 11:42 PM, Henry Minsky wrote:
> In LzView, there is this declaration
>
> var capabilities = LzSprite.prototype.capabilities;
>
> In swf9, I have "capabilities' declared as a static class var
>
> public static var capabilities:* = { ...}
>
> So I would reference it as LzSprite.capabilities.
>
> In swf and dhtml kernels, LzSprite is defined as a javascript object
> with properties stuck on it's
> prototype:
> LzSprite.prototype.capabilities = {....}
>
> How should I reconcile these two different mechanism to get this
> value? I am currently doing this
> in LzView:
> if ($swf9) {
> var capabilities = LzSprite.capabilities;
> } else
> var capabilities = LzSprite.prototype.capabilities;
> }
>
>
>
>
> So what is the best way to
>
> --
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com
>
--
Don Anderson
Java/C/C++, Berkeley DB, systems consultant
voice: 617-547-7881
email: dda at ddanderson.com
www: http://www.ddanderson.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20080325/8c27b413/attachment-0001.html
More information about the Laszlo-dev
mailing list