Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

* | |

  Show Posts
Pages: [1]
1  Announcements and General Discussion / Architecture / Using a single Mediator with multiple dynamically created views 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
2  Announcements and General Discussion / Architecture / Architecting PureMVC Flash Video Player on: February 19, 2009, 08:51:50
Hey Guys,
I've used PureMVC on a few applications that I've built recently and have a pretty decent understanding of the Framework (although admittedly, I'm still learning a LOT!). I'm about to start a new project building a video player in Flash. The player will have a number of components including a controlbar, playlist, menus, etc. as well as the main video object to display the video stream.

What I'm trying to figure out is best practices for architecting this type of application.
1) Would the NetConnection / NetStream and Video Object be stored as part of the model? If so, then how would this be attached to a view component?

2) For other view components such as the playlist, and menus, if they are not going to ALWAYS be shown, would I need to create a model to determine whether or not these items are shown, then have a command that determines which items to attach to the view based on the model?

Other thoughts or suggestions would be greatly appreciated. Basically I'm just trying to wrap my head around the architecture as much as I can before I dive in.

Thanks to everyone taking part in the forums, and the community in general, it has been a HUGE help to me in learning to use this amazing framework!

-Kyle

Pages: [1]