Take a look at the HTTPService class.

 

http://livedocs.adobe.com/flex/2/langref/mx/rpc/http/HTTPService.html

 

I prefer to use the pure actionscript interface to it than using MXML -
especially if you have a lot of services on the server.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, May 10, 2007 1:55 PM
To: [email protected]
Subject: RE: [flexcoders] XMLHTTPRequest in Flex instead of Javascript

 

flash.net.URLLoader

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Jon Bradley
Sent: Thursday, May 10, 2007 1:24 PM
To: [email protected]
Subject: [flexcoders] XMLHTTPRequest in Flex instead of Javascript

So...

I've got a backend server running Apache Tomcat and I've got the 
ability through our CMS to dynamically create gateways, and use an 
AJAX API to get information from them.

I've never used AJAX and I'm pretty new to Flex, so the question is 
how can I make the same type of call that an XMLHTTPRequest is making 
in Javascript, but rather do it in Flex? I really have no care for 
Javascript ... and see no need to use it unless I absolutely have to. 
I'd rather keep all my communication within Flex/Flash.

Maybe I'm overlooking something pretty obvious, but any pointers 
would be appreciated.

thanks!

jon

 

Reply via email to