I have defined a HTTPService in my Services.mxml as follows:
<mx:HTTPService id="myQuery" url="http://www.mysite.com/index.xml"
<mx:request>
<username>{username}</username>
</mx:request>
</mx:HTTPService>
I then try to invoke the service from a different MXML file:
var query = ServiceLocator.getInstance().getService("myQuery");
query.send();
The problem is that 'username' is bound to myQuery before myQuery
has been given a value by the app, so running the query fails. Is
there a way to force a 'rebind' of the query once it has been
returned from the ServiceLocator and before invoking query.send()?
(this is not necessarily Cairngorm's fault, but I need a workaround
when for when services are defined in MXML)
Thanks, John
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/