Finding and replacing text

When you find and replace text, you can enter the text string to find and the text string with which to replace it. You can select options for searching by whole word, for matching case, and for selecting which type of text element (text field contents, ActionScript strings, and so on) to include in the search.

To find and replace text:

  1. Select Edit > Find and Replace.
  2. Select Text from the For pop-up menu.
  3. In the Text text box, enter the text that you want to find.
  4. In the Replace with Text text box, enter the text that you want to use to replace the existing text.
  5. Select options for searching text:

    Whole Word searches for the specified text string as a whole word only, bounded on both sides by spaces, quotes, or similar markers. When Whole Word is deselected, the specified text can be searched as part of a larger word. For example, when Whole Word is deselected, the word place can be searched as part of the word replace.

    Match Case searches for text that exactly matches the case (upper- and lowercase character formatting) of the specified text when finding and replacing.

    Regular Expressions searches for text in regular expressions in ActionScript. An expression is any statement that Flash can evaluate that returns a value. For more information, see ActionScript Reference Guide Help.

    Text Field Contents searches the contents of a text field.

    Frames/Layers/Parameters searches frame labels, layer names, scene names, and component parameters.

    Strings in ActionScript searches strings in ActionScript in the document or scene (external ActionScript files are not searched).

  6. Select Live Edit to select the next occurrence of the specified text on the Stage and edit it in place.

    Note: Only the next occurrence is selected for live editing, even if you select Find All in step 6.

  7. To find text, do one of the following:
    • Click Find Next to find the next occurrence of the specified text.
    • Click Find All to find all occurrences of the specified text.
  8. To replace text, do one of the following:
    • Click Replace to replace the currently selected occurrence of the specified text.
    • Click Replace All to replace all occurrences of the specified text.