# \[FMX\]Some questions on classes

**URL:** <https://forum.kirupa.com/t/fmx-some-questions-on-classes/148829>\
**Category:** Uncategorized\
**Created:** [May 23, 2005, 10:25pm UTC](https://forum.kirupa.com/t/fmx-some-questions-on-classes/148829 "2005-05-23T22:25:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dAEL](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@dAEL](https://forum.kirupa.com/u/dAEL)\
**Post date:** [May 23, 2005, 10:25pm UTC](https://forum.kirupa.com/t/fmx-some-questions-on-classes/148829/1 "2005-05-23T22:25:32Z")

</div>

Alrighty, for my entire career in flash I’ve been coding straight in the movie. After finishing my AP Comp Sci course (and finishing high school WOOOOO), I started to get curious about Flash and classes. I’ve bumped into some great tutorials on Kirupa but some things are still left answered.

1. Can I do a hitTest with a generic class as opposed to a specific object? For instance, currently when I make a map, I will do a hitTest that looks something like (\_root.level.hitTest(char.\_x, char.\_y, true)), and ill add a given amount to either X or Y depending on the direction your char is moving.

2. Graphics in classes? I know you can do it, I just have no idea how.

Thanks in advance for any help. =)
