Creating the preloader.









My preloader calculates the total bytes of the movie and then displays the number of bytes loaded. From this a percentage is displayed as a blue loading bar.
I created some flashing "Please wait" text to add some extra movement as this reassures people that something is happening.
The load bar works by going to a certain frame within a 100 frame shape tweened Movieclip (MC). The trigger for completing the preload is put at the end of this bar at frame 100, 100%. At this point _root.gotoAndPlay("intro") is called.
This code can be found in the loader MC and within the first 2 frames of the main timeline on the Actions layer.

No comments: