• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

2. Installing, Configuring, and Using Fl... > 2.5. Making a Remote Call

Making a Remote Call

Now that we have some preliminaries out of the way, it’s time to do some Remoting! The steps for a successful Flash Remoting call to a remote service are as follows:

  1. Include the NetServices.as library.

  2. Optionally, initialize variables to hold the URL of the gateway path and the name of the remote service.

  3. Create a connection object that initializes a path to the Flash Remoting gateway.

  4. Create a service object, which will be used to invoke remote services and dispatch results and error events.

  5. Create onResult( ) and/or onStatus( ) callback methods to handle the onResult and onStatus events. These can be contained in a responder object or on the current timeline.

  6. Call the remote service as a method of the service object. The Flash movie continues to execute while waiting for the response, so your code must not assume that the results are returned immediately.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint