Thread
:
App: MVC Gallery
View Single Post
mindtwitch
2008-04-23 #
215
One more question, but probably not the last.
I'm creating a template system where there are various components (not Flash Components, just various movieClips in the library). I think I've got everything straightened out for the TemplateModel to load/parse/prepare the template file and then pass it to the TemplateView to do it's magic. Where I'm having a bit of trouble with flow is for the components.
In my mind each component should have it's own MVC as well, no problem here. Where I'm getting stuck is I need those components to talk back to the Template system to let it know when the component has been loaded, added and processing is complete etc. Where is the hook back into the Template MVC, is it through the TemplateController or directly back to the TemplateModel? Or should the ComponentController notify through the Observer? In turn the TemplateModel should be able to notify each component of any changes as well, style and layout changes etc. I'm sure the TemplateView handles notifying the Components.
Any insight and/or guidance would be greatly appreciated.
Thanks,
-mt
mindtwitch
View Public Profile
Visit mindtwitch's homepage!
Find all posts by mindtwitch