# Help with gotoAndPlay w/ nested movie clips

**URL:** <https://forum.kirupa.com/t/help-with-gotoandplay-w-nested-movie-clips/297747>\
**Category:** flash\
**Created:** [October 7, 2009, 10:51pm UTC](https://forum.kirupa.com/t/help-with-gotoandplay-w-nested-movie-clips/297747 "2009-10-07T22:51:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cullend](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@cullend](https://forum.kirupa.com/u/cullend)\
**Post date:** [October 7, 2009, 10:51pm UTC](https://forum.kirupa.com/t/help-with-gotoandplay-w-nested-movie-clips/297747/1 "2009-10-07T22:51:40Z")

</div>

Hi there! I’m just migrating to AS3 from AS2. I think I have some syntax issue with how I’m handling gotoAndPlay in AS3 . I have my main stage, then a movie symbol called Copenagen. In the Copenhagen symbol is a symbol called closeb, but it doesn’t really work… Take a look at [[COLOR=#800080]http://www.cullend.com/portfolio.html[/COLOR]](http://www.cullend.com/portfolio.html) – click the first piece of paper at the bottom. Notice the dot in the top right – it’s a temp close button. Clicking it just replays the ‘up’ animation 😕 any help at all is greatly appreciated.

If you want to look at the actual .FLA [[COLOR=#0066cc]http://www.cullend.com/portfolio.zip[/COLOR]](http://www.cullend.com/portfolio.zip) has the .FLA

I’m about to be out of a job due to layoffs so just trying to get my portfolio up as quickly as possible for potential employers. So any help that anyone can give is greatly, greatly, greatly appreciated.

On my main timeline I have:

```auto
 
copenhagen.addEventListener(MouseEvent.CLICK, onClick1);
function onClick1(MouseEvent):void
{
   if(space==0){
      copenhagen.gotoAndPlay('up');
      space = 1;
      opened = "copenhagen";
   }
   else if(space==1){
      newopen = "copenhagen";
      opened.gotoAndPlay('unloaded');
   }
}

copenhagen.closeb.addEventListener(MouseEvent.CLICK, onClickcb); 
   function onClickcb(MouseEvent):void { 
copenhagen.gotoAndPlay('down') space = 0; 
} 

```
