hello…
If you have a group of movie clips stored in an array and the movie cliops are placed on the stage randomly, and use your arrow keys to move a box on top of one of the movie clips - how can you “tell” Flash which movie clip you clicked on?
Right now I’ve got a for loop going which loops through the array that has stored the movie clip instances, presumably the hitTestObject would eventually get a hit…But this doesn’t work, especially inside an event handler where when I press the right arrow on my keyboard.
if (event.keyCode == Keyboard.RIGHT) {
box.x += 5;
for (var i:uint = 0; i <= numberOfClips; i++) {
if (box.hitTestObject(arrayOfMovieClips*);
arrayOfMovieClips*.x += 5;
}
}
}