# Frame # vs Frame label?

**URL:** <https://forum.kirupa.com/t/frame-vs-frame-label/38635>\
**Category:** flash\
**Created:** [December 27, 2003, 5:29am UTC](https://forum.kirupa.com/t/frame-vs-frame-label/38635 "2003-12-27T05:29:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lacuna](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@Lacuna](https://forum.kirupa.com/u/Lacuna)\
**Post date:** [December 27, 2003, 5:29am UTC](https://forum.kirupa.com/t/frame-vs-frame-label/38635/1 "2003-12-27T05:29:51Z")

</div>

Does anyone know why if I use

on (press) {  
\_parent.\_parent.gotoAndPlay(19);  
}

* * *

## instead of

on (press) {  
\_parent.\_parent.gotoAndPlay(wdframe);  
}

it will work? My labeled frame is two parent mc’s previous and it doesnt work when I call to it with the label?  
I would really like to use the label so if I move my keyframes around I dont have to change a lot of code…

Thanks for any help

~~ Seretha :love:

---

<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:** [December 27, 2003, 6:21am UTC](https://forum.kirupa.com/t/frame-vs-frame-label/38635/2 "2003-12-27T06:21:30Z")

</div>

```auto
on (press) {
_parent._parent.gotoAndPlay("wdframe");
}

```

check the spelling too.

btw, i hate frame label, but that’s JMO.

---

<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:** [December 27, 2003, 7:02am UTC](https://forum.kirupa.com/t/frame-vs-frame-label/38635/3 "2003-12-27T07:02:29Z")

</div>

The double quotes make all the difference. Without them Flash is looking for the value of a variable, so you have to define the frame label in the gotoAndPlay as a string and put it in quotes.

Norie: You hate frame labels? Why? They allow for easier adjustment to frame positions without having to change your actionscript (like if you wanted to make a tween longer or shorter)

---

<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:** [December 27, 2003, 7:24am UTC](https://forum.kirupa.com/t/frame-vs-frame-label/38635/4 "2003-12-27T07:24:20Z")

</div>

im not really sure WHY i hate them, i just do. Then again, i don’t do many tweens (motion or shape). I figure if i need to use a frame label, then i can probably just AS the effect. or i’ll do a tween and just make a rewind script to finish the rest, say for a button or something. There’s nothing wrong with frame labels… it’s just not my style. Same thing goes with scences, you’ll NEVER see me use scenes.

---

<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:** [December 27, 2003, 7:31am UTC](https://forum.kirupa.com/t/frame-vs-frame-label/38635/5 "2003-12-27T07:31:49Z")

</div>

I hear ya on the scenes, scenes make me mad. But I think they are just something you learn to avoid as you adjust to using Flash. I used to use scenes all the time when I started, now I never use them.

Erm, sorry for thread hijacking…

---

<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:** [December 27, 2003, 7:43am UTC](https://forum.kirupa.com/t/frame-vs-frame-label/38635/6 "2003-12-27T07:43:32Z")

</div>

![](http://kirupa.rastardesigns.com/hijacker.jpg)

😛

errr yea, make sure you use quotes 😉

jk

---

<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:** [December 27, 2003, 11:40am UTC](https://forum.kirupa.com/t/frame-vs-frame-label/38635/7 "2003-12-27T11:40:02Z")

</div>

> \*Originally posted by Seretha Blaze \*  
> \*\*Does anyone know why if I use

on (press) {  
\_parent.\_parent.gotoAndPlay(19);  
}

* * *

## instead of

on (press) {  
\_parent.\_parent.gotoAndPlay(wdframe);  
}

it will work? My labeled frame is two parent mc’s previous and it doesnt work when I call to it with the label?  
I would really like to use the label so if I move my keyframes around I dont have to change a lot of code…

Thanks for any help

~~ Seretha :love: \*\*

I never saw the point of frame label until I made a 10000+ frame movie then it was a bugger to find the right frame to go to

---

<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:** [December 27, 2003, 4:19pm UTC](https://forum.kirupa.com/t/frame-vs-frame-label/38635/8 "2003-12-27T16:19:49Z")

</div>

Thanks guys. It works great. Feel stupid for not realizing the obvious, but mainly glad its working.

:pleased:

~~ Seretha :love:

---

<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:** [December 27, 2003, 7:43pm UTC](https://forum.kirupa.com/t/frame-vs-frame-label/38635/9 "2003-12-27T19:43:49Z")

</div>

if you are going to use scenes, its good practice to use frame labels. If not, don’t worry about it. It does allow for easier movement, if you have to switch frames or something, you don’t have to recode anything. But then again using scenes isn’t the best practice, but there is a progression of what is best to do for a certain scernario
