When I started with puremvc I collected / bookmarked all the examples/links I found on the forum.
Here are some for Flash:
These are the official puremvc exampleshttp://trac.puremvc.org/Demo_AS3_Flash_HelloFlashhttp://trac.puremvc.org/Demo_AS3_Sequential ( has a standard and a multicore version)
Then here are links from purmvc members' sitesThe Minimalist Example
http://www.as3dp.com/2007/12/27/minimalist-mvc-example-using-the-puremvc-framework/http://blog.log2e.com/2008/05/17/getting-started-with-the-puremvc-startup-manager-part-2/Flash CS3 Application Config Example source.
http://www.lfpug.com/puremvc/Building a Flash site using PureMVC
http://hubflanger.com/building-a-flash-site-using-puremvc/---
For the multicore version you only have to adjust a few things:
The importsreplace
import org.puremvc.as3
with
import org.puremvc.as3.multicore
The FlashMain.asimport yourPath.ApplicationFacade;
public static const NAME:String = "FlashMain";
private var facade:ApplicationFacade = ApplicationFacade.getInstance( NAME );
facade.startup(this.stage)
The ApplicationFacade.asimport org.puremvc.as3.multicore.patterns.facade.Facade;
public function ApplicationFacade ( key:String )
{
super( key );
}
public static function getInstance( key:String ) : ApplicationFacade
{
if ( instanceMap[ key ] == null ) instanceMap[ key ] = new ApplicationFacade( key );
return instanceMap[ key ] as ApplicationFacade;
}
I work with Flex, so maybe what I said above is not accurate. I didn't test it for Flash.
P.S.
PureMVC-enabling your Flash CS3 Installation:
http://trac.puremvc.org/PureMVC_AS3_MultiCore/wiki/InstallationonRegister comes after initializeNotifier, and is the recommended place to do any preparatory facade access (same for Standard version, though the demos haven't yet been changed). This insures that any 'conversations' that are started only happen once the actor is registered and capable of being retrieved or notified.
-=Cliff>