Ken Burns effect With SlideShowPro
Actionscript, Flash | (17)
This is an implementation of the ken Burns effect into SSP component, the code is not strict at all and should be put on timeline, if you need a class version, let me know.
Take care this code is for FLASH8 and actionscript 2.
All comments are welcome
1) Tweening and bitmap classes
[as]
#include "lmc_tween.as"
import flash.display.BitmapData;
[/as]
2) Static variables initialisation
[as]
// taille de la photo d'origine
ORIGINSCALE = 100;
// redimensionnement maximum
DESTINATIONSCALE = 110;
// Durée totale du tweening
TWEENDURATION = my_ssp.imagePause + my_ssp.imageFade * 2;
// durée du fade
FADEDURATION = my_ssp.imagePause * 1000;
[/as]
3) Object and SSp events and listener
[as]
myListener = new Object ();
myListener.imageData = _imageData;
my_ssp.addEventListener ("imageData", myListener);
[/as]
4) function called by ...