// ESTE CODIGO VE EN LA ESCENA PRINCIPAL botones= new Array("Inicio", "retratos", "pintura", "biografĂ­a", "contacto"); for (var i=0;i<5;i++){ areas = attachMovie("box", "box"+i, this.getNextHighestDepth()); areas._y = i*(box0._height+10); areas._x = 40; areas.texto.text=(botones[i]); areas.valor = i+2; areas.onRelease=function(){ if(activo!=this){ _parent.gotoAndStop(valor); my_fmt.color = 0x000000; activo.texto.setTextFormat(my_fmt); my_fmt.color = 0xFF0000; texto.setTextFormat(my_fmt); activo = this; } } areas.onRollOver=function(){ if(activo!=this){ my_fmt.color = 0xFF0000; texto.setTextFormat(my_fmt); } } areas.onRollOut=function(){ if(activo!=this){ my_fmt.color = 0x000000; texto.setTextFormat(my_fmt); } } } var activo:MovieClip = botones[0]; var my_fmt:TextFormat = new TextFormat();