I have a swf file that begins playing immediately when viewed on its own but takes a long time to begin playing when viewed within my page.
In that page, the file sits inside a div, the display attribute of which is set to none. A JavaScript function toggles the display to block, at which point the other stuff in the div is instantly visible but the swf (including the preloader) doesn’t begin playing for a while. When it does begins playing, the preloader jumps to showing that the file is 100% loaded, so I assume that the browser is waiting for the whole thing to be loaded before displaying it.
On Windows, this problem occurs only in Firefox and webkit browsers. IE begins playing the preloader immediately and progresses through it normally, believe it or not. Haven’t had a chance for a Mac test yet.
page: http://www.jamestbaker.com/
(click on the orange-y image titled “smith & nephew” in the left column)
swf: http://www.jamestbaker.com/images/portfolio/Smith-Nephew.swf
(Clearing the cache between loads may be necessary to see the problem occur.)
Anyone know how I can get the preloader to display immediately and progress normally from inside this toggled-on div in Firefox and webkit browsers?
Thanks so much!