# Double\_click?

**URL:** <https://forum.kirupa.com/t/double-click/244995>\
**Category:** Uncategorized\
**Created:** [November 24, 2007, 10:28pm UTC](https://forum.kirupa.com/t/double-click/244995 "2007-11-24T22:28:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![453\_0](https://avatars.discourse-cdn.com/v4/letter/4/dec6dc/32.png) [@453\_0](https://forum.kirupa.com/u/453_0)\
**Post date:** [November 24, 2007, 10:28pm UTC](https://forum.kirupa.com/t/double-click/244995/1 "2007-11-24T22:28:13Z")

</div>

I have a class in a file called KeyCodes.as and I’m trying to launch it from withing Flash IDE… What I’m doing is quite simple and should work but I get an error and I have no idea why…

TypeError: Error #1009: Cannot access a property or method of a null object reference.  
at KeyCodes/KeyCodes::init()  
at KeyCodes$iinit()  
at usingKeyCodes\_fla::MainTimeline/usingKeyCodes\_fla::frame1()

The code I’m using is quite simple:

var a:KeyCodes = new KeyCodes();  
addChild(a);

What am I doing wrong ?

Thanks.
