Now we get back to the .FLA file. Our first priority is to create the bar. To do this simple create a new movie clip (Ctrl-F8) and call it loader. After you click OK the new timeline will appear. On this, create your bar by making the border on one layer and a tweened bar (between frames 1 and 100) on the other (see below). Don't for get to add the stop action on the first frame.
Add the following layers to the main timeline:
Now from the library drag an instance of Loader on to the first frame of the bar loader layer and call it also loader. We need to also set up the text fields that will display the information such as byte size and loading time. Place all of these onto the text fields layer. (note: the blue text is simply to show what variables have been assign to which text field and though it is in the source file it isn't required.)
Important: Preloaders are generally placed in their own scene. This scene has to be place IN FRONT of the main movie so it will be played first. Flash discussion boards are full of questions saying that "my preloader doesn't work. when i publish it, it jumps straight to my main movie." So to avoid this choose Windows > Inspectors > Scene to check the order of your scenes.
|» Level Advanced|
Rating: 7 Votes: 586
|Download the files used in this tutorial.|
|Download (45 kb)|
|More help? Search our boards for quick answers!|