Do you want the same dataProvider that the List classes use or your own? In 1.5 there is a pseudo-interface called DataProvider, it's documented under mx.controls.listclasses.DataProvider. It would describe the methods that a DP might have. You then would simply declare a property called dataProvider and you'd be set to go.
dataProvider is just a property, it's up to you to define what it means to your custom component. Matt -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kjlinboomer Sent: Thursday, January 12, 2006 6:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Data provider for custom component Hi all, I have developed a custom component for use in flex. I have dropped it into an MXML file and my init(), createChildren() etc functions are all working and I can pass initial values into in like: <myComponent initialValue1="someValue" /> My question is how do I provide an external data provider for this component? Do I need to put flex's dataProvider class in the same package as my component and then refer like this: <myComponent initialValue1="someValue"> <dataProvider> {//some action script object here} </dataProvider> </myComponent> Not sure how this works... Thanks!! Keith -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/