[FONT=Courier New][SIZE=2]Hi,
I have five MCs on the stage. I drag them to create a hitTest but there is
something wrong with my code?
Any idea?
thanks
myArray=new Array(m1,m2,m3,m4,m5);
for(i=0; i<=myArray.length; i++){
myArray*.onPress=function(){
this.startDrag();
}
myArray*.onRelease=function(){
this.stopDrag();
}
if(_root["m"+i].hitTest(this))
{
_root.kutu.text="it is hitting";
}else{
_root.kutu.text="no hitting";
}
}
[/SIZE][/FONT]