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
[EMAIL PROTECTED]
--
Don Anderson
Java/C/C++, Berkeley DB, systems consultant
voice: 617-547-7881
email: [EMAIL PROTECTED]
www: http://www.ddanderson.com