# gotoAndPlay("label") function

**URL:** https://forum.kirupa.com/t/gotoandplay-label-function/149834
**Category:** Uncategorized
**Created:** [June 1, 2005, 6:19pm UTC](https://forum.kirupa.com/t/gotoandplay-label-function/149834 "2005-06-01T18:19:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ale\_negrini](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@ale\_negrini](https://forum.kirupa.com/u/ale_negrini)
#### Post date: [June 1, 2005, 6:19pm UTC](https://forum.kirupa.com/t/gotoandplay-label-function/149834/1 "2005-06-01T18:19:55Z")

</div>

Hi,  
I am new to flash and I hope somebody can help me on this.

I have a main flash file (A.swf). In the first frame I use the load Movie function to load a second swf file (B.swf) in a movieclip called contents

\_root.contents.loadMovie(“B.swf”); (OK so far)

the A.swf file contains a button.

On release of this button I would like to goAndPlay starting from a frame in the B.swf., this frame is labeled “music”.

I tryed this code  
on (release) {  
\_root.contents.gotoAndPlay(“music”)  
}  
but it does not work.

How can I do?  
Thanks
