Flash Slideshow Problem
I've been attempting to create a slideshow using Flash CS5.5, however I can't seem to affect the speed of the images. My code is as follows:
import flash.utils.Timer;
import flash.events.TimerEvent;
import fl.transitions.Tween;
import fl.transitions.easing.Strong;
mc1.alpha=0;
stop();
var mytimer:Timer = new Timer(1000,6);
mytimer.start();
mytimer.addEventListener(TimerEvent.TIMER,mc1handler)
function mc1handler(event:TimerEvent:void{
if(mytimer.currentCount==1){var mytween_fadein:Tween= new Tween(mc1,"alpha",Strong.easeOut,0,1,3,true)}
}
if(mytimer.currentCount==5){var mytween_fadeout:Tween= new Tween(mc1,"alpha",Strong.easeOut,1,0,1,true)}
if(mytimer.currentCount==6){mytimer.stop();nextFrame();}
I thought that stop(); would solve the problem, but i've had no luck there. Any help is much appreciated,
Thanks,