# OnEnterframe Problem

**URL:** <https://forum.kirupa.com/t/onenterframe-problem/310670>\
**Category:** flash\
**Created:** [June 16, 2010, 7:24am UTC](https://forum.kirupa.com/t/onenterframe-problem/310670 "2010-06-16T07:24:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![experts585](https://avatars.discourse-cdn.com/v4/letter/e/ecae2f/32.png) [@experts585](https://forum.kirupa.com/u/experts585)\
**Post date:** [June 16, 2010, 7:24am UTC](https://forum.kirupa.com/t/onenterframe-problem/310670/1 "2010-06-16T07:24:13Z")

</div>

hi i post below

plz plz reply me On my Post  
my problem is my mc cant stop after hitting the mc how to stop mc after hitting

I used this code to stop this Mc and its work But  
the mc hit only one time 2nd time its doesn’t touch the mouse to mc  
the problem is the mc does not stop after hitting the wall  
plz tel me what to do

if(this.hitTest(block)==true)  
{

//this.\_x= this.\_x+60;  
new Tween(this,"\_x",Strong.easeOut,this.\_x,this.\_x+60, 2,true);  
this.onEnterFrame = null;

}
