# Button Problems

**URL:** <https://forum.kirupa.com/t/button-problems/254148>\
**Category:** Uncategorized\
**Created:** [March 8, 2008, 4:20pm UTC](https://forum.kirupa.com/t/button-problems/254148 "2008-03-08T16:20:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lfollett](https://avatars.discourse-cdn.com/v4/letter/l/ce73a5/32.png) [@lfollett](https://forum.kirupa.com/u/lfollett)\
**Post date:** [March 8, 2008, 4:20pm UTC](https://forum.kirupa.com/t/button-problems/254148/1 "2008-03-08T16:20:16Z")

</div>

I have created a header for an HTML site I am designing (I am VERY new to Flash). I have buttons across the top that I have made from Movie Clips. They do everything I want them to do, except stay ON when clicked. This is the action script I have written for it. If anyone could help me out I would greatly appreciate it!

```auto
//Home Button Actions

this.homeMC.onRollOver = function(){
	homeMC.gotoAndPlay("_over");
}

this.homeMC.onRollOut = function() {
	homeMC.gotoAndPlay("_out");
}

this.homeMC.onRelease = function() {
	homeMC.gotoAndStop(9);
	getURL("http://strictlyballs.ca");
}

//End Home; Begin About

this.aboutMC.onRollOver = function(){
	aboutMC.gotoAndPlay("_over");
}

this.aboutMC.onRollOut = function() {
	aboutMC.gotoAndPlay("_out");
}

this.aboutMC.onRelease = function() {
	aboutMC.gotoAndStop(9);
	getURL("http://strictlyballs.ca/about.html");
}

//End About; Begin Available

this.availMC.onRollOver = function(){
	availMC.gotoAndPlay("_over");
}

this.availMC.onRollOut = function() {
	availMC.gotoAndPlay("_out");
}

this.availMC.onRelease = function() {
	availMC.gotoAndStop(9);
	getURL("http://strictlyballs.ca/available.html");
}

//End Available; Begin Gallery

this.galleryMC.onRollOver = function(){
	galleryMC.gotoAndPlay("_over");
}

this.galleryMC.onRollOut = function() {
	galleryMC.gotoAndPlay("_out");
}

this.galleryMC.onRelease = function() {
	galleryMC.gotoAndStop(9);
	getURL("http://strictlyballs.ca/gallery.html");
}

//End Gallery; Begin Info

this.infoMC.onRollOver = function(){
	infoMC.gotoAndPlay("_over");
}

this.infoMC.onRollOut = function() {
	infoMC.gotoAndPlay("_out");
}

this.infoMC.onRelease = function() {
	infoMC.gotoAndStop(9);
	menuInfoBack.play();
}

//End Info; Begin Contact

this.contactMC.onRollOver = function(){
	contactMC.gotoAndPlay("_over");
}

this.contactMC.onRollOut = function() {
	contactMC.gotoAndPlay("_out");
}

this.contactMC.onRelease = function() {
	contactMC.gotoAndStop(9);
	getURL("http://www.strictlyballs.ca/contact.html");
}

//End Contact; Begin Terms

this.termsMC.onRollOver = function(){
	termsMC.gotoAndPlay("_over");
}

this.termsMC.onRollOut = function() {
	termsMC.gotoAndPlay("_out");
}

this.termsMC.onRelease = function() {
	termsMC.gotoAndStop(9);
	getURL("http://strictlyballs.ca/terms.html");
}

//End Terms; Begin Links

this.linksMC.onRollOver = function(){
	linksMC.gotoAndPlay("_over");
}

this.linksMC.onRollOut = function() {
	linksMC.gotoAndPlay("_out");
}

this.linksMC.onRelease = function() {
	linksMC.gotoAndStop(9);
	getURL("http://strictlyballs.ca/links.html");
}

```
