PDA

View Full Version : navigation issue



pspecial
August 1st, 2003, 11:06 PM
This may sound a bit amaturish, but I'm just getting comfortable building 1-frame Flash movies. In other words, all the motion in my movie comes from movie clips, including the menu. Which brings me to my problem...

When I click (onPress) on a menu item and it summons several other movie clips to gotoAndPlay. Now, every subsequent onPress on the same menu item makes the same clips repeat their animations. This looks sloppy. Once the menu item is pressed, I'd like to disable it. Consequently, when any other menu item is pressed, I'd like to make the rest of the menu active again.

What would be the right approach here?

Keith130
August 2nd, 2003, 06:40 AM
You could use myButton1.enabled = false; and then on the button you could do this for the all the other buttons mybutton2.enabled = true;

pspecial
August 2nd, 2003, 11:47 AM
Okay, that almost works....

My problem now is that all the button movie clips are stacked. So if one that is 'enabled = true' is on top, the rest below cant be viewed onRollover.

radicaljugnu
August 3rd, 2003, 02:46 AM
name your buttons instance name of "btn1", "btn2" etc. Let there be 8 buttons totally.
on(press){
for(i=0;i<8;i++){
_root["btn"+i].pressed=false
}
if(!pressed) _root.movieclip.gotoAndPlay(2)
pressed=true

}