# Lable

**URL:** https://forum.kirupa.com/t/lable/22995
**Category:** Uncategorized
**Created:** [June 11, 2003, 5:15pm UTC](https://forum.kirupa.com/t/lable/22995 "2003-06-11T17:15:46Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![orangefish](https://avatars.discourse-cdn.com/v4/letter/o/5e9695/32.png) [@orangefish](https://forum.kirupa.com/u/orangefish)
#### Post date: [June 11, 2003, 5:15pm UTC](https://forum.kirupa.com/t/lable/22995/1 "2003-06-11T17:15:46Z")

</div>

Hi all,  
I have a pseudo code that I don’t know how to conver to actionscript and I hope that someone could help me on this one!!!

Here it goes: If Lable in the movie clip test equals to 1, 4, 7 then txt box shows “this test works”.

(In the mc\_test, it has 10 lables. They are numbers 1 through 10. I want to make a if statement that will pick out some particular numbers from the lables and do something.)  
Thanks a lot!  
:toad:

---

<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 11, 2003, 5:25pm UTC](https://forum.kirupa.com/t/lable/22995/2 "2003-06-11T17:25:46Z")

</div>

No need for crossposting. ([http://www.kirupaforum.com/forums/showthread.php?s=&threadid=25674](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=25674))

---

<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 11, 2003, 5:50pm UTC](https://forum.kirupa.com/t/lable/22995/3 "2003-06-11T17:50:49Z")

</div>

sure thing!

I have a move clip called room, and inside that moive clip I have 10 frames, and in each frames I have a label. They label names are a, b, c, d, e, f, g, h, i, and j.  
(you have to know that a, b, c room are in section1; d, e, f, g are in section2; g, h, i are in section3. )  
Therefore, I would like an if statement that will allow me to set that if lable = a, b, c . txt box show" this is section 1" lable= d,e,f,g. txt box show" this is section 2" lable =h, i, j. txt box show" this is section3".  
I hope this will clearfy!!! Thanks a lot for help!!!

---

<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 11, 2003, 6:02pm UTC](https://forum.kirupa.com/t/lable/22995/4 "2003-06-11T18:02:53Z")

</div>

Well I guess what you could do to do this is add this code to a,b, & c:

[AS]  
\_root.textbox = “This is Section 1”;  
[/AS]

To d, e, f, add this

[AS]  
\_root.textbox = “This is Section 2”;  
[/AS]

And to g, h, i, add this:

[AS]  
\_root.textbox = “This is Section 3”;  
[/AS]

No need for an if statement.

---

<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 11, 2003, 6:04pm UTC](https://forum.kirupa.com/t/lable/22995/5 "2003-06-11T18:04:41Z")

</div>

I deleted your other thread because crossposting is frowned upon here.

---

<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 11, 2003, 6:21pm UTC](https://forum.kirupa.com/t/lable/22995/6 "2003-06-11T18:21:31Z")

</div>

frowned upon -\> hehe, funny words 😛

---

<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 11, 2003, 6:26pm UTC](https://forum.kirupa.com/t/lable/22995/7 "2003-06-11T18:26:07Z")

</div>

thanks all!  
I think I will still have to stick with the if statement because of the way that the whole fla set up.  
But now I came up with this line, and I hope people can help me fix it!!!

if(\_root.map.label = “a” & “b” & “c” & “d”){floornum = “Floor 2”;}

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 11, 2003, 8:25pm UTC](https://forum.kirupa.com/t/lable/22995/8 "2003-06-11T20:25:27Z")

</div>

[“I deleted your other thread because crossposting is frowned upon here”  
same for the new one, this one is still in the top ten here, no need to start a new one…]  
You can’t check on a frame’s label by script. As far as I know. All you can use labels for is goto’s.  
Set a variable in each of these frames (as in floor = 2) , then check on that in your if…

---

<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 11, 2003, 9:07pm UTC](https://forum.kirupa.com/t/lable/22995/9 "2003-06-11T21:07:27Z")

</div>

here is another question!!! Can I check frame label at all with scripts?  
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 11, 2003, 9:49pm UTC](https://forum.kirupa.com/t/lable/22995/10 "2003-06-11T21:49:21Z")

</div>

No, as eyezburg stated, you cannot check a frames label via actionscript.

You can only gotoAndPlay (or gotoAndStop) at a frame label, that is all.

You also cannot use numbers for frame labels (just in case that was brought up) otherwise it won’t work. Numbers combined with text work though, for instance 1 will not work, but 1a will.
