This is generally done in one of two ways. 1) Load a config file at startup that holds urls or url stubs and store them on your model. Have your ServiceLocator bind to values on model.
2) Pass a url stub into your app via FlashVars, store it on the model and then construct full urls from the stub. HTH, Ben --- In flexcoders@yahoogroups.com, "Nicholas Watson" <[EMAIL PROTECTED]> wrote: > > I new to Flex, so please excuse the newbie question. > > Within my ServiceLocator.mxml file, I have a listing of HTTPServices. > Each one of them has the URL hard coded in to the file. I would like > to make this a configurable setting, depending on which environment > the app is running off of (dev, testing, production). What is the best > way to accomplish this? > > Example of what I am doing: > > <!-- Login Service --> > <mx:HTTPService id="loginService" > url="http://localhost:8888/rrs/restLogin.htm" method="POST" > resultFormat="e4x" showBusyCursor="true"> > <mx:request> > <username></username> > <password></password> > </mx:request> > </mx:HTTPService> >