Property | Defined by | ||
---|---|---|---|
isLocalhost : Boolean [static][read-only]
Check if the SWF is executing on localhost.
| NetBase | ||
isOnline : Boolean [static][read-only]
Check if we are online the swf is being executed over http.
| NetBase | ||
location : String [static][read-only]
Get the full browser href location.
| NetBase | ||
path : String [static][read-only]
return the URL Path swf is running under
| NetBase |
Method | Defined by | ||
---|---|---|---|
NetBase()
NetBase Static Constructor
| NetBase | ||
getURL(url:String, window:String = "_self"):void
[static]
A retro
getURL wrapper for AS3. | NetBase | ||
noCacheUrl(url:String):String
[static]
Add a cache killing querystring to url
| NetBase |
Constant | Defined by | ||
---|---|---|---|
EXECUTING_DOMAIN : String = "" [static]
Determines the domain from which this SWF is executing.
| NetBase |
isLocalhost | property |
isLocalhost:Boolean
[read-only]Check if the SWF is executing on localhost.
Implementation public static function get isLocalhost():Boolean
isOnline | property |
isOnline:Boolean
[read-only]Check if we are online the swf is being executed over http.
Implementation public static function get isOnline():Boolean
location | property |
location:String
[read-only]Get the full browser href location.
Implementation public static function get location():String
path | property |
path:String
[read-only]return the URL Path swf is running under
Implementation public static function get path():String
// run from http://localhost/myProject/site.swf trace(NetBase.path); // returns "http://localhost/myProject/"
NetBase | () | constructor |
public function NetBase()
NetBase Static Constructor
getURL | () | method |
public static function getURL(url:String, window:String = "_self"):void
A retro getURL
wrapper for AS3.
url:String — The URL to navigate to.
|
|
window:String (default = "_self ") — The window to open the URL in.
|
noCacheUrl | () | method |
public static function noCacheUrl(url:String):String
Add a cache killing querystring to url
Parametersurl:String — (String)
|
String — String
|
var ckUrl = NetBase.noCacheUrl( "http://localhost/page.html" ); // returns: http://localhost/page.html?030533
EXECUTING_DOMAIN | constant |
public static const EXECUTING_DOMAIN:String = ""
Determines the domain from which this SWF is executing.