We have to deploy a flex app through a series of development tiers. We are not using Blaze_DS or LCDS. My data/service urls are tier sp开发者_开发百科ecific and are currently embedded in AS files. We'll be building the project on each tier. I'd like to make them environment variables, but am not sure what the best way to do at compile/build.
Is there a compiler option to read in a custom-config.xml? or -myCustomVariable = value? or should we just setup the build to select a config.as file?
Any help or direction is very much appreciated.
If it's a web project you could pass the configuration variables using flashVars. This way you can pass your data/service urls directly to the the flash object in your HTML file.
精彩评论