In the Photo Slide application I showed you how to add interactivity to a Papervision 3D application. Two classes were created to allow objects to respond to mouse click events: PickableObjectManager and PickableObject. PickableObjectManager was responsible for feeding the mouse coordinates into the Papervision Viewport hitTestPoint2D function, and then determining if any PickableObject had indeed been clicked on. The PickableObject class in turn simply received these events and expose appropriate functions to extending classes
In the Photo Slide application the PickableObjectManager class (and therefore the PickableObject class) could only respond to a mouse click. In this sample application I have extended the PickableObjectManager class to allow it to determine if a PickableObject is under the mouse pointer as well as being able to detect if a PickableObject was clicked on. I have used this extended functionality to highlight the photo under the mouse pointer with a standard Flash GlowEffect.
discuss this topic to forum
