Ciao!
devo simulare l'apertura di 2 ante scorrevoli.
Creo 2 movie clip, e scrivo come loro codice
Antasx
codice:
onClipEvent (enterFrame) {
var	mousex=this._parent._parent._xmouse;
var	mousey=this._parent._parent._ymouse;
	if ((mousex>=0 && mousex<=122) && (mousey>=0 && mousey<=170)) {
		if (this._x>-45) {
			this._x = this._x-1;
		}
	} else {
		if (this._x<0) {
			this._x = this._x+1;
		}
	
	}
}
Antadx
codice:
onClipEvent (enterFrame) {
var	mousex=this._parent._parent._xmouse;
var	mousey=this._parent._parent._ymouse;
	if ((mousex>=0 && mousex<=122) && (mousey>=0 && mousey<=170)) {
		if (this._x<45) {
			this._x = this._x+1;
		}
	} else {
		if (this._x>0) {
			this._x = this._x-1;
		}
	
	}
}
lasciando stare le mousex e mousey che mi servono solo per delle prove, guardando il filmato nell'anteprima flash, funziona, se invece utilizzo l'anteprima html, le 2 porte si aprono, ma non tornano alla posizione di partenza.

Ariciao =)