Hi fellas, I have a swf that's loaded inside another one. The container swf 
calls the transitionIn function in the loaded swf. In AS2, I used to put this 
in the loaded swf:

if(this == _root){
        transitionIn();
}

That way I could test my swf in the flash IDE independently from the parent 
swf. If the swf was loaded in the container, this wouldn't be eqal to _root and 
the transitionIn would not be called.

I'm trying to do the same thing in AS3. Every displayObject container has a 
root property but, it stops at the swf level. So root of the loaded swf is 
equal to the actual swf, not the container. So how can I know if the swf is 
tested by itself in the IDE or it is loaded by the container?
_______________________________________________
[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

Reply via email to