Just implement a public setter function on your component that takes
XML.

 

In the setter, launch your child instantiation code.  I have done this
and it  can be a bit complex, but is not hard.

 

Tracy

 

 

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Derrick Anderson
Sent: Friday, April 18, 2008 1:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] custom component dataprovider

 

hey everyone,

i'm trying to build a custom component based off of a Panel, but the
trick is that I would like the panel to accept xml as a dataprovider.
where are there any good tutorials on building custom components with
dataproviders?

btw, the goal is to take an xml node in the dataprovider (<box x="10"
y="15"><panel title="test panel" /></box>) and convert them to UI
components.  Any ideas?

thanks,
d.

 

Reply via email to