# Frame label variables

**URL:** <https://forum.kirupa.com/t/frame-label-variables/6880>\
**Category:** Uncategorized\
**Created:** [October 18, 2002, 5:32pm UTC](https://forum.kirupa.com/t/frame-label-variables/6880 "2002-10-18T17:32:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shuga](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@shuga](https://forum.kirupa.com/u/shuga)\
**Post date:** [October 18, 2002, 5:32pm UTC](https://forum.kirupa.com/t/frame-label-variables/6880/1 "2002-10-18T17:32:24Z")

</div>

i have a button inside an mc which i have told to set i=2 … or another number depending on the button but for the sake of argument … i will be 2 for now. when i = 2 i want the \_root timeline to gotoAndPlay frame label 2

so on the main timeline i have an action in a frame that says

```auto

gotoAndPlay("*");

```

whats wrong with this statement …

oh yeah … and inside the mc on the button i have the code

```auto

on(press){
     _root.i=2;
     _root.nextFrame;
}

```

thanks for your 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:** [October 18, 2002, 5:44pm UTC](https://forum.kirupa.com/t/frame-label-variables/6880/2 "2002-10-18T17:44:19Z")

</div>

i can’t understand what you want…  
but

```auto
gotoAndPlay("*");

```

not familiar to me…:q:  
if you can send me the file…

---

<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:** [October 18, 2002, 5:55pm UTC](https://forum.kirupa.com/t/frame-label-variables/6880/3 "2002-10-18T17:55:27Z")

</div>

it’s an experimental site i’m working on … and since i didn’t know exactly what i was going to do when i started … it’s kind of sloppy as far as the way it’s put together … but once i get the coding working … i’m going to redo it so i can update it much more easily.

anyway … .here’s the files  
[http://home.attbi.com/~xsleeperx2/as/as.fla](http://home.attbi.com/~xsleeperx2/as/as.fla)

[http://home.attbi.com/~xsleeperx2/as/as.html](http://home.attbi.com/~xsleeperx2/as/as.html)

[http://home.attbi.com/~xsleeperx2/as/as.swf](http://home.attbi.com/~xsleeperx2/as/as.swf)

the purpose is i’m trying to figure out how to do in and out animations for the different button contents … i.e. when the user clicks a button … the old content animates going out and then the new content whatever it is … comes in

---

<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:** [October 18, 2002, 10:51pm UTC](https://forum.kirupa.com/t/frame-label-variables/6880/4 "2002-10-18T22:51:15Z")

</div>

I don’t mean to be rude but everything is wrong with this statement 😛

[i] doesn’t mean anything by itself, “[i]” would be the string [then letter i then]

Try this:

```auto
_root.gotoAndPlay(_root.i);

```

Cheers.

pom :asian:

---

<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:** [October 19, 2002, 12:39am UTC](https://forum.kirupa.com/t/frame-label-variables/6880/5 "2002-10-19T00:39:18Z")

</div>

#&$^!)#@$!)(@#$^!#$)^!@#$\_^)@!(#\*  
_sniffle_  
i wanna be smart too!

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:** [October 19, 2002, 12:41am UTC](https://forum.kirupa.com/t/frame-label-variables/6880/6 "2002-10-19T00:41:07Z")

</div>

i just uploaded a new version of [http://home.attbi.com/~xsleeperx2/as/as.fla](http://home.attbi.com/~xsleeperx2/as/as.fla)

and i can’t get the progress bar to work … i know theres a tutorial on kirupa … but i’d like to figure out how to use the one i have instead of going through a tutorial … b/c i like how this one works … so if someone could d/l my fla and help me figure out how to make the component in scene 1 work … i would greatly appreciate it … thanks 🙂
