[font=verdana, arial, helvetica][size=2][color=#4f5044]Hi,
I have been using a “Button” component in conjunction with some Movie clips in a simple script that should move all the movie clips to a predetermined _x position, having been filtered by an “instanceof MovieClip” condition
Problem is, for some reason MX2004 is reading the button component as a Movie Clip & moving it along with the others.
Here is the script.
[/color][/size][/font][indent]
mybuttonlist=new Object();
mybuttonlist.click=function()
{
for (i in _root){
if(_root* instanceof MovieClip){
_root*._x=50;
}
}
}
mybuttonlist// add listener etc.
[/indent][font=verdana, arial, helvetica][size=2][color=#4f5044]
Can anyone shed any light as to where I’m going wrong?[/color][/size][/font]