Copy link to clipboard
Copied
Hi,
I don't know much about Actionscript 3, but i'm simply doing a banner for a client and i'm not sure i'm doing my Geturl code right.
I used this :
import flash.events.MouseEvent;
import flash.net.URLRequest;
button_1.addEventListener(MouseEvent.CLICK,buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void{
var request:URLRequest=new URLRequest("http://www.google.com");
navigateToURL(request,"_blank");
}
But when I test my animations the link doesn't seem to work... Is it only because i'm not testing online or did I do this wrong ?
Thank you for your help I appreciate it
Copy link to clipboard
Copied
UNless I'm missing some detail the code looks fine. You should test using a browser to rule that out as a possible cause for the problem - it might be all you need to do.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now