Flash tutorials
Home 3D (2) Actionscripting (66) Animation (100) Audio (4) Drawing (7) Full flash sites (4) Getting Started (15) Navigation (25) Special Effects (54) Text Effects (38)

Advanced mask prelaoder

2.1.2007, 10:23    Total views: 62881
Page:  1  2  3

Step 18

Go back on the main scene (Scene1), take the Selection Tool (V), select the "preloader", open the Action Script Panel (F9), and paste this script:

onClipEvent (load) {
total = _root.getBytesTotal();
}

onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
perc1 = ""+percent+"%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
}
}

Step 19

Click on frame 1, and in A.S.Panel type:

stop();

Step 20

Create a new layer and name it picture.



Step 21

Click on frame 2 and press F6 key. After that, import any picture on stage (Ctrl+R). Then, go back on frame 2, open again the A.S.Panel (F9), and type this:

stop();

Test Your Movie (Ctrl+Enter).

We're done!

Have a nice day!

Download source file (.fla)

Previous:  Animation
Have questions about this tutorial?
Visit our friendly Community Forums!
Digg it! Add this tutorial to del.icio.us! Furl it! Add this tutorial to reddit! Spurl it! Add this tutorial to technorati!

Top tutorials

1. Advanced full flash site - Part 1
Total views: 225773

2. Water effect
Total views: 169736

3. Photo slide show
Total views: 157589

4. High-tech city animation
Total views: 154981

5. Special Picture Effect
Total views: 148809

Related links