1 Reply Latest reply on Jun 17, 2008 9:14 AM by matthew horn

    Changing Source in Model

    spacehog Level 1
      I am binding data to a line graph using mxModel. I would like to have a series of buttons that when clicked change the source to another XML file.

      Something like:
      <mx:Model id="results" source="../sales/wk1sales.xml" />
      <mx:Button id="btn02" click="{results.source='week2sales.xml'}" />
      <mx:Button id="btn03" click="{results.source='week3sales.xml'}" />
      <mx:Button id="btn04" click="{results.source='week4sales.xml'}" />

      So I am wondering do I create a variable to hold the click value?