Hello again,
I’ve built an array of movieclips - all of them sitting static on the stage.
I’m trying to trigger the clips to play as they are hit by an invisible/alpha 0 bar which sweeps across the stage… kind of like a mexican wave?
I’m still a bit crappy with arrays - here’s my code:
Can somebody please tell me what I’m doing wrong?
var target_mc:Array = new Array();
for (var i:Number = 1; i <= 30; i++)
{
target_mc.push("b" + i);
}
onEnterFrame = function() {
if (trigger_mc.hitTest(target_mc*)) {
target_mc.gotoAndPlay(1);
}
}