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 / Standard Version / Re: Multiple View Components in 1 Mediator on: August 07, 2009, 02:00:57
Thanks for your reply, but the otherView was not going to be a subcomponent of userView.

I'll try to better define what I am trying to accomplish.

My app started from the Flex Slacker: http://puremvc.org/pages/demos/AS3/Demo_AS3_Flex_Slacker/

- The splash screen contains a logon screen.
- The first button "Gallery" is available to all
- If a regular user logs in, the next button "Editor" will be available.
- If a admin user logs in, buttons "Editor" and "Profile" will be available.

I am not really sure how best to accomplish this.

How could <mx:Application> Listen for notifications ?

 I was thinking about putting a new view "<view:HeaderDisplay>" inside of the "<mx:ApplicationControlBar>", but then I have multiple views.

What would be the best way to design this ?
2  PureMVC Manifold / Standard Version / Multiple View Components in 1 Mediator on: August 05, 2009, 06:11:58
So far I have been creating 1 View Component to 1 Mediator.

Within the Mediator I add an addEventListener to that 1 specific View Component.

Is it possible to add an addEventListener to some other View Component ?

:
class UserViewMediator extends Mediator
{
        override public function onRegister():void
        {
            userView.addEventListener( UserView.LIST, onList);
           
            // How can I call something like this
            otherView.addEventListener( OtherView.SAVE, onSave );
        }
 
}
3  Announcements and General Discussion / Getting Started / Re: Blocking one Command on completion of another on: September 03, 2008, 08:26:59
On page 18 of "Implementation Idioms and Best Practices" it says:

Commands may be used orchestrate complex system behaviors that must happen in a specific order, and where it is possible that the results of one action might feed the next."

Are there any examples where the results of one action is feeding another action ?
4  Announcements and General Discussion / Getting Started / Blocking one Command on completion of another on: September 02, 2008, 12:57:10
Is it possible to block one command on the completion of another ?

example:

Lets say command1 performs a URLLoader.load( URLRequest() );
command2 also performs a URLLoader.load( URLRequest() );


If I create a MacroCommand()
{
      addSubCommand( command1 );
      addSubCommand( command2 );
}

I see it will be true that the request for command1 will be sent before the request for command2, but isn't possible that the Event.COMPLETE for command2 occurs before the Event.COMPLETE of command1 ?





5  Announcements and General Discussion / Getting Started / Another demo needed to get started on: August 26, 2008, 05:07:37
When I was first learning about the MVC Pattern I found a tutorial by Joseph Bergin of Pace University very helpful:

http://pclc.pace.edu/~bergin/mvc/mvcgui.html

If I spend some time porting this over to flash and PureMVC ( with community support pointing out my errors ) will someone post it as a PureMVC AS3 / Flash Demo ?

Pages: [1]