/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import flash.external.ExternalInterface; import flash.net.URLVariables; public function readVariable(variable:String):String { var fullurl:String = ExternalInterface.call("window.location.href.toString"); fullurl ? null : fullurl = ""; var variablesUrl:URLVariables = new URLVariables(fullurl.split("?")[1]); variablesUrl[variable] ? null : variablesUrl[variable] = ""; return variablesUrl[variable]; }