Class com.sekati.net.NetBase

Description

static class wrapping various Network utilities

Method Index

getPath(), isOnline(), noCacheUrl()

Method Detail

getPath

static public function getPath():String

return the URL Path swf is running under

Return

String

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

isOnline

static public function isOnline():Boolean

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

Return

Boolean

noCacheUrl

static public function noCacheUrl(url:String):String

add a cache killing querystring to url

Parameters

url(String)

Return

String

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