Learning ActionScript 2.0 in Adobe Flash |
|
|
|
| Functions and Methods > Understanding methods > Naming methods | |||
You should use verbs to name methods, and words with mixed cases for concatenated words, making sure that the first letter is lowercase. For example, you might name methods in the following ways:
sing(); boogie(); singLoud(); danceFast();
You use verbs for most method names because methods perform an operation on an object. As with variables, you cannot use special characters, and the method name cannot start with a number. For more information, see Naming conventions.
|
|
|
|