Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. /*
  2. ������ ����� Main.as.
  3.  
  4. ������� ������ � �� ������� ������� ������ � ����������, ������� �� �������� ��.
  5. */
  6.  
  7. package
  8. {
  9. //������ �������� �������.
  10. import flash.display.Sprite;
  11. import flash.utils.Timer;
  12. import flash.events.TimerEvent;
  13.  
  14. public class Main extends Sprite
  15. {
  16. //��������� �� �������.
  17. private var timer:Timer;
  18.  
  19. //����������� �������� ������.
  20. public function Main()
  21. {
  22. //������� �������� ������ ������.
  23. timer = new Timer(50, 0);
  24. //�������� ������� ����� ���� �������.
  25. timer.addEventListener(TimerEvent.TIMER, InTimer);
  26. //��������� ������.
  27. timer.start();
  28. }
  29.  
  30. //�����, ������ ���������� �� ���� �������.
  31. private function InTimer(e:TimerEvent):void
  32. {
  33. //������� ������.
  34. var c:Circle = new Circle(stage);
  35. }
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement