Ok, so I made a custom class, but I did not want to add all the text to it through code (much easier to type it in flash on the frame). I name the instance aScoreBoard.
As my code runs, I need to call some of the functions that are part of the ScoreBoard class. As the code gets to this point, I try this line:
aScoreBoard.UpdateScores(passArray);
which will update the scores on the scoreboard. When that line in AS3 tries to execute, I get this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Main/Main::DayEnd()[C:\projects\Dev_Learning\LongJump\src\Main.as:616]
at Main/Main::ButtonAfterJump()[C:\projects\Dev_Learning\LongJump\src\Main.as:606]
Is there a way to do things this way? or will I have to go and do all the extra text entering in the code?