Log in

View Full Version : how can I insert an image that will disappear immediately after a flash file loaded ?



soumitraroyjoy
06-11-2010, 06:14 PM
I have a flash file embedded in my website. Since it takes a bit of time to load, I like to add an animated "loading" image to keep my visitors waiting. The "loading" image should disappear as soon as the flash starts playing.

what is the necessary code, please ?

azoomer
06-11-2010, 06:35 PM
You can make your own loading gif here (http://ajaxload.info/) for example. Then put it as a background image behind your flash and center it with
background-position:center;
I think that might work !

djr33
06-11-2010, 06:54 PM
Alternatively you can include the loading image within the flash file itself, even adding a progress bar. Then as a second step load the (external) data for the rest of the file. This is how large flash objects are created, when it's over 1mb, etc.
That's a little more direct, if you can edit the flash in this way.

soumitraroyjoy
06-13-2010, 07:41 PM
@ azoomer
i m sorry, the backgrounding technique does not solve it out :(
can u tell me any other way ?
thanking u :)

soumitraroyjoy
06-13-2010, 07:49 PM
@djr33
yes, i can edit that flash file, but adding an extra image will only make the file size bigger, isn't that ? i want the loading image to show as soon as the relevant page is opened

Or probably i didn't get ur point, would u please elaborate ?
thanking u

azoomer
06-13-2010, 08:03 PM
soumitraroyjoy ! Do you have a link to your page ? If you have the .fla file you could try what Daniel suggests. That would probably look more professional, but it takes quite a bit of skill to pull it off in flash though.

djr33
06-13-2010, 08:48 PM
You create a new flash file. It contains only two things:
1. a loading image (displayed)
2. code to import/load the 'real' content

Then you move all of your current content to a new file, something that you can "import" into flash.


Technically it would make it 'bigger', but it would load faster: first it loads the loading image, then it starts to load the other content. It would be no 'bigger' than using the image in HTML then loading the flash file (and it would be basically the same time to load).


I don't know how to do this, but I know that it can be done. I would search google, or maybe find a dedicated flash forum. This flash forum is helpful, but it's more helpful when you are trying to use flash AND html, not just complex/technical questions about using flash.