PDA

View Full Version : [FMX]Some questions on classes.



dAEL
May 23rd, 2005, 06:25 PM
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. =)

senocular
May 23rd, 2005, 08:09 PM
so you read the kirupa OOP tutorials?

dAEL
May 23rd, 2005, 11:00 PM
woops, missed the one with hitTest (pong type game tutorial) and know i feel like a ******* :diss: , sorry about that