Help!
I have a standalone EXE that has (6) different Movie Clips that can be called
up from a main menu selection on the stage.
Each MC has many buttons and they overlay each other.
My problem is that the buttons from the previous MC are still selectable,
although - unseen.
How can I clear out the previous MC when one of the main menu buttons are
selected?
Thanks!
kglad - 28 May 2005 21:55 GMT
you can use removeMovieClip() or unloadMovie().
BLCarav - 28 May 2005 22:04 GMT
mlallier wrote:How can I clear out the previous MC when one of the main menu
buttons are selected?
If you are calling each mc into an mc in the maintimeline just add this string
within the button functions that call it.
unloadMovieClip("myMovie");
example:
myButton.onRelease = function(){
unloadMovieClip("myMovie");
//here you would put in the existing code that will call the new movieclip
into the same spot
loadMovieClip("myOtherMovie");
}
If you are using levels to call in the movie clip use the unloadMovieNum
command in the button function.
example:
myButton.onRelease = function(){
unloadMovieNum(20);
// then call in the new movie to the same level with loadMovieNum command
loadMovieNum("myOtherMovie",20);
}
I hope this was helpful. There are probably better ways to do it, but this is
what I've used in the past.
BLCarav - 30 May 2005 00:34 GMT
Sry, my first example is wrong and just doesn't apply since it would be for to
call in and clear out an external .swf file which i didn't do correctly anyway
and I don't think you wanted to use unloadMovieNum so again, disregard my post.
Sorry for any confusion.
rlc5611 - 30 May 2005 04:07 GMT
One thing you could consider is to use createEmptyMovieClip and use the same
name and same depth as the previous clip. I use this quite a bit to start from
scratch. It is a bit heavy handed but effective.
mlallier - 31 May 2005 22:36 GMT
Thank-you for the responses. I still have a question. I never use a movie clip
method, but created movie clips by the insert symbol. In the main timeline the
first movie clip contains some buttons (which are transparent but clickable on
subsequent "movie clips").
Could someone give me a little more detailed information on how to solve these
carry over invisible buttons?
Thank you