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}" />
精彩评论