jan_flanders

Untitled

Aug 30th, 2012
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package;
  2. import flash.display.DisplayObject;
  3. import flash.display.MovieClip;
  4. import flash.display.Sprite;
  5. import flash.Lib;
  6. /**
  7.  * ...
  8.  * @author Jan J. Flanders
  9.  */
  10. class Main extends MovieClip
  11. {
  12.     public function new()
  13.     {
  14.         super();
  15.         test(new MovieClip());
  16.         test(new Sprite());
  17.     }
  18.     function test(d:DisplayObject):Void
  19.     {
  20.         trace(d);
  21.     }
  22.     public static function main()
  23.     {
  24.         Lib.current.addChild(new Main());
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment