Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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];
- }
Advertisement
Add Comment
Please, Sign In to add comment