all groups > macromedia flash sitedesign > august 2007 >
You're in the

macromedia flash sitedesign

group:

Movie clip over another movie clip


Movie clip over another movie clip georgi_aba
8/23/2007 12:00:00 AM
macromedia flash sitedesign:
Hello

I have a problem. I have a movie clip with buttons, one of the buttons starts
a second movie clip over the first, but the second movie clip is transparent
(70%) so you can see the firs movie clip. Thats the effect I want to achieve,
but the problem is that the buttons from the firs movie clip are still active.
And so I have active button from the first and from the second movie clip. My
question is how can I make the buttons from the firs movie clip to be inactive
(without removing them) when the second movie clip is on top of the first.


My code for loading the second movie clip is:

on (press) {
loadMovieNum("movies/creolex.swf",1);
}


And for closing the second is:

on (press) {
unloadMovie(this);
}

Thank You.
Re: Movie clip over another movie clip hiddensat1
8/23/2007 4:00:46 PM
One solution could be to put the buttons in a movieclip (symbol), add a second
keyframe to the movieclip and make the buttons as graphics in that keyframe,
add a stop(); to the first frame of the movieclip, and then add the folowing
code to your buttons:

on(press) {
gotoAndStop(2);
}

Go to the main timeline and give the movieclip an instance name (let's say:
_first).

To the button that closes the second movie clip add a code that tells _first
to gotoAndStop(1);

My native language is not english so excuse me if I couldn't explain myself
very well...
AddThis Social Bookmark Button