Design Pattern AS3