/* convert array objects into movieclip */
for (var i:uint = 0; i < buttonArray.length ; i++)
{
var remov = buttonArray[i];
var ins:MovieClip = MovieClip(mc.getChildByName(remov));
ins.gotoAndStop(1);
}
/* detecting objects inside container or movieclip */
for (var i:uint = 0; i < mc.numChildren; i++){
trace (i+'.\t name:' + mc.getChildAt(i).name +
'\t type:' + typeof (mc.getChildAt(i))+
'\t' + mc.getChildAt(i));
}
for (var i:uint = 0; i < buttonArray.length ; i++)
{
var remov = buttonArray[i];
var ins:MovieClip = MovieClip(mc.getChildByName(remov));
ins.gotoAndStop(1);
}
/* detecting objects inside container or movieclip */
for (var i:uint = 0; i < mc.numChildren; i++){
trace (i+'.\t name:' + mc.getChildAt(i).name +
'\t type:' + typeof (mc.getChildAt(i))+
'\t' + mc.getChildAt(i));
}
0 comments:
Post a Comment