# gotoAndStop Button function

**URL:** <https://forum.kirupa.com/t/gotoandstop-button-function/327788>\
**Category:** flash\
**Created:** [March 28, 2012, 7:09pm UTC](https://forum.kirupa.com/t/gotoandstop-button-function/327788 "2012-03-28T19:09:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Estrada](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@Mark\_Estrada](https://forum.kirupa.com/u/Mark_Estrada)\
**Post date:** [March 28, 2012, 7:09pm UTC](https://forum.kirupa.com/t/gotoandstop-button-function/327788/1 "2012-03-28T19:09:36Z")

</div>

Is there a way of using this gotoAndStop code to get layer name, then frame number?

for example I have like frames in 1,2,3,4,5 and I have another frames to come in but I wanna put them in the same numbers but would show different image/texts. If this makes sense .

so like gotoAndStop(layer,frame 2); to illustrate where I wanna put the new frames I highlighted them frames and layer.

[![](http://s7.postimage.org/vauzorvtj/123.jpg)](http://postimage.org/image/vauzorvtj/)
