Ho un problema sulla stabilità di un menù.
Ho tre figure istanziate:
fotoGrande
quadrato
quadrato2
In pratica sono due tasti che escono da clip che li copre quasi totalmente. Quando vado sopra un tasto (che diciamo la forma A) parte il cursore sulla sua linea tempoarale e si ferma allo stop assumendo la forma B. Ma quando si ferma allo stop non è stabile in quanto se rimango con il mouse sopra di lui, continuamente passa dalla forma A alla forma B.
Ho cercato di semplificare con l eparole ma forse ci si rende conto di più osservando il codice.

codice:
buttonMode = true;

quadrato.addEventListener( MouseEvent.CLICK, function clickBottone(event:MouseEvent):void {	
var Map1:URLRequest = new URLRequest("javascript:window.open('http://www.test.it','map','status=no,toolbar=no,menubar=no,location=yes,scrollbars=yes,top=150,left=385,width=703,height=500');void(0);");
	navigateToURL(Map1, "_blank");
	
}
);
quadrato.addEventListener(MouseEvent.ROLL_OVER, overBottone);
function overBottone(event:MouseEvent):void {
	quadrato.gotoAndPlay(2);
	fotoGrande.gotoAndStop(2);
}

quadrato.addEventListener(MouseEvent.MOUSE_DOWN, downBottone);
function downBottone(event:MouseEvent):void {
	quadrato.gotoAndStop(10);
	fotoGrande.gotoAndStop(2);
}

quadrato.addEventListener(MouseEvent.ROLL_OUT, outBottone);
function outBottone(event:MouseEvent):void {
	quadrato.gotoAndPlay(11);
	fotoGrande.gotoAndPlay(3);
}


quadrato2.addEventListener(MouseEvent.CLICK, clickBottone2);
function clickBottone2(event:MouseEvent):void {	
var Map2:URLRequest = new URLRequest("javascript:window.open('http://www.test.it',' map','status=no,toolbar=no,menubar=no,location=yes,scrollbars=yes,top=150,left=385,width=703,height=500');void(0);");
	navigateToURL(Map2, "_blank");
	
}

quadrato2.addEventListener(MouseEvent.ROLL_OVER, overBottone2);
function overBottone2(event:MouseEvent):void {
	quadrato2.gotoAndPlay(2);
	fotoGrande.gotoAndStop(2);
}

quadrato2.addEventListener(MouseEvent.MOUSE_DOWN, downBottone2);
function downBottone2(event:MouseEvent):void {
	quadrato2.gotoAndStop(10);
	fotoGrande.gotoAndStop(2);
}

quadrato2.addEventListener(MouseEvent.ROLL_OUT, outBottone2);
function outBottone2(event:MouseEvent):void {
	quadrato2.gotoAndPlay(11);
	fotoGrande.gotoAndPlay(3);
}
edit by and80: ho aggiunto i tag di formattazione per eliminare i problemi di formattazione della pagina e per maggiore chiarezza nella lettura del messaggio.