# Mute volume toggle AS 2.0 issue

**URL:** <https://forum.kirupa.com/t/mute-volume-toggle-as-2-0-issue/256975>\
**Category:** flash\
**Created:** [April 9, 2008, 7:51am UTC](https://forum.kirupa.com/t/mute-volume-toggle-as-2-0-issue/256975 "2008-04-09T07:51:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Papa\_Lazarou](https://avatars.discourse-cdn.com/v4/letter/p/7cd45c/32.png) [@Papa\_Lazarou](https://forum.kirupa.com/u/Papa_Lazarou)\
**Post date:** [April 9, 2008, 7:51am UTC](https://forum.kirupa.com/t/mute-volume-toggle-as-2-0-issue/256975/1 "2008-04-09T07:51:17Z")

</div>

Ok, so I’m prepared to be bombarded with cries of newbie (which I am), but I’m having some trouble with a syntax issue that I cant figure out.

on(release){  
if (globalvolume.getVolume()==100)  
{  
globalVolume.setVolume(0);  
}  
else {  
globalVolume.setVolume(100);  
}

I’m missing something here that I’m sure is very simple, probably an errant } or such.

Can some kind folk point it out to me?
