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:
2.Code:<script type="text/javascript"> function DoneLoading() { var so = new SWFObject("", "", "0%", "0%", "8", "#000000"); so.write("DoneLoading"); } </script>
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:
And that is all you need to do.Code:import flash.external.*; ExternalInterface.call('DoneLoading');
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.





Reply With Quote