[flexcoders] Loading flex config file at runtime

2007-12-03 Thread letterpigeon
Hi all,
 
I'm working on deploying a flex app for the very first time.  It's a
standalone flex app, which talks to multiple java webapps using
openamf.  So in development, I just harded the url's of the
webapps/servlets.  What would the best way to load these information
at runtime (maybe from properties files, etc) so that depending on the
environment (dev, qa, prod), the flex app will communicate to the
correct java servers?  Thanks.
 
Ban



Re: [flexcoders] Loading flex config file at runtime

2007-12-03 Thread George
I use a configuration xml file to get all urls in the beginning of 
application ( preinitialize function). Also you could parse 
mx.core.Application.application.url to get current url of your own Flex 
application to make it more flexible.

George

letterpigeon wrote:
 Hi all,
  
 I'm working on deploying a flex app for the very first time.  It's a
 standalone flex app, which talks to multiple java webapps using
 openamf.  So in development, I just harded the url's of the
 webapps/servlets.  What would the best way to load these information
 at runtime (maybe from properties files, etc) so that depending on the
 environment (dev, qa, prod), the flex app will communicate to the
 correct java servers?  Thanks.
  
 Ban