-- online Search!

Using the Preloader Component

by tom aka novatake   | filed under Flash and ActionScript

Archive

This is an archived tutorial about Flash. It's kept for history and may reference outdated tech.

TL;DR

You can add a loading bar to a large Flash movie with a Flash MX component instead of writing a preloader yourself. Install the extension with Macromedia Extension Manager 1.5 or later, drag the loader component onto a keyframe in frame 1 of the preloader layer, and add a blank keyframe on frame 2.

  • The download includes the source file and the component, but not the loader, which you create yourself.
  • The small grey box that appears on the stage after you drag in the component is the loader.
  • A blank keyframe on frame 2 makes sure the load bar disappears when the movie starts.
  • Press Ctrl+Enter, then Ctrl+Enter once more, to see the preloader in action.

This is an archived tutorial from the kirupa.com legacy collection. It covers software that may no longer be available, but it is kept online because the ideas still hold up.

One of the most baffling concepts to understand in flash is the preloader; which unfortunately is also one of the most important feature needed for large movies. Many people like to have a loading bar (which is quite hard). This tutorial will show you how to easily make a loading bar by using a Flash MX Component.

[ You will create the loader for the above animation ]

Download the source file and the component required below. The source does not contain the loader you will create that yourself.

Before you can install the Extension file, you will need to get Macromedia extension manager 1.5 or later. Click here to download it. Make sure you install the Extension file using the Macromedia Extensions manager.

Once you have the above files and the Extension Manager downloaded, follow the directions to get your animation configured:

  1. Once you open the fla file your flash timeline should look like the following image:

[ your timeline should look like above image ]

  1. In the first frame of the preloader layer open the components panel and find the loader component. Drag that component onto the stage and remember to make sure you have inserted a keyframe.
     
  2. You should see that a small grey box appears. That small grey box is the loader. In the second frame insert a blank keyframe to make sure the load bar disappears when the movie starts.
     
  3. Your timeline should now look like this:

[ how your timeline should look now ]

  1. You are finished with the loader! To view the full animation press ctrl+enter then ctrl+enter once more to show the preloader.

Hope this is helpful!

-Tom
http://www.typhoon-extensions.cjb.net
 

Before you go, here are a few things you can do:

  1. Ask a question

    Stuck on something, or curious about a detail we skipped? Ask on the forums, and we’ll help you out.

Just a final word before we wrap up. What you've seen here is freshly baked content without added preservatives, artificial intelligence, ads, and algorithm-driven doodads. A huge thank you to all of you who buy kirupa's books, became a paid subscriber, watch the videos, and/or interact on the forums.

Your support keeps this site going! 😇

The KIRUPA Newsletter

Thought provoking content that lives at the intersection of design 🎨, development 🤖, and business 💰 - delivered weekly to over a bazillion subscribers!

SUBSCRIBE NOW

Creating engaging and entertaining content for designers and developers since 1998.

Follow:

Popular

Loose Ends

:: Copyright © KIRUPA 2026 //--