Preloader Animation play only once?
Hey Hey, I finally worked out a complex preloader complete with animations at 25, 50, 75 and 100%. I got the animations to work, I got the preloader to show up at 1% loaded and everything is marvelous.
However, I noticed that the preloaders works perfect on slower connections, or when the file is very very large. My problem is that I have the animations check the percent loaded, so when percent == 25, animation 1 plays. When this is done on a slow connection it plays the animation over and over until percent >= 26.
I need a way to play the animation only once when percent == 25.
The other problem is with high speed connections or a small file size to load the preloader will load in chunks. so percent may not ever == 25, but it will == 23 then the next check it == 30, so the 25 percent animation get's skipped. If I run animation with >=25 it loops the animation playback every check of percent. Again, I only want it to play once.
Any ideas?
~MoN