# gotoAndStop NEXT label frame

**URL:** <https://forum.kirupa.com/t/gotoandstop-next-label-frame/303210>\
**Category:** flash\
**Created:** [January 16, 2010, 6:57am UTC](https://forum.kirupa.com/t/gotoandstop-next-label-frame/303210 "2010-01-16T06:57:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shertok](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@Shertok](https://forum.kirupa.com/u/Shertok)\
**Post date:** [January 16, 2010, 6:57am UTC](https://forum.kirupa.com/t/gotoandstop-next-label-frame/303210/1 "2010-01-16T06:57:36Z")

</div>

Is there a way to move to next (not specified) label frame without indicating a specific name?

I have a portfolio movie clip with images, using the AS3 Tween Class.  
I have a “next” button that hopefully will trigger the tween to NEXT label.

here is my code:  
var myLabels:Array = [“print”, “printA”, “printB”, “printC”, “printD”, “printE”, “printF”];  
next\_btn.addEventListener(MouseEvent.CLICK, clickNextSection);

function clickNextSection (evtObj: MouseEvent){  
trace (“The”+evtObj.target.name+“button was clicked!”)  
gotoAndStop ([COLOR=“Red”]NEXT LABEL FRAME?[/COLOR]);

Thanks
