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] 2
1  Announcements and General Discussion / Architecture / Re: Tool and Canvas Architecture on: July 24, 2012, 12:56:04
Ok, I think I could definitely use this in my ongoing project.

Thanks Cliff
2  Announcements and General Discussion / Architecture / Re: Tool and Canvas Architecture on: July 21, 2012, 09:49:05
Hi Cliff,

In the multicore version structure you posted, what do you usually put inside the enum folders? and what's the difference between constants and enum under the common package?

Thanks.
3  Announcements and General Discussion / General Discussion / Re: Where to define component constants? on: July 21, 2012, 08:50:56
@Tekool

Thanks, for your comment. I'll give your suggestion a try.
4  Announcements and General Discussion / General Discussion / Re: PureMVC for games on: January 17, 2012, 06:01:59
Hi Cliff,

Thanks for the link, I'm impressed by the benchmark results of PureMVC.

I'll be taking on StateMachine Utility this time, as i did for the Pipes. I know its gonna be challenging at first, but fun nevertheless.
5  Announcements and General Discussion / General Discussion / Re: PureMVC for games on: January 16, 2012, 06:18:10
eliatlas,

Tnx for the reply. I'll take a look at the frameworks you mentioned and see how I can organize my thoughts for my game.
6  Announcements and General Discussion / General Discussion / PureMVC for games on: January 16, 2012, 01:52:11
is puremvc viable for developing games? i haven't seen examples or tutorials where puremvc framework is used.
7  Announcements and General Discussion / General Discussion / Re: Would you like to see a JavaScript Developer's Guide to PureMVC book? on: January 08, 2012, 09:06:26
Yes, that would really be helpful as well
8  Announcements and General Discussion / General Discussion / Re: Mediators and their ViewComponent on: December 09, 2011, 06:29:53
Very well said, everything is clear to me now!

Thanks cliff, your the Man!!!!
9  Announcements and General Discussion / General Discussion / Re: Mediators and their ViewComponent on: December 08, 2011, 06:40:16
Thanks for the reply cliff.

So, I should place the listener of the child view buttons in the class document/PanelView.as then it dispatches events which the Mediator is listening? I'm thinking the button should know it is clicked
before dispatching the event.
:
private function onBtn1Click(e:MouseEvent):void
{
  this.dispatchEvent( new Event( AppEvent.SUBMIT_FORM) );
}

Is it also a best practice say for the view component to have its own event constant, rather than using the its applicationfacade constants?
:
AppEvent.CONSTS_HERE
My issue really is I have this panelview.as which is a single movieclip that contains groups of related buttons and other widgets. If I directly change the view component's state then i would have long lines of code. Since i would introduce lots of functions for the interaction. Is it ok if i do this? Although, I totally get your point regarding the role of the mediator.

I initially got the impression from the best-practices

View & Mediators
The View primarily caches named references to Mediators. Mediator code stewards View Components, adding event listeners, sending and receiving notifications to and from the rest of the system on their behalf and directly manipulating their state.
10  Announcements and General Discussion / General Discussion / Mediators and their ViewComponent on: December 07, 2011, 10:41:11
Hello everyone,

I've read some post here regarding mediators and components. However, i want to know more something specific.

Basically, I have a panel view with child views
The panel view is a movieclip which is mediated by "PanelMediator"..
This is in StartupCommand:
:
// Create and Register the Application and its Mediator.
var app:PanelView= note.getBody() as Shell;
facade.registerMediator(new PanelMediator(app));

Then i had the child views given a mediator, say "SomeChildMediator" passing the component.
This is in PanelMediator:
:
override public function onRegister():void
{
   facade.registerMediator(new SomeChildMediator(panelView.child_mc));
}

private function get panelView():PanelView
{
 return viewComponent as PanelView;
}

Now, I add mouse event to the child view component(note the child view also contains related views).
This is in SomeChildMediator:
:
override public function onRegister():void
{
   chilView.btn1.addEventListener(MouseEvent.Click, onBtn1Click);
}

private var onBtn1Click(e:MouseEvent):void
{
   //show an btn background, can i do this?
  //childView.btn1.background.visible = true;
}

private function get childView():MovieClip
{
 return viewComponent as MovieClip;
}
I get that the component or module should encapsulate most of its state and behavior and
exposing only an api, which would look like this(if I'm not mistaken).
:
PanelView.doSomething();
However, Should "SomeChildMediator" directly change the state? Since it is only mediating the child view of
panelview, which i dont have a class of ChildView.as like PanelView.as. Also i will be dealing with a complex
panel or toolbar soon with lots of buttons(toggle state, some animation).  ???

Thanks in advance........
 


11  PureMVC Manifold / MultiCore Version / Re: Attaching pipes to modules on: December 04, 2011, 04:35:14
Hello Cliff,

Thanks for the reply and the solution you provided.

I'll take a look at the "Utility_AS3_Loadup" after I get to familiarize myself more on the pipes utility.
12  PureMVC Manifold / MultiCore Version / Re: Attaching pipes to modules on: December 03, 2011, 03:26:52
Hello Cliff,

I just successfully implemented the pipes utility on my shell and modules. However, my module and shell both have an exported class/AS linkage with the same name. After i loaded the module to the shell, the loaded module now uses the exported class from the shell. I tried renaming the exported class and it worked well. However, it's quite cumbersome to rename the modules exported class that conflicts the shell. Is there anyway to fix this?

Also, what's the best way to handle loading of modules. Should i place it in a LoadModuleCommand or a LoadModuleMediator?

13  PureMVC Manifold / MultiCore Version / Re: Attaching pipes to modules on: December 01, 2011, 06:28:58
Thanks for the quick replay cliff, the examples you've given were really helpful. I just need some more time to practice and test the pipes examples.
14  PureMVC Manifold / MultiCore Version / Attaching pipes to modules on: November 30, 2011, 01:26:39
Hello,

I recently started studying the pipes utility. However, I stumble some rocks ahead.
I have this module cores( which are individual swf ), both will be loaded to a main swf.
I was successful in communicating the two modules using interface but I believe using pipes
will provide me greater flexibility as I introduce more modules.
I can't seem to know when to attach the pipe fittings to the modules. Both of my modules now
have a ModuleJunctionMediator, I still cant grasp the idea on how to connect the pipes to the
module.

Regards
Michael
15  PureMVC Manifold / Standard Version / Re: loading external swf as viewcomponent on: November 02, 2011, 10:30:46
thnx for the replay appreciate it very much..i will take a look at multi core
Pages: [1] 2