In AS3, when I call MovieClip.gotoAndStop(), any symbol that are added to the 
stage are *not* immediately available to scripts after the call.  However, the 
numChildren *does* count the newly added symbols but getChildAtIndex() only 
returns null!

Worse, after the function stack is cleared and event are called, all the 
symbols on the frames in between dispatch consecutive “added” and “removed” 
events!

This is a *major* break from AS2 where I was used to doing this:

clip.gotoAndStop(“labelWhereFooLives”);
trace(clip.foo); //__level0.clip.foo

Now I get this:

clip.gotoAndStop(“labelWhereFooLives”);
trace(clip.foo); // null
trace(clip.numChildren); //1
trace(clip.getChildAtIndex(0)); //null --> whaaaat?

Trying to work around it is making my code terribly complex and crofty.  HELP!!

Max Kaufmann l Technical Artist
---------------------------------------------------------------------
2105 Sarah St  |  Pittsburgh, PA 15203 
O (412) 567-4606 W www.silvertreemedia.com
C (440) 915-8277 E [EMAIL PROTECTED]

 



_______________________________________________
Flashcoders@chattyfig.figleaf.com
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