TypeError: Error #1009: Cannot access a property or method of a null object reference.

68 views
Skip to first unread message

Semih

unread,
Apr 16, 2012, 8:15:55 AM4/16/12
to soci...@googlegroups.com
Hi,

I'm using version 1.3.2 SWC English SWC file. When I add this to my flash file it gives an error and doesn't work.

Here's the code I use:

private function setupPlayer(evt:Event = null):void {
try {
removeEventListener(Event.ADDED_TO_STAGE, setupPlayer);
} catch (err:Error) {
}
var tm:TheMiner = new TheMiner();
trace("***");
stage.addChild( tm );

And the output:
TheMiner : Starting TheMiner 1.3.20
***
TheMiner : Loading configs...
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.sociodox.theminer.window::Configuration$/Load()
at com.sociodox.theminer::TheMiner/init()
at flash.display::DisplayObjectContainer/addChild()
at flash.display::Stage/addChild()

I've added the SWC file through Flash/Publish Settings/AS3 Settings/Library Path.
I'm using CS on Mac OS Lion.

Is there anything I'm missing?

Thanks in advance,
Semih

Reply all
Reply to author
Forward
0 new messages