Introduction To Flash 2
Introduction To Flash 2
The Stage The stage is what will be viewed in the browser. This is where Flash movies or animations are played. The Work Area surrounds the stage like the wings in a theatre. It is useful for starting animations offstage. Change the size of the stage by using the Properties panel, which should be at the bottom of the display. (Select Window | Panel Sets | Default Layout if you cant see it.) The default stage is 550 x 400 pixels although most Flash animations will be smaller than that. You can select different units e.g. inches (best to stick with pixels) and a Web-safe background color for the whole movie. This will be the default background color of the default HTML page Flash generates for your movie. Try selecting a dark blue color (#3366CC). A movie is divided into scenes. Each scene has a timeline divided into individual frames and several layers. The playhead (small rectangle) is always over the current frame and when played back moves from left to right at the specified frame rate (12 fps by default). You can play the movie by pressing Enter. If you check Control | Loop Playback the movie repeats indefinitely. To pause, press Enter again. In a given frame, think of each layer as a sheet of acetate with something drawn on it. Stacking layers on top of one another allows the author much greater control over her animations. For instance it is very common to have a bottom layer called background which has an unchanging background picture upon which the other layers play out their animations. Only simple animations have a single layer. Adjacent frames differ slightly from one another creating the illusion of movement as they are played. The frame rate may be set in the Movie Properties dialogue the default of 12 fps is usual for the Web. Sometimes authors draw each frame individually. This can be very effective but is very tedious! Flash embodies the concept of keyframes between which the intermediate frames are automatically drawn by tweening. (Match Printer and Contents adjusts the movie size to suit your printer, or just large enough for all your contents respectively. OK saves these settings for your movie. Save Default saves these as the new defaults for every movie.) Try a simple exercise - make a mushroom grow. Make sure Snap To Objects is selected. (horseshoe option or Ctrl+Shift+/ or View | Snap to Objects). Also, or alternatively, experiment with the View | Grid options to control the drawing actions. Select the Oval tool and Stroke Color dark brown (#663300) and Fill Color light brown (#FF9900). Many objects drawn in Flash have an outline and a filled interior which are usually in different colors. Then draw a small circle at the bottom centre of the stage with a larger flat oval above it. Leave a small gap. If you make any mistakes, you can undo them with Ctrl+Z.
Oval tool
The mushroom is in frame 1 which is now marked with a black blob. This is a keyframe. Save your work: File | Save and save it as 'Mushroom' in a suitable folder. Flash adds the extension .fla for a Flash movie.
If you make mistakes, remember that you can retrieve them with Ctrl+Z. Alternatively, delete everything in frame 15 (Select All with Ctrl+A and hit Delete key), go back to frame 1 and copy everything from there, go to frame 15 and Ctrl+Shift+V or Edit | Paste in Place to get an exact copy of frame 1 again. To make the mushroom grow smoothly between keyframes 1 and 15: Click any frame in this range, and in the Properties panel type "Growth" in the Label box and select Shape from the drop-down menu. Flash has colored the frames green to indicate a shape tween, added the label and some red flags. Run the movie to see the effect. Add another layer for the moon: Double-click the name "Layer 1" in the timeline and re-name it "Mushroom". Enter another layer by pressing the Insert Layer button (leftmost icon) or Insert | Layer. Rename this layer "Moon". Click the Default Colors button under the color boxes to reset a black stroke and white fill.