Button click loadMovA..click again loadB?

I saw this code on the tutorials but it was in relation to Random backgrounds. Woud anyone know if I could use this to do the following…

First time a button is clicked, I want it load and play Movie A, if the button is clicked again, load and play Movie B.

Can I control where it loads? Meaning to a movieclip holder or something?

on (release) {
choice = Math.round(Math.random()*2);
switch (choice) {
case 0 :
location.loadMovie(“image0.swf”);
break;
case 1 :
location.loadMovie(“image1.swf”);
break;
}
}

Thanks

-M

Yeah. What you could do it put a counter or a boolean on the button. Each time it is clicked, the counter would go up by one. If the counter is one, do something. If its 2, do something else. In the code above, it will randomly generate a number between 0 and 2 and round that to an integer. If you need help with coding I can help.

Please, Help would be great. In my minds design, I will have many “sets” of this where if you click a button once you get MovieA and click it again get MovieB on the same page. Just FYI.

Thanks!

you have a fla you can post?