|
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
{ var http:HTTPService; var myXML:String; http = new HTTPService(); http.url = ""http://www.domain.com/my_xml.php">http://www.domain.com/my_xml.php"; http.method="POST"; http.useProxy = false; http.showBusyCursor = true; http.resultFormat = "text"; http.send(); 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 Flexcoders t... Jason
- [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

