Yeah I've tried this, quickly plugging it in I get:
a value of type "void (MyClass::*)(AnimationState *state, int trackIndex, EventType type, Event *event, int loopCount)" cannot be assigned to an entity of type "spAnimationStateListener"
this is spAnimationStateListener: typedef void (*spAnimationStateListener) (spAnimationState* state, int trackIndex, spEventType type, spEvent* event, int loopCount);