# Button issues: Need Help

**URL:** <https://forum.kirupa.com/t/button-issues-need-help/314872>\
**Category:** flash\
**Created:** [October 11, 2010, 5:15pm UTC](https://forum.kirupa.com/t/button-issues-need-help/314872 "2010-10-11T17:15:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebwhite13](https://avatars.discourse-cdn.com/v4/letter/e/59ef9b/32.png) [@ebwhite13](https://forum.kirupa.com/u/ebwhite13)\
**Post date:** [October 11, 2010, 5:15pm UTC](https://forum.kirupa.com/t/button-issues-need-help/314872/1 "2010-10-11T17:15:29Z")

</div>

I am new to ActionScript 3. I created a simple button that I imported into the stage that I named and saved it as Microwave\_btn  
and I wrote a simple script for it that says:

stop();

import flash.display._;  
import flash.events._;

Microwave\_btn.addEventListener(MouseEvent.CLICK, Trace);  
function Trace (event:MouseEvent): void {  
trace(“Microwave!”);  
}

The properties for the Microwave\_btn has the  
class labeled as: Microwave\_btn  
and the  
Base class as: flash.display.SimpleButton

When I test the movie I get this error:  
\*\*1061: Call to a possibly undefined method addEventListener through a reference with static type Class.

\*\*Can someone assist me
