I recently made a game for for myself and was stuck when the preloader wont work and no-one liked to see the black screen for 5 minutes without knowing how much of the game has loaded and i got a lot of negative feeedback coz of that :/... so when i finally found the solution I thought i would share it with you all :
If you like stories read below, other wise just skip to the last paragraph :
Once on a distant planet called "Internet", in the land of "Web Servers" an evil Wizard named ".htaccess" posed a great deal of problems for poor little townspeople of the town "Web Developers". The Web developers liked to spread happiness throughout the "Internet" by using the medium of "Games". But the evil wizard threw a challenge of "disabled preloaders" towards them. Most of the web-developers were scared, some took refuge in places like "Kongregate" and "Newsground" as they helped most of them to show-off their beautiful preloaders.
But the great people of "Web Developers" did not know that to defeat this evil scheme of the evil wizard ".htaccess" all they had to do was disable gzip compression for their beautiful ".swf" files.
So one day a web developer took the challenge of ".htaccess" to his face and barged into his domain exploring all his schemes and his potential threats. He finally found out the core of the wizards magic in his hidden domain of "FTP root". He then gallantly appended the following lines into ".htaccess" 's evil file:
------------------------------------------------------
" Options +FollowSymLinks
RewriteEngine on
RewriteRule \.swf$ - [E=no-gzip:1] "
------------------------------------------------------
and he did so without including the quotes, by doing so he disabled gzip compression and ".htaccess" 's evil plans failed. The legend says that he has passed on this knowledge only to be spread out through all the lands of "Internet".
So please honor his word.
If you dont like stories read below:And now for those who weren't interested in the interesting story written above:
The pre-loader( or loading screen) does not work sometimes because on some web-servers "gZip compression" is enabled... to disable it for ".swf" files all you have to do is,
open ".htaccess" file on your webserver and add the following lines without quotes:
" Options +FollowSymLinks
RewriteEngine on
RewriteRule \.swf$ - [E=no-gzip:1] "
this will disable it and the loading screen will start showing up again.
hope this help