# Go to frame labels of a MC

**URL:** https://forum.kirupa.com/t/go-to-frame-labels-of-a-mc/35919
**Category:** flash
**Created:** [November 19, 2003, 5:29pm UTC](https://forum.kirupa.com/t/go-to-frame-labels-of-a-mc/35919 "2003-11-19T17:29:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Mazar](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@Mazar](https://forum.kirupa.com/u/Mazar)
#### Post date: [November 19, 2003, 5:29pm UTC](https://forum.kirupa.com/t/go-to-frame-labels-of-a-mc/35919/1 "2003-11-19T17:29:42Z")

</div>

Hey all…

I have a button on the main stage, and a movieclip “qccontent”. When the user presses the button, I am trying to check if the MC is on a specific frame label. The MC starts on a stopped frame labeled “closed”.

Right now, each time the button is pressed, it currently goes and plays the label “closemenohit”. It is not reading the first part. Am I doing something wrong?

[AS]  
on (release) {  
if (\_root.qccontent.\_currentframe(“closed”)) {  
\_root.qccontent.gotoAndPlay(“openme”);  
} else {  
\_root.qccontent.gotoAndPlay(“closemenohit”);  
}  
}  
[/AS]

All or any help would be appreciated. Thanks! Working in Flash MX. 🙂
