# OOP question

**URL:** <https://forum.kirupa.com/t/oop-question/256355>\
**Category:** flash\
**Created:** [April 2, 2008, 12:34pm UTC](https://forum.kirupa.com/t/oop-question/256355 "2008-04-02T12:34:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maqrkk](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@Maqrkk](https://forum.kirupa.com/u/Maqrkk)\
**Post date:** [April 2, 2008, 12:34pm UTC](https://forum.kirupa.com/t/oop-question/256355/1 "2008-04-02T12:34:03Z")

</div>

Hello,

I’m not really new to Flash, but I just need some advice or opinions.

I got a document class Control, and a Ball class.  
I want to move the ball with the keyboard. In which class should I check for keyboardinput? Should I check in the Control and then move the ball from Control, or pass parameters and move the ball in Ball. Should I check in Ball?

Hope someone can help me decide.
