In This Chapter
Adding actions to the timeline
Creating button controls
Applying code snippets
Enabling buttons with ActionScript
Whether you're creating a Web site, presentation, or game, a truly interactive experience is one in which users can control the action. If you want to take your movies to the next level, ActionScript can help. The built-in Flash scripting language has come a long way and can help you do anything from control movie playback to create complex games.
This chapter introduces you to ActionScript and shows you how to use it to create interactive elements, such as clickable buttons, in your movies.
ActionScript is a powerful scripting language that you can incorporate into your movies to control playback, navigation, and imported media, such as images, video, and audio. ActionScript is written as a series of commands (or statements) that are placed on the timeline, buttons, movie clip, and external files using the Actions panel and the new Code Snippets panel. Think of ActionScript as a set of instructions you can give your movie to tell it how to behave and add abilities.
ActionScript is often used for timeline control so that animations can be told when and where to stop, loop, play, or jump to other points along a timeline. You can also make truly interactive movies by adding ActionScript to buttons on the stage so that users can control the animation, too.