# Mouse if statement\[AS2 flashCS4\]

**URL:** <https://forum.kirupa.com/t/mouse-if-statement-as2-flashcs4/291084>\
**Category:** Uncategorized\
**Created:** [June 24, 2009, 2:35pm UTC](https://forum.kirupa.com/t/mouse-if-statement-as2-flashcs4/291084 "2009-06-24T14:35:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neonreel](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@neonreel](https://forum.kirupa.com/u/neonreel)\
**Post date:** [June 24, 2009, 2:35pm UTC](https://forum.kirupa.com/t/mouse-if-statement-as2-flashcs4/291084/1 "2009-06-24T14:35:09Z")

</div>

Hello All,

I have an if statement that says:

```auto

this.onEnterFrame = function()
{
if(_root._xmouse >= 612)
  {
     fadeMovieClip(100, 0);
     trace("itWorks");
   }
}

```

the fadeMovieClip function is this:

```auto
function fadeMovieClip(startAt:Number, endAt:Number):Void 
{
var myTween:Tween = new Tween(_root.Car_3d.DOF,"_alpha",mx.transitions.easing.None.easeNone, startAt, endAt,.5, true);
}

```

I get a trace but the tween does not happen. Does anyone know why?

Thanks in advance,  
neonreel
