2 Replies Latest reply on Jul 7, 2011 3:53 AM by nikos101

    setResult is not a function, => but it is !!!!!!

    nikos101 Level 2

      why am I getting this error for this code

       

      TypeError: Error #1006: setResult is not a function.
          at mock::AuthenticationServiceMock/applyResult()

       

       

      private function applyResult(token:AsyncToken, result:Object):void {

       

              mx_internal:token.setResult(result);

       

              var event:ResultEvent = new ResultEvent(ResultEvent.RESULT, false, true, result, token);

       

              mx_internal:token.applyResult(event);

       

              trace(token);

       

          }