there is multple things you have to check, 1) if it exists 2) if it is in the display list of the movieclip you want. check this:
And don’t use names of movie clips to find stuff, that’s AS2 crap
Reference the movie clip itself.
Don’t you just love it when noobs turn up on the forums answering months-old threads in their first post
That’s the second one in a week 
what is this doing
if(mc){ //on stage } else { // not on stage.. }
i am using this, and works fine
well, this works for me…
try{ trace(getChildIndex(DisplayObject)); }catch(e:Error){ //create it }
Thanks,
well, this works for me…try{ trace(getChildIndex(DisplayObject)); }catch(e:Error){ //create it }
Thanks,
Wow .. deja vu all over again
this is wrong, if(mc){ //on stage } else { // not on stage.. }
this is right getChildIndex(DisplayObject);
this is wrong, if(mc){ //on stage } else { // not on stage.. } this is right getChildIndex(DisplayObject);
Now we have people coming back and correcting their own 6-month old mistake (which was already irrelevant and 6 months late when first posted)! This is starting to feel like the Twilight Zone 
this is wrong, if(mc){ //on stage } else { // not on stage.. } this is right getChildIndex(DisplayObject);Now we have people coming back and correcting their own 6-month old mistake (which was already irrelevant and 6 months late when first posted)! This is starting to feel like the Twilight Zone![]()
answer came 6 monts later and the main is not changed, there are people coming from google, they deserve answer.
thanks a lot guys, very useful tip!
