2 Replies Latest reply on Nov 2, 2007 3:29 AM by obagscheid

    List Controls

      How do I get the contents of one list in another ?...Suppose I have a list that shows a timeline starting from 1999 to 2005. If I click on 1999,2002 etc, the contents of that reflects on the other textarea How to do this ?

      I got this code from the Flex Help...

      <?xml version="1.0"?>
      <!-- Simple example to demonstrate the List Control -->
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml">

      public var selectedItem:Object;

      <mx:Model id="mystates">
      <state label="Alabama" data="AL"/>
      <state label="Alaska" data="AK"/>
      <state label="Arizona" data="AZ"/>
      <state label="Arkansas" data="AR"/>
      <state label="California" data="CA"/>
      <state label="Colorado" data="CO"/>
      <state label="Connecticut" data="CT"/>

      <mx:Panel title="List Control Example" height="75%" width="75%"
      paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">

      <mx:Label text="Select a state to see its abbreviation."/>

      <mx:List id="source" width="100%" color="blue"

      <mx:VBox width="100%">
      <mx:Label text="Selected State: {selectedItem.label}"/>
      <mx:Label text="State abbreviation: {selectedItem.data}"/>


      Instead of my result in a VBox, I want them in a textarea...