# AS3 OOP Best Practices

**URL:** <https://forum.kirupa.com/t/as3-oop-best-practices/244936>\
**Category:** flash\
**Created:** [November 23, 2007, 7:33pm UTC](https://forum.kirupa.com/t/as3-oop-best-practices/244936 "2007-11-23T19:33:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sekka](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sekka/32/2794_2.png) [@Sekka](https://forum.kirupa.com/u/Sekka)\
**Post date:** [November 23, 2007, 7:33pm UTC](https://forum.kirupa.com/t/as3-oop-best-practices/244936/1 "2007-11-23T19:33:06Z")

</div>

Hey,

I am looking for some opinions on best practices for coding using OOP.

I have been away from Flash for a while, and I am getting back into it at the moment for a project at University. I am diving right in to AS3, will make it easier in the long run I hope.

Anyway, I am making a poker game, texas hold’em. I have made classes for the cards and the deck. I am dealing with raw data at the moment, and I am getting to the point where I want things to happen on the stage.

Do I create different classes to control the display on the stage? Or do I combine the attaching and animation of movieclips within the classes for cards, etc?

I am thinking it is the latter, but I would like other people’s opinions.

Thanks,

Steve
