Stage is null problem

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at QuizApp/createStatusBox()
at QuizApp()

Thats the error messege i get when it tries to play. What I have is an swf that loads another when its done, the new swf is blank but has a document class to an AS file.
It seems the problem lies when a function is not properly being added to the stage.
Any help would be greatly appreciated.

The function is added like this…


package{
   public class QuizApp extends Sprite{
       public function QuizApp(){
           createButtons();
...
private function createButtons() {  
   if (this.stage == null) { 
   trace("STAGE IS NULL!!!");
   }
   var yPosition:Number;
   addEventListener(Event.ADDED_TO_STAGE, addedToStage);
...