flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: flexjs eat json tilesets
Date Wed, 24 Feb 2016 06:37:10 GMT


On 2/23/16, 9:35 PM, "lizhi" <sliz@qq.com> wrote:

>the flexjs just 0.6 beta.
>if the 0.7 have this function is good.
>it is just give my idea.
>thanks your hard work

It is unlikely I will have time to figure out how to do code-flow analysis
any time soon, but maybe someone else will.

BTW, did you try using bracket syntax and/or string constants?

var json:Object = JSON.parse("{\"abcdefg\":1212121}");
alert(json['abcdefg']);

Or

const ABCDEFG:String = "abcdefg";
var json:Object = JSON.parse("{\"abcdefg\":1212121}");
alert(json[ABCDEFG]);

The latter will help you catch misspellings of the property name.

-Alex



Mime
View raw message