Have you ever wondered how to
add that 'loading' animation effect while your main animation
preloads? Well, I have, and this tutorial will lay out the
process step by step.
Here is mine. The file is less
than 2kb in size.
- Frames
1 and 2 must be blank keyframes. These are needed to
add the preload actions.
- The
animation can begin on frame 3 or later.
- You
should have a loading 'movie clip' symbol to play so
your audience knows what is happening.
I decided to open an existing Flash project
that comes with the program - Spotlight Mask.fla. I shifted
the keyframes for this project to frame 3.
Step 1
As stated in the 'Rules', create 2 blank keyframes (F7) in layer 1 (rename
the layer 'Preload Action') at frame 1 and 2. The 'Spotlight Mask' animation
will start in frame 3.
Step 2
Double click Frame 1. This brings opens your 'Frame' actions Palette.
Step 3
Click 'Actions.' In the 'Action' category locate 'IfFrameLoaded.' Double
click to insert the action. Under 'Type' choose 'Expression' from the drop
down menu. Then type in '_totalframes' in the 'Frame' text field.