Is there a standard equivalent to the Flex HTTPService class in Flash CS4?
Asked
Active
Viewed 1,647 times
2 Answers
2
You can take advantage of classes from Flex in Flash CS4, by adding a reference to the flex libraries as explain in this blog. The example uses the Web Service component, but you can use the HttpService similarly.

Mircea Grelus
- 2,905
- 1
- 20
- 14
2
yes but you have to do it manually , you have to choice , urlloader combined with urlrequest for example :
var urlloader:URLLoader = new URLLoader();
urlloader.addEventListener(Event.COMPLETE , completeFunction );
urlloader.load(new URLRequest("http://......"));
function completeFunction(e:Event):void
{
// do what you want with the result
e.currentTarget.data
}
or just include the flex.swc in you lib folder with flash CS and use the HTTspervice

Jacklapott
- 65
- 1
- 7
-
Yes, but this new answer is a more thorough answer that adds helpful information (despite the sloppy writing). – ivanreese Feb 05 '13 at 01:04