Bookmark and Share

How to track events of slide switch, mouse click, over and out?

Print

Flash Slide3D Component provides four 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

eventHandlerOnSwitch:String: On slide switching

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";
demoSlide.eventHandlerOnSwitch = "onPhotoSwitch";
}

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);
}

function onPhotoSwitch(index:int):void
{
trace("The front photo now is: " + index);
}

The downloaded package includes a demp project: demo_event.

 

Newsletter





Payment Method


Flash Components Set


Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /usr/www/users/mtoolsft/mtoolcomponents/content/libraries/joomla/cache/handler/callback.php on line 99

Flash Slideshow


Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /usr/www/users/mtoolsft/mtoolcomponents/content/libraries/joomla/cache/handler/callback.php on line 99

Flash Animation Effects


Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /usr/www/users/mtoolsft/mtoolcomponents/content/libraries/joomla/cache/handler/callback.php on line 99

Flash Preloader Components


Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /usr/www/users/mtoolsft/mtoolcomponents/content/libraries/joomla/cache/handler/callback.php on line 99