Friday, June 17, 2011

Strategy Pattern in ActionScript 3.0

「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.」

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