|
| Open the file: attach.fla (download file Macintosh - Windows) It contains the background for this exercise. If you do not have access to the file. Open a new flash document and create a background similar to this:
However, lining the path leading to the field are monsters that are nothing but huge, ugly, green mouths filled with sharp yellow teeth. They are only dangerous if you step off the path! (No, you don't have to be that involved.) The idea is to get from point A to point B easily when it isn't just a simple Motion Tween. You could just create many points of reference, so that at every turn there was a new keyframe and a new "tween", but there is a better way. First, so the background doesn't disappear, click in frame 60 and Insert a Keyframe. Below the layer names you'll see Drag the "kid" symbol from the Library (If you don't have access to this file, you could just use a random shape...but do convert it to a symbol.) Right next to the symbol you used for creating a layer is (
Click in frame 1 of the Guide layer, then go to the Tools Panel, choose a color (like white) that will show when you draw on the path. Click the pencil tool. Go to the stage and draw a line from the beginning of the path to the end, staying kind of in the center. Change to the Arrow tool. Click in frame 1 of the "kid" layer. Then drag the kid symbol to the beginning of the line, so that the + by his feet meets the beginning of the line. You'll know you've done it because a large O will show when the + and the beginning of the line meet. Let go of the symbol. Click in frame 60 of the kid layer. Move the kid symbol to the end of the line and again match the + to the end of the line. When you see the O, let go. Select the kid layer and go to Insert, Create Motion Tween or hold you mouse down anywhere between 1 and 60 on the kid layer and select Create Motion Tween from the pop up menu.
In the actual Flash movie, the guide line does not show. Go to File, Publish Preview, and choose Flash to see how it will actually look. Bothered by the fact that the kid keeps starting over? Well, you'll have to learn about action scripts! |
Janet Barnstable
updated
January 1, 2003