hi

I'm interesting for something . When i click a button that have roll over function and roll out I wont to stop at the end of the roll over stage . and when i click another bottom i wont that initial bottom that was push to execute the roll out stage and the new bottom clicked to remain in the roll over stage


to be more specific i put an example http://hiphoprap.xhost.ro/16340.swf
i make one the same but im stock on the phase when i click and and don't roll out when i'm click another button


i try to make a function whit if and else....but .....


so somebody can help me ... i'm not interesting to make for me the cod .. an advice or something..to resolve this problem


thx very much


home.buttonMode=true;
about.buttonMode=true;
services.buttonMode=true;
contact.buttonMode=true;


var myMenuArrayOver = [home, about, services, contact];
for each (var btnover in myMenuArrayOver)
{
btnover.addEventListener(MouseEvent.ROLL_OVER, rollover);
}
function rollover (event:MouseEvent):void
{
event.currentTarget.gotoAndPlay("over");

}

var myMenuArrayOut = [home, about, services, contact];
for each (var btnout in myMenuArrayOut)
{
btnout.addEventListener(MouseEvent.ROLL_OUT, rollout);
}
function rollout (event:MouseEvent):void
{

event.currentTarget.gotoAndPlay("out");

}

home.addEventListener(MouseEvent.MOUSE_DOWN, red);
about.addEventListener(MouseEvent.MOUSE_DOWN, red);
services.addEventListener(MouseEvent.MOUSE_DOWN, red);
contact.addEventListener(MouseEvent.MOUSE_DOWN, red);


function red(event:MouseEvent):void
{
if(event.currentTarget == home)
{
gotoAndStop (4);

}
else if(event.currentTarget == about)
{
gotoAndStop (5);
}
else if(event.currentTarget == services)
{
gotoAndStop (10);
}
else if(event.currentTarget == contact)
{
gotoAndStop (20);
}

}