Basic Concepts of Flash

February 6, 2009 by: smonte

This tutorial will teach you the very basics of Flash.

Using groups

Groups help you to organize different shapes and objects. When you drag a group over to another group or shape, they don’t merge. If they were shapes, they would merge and maybe create an unwanted new shape.You can define as many groups as you like. You can also create groups inside of groups. Groups don’t have any special properties that movieclip’s have. They only help you to organize your work more efficiently.

You can create a group by following these simple steps.

  1. Select a shape
  2. Go to Modidy -> Group (Ctrl + G).

Creating a group

NOTE: If you want to modify a group, you can double click a group. This opens the group so you can modify the shape inside of the group.

If you want to change the stacking (viewing) order of the groups, navigate to Modify -> Arrange. It allows you to bring the selected group forward or backward.

Using movie clips

Movieclips are objects, that are reusable. They have their own timeline independent from the main timeline. You can have movie clips inside of a movieclip. You can convert your shapes into movieclips by following these steps.

  1. Select a shape and press F8 (Modify -> Convert to Symbol).
  2. For the type, select ”Movie clip”.
  3. Give it some name and hit OK.

Now you have a movie clip. To edit your movie clip, just double click it. Now you can change the shape inside of the movieclip that you just created. You can add movie clips to the stage from the library. Simply drag it there.

So why use movie clips? With movie clips, you have much more options for animation. You can change their alpha, color, add shadows, duplicate them and much more. With shapes, this is much harder or impossible to achieve.

Using layers

Layers provide a powerful way to orgnize your flash file. You should always give your layers a describing name. The topmost layer is displayed on top of the stage and the bottom most layer is displayed at the bottom of the stage.

The following figure shows the most important features that are related to layers.

Layers

1. You can easily change the order of the layers by dragging them around. Just drag a layer to wanted place.

2. You can hide your layer by selecting the eye column.

3. You can lock your layer by selecting the lock column. When a layer is locked, you cannot select objects that are located in the locked layer.

4. Creates a folder for layers. If you are working with many layers, this might help you to organize them. For example, if you’re drawing a person, you might want to put all of the objects related to human head in one folder. You can insert layers into a folder by dragging it.

Importing files

You don’t have to create all of your graphics in the Flash IDE. Flash provides an easy way to import graphics and sounds into your .fla file. To import a file do the following.

1. Go to File -> Import -> Import to Stage.

This brings the graphic into the stage for you to work with. You may have noticed, that there is also an option ”Import to Library” in the File menu. This imports the file into the library, where you can drag it into the stage when needed. If you can’t see the library window, go to Window -> Library.

Frame rate

When we animate using the timeline, we are talking about a frame based animation. In my opinion, a good frame rate is between 20 to 30. The frame rate that we set, is a target frame rate that the player tries to reach. Usually all modern computers will be able to run 20 to 30 frames per second, which gives you a smooth animation. If a computer cannot reach the target frame rate, it will slow down the animation, and the animation is not as smooth as usual. It is important to remember to change the frame rate, since the default is 12. I find that a little too low.

Frame rate

Inserting keyframes

To create a keyframe, press F6 on a frame in the timeline. In a keyframe, you can change the properties of an object. In the picture below, I’ve added a keyframe at frame 25.

Inserting a keyframe

Keyframes come to use when you start animating things. You will learn that in the animation tutorial.

  • Digg
  • Sphinn
  • del.icio.us
  • Mixx

Related tutorials:

  1. Animating with Flash
  2. Basic Preloader
  3. Image Borders with ActionScript 3
  4. Shaky Flash Menu with ActionScript 3
  5. Modern Horizontal Flash Menu



Filed under: Flash Basics
Tags:

Comments

One Response to “Basic Concepts of Flash”
  1. Kahve Tozu says:

    thank you good example

    Log in to Reply

Leave a Reply

You must be logged in to post a comment.