|
 |
|
|
|
|
|
Levels
Levels work as layers on the main movie ground. You can have
example of a simple paper pad. Each paper contains different
text but are available in the pad at the same time. When you
create SWiSH or Flash movies they are loaded in level 0 by
default. It means your movie is running on the ground level.
When you load any external movie, it displays a property tab
in loadmovie properties. A text box to give swf movie name, and
level which is by default set to 0. If you load movie in level 0
it means you are replacing the actual movie with new one loaded.
So preventing from this conflict load movies in higher levels than
0 (1....). Now question appears that
HOW TO CONTROL ANY MOVIE LOAD IN LEVEL OTHER THAN 0 ?
(level -1)
You should note the sentense I am to write, "Any movie loaded in
any level is treated as the part of actual movie". What does this
mean? It means if you want to load a small movie within a sprite
area without disturbing any other item, you load movie in level -1
by selecting level "sprite" from radio buttons in properties tab.
Now whatever the movie frames contain can easily be handled by
actions provided by swish. For example the movie loaded in sprite
contains stop action in frame no.0 and displays a rectangle in
frame no.1, you can place tellTarget action to go into the sprite
and place gotoFrame 1 and play action as you give to embeded sprites
in the movie. That will work fine.
HOW TO CONTROL MOVIES LOADED IN LEVEL HIGHER THAN 0 ?
(level 1+)
If you want to give action gotoFrame to movie loaded in level 1
you will use the tellTarget path
Tell Target "_level1"
Goto Frame 0
Function UnloadMovie unloads any movie loaded in any level.
same if movie is loaded in level 2 you will use _level2
|
|
|
|