Groups | Blog | Home
all groups > flash actionscript > august 2005 >

flash actionscript : fade out and load new


eugene lvovsky
8/26/2005 8:38:10 PM
Can somebody, please, come up with something for this. I've tried different
variations, but nothing works.

Lets say I have 3 buttons. Each of them will load a new MC onto the Stage.
That's simple, one movie clip will immediately replace another. But what I want
is to have my MC, that is about to be replaced, to play a "go out animmation".
Maybe fade.

I already have 3 MC's for each button, let's call them ONE, TWO and THREE.
Each of them has a labeled frame with stop action where a "go out annimation"
begins.

What code needs to be put on the buttons so they will load a new MC after an
old one has played my "go out annimation"?

Thank you!
abeall
8/26/2005 8:44:27 PM
It's pretty simple and could be done alot of ways. If you have a button for
each item to be loaded, you could just stick the 'loadMovie' bit at the end of
the intro. Maybe simething like this:

On _root timeline

Then on the buttonMC:
on(release){
this.gotoAndPlay("outro");
}

Then at the end of your outro on the buttonMC timeline:
_root.loaderClip.loadMovie("myMovie.swf);

HTH
eugene lvovsky
8/26/2005 8:51:50 PM
abeall, you said "at the end of your outro on the buttonMC timeline:
_root.loaderClip.loadMovie("myMovie.swf);

How will this know, which button was pressed next and wich new MC to play?
abeall
8/26/2005 9:37:50 PM
So it's the same symbol/different instances? Then you should set a variable. So
more like this:

on(release){
this.gotoAndPlay("outro");
_global.destination = "myMovie.swf";
}


_root.loaderClip.loadMovie(destination);
AddThis Social Bookmark Button