Flash preloader with external file?
March 14, 2005 5:08 AM
Subscribe
I've plowed through a lot of Flash sites, but haven't found an answer to what I thought would be a simple question. Y'all are a buncha geniuses here, so I thought I'd ask you.
What I want to do is display a static image (a JPG) until an external SWF file is loaded, which would play when fully loaded. I've tried loading the external .swf file using loadMovie(), but rather than showing the static image, it shows a blank frame until the external file is loaded, which doesn't help my needs in this case.
What's the "right" way to do this sort of thing?
Thanks in advance.
posted by jpburns to computers & internet (6 comments total)
1 user marked this as a favorite
2. The top one has style="visibilty:visible;" and the bottom one style="visibility:hidden;".
3. Then write a javascript function (eg: switch();)that switches the visibilty of the two, so the jpg div disappears and the swf shows.
4. Insert into the body tag: onload="switch()".
posted by Zootoon at 5:24 AM on March 14, 2005