jan_flanders

Untitled

Dec 12th, 2012
83
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.         var t = function test(p1:Int=13, p2:Float=0.5, p3:String="hello world", p4:Bool=true, p5:Bool=false):Void
  7.         {
  8.             trace(p1);
  9.             trace(p2);
  10.             trace(p3);
  11.             trace(p4);
  12.             trace(p5);
  13.         }
  14.         t();
  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