0 Replies Latest reply on Jul 19, 2009 12:14 PM by Darius Fattahipour

    Very strange Adobe AIR bug...

    Darius Fattahipour

      Hi,

       

      I have an AIR application that makes some http calls -- simply enough.  This works when I run the app in Flex Builder but after I package the application and run the exe, the calls are never made.  Even stranger, if I add an alert before the call in the method, then the http call is made.  This makes no sense to me and I was wondering if someone could help shed some light on this.  The code is below:

       

      My config is as follows:

       

      Flex 3.3 SDK
      AIR 1.5
      Cairngorm

       

      Thanks!!

       


      public function refreshCurrentStatusPanel():void{
      //Alert.show("bears");
              var event:SetDateEvent = new SetDateEvent();
              event.dispatch();
              var event2:GetCurrentStatusEvent = new GetCurrentStatusEvent();
              event2.dispatch();
              var event3:GetDailyMaxMinEvent = new GetDailyMaxMinEvent();
              event3.dispatch();
              var event4:GetRawGraphEvent = new GetRawGraphEvent();
              event4.dispatch();
      }

       

      <mx:Button id="btnRefresh" toolTip="Refresh"
                              icon="@Embed('assets/refresh.png')"
                              width="18"
                              height="18"
                              click="refreshCurrentStatusPanel()" />