A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Fix for the Firefox "Transfering Data From.." bug

Threaded View

  1. #1
    Senior Member random25's Avatar
    Join Date
    Apr 2002
    Posts
    566

    Fix for the Firefox "Transferring Data From.." bug

    Some of you may have noticed that the status bar in Firefox will show "Transferring Data From yourdomain.com" even after the page and all flash content have finished loading.
    Internet Explorer does not have this problem, so i am calling it a Firefox bug.

    I have searched and found many people with this problem, but no solutions.


    I have made a workaround to this, and would like to share it here for everyone.

    This workaround uses swfobject, and ExternalInterface to call a javascript function.

    Ok, here we go.


    1.
    Stick this code in the head section of your page:
    Code:
    <script type="text/javascript">
    function DoneLoading() {
    var so = new SWFObject("", "", "0%", "0%", "8", "#000000");
    so.write("DoneLoading");
    }
    </script>
    2.
    Stick this div at the end of the body section of your page:
    Code:
    <div id="DoneLoading">
    </div>

    3.
    This is the flash action script to call the javascript function:
    Code:
    import flash.external.*;
    ExternalInterface.call('DoneLoading');
    And that is all you need to do.
    swfobject will start to try to load a .swf that does not exist into the "DoneLoading" Div, and will then send the data to Firefox that it is done loading, and the pages status will show done.
    Last edited by random25; 02-19-2008 at 12:02 PM.

    If you want to make an apple pie from scratch, you must first create the universe. Carl Sagan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center