# Replaying a mc

**URL:** https://forum.kirupa.com/t/replaying-a-mc/7021
**Category:** flash
**Created:** [October 22, 2002, 9:10am UTC](https://forum.kirupa.com/t/replaying-a-mc/7021 "2002-10-22T09:10:32Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![coolguy13](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@coolguy13](https://forum.kirupa.com/u/coolguy13)
#### Post date: [October 22, 2002, 9:10am UTC](https://forum.kirupa.com/t/replaying-a-mc/7021/1 "2002-10-22T09:10:32Z")

</div>

Hi

I have a mc inside a frame on the main time line. a button on the main time line. i want to play the movie each time the button is clicked.  
another situation is i hv loaded a movie using loadMovie command. i want to play it again. currently i m using unloadMovie & loadMovie in succession. is there any other way of doing it…

please help!!!

thx!!!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 22, 2002, 1:50pm UTC](https://forum.kirupa.com/t/replaying-a-mc/7021/2 "2002-10-22T13:50:54Z")

</div>

> \*Originally posted by coolguy13 \*  
> \*\*I have a mc inside a frame on the main time line. a button on the main time line. i want to play the movie each time the button is clicked.  
> \*\*

Assuming ur mc is called ‘myMc’ and it’s stoped in the first frame put this code on the butt:

```php
on (release){
    myMc.gotoAndPlay(2);
}

```

> \*Originally posted by coolguy13 \*  
> \*\*  
> another situation is i hv loaded a movie using loadMovie command. i want to play it again. currently i m using unloadMovie & loadMovie in succession. is there any other way of doing it…  
> \*\*

Assuming (again) u r loading the movie into a container called ‘container’, it’s stoped in the first frame and u want to play it again from a butt, put this code on the butt:

```php
on (release){
    container.gotoAndPlay(2);
}

```

\*\*  
Note that u refer to the loaded movie by it’s container name  
\*\*

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 23, 2002, 3:27pm UTC](https://forum.kirupa.com/t/replaying-a-mc/7021/3 "2002-10-23T15:27:47Z")

</div>

thanks eki!  
but the second part is not working. when i load a movie in a target (say mcTgt) it doesn’t replay when i click on the replay button. I m using  
on (release){  
\_root.mcTgt.gotoAndPlay(1);  
}

can somebody help me

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 23, 2002, 4:07pm UTC](https://forum.kirupa.com/t/replaying-a-mc/7021/4 "2002-10-23T16:07:49Z")

</div>

Hi,

Are u stoping the movie in frame1?  
If so gotoAndPlay should be(2).(although is best to label the frames in wich case it’d be **mcTgt.gotoAndPlay(“PLAY”);** assuming u label the next frame to the one the movie is stoped in ‘PLAY’)

Cheers

SHO

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 24, 2002, 2:00am UTC](https://forum.kirupa.com/t/replaying-a-mc/7021/5 "2002-10-24T02:00:59Z")

</div>

No, I m not stopping the movie in frame1. I hv tried with frame label as well but nothing worked. for the time being i m unloading & loadingthe movie again in my replay button. but it doesnt seem to be a good solution. any other way of doing it.

rgds  
coolguy
