Code I // An Example of a Prototype Object // Constructor Function function MyObj(){} // Inheriting From MovieClip MyObj.prototype = new MovieClip(); // Specify a Method MyObj.prototype.method = function(){ trace("Hello World"); }; Code II // An Example of a Class // MyObj.as // Defines Class and Inherits From MovieClip class MyObj extends MovieClip{ // Constructor Function function MyObj(){} // Specifies a Method function method(){ trace("Hello World"); } } Code III // An Example of a Class Definition // Inheriting From MovieClip class MyObj extends MovieClip{ // An example delegation var inheritedMethod = AnotherClass.prototype.method; // Constructor Function function MyObj(){} // Specifies a Method function method(){ trace("Hello World"); } } Code IV // Specify a getter Method MyObj.prototype.getter = function(){ return this.$_prop; }; // Specify a setter Method MyObj.prototype.setter = function(value){ this.$_prop = value; }; // Adds the Property "Prop" to the prototype of MyObj MyObj.prototype.addProperty("_prop",function(){ this.getter()},function(value){this.setter(value)}); Code V // Class Property Example class MyObj extends MovieClip{ var m_prop; // Defines a getter for Prop function get _prop(){ return m_prop; } // Defines a setter for Prop function set _prop(value){ m_prop = value } } Code VI // Public Private and Static Example // Defines a static method class MyObj extends MovieClip{ static function statFunc(){} // Defines a public method public function pubFunc(){} // Defines a private method private function privFunc(){} } Code VII // Example of Casting var MyList:List = new List(); MyArray.addNewVlaue(1); // Returns **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 2: There is no method with the name 'addNewVlaus'. Code VIII // Prototype Example of Declaring an instance Variable function MyObj(){} MyObj.prototype.method = function(value){ this.someVar = value. }; Code IX class MyObj{ private var m_someVar function method(value){ m_someVar = value } }