So, I'm making a small function whereby when I click on a movieclip it's opacity depletes. I've got it to work, but I get flooded with the dreaded error 1009, could someone help me edit my code to remove the error, or should I just ignore it.
Code:
stop();
Button_lvl_1.addEventListener(MouseEvent.CLICK, MouseClicks)
function MouseClicks (event:Event):void {
Button_lvl_1.alpha -= 0.01
}