4 Replies Latest reply on Feb 9, 2011 7:30 PM by oldMster

    Searching XML Data During RunTime???

    EMelville

      Hello, I have kind of a simple question.

       

      I have a XML File Loaded using a HTTPService - E4X.

       

      I'm trying to search the XML File during run time for a specific string.

       

      Here's an example:

       

      <keypoint1 time="00:00:00" text="Hello World!"/>

      <keypoint2 time="00:00:05" text="Hello World!"/>

      <keypoint3 time="00:00:06" text="Hello World!"/>

      <keypoint4 time="00:00:07" text="Hello World!"/>

      <keypoint5 time="00:00:09" text="Hello World!"/>

      <keypoint6 time="00:00:02" text="Hello World!"/>

       

      For the actionscript, i'm trying to do something like

       

      private function chkKeyPoint():void
      {
           if (HTTPService.lastResult.keypoint[???].time == "00:00:00")
           {
                //Alert Window - "Yay we found it!"
           }
      
      }
      

       

      Any help is greatly appreciated.