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: newbee help with controller  (Read 9711 times)
Tipz
Full Member
***
Posts: 20


View Profile Email
« on: March 15, 2009, 11:56:30 »

Hi guys i have been following this example http://hubflanger.com/building-a-flash-site-using-puremvc/to learn PureMVC for flash. Could anyone please explain how to use multiple controller, i have seen in some of the examples using multiple controllers. I haven't found any example based on this with flash and as3. Also if you please explain in layman terms of why i would need to use multiple controller. Also is a controller able to get notifications? or is it just to register proxy and mediators.

Thanks a lot in advance

Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 on: March 15, 2009, 12:33:56 »

The function of the controller is to maintain the notification mappings for rcommands and to  execute them when their notifications are sent.

The only context in which you would have multiple controllers is with the MultiCore version where each 'core' (the main program or a module) has its own named set of MVCF actors.

-=Cliff> 
Logged
Tipz
Full Member
***
Posts: 20


View Profile Email
« Reply #2 on: March 16, 2009, 05:12:13 »

Thanks for your quick reply Cliff, makes more sense now. Is there any example to showcase flash + a3 + pure mvc multicore?

Cheers
Logged
Pages: [1]
Print