Specifications

Apply ActionScript syntax 229
4. Click in the Script pane, at the end of the screen_mc text, and type
a period (
.).
5. When you type the period, code hints appear for the movie clip, because
you used the _mc suffix when naming the instance. Double-click
_visible from the list of code hints, and type the following:
= false;
This line of code makes the screen_mc movie clip invisible on
the Stage.
Throughout authoring, remember to save your document frequently.
Apply ActionScript syntax
All languages, whether computer languages or written and spoken
“human languages, follow specific rules that foster comprehension. These
rules are known as the language syntax.
Flash uses dot syntax, which means that the period (.) links parts of a
script. Other ActionScript syntax elements include the following:
A semicolon (;) in an ActionScript statement, like a period in an
ordinary sentence, indicates the end of a statement.
Parentheses () group arguments that apply to an ActionScript
statement.
Curly braces {} group related ActionScript statements. You can use
nested braces to create a hierarchy of statements.
Later in this lesson, you’ll use Flash features that allow you to test
your syntax.
NOTE
If code hints don’t appear, you don’t have code hints selected as a
preference in the Actions panel. You can type
_visible directly in the
Script pane. You can also change your preferences by clicking the pop-up
menu in the upper-right corner of the Actions panel. From the pop-up
menu, select Preferences, and then select Code Hints on the ActionScript
tab.