tailieunhanh - Adobe Flash chuyên nghiệp - p 23

Flash provides assistance in the following ways as you write scripts in the Actions panel: • Words that have specific meanings in ActionScript, such as keywords and statements, appear in blue as you type them in the Actions panel. Words that are not reserved in ActionScript, such as variable names, are in black. Strings are in green. Comments, which ActionScript ignores, are in gray. displays a code hint. There are two types of code hints: a tooltip that contains the complete syntax for that action and a pop-up menu that lists possible ActionScript elements. • As you work in the Actions panel, Flash. | Flash provides assistance in the following ways as you write scripts in the Actions panel Words that have specific meanings in ActionScript such as keywords and statements appear in blue as you type them in the Actions panel. Words that are not reserved in ActionScript such as variable names are in black. Strings are in green. Comments which ActionScript ignores are in gray. As you work in the Actions panel Flash detects the action you are entering and displays a code hint. There are two types of code hints a tooltip that contains the complete syntax for that action and a pop-up menu that lists possible ActionScript elements. To check the syntax of a script you re writing click the Check Syntax icon v . Syntax errors are listed in the Compiler Errors panel. You can also click the AutoFormat icon S which will also format the script according to conventions so that it is easier for others to read . Navigating the Actions panel The Actions panel is where you write all your code. Open the Actions panel by choosing Window Actions or byselecting a keyframe on the Timeline and clicking the ActionScript panel icon . on the top right of the Properties inspector. You can also right-click Ctrl-click on any keyframe and select Actions. The Actions panel gives you quick access to the core elements of ActionScript as well as provides you with different options to help you write debug format edit and find your code. ActionScript version Script pane Options Actions toolbox Script navigator ADOBE FLASH PROFESSIONAL CS5 CLASSROOM IN A BOOK 211 Download from Library of Wow ebook The Actions panel is divided into several panes. At the top-left corner is the Actions toolbox which contain categories that organize all the ActionScript code. At the top of the Actions toolbox is a pull-down menu that displays only the code for the version of ActionScript you select. You should select ActionScript the latest version. At the very bottom of the Actions toolbox categories is a yellow Index