Advertisement
Guest User

Untitled

a guest
Dec 16th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. var tykacz:Timer = new Timer(1000); // parametry co 1000ms tykniecie
  2.  
  3. tykacz.addEventListener(TimerEvent.TIMER, obluga_tykniecia);
  4. tykacz.start();
  5.  
  6. function obluga_tykniecia(e:TimerEvent):void
  7. {
  8.  
  9. poleTekstowe1.text = String(tykacz.currentCount); //pole gdzie wyswietla sie zegar
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement