# Clip Control

**URL:** https://forum.kirupa.com/t/clip-control/11793
**Category:** flash
**Created:** [January 22, 2003, 11:35am UTC](https://forum.kirupa.com/t/clip-control/11793 "2003-01-22T11:35:46Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![X\_Factor](https://avatars.discourse-cdn.com/v4/letter/x/c0e974/32.png) [@X\_Factor](https://forum.kirupa.com/u/X_Factor)
#### Post date: [January 22, 2003, 11:35am UTC](https://forum.kirupa.com/t/clip-control/11793/1 "2003-01-22T11:35:46Z")

</div>

I am new to flash MX, i stoped making flash movies back in flash 4, hehe…

So this is new stuff is kind of hard.

basicly here is what I need:

I created a small movie clip (loops)

i made a tween that makes it go from 1 end to the other end, but I can’t make the clip stop / or goto a diffrent frame withen the clip when it reaches the other side, anyone help with this?

an easy way please.

---

<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: [January 22, 2003, 11:51am UTC](https://forum.kirupa.com/t/clip-control/11793/2 "2003-01-22T11:51:20Z")

</div>

All you need is a couple of lines of ActionScript in the last frame of your movie clip.

To make it stop, you just add a

```php
stop();

```

If you put this in a clip, always put this at the end of any other ActionScript, otherwise the rest of the code won’t work. 🙂

To play another frame, you can use

```php
goToAndPlay(framenumber);

```

Or if the target frame is in another novie clip, you can use

```php
_root.movieclipname.goToAndPlay(framenumber);

```

---

<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: [January 22, 2003, 12:05pm UTC](https://forum.kirupa.com/t/clip-control/11793/3 "2003-01-22T12:05:19Z")

</div>

Still having a problem, I added

GWalk = the name of the movie clip

\_root.GWalk.goToAndStop(1);

Here is the FLA if you want to check it, its very small, trying to get some basics down before i really start to work on my project.

[http://www.pked.net/test.fla](http://www.pked.net/test.fla)

---

<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: [January 22, 2003, 12:09pm UTC](https://forum.kirupa.com/t/clip-control/11793/4 "2003-01-22T12:09:00Z")

</div>

the problem is the capital T on goto.

should be like this:

```auto

_root.GWalk.gotoAndStop(1);

```

Cheers :hat:

---

<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: [January 22, 2003, 12:13pm UTC](https://forum.kirupa.com/t/clip-control/11793/5 "2003-01-22T12:13:10Z")

</div>

that don’t work either, you try it out in my FLA?

---

<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: [January 22, 2003, 12:31pm UTC](https://forum.kirupa.com/t/clip-control/11793/6 "2003-01-22T12:31:55Z")

</div>

:q:

---

<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: [January 22, 2003, 12:34pm UTC](https://forum.kirupa.com/t/clip-control/11793/7 "2003-01-22T12:34:23Z")

</div>

hehe yah 😛 I don’t know whats wrong with it

---

<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: [January 22, 2003, 2:18pm UTC](https://forum.kirupa.com/t/clip-control/11793/8 "2003-01-22T14:18:47Z")

</div>

If in doubt, open up the movieclip with the AS in it, click on the frame with the Actions and open up the Actions panel. Make sure you’re in Normal Mode too. Now, you can use the little targetting icon on the panel to locate the path to the clip you want, and then add the .gotoAndPlay() (sorry about my earlier typo) afterwards.

Also, make sure that all your clips are named on the Stage!

---

<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: [January 22, 2003, 2:24pm UTC](https://forum.kirupa.com/t/clip-control/11793/9 "2003-01-22T14:24:36Z")

</div>

I´ve checked all this stuff before, I gave the mc an instance name, made the proper target with the right action, but the movie won´t stop on frame 1. And I don´t know why.

Very weird…

---

<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: [January 22, 2003, 2:37pm UTC](https://forum.kirupa.com/t/clip-control/11793/10 "2003-01-22T14:37:05Z")

</div>

weird…

I placed copies of the same mc in different layers, gave them unique instace name, and by AS told them in frame 65 to stop on frame 1 of theyr own timelines. All of them stoped except the one in the tween layer. Why is that?

---

<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: [January 22, 2003, 3:31pm UTC](https://forum.kirupa.com/t/clip-control/11793/11 "2003-01-22T15:31:56Z")

</div>

Er… how about using gotoAndStop?

---

<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: [January 22, 2003, 3:36pm UTC](https://forum.kirupa.com/t/clip-control/11793/12 "2003-01-22T15:36:07Z")

</div>

I used \_root.target.gotoAndStop (1);

I can´t explain it for you. try to do that and you will see.

---

<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: [January 22, 2003, 3:46pm UTC](https://forum.kirupa.com/t/clip-control/11793/13 "2003-01-22T15:46:46Z")

</div>

ok i downloaded your file and fixed it but the really wierd thing is i dont know how this happened but in frame 65 of the walking guy theres an action there that cant be erased i switched from normal to expert mode and it still would show the action in the layer but it wont show no actions at all thats weird. Anyways i erased frame 65 of the walking guy did a f6 on frame 65 and inserted a new layer with these action on frame 65

stop();  
\_root.walk.gotoAndStop(1);

Try it it should work but remember to delete frame 65 of the walkin guy otehrwise it wont work

Grim

---

<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: [January 23, 2003, 4:45am UTC](https://forum.kirupa.com/t/clip-control/11793/14 "2003-01-23T04:45:13Z")

</div>

Still can’t get it, damnit I must be stupid or something, could you e-mail me the one you got working properly at

[xfactor@tcniso.net](mailto:xfactor@tcniso.net) or upload it for me some place.

---

<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: [January 23, 2003, 5:00am UTC](https://forum.kirupa.com/t/clip-control/11793/15 "2003-01-23T05:00:02Z")

</div>

get it here [www.expocaribbean.com/uwantmore/fixed.fla](http://www.expocaribbean.com/uwantmore/fixed.fla)

Grim

---

<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: [January 23, 2003, 5:12am UTC](https://forum.kirupa.com/t/clip-control/11793/16 "2003-01-23T05:12:51Z")

</div>

\_root.walk.gotoAndStop(1);

what is walk, the name of the movie is GWalk, where did you set the walk at?

---

<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: [January 23, 2003, 5:18am UTC](https://forum.kirupa.com/t/clip-control/11793/17 "2003-01-23T05:18:20Z")

</div>

i changed the instance of the mc gwalk to walk thats all  
Just select the movie clip ant rename it

Grim

---

<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: [January 23, 2003, 5:20am UTC](https://forum.kirupa.com/t/clip-control/11793/18 "2003-01-23T05:20:30Z")

</div>

where do you change the instance name?

i click on the movie GWalk and press properties its not there

---

<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: [January 23, 2003, 5:26am UTC](https://forum.kirupa.com/t/clip-control/11793/19 "2003-01-23T05:26:46Z")

</div>

Change the name where its circled

Grim

---

<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: [January 23, 2003, 5:38am UTC](https://forum.kirupa.com/t/clip-control/11793/20 "2003-01-23T05:38:52Z")

</div>

I must still be a tard, cause i can’t find what you just showed me

[Next page](https://forum.kirupa.com/t/clip-control/11793.md?page=2)
