A Flash Developer Resource Site














Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Featured Flash FLA
Gallery Downloads 11336 Flash Movies | 2 New Flash Movies Added
What's New | Top 100

Featured FLA

» Author: Surjit Dhami
» Title: Book
» Description: Book
» More by Surjit Dhami


Random FLAs | Add Flash Movie
Featured Flash Site
Gallery Downloads 5848 Flash Sites | 0 New Flash Links
What's New | Top 100 Flash Site

Featured Site

» Posted in the Flash Kit Links section
» Title: All-American Rejects
» Description: Get to know this great band by exploring their "practice room".


Random Links | Add your own Flash Related Links
Flash Tutorials 1277 Tutorials 7 New Tutorials Added!
What's New | Top100

» Create xml slideshow with free template
» How to Insert a Multilingual Subtitle Into Your Flash Video Studio
» How to Create Cool Halloween Slideshow
» Debugging flash using the Firebug console
» Create Flash Slideshow on Blogger
» FLASH TRICKS IN WEB ADVERTISING: FLASH BANNERS
» HTML Photo Gallery Tutorial
» Create your first flash site – PART 1
» How to Make a Flash Photo Gallery
» Unknown Tag: Title10
Random Tutorial | Add Site

Trading Customer Accounting (IL)
Next Step Systems
US-IL-Chicago

Justtechjobs.com Post A Job | Post A Resume


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Utilities

Categories Yet Another Flash MX Loader
Author: Tim Murray | Website: http://www.gmg.com.au |

 
Page 6
«prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ... next»

Designing the loader movie

The key to any Flash MX development is to know when to code and when to animate. Anything that can be quickly accomplished using the timeline, stage, movies and tweening should probably not be coded. Flash MX is great for this, it optimises well and runs fast, and the visual tools within Flash MX make for a rapid development cycle.

Our approach will be to do the graphic design work first, getting the feeling and style of what we want. Then we will incrementally build the code to support our preloader, so that we can test as we go along.

Start Flash MX and create a new file. Save it and call it something sensible. We picked "loader.fla" for want of a better name.

So, create a movie clip symbol, name it appropriately. We called it "loading" 'cos that's what it's going to say when we're finished. If you don't have the "Advanced" part of the dialog available, click on the "Advanced" button now. We will make sure that we export the movie for runtime sharing (so that we can use our loading movie in other Flash MX files once our primary Flash file, in this case "loader", is loaded), but don't bother with exporting the resource in the first frame (as this will cause an unnecessary delay while our loader is loaded for the first time in our main Flash file).

Now we go into our loading movie and create our loading animation using the design tools within Flash MX.

Our functions layer contains all of the ActionScript functions that our loader will need. We'll get to the scripting shortly.

The file info layer contains our dynamic text object that we will use to display our bytes loaded info. This will be handled from the scripting using a variable named "loadedText". We let Flash know this by typing in the name of the variable that we are going to use in the "Var" field in the Properties window.

The text layer contains the word "LOADING", and the shadows layer contains all of the pale grey squares that act as placeholders for the green boxes that we will be animating in as the file loads.

The remaining layers (creatively named Layer 3 to 15) contain our tweened box shapes. We created a layer, made a box shape, and duplicated the layer the appropriate number of times. Then we dragged the boxes on each layer where we wanted them and created the key frames by multi selecting the frames where we wanted the keys. Selecting all of the first key frames, we set a shape tween for all of our boxes then set the alpha to 0%. Finally we staggered the key frames out so that the boxes animated in one at a time.

Your loader movie may look different at this point (and rightly so), but the key parts that should be the same are the functions layer (where we will put some ActionScript soon) and the Dynamic Text object with the Var field set to loadedText (where we will place the bytes loaded feedback for the user). And of course, for more interest, you could always put extra movies in your loader (say, for a spinning 3D logo, flashing "LOADING" text, or whatever else takes your fancy). Just don't get too carried away!

Save it at this point.

«prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ... next»

» Level Advanced

Added: : 2003-12-08
Rating: 8.44 Votes: 169
Hits: 2530
» Author
Tim is a co-director of the Glasson Murray Group, providing quality graphic design, illustration, 3D visualisation, interactive environments, virtual reality, multimedia and website services.
» Download
Download the files used in this tutorial.
Download (1860 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments
 
   
 

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs