# CS4 error 1061: .....undefined method addEventListener

**URL:** <https://forum.kirupa.com/t/cs4-error-1061-undefined-method-addeventlistener/293584>\
**Category:** flash\
**Created:** [July 31, 2009, 1:17am UTC](https://forum.kirupa.com/t/cs4-error-1061-undefined-method-addeventlistener/293584 "2009-07-31T01:17:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![celticfc16](https://avatars.discourse-cdn.com/v4/letter/c/fbc32d/32.png) [@celticfc16](https://forum.kirupa.com/u/celticfc16)\
**Post date:** [July 31, 2009, 1:17am UTC](https://forum.kirupa.com/t/cs4-error-1061-undefined-method-addeventlistener/293584/1 "2009-07-31T01:17:18Z")

</div>

I am new to CS4 and coding. When I test my movie it keeps going through my pics as a slide show. I just want the large pic to stay still and change when i click on my thumbnail size pics. What I noticed is that addEventListner should be blue and is not. Please help and here is my code:

stop();

button1.addEventListner(MouseEvent.CLICK,showpic1);  
button2.addEventListner(MouseEvent.CLICK,showpic2);  
button3.addEventListner(MouseEvent.CLICK,showpic3);  
button4.addEventListner(MouseEvent.CLICK,showpic4);  
button5.addEventListner(MouseEvent.CLICK,showpic5);  
button6.addEventListner(MouseEvent.CLICK,showpic6);  
button7.addEventListner(MouseEvent.CLICK,showpic7);  
button8.addEventListner(MouseEvent.CLICK,showpic8);  
button9.addEventListner(MouseEvent.CLICK,showpic9);  
button10.addEventListner(MouseEvent.CLICK,showpic10);  
button11.addEventListner(MouseEvent.CLICK,showpic11);  
button12.addEventListner(MouseEvent.CLICK,showpic12);  
button13.addEventListner(MouseEvent.CLICK,showpic13);  
button14.addEventListner(MouseEvent.CLICK,showpic14);  
button15.addEventListner(MouseEvent.CLICK,showpic15);  
button16.addEventListner(MouseEvent.CLICK,showpic16);  
button17.addEventListner(MouseEvent.CLICK,showpic17);  
button18.addEventListner(MouseEvent.CLICK,showpic18);  
button19.addEventListner(MouseEvent.CLICK,showpic19);

function showpic1(Event:MouseEvent):void {  
gotoAndStop(“pic1”);  
}

function showpic2(Event:MouseEvent):void {  
gotoAndStop(“pic2”);  
}

function showpic3(Event:MouseEvent):void {  
gotoAndStop(“pic3”);  
}

function showpic4(Event:MouseEvent):void {  
gotoAndStop(“pic4”);  
}

function showpic5(Event:MouseEvent):void {  
gotoAndStop(“pic5”);  
}

function showpic6(Event:MouseEvent):void {  
gotoAndStop(“pic6”);  
}

function showpic7(Event:MouseEvent):void {  
gotoAndStop(“pic7”);  
}

function showpic8(Event:MouseEvent):void {  
gotoAndStop(“pic8”);  
}

function showpic9(Event:MouseEvent):void {  
gotoAndStop(“pic9”);  
}

function showpic10(Event:MouseEvent):void {  
gotoAndStop(“pic10”);  
}

function showpic11(Event:MouseEvent):void {  
gotoAndStop(“pic11”);  
}

function showpic12(Event:MouseEvent):void {  
gotoAndStop(“pic12”);  
}

function showpic13(Event:MouseEvent):void {  
gotoAndStop(“pic13”);  
}

function showpic14(Event:MouseEvent):void {  
gotoAndStop(“pic14”);  
}

function showpic15(Event:MouseEvent):void {  
gotoAndStop(“pic15”);  
}

function showpic16(Event:MouseEvent):void {  
gotoAndStop(“pic16”);  
}

function showpic17(Event:MouseEvent):void {  
gotoAndStop(“pic17”);  
}

function showpic18(Event:MouseEvent):void {  
gotoAndStop(“pic18”);  
}

function showpic19(Event:MouseEvent):void {  
gotoAndStop(“pic19”);  
}
