i have a variable declared elswhere called floor. when this button is pressed i want 1 to be added to floor and then i want flash to go to the frame label that corresponds to the variable floor
Well _root.floor is a number you are declaring not a frame label. You only use double quotes " " on gotoAnds if you are targeting a frame label. So you should do this…
Since you are going gotoAndStop("_root.floor") it is looking for the frame label that says _root.floor. You don’t have that. What you will need to do is this…
gotoAndStop("""+_root.floor+""");
" is how to add a double quote inside double quotes (I believe that is right) So this will make your final output like this (if _root.floor outputs 5)…
also if you are just feeling industrius or otherwise bored you are more than welcome to make suggestions on other parts of this program i’ve been working on for way too long =)
in the layers there is a folder of layers called map … the symbol is in there … if you look in the library the symbol itself is called mapview.
and i don’t use nextframe b/c there are many other things inside that symbol, all the divisions of the company (selectable through the combobox) so they won’t always be right next to the proper frame.
that button is only to go between floors on the map … not through every frame of the mc. that would take them through all the divisions etc which i want them to select via the combobox
once you open the symbol you should be able to see what i’m talking about
Hey shuga, I can’t work on it today (going to see my girlfriend… YAY), but I found this excellent article at Macromedia that seems like it may fix your problem…
and it might work … i dunno … i don’t think my variable is being detected b/c the trace action doesn’t even work. it does the same thing if i put _root in front of floor as well