2012-10-09 1 views

Répondre

0

je suis venu avec la solution suivante:

 private function init():void{ 
      area.addEventListener(ScrollEvent.SCROLL,onScroll) 
      timer = new Timer(1000); 
      timer.addEventListener(TimerEvent.TIMER, startFun); 
      timer.start(); 
     } 

     private function onScroll(e:Event):void{ 
      timer.stop()  
      colored=false 
      timer.start() 
     } 


     private function startFun(e:Event):void{ 


      while(!colored){ 

        area.text="Bye Bye cruel world !" 
        colored=true; 
      } 
     } 
Questions connexes