[Laszlo-dev] Problems with the 'in' operator in swf9

Philip Romanik promanik at laszlosystems.com
Tue Mar 11 12:16:25 PDT 2008


I am having problems with the 'in' operator in swf9. I ran a simple 
test using an arbitrary method in LFCNode:

   var n1 = new LFCNode ();
   trace ("test1: " + ('getExpectedAttribute' in n1));
   trace ("test2: " + ('getExpectedAttribute' in LFCNode));

   var n2 = new LzNode (null, null);
   trace ("test3: " + ('getExpectedAttribute' in n2));
   trace ("test4: " + ('getExpectedAttribute' in LzNode));


When I run this I get 'false' for each test. However, if I insert the 
word 'public' in front of 'getExpectedAttribute', I get

test1: true
test2: false
test3: true
test4: false

Shouldn't these tests produce 'true' in all cases?


Thanks!

Phil




More information about the Laszlo-dev mailing list