I get a "TypeError: Error #1009: Cannot access a property or method of a null object reference." error on my AIR project for using a button.
- by Xcore
So my problem here is, I'm working on my Adobe Air project, so I decided to code some buttons to be able to navigate. The problem here is that I get a error for trying to do so. Here is my code.
import flash.events.MouseEvent;
this.stop();
play_btn.addEventListener(MouseEvent.MOUSE_DOWN, playButtonClick);
function playButtonClick(evt:MouseEvent) {
gotoAndPlay(337);
}
I do not see what is wrong actually, I tried this on a blank non-AIR file, and it worked well. Thanks for helping!