Creating basic navigation controls with behaviors
Director provides behaviors that let you create basic navigation controls without knowing Lingo.
You can use behaviors to move the playhead to a frame number or marker. You can also stop the
playhead at any frame and wait for the user to act.
The following examples explain the basic use of the
behaviors. You can also create custom navigation behaviors or get them from third-party
Button
developers. For information on using behaviors, see Chapter 14, "Behaviors," on page 357.
To use basic navigation behaviors:
Create a movie that contains a sprite in frame 1 and at least one marker in a later frame.
1
Select Window > Library Palette, and select the Navigation library.
2
Drag
3
Hold on Current Frame
Typically, you use this behavior in a frame that requires user interaction such as selecting a
menu command.
Play the movie.
4
The playhead remains in frame 1 where you attached the behavior. Notice that the movie is
still playing, but the playhead remains on the single frame. Use the
to send the playhead to a new frame and continue playing, as described in the following steps.
Stop the movie.
5
Drag the
6
Go Next Button
Rewind and play the movie again.
7
The playhead is again stopped in the first frame by the
Click the sprite to which you attached the
8
The playhead jumps to the frame that contains the next marker and continues playing.
Adding push buttons, radio buttons, and check boxes
Director MX provides several built-in user interface elements for quickly adding interactivity to
your movies. These elements include push buttons, radio buttons, and check boxes.
To add a push button, radio button, or check box:
Open the Tool palette by selecting Window > Tool Palette, if it's not already open.
1
Select the Push Button, Radio Button, or Check Box tool in the Tool palette.
2
Check Box
Radio Button
Push Button
Click and drag on the Stage to create the selected button type.
3
Type a label in the text area next to the button or check box.
4
374
Chapter 15
Hold on Current Frame
to frame 1 in the script channel.
behavior from the Library palette to the sprite in frame 1.
Go Next Button
and
Go Next Button
Hold on Current Frame
behavior.
Go Next
behavior
behavior.
Need help?
Do you have a question about the DIRECTOR MX-USING DIRECTOR MX and is the answer not in the manual?