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