# Flash Button Headache

**URL:** <https://forum.kirupa.com/t/flash-button-headache/269331>\
**Category:** flash\
**Created:** [August 26, 2008, 9:12am UTC](https://forum.kirupa.com/t/flash-button-headache/269331 "2008-08-26T09:12:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![moibabes](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@moibabes](https://forum.kirupa.com/u/moibabes)\
**Post date:** [August 26, 2008, 9:12am UTC](https://forum.kirupa.com/t/flash-button-headache/269331/1 "2008-08-26T09:12:30Z")

</div>

i am designing a site in a way that i call use actionscript to load movie clips onto the stage in levels, but i am having tons of trouble with the buttons.

I want the buttons to look different (my over state) when you are on a particular page eg: if you are on the contact us page, the contact button will be purple. i cant seem to be able to do this. i saw a file that had this done, but i can not figure it out. here is the code for the button i saw (this is not my code):

on (release) {  
if (\_root.link\<\>num) {  
\_root[“item”+\_root.link].s\_menu.gotoAndPlay(“s2”);  
\_root[“item”+\_root.link].gotoAndPlay(“s2”);  
for(j=1;j\<6;j++){  
\_root.ykoord[j]=\_root.K[j];  
}  
\_root.link = num;  
for(j=num+1;j\<6;j++){  
\_root.ykoord[j]=\_root.K[j]+b.\_height;  
}  
s\_menu.gotoAndPlay(“s1”);  
getURL(“index-1.html”);

```
}

```

My flash file is located here [http://www.lucidigital.com/suite.zip](http://www.lucidigital.com/suite.zip) (372KB), please anyone who can please, please, please help me. I am running out of time on this project.  
Thank You  
Nicky
