Return to Snippet

Revision: 53197
at November 16, 2011 01:06 by hejaaa


Initial Code
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];
}

Initial URL

                                

Initial Description

                                

Initial Title
Load URL variable from HTML link

Initial Tags
url

Initial Language
ActionScript 3