Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

GetURL won't load

New Here ,
May 06, 2014 May 06, 2014

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

TOPICS
ActionScript
107
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 06, 2014 May 06, 2014
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines