Here I have a movie clip named wheel_mc which I created on the stage.It have 22 movie clips inside it and each movieclip has instance name assigned at the stage in the format slice1,slice2…….slice22.
Now if I have to find these instance name by actionscript ,all I have to do is add following codes
for(var i:int= 0;i;wheel_mc.numChildren;i++)
dispObjs = wheel_mc.getChildAt(i);
if(dispObjs is DisplayObjectContainer)
//here it returns the name assigned on stage that falls under the above point
insName = dispObjs.name;
//result slice1 ……..
Hope it helps.