Friday, June 17, 2011

Strategy Pattern in ActionScript 3.0

Definition:
「Stratery Pattern defined algorithm family, were packaged together so that they can replace each other between, so that the algorithm change will not affect users using the algorithm.」

Features:
• Define and encapsulate a family of algorithms.
• Make encapsulated algorithms interchangeable.
• Allow algorithms to change independently from the clients that use it.