Over 10 years of community discussion and knowledge are maintained here as a read-only archive.
public class StartupCommand extends SimpleCommand implements ICommand { /** * Register the Proxies and Mediators. * * Get the View Components for the Mediators from the app, * which passed a reference to itself on the notification. */ override public function execute( note:INotification ) : void { facade.registerProxy( new UserProxy() ); facade.registerProxy( new RoleProxy() ); var app:EmployeeAdmin = note.getBody() as EmployeeAdmin; facade.registerMediator( new UserFormMediator( app.userForm ) ); facade.registerMediator( new UserListMediator( app.userList ) ); facade.registerMediator( new RolePanelMediator( app.rolePanel ) ); } }