First time here? First time here? Newsletter Signup Newsletter
Search tutorials
Author: Kenton Hamaluik

Getting Started

The first thing I always do when making a preloader is to create the preloader it's very own scene (makes things less confusing, etc but you can make it in the main scene if you wish).

Add a new scene to your movie by going Modify -<%gt%> Scene and then clicking on the little "plus" picture. Now go to the new scene.

You might wanna set up a few objects right now, to get them out of the way. We will set up the loading bar, and a percent text box. The loading bar is just an animation that takes up EXACTLY 100 frames. i usually just make this a bar with a shape tweened mask over it, as in the picture; but you may do anything you wish.

Draw a bar on your canvas, select it, and press F8 to convert it into a symbol. Edit this new symbol so that it is an animation of 100 frames; no more, no less.

One way of doing this is to create another layer over top of the bar. On the layer with the bar, select frame 100 and press F5. On the layer above it (frame 1), draw a tiny box that barely covers on edge then on frame 100 press F6 and make the box longer, so it just covers the box underneath it. Now on this new layer somewhere, click on any frame and go to the properties box. In here, select Shape Tweening from the drop-down menu. Now make the top layer a mask, to create a growing bar!

Now that you have acomplished this, go back to your preloader scene, and create a new textbox. Make it a dynamic textbox, and give it the variable of: percentLoadedText making sure it is big enough. While you are here, you might as well give the bar an instance name. Simply call it "bar"

Easy as pie. Now for the Actionscipt!

» Level Intermediate

Added: 2003-07-15
Rating: 6 Votes: 38
(10 being the highest)
» Author
Just 14 years old, I play with flash and wish to get good at it. :)
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!


  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.