Creating Interaction with ActionScript > Creating interaction with ActionScript: Overview
Creating interaction with ActionScript: OverviewAn interactive movie involves your audience. Using the keyboard, the mouse, or both, your audience can jump to different parts of movies, move objects, enter information, click buttons, and perform many other interactive operations.
You create interactive movies by setting up scripts that run when specific events occur. Events that can trigger a script occur when the playhead reaches a frame, when a movie clip loads or unloads, or when the user clicks a button or presses keys on the keyboard. You use ActionScript to create scripts that tell Flash what action to perform when the event occurs.
The following basic actions are common ways to control navigation and user interaction in a movie:
![]() |
Playing and stopping movies |
![]() |
Adjusting a movie's display quality |
![]() |
Stopping all sounds |
![]() |
Jumping to a frame or scene |
![]() |
Jumping to a different URL |
![]() |
Checking whether a frame is loaded |
![]() |
Loading and unloading additional movies |
For detailed information on these actions, see Flash Help.
To create more complex interactivity, you need to understand the following techniques:
![]() |
Creating a custom cursor |
![]() |
Getting the mouse position |
![]() |
Capturing keypresses |
![]() |
Creating a scrolling text field |
![]() |
Setting color values |
![]() |
Creating sound controls |
![]() |
Detecting collisions |