In the Score, display frame 15.
1
Click the Marker bar above frame 15.
2
Marker menu
A new marker appears in the Marker bar in frame 15. The text box next to the new marker
contains "New Marker" as placeholder text.
In the text box next to the new marker, type Animation, and press Enter (Windows) or Return
3
(Macintosh) to name the marker.
Create navigation in Lingo using marker names
You can write a script that loops the playhead in frames 15 through 50 using the name of
the marker.
Double-click the Script channel in frame 50, the last frame of the animation scene. The script
1
window opens with the default
Inside the default script, on line 2, type the following:
2
_movie.go("Animation")
In the Name text box at the top of the window, type AnimLoop, and close the Script window.
3
The new script cast member appears in the first available cast slot of the Cast window, and the
new sprite appears in frame 50 of the Script channel in the Score.
Click frame 15 in the frame number bar in the Score, and click the Play button at the bottom
4
of the Stage.
The animation scene plays, and the playhead loops back to frame 15 when it reaches frame 50.
The animation of the tire bouncing repeats continuously.
Click the Stop button at the bottom of the Stage.
5
Each of the scenes in your movie has a script that prevents the playhead from moving to
a different scene. Now you'll add scripts to the navigation buttons so the user can move from
scene to scene.
Marker bar
script already entered.
on exitFrame
Writing scripts to control the movie
69
Need help?
Do you have a question about the DIRECTOR MX 2004-GETTING STARTED WITH DIRECTOR and is the answer not in the manual?
Questions and answers