Привет!
Подскажите, как сделать такое меню (флешка во вложении): для каждого вида товара можно выбирать нужный цвет (то есть выбираю первый вид - щелкаю на цвета он меняет цвет, на второй - то же самое), код сейчас во флешке такой:

Код AS3:
//Pause the movie on frame 1
stop();
// Code-hint comments
// SimpleButton enterBtn;
// event handlers
function handleClick(pEvent:MouseEvent):void
{
if( pEvent.target==btn1 )
{
// handle the event
gotoAndStop(1);
trace("click! new frame:"+currentFrame);
}
if( pEvent.target==btn2 )
{
// handle the event
gotoAndStop(2);
trace("click! new frame:"+currentFrame);
}
if( pEvent.target==btn3 )
{
// handle the event
gotoAndStop(3);
trace("click! new frame:"+currentFrame);
}
if( pEvent.target==btnG )
{
// handle the event
gotoAndStop(4);
trace("click! new frame:"+currentFrame);
}
if( pEvent.target==btnR )
{
// handle the event
gotoAndStop(5);
trace("click! new frame:"+currentFrame);
}
if( pEvent.target==btnB )
{
// handle the event
gotoAndStop(6);
trace("click! new frame:"+currentFrame);
}
}
// register events
btn1.addEventListener(MouseEvent.CLICK, handleClick );
btn2.addEventListener(MouseEvent.CLICK, handleClick );
btn3.addEventListener(MouseEvent.CLICK, handleClick );
btnG.addEventListener(MouseEvent.CLICK, handleClick );
btnR.addEventListener(MouseEvent.CLICK, handleClick );
btnB.addEventListener(MouseEvent.CLICK, handleClick );