If you are relying on a services-config.xml file, then this
must be provided
at compile time because the compiler uses it to generate
If you're not using <mx:DataService>, you can actually
avoid compiling against
a services-config.xml file. This is because for the other
as <mx:RemoteObject> or <mx:WebService
useProxy="true"> or <mx:HTTPService
useProxy="true">, the main thing the compiler does from
is to generate the code to instantiate the set of channels
that should be
used to contact a destination in LCDS.
Well... you can do that programmatically in ActionScript...
Just make sure you call this initialization code before you
make any service
requests. If you're proxied WebServices, be sure that you use
API instead of the MXML tag so that you can delay when
loadWSDL() is called
because you'll want to setup the channelSet first.
> Hi Alls,
> I would like to set my service's url in actionScript (I
don't want to
> use compiler option -services witch need to recompile
swf if you
> change service's url).
> I search for a long time on google but I found nothing,
> documentation isn't very clear.
> Thank for help!!!