7 Replies Latest reply on Feb 19, 2009 5:25 PM by Gregory Lafrance

    Event handler to indicate a class has ended

    SiHoop Level 1
      I'm using a class (i.e. Grader) to process some information then calling a function (i.e. updateScore) that needs to use a property of the class (i.e. myGrader.runningTotalScore). However, the property is not fully updated within the class before it is needed by the function. How can I delay calling the function until the class has completed all of its operations?

      private function updateScore():void{
      var runningTotalLine:Number=myGrader.runningTotalScore/studentsGoal*200
      }
      myGrader==new Grader(correctScoresArray, wrongScoresArray, usersAnswers, textParser1.answersArray)
      updateScore()