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

Chapter 18. Debugging > Naming Conventions

Naming Conventions

If you run into problems in Flash concerning your addressing of movie clips, make sure you have named every clip in the target path correctly. This means ensuring there are no extra spaces at the end of the instance names. Also, make sure your movie clips are in the correct order. Be meticulous about the hierarchy and make sure to follow it exactly when writing code in the target path. Any mistyping of letters, different capitalization, or additional spaces will throw the path off and will prevent the code from running properly.

While writing your code, make sure your ActionScript does not conflict with itself. By this I mean that you should place actions on the top layer of every timeline, and name this layer “actions” for good practice. Also, it's usually helpful to not include any graphics, buttons, or movie clips on the top layer. Otherwise, you could mistakenly put two conflicting actions on the same frame. Make sure your variables are set up in a particular way to ensure the success of your project. A variable is set to make sure your project navigates in a certain way. If you have two variables that cancel each other out, parts of your project may become defunct.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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