# Noob here - Mouse Down

**URL:** <https://forum.kirupa.com/t/noob-here-mouse-down/294490>\
**Category:** flash\
**Created:** [August 14, 2009, 8:23pm UTC](https://forum.kirupa.com/t/noob-here-mouse-down/294490 "2009-08-14T20:23:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zm15](https://avatars.discourse-cdn.com/v4/letter/z/bcef8e/32.png) [@zm15](https://forum.kirupa.com/u/zm15)\
**Post date:** [August 14, 2009, 8:23pm UTC](https://forum.kirupa.com/t/noob-here-mouse-down/294490/1 "2009-08-14T20:23:39Z")

</div>

I am trying to use a “if else” statement, and i am missing something. I want the movieclip to be transparent when the mouse is clicked on it. Here is my code i have:

box.stop();

box.buttonMode=true;

box.addEventListenter(MouseEvent.MOUSE\_DOWN, down);

function down(evt:MouseEvent):void {  
if (evt.MOUSE\_DOWN == true){  
box.alpha = .5;  
}else{  
box.alpha = 1;  
}  
}

I am getting an error saying that on the function line “MOUSE\_DOWN” is bad.  
What am i doing wrong?  
Thanks!
