# Play to and stop (character movement MC)

**URL:** <https://forum.kirupa.com/t/play-to-and-stop-character-movement-mc/116352>\
**Category:** Uncategorized\
**Created:** [July 16, 2004, 9:03pm UTC](https://forum.kirupa.com/t/play-to-and-stop-character-movement-mc/116352 "2004-07-16T21:03:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![polishbroadcast](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@polishbroadcast](https://forum.kirupa.com/u/polishbroadcast)\
**Post date:** [July 16, 2004, 9:03pm UTC](https://forum.kirupa.com/t/play-to-and-stop-character-movement-mc/116352/1 "2004-07-16T21:03:41Z")

</div>

Hello helpful flash friends. I need some help or a glass of water thrown in my face.

I have a MC which is a lady that raises her arms up and down. From the main timeline i want to tell that “ladyMC” (also sitting on the main timeline) to play to and stop on specific frames. I have tried it two different ways but am obviously missing something.

The first way i tried just using an if/else and getting the current frame #.

```auto
if(lady._currentframe < 22){
    	lady.play();
	}else if(lady._currentframe >= 22){
   		lady.stop();
}

```

The second way i tried setting a variable (which is being passed successfully) so that when the ladyMC hits the frame i want it to stop on, it changes the variable.

```auto
lady.play();

	
if(ladyvar==2){
   		lady.stop();
}

```

In both examples, the ladyMC plays through and never stops. Your help is appreciated. This seems so simple but is driving me crazy.

---

<div class="post-metadata">

**Author:** ![polishbroadcast](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@polishbroadcast](https://forum.kirupa.com/u/polishbroadcast)\
**Post date:** [August 3, 2004, 8:38pm UTC](https://forum.kirupa.com/t/play-to-and-stop-character-movement-mc/116352/2 "2004-08-03T20:38:56Z")

</div>

Thanks so much for the reply. I solved it by putting the code on the MC itself and that seems to work great. I appreciate the response!
