ActionScript 3 Error Codes – Error #1009: Cannot access a property or method of a null object reference
Gorjan Ivanovski : June 7, 2010 5:27 pm : ExperimentsThere are a few reasons why one could get this error code. The most annoying of them all – declaring but not initializing variables. Here’s an example:
Incorrect:
var myNumber:Number;
Correct:
var muNumber:Number=0;
Always declare and initialize all variables. And while at it, have a look at all the error codes with description here: http://livedocs.adobe.com/flex/201/langref/runtimeErrors.html

