开发者

Externalize app version info

I want my app's preloader to display version/build info that I have in an XML file. Obviously, the preloader can't pick it up because it waits for XML file to load. Is there another approach that I can use to externalize my version/build info and ensure it's in my app early?

Any tips are helpful and very apprecia开发者_如何转开发ted.

Thanks!


I typically use compiler constants for this data, as it's available at build time, and can be easily baked into the app.

-define+=CONFIG::VERSION "1.0.1-a"

private static const version:String = CONFIG::VERSION;


<s:Label text="{version}" />
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