jan_flanders

Untitled

Aug 11th, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. interface IFoo
  2.  {
  3.     var testvar:Int;
  4.  }
  5.  class Foo implements IFoo
  6.  {
  7.     public var testvar:Int;
  8.     public function new(){}
  9.  }
  10. class Main extends MovieClip
  11. {
  12.     public function new()
  13.     {
  14.         super();
  15.  
  16.         var f:IFoo = new Foo();
  17.         /*
  18.         8) [0x5D] findpropstrict multinames[17]  ->  Foo
  19.         9) [0x4A] constructprop multinames[17]  ->  Foo (arg_count = 0)
  20.         10) [0x80] coerce multinames[13]  ->  IFoo
  21.         11) [0xD5] setlocal1
  22.         */
  23.  
  24.         f.testvar;
  25.         /*
  26.         13) [0xD1] getlocal1
  27.         14) [0x66] getproperty multinames[14]  ->  testvar
  28.         */
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment