Hi,
Can anyone help me with a problem. I want to appy a transition effect to a movie clip just before it is removed from the stage and another loaded in it place. But, no matter what I try, I can't seem to get it to happen. I am using the following code to remove my movie clip from the stage;
- Code: Select all
news_btn.onPress = function () {
unloadMovie("welcome_mc");
unloadMovie("img1_mc");
loadMovie("news.swf","_root.emptyclip_mc");
}
I want to be able to stick something like this in there so that it is performed
before the unloadMovie functions.
- Code: Select all
mx.transitions.TransitionManager.start(img1_mc, {type:mx.transitions.Rotate, direction:1, duration:2, easing:mx.transitions.easing.Strong.easeIn, param1:empty, param2:empty});
mx.transitions.TransitionManager.start(welcome_mc, {type:mx.transitions.Wipe, direction:1, duration:4, easing:mx.transitions.easing.Strong.easeOut, param1:empty, param2:empty});
}
Any ideas on how I achieve this?
Thanks for your help,
Tom.