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

Deferred Instantiation > The Application Sections Mediator

The Application Sections Mediator

Class

AppSectionsMediator.as

Code

package com.mycompany.myapp.view.mediator
{
    import com.mycompany.myapp.view.component.AppSections;
    import com.mycompany.myapp.view.event.AppEvent;
    
    import org.puremvc.as3.interfaces.INotification;
    import org.puremvc.as3.patterns.mediator.Mediator;
    
    public class AppSectionsMediator extends Mediator
    {
        public static const NAME:String = 'AppSectionsMediator';
        
        public function AppSectionsMediator( viewComponent:AppSections )
        {
            super( NAME, viewComponent );   
        }
        
        protected function get appSections():AppSections
        {
            return viewComponent as AppSections;
        }
        
        override public function onRegister():void
        {....

  

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