• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 14. Learning ActionScript > Troubleshooting ActionScript

Troubleshooting ActionScript

  • Variables with the same name can exist in the root timeline as well as every movie clip instance. Make sure you know which one you're referencing, or better yet, make sure all your variable names are distinct.

  • Be sure you're not using a reserved keyword for custom functions or variable names. If you use one that already does something else, your script might not run—or if it does, it might not do what you're expecting it to. The Colored Syntax option in the Actions panel menu can help with this. Select the option from the menu and the reserved keywords show up in blue.

  • Don't delete movie clip instances without checking that they contain an important piece of code first. Scripts attached to a movie clip instance (as opposed to being contained in a symbol's timeline) are deleted when the instance is deleted. After they're gone, they're gone.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint