Test the parent to see if it equals the stage maybe?
if(this.parent == this.stage)
stage is only available after adding the DisplayObject to the display list
etc
On 6/19/07, Patrick Matte|BLITZ <[EMAIL PROTECTED]> wrote:
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
--
[ JPG ]
_______________________________________________
[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