PDA

View Full Version : Movie Fade In / Out


Lavada
11-30-2005, 01:08 PM
Hey hey

I am new to flash so many of you will think im stupid :) But who cares, all were a newb once :D

I am making a whole flash site and i have 6 buttons in my menubar. What i want to get is when i click my buttons the current movie that is playing in my container fades out, and the new movie fades in after the old 1 is faded out.

For each of the 6 movies i have a seperate swf file and i load them in a containermovie on my main stage.

I use this code on the buttons,

on (release) {
containerMain.loadMovie("Home.swf");
}

Now when i press the buttons the movies are nicely loaded and they are in the correct place. They even fade in becouse i made a tween @ the start of the movie. But why ow why cant i get the current movie to fade out...

Plzzzzz help me with this i searched for like 3 days and found alot of stuff that is helpfull but this i couldnt find ....

Cheers Dominic @ Lavada

ovydiu
12-01-2005, 02:37 PM
because your script tell flash to simply load the new movie.. the old movie is lost..

you cold try

on (release) {
containerMain.gotoAndPlay("fadeout");
}

this way, when you click the button, you tell the old movie to fade out
after that, call a function from the main file in the last frame of each loaded movie to tell flash to lead the next movie.. this is the easiest solution that comes to mind

Lavada
12-01-2005, 03:15 PM
Hey tnx for your replay..

I think i know what u mean, but i really want to keep my load movie in there. This way it saves me alot of loading @ the start. I just dont want to get such a huge movie.
And this is the content of my website so this way i have all my movies in 1 big movieclip ...

I shall try it anyway but i have problems with functions, i am new to flash and i find this topic not easy to learn. But i will give it a shot m8 !

Tnx