Double_click?

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.