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

Avoiding Common Mistakes

When trouble-shooting your Flash movie, there are a few obvious places where you should look first to locate the problem. These mistakes usually involve some simple but critical element, such as overlooking quotation marks or a relative path term, or forgetting to name an instance. Pay close attention to the following warning list to ensure that all your Flash movies are free of bugs.

To avoid common mistakes:

Double-check the data type of your values. Review the Actions List to make sure that quotation marks are only around string data types. The keyword this should not be within quotation marks. Movie-clip target paths can be within quotation marks, but it's good practice to keep them as expressions.

Double-check the target paths for your movie clips, variables, and objects.

Remember to name your movie-clip instance.

Check to see if ActionScript statements are within the correct parentheses or curly braces in the Actions List. For example, statements belonging to an if statement or to an onClipEvent statement are contained within their curly braces.

Check to see if the correct event has been selected for your button or movie-clip instance (mouse event or clip event).

Place a stop action in the first keyframe of a movie clip to prevent it from playing automatically and looping.

Make sure your button symbol contains a defined area in the Hit keyframe.

To test simple actions and simple buttons, remember to choose Enable Simple Frame Actions and Enable Simple Buttons from the Control menu.

Remember that the default setting for your Flash movie in the testing mode is to loop.



Not a subscriber?

Start A Free Trial

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