Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ������ ����� Main.as.
- ������� ������ � �� ������� ������� ������ � ����������, ������� �� �������� ��.
- */
- package
- {
- //������ �������� �������.
- import flash.display.Sprite;
- import flash.utils.Timer;
- import flash.events.TimerEvent;
- public class Main extends Sprite
- {
- //��������� �� �������.
- private var timer:Timer;
- //����������� �������� ������.
- public function Main()
- {
- //������� �������� ������ ������.
- timer = new Timer(50, 0);
- //�������� ������� ����� ���� �������.
- timer.addEventListener(TimerEvent.TIMER, InTimer);
- //��������� ������.
- timer.start();
- }
- //�����, ������ ���������� �� ���� �������.
- private function InTimer(e:TimerEvent):void
- {
- //������� ������.
- var c:Circle = new Circle(stage);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement