# AS3- movie clip to mainline

**URL:** <https://forum.kirupa.com/t/as3-movie-clip-to-mainline/326666>\
**Category:** flash\
**Created:** [January 3, 2012, 9:04pm UTC](https://forum.kirupa.com/t/as3-movie-clip-to-mainline/326666 "2012-01-03T21:04:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bee\_89](https://avatars.discourse-cdn.com/v4/letter/b/f0a364/32.png) [@bee\_89](https://forum.kirupa.com/u/bee_89)\
**Post date:** [January 3, 2012, 9:04pm UTC](https://forum.kirupa.com/t/as3-movie-clip-to-mainline/326666/1 "2012-01-03T21:04:48Z")

</div>

I’m having trouble jumping to another frame (15) in the main stage named “main” when closing a movie clip on frame 10…

ArgumentError: Error #2108: Scene main was not found.  
at flash.display::MovieClip/gotoAndPlay()  
at welldone\_mc/nextlevel\_function()

the actions are as follows:

stop();

nextlevel\_btn.addEventListener(MouseEvent.CLICK,nextlevel\_function);

function nextlevel\_function(evt:MouseEvent):void {

gotoAndPlay(15, “main”);

}

i’ve tried labelling the frame, but the problem seems to be locating the scene “main”?

Any help much appreciated! B
