Check Syntax And Test Your Application - MACROMEDIA FLASH 8-FLASH Tutorials Manual

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

Advertisement

Check syntax and test your
application
As you learned earlier in this lesson, ActionScript depends on correct
syntax to execute properly. Flash offers a variety of ways for you to test
your syntax.
1.
To check the syntax, do one of the following:
Click the pop-up menu in the upper-right corner of the Actions
panel title bar and select Check Syntax.
Click Check Syntax along the top of the Actions panel.
If the syntax is correct, a message appears stating that the script
contains no errors.
If the syntax is incorrect, a message appears stating the script contains
errors; the Output panel opens and displays information about
the error.
2.
Click OK to close the syntax message.
3.
After you've verified that your ActionScript does not contain syntax
errors, save the document and select Control > Test Movie.
When the SWF file appears, the animation should not appear in the
Global Positioning System screen, because its initial
is set to
. When you click and release the top green button, you
false
call the function that sets the movie clip's
Does the animation play then? Finally, click the red Off button to see if
the
property for the animation is again
visible
You can test your SWF content throughout authoring to confirm that
it plays as expected.
property
visible
property to
visible
true
.
false
.

Check syntax and test your application 233

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-FLASH and is the answer not in the manual?

Table of Contents

Save PDF