# Thoughts on patterns

**URL:** <https://forum.kirupa.com/t/thoughts-on-patterns/238959>\
**Category:** Uncategorized\
**Created:** [September 17, 2007, 3:06pm UTC](https://forum.kirupa.com/t/thoughts-on-patterns/238959 "2007-09-17T15:06:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hakukaji](https://avatars.discourse-cdn.com/v4/letter/h/43a26b/32.png) [@hakukaji](https://forum.kirupa.com/u/hakukaji)\
**Post date:** [September 17, 2007, 3:06pm UTC](https://forum.kirupa.com/t/thoughts-on-patterns/238959/1 "2007-09-17T15:06:47Z")

</div>

I’ve been playing around with AS3 for about a month now, and I’m working on a simple game engine, and I’m curious about pattern use in AS3, and how others have done certain things.

I have a Character class, and I would like the option to move the character with the mouse or keyboard, depending on the game being made. I was going to extend Character with KeyboardMoveableCharacter and MouseMoveableCharacter, should I stick the keyboard/mouse code in these classes or create their own classes and implement them in the extended classes?

UGh this was harder to convey then I thought it would be. Any help/ideas on pattern usage would be great, I have been using patterns in PHP,Python,Java for years now, and have a pretty firm grasp on OOP style programming, I just would like some real world examples of patterns being used in AS3. I have a copy of “Advanced ActionScript3 With Design Patterns”, and it’s pretty decent, just seems a little light on examples.
