In Flex 2, you need to use
'event.lastResult'
- Cathy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robin Burrer Sent: Thursday, August 17, 2006 9:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] newbie question - HTTP servive
Hi
there, I started playing
around with the HTTP service. However I can’t figure out how to access the
actual “result” (in my case an xml string) If I set up a listener
it just returns me an object in the “onResult” event. Why can’t I access my xml
string through “event.result”? How do I access
it?
public function
onResult(event:
{
// why doesn’t this work?
trace (event.result.
// this works but it’s very ugly
//trace(event.
}
Thanks Robin //
the code of my sample application <?xml
version="1.0"?> <!-- Simple example
to demonstrate the HTTPService tag. --> <mx:Application
xmlns:mx="http://www.adobe.
creationComplete="go();">
<mx:Script>
<![CDATA[
import mx.rpc.events.
public function go():void
{
feedRequest.
feedRequest.
}
public function
onResult(event:
{
trace (event.result.
//trace(event.
}
]]>
</mx:Script>
<mx:HTTPService
id="feedRequest"
url=""
useProxy="false" />
</mx:Application>
-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
__,_._,___ |
- RE: [flexcoders] newbie question - HTTP servive Cathy Reilly
- RE: [flexcoders] newbie question - HTTP servive Tracy Spratt
- RE: [flexcoders] newbie question - HTTP servive Tracy Spratt