home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / Beez.swf / scripts / org / puremvc / as3 / patterns / observer / Notifier.as < prev    next >
Encoding:
Text File  |  2008-09-03  |  635 b   |  25 lines

  1. package org.puremvc.as3.patterns.observer
  2. {
  3.    import org.puremvc.as3.interfaces.IFacade;
  4.    import org.puremvc.as3.interfaces.INotifier;
  5.    import org.puremvc.as3.patterns.facade.Facade;
  6.    
  7.    public class Notifier implements INotifier
  8.    {
  9.        
  10.       
  11.       protected var facade:IFacade;
  12.       
  13.       public function Notifier()
  14.       {
  15.          facade = Facade.getInstance();
  16.          super();
  17.       }
  18.       
  19.       public function sendNotification(notificationName:String, body:Object = null, type:String = null) : void
  20.       {
  21.          facade.sendNotification(notificationName,body,type);
  22.       }
  23.    }
  24. }
  25.