1 Reply Latest reply on Jun 2, 2006 7:46 PM by kglad

    Temperature reader into array and display results

    Flashminded
      I have a temperature reader that integrates with my flash file. The temperature reader/thermometer takes a reading every 5 minutes and displays that tempearture reading and displays it in a dyanamic text field.
      What I am trying to do is capture all those temperature readings, in an array, and display those numbers onscreen in the Flash file( Not in the trace window.) I don't know how to capture all the readings or display them from an array if they are captured in an array.

      Any ideas how to do this? I am new to AS, but have some experience.

      Thanks
      Dano
        • 1. Re: Temperature reader into array and display results
          kglad Adobe Community Professional & MVP
          you can create an array and use the push method to add elements to it. in your situation every time you take a reading, push that thermometer reading into your array.

          how you display the contents of the array depends upon your needs. you can access the initial thermometer reading by referencing the 0 element of your array and the next thermometer reading by referencing the 1 element of your array etc.