I am using the following function for my buttons:
Code:
function outHandler (e:MouseEvent):void
{
if (e.currentTarget.currentFrame != 3)
{
e.currentTarget.gotoAndStop(1);
}
}
function overHandler (e:MouseEvent):void
{
e.currentTarget.gotoAndStop(2);
}
function clickHandler (e:MouseEvent):void
{
e.currentTarget.gotoAndStop(3);
prevBut=MovieClip(e.currentTarget);
}
function downHandler (e:MouseEvent):void
{
if (prevBut!=null)
{
prevBut.gotoAndStop(1);
}
}
My question is how do I get it to when I click a button the button becomes disabled untill I click another button? Everytime I click a button it goes to down state but if I rollover it before clicking another button it goes back to up state.