Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Reusing the Model Tier > The Startup Command

The Startup Command

Class

StartupCommand.as

Code

package com.futurescale.sa.controller.command.startup
{
    import org.puremvc.as3.patterns.command.MacroCommand;
    
    /**
     * Execute separate commands for each phase of startup
     */
    public class StartupCommand extends MacroCommand
    {
        override protected function initializeMacroCommand():void
        {
            addSubCommand( PrepareControllerCommand );
            addSubCommand( PrepareModelCommand );
            addSubCommand( PrepareViewCommand );
        }
    }
}

  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial