|
||||||
|
||||||
Flash Tutorial - Target Paths

Free
Flash Tutorial
The aim of the tutorial is to:
Show you how one instance of a symbol communicates with another. A fundamental part of flash movie is to place symbols within symbols (see previous tutorial: Tweens within Tweens). When movies get complex the structure of one symbol inside another inside another may also become complex. When you place one symbol inside another it is called: Nesting
The aim of this tutorial is to give you an idea of how these symbols communicate with one another. This tutorial is designed to give you some practical experience of how this is done.
My
Example: Download
Flash MX file Beg 009a
Nesting
In Flash when you place one object inside another they are nested one inside another. The following is an explanation of the nesting used in the example flash movie above:
Main Stage

This is the main stage of the movie. I know it is the main
stage because of the tab: ![]()
When you open a Flash movie it will always display the main stage. This is your work area where you place all the objects that make up your movie.
All the symbols you create are in the Library.
On the stage above is an instance of
the symbol webwasp.
It is an instance of the symbol which is highlighted. I know this because of
the blue rectangle and the centre point
in
the middle of the webwasp on
stage.
Get use to looking in the Property inspector to find the instance name.
![]() |
|
|
Above the word webwasp you
will see a tab: |
||
First Nesting: main stage > Webwasp
MC
![]() |
Instance Name: webwasp Symbol Name: webwasp MC |
Action Script path: _root.webwasp |
This is a symbol which is on the main stage. The symbol is called webwasp MC. You can see the symbol name in tab above the word: webwasp
|
||
Second Nesting: main stage > webwasp MC > web MC
![]() |
Instance Name: web Symbol Name: web MC |
Action Script path: _root.webwasp.web |
Look at the tabs to see
the nesting. |
||
Third Nesting: main stage > webwasp MC > web MC > web graphic
![]() |
Instance Name: There is no instance name. Symbol Name: web Graphic There is no Instance name for web graphic because graphics cannot have instance names only symbol names. |
Action Script path: There is no Path. Note: Because a graphic cannot have an instance name it cannot be referred to in the actionscript. To refer to a graphic (or button) you need to nest it inside a movie clip or convert it to a movie clip. |
Note: Look at the little icons in the tabs above the word web: You can tell that the symbol is a graphic because the icon is different to that of a movie clip.
Note: The same icons are used in the Library.
See picture of main stage above. |
||
Creating a Movie with Nested Symbols
Creating the Symbols
For the buttons to be able to control the rotating web in the example above they have to be able to find the path to this object.
When you are creating symbols which are nested (inside) others you must always start furthest away from the main stage and work backwards. In the above example you must create the symbols in the following order:
1st: web graphic: Static graphic: web
2nd: web MC: Animation of the static graphic: web
3rd: webwasp MC: Combination of the animated graphic web and the word wasp
Think of it like cooking: First get your ingredient, then cook them, last of all put them on the table. Your main stage is the dinning table!
Step One: Static Graphic: web
Note: If have done the previous tutorial: 03 Tween within Tween and you are confident with creating tweens, use the Flash movie that you created there and go straight to: Step five
The first symbol you need to create is: web graphic
Type
a word on stage or draw something. I typed: web
|
Why not try out webwasp's new community. Meet new people, find friends in your area: Webwasp Mates & Dates
•
79031 visitors to this page since Jan 04 |
|
|
All material on this site is protected under international copyright © law. DO NOT reproduce any material from this site without written permission. Please ask as permission is often granted.
|