Skip navigation
Currently Being Moderated

navigateToURL doesn't work in .html

Aug 1, 2012 8:37 AM

Tags: #problem #flash #as3 #html #security #navigatetourl

Hi!

 

I have a button in my flash which leads to another .html page. Here's my as3 code :

 

formations.addEventListener(MouseEvent.CLICK, myBtnClicked);

function myBtnClicked(e:MouseEvent):void { 

navigateToURL(new URLRequest(www.thelink.com));

}

 

When I preview in flash, it works just fine. When I look at the .swf file alone, it works fine too. But when I open it in my .html file, nothing happens!

 

I looked in different forums to search for a possible solution : someone said to change all the allowScriptAccess parameters to "always" in the .html code, which I did and it still doesn't work. Another person said to change all the allowFullScreen parameters to "true" (I did it too, although I'm not quite sure how this could solve my problem).

 

In the help pages of Adobe I found that if I added a parameter to my navigateToURL like _blank, the security would be higher, so I removed it : still doesn't work.

 

In Chrome I receive an alert message that tells me to change my flash player parameters : but I can't actually expect people to do that.

 

So, I'm out of ideas there... Any help would be most appreciated. Thank you very much!

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points