Object-oriented programming in ActionScript