# \[MX\] gotoandStop ("framelabel")?

**URL:** <https://forum.kirupa.com/t/mx-gotoandstop-framelabel/22141>\
**Category:** Uncategorized\
**Created:** [May 30, 2003, 9:07pm UTC](https://forum.kirupa.com/t/mx-gotoandstop-framelabel/22141 "2003-05-30T21:07:05Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felipe\_Bastos](https://avatars.discourse-cdn.com/v4/letter/f/f05b48/32.png) [@Felipe\_Bastos](https://forum.kirupa.com/u/Felipe_Bastos)\
**Post date:** [May 30, 2003, 9:07pm UTC](https://forum.kirupa.com/t/mx-gotoandstop-framelabel/22141/1 "2003-05-30T21:07:05Z")

</div>

It sounds simple!  
Can I jump to a frame using the frame label?  
Like this:

```
_root.C.inicio.onRelease = function() {
	mouseRelease(inicio);
	_root.content.gotoAndStop("inicio"); // this code line?

```

}

🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 30, 2003, 9:48pm UTC](https://forum.kirupa.com/t/mx-gotoandstop-framelabel/22141/2 "2003-05-30T21:48:25Z")

</div>

yes. i should work. why dont you try it?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 30, 2003, 10:20pm UTC](https://forum.kirupa.com/t/mx-gotoandstop-framelabel/22141/3 "2003-05-30T22:20:20Z")

</div>

I tyied but it didnt work!!!  
What might be wrong?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 31, 2003, 12:58am UTC](https://forum.kirupa.com/t/mx-gotoandstop-framelabel/22141/4 "2003-05-31T00:58:44Z")

</div>

i tried the following and it worked:

[AS]  
on (release) {  
\_root.gotoAndPlay(“hello”);  
}  
[/AS]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 31, 2003, 7:54am UTC](https://forum.kirupa.com/t/mx-gotoandstop-framelabel/22141/5 "2003-05-31T07:54:08Z")

</div>

But it`s a movieclip attached to another movieclip! I`ll check that!

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 2, 2003, 3:34pm UTC](https://forum.kirupa.com/t/mx-gotoandstop-framelabel/22141/6 "2003-06-02T15:34:41Z")

</div>

I still cant make this work! ☹

```auto
on(release) {
// loadMovie e goto frame 2.
	_root.content.loadMovie("cap01/cap01.swf");
	_root.content.gotoAndStop(2);
}

```

It does not work even if I use frame label!  
What is happening?! Help me!!  
…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 2, 2003, 4:25pm UTC](https://forum.kirupa.com/t/mx-gotoandstop-framelabel/22141/7 "2003-06-02T16:25:13Z")

</div>

You can’t manipulate the movie until it is fully loaded.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 2, 2003, 4:55pm UTC](https://forum.kirupa.com/t/mx-gotoandstop-framelabel/22141/8 "2003-06-02T16:55:21Z")

</div>

I`m working on a cdrom project.  
It loads the file.swf in a quick, thats why I thought it should work!!!  
Can you think of something?

thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 2, 2003, 6:32pm UTC](https://forum.kirupa.com/t/mx-gotoandstop-framelabel/22141/9 "2003-06-02T18:32:19Z")

</div>

It loads it quick, but it doesn’t load it at the exact same time the loadMovie() command is called.

What you could do is set a variable to hold what frame label to play. Then in frame 1 of the movie you are loading have the gotoAndPlay in there and target the variable that holds the frame label.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 2, 2003, 8:24pm UTC](https://forum.kirupa.com/t/mx-gotoandstop-framelabel/22141/10 "2003-06-02T20:24:32Z")

</div>

Can u help me with that and give an example?!

🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 2, 2003, 9:23pm UTC](https://forum.kirupa.com/t/mx-gotoandstop-framelabel/22141/11 "2003-06-02T21:23:57Z")

</div>

Button:  
[AS]on (release){  
\_root.playLabel = “frameLabelToPlay”;  
\_root.content.loadMovie(“cap01/cap01.swf”);  
}[/AS]

Frame 1 of loaded movie:  
[AS]gotoAndPlay(\_root.playLabel);[/AS]

:-\

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 3, 2003, 5:00am UTC](https://forum.kirupa.com/t/mx-gotoandstop-framelabel/22141/12 "2003-06-03T05:00:31Z")

</div>

It`s working fine!!! The frame that is labed is the frame 2 in every swf loaded. It`s like a book, and frame 1 is the index.  
So in frame 2 I had to use the following code otherwise I could not go to frame 1.

```auto
 _root.playLabel = ""; 

```

Thanks  
🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 3, 2003, 5:15am UTC](https://forum.kirupa.com/t/mx-gotoandstop-framelabel/22141/13 "2003-06-03T05:15:24Z")

</div>

No problem, glad you got it working 🙂
