jan_flanders

Untitled

Dec 12th, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Test extends flash.display.Sprite
  2. {
  3.     public function new()
  4.     {
  5.         super();
  6.         test();
  7.     }
  8.     public function test(p1:Int=13, p2:Float=0.5, p3:String="hello world", p4:Bool=true, p5:Bool=false):Void
  9.     {
  10.         trace(p1);
  11.         trace(p2);
  12.         trace(p3);
  13.         trace(p4);
  14.         trace(p5);
  15.     }
  16.     public static function main()
  17.     {
  18.         flash.Lib.current.addChild(new Test());
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment