views:

15

answers:

1

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 specific 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.

A: 

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.

aeby
No good for passing in sensitive data (eg passwords)
secoif