Flash Carousel3D Component provides three hook parameters for event handling:
eventHandlerOnOut:String: On mouse rolling out a slide
eventHandlerOnOver:String: On mouse rolling over a slide
eventHandlerOnPress:String: On mouse pressing on a slide
You can define your own event handling function, and specify the parameter to the name of your function.
public function initDemo():void
{
stop();
demoSlide.photoListXMLFile = "images.xml";
demoSlide.eventHandlerOnPress = "onPhotoClick";
demoSlide.eventHandlerOnOver = "onPhotoOver";
demoSlide.eventHandlerOnOut = "onPhotoOut";
}
function onPhotoClick(index:int):void
{
trace("You clicked photo: " + index);
}
function onPhotoOver(index:int):void
{
trace("You entered photo: " + index);
}
function onPhotoOut(index:int):void
{
trace("You leaved photo: " + index);
}
The downloaded package includes a demp project: demo_event.


