Else if statement with movie clips

i’m trying to control the movement of a movie clip which is determined by what frame label it is currently at.

if the frame of the movie clip is at “still”, then i want it to gotoAndPlay("up). if the frame is at the label “up” i want the clip to play “restore”.

i’m not sure how to phrase the action, but here’s what i’ve got so far (i know its wrong because it won’t work):


on (release) {
	if (this._currentframe === ("still")) {
		gotoAndPlay("up");
	} else {
		gotoAndPlay("restore");
	}
}

thanks for any help you can give.