Proper naming conventions

Remember function, variable, and parameter names can be anything you like, as long as they are not the same as a Flash reserved word, such as  ”trace” or “var” Also they cannot contain spaces or special characters

Function Names and Variable names should also be in “camelCase” which means the first word should start in lowercase and each following word should be capitalized

Examples of correct names:

  • mySum
  • addTenTimes
  • mySum2
  • hello
  • helloWorld

Examples of incorrect names:

  • MySum
  • add ten times!
  • addTenTimes&$&#*
  • hello-world

Post a comment

You may use the following HTML:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>