actionscript 3

Some notes to help me code as3 -

A Package is a collection of classes.

A Class is a template for objects; objects are instantiations of classes.

When naming a class (the .as file) the naming convention is to start with a capital letter: CustomClass, not customClass or customclass

The main function in a class is the constructor function. The constructor function automatically runs when the class is first created.

package
{
     import flash.display.MovieClip; //to use MovieClip it must be expressly imported

     public class HelloWorld extends MovieClip //class must be public to be called
     {
          public function HelloWorld() //constructor function
          {
               trace("hello world");
          }

          private function myFunction():void //method
          {
               trace("I am a method");
          }
     }
}