PureMVC Architects Lounge

Announcements and General Discussion => Architecture => Topic started by: poser187 on June 14, 2009, 11:27:51



Title: Using a single Mediator with multiple dynamically created views
Post by: poser187 on June 14, 2009, 11:27:51
I am creating an application with a controlbar that has an unknown number of controls in it. The basic layout is a simple listing of of numbers, each of which is a button (in this specific case setup as  a view component).  The problem I am running into is that each of these button components will need to be dynamically created, and registered with a single Mediator (as well as the display list) after my proxy has been populated with data. Can anyone provide me with some direction as to where the best place would be to handle the creation of these button components, as well as the best way to link them up to the Mediator and registering them with the facade?

Thanks,

Kyle


Title: Re: Using a single Mediator with multiple dynamically created views
Post by: puremvc on June 15, 2009, 05:16:24
Have a look at the HelloFlash and Slacker demos.

-=Cliff>