I am using the Loader to load an external swf into my program. Inside the external swf, I need to be able to access the Loader instance that just loaded it.
Does the loader add the external swf to itself before any code inside the swf gets executed?
When is it safe to access the loader via the following code?
var target:DisplayObject = this;
while(!(target is Loader) && DisplayObject(target).parent != null){
target = DisplayObject(target).parent;
}
Thanks.