all groups > flash actionscript > march 2007 >
You're in the

flash actionscript

group:

Button opacity to change when other movieclips completed.


Button opacity to change when other movieclips completed. shacks64
3/11/2007 10:56:56 PM
flash actionscript:
I think what I want is reasonably basic, but I can't work it right!

I have my screen and there are four seperate movies on it. When these movies
are dragged onto the correct movieclip, they run themselves so that they appear
to drop off stage.

I want a button to become fully opaque when all four of these movies have
played through to their last frame (frame 20), but I'm totally lost...could
anyone help?!

PLEASE!
Re: Button opacity to change when other movieclips completed. kglad
3/12/2007 12:47:03 AM
the easiest solution would be to add the following code to the last frame of
each of your four movieclips:



if(!_root.movieComplete){
_root.movieComplete=1;
} else {
_root.movieComplete++;
if(_root.movieComplete==4){
_root.yourButton._alpha=100; // make sure to use your button's instance name.
}
}
Re: Button opacity to change when other movieclips completed. shacks64
3/12/2007 6:12:58 PM
Re: Button opacity to change when other movieclips completed. kglad
3/12/2007 11:43:54 PM
AddThis Social Bookmark Button