I’m feeling generous again, so I’ve decided to make another forum-based tutorial. But this time it’s…
===
Preloaders!
A preloader basically loads your game/movie so when you play it, it wont lag. Ok, all you need are 2 blank keyframes on your main timeline (F7). On your first BLANK keyframe insert this code into the AS box (lets hope this turns out right _):
var bytes = _root.getBytesTotal();
var bytes_loaded = _root.getBytesLoaded();
percent = int((bytes_loaded)/(bytes)*100) + "%";
if (bytes_loaded == bytes) {gotoAndPlay(3)}
What does that do, you ask? Well it tells Flash “Hold up bud, you’re not moving until you’re loaded ALL of this guys movie. You hear?!” Ok so it doesn’t really say that, but in general terms yes…
Now on your second BLANK keyframe insert this:
gotoAndPlay(1)
This will make your movie play after it’s loaded. Now start your movie of frame 3 :D
===
~Penboy