On 2/23/16, 1:07 AM, "lizhi" <s...@qq.com> wrote:
>thanks . >but,if the app have a lot a lot of json.i must code all the class? Well, no, but having class definitions for your data is one of the benefits of Flex/FlexJS and should save you time by making fewer mistakes over time. It might be interesting to see if you can build a utility program that generates the class definitions from JSON output. But you can also not use ADVANCED_OPTIMIZATIONS or use other tricks to deal with renaming like in this post [1]. And there might be a way to cheat where you create a class definition with every property name but not the exact structure of your data and use that for some dummy variable in the app. HTH, -Alex [1] http://stackoverflow.com/questions/7823811/prevent-google-closure-compiler- from-renaming-settings-objects