flash animation video tutorials

 

 

 

 

 

START LEARNING
FLASH NOW

Get instant access to over
45 minutes of FREE Flash tutorials on video
 and our newsletter.

Name:
E-Mail:

.

.

.

 
Web video-animation.com

.

.

flash tutorials flash tutorials flash tutorials flash tutorials

Flash MX Preloader

by Ron of http://goons.tk
Make a Preloader all by your self!
Try this out!

First make 4 layers!

  1. Actions
  2. Text Box
  3. Loading Outline
  4. Loading Bar

then make 2 keyframes in all of them!
for the actions first frame put in this code!


LOADED = Math.round(getBytesLoaded()); 
TOTAL = Math.round(getBytesTotal()); 
PERCENT = LOADED/TOTAL; 
// the line right underneath has THE WIDTH OF YOUR BAR 
// whatever the width of ur bar is, replace that part of the line! 
BAR._width = PERCENT*THE WIDTH OF YOUR BAR; 
TEXT = Math.round(PERCENT*100)+"%"; 
if (LOADED == TOTAL) { 
   gotoAndPlay(3); 
}

put this in for the second frame of the actions layer!

 

gotoAndPlay(1); 



Flash Tutorials in Video Format - Watch them now at LearnFlash.com  

  • For the text box layer, make a dynamic text box and put in 100%!!
  • In the property inspector put in TEXT for the var.
  • now click on the loading bar's first layer and make a bar, as long as u want.
  • Convert that to a movie clip by clicking F8.
  • Cick on movie clip and name it Loading bar.
  • Now click on it and give it an instance name of BAR.
  • Now carefully double click on the outine.
  • Then right click to cut it.
  • then click on loader outline layer's first frame and do "edit" - "paste in place"!
  • now make a new layer and name it image.
  • Now make 3 frames on the image layer and put a large image in the 3 frame!
  • Go to Menu Item "Control" - "Test Movie".
  • Then go to View - Download setting - and choose a really slow connection to see the preloader!
  • Press Control + Enter, and u should see the bar u made fill up the outline!
  • and you should see the dynamic text box u made, go from 0% to 100%!!!

it should look like this now:

flash mx actionscript preloader

-if this didnt work, then check again if u specified the exact width of your bar in the first code i gave you!
-if ur still having probs ask steve or go to the contact page of my site, its called http://goons.tk

flash 8
.