Search Results

Search found 1 results on 1 pages for 'unsouled'.

Page 1/1 | 1 

  • Some question of object property name in Actionscript3.

    - by unsouled
    A.as package { public class A { public static var someObject:Object = { (B.SOME_CONST): { value: 10 } }; } } B.as package { public class B { public static const SOME_CONST:String = "someStringConst"; } } And this is test code. var obj:Object = A.someObject; trace(obj.hasOwnProperty(B.SOME_CONST)); trace(obj.hasOwnProperty("someStringConst")); trace(obj.hasOwnProperty("SOME_CONST")); I expected that result will be true, true, false but real result is false, false, true. Why?

    Read the article

1