# Stop Intro looping

**URL:** https://forum.kirupa.com/t/stop-intro-looping/265820
**Category:** flash
**Created:** [July 12, 2008, 11:18pm UTC](https://forum.kirupa.com/t/stop-intro-looping/265820 "2008-07-12T23:18:04Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![digitalmemento](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@digitalmemento](https://forum.kirupa.com/u/digitalmemento)
#### Post date: [July 12, 2008, 11:18pm UTC](https://forum.kirupa.com/t/stop-intro-looping/265820/1 "2008-07-12T23:18:04Z")

</div>

Im currently in the process of putting together my first Flash site which has got an intro and the last frame of this intro forms the background for the site. After a button is clicked the very short clip plays agian and takes you to the next page. The problem is I do not know how to stop this cip looping after the last frame. Could someone enlighten me on this simple problem.

---

<div class="post-metadata">

### Author: ![saxx](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@saxx](https://forum.kirupa.com/u/saxx)
#### Post date: [July 12, 2008, 11:34pm UTC](https://forum.kirupa.com/t/stop-intro-looping/265820/2 "2008-07-12T23:34:00Z")

</div>

I’m guessing your using adobe’s gui tweening engine? correct?  
Just put

> stop();  
> at the keyframe where you want the animation to stop.

putting that at the end will stop flash from going to the next keyframe.  
hope that helped 🙂

---

<div class="post-metadata">

### Author: ![digitalmemento](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@digitalmemento](https://forum.kirupa.com/u/digitalmemento)
#### Post date: [July 12, 2008, 11:47pm UTC](https://forum.kirupa.com/t/stop-intro-looping/265820/3 "2008-07-12T23:47:30Z")

</div>

Hi saxx, I tried this before and that seems to happen is either the first or final frame (both are the same) flashes repeatedly. :sad:

EDIT: The movie was broken in the first place thus the flashing never bothered to check it without the stop command, so need to fix that first. Thanks for solution. 🙂

---

<div class="post-metadata">

### Author: ![saxx](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@saxx](https://forum.kirupa.com/u/saxx)
#### Post date: [July 12, 2008, 11:58pm UTC](https://forum.kirupa.com/t/stop-intro-looping/265820/4 "2008-07-12T23:58:54Z")

</div>

Wanna post a source, and see if we can fix it? or Pm it to me or whatever

---

<div class="post-metadata">

### Author: ![digitalmemento](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@digitalmemento](https://forum.kirupa.com/u/digitalmemento)
#### Post date: [July 13, 2008, 7:15pm UTC](https://forum.kirupa.com/t/stop-intro-looping/265820/5 "2008-07-13T19:15:31Z")

</div>

The stop command helped with getting the movieclip on frame 1 to work but due to this it does not proceed to the next frame. I tried gotoAndPlay but this did not help. Frame 2 has got a button which constantly rotates, the code for which i got from this forum (thanks iceman). Each time the button is clicked I would like the movieclip on frame 1 to play and the open the link the button is associted with. If anyone can take a look at the fla to this which I have attached that would great. :beer2:

---

<div class="post-metadata">

### Author: ![spectator](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@spectator](https://forum.kirupa.com/u/spectator)
#### Post date: [July 13, 2008, 8:01pm UTC](https://forum.kirupa.com/t/stop-intro-looping/265820/6 "2008-07-13T20:01:38Z")

</div>

Hi, I think I have fixed your problem. First of all give your logo mc instance name logo. After that open the Actions panel and there you have written

```auto
stop();

```

This should be

```auto
stop();

logo.play();

```

In your logo mc you have 2 motions and a stop also replace the stop with this

```auto
onEnterFrame = function () {
                        _root.gotoAndPlay(2);
}

```

here we create a function which will go to the second frame of your main movie when the animation is over 🙂 The last thing you should do is open your btn instance and into it you have some code add this

```auto
btn.onRelease = function ()
{
    _root.gotoAndPlay(1);
}

```

here we create a function which will be executed when you click the button and this function says go to frame 1 of the main movie and play this should help you 🙂

---

<div class="post-metadata">

### Author: ![digitalmemento](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@digitalmemento](https://forum.kirupa.com/u/digitalmemento)
#### Post date: [July 13, 2008, 11:13pm UTC](https://forum.kirupa.com/t/stop-intro-looping/265820/7 "2008-07-13T23:13:47Z")

</div>

Great stuff spectator!! Thats exactly what I was looking for, thanks.:beam:

Final question, after this code :  
btn.onRelease = function ()  
{  
\_root.gotoAndPlay(1);  
}how do I then get it to proceed to the frame it is assocaited with?
