Locate Actionscript Reference Documentation; Add Comments To Actionscript - MACROMEDIA FLASH 8-FLASH Tutorials Manual

Hide thumbs Also See for FLASH 8-FLASH:
Table of Contents

Advertisement

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
the term.
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.
2.
Along the top of the Actions panel, click the Help icon.
The
entry in the Help panel appears.
visible

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
hide screen movie clip
(Macintosh).
Text in the Script pane appears as follows:
// Initialize document to hide screen movie clip.
this.screen_mc._visible = false;
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.
// Initialize document to
. Press Enter (Windows) or Return
to select
visible

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents