TypeError: Error #1009: Cannot access a property or method of a null object reference.
Okay, so my game codes are not problematic at all and don't effect the game UNLESS I declare the level "OneManager" as a variable.
OneManager is the class for my level. The level is a movieclip containing all the level's components. And Main is the document class.

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at OneManager()
at Main()
This is the code for my OneManager class.

And, this is the code for my Main document class.

Okay, so when I try to declare the movieClip "OneManager" as a variable from the main document, so I can add it to the stage after the play button is clicked. It shows random errors from the output and says the codes from the other classes are null. I don't really know why declaring and instiantating it as a variable from the main document gives errors to other classes.
NONE of my classes had errors before I tried to declare and instiantating it. I tried adding the level one movieclip with the OneManager class manually to the stage. Without making it a variable from the main document. And then the game worked fine and none of the classes had errors.
I'm wondering why does it give random errors by trying to put it as a variable in the main document? Other variables work fine, just as the mountains and homePage variables. I'm pretty sure that none of these codes are null as I tried it manually without the main class and it worked fine with no errors.
Please help, thanks!