Using the ActionScript editor
65
To work with menu-style code hints:
1
Display the code hint by typing a period after the variable or object name.
The code hint menu appears.
Note:
If a code hint doesn’t appear, make sure you haven’t disabled code hints on the ActionScript
tab. If you want to display code hints for a variable or object you created, make sure that you have
named your variable or object correctly (see
“Using suffixes to trigger code hints” on page 62
) or
that you have strictly typed your variable or object (see
“Strictly typing objects to trigger code
hints” on page 62
).
2
To navigate through the code hints, use the Up and Down Arrow keys.
3
To select an item in the menu, press Return or Tab, or double-click the item.
4
To dismiss the code hint, do one of the following:
■
Select one of the menu items.
■
Click outside the statement.
■
Type a closing parenthesis [
)
] if you’ve already typed an open parenthesis.
■
Press Escape.
To manually display a code hint:
1
Click in a code location where code hints can appear. Here are some examples:
■
After the dot following a statement or command, where a property or method must
be entered
■
Between parentheses in a method name
2
Do one of the following:
■
Click the Show Code Hint button above the Script pane.
■
Press Spacebar (Windows) or Spacebar (Macintosh).
■
If you are working in the Actions panel, open the pop-up menu (at the right side of the title
bar), and select Show Code Hint.
Using Escape shortcut keys
You can add many elements to a script by using shortcut keys—pressing the Escape key and then
two other keys. (These shortcuts are different from the keyboard shortcuts that initiate certain
menu commands.) For example, if you are working in the Script pane and type d+o, the
following code is placed in your script, and the insertion point is placed immediately following
the word
while
, so you can begin typing your condition:
do {
} while ();
Summary of Contents for FLASH MX 2004 - ACTIONSCRIPT
Page 1: ...ActionScript Reference Guide...
Page 8: ...8 Contents...
Page 12: ......
Page 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Page 54: ...54 Chapter 2 ActionScript Basics...
Page 80: ...80 Chapter 3 Writing and Debugging Scripts...
Page 82: ......
Page 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Page 112: ......
Page 120: ...120 Chapter 6 Using the Built In Classes...
Page 176: ......
Page 192: ...192 Chapter 10 Working with External Data...
Page 202: ...202 Chapter 11 Working with External Media...
Page 204: ......
Page 782: ...782 Chapter 12 ActionScript Dictionary...
Page 793: ...Other keys 793 221 222 Key Key code...
Page 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Page 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Page 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Page 816: ...816 Index...