Return to Snippet

Revision: 43478
at March 25, 2011 19:33 by mecsekikrisztian


Updated Code
// _ AS2 _

on (release){
	getURL(_root.clickTag,"_blank")
}
________________________________________________________________________________________


// _ AS3 _

buttonMode=true;
addEventListener(MouseEvent.CLICK,vOpen);
function vOpen(event:MouseEvent):void {
	navigateToURL(new URLRequest(findVar("clicktag")), findVar("clicktarget"));
}
function findVar(vari:String):String {
	for (var key:String in root.loaderInfo.parameters)
		if(key.toLowerCase()== vari)
			return root.loaderInfo.parameters[key];
	return "";
}

Revision: 43477
at March 24, 2011 20:34 by mecsekikrisztian


Initial Code
on (release){
	getURL(_root.clickTag,"_blank")
}

Initial URL

                                

Initial Description

                                

Initial Title
AS2 / AS3 clickTag for banners

Initial Tags

                                

Initial Language
ActionScript