Current Position:Home > AS3 Code Snippet (url button) not working in firefox

AS3 Code Snippet (url button) not working in firefox

Update:10-11Source: network consolidation
Advertisement
Hi,
This code works fine for my flash site:
ovbutton.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_5);
function fl_ClickToGoToWebPage_5(event:MouseEvent):void
          navigateToURL(new URLRequest("http://www.starnavigation.ca/vision.html"), "_self");
However, within firefox (7.0.1), once the back button is pressed the button does nothing. Works great with every other browser. It basically only works once, until I reload the page. Any ideas???

The Best Answer

Advertisement
Check if you have set "allowScriptAccess" to "allways".
If you embed flash like this,
<object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″
codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0″ width=”700″
height=”322″>
<param name=”movie” value=”intro.htm”>
<param name=”quality” value=”high”>
<embed src=”intro.htm” quality=”high”
pluginspage=”http://www.macromedia.com/go/getflashplayer” type=”application/x-shockwave-flash” width=”700″
height=”322″></embed>
</object>
you have to add it in two places: one is for IE and other for FF, Opera, chrome..
<object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″
codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0″ width=”700″ allowscriptaccess="true"
height=”322″>
<param name=”movie” value=”intro.htm”>
<param name=”quality” value=”high”>
<param name="allowscriptaccess" value="true">
<embed src=”intro.htm” quality=”high”
pluginspage=”http://www.macromedia.com/go/getflashplayer” type=”application/x-shockwave-flash” width=”700″
height=”322″></embed>
</object>
  • AS3 Code Snippet (url button) not working in firefox Update:10-11

    Hi, This code works fine for my flash site: ovbutton.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_5); function fl_ClickToGoToWebPage_5(event:MouseEvent):void           navigateToURL(new URLRequest("http://www.starnavigation.ca/vision.html

  • Code Snippet for buttons problem Update:11-30

    Why would a code snippet from PayPal work with some items I have listed for sale on my website, but not others? I have made sure that nothing is overlapping, and that the buttons are actually on the page.What's the URL to the page?Read other 2 answer

  • Having Problem with Code Snippet on Button Update:11-30

    I have imported a psd template into Flash to link my buttons to a webpage, not sure which to use AS2 or AS3 , so I locked all the other layers on the template. right clicked on the actual button I wanted [linked] > Covert To Symbol > Gave Instance N

  • Flex & cf 6, am i missing something - code snippet Update:11-30

    So my first attempt at this, and I wondering if I'm missing something.... Flex Builder 3 app, calling a cfm proc on a CF6 server. Code snippet below. Just a simple call to return some CGI vars as a test. I'm not getting my datagrid populated, not sur

  • URL button Issue Update:11-30

    I have this code to connect to my buttons: on (rollOver) { gotoAndPlay("s1"); on (rollOut, releaseOutside) { gotoAndPlay("s2"); on (release) { if(_root.url2==""|| _root.url2== undefined){ getURL("javascript:alert('NO URL

  • Code Snippet for Pop-Window Update:11-30

    Hi Colleague, I need to show a pop-up window on an event. How can i achieve this in ABAP WD. Code Snippet would be helpful. Regards, PiyushPiyush, When you create a pop up window using code wizard, you'll get a OK button by default. By clicking on it

  • Code Snippet issue? Update:11-30

    So ... I'll try to explain this the best I can. I have a flash file that is nothing more than a slide presentation. I go from one slide to another using buttons. There are global buttons (navigation: Next Previous, Home) ... and their are screen spec

  • Code Snippets, click to edit. Update:11-30

    Hi! I'm using Adobe Flash CS5.5 and I've been making custom code snippets for someone in the office. I know how to use Instance_name_here but what I can't work out is that in the example code snippets sometimes you can click on a link or image locati

  • Code Snippets in Forums Update:11-30

    Hi, I recently tried to anwser to a forums question located at this URL: /message/8930166#8930166 [original link is broken] I inserted some code snippets and encountered the problem that I was not able to send my posting to the forums (there occured

  • Code Snippet - Swipe Gesture to frame or Scene Update:11-30

    Using the Timeline Navigation code snippets is real easy to use and understand, I am using the codes to " Click to next scene or frame etc etc and they work fine. What I dont see in the code snippets is a easy to use  " Swipe Gestures"  Swi