jan_flanders

Untitled

Aug 11th, 2012
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. interface IFoo
  2.  {
  3.     var testvar:Int;
  4.     function testfunc():Void;
  5.  }
  6.  class Foo implements IFoo
  7.  {
  8.     public var testvar:Int;
  9.     public function new(){}
  10.     public function testfunc():Void
  11.     {
  12.     }
  13.  }
  14. class Main extends MovieClip
  15. {
  16.     public function new()
  17.     {
  18.         super();
  19.         var f = new Foo();
  20.     }
  21.    
  22.     public static function main()
  23.     {
  24.         Lib.current.addChild(new Main());
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment