# Roof.gotoAndPlay(2); But it stops

**URL:** <https://forum.kirupa.com/t/roof-gotoandplay-2-but-it-stops/110677>\
**Category:** Uncategorized\
**Created:** [May 18, 2004, 8:36pm UTC](https://forum.kirupa.com/t/roof-gotoandplay-2-but-it-stops/110677 "2004-05-18T20:36:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greenhouse](https://avatars.discourse-cdn.com/v4/letter/g/7c8e57/32.png) [@Greenhouse](https://forum.kirupa.com/u/Greenhouse)\
**Post date:** [May 18, 2004, 8:36pm UTC](https://forum.kirupa.com/t/roof-gotoandplay-2-but-it-stops/110677/1 "2004-05-18T20:36:46Z")

</div>

I’m having some trouble with playing a flash movie.

When the flash animation starts, i want to start a movie clip with instance name roof.  
So i just put this in my code. : roof.gotoAndPlay(2);  
Flash go’s to the secont frame, but stops there.

When i use a button to start the secont frame, it works.  
So this works and plays :

> stopmusic.onRelease = function(){  
> \_root.mySound.stop();  
> \_root.roof.gotoAndStop(1);

```
nextFrame();

```

}

What am i forgetting here?
