Object-Oriented ActionScript
- Polymorphism
- Inheritance
- Encapsulation
Classes and Interfaces
ActionScript requires classes/interfaces to be declared in a package and the explicit import of used classes/interfaces that are not in the same package.
Class Definition
ActionScript class definition:
package packageName { import another.packageName.*; public class ClassName extends SuperClassName implements InterfaceName { public ClassName() { // constructor } } }
ActionScript also supports dynamic classes.
Interface Definition
ActionScript interface definition:
package packageName { public interface InterfaceName extends AnotherInterface { // public not necessary (and not allowed) function methodName():void; } }
ActionScript Interfaces do not allow property definitions.

