# Actionscript 3 Help

**URL:** <https://forum.kirupa.com/t/actionscript-3-help/633158>\
**Category:** flash\
**Created:** [May 7, 2015, 9:11pm UTC](https://forum.kirupa.com/t/actionscript-3-help/633158 "2015-05-07T21:11:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Everest](https://avatars.discourse-cdn.com/v4/letter/e/96bed5/32.png) [@Everest](https://forum.kirupa.com/u/Everest)\
**Post date:** [May 7, 2015, 9:11pm UTC](https://forum.kirupa.com/t/actionscript-3-help/633158/1 "2015-05-07T21:11:22Z")

</div>

For my assignment for Animation i need to use actionscript but the teacher hasn’t shown us anything, i can’t seem to get mine to work.  
what it needs to do it go through a few images using left and right buttons that i made

```javascript
/* 
Buttons ActionScript.
*/
import flash.events.MouseEvent;

Catchflix.fla.stop()

Right_Button.addEventListener(MouseEvent.CLICK, NextFrame);
function (event:MouseEvent);
{
	NextFrame(Right_Button)
}

Left_Button.addEventListener(MouseEvent.CLICK, PreviousFrame);
 function (event:MouseEvent);
{
	PreviousFrame(Left_Button)
}

Right_Button.addEventListener(MouseEvent.CLICK, FirstFrame);
function (event:MouseEvent);
{
	FirstFrame(Right_Button)
}

```

these are the errors that i got  
Line 9 1084: Syntax error: expecting identifier before leftparen.  
Line 10 1084: Syntax error: expecting leftparen before leftbrace.  
Line 10 1084: Syntax error: expecting identifier before leftbrace.  
Line 10 1084: Syntax error: expecting rightparen before leftbrace.  
Line 15 1084: Syntax error: expecting identifier before leftparen.  
Line 16 1084: Syntax error: expecting leftparen before leftbrace.  
Line 16 1084: Syntax error: expecting identifier before leftbrace.  
Line 16 1084: Syntax error: expecting rightparen before leftbrace.  
Line 21 1084: Syntax error: expecting identifier before leftparen.  
Line 22 1084: Syntax error: expecting leftparen before leftbrace.  
Line 22 1084: Syntax error: expecting identifier before leftbrace.  
Line 22 1084: Syntax error: expecting rightparen before leftbrace.

---

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [May 9, 2015, 9:25am UTC](https://forum.kirupa.com/t/actionscript-3-help/633158/2 "2015-05-09T09:25:53Z")

</div>

Your question is missing some important details 😄

Is the application with the images already built? As in, is your assignment simply to modify the existing application with keyboard input? One article that may help is this: [http://www.kirupa.com/developer/as3/using\_keyboard\_as3.htm](http://www.kirupa.com/developer/as3/using_keyboard_as3.htm)
