Two classes of HTTPService in Flex

Why are there two different classes of HTTPService in Flex? this as well as this

And the second inherits the first. Why can't there be one class uniting two?

+5
source share
4 answers

One of the objects (the first link you sent) is the HTTPService object itself.

The second object that wraps the HTTPService object and provides it with additional functionality for the <mxml /> tag.

The two probably have not been merged because you do not necessarily need to implement the IMXMLObject and IMXMLSupport interfaces every time you need an HTTService object.

+4
source

mx.rpc.http.mxml.HTTPService concurrency, .

Edit:

- concurrency , , ( , ). concurrency mxml.HTTPService, rpc.

+2

URLLoader . MXML HTTPService .

// ActionScript Style
private function myService():void {
   var service:HTTPService = new HTTPService();
...service.parameters = value;...
   service.send();
}

< !-- MXML Style -- >
< mx:HTTPService >
...< parameters >...
< /mx:HTTPService >
+1

mx.rpc.http ActionScript. HTTPService mx.rpc.http.mxml. , .

: MXML showBusyCursor, , / HTTPService, concurrency, .

concurrency HTTPService, ActionScript, ActionScript HTTPService .

: Adobe Flex 3 -

0

All Articles