What is the order of execution for the document class constructor. The
behavior seems inconsistent. For example, when I load my swf independently
calling this.loaderInfo.url in the constructor returns the correct url.
However, the same thing returns null if my swf is loaded by another swf.
Is it safe to do this or will it create a race condition when the swf is
loaded independently?
public function DocumentClassConstructor()
{
trace(this.loaderInfo.url); // url might be null
this.loaderInfo.addEventListener(Event.COMPLETE, init);
}
public function init()
{
// everything is ready, proceed
trace(this.loaderInfo.url); // always return the url
}
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders