0 Replies Latest reply on Feb 22, 2012 7:35 PM by Sole RunNHide

    New to Flash Builder / Basic Syntax Qestion

    Sole RunNHide

      I am a seasoned PHP/MySQL programmer that recently has moved over to Flash (about a week ago), more specifically Flash Builder.  My Question is after calling data from an external xml file, how can you take the event handler value and store it into a usuable number variable (the xml values are numbers).  I have a function and would like to use the retrieved value throughout the document and not just bind it to one location.

       

       

      protected function retrieveData(event:FlexEvent):void
      {
           getDataResult.token = your_file.getData();
      }
      
      <fx:Declararations>
           <s:CallResponder id="getDataResult"/>
           <your_file:Your_file id="your_file"
                          fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"
                          showBusyCursor="true"/>
           </fx:Declarations>
      

       

      I have tried various methods unsecessfully to store the value in a usuable number vairable with no success.  It will eventuall go in the following among other places

       

      timeline.append( TweenLite.to(meter_fill, .8, {y:"-290"}));