# ::LABEL:: is there any way

**URL:** <https://forum.kirupa.com/t/label-is-there-any-way/22020>\
**Category:** Uncategorized\
**Created:** [May 29, 2003, 7:59am UTC](https://forum.kirupa.com/t/label-is-there-any-way/22020 "2003-05-29T07:59:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![noxious](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@noxious](https://forum.kirupa.com/u/noxious)\
**Post date:** [May 29, 2003, 7:59am UTC](https://forum.kirupa.com/t/label-is-there-any-way/22020/1 "2003-05-29T07:59:40Z")

</div>

…is there any way you can detect/retrieve the name of the label you are currently in? (i dont wanna use frames for certain reasons)

---

<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 29, 2003, 8:14am UTC](https://forum.kirupa.com/t/label-is-there-any-way/22020/2 "2003-05-29T08:14:51Z")

</div>

maybe this could help… ? :-\

[http://proto.layer51.com/d.aspx?f=810](http://proto.layer51.com/d.aspx?f=810)

---

<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 29, 2003, 9:11am UTC](https://forum.kirupa.com/t/label-is-there-any-way/22020/3 "2003-05-29T09:11:36Z")

</div>

that was pretty interesting! …but as of now, what im trying to make is a simple presentation… in which i have next n back buttons… let’s say i have 15 topics, 1 topic for 1 label… i guess im a bit lazy that i want my, say next button, to be in 1 layer, without cuts, and have same script… now, say im in topic7(label=topic7), when i click on the next button it will “automatically” go to label “topic8”…

---

<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 29, 2003, 9:46am UTC](https://forum.kirupa.com/t/label-is-there-any-way/22020/4 "2003-05-29T09:46:06Z")

</div>

```auto
var index = 1, topics = 15;
backButton.onRelease = function() {
	index>1 ? index-- : index=topics;
	gotoAndStop("topic"+index);
};
nextButton.onRelease = function() {
	index<topics ? index++ : index=1;
	gotoAndStop("topic"+index);
};

```

😉

---

<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 29, 2003, 10:55am UTC](https://forum.kirupa.com/t/label-is-there-any-way/22020/5 "2003-05-29T10:55:06Z")

</div>

thanx man! that was brilliant! ;)!

---

<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 29, 2003, 10:55am UTC](https://forum.kirupa.com/t/label-is-there-any-way/22020/6 "2003-05-29T10:55:48Z")

</div>

i know… 😛

---

<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 29, 2003, 11:09am UTC](https://forum.kirupa.com/t/label-is-there-any-way/22020/7 "2003-05-29T11:09:43Z")

</div>

yeah you always do! :Plol
