ciao potresti fare cosi:
creati per ogni bottone un mc(14 frame, al frame1 e 7 metti uno stop) istanzialo con il nome della sezione e poi su ogni mc che hai sullo stage metti:
codice:
onClipEvent (mouseMove) {
if (!premuto) {
if (this.hitTest(_root._xmouse, _root._ymouse, false) && !aperto) {
if (_currentframe>(_totalframes/2)) {
gotoAndPlay(_totalframes-_currentframe);
} else {
play ();
}
aperto = true;
} else if (!this.hitTest(_root._xmouse, _root._ymouse, false) && aperto) {
if (_currentFrame<(_totalFrames/2)) {
gotoAndPlay(_totalframes-_currentframe);
} else {
play ();
}
aperto = false;
}
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
gotoAndStop (7);
_root.comandi(this._name);
premuto = true;
}
}
SUL FRAME METTI :
codice:
// settiamo come ultimo "home" (è come se avessimo
// premuto "home" all'avvio)
ultimo = "home";
// blocchiamo il rollover del pulsante "home"
_root[ultimo].premuto = true;
// mandiamo il movieclip "home" al frame 11
_root[ultimo].gotoAndStop(7);
function comandi (nome) {
if (nome != ultimo) {
if (nome == "home") {
//AZIONI CHE VUOI
}else {
//CARICO IL FILMATO CHE SI CHIAMA COME LA SEZIONE
loadMovieNum (nome + ".swf", 1);
}
// resettiamo la variabile "premuto" del pulsante
// attivato precedentemente
_root[ultimo].premuto = false;
// riavviamone la riproduzione
_root[ultimo].play();
ultimo = nome;
}
}
l'esempio e'
QUI