It doesn't get replaced at compile time at all. It is called in runtime.
So if it's not there when it's called it will return undefined. You must
make sure that Const is loaded before attempting to access any of it's
setters/getters or methods.
<<
Called in runtime? I am not understanding something - I don't have to
include my .as class files along with my swf file when I publish. And how
would I make sure Const is loaded? My whole point of making static getter
and setter methods was so I didn't have to instantiate the class. Flash is
one of those apps that you can work with for years and then realize you
don't understand some basic thing...
Dave -
Adobe Community Expert
www.blurredistinction.com
www.macromedia.com/support/forums/team_macromedia/
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com