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 / 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 );
        }
 
}
2  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 ?





3  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]