2 Replies Latest reply on Jul 12, 2012 11:22 AM by MarkLaff

    How can I get the HTTP completion code (e.g. "400") from an HTML window or HhtmLoader?

    MarkLaff

      Is there a way to catch HTTP progress events, including completion status, in my AIR application:

      <mx:HTML id="content" locationChange="locationChanged()" addedToStage="go()"/>

      ...
      function go() : void {
        content.location = "http://no.such.place"
      }

      function locationChanged() : void {
        // how can I check for successful completion???
      }

      I would like to be able to interrogate either the HTML or HTMLLoader on completion to find out the request completion code.

      In JavaScript, using XMLHttpRequest, there is a "readyStateChange()" function for tracking progress. I am looking for a similar capability in Flex/AIR

      Thanks,

      Mark