7 Replies Latest reply on Aug 15, 2012 1:49 PM by pauland

    Synchronous calls

    Zolotoj Level 3

      I have a class B that is based on another class A.

      Base class A has method initialize that is overridden like this in class B:

      public override function initialize():void





      base class A initilize

      public function initialize():void


           // call to server to check session time out.

           callToServer(callfunction, onResult);


      private function onResult ...




      What happens is that  setupControls(); will run not waiting on onResult  to execute.

      Any chance to control this: to wait for results of callToServer to arrive?