Use a setter function to pass the data into the component, and in tht function, perform whatever logic you need.
Tracy ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sudha_bsb Sent: Wednesday, July 30, 2008 2:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Parsing MultiLevel Array Hi, I have a requirement wherin I have to parse a multilevel array. Suppose we have an array like <mx:Array> <mx:Object label="Control Panel"> <mx:children> <mx:Array> <mx:Object label="Five" /> <mx:Object label="Six" /> </mx:Array> </mx:children> </mx:Object> <mx:Object label="Selling"/> <mx:Object label="Service"/> <mx:Object label="Billing"/> </mx:Array> Now, this array is a dataprovider for a component that basically creates a list of buttons. When an array object has children the component creates the children as well. My question is how do I let the component know that a particular object of its dataprovider has children? And how do I let it know what those children are? I do not have the option to convert the array into XML or XMLList and then parse it..I have to let the array remain as it is Thanks & Regards, Sudha.