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");
static public function getLink():String
get deeplink anchor
String
Usage:
var currentDeeplink:String = Flink.getLink();
static public function setLink(pgTitle:String, anchor:String):Void
set deeplink anchor and page title
pgTitle | (String) |
anchor | (String) |
String
Flink.setLink("Section Three","section_three");
static public function getRef():String
wrapper to Flink JavaScript lib - returns the entire current url
String
static public function jsCall():Void
call a javascript function from actionscript
Void
Flink.jsCall ("helloWorld", "boy", "jason");
static public function jsAllow(fnName:String, instance:Object, fn:Function):Void
allow javascript access to call an actionscript function
fnName | (String) as function name as string |
instance | (Object) scope of fnName |
fn | (Function) as function name |
Void
Usage: Flink.jsAllow ("helloFlash", this, helloFlash);