# Check if mc reached a certain \_y then animate

**URL:** <https://forum.kirupa.com/t/check-if-mc-reached-a-certain--y-then-animate/124647>\
**Category:** Uncategorized\
**Created:** [October 5, 2004, 4:59pm UTC](https://forum.kirupa.com/t/check-if-mc-reached-a-certain--y-then-animate/124647 "2004-10-05T16:59:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![markhegz](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@markhegz](https://forum.kirupa.com/u/markhegz)\
**Post date:** [October 5, 2004, 4:59pm UTC](https://forum.kirupa.com/t/check-if-mc-reached-a-certain--y-then-animate/124647/1 "2004-10-05T16:59:06Z")

</div>

I am sliding a movieclip using easing equations. I need a loop that that steps through the current \_y value of that clip and when it reaches the desired position(\_yvalue -721) tell another clip to start animating(click\_mc)

here is what i have so far

```php
big_mc.cdown.onRelease = function(){
	_root.big_mc.slideTo(-130, -720, 1.7, "easeinoutquint");
		for(var i = big_mc._y; i > -721; i--){
			trace(i);
			 if(i < -719){
				_root.big_mc.phase1_mc.gotoAndPlay(2);
				_root.click_mc.gotoAndPlay("play");
		 }
	}
}

```

any ideas?
