|
It’s because at the point that you do: myXML =
http.lastResult.toString(); … the result of the service has not
yet been received. You need to create an event listener to let you know when
the service has completed it’s call. The event listener will then trigger a
result function that you create, and in that function is where you should get
the result (myXML =
http.lastResult.toString(); ) and do whatever you want with it. -Mac From: Hello Group, I am new here and seeking help from you. I have created a function in my Flex application and would
like to use the HTTPService object from retreiving XML data from my webservice
(based on PHP). All the examples I have seen on the Adobe website use same
approach (that I don't like) of binding the object to some controls. What I trying to achieve is: Create an HTTP object, instruct
that object to retreive a web XML string, store that string locally in a
variable. Using the code I have provided below, the application gives
an error saying that the object is not yet created (null). And if I watch the
task bar after the error message (in Firefox), I see that the flash application
is accessing the webXML. What might be wrong? private function SampleFunction():void myXML =
http.lastResult.toString(); // Do something with XML
-- 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
|
- [flexcoders] Re: Can we move Flexcode... flashorbman
- [flexcoders] Re: Can we move Flexcode... Jason
- Re: [flexcoders] Re: Can we move ... Brendan Meutzner
- [flexcoders] Moderation + we're not moving to a ne... Steven Webster
- [flexcoders] Re: Moderation + we're not movin... busitech
- [flexcoders] Re: Moderation + we're not m... Tim Hoff
- Re: [flexcoders] Re: Moderation + we're n... Scott Langeberg
- Re: [flexcoders] Re: Moderation + we'... hank williams
- Re: [flexcoders] Re: Moderation + we'... Tariq Ahmed
- [flexcoders] Using HTTPService in... NZEYIMANA Emery Fabrice
- RE: [flexcoders] Using HTTPS... Mac Martine
- Re: [flexcoders] Using HTTPS... NZEYIMANA Emery Fabrice
- [flexcoders] Re: Using HTTPS... Geoffrey Williams
- [flexcoders] Re: Using HTTPS... NZEYIMANA Emery Fabrice
- Re: [flexcoders] Re: Using H... Michael Schmalle
- [flexcoders] Re: Using HTTPS... NZEYIMANA Emery Fabrice
- Re: [flexcoders] Using HTTPS... NZEYIMANA Emery Fabrice
- RE: [flexcoders] Using HTTPS... Peter Farland
- Re: [flexcoders] Using HTTPS... Michael Schmalle
- Re: [flexcoders] Using HTTPS... John Michael Resler
- Re: [flexcoders] Re: Moderation +... Brendan Meutzner

