From the course: Flash Professional CS5 Essential Training

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Understanding code snippets

Understanding code snippets

Let's take a look at the Code Snippets panel. Remember you can access the Code Snippets panel through the panel icon or through Window > Code Snippets. Code Snippets allow you to apply simple interactivity to your applications. The Code Snippets panel is divided up into folders, so you have general actions like clicking to go to a Web page, creating a custom mouse cursor, adding drag and drop interactivity, etcetera. Then you have Timeline navigation. Just like the name implies, these blocks of code enable you to navigate through a Timeline. Animation allows you to apply ActionScript animation to objects. Load and Unload can load SWF files and images, both from the Library and as external files. Audio and Video allows you to manipulate audio and video. And Event Handlers give you simple interactivity like a mouse click or a mouse over or a key pressed event. Let's just quickly look at one of these blocks of code and I will walk you through how it works once it's entered into the…

Contents