Adobe Flash Professional CS6 Adobe Flash Professional CS6 Classroom In A Book | Page 235

P Note: Change the automatic formatting by selecting Preferences from the upper-right options menu. Choose Auto Format from the left menu and select the various options for formatting your code. 2 Click the Check Syntax button at the top of the Actions panel. Flash checks the syntax of your ActionScript code. In the Compiler Errors panel (Window > Compiler Errors), Flash notifies you if there are errors or if your code is error-free. You should get 0 Errors and 0 Warnings if your code is correct. 3 Click the AutoFormat icon at the top of the Actions panel. Flash formats your code so it conforms to standard spacing and line breaks. Creating Destination Keyframes When the user clicks each button, Flash moves the playhead to a new spot on the Timeline according to the ActionScript instructions you just programmed. However, you haven’t yet placed anything different at those particular frames. That’s the next step. inserting keyframes with different content You will create four keyframes in a new layer and place information about each of the restaurants in the new keyframes. 1 Insert a new layer at the top of the layer stack but below the actions layer and rename it content. 2 Select frame 10 of the content layer. 226 Lesson 6 Creating Interactive navigation