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.
-
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.
-
Graphics in classes? I know you can do it, I just have no idea how.
Thanks in advance for any help. =)