Adobe Flash CS3: The Professional Portfolio- P45:Now you can easily create web-ready images and animations within the familiar Adobe environment. With the recent acquisition of Macromedia, Adobe has added Flash to its suite of creative products, thus solidifying its position as the world's leading developer of graphic and visual communications tools. The Against The Clock Portfolio Series Flash title ensures that you'll learn everything you need to complete any job that requires Flash skills | Events are the triggers that an object can react to . clicking a button or the playhead crossing a certain frame on the timeline An event listener tells Flash when and how to react. - An event handler defines what happens when Flash hears the event in the event listener. Essentially the code says When A happens do B. In this plain-English example the entire statement is the event listener A is the event and B is the event handler. Function is simply a generic term for an overall chunk of code. A function can include the object that will be affected the event that causes the action and the method that will be applied as a result of the event. Understanding Dot Syntax Scripting in ActionScript 3 uses something called dot syntax to apply different script commands to different objects. For example 350 Because you aren t attaching a script to a specific object you first have to tell the script what object you want to affect with a specific action. The first part of the script then identifies the object you are targeting. In this example the script will affect an object with the instance name char4. The second part of the script y 350 is the object you want to affect with the action. In this case the line of code moves the char4 object vertically the y axis on the Stage. The dot that separates the object from the action is where the term dot syntax comes from. Note Syntax refers to the structure of the language including placing all the special characters in the proper order. Leaving out a single character such as a semicolon can render the code unreadable when the movie is exported known as a syntax error . Use Functions to Control Movie Cup Timelines Before you can begin programming the actual game functionality you need to exercise some control over the movie clips in the file. You need to Stop the background movie clip from moving until the race starts. Prevent the background movie clip from looping when it reaches the final frame. Loop the Lila animation