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

NetConnection.connect( ) Method > NetConnection.connect( ) Method

Name

NetConnection.connect( ) Method

Synopsis

                     myNetConnectionObject.connect(targetURL)

Arguments

targetURL

A URL of the Flash Remoting gateway that you wish to connect to. The URL can be prepended with an http:// or https:// protocol, but can also be used without any protocol, which defaults to http://.

Returns

true if the protocol is valid (http:// or https://), and false otherwise.

Description

The connect( ) method is used to connect to a Flash Remoting gateway. Using the connect( ) method does not require the inclusion of the NetServices.as file. The word connect is something of a misnomer; at no time during this call does the NetConnection object connect to the remote server. The actual connection takes place when a service function call is made.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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