Ive created a wrapper for all my Web Services that will first call an
xml file to load the config settings.
Basically I have a property on the class to set the config filename.
Then when that gets set I do this...
var loader:URLLoader = new URLLoader();
loader.addEventListener("complete", this.handleConfigLoad);
loader.load(new URLRequest(urlname));
Then the handleConfigLoad loads the values from the XML. It's pretty
simple to implement, and works great. The wrapper also works without
the config file, I can set all the properties alone. The main reason
I created it was to support a custom authentication peice on our SOAP
services.
--- In [email protected], "Grant Davies" <[EMAIL PROTECTED]> wrote:
>
> Is there a practice or class for runtime config of flex apps? I'd like
> to put all my HTTP service call urls in an xml file and then pull out
> whats needed, is there some practise or class that handles this or am
> inventing the wheel ?
>
> We have a prototype, runs local and on the server and don't have the
> bandwidth for cairngorm for this release.
>
> cheers
> Grant
>
>
> ...........................................
> > b l u e t u b e i n t e r a c t i v e.
> .: grant davies
> .: 404.428.6839 (c)
> .: 708-983-1577 (F)
> > [EMAIL PROTECTED]
> > http://www.bluetube.com/bti <http://www.bluetube.com/bti>
> > A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/>
>