preloader1.sfd |
preloader2.sfd |
preloader3.sfd |
preloader4.sfd |
preloader5.sfd |
To disable the preloader choose "Movie" > "Preloader Options" and choose "None"
Choose "Movie" > "Edit Preloader" and place items on preloader frame. Don't use anti-aliased texts, use HTML text instead. Hit Esc to quit the preloader and go back to the movie.
To create the simplest user defined preloader use the following code at the first preloader frame:
if(getBytesLoaded()==getBytesTotal()) gotoAndPlay("Frame 1");
This command jumps to Frame 1 of the main movie if entire movie is loaded, it prevents from displaying preloader unnecessary.
Add new frame to preloader thread (Frame 2) and add the following actionscript code to make the loop:
if(getBytesLoaded()<getBytesTotal()) gotoAndPlay(1);
This code jumps to the first preloader frame if the movie is still loading.
You can also add own code to display loading progress for example create edit field and use the code:
Edit1 = getBytesLoaded();
Edit1 = Edit1 + " bytes loaded...";