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

NetServices.setDefaultGateway( ) Method > NetServices.setDefaultGateway( ) Meth...

Name

NetServices.setDefaultGateway( ) Method

Synopsis

NetServices.setDefaultGateway(url)

Arguments

url

A string containing the URL of a Flash Remoting gateway adapter.

Description

The setDefaultGateway( ) method is a way that you can define a URL for your NetConnection object but allow it to be overridden by a URL passed from the HTML page that houses your Flash movie. In this way, a URL can be set up in the movie for testing or deployment, but if the URL has to change at any time in the future, the URL can be passed to the Flash movie using the gatewayURL variable.

After setting up the default URL using this method, the createGatewayConnection( ) method can be called with no arguments to create a NetConnection object.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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