# CS4 buttons

**URL:** <https://forum.kirupa.com/t/cs4-buttons/295841>\
**Category:** flash\
**Created:** [September 5, 2009, 2:55pm UTC](https://forum.kirupa.com/t/cs4-buttons/295841 "2009-09-05T14:55:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lyanma](https://avatars.discourse-cdn.com/v4/letter/l/ce73a5/32.png) [@lyanma](https://forum.kirupa.com/u/lyanma)\
**Post date:** [September 5, 2009, 2:55pm UTC](https://forum.kirupa.com/t/cs4-buttons/295841/1 "2009-09-05T14:55:09Z")

</div>

Hi everyone,  
I’m new to this CS4 world and I can’t make my buttons work…I’m trying to make a portfolio.  
I have a button created named “books”. I created a new layer just to insert the AS of that button and to stop the movie clip…the button is inside that movieclip.  
Here is what that layer contains:

stop();  
books.addEventListener(MouseEvent.CLICK, irdiseno);  
function irdiseno(event:MouseEvent):void {  
gotoAndPlay(“diseno”);  
}

The “design” frame is inside that same movieclip…  
When I play this it automatically plays the “design” frame when it’s supposed to play when I click the books button.

Here are the errors I get:

“{” expected source: function irdiseno(event:MouseEvent):void {  
Unexpected “}” encountered source: }

Hope someone can help me, I need to finish this portfolio ASAP.  
Thanxs

EDIT--------------  
I took off the “:void” part and the compiler doesnt show me any errors. But still it doesn’t go to the “design” frame.
