[AS3] Hitboxes and Graphics?
I'm new to flash development, so far I can create classes and have it so there's a collision detection, there's a problem though, the hit-detection works on the basis of the entire movieClips size that is created. I could make it a weird way, or I could do it with hitboxes. I did this by making the movieclip with the graphics position equal the hitboxes position, this causes a problem because later down the track i would have to create a graphic entity and a hitBox entity.
So far I only really understand that when you create a class you choose which libraries go with it and which movieClip it extends from, the movieClip it extends from has the graphic already in it.
What I'm trying to say is how do i separate graphics from hitboxes in one single class?