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():Stringget deeplink anchor
String
Usage:
var currentDeeplink:String = Flink.getLink();
static public function setLink(pgTitle:String, anchor:String):Voidset deeplink anchor and page title
pgTitle | (String) |
anchor | (String) |
String
Flink.setLink("Section Three","section_three");
static public function getRef():Stringwrapper to Flink JavaScript lib - returns the entire current url
String
static public function jsCall():Voidcall a javascript function from actionscript
Void
Flink.jsCall ("helloWorld", "boy", "jason");
static public function jsAllow(fnName:String, instance:Object, fn:Function):Voidallow 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);