You can't frame label your frames with numbers. You can incorporate a number into it, but it cannot start with a number, or contain just numbers.
_currentframe as you found out does read the current frames numbers. So far Macromedia has not put in a way to read a frame label through AS.
Your options are a bit slim, and i'm sure I will be missing some options since i'm in a bit of a rush, but here I go.
If it's possible, you may have to hard code the button actions to go where you want.
Or (just theory, didn't test) you can store the frame labels/numbers in an array then use that. For example.....
Frame 1 actions will contain...
var index;
var frames = ["keyframe2", "keyframe3", "keyframe4"];
- var index;
- var frames = ["keyframe2", "keyframe3", "keyframe4"];
You will notice I start at keyframe2, this is because your movie starts playing at keyframe1, so theres no need for it in there.
Then on each keyframe you can add an
which is like saying index = index+1 (increments the variable "index" by 1).
You can then use the index variable to check your array for what keyframe is coming up, then use a gotoAndPlay() to go to it. Something like...
gotoAndPlay(frames[index]);
If this doesn't help, hopefully it's a point in the right direction.