import ArrowTile; import ArrowTile2; import Arrowz; var timer:Number=0 var movieclips:Array = []; var song1:Array=[1000,2000,3000,5000,10000,15000,20000,25000,26000,27000]; var landingkeys:Array=[]; var totalscore:Number=0 var thing:KeyCaller=new KeyCaller(); var gogo:Boolean addChild(thing); for(var i:int=0; i<10; i++) { movieclips.push(new Arrowz()); movieclips[i].x=-67.8 movieclips[i].y=hitter.y movieclips[i].name="hi"+i; movieclips[i].identify=i addChild(movieclips[i]); landingkeys.push(new ArrowTile2(movieclips[i],thing, hitter, hitter.x, totalscore, 100, song1[i], gogo)); addChild(landingkeys[i]); } var arraylength:Number=movieclips.length-1 addEventListener(Event.ENTER_FRAME, onFrame); function onFrame(event:Event){ timer++ if (movieclips[arraylength].name=="hi9"){ gogo=true }else{ trace(movieclips[arraylength].name) } }