About coding in the Actions panel and Script window
45
About triggering code hints
When you work in the Actions panel or Script window, Flash can detect what action you are
entering and display a
code hint.
The two different styles of code hint are a tooltip that
contains the complete syntax for that action, and a pop-up menu that lists possible method or
property names (sometimes referred to as a form of
code completion
). A pop-up menu appears
for parameters, properties, and events when you use strict typing or naming for your objects,
as discussed in the rest of this section.
Code hints sometimes appear if you double-click an item in the Actions toolbox or click Add
(+) in the Actions panel or Script window toolbar to add actions to the Script pane. For
information on using code hints when they appear, see
“Using code hints” on page 45
.
To ensure that code hints are enabled, the Code Hints options must be selected in the
ActionScript Preferences dialog box. For more information, see
“About the Actions panel”
on page 36
.
Using code hints
Code hints are enabled by default. By setting preferences, you can disable code hints or
determine how quickly they appear. When code hints are disabled in preferences, you can still
display a code hint for a specific command.
To specify settings for automatic code hints, do one of the following:
■
In the Actions panel or Script window, select Edit > Preferences (Windows) or Flash >
Preferences (Macintosh), click ActionScript in the Category list, and then enable or
disable Code Hints.
■
In the Actions panel, select Preferences from the pop-up menu (at the upper-right of the
Actions panel) and enable or disable Code Hints in the ActionScript preferences.
If you enable code hints, you can also specify a delay in seconds before the code hints should
appear. For example, if you are new to ActionScript, you might prefer no delay, so that code
hints always appear immediately. However, if you usually know what you want to type and
need hints only when you use unfamiliar language elements, you can specify a delay so that
code hints don’t appear when you don’t plan to use them.
NO
TE
Code hinting is enabled automatically for native classes that don’t require you to create
and name an instance of the class, such as Math, Key, Mouse, and so on.
Содержание FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
Страница 1: ...Learning ActionScript 2 0 in Flash...
Страница 8: ...8 Contents...
Страница 18: ...18 Introduction...
Страница 30: ...30 What s New in Flash 8 ActionScript...
Страница 66: ...66 Writing and Editing ActionScript 2 0...
Страница 328: ...328 Interfaces...
Страница 350: ...350 Handling Events...
Страница 590: ...590 Creating Interaction with ActionScript...
Страница 710: ...710 Understanding Security...
Страница 730: ...730 Debugging Applications...
Страница 780: ...780 Deprecated Flash 4 operators...
Страница 830: ...830 Index...