Actionscript 3 Help

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

/* 
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.

Your question is missing some important details :smile:

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