From the course: Flash Professional: Shortcuts

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Making a preloader for better Flash Player performance

Making a preloader for better Flash Player performance - Flash Professional Tutorial

From the course: Flash Professional: Shortcuts

Start my 1-month free trial

Making a preloader for better Flash Player performance

Because SWF files are streamed over the web, performance can vary based on the user's connection and what artwork is being displayed. To make your apps perform as consistently as possible, it's best to preload content that could potentially present a problem. Now this is not a tutorial on ActionScript. This is a tutorial on creating a preload. If you're not familiar with ActionScript, then the code may look confusing to you. I recommend in that case to watch ActionScript 3.0 in Flash CS5 Professional Essential Training. You can find that in the Online Training Library. Let's take a look at how a preloader works. On the stage I have a Dynamic Text field in the Classic Text engine named loader_txt. Then I have a movie clip named kid_mc. ] So let's go to the first keyframe at the actions layer and open up the Actions panel. So here I'm importing the necessary code, creating an instance of the Loader class, and then I add an EventListener to the contentLoaderInfo property of the Loader…

Contents