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.

Posted by Xcore on Stack Overflow See other posts from Stack Overflow or by Xcore
Published on 2010-12-29T01:54:29Z Indexed on 2010/12/29 9:54 UTC
Read the original article Hit count: 165

Filed under:
|
|
|
|

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!

© Stack Overflow or respective owner

Related posts about flash

Related posts about actionscript-3