Tutorial
#15
To load a movie:
Download the source
file
- Choosing the trigger
Select the frame, button instance, or movie clip instance
to which you will assign the action. For this example
we'll use a keyframe.
- Open the ACTIONS PANEL
Right click in the first keyframe. Scroll down to
ACTIONS. Click to display the Actions panel.
- Select the Load Movie Action
In the Toolbox list, click the Basic Actions category
to display the basic actions, and double-click the
Load Movie action.
- Designate the movie to load
In the Parameters pane, for URL specify an absolute
or relative URL for the SWF file to load.
For use in the Flash Player or for testing in Flash,
all the SWF files must be stored in the same folder
and listed as file names without folder or disk drive
specifications.
- Designate where to load the movie
For Location, choose either Level or Target from the
popup menu.
- Choosing LEVEL as the LOADING LOCATION
If you choose Level for Location, enter a level number
as follows:
To load the new movie in addition to existing movies,
enter a level number that is not occupied by another
movie. To replace an existing movie with the loaded
movie, enter a level number that is currently occupied
by another movie.
Note:
To replace the original movie and unload every
level, load a new movie into level 0. The movie loaded
first is loaded at the bottom level. The movie in
level 0 sets the frame rate, background color, and
frame size for all other loaded movies. Movies may
then be stacked in levels above the movie in level
0.
- Choosing a Target for the Location
Specify a movie clip that will be replaced by a loaded
movie.
The loaded movie inherits the position, rotation,
and scale properties (attributes) of the targeted
movie clip. The loaded movie's upper left corner is
placed at the registration point of the target movie
clip (the cross hairs location in symbol-editing mode).
To unload a movie from a Flash movie
window:
- Select the trigger
Select the frame, button instance, or movie clip instance
to which you will assign the action. For this example
we'll use another keyframe added to the timeline.
Right click on frame 30 in the timeline and select
INSERT / BLANK KEYFRAME.
- Open the ACTIONS PANEL
Right click in the last keyframe. Scroll down to ACTIONS.
Click to display the Actions panel.
- Select the UNLOAD MOVIE ACTION
In the Toolbox list, click the Basic Actions category
to display the basic actions, and double-click the
UNLOAD MOVIE action.
- Selecting the TARGET
For Location, choose one of the following options
from the popup menu:
For a loaded movie, select Level and enter the level
of the movie that you want to unload.
To target a movie to unload, select Target and enter
the path of the movie that you'll target to unload.
To enter an expression that evaluates to a level or
movie, select Expression and enter the expression.
For example: unloadMovie (3); targets the movie on
level 3 and unloads it.
Note: The Load Movie and Unload Movie actions do not
work in editing mode.
|