PDA

View Full Version : Using a variable with load movie????


dtrace
04-08-2003, 02:51 AM
I have never been good with variables. I understand the concepts, but I just haven't done it enough to be comfortable with the execution.

Here is what I've got. A main menu with five buttons. When you click each button, it makes all the buttons fade away and move off screen.

This is done by telling the movie clip containing the buttons to go to and play a certain frame.

What I want is to have it so that when the buttons fade away, it knows to load the appropriate movie.

So, when someone clicks the button, I'd like it to set a variable like, button = 1, button = 2, button = 3, etc, then, at the end of the movie clip, it would say loadmovie (button).

But I literally do not know how to do this exactly and make it work. Syntax, etc.

Could you walk me through it?

Thanks.

farafiro
04-08-2003, 09:03 AM
here a way, but there are a lotta othershome_btn.onPress = function(){
myMovie = this._name
holdermc.loadMovie(myMovie+".swf")
//and the rest of your code
}