PrevFrame() buttons in a swf file inserted in html not working in Firefox

Hi!
I have a very weird problem.
I have created a photo gallery using AS3 in Flash CS5. I have used prevFrame() and nextFrame() actions for "previous photo" and "next photo" buttons as well as for "previous thumbnails" and "next thumbnails" buttons.
All the buttons work fine when i run the swf files as well as when i run the swf files in Firefox 8.0 and IE9. However, once I insert this swf file into my html file using Dreamweaver CS5->Insert->Media->swf, the "previous" buttons dont work in Firefox 8.0! the previous image button works sometimes whereas the previous thumbnails button does not work at all!  They work fine in IE9. The next buttons also work fine in every browser. Heres my code:
stop();
thumbprev_btn.visible=false;
next_btn.addEventListener(MouseEvent.CLICK, nextimage);
prev_btn.addEventListener(MouseEvent.CLICK, previmage);
thumbprev_btn.addEventListener(MouseEvent.CLICK, prevthumbs);
thumbnext_btn.addEventListener(MouseEvent.CLICK, nextthumbs);
function nextimage(event:MouseEvent):void
if(mc_content.currentFrame==mc_content.totalFrames)
mc_content.gotoAndStop(1);
else
mc_content.nextFrame();
function previmage(event:MouseEvent):void
if(mc_content.currentFrame==1)
mc_content.gotoAndStop(mc_content.totalFrames);
else
mc_content.prevFrame();
function nextthumbs(event:MouseEvent):void
thumbprev_btn.visible=true;
nextFrame();
if(currentFrame==3)
thumbnext_btn.visible=false;
function prevthumbs(event:MouseEvent):void
thumbnext_btn.visible=true;
prevFrame();
if(currentFrame==1)
thumbprev_btn.visible=false;
Please help.

Thankyou Ned. The html file published by flash worked perfectly however the problem persisted even if i used this html file's code. But strangely, the problem disappeared after a few days! Now the original dreamweaver code is also working fine.

