Need pointing in the right direction

hi ppl of the forum.

I’v got a puzzle and i’ts giving me a head ache, it go’s somthing like this,

I have some buttons, and some MC’s lined up verticaly, when pressed they make the MC’s move on to the screen.

but what i want is the first button i press what ever it is, make the bottom MC move on to the screen, and then the next button i press make the next MC up move on to screen then when pressed again the make them movve off.

Make any sence?

If any one can point me in the right direction it would be a big help

thanx in advance

if you give your mc instances numerical names, i.e 1, 2, 3, 4 etc then you can use a counter to increase each time a button is pressed.

You use the counter to target the movie clip, so if you initialise the counter as 1 you can do something like;

on(press) {
 _root[counter].play(); // Makes mc 1 play.
counter++; // Makes counter variable counter increase by one. So the nest time a button is pressed mc 2 will be targeted.

Get the idea?


Ye I think i get it, I will give it a go

Thanx again