This content has been marked as final. Show 2 replies
Flex provides two HTTPService classes one in the mx.rpc.http.HTTPService and the other is mx.rpc.http.mxml.HTTPService. mx.rpc.http.mxml.HTTPService is a subclass of mx.rpc.http.HTTPService.
Check out the Flex language reference for differences between these two classes.
As your code is using both the HTTPService classes, there is ambiguity.
There are two solutions to your problem. If you want to use the mx.rpc.http.HTTPService then change your code as below.
private var gateway:HTTPService = new HTTPService();
private var gateway:mx.rpc.http.HTTPService = new mx.rpc.http.HTTPService();
Just use mx.rpc.http.mxml.HTTPService in both places.
Hope this helps.
Yes thank you! i was able to impress.
i used the 1st method as the 2nd method gave me a "can not resolve <mx.rpc.http.mxml.HTTPService> to a component implementation." error.
I have this inside the mx.rpc.http.mxml.HTTPService tags...
<mx.rpc.http.mxml.HTTPService id="login_user" result="checkLogin(event)" method="POST"
url=" http://localhost/plum_tree/php/login.php" useProxy="false">