1 Reply Latest reply on Apr 12, 2010 2:16 PM by da808wz

    Alert.show LIFO Last In First Out in Flex 4

    da808wz

      Is anyone else experiencing this same issue?

       

      I have three Alert.show messages and they are being displayed in reverse order:

       

      private function serv_result(evt:ResultEvent):void {

        var myXML:Object;

        var maxv:int,i:int;

       

      // int is ... int, Number is float

       

        myXML = evt.result;

        maxv = 0;

        i = 0;

       

        Alert.show("BeforeLoop:"+String(maxv));

       

        while ( i<myXML.daydata.data.length ) {

          if ( int(myXML.daydata.data[i].sessioncount)>maxv ) {

            maxv = int(myXML.daydata.data[i].sessioncount);

            Alert.show("InLoop:"+String(maxv));

          }

       

          i++;

        }

        Alert.show("AfterLoop:"+String(maxv));

      }

       

      The AfterLoop shows up first, followed by the InLoop, and finally the BeforeLoop.

       

      Is this normal?