Packagegs.util
Classpublic class NavigateToURL

The NavigateToURL class is a utility to alter how all url navigation is done.

You can also set this class to send an ExternalInterface call to a function in javascript to open the page instead.



Public Properties
 PropertyDefined by
  externalInterfaceOpenMethod : String
[static] If this is set, and the mode is external interface, the call will be made to this method, with the url parameter and window.
NavigateToURL
  fallbackToNavToURL : Boolean
[static] Whether or not to fallback to using navigateToURL in the event that ExternalInterface isn't available.
NavigateToURL
  mode : String
[static] Controls how to send the request for a page navigation.
NavigateToURL
  window : String = "_blank"
[static] The window parameter for navigateToURL calls.
NavigateToURL
Public Methods
 MethodDefined by
  
navToURL(url:URLRequest, windw:String = "_blank"):void
[static] Navigate to a url.
NavigateToURL
Public Constants
 ConstantDefined by
  externalInterface : String = "externalInterface"
[static] Mode for using external interface for page navigations.
NavigateToURL
  flashNavigateToURL : String = "navigateToURL"
[static] Mode for using navigateToURL for page navigations.
NavigateToURL
Property detail
externalInterfaceOpenMethodproperty
public static var externalInterfaceOpenMethod:String

If this is set, and the mode is external interface, the call will be made to this method, with the url parameter and window.

fallbackToNavToURLproperty 
public static var fallbackToNavToURL:Boolean

Whether or not to fallback to using navigateToURL in the event that ExternalInterface isn't available.

modeproperty 
public static var mode:String

Controls how to send the request for a page navigation.

windowproperty 
public static var window:String = "_blank"

The window parameter for navigateToURL calls.

Method detail
navToURL()method
public static function navToURL(url:URLRequest, windw:String = "_blank"):void

Navigate to a url.

Parameters
url:URLRequest — The url request.
 
windw:String (default = "_blank") — The window mode.
Constant detail
externalInterfaceconstant
public static const externalInterface:String = "externalInterface"

Mode for using external interface for page navigations.

flashNavigateToURLconstant 
public static const flashNavigateToURL:String = "navigateToURL"

Mode for using navigateToURL for page navigations.