i have a big flash file that loads in but takes a noticeable amount of time to download. Its a header and i was just wondering if i could have an image instantly appear and then when the flash is downloaded seamlessly overlap it? Just wondering if there was an HTML to do this?
Thanks
You have two options for this as far as I can tell.
– Option A is the solution you’ve mentioned already. I would have an img tag inside the same div as the swf
position:absoluteand have flash do anExternalInterface.call("hideImage")call to JavaScript when the swf is loaded and have thehideImagefunction in javascript remove/hide the img tag.– Option B (which is what I would go with) is to use a preloader inside of flash. Set up two separate keyframes at the first of flash. I usu label my first one “loading” and the second one “main”. In loading I have actions similar to the following:
Flash will show the “loading” frame segment once it loads, your swf won’t switch to “main” until the rest of the swf is done loading. I’d recommend some sort of preloader with a percentage indicator if you swf is as big as you’re saying.