This should be no problem. In my experience, assigning a dataProvider always causes the control to refresh. Lets see a bit of the code. Tracy
-----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Libby Sent: Tuesday, November 08, 2005 10:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Programatically Setting DataProvider - Help! I have an mxml component whose data source needs to change dynamically. In my .as file I successfully get a reference to it via getChild(); It appears in the debugger that I am successfully switching the dataProvider, but the change never appears on the screen. So what am I missing here, or what is the "right" way to do this? We want minimal code in the mxml components (like JSP with MVC); Do I need to hardcode a reference to the dataProvider into the mxml component in order for the ChangeEvent to be triggered? thanks, Libby -- 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 ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- 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/