When you create a Flash Media Server 2 application, you typically place
emphasis on optimizing the quality of the communications. That is certainly
as it should be. Likewise, quality object-oriented programming (OOP) is
another priority. One standard in OOP is design patterns-abstract concepts
for solving recurring problems using designs that optimize OOP when you apply
them appropriately. The seminal work in design patterns is Design Patterns:
Elements of Reusable Object-Oriented Software by Erich Gamma, Richard Helm
Ralph Johnson, and John Vlissides, affectionately known as "The Gang of Four"
or simply GoF.
One design pattern in particular, the state design pattern (or SDP), focuses
on the different states in an application, transitions between states, and
the different behaviors within a state. A simple Flash video player
application, for example, has two states... (more)