While my flash is loading onto the page, There is a couple seconds of a white box, then it starts and then it loads the game. Is there anything i can do to not have that couple of seconds of whiteness maybe me put a picture there which dissapears when the games loads ? does anyone know how to do that or another flash file which plays while the first is loading ? Any ideas ?
you can have a pre-loader for your flash game. Which is just a very small SWF "shell" that loads the file. Get the file as small as possible (only use actionscript) and have it pre-load the other .SWF.
sounds cool, How do i do that ? Is there anyway i can do it by editing the page because i cant edit all 300 flash files
I am sure you will already have preloaders for those games, I havent seen you page, but I can suggest to make your SWF movie transparent, if its not already, use the following code and paste it with other swf parameters.. <param name="wmode" value="transparent"> not sure, but I hope this may help..
the white box is there becuase you either have a slow host or the game is pretty big. so you just have to be patient or make it smaller.
Sorry I don't have time to paste the code for you, but look up "LoadMovie" in flash, and that should get your started.
You can also load background image to the element that is holding your flash applet. You would have to set wmode to transparent as mentioned before so your background image would be visible until swf file is loaded. I would also recommend using one flash preloader to load all flash documents. You can send parameters to it indicating file to load. This way preloaders swf file would only have to be requested once. Second time it would load from browser cache (almost instantly) Regards