inside a class who have a item_mc and his container i defined for item_mc this event:
var thisObj = this;
this.item_mc.onMouseMove = function(){
var xm: Number = thisObj.parent_mc._xmouse;
var ym: Number = thisObj.parent_mc._ymouse;
if((xm > this._x) && (xm < (this._x + this._width)) && (ym > this._y) && (ym < (this._y + this._height))){
if(!thisObj.aperto){ trace("apri " + this._currentframe); this.nextFrame(); trace("cc" + this._currentframe); thisObj.aperto = true; }
}
else if(thisObj.aperto){ trace("chiudi " + this._currentframe); this.gotoAndPlay("_out"); thisObj.aperto = false; }
}
(i tried with hitTest but something goes wrong so i decided for that weird if test and im keep investigating)
problem: gotoAndPlay statements are TOTALLY IGNORED! wtf is it possible?!?