Skip to main content
April 29, 2009
Question

Hyperlink only works in preview

  • April 29, 2009
  • 2 replies
  • 917 views

Hello. I'm reletively new to flash. I learned a few years ago on Actionscript 2 and I'm finding Actionscript 3 very confusing. I figured out (through much searching) how to write up a working (in theory) hyperlink script. When I open it up in preview mode, the link goes through (very slowly and doesn't come up in my default browser, but it works). When I try to work the link in Internet Explorer or Chrome (haven't tried firefox) nothing happens. Does anyone have a similar issue or can help?

Thanks,

Haraxius Stormfire

This topic has been closed for replies.

2 replies

April 29, 2009

My code is as follows:

btn4.addEventListener(MouseEvent.CLICK, navtoURL);

function navtoURL(e:MouseEvent):void{

navigateToURL(new URLRequest("http://www.google.com"), "_self");

}

Ned Murphy
Legend
April 29, 2009

Your code looks fine, so something else is likely causing the problem.

April 29, 2009

I also have a stop script on the same frame. I don't know if that could interfere. written as follows:

this.stop();

Hope I can figure this out lol

Inspiring
April 29, 2009

Copy and past your code into this forum and we'll see what seems to be the issue.