# Actionscript trouble

**URL:** <https://forum.kirupa.com/t/actionscript-trouble/147765>\
**Category:** Uncategorized\
**Created:** [May 13, 2005, 1:36pm UTC](https://forum.kirupa.com/t/actionscript-trouble/147765 "2005-05-13T13:36:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![molotov](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@molotov](https://forum.kirupa.com/u/molotov)\
**Post date:** [May 13, 2005, 1:36pm UTC](https://forum.kirupa.com/t/actionscript-trouble/147765/1 "2005-05-13T13:36:30Z")

</div>

For some reason this code isn’t working for me. i have my buttons named button1MC-button5MC. The onRelease code for them is:  
button1MC.onRelease = function () {  
if(whoIsOn != this) {  
whoIsOn.gotoAndPlay(15);  
whoIsOn = this;  
navigate(this.\_name);  
}  
}

navigation function is here:

\_global.navigate = function(x) {  
\_global.pressed = x;  
if (pressed != already) {  
\_global.already = pressed;  
name = String(x);  
which = name.charAt(6);  
contentMc.section = String(“section”+which);  
contentMc.play();  
}  
}

nothing happens when i click the buttons, any help would be great.
