![MACROMEDIA FLASH 8-FLASH Скачать руководство пользователя страница 230](http://html2.mh-extra.com/html/macromedia/flash-8-flash/flash-8-flash_tutorials-manual_3348958230.webp)
230 ActionScript: Write Scripts
Locate ActionScript reference
documentation
During authoring, if you’d like additional information about the
ActionScript that you enter, you can select the action in the Actions
toolbox or Script pane and click Reference. The Help panel displays
information about the selected action.
1.
In the Script pane of the Actions panel, double-click
visible
to select
the term.
2.
Along the top of the Actions panel, click the Help icon.
The
visible
entry in the Help panel appears.
Add comments to ActionScript
In ActionScript, text after double slashes (//) is commented text, which
Macromedia Flash Player ignores. Commented text often documents script
functionality so that other developers can understand your script, but you
can also use comments to deactivate sections of your script when
debugging. As a best practice, always add comments that explain your
scripts.
■
In the Script pane of the Actions panel, place the insertion point at the
beginning of the line of code and type
// Initialize document to
hide screen movie clip
. Press Enter (Windows) or Return
(Macintosh).
Text in the Script pane appears as follows:
// Initialize document to hide screen movie clip.
this.screen_mc._visible = false;
NO
T
E
After completing the next step, you’ll change topics in the Help panel and
you will no longer be on this lesson topic. In the Help panel, click the
History Back icon to return to this topic.
NO
TE
If your commented text is many lines, you can use /* instead of double
slashes for the beginning of the comment, and */ to mark the end of the
comment.
Содержание FLASH 8-FLASH
Страница 1: ...Flash Tutorials...
Страница 10: ...10 Contents...
Страница 12: ...12 Introduction...
Страница 42: ...42 Basic Tasks Creating a banner Part 1...
Страница 78: ...78 Basic Tasks Creating a banner Part 3...
Страница 88: ...88 Basic Tasks Create Accessible Flash Content...
Страница 106: ...106 Basic Tasks Create an Application...
Страница 116: ...116 Basic Tasks Use Layout Tools...
Страница 124: ...124 Basic Tasks Create Symbols and Instances...
Страница 134: ...134 Basic Tasks Add Button Animation and Navigation...
Страница 144: ...144 Basic Tasks Create a Presentation with Screens Flash Professional Only...
Страница 192: ...192 Creating Graphics Applying Gradients...
Страница 198: ...198 Creating Graphics Apply Graphic Filters and Blends Flash Professional Only...
Страница 224: ...224 ActionScript Use Script Assist mode...
Страница 268: ...268 ActionScript Work with Objects and Classes...
Страница 270: ...270 Data Integration Overview Flash Professional Only...