HI friends, i have a small question for u. I have a tree.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute" >
        <mx:Script>
                <![CDATA[
                        import mx.rpc.events.ResultEvent;
                        import mx.collections.XMLListCollection;
                        import mx.controls.Alert;

                        public var xmlTree:XMLList;
                        [Bindable]public static var xml:XML = new 
XML("<xml></xml>");
                        private function treedata():void
                         {
                                var filldata:String = "<node 
label="+'"'+date.text+'"'+">";
                                        filldata+="<node 
label="+'"'+names.text+'"'+">";
                                        filldata+="<node 
label="+'"'+com.text+'"'+"/>";
                                        filldata+="</node></node>";
                                        xml.appendChild(filldata);
                                        treetree.dataProvider = xml.node;
                        }

                ]]>
        </mx:Script>
        <mx:Tree id="treetree"  width="369" height="200" x="256" y="120"
showRoot="true" labelField="@label" >
                <mx:itemRenderer>
                        <mx:Component>
                                <mx:VBox width="100%" height="100%">
                                        <mx:HBox width="100%" >
                                                <mx:Label text="From"  />
                                                <mx:HBox width="100%" >
                                                        <mx:Text text="a" 
id="commenterName" />
                                                        <mx:Text text="b" 
id="commenterEmail" />
                                                </mx:HBox>
                                        </mx:HBox>
                                        <mx:HBox width="100%" >
                                                <mx:Label text="Comments" />
                                                <mx:Text text=" c" 
id="commenterComments" />
                                        </mx:HBox>
                                </mx:VBox>
                        </mx:Component>
                </mx:itemRenderer>
        </mx:Tree>
        <mx:Button x="317" y="359" label="Click" click="treedata();"/>
        <mx:DateField x="38" y="62" id="date"/>
        <mx:TextInput x="38" y="108" id="names" />
        <mx:TextInput x="38" y="204" id="com"/>

</mx:Application>




now i need to get the values from the text input and i need to insert
them into tree item renderer

could any one please help me regarding this.

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to