1 Reply Latest reply on Jan 19, 2012 4:39 AM by Ned Murphy

    Instance name changing at runtime




      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:


      for(var i:uint=0;i<numChildren;i++){

                          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?