Secondo il tuo ragionamento:
codice:
stop();
_root.onMouseMove = function() {
if (this.hitTest(this._xmouse, this._ymouse)) {
this.play();
this.onEnterFrame = function()
{
if(this._currentframe == 10){
this.stop();
this.onEnterFrame = undefined;
}
};
this.onMouseMove = function()
{
if (!this.hitTest(this._xmouse, this._ymouse)) {
this.gotoAndPlay(10);
this.onEnterFrame = function()
{
if(this._currentframe == 20){
this.stop();
this.onEnterFrame = undefined;
}
};
}
this.onMouseMove = undefined;
}
}
};
ma non credo che funzioni tanto bene.. :)