MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH Manual page 55

Learning actionscript 2.0 in flash
Table of Contents

Advertisement

3.
Click Find Next.
If the text or characters are present in the script, the words or characters will be
highlighted in the Script pane.
To find and replace text in a script:
1.
From the Actions panel or Script window toolbar, click the Find tool or press Control+F
(Windows) or Command+F (Macintosh).
2.
Enter the search string that you want to locate and replace in the script.
3.
In the Replace text box, enter the new string.
4.
Click Find Next.
If the string is present in the script, it is highlighted.
5.
Click Replace to replace the string, or click Replace All to replace all occurrences of
the string.
After you've entered a search string in the Find tool, you can repeat the search by selecting
Find Again from the pop-up menu.
Checking syntax and punctuation
To determine whether the code you wrote performs as planned, you need to publish or test
the file. However, you can do a quick check of your ActionScript code without leaving the
FLA file. Syntax errors are listed in the Output panel. You can also check to see if a set of
parentheses, curly braces, or brackets around a block of code is balanced.
When you check syntax, the current script is checked. If the current script calls
ActionScript 2.0 classes, those classes are compiled and their syntax is also checked. Other
scripts that might be in the FLA file are not checked.
To check syntax, do one of the following:
Click Check Syntax in the Actions panel or Script window toolbar.
In the Actions panel, select Check Syntax from the pop-up menu.
Select the Script pane (so it has focus), and then press Control+T (Windows) or
Command+T (Macintosh).
If you click Check Syntax in an external ActionScript 2.0 class file in the Script
window, the global class path affects this process. Sometimes you will generate
errors—even if the global class path is set correctly—because the compiler is not
aware that this class is being compiled. For more information on compiling classes,
see
"Compiling and exporting classes" on page
280.
About coding in the Actions panel and Script window
55

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents