Hi All,
I am building a web banner with a slideshow with random picts via xml,
but i want to use a iris transition [COLOR=Red]to fade in[/COLOR] while getting the pict, and fade out with the iris transition, the last action works but when getting i cannot get the transition to work below is a piece of the code:
}
function randomImage() {
if (loaded == filesize) {
var ran = Math.round(Math.random() * (totalImages - 1));
picture_mc._alpha = 0; // Start image clip as invisible
picture_mc.loadMovie(imageFileName[ran], 1); //Load random image from xml
var pictureTweenIn:Tween = new Tween(picture_mc, “_alpha”, Normal.easeIn, 0, 100, 4, true);//[COLOR=Red]works[/COLOR]!
mx.transitions.TransitionManager.start(picture_mc, {type:mx.transitions.Iris, direction:mx.transitions.Transition.OUT, duration:3, easing:mx.transitions.easing.Regular.easeInOut});//[COLOR=Red]does not work… [/COLOR]
pictureTweenIn.onMotionFinished = function () { // When done fading
_root.pause(); // Start pause() function
}
}
If anyone can help me out this would be great!