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

Pages: [1]
Print
Author Topic: PureMVC with SWFAddress  (Read 7976 times)
saad
Sr. Member
****
Posts: 65


View Profile Email
« on: May 03, 2012, 07:06:15 »

Further to the approach mentioned in here:
http://pixelmelon.com/index.php?option=com_content&view=article&id=8:swfaddress-with-puremvc-single-core&catid=8&Itemid=25&showall=1&limitstart=

I'm trying to figure out the right approach.

1) As per the above article-> MenuComponent dispatch events, handled by MenuMediator which in turns sends a Notification handled by a UriAddressCommand, UriAddressCommand then retrieves the UriAddressProxy, call function to performs uri operations for browser which then sends a Notification handled by ViewMediators to display the related view.

2) In my approach, I'm not using Command, MenuMediator directly retrieves the UriAddressProxy, call function to perform uri operations for browser and which then sends a Notification handled by ViewMediators to display the related view.

It's the shortest way to go but I'm not sure if it's the right way to do. Please advise.
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 on: May 03, 2012, 11:30:48 »

You don't have to fire off a command just to turn around and make a Proxy call. You can do that from the mediator as you've chosen. It is a personal choice. In strict 'three tier design' all view to model and model to view communications have to go through the controller region. However in MVC, we really have a triangle rather than tiers, and so the view can update the model and the model can notify the view.

-=Cliff>
Logged
saad
Sr. Member
****
Posts: 65


View Profile Email
« Reply #2 on: May 07, 2012, 06:07:24 »

thanks... :)
Logged
Pages: [1]
Print