Similar Messages

  • Append swf file - Spry.Utils.updateContent - not work

    I don't understand this
    When I try to add swf file to Spry Tabbed Panels content -
    everything is OK. Now - in tabbed panels content I want to insert
    data from external html files. In this external file I have swf
    file and text, and images. When I preview this html external file
    in browser - all data are displayed correctly. When I try append
    this file into tabbed panels content :
    <a href="#" onclick="Spry.Utils.updateContent('apDiv1',
    'products/products1.htm'); return false;">Append file</a>
    only swf file in a new window are display.
    If I delete swf content from external html file - everything
    is ok. But if in external append file is a swf content - IE display
    only swf file.
    Is there posible to append html file with swf file in this
    method in any way?

    Hi Elaine,
    The implementation of AC_FL_RunContent() suggests that it was
    only meant to be run *BEFORE* the page finishes loading. Because
    Spry data sets and regions load and redraw asynchronously, usually
    *after* the page finishes loading, they are not compatible. As
    we've mentioned above, if Spry triggers the call to
    AC_FL_RunContent(), it will most likely be *after* the onload event
    has fired, and since AC_FL_RunContent() uses document.write() it
    will result in the entire page being overwritten by the
    <object>/<embed> tag that it writes out.
    That all said, libraries like SWFObject were designed to be
    called even after the onload event fires, at least from what I can
    tell from their samples. If you need to extract data from a data
    set to create your SWFObject, you can simply attach an observer to
    your data set that will tell the swfobject to do what it is you
    want it to do. For example:
    <script type="text/javascript">
    var dsProducts = new Spry.Data.XMLDataSet("products.xml",
    "/products/product");
    // Register an observer on dsProducts so that any time it
    changes data or the current
    // row changes, it tells the swfobject what to do:
    dsProducts.addObserver(function(notificationType, notifier,
    data)
    if (notificationType != "onDataChanged" || notificationType
    != "onCurrentRowChanged")
    return;
    // Do something with the swfobject here:
    var curRow = dsProducts.getCurrentRow();
    // The following embedSWF call is only an example of how to
    get the "productURL" column
    // value for the current row and pass it to the swfobject.
    The rest of the args, are left as names to
    // show you what you should be passing.
    swfobject.embedSWF(curRow.productURL, replaceElemIdStr,
    widthStr, heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj,
    parObj, attObj);
    </script>
    --== Kin ==--

  • Keynote Flash .swf file to IWeb does not work correctly

    I create a presentation in keynote, export to flash and save as a .swf file. I then drag it into a website that I am creating and it shows up as a text file; in other words the title of the file shows up in the box. What am I doing wrong first of all and then secondly, where do I get the HTML code from these files that I have created as I believe I could use the HTML snippet to import the code?? Please help

    This seems to be a problem before the file even reaches iWeb. I exported a Keynote presentation to SWF but when I check the file info it shows that the file is a HTML file despite the fact that it has the .swf extension. I changed the "Open With" to Flash Player but that didn't make any difference. I then tried to upload to a server and it transfers the file as text.
    It's got me buggered!
    An yideas?
    Cheers...>Scotty

  • Loading multiple SWFs and storing them (code not working under Firefox 23 and Chrome)

    Hey guys,
    Anyone has any idea why this code suddenly don't work anymore? (It works under internet explorer but not firefox and chrome
    The code under is placed on my main swf to preload all my external swfs and store them for not having to wait too long to access them.
    Thx guys.
    I took the code from here btw: http://www.beautifycode.com/the-finer-art-of-loading-2-handling-multiple-swfs#snippet
    I'm running flash player 11.8.800.94... It used to work under Firefox and Chrome
    var _swfLoader:Loader;
    var _swfRequest:URLRequest;
    var _swfPathArr:Array = new Array("00.swf", "01.swf", "02.swf");
    var _swfClipsArr:Array = new Array();
    var _swfTempClip:MovieClip;
    var _loadedSWFs:int;
    startLoading(_swfPathArr);
    function startLoading(pathArr:Array):void {
    _swfLoader = new Loader();
    _swfRequest = new URLRequest();
    loadSWF(pathArr[1]);
    function loadSWF(path:String):void {
    setupListeners(_swfLoader.contentLoaderInfo);
    _swfRequest.url = path;
    _swfLoader.load(_swfRequest);
    function setupListeners(dispatcher:IEventDispatcher):void {
    dispatcher.addEventListener(Event.COMPLETE, onSwfComplete);
    function onSwfComplete(event:Event):void {
    event.target.removeEventListener(Event.COMPLETE, onSwfComplete);
    _swfTempClip = event.target.content;
    _swfTempClip.customID = _loadedSWFs;
    _swfClipsArr.push(_swfTempClip);
    if(_loadedSWFs <_swfPathArr.length - 1) {
    _loadedSWFs++;
    loadSWF(_swfPathArr[_loadedSWFs]);
    } else {

    Hi kglad,
    The problem was coming from my server.
    I recently played with some settings  from a "cache control tool" offered by my hosting but i thought i had it back at default. Turns out i must've missed something. Now i have the .html caching on and everything works good on all browser.
    I have another question tho...
    I'd like to know if there's a way to cache an html file without having to ask my hoster to cache all of my htmls...
    I'm using this code now but maybe there's a way to add something that will cache this page specifically?
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>title</title>
    <script language="javascript">AC_FL_RunContent = 0;</script>
    <script src="fluid_site.js" language="javascript"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <link href="style.css" rel="stylesheet" type="text/css" media="screen"/>
    </head>
    <!--url's used in the movie-->
    <!--text used in the movie-->
    <!-- saved from url=(0013)about:internet -->
    <script>
        if (AC_FL_RunContent == 0) {
            alert("This page requires fluid_site.js.");
        } else {
            AC_FL_RunContent(
                'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
                'width', '100%',
                'height', '100%',
                'src', 'index',
                'quality', 'medium',
                'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                'align', 'middle',
                'play', 'true',
                'loop', 'true',
                'scale', 'showall',
                'devicefont', 'false',
                'wmode', 'window',
                'id', 'index',
                'name', 'index',
                'menu', 'false',
                'allowFullScreen', 'false',
                'allowScriptAccess','sameDomain',
                'movie', 'index',
                'salign', ''
                ); //end AC code
    </script>
    <body>
    <noscript>
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" height="100%" id="index" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="false" />
        <param name="MENU" value="false">
        <param name=wmode value=window>
        <param name="movie" value="index.swf" /><param name="quality" value="medium" /><embed src="index.swf" quality="medium" width="100%" height="100%" wmode="direct" name="fluid_site" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
        </object>
    </noscript>
    </body>
    </html>
    Thanks

  • How can I control a button from one swf file to another swf file?

    Hi,
    I have a main.swf file. From that file I am accessing the external.swf file which is an external file.
    Now, how can I write code on my main.swf file for the button which is on my external.swf file?
    Activities.MainPanel.close_btn.addEventListener(MouseEvent.CLICK, btnClickClose);
    Activities.MainPanel.close_btn (This buttons is actually on external.swf file, but I want to write code on main.swf file to execute it on external.swf) how can I control one swf button on other swf file?
    Thanks.

    Here's some example code that you should be able to adapt to your needs.
    // create a new loader object instance...
    var loader:Loader = new Loader();
    // make the download request...
    var request:URLRequest = new URLRequest("external.swf");
    // add a complete event listener to the loader
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
    // start the actual loading process...
    loader.load(request);
    // create a new empty movieClip instance, you will put the loaded movie into this movieClip once its loaded
    var externalMovie:MovieClip;
    // this function is called when the download has finished and the file is ready to use...
    function completeHandler(event:Event):void {
       // set the contents of the loaded movie to the new empty movieClip...
               externalMovie = MovieClip(event.target.content);
       // add this new movie to the display list...
       addChild(externalMovie);
    Now you can refer to the loaded movie with the instance name "externalMovie". So if, for instance, you want to address a button in the loaded movie, you could write something like this on the main timeline:
    externalMovie.addEventListener(MouseEvent.CLICK, btnClickClose);
    function btnClickClose(event:MouseEvent):void {

  • How make a button open a .swf file in a new window?

    How do I make a button open a swf file in a seperate window
    new window (like if i opened to swf file seperately)
    Anyone know ?

    well you can publish the the other FLA, which would give you
    an HTML file, upload that and the SWF then link to the SWFs' HTML
    page.

  • Call a external SWF by press the button within another SWF file but the second SWF file play Externely

    Hello Guyz.
    i am working on Macromedia Flash 8 and i just want to call a external SWF when i press the button within another SWF file.......but the second SWF file play Externely............can any one knows the code.... AS2

    try this
    http://www.actionscript.org/forums/showthread.php3?s=&threadid=28123

  • SWF Files do not work in Firefox. My sites work fine in Explore & Safari? Why is this? I have updated all my plugins, reinstalled yet still nothing?

    SWF Files do not work in Firefox. My sites work fine in Explore & Safari? Why is this? I have updated all my plugins, reinstalled yet still nothing?

    Can you post a link?
    Does that only happen on that website or do you have that problem with all Flash content?
    Reload web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • The attach a file button (in netzero e-mail) does not work in firefox but does in explorer

    The "attach file button" (in net zero e-mail) does not work in firefox but does in explorer.
    == URL of affected sites ==
    http://

    *Tools > Options > Privacy > History: Firefox will: "Use custom settings for history"
    *Tools > Options > Privacy > History: "Remember search and form history"
    See also [[Form autocomplete]]

  • Printing an embedded .swf file in a .html page

    not sure which forum to ask this....so this question may
    appear in other forums as well.
    I have a web page that I built in DreamWeaver using CSS. On
    this webpage I have a .swf file embedded in one of my <div>
    tags. When the user hits File>Print, I want only the .swf file
    to print and not the other areas (i.e. header, footer, nav bar
    etc.) of the webpage. The following website does exactly what I
    want.
    http://www.chevrolet.com/avalanche/colors/
    Can anyone point me in the right direction to solve how to do
    this?
    thanks!
    D

    You need to specify in the CSS which items you want to
    print... Check out this...
    http://www.adobe.com/devnet/dreamweaver/articles/designing_css_pt6_04.html

  • Back Button not working in FireFox 4

    Is anyone else having trouble with the back and forward buttons not working in FireFox 4? I installed 4 on an XP desktop and a Vista 64 laptop, and the forward and back buttons don't work on either installation. Does anyone know a fix for this? I tried deleting the "places" files in the profile and that does not help.

    I am having a problem with the back button also in Firefox 4. Firefox forgets the 1st page in any new session or tab. If I open a tab to say bbc.com and navigate to guardian.com I can't click the back button to get back to bbc.com.

  • Why the buttons created by Acrobat XI in window do not work in android mobile or ipod touch?

    Why the buttons created by Acrobat XI in window do not work in android mobile or ipod touch?

    Hi,
    Could you please send us a test file which has those form buttons? Please email that file to us at DL-adobereader-android <[email protected]>
    Thanks,
    - Reader Mobile team

  • Javascript "Play Video" button not working in Firefox

    When clicking on "play video" (java), QuickTime will not open while using firefox. It does work in Google Chrome and IE. I have tried using a clean user profile & allowing popups, and I made sure the Java and QuickTime addons were working and up to date.
    The problem is with twit.tv/twit. Clicking the "Live" link on google.com does play the live stream, but the actual Java buttons are not working in Firefox.
    == URL of affected sites ==
    http://twit.tv/twit

    Make sure that you do not block [[JavaScript]]
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the ''Safe mode'' start window.
    You have to close and restart Firefox after each change via "File > Exit" (on Mac: "Firefox > Quit")

  • Added preset motions to my interactive pdf file. It's not working when I export my file as an inter

    I added preset motions to my interactive pdf file. It's not working when I export my file as an interactive pdf. It's working when I play it on the Preview panel. I must not be doing something right. Does anybody have any clue what I need to do to have my presets motions work when played on Acrobat

    So do you mean export the whole document in a swf file format and then bring the whole swf file in and save it as a pdf file.  Is there way to export these motion presets seperately and bring them back into Indesign. I wish it was less difficult but I guess there is no way around it for the time being.

  • My lock button on my 1 g iPod touch is not working???

    My lock button on my 1 g iPod touch is not working???

    Its possibly because its only a 1g iPod. I suggest you either get a newer iPod or bring it to an Apple store and see what they can do.

Maybe you are looking for

  • Cannot send email from my Touch (connection to smtp server fails)

    Hello, I have a new iPod Touch with 1.1.4 and the January apps. I am having a problem setting the Mail application. I am trying to connect to the IMAP/SMTP servers at my university. I am using the exact same settings and passwords I use on my laptop,

  • Mac OS X - Problem with FireWire Hard Drive Recognition

    Hoping for some help: My computer is misrecognizing one of the partitions on my FireWire external hard drive (LaCie Porsche 250GB). Two partitions appear correctly on the desktop but the one I have reserved for Time Machine is showing as a 1G iPod. I

  • Duplicate form fields across multi-page forms

    Hello! I have some multi-page forms which include a few identically laid out pages; pages which take a long time to manually set up (nearly 100 fields per page, of varying sizes and positions)... I tried to duplicate the fields from one page to the o

  • Calendar Integration with Portal Server 6.0

    Hi, I have installed Calender Server 5.1.1 with portal server6.0..When click the Launch Calendar channel link in my portal page,it takes me to login page for Calendar Server on.I expected it to take me to the calendar page .I donot want to re-authent

  • Write string array into cfg file

    Hi, everybody. I faced the problem to write array into cfg file. I am trying to put many items in a key. It should look like [Section1] Key1=el_1, el_2,el_3,.............el_n. each element is string of 105 characters. Everything works fine when I sav