Using Director > Navigation and User Interaction > Creating basic navigation controls with behaviors |
![]() ![]() ![]() |
Creating basic navigation controls with behaviors
Director provides behaviors that allows you to create basic navigation controls without knowing Lingo. You can use behaviors to move the playback head to a frame number or marker. You can also stop the playback head at any frame and wait for the user to act.
The following examples explain the basic use of the Hold on Current Frame
and Go Next Button
behaviors. You can also create your own navigation behaviors or get them from third-party developers.
To use basic navigation behaviors:
1 |
Create a movie that contains a sprite in frame 1, and at least one marker in a later frame. |
2 |
Choose Window > Library Palette and select the Navigation library. |
3 |
Drag |
Typically, you use this behavior in a frame that requires user interaction such as selecting a menu command. |
|
4 |
Play the movie. |
The playback head remains in frame 1 where you attached the behavior. Notice that the movie is still playing, but the playback head remains on the single frame. Use |
|
5 |
Stop the movie. |
6 |
Drag the |
7 |
Rewind and play the movie again. |
The playback head is again stopped in the first frame by the |
|
8 |
Click the sprite to which you attached the |
The playback head jumps to the frame containing the next marker and continues playing. |
|
![]() |
![]() ![]() ![]() |