![MACROMEDIA FLASH 8-FLASH Tutorials Manual Download Page 233](http://html2.mh-extra.com/html/macromedia/flash-8-flash/flash-8-flash_tutorials-manual_3348958233.webp)
Check syntax and test your application 233
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
visible
property
is set to
false
. When you click and release the top green button, you
call the function that sets the movie clip’s
visible
property to
true
.
Does the animation play then? Finally, click the red Off button to see if
the
visible
property for the animation is again
false
.
You can test your SWF content throughout authoring to confirm that
it plays as expected.
Summary of Contents for FLASH 8-FLASH
Page 1: ...Flash Tutorials...
Page 10: ...10 Contents...
Page 12: ...12 Introduction...
Page 42: ...42 Basic Tasks Creating a banner Part 1...
Page 78: ...78 Basic Tasks Creating a banner Part 3...
Page 88: ...88 Basic Tasks Create Accessible Flash Content...
Page 106: ...106 Basic Tasks Create an Application...
Page 116: ...116 Basic Tasks Use Layout Tools...
Page 124: ...124 Basic Tasks Create Symbols and Instances...
Page 134: ...134 Basic Tasks Add Button Animation and Navigation...
Page 144: ...144 Basic Tasks Create a Presentation with Screens Flash Professional Only...
Page 192: ...192 Creating Graphics Applying Gradients...
Page 198: ...198 Creating Graphics Apply Graphic Filters and Blends Flash Professional Only...
Page 224: ...224 ActionScript Use Script Assist mode...
Page 268: ...268 ActionScript Work with Objects and Classes...
Page 270: ...270 Data Integration Overview Flash Professional Only...