Display hidden characters, Find text in a script – Adobe Flash Professional CS3 User Manual

Page 403

Advertising
background image

FLASH CS3

User Guide

397

Display hidden characters

Characters such as spaces, tabs, and line breaks are hidden in ActionScript code. You may need to display these
characters; for example, you must find and remove double-byte spaces that are not part of a string value, because they
cause compiler errors.

From the panel menu

(at the upper-right corner of the Actions panel), Select Hidden Characters.

Press Control+Shift+8 (Windows) or Command+Shift+8 (Macintosh).

The following symbols are used to display hidden characters.

Find text in a script

The Find tool lets you find and replace text strings in your scripts.

Note: To search through text in every script in a Flash document, use the Movie Explorer.

See also

“Use the Movie Explorer” on page 42

Find text

1

In the Actions panel or Script window, click Find

or press Control+F (Windows) or Command+F

(Macintosh).

2

Enter the search string.

3

Click Find Next.

Find and replace text in a script

1

In the Actions panel or Script window, click Find

or press Control+F (Windows) or Command+F

(Macintosh).

2

Enter the search string.

3

In the Replace box, enter the new string.

4

Click Find Next.

5

To replace the string, click Replace; to replace all occurrences of the string, click Replace All.

Repeat a search in the Actions panel

From the panel menu

(at the upper-right corner of the Actions panel), select Find Again.

Repeat a search in the Script window

Select Edit > Find Again.

Hidden character

Symbol

Single-byte space

.

Double-byte space

l

Tab

>>

line break

Advertising