Over 10 years of community discussion and knowledge are maintained here as a read-only archive.
Some good rules of thumb are: o If a number of other Mediators must be involved in the overall response to an Event, then update a common Proxy or send a Notification, which is responded to by interested Mediators, all of whom respond appropriately. o If a great amount of coordinated interaction with other Mediators is required, a good practice is to use a Command to encode the steps in one place.
override public function sendNotification( notificationName:String, body:Object=null, type:String=null ):void { var note:INotification = this.getNextPooledNote(); note.setBody( body ); facade.notifyObservers( note );}
override public function sendTimeNote( now:Number ):void { var note:INotification = this.getNextPooledNote(); note.setBody( now ); facade.notifyObservers( note );}