Can someone kindly point out my lack of understanding here - so that I don't
need to use any globals I created some static getter and setter methods in a
class I call Const - for constants. Here's a short version, but enough to
illustrate with:
class Const {
static function get portfolioPath():String {
return "hardCoded path to my images folder";
}
}
Within my resources movie I say something like:
myLoader.loadClip(Const.portfolioPath + "imageName.jpg", picHolder);
This works great. But, when I load resources.swf into my navigation movie,
Const.portfolioPath is showing undefined. This has me baffled. I thought the
reference to Const.portfolioPath would be replaced with the "hardCoded path
to my images folder" when the resources.swf was compiled... Evidently it's
not though?
To get around this I created a portfolioPath timeline variable within
navigation and then reference it from resources using _root.portfolioPath,
but this isn't how I'd prefer to do it.
Thanks.
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