Hi all, I have a question that should be easy to answer, but I somehow haven’t found an answer to yet.
I’ve been coding in AS3 for two years now but still carry with me old AS2 habits which might explain why I find it hard to reuse custom classes without having to rewrite them for each project.
Say I have a ClipDragger class where event listeners (MOUSE_DOWN and MOUSE_UP) are added to any MovieClip I choose, which fires methods that invoke startDrag and stopDrag. This is great whenever drag and drop is all I need, but say I want to add an action to the MOUSE_DOWN function/method (for instance play an animation inside a movieclip) and add an extra event listener (MOUSE_MOVE). How would I best accomplish this without writing a new custom class?