home *** CD-ROM | disk | FTP | other *** search
/ Computer Active 2010 August / CA08.iso / Multimedija / shufflr.air / ShufflrClient.swf / scripts / _SplashScreenWatcherSetupUtil.as < prev    next >
Encoding:
Text File  |  2010-06-23  |  1.1 KB  |  32 lines

  1. package
  2. {
  3.    import flash.display.Sprite;
  4.    import mx.binding.IWatcherSetupUtil;
  5.    import mx.binding.PropertyWatcher;
  6.    import mx.core.IFlexModuleFactory;
  7.    
  8.    public class _SplashScreenWatcherSetupUtil extends Sprite implements IWatcherSetupUtil
  9.    {
  10.       public function _SplashScreenWatcherSetupUtil()
  11.       {
  12.          super();
  13.       }
  14.       
  15.       public static function init(param1:IFlexModuleFactory) : void
  16.       {
  17.          SplashScreen.watcherSetupUtil = new _SplashScreenWatcherSetupUtil();
  18.       }
  19.       
  20.       public function setup(param1:Object, param2:Function, param3:Array, param4:Array) : void
  21.       {
  22.          param4[0] = new PropertyWatcher("splashImage",{"propertyChange":true},[param3[1],param3[0]],param2);
  23.          param4[1] = new PropertyWatcher("width",{"widthChanged":true},[param3[0]],null);
  24.          param4[2] = new PropertyWatcher("height",{"heightChanged":true},[param3[1]],null);
  25.          param4[0].updateParent(param1);
  26.          param4[0].addChild(param4[1]);
  27.          param4[0].addChild(param4[2]);
  28.       }
  29.    }
  30. }
  31.  
  32.