Skip to main content
Participant
May 7, 2014
Question

GetURL won't load

  • May 7, 2014
  • 1 reply
  • 116 views

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

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
May 7, 2014

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.