As Tracy said if you have the dataprovider setup as an ArrayCollection any changes to the arraycollection will flow through... here is an example i wrote up...

Cheers,

Justin


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="this.onCreationComplete();">
        
        <mx:Script>
        <![CDATA[
        
            import mx.collections.ArrayCollection;
            
            [Bindable]
              private    var myListData:ArrayCollection;
              
              private function onCreationComplete() : void {
                  myListData = new ArrayCollection();
                  myListData.addItem("Item 1");
                  myListData.addItem("Item 2");
                  myListData.addItem("Item 3");
              }
              
              
            private function addToList(event:MouseEvent) : void {
                  var newItem:String = this.myTextInput.text;
                  myListData.addItem(newItem);
              }                 
          
        ]]>
        </mx:Script>
        <mx:Panel title="List Child Example" width="300" height="300">
       
        <mx:List id="myList" dataProvider="{this.myListData}" width="100%" rowCount="10"/>
        <mx:HBox width="100%">
            <mx:TextInput id="myTextInput" width="70%"/>
            <mx:Button id="myButton" width="30%" label="Add" click="this.addToList(event);" />
        </mx:HBox>        
        </mx:Panel>
</mx:Application>





__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to