Posted By

uglycom on 10/05/10


Tagged

timer


Versions (?)

works


 / Published in: ActionScript 3
 

  1. private function doRowHighlights():void {
  2.  
  3. for(var r:int = 0; r<_rows.length; r++){
  4.  
  5. var rh:Sprite = Sprite(Sprite(_rows[r]).getChildByName("highlight"));
  6.  
  7. doRowHighlight(rh,r);
  8.  
  9. }
  10. }
  11.  
  12. private function doRowHighlight(rh:Sprite, r:Number):void {
  13.  
  14. var d:Number = r*500;
  15. trace("doRowHighlight",r,d);
  16. var rt:Timer = new Timer(d, 1);
  17. rt.start();
  18. rt.addEventListener(TimerEvent.TIMER_COMPLETE, function(event:TimerEvent):void { Tweens.doRowHighlight(rh); });
  19. }

Report this snippet  

You need to login to post a comment.