Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package;
- import flash.display.DisplayObject;
- import flash.display.MovieClip;
- import flash.display.Sprite;
- import flash.Lib;
- /**
- * ...
- * @author Jan J. Flanders
- */
- class Main extends MovieClip
- {
- public function new()
- {
- super();
- test(new MovieClip());
- test(new Sprite());
- }
- function test(d:DisplayObject):Void
- {
- trace(d);
- }
- public static function main()
- {
- Lib.current.addChild(new Main());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment