# Toggle Button.. I'm sooooo stuck!

**URL:** <https://forum.kirupa.com/t/toggle-button-im-sooooo-stuck/237447>\
**Category:** flash\
**Created:** [August 30, 2007, 1:22pm UTC](https://forum.kirupa.com/t/toggle-button-im-sooooo-stuck/237447 "2007-08-30T13:22:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![James001](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@James001](https://forum.kirupa.com/u/James001)\
**Post date:** [August 30, 2007, 1:22pm UTC](https://forum.kirupa.com/t/toggle-button-im-sooooo-stuck/237447/1 "2007-08-30T13:22:04Z")

</div>

I’m struggling to find any info that can help me get this toggle button. I’m trying to get this function to target myClip\_mc and move the frame head to another frame label.

var counter:Number = 1;

//textBeGone  
invisible\_btn.onRelease = function(){  
counter++;  
if(counter % 2 = true) {  
\_root.myClip\_mc.gotoAndPlay(“fadeOut”);  
}else if(counter % 1 = true) {  
\_root.myClip\_mc.gotoAndPlay(1);  
}  
};
