public var crtItem = 0;
public var myArray = ["one", "two", "three"];
public function showPlay(){
var wholeTimer:Timer = new Timer(1000);
wholeTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onWholeComplete);
wholeTimer.start();
CircleFocus(myArray[crtItem]);
}
function onWholeComplete(event:TimerEvent):void{
CircleRemove(myArray[crtItem]);
crtItem++;
wholeTimer.stop();
if (crtItem < myArray.length)
showPlay();
}
|