ActionScript as an Object-Oriented Language

Working with an object-oriented mentality opens the door to a new manner of programming. ActionScript lets you flexibly develop rich Internet applications (RIAs) when you program according to the four OOP principles:

  • Encapsulation: ActionScript allows for the compartmentalization of behaviors and data into a class.
  • Polymorphism: Objects within a hierarchy can respond to the operations defined by their hierarch, when indistinguishably messaged by the client.
  • Inheritance: Like every class in the API, a custom class is an extension of the most generalized class in the language. This most basic class is appropriately called Object. The Object class makes it possible to add custom classes to a system, as ...

Get AdvancED ActionScript 3.0: Design Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.