开发者

What's the best way to add custom configuration variables in Flex?

开发者 https://www.devze.com 2022-12-30 17:59 出处:网络
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\'

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.

0

精彩评论

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