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