# gotoAndPlay ignored? O\_\_o

**URL:** <https://forum.kirupa.com/t/gotoandplay-ignored-o--o/190112>\
**Category:** flash\
**Created:** [June 8, 2006, 6:28pm UTC](https://forum.kirupa.com/t/gotoandplay-ignored-o--o/190112 "2006-06-08T18:28:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheClue](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@TheClue](https://forum.kirupa.com/u/TheClue)\
**Post date:** [June 8, 2006, 6:28pm UTC](https://forum.kirupa.com/t/gotoandplay-ignored-o--o/190112/1 "2006-06-08T18:28:13Z")

</div>

inside a class who have a item\_mc and his container i defined for item\_mc this event:

```auto

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?!?
