Class com.sekati.services.Flink

Description

Easily add deeplinking into flash sites

 Usage:
 // Add Flink.js to your swf html page:
 <script language="javascript" src="js/Flink.js"></script>
 
 // enable swLiveConnect:
 fscommand ("swLiveConnect", "true");
 

Method Index

getLink(), getRef(), jsAllow(), jsCall(), setLink()

Method Detail

getLink

static public function getLink():String

get deeplink anchor

Return

String

 Usage:
 var currentDeeplink:String = Flink.getLink();
 

setLink

static public function setLink(pgTitle:String, anchor:String):Void

set deeplink anchor and page title

Parameters

pgTitle(String)
anchor(String)

Return

String

 Flink.setLink("Section Three","section_three");
 

getRef

static public function getRef():String

wrapper to Flink JavaScript lib - returns the entire current url

Return

String

jsCall

static public function jsCall():Void

call a javascript function from actionscript

Return

Void

  Flink.jsCall ("helloWorld", "boy", "jason");
 

jsAllow

static public function jsAllow(fnName:String, instance:Object, fn:Function):Void

allow javascript access to call an actionscript function

Parameters

fnName(String) as function name as string
instance(Object) scope of fnName
fn(Function) as function name

Return

Void

 Usage:
 Flink.jsAllow ("helloFlash", this, helloFlash);