Why are there two different HTTPService classes in Flex? this
and this
And the second one inherits the first one.
Why couldn't there be a single class combining the two?
Best Answer
One of the objects (the first link you posted) is the HTTPService Object itself.
The second is the object that wraps the HTTPService object and gives it the additional functionality for the <mxml /> tag.
The two probably weren't combined because you don't necessarily need the implementation of the IMXMLObject and IMXMLSupport interfaces every time you need an HTTService object.
Then replaced the destination adapter to my adapter.
I can now use the following URL in the config.xml and anything in square brackets will be replaced by the Query string:
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.
Best Answer
One of the objects (the first link you posted) is the HTTPService Object itself.
The second is the object that wraps the HTTPService object and gives it the additional functionality for the <mxml /> tag.
The two probably weren't combined because you don't necessarily need the implementation of the IMXMLObject and IMXMLSupport interfaces every time you need an HTTService object.