ABSTRACT

We can delete the <fx:Declarations> tag and its content. We create an instance variable of HTTPService as follows.

private var loginService:HTTPService = new HTTPService();

Although the name is the same, there are two HTTPService classes: the one used in the first example is from the package mx.rpc.http.mxml.HTTPService, whereas this is part of mx.rpc. http.HTTPService. The functionality is the same.