Skip to content

Instantly share code, notes, and snippets.

@dz0ny
Created January 31, 2011 12:58
Show Gist options
  • Select an option

  • Save dz0ny/803991 to your computer and use it in GitHub Desktop.

Select an option

Save dz0ny/803991 to your computer and use it in GitHub Desktop.
var rezervna_povezava:URLRequest = new URLRequest("http://www.domzamlade.si");
(inv_btn as SimpleButton).useHandCursor = true;
inv_btn.addEventListener(MouseEvent.CLICK,
function(){
if(root.loaderInfo.parameters.clickTAG != undefined ){
if (root.loaderInfo.parameters.clickTAG.substr(0, 5) == "http:"){
navigateToURL(root.loaderInfo.parameters.clickTAG));
}
else{
navigateToURL(rezervna_povezava);
}
}else {
navigateToURL(rezervna_povezava);
}
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment