Packagesekati.net
Classpublic class NetBase

Static class wrapping various Network utilities.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined by
  
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
Public Constants
 ConstantDefined by
  EXECUTING_DOMAIN : String = ""
[static] Determines the domain from which this SWF is executing.
NetBase
Property detail
isLocalhostproperty
isLocalhost:Boolean  [read-only]

Check if the SWF is executing on localhost.

Implementation
    public static function get isLocalhost():Boolean
isOnlineproperty 
isOnline:Boolean  [read-only]

Check if we are online the swf is being executed over http.

Implementation
    public static function get isOnline():Boolean
locationproperty 
location:String  [read-only]

Get the full browser href location.

Implementation
    public static function get location():String
pathproperty 
path:String  [read-only]

return the URL Path swf is running under

Implementation
    public static function get path():String

Example
    // run from http://localhost/myProject/site.swf
    trace(NetBase.path); // returns "http://localhost/myProject/"
    

Constructor detail
NetBase()constructor
public function NetBase()

NetBase Static Constructor

Method detail
getURL()method
public static function getURL(url:String, window:String = "_self"):void

A retro getURL wrapper for AS3.

Parameters
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

Parameters
url:String — (String)

Returns
String — String

Example
   var ckUrl = NetBase.noCacheUrl( "http://localhost/page.html" ); // returns: http://localhost/page.html?030533
    

Constant detail
EXECUTING_DOMAINconstant
public static const EXECUTING_DOMAIN:String = ""

Determines the domain from which this SWF is executing.