[AS3] Problem with referece to object
I have object in which I have rectangle on one layer and following code on another layer:

    import flash.events.Event;
    this.myMouseMove = function( e:Event ) {
    	if(Object(this).currentFrame == 1) {
    		Object(this).play();
    	}
    }
    this.overlay.addEventListener(MouseEvent.MOUSE_MOVE,this.myMouseMove);

And Object(this).play() or checking for current frame doesn't work, nor tracing a value define outside the function. How shall I reffer to the movieclip that events is called from?
[AS3] Problem with referece to object
===

I have object in which I have rectangle on one layer and following code on another layer:

    import flash.events.Event;
    this.myMouseMove = function( e:Event ) {
    	if(Object(this).currentFrame == 1) {
    		Object(this).play();
    	}
    }
    this.overlay.addEventListener(MouseEvent.MOUSE_MOVE,this.myMouseMove);

And Object(this).play() or checking for current frame doesn't work, nor tracing a value define outside the function. How shall I reffer to the movieclip that events is called from?