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  PureMVC Manifold / Demos and Utils / Re: Modularity - a PureMVC AS3 MultiCore Demo on: March 11, 2008, 01:11:56
Got it working. It seems I'm able to pass in whatever name i would like on the getInstance(), the problem that was stopping me was having to update all my mediator and proxy classes to use the initializeNotifier function. Also to fix the SubCommand bug as mentioned in my other post.

This is all i have on my timeline:

var facade:ApplicationFacade = ApplicationFacade.getInstance("MyApp");
facade.startup(this);

and on my startup function:

public function startup(app:DisplayObjectContainer):void {
        sendNotification(ApplicationFacade.STARTUP, app);
}

in my PrepViewCommand:

var stage:DisplayObjectContainer = note.getBody() as DisplayObjectContainer;

If i just use the DisplayObjectContainer type, everything seems to be kosher.
2  PureMVC Manifold / Bug Report / [ FIXED ] Subcommand bug? on: March 11, 2008, 12:11:37
I'm trying to use a subcommand and facade isn't initialized. I believe the error resides in the MacroCommand class. At around line 116, add this line:

commandInstance.initializeNotifier( multitonKey );

and it seems to work as normal.
3  PureMVC Manifold / Demos and Utils / Re: Modularity - a PureMVC AS3 MultiCore Demo on: March 11, 2008, 11:25:05
Trying to figure out how to use this with Flash and am having trouble initializing the app. If i'm starting my app from the timeline, i can't pass in a class name per se. Such as:

var facade:ApplicationFacade = ApplicationFacade.getInstance("MyApp");
Won't work because MyApp is not a class, it's just a key i would like to use for that core.
For the correct class this app is being instantiated in would be MainTimeLine, but i can't reference that data type for the other classes that recieve the notification at startup.

I have this line in my startup command:
var stage:DisplayObject = note.getBody() as DisplayObject;
also have tried
var stage:*= note.getBody();
and
var stage:MainTimeLine= note.getBody() as MainTimeLine;
which don't work.

Any suggestions, i'm kinda confused.
4  PureMVC Manifold / MultiCore Version / THANK YOU on: March 11, 2008, 10:57:45
Goodness i'm so happy to hear about MultiCore MVC. I was getting at a crossroads in a project i'm working on that absolutely required multiple instances. I almost considered having to either drop PureMVC or hack it to pieces to make it work. I'm so glad you guys (or just Cliff? ) is on the job. Thanks!

p.s. Once i get my project in a working fashion i'll definitely post it up as an example and real world use of the multicore mvc.
Pages: [1]