I have a FLA in which I've added three movie clips, each with a unique name. I've set the MC name through the properties panel as well as giving the MC a name when converting it from a image to a MovieClip (by clicking F8).
When I run the swf and output the names of the children in the swf, I find that the name of one of the MovieClips changes, for example from myFirst_MC to instance8.
To output the MovieClip names I loop through all the children of the swf and output the name like this:
var display:DisplayObject = getChildAt(i);
trace( display.name );
Why does the instance name of a MC change? And how can I stop this from happening?
It sounds like you missed giving an instance name to one of the objects using the properties panel or you have something else on the stage that you don't realize is being counted as a child. The name you give when you use F8 is unrelated to the code side of the program.