home *** CD-ROM | disk | FTP | other *** search
/ Computer Active 2010 August / CA08.iso / Darbas / kidoz_v1.air / kidoz.swf / scripts / _com_flex_steps_RegFormStep1WatcherSetupUtil.as < prev    next >
Encoding:
Text File  |  2009-05-06  |  4.1 KB  |  92 lines

  1. package
  2. {
  3.    import com.flex.steps.RegFormStep1;
  4.    import flash.display.Sprite;
  5.    import mx.binding.FunctionReturnWatcher;
  6.    import mx.binding.IWatcherSetupUtil;
  7.    import mx.binding.PropertyWatcher;
  8.    import mx.core.IFlexModuleFactory;
  9.    
  10.    public class _com_flex_steps_RegFormStep1WatcherSetupUtil extends Sprite implements IWatcherSetupUtil
  11.    {
  12.       public function _com_flex_steps_RegFormStep1WatcherSetupUtil()
  13.       {
  14.          super();
  15.       }
  16.       
  17.       public static function init(param1:IFlexModuleFactory) : void
  18.       {
  19.          RegFormStep1.watcherSetupUtil = new _com_flex_steps_RegFormStep1WatcherSetupUtil();
  20.       }
  21.       
  22.       public function setup(param1:Object, param2:Function, param3:Array, param4:Array) : void
  23.       {
  24.          var target:Object = param1;
  25.          var propertyGetter:Function = param2;
  26.          var bindings:Array = param3;
  27.          var watchers:Array = param4;
  28.          watchers[0] = new PropertyWatcher("resourceManager",{"unused":true},[bindings[4],bindings[9],bindings[6],bindings[1],bindings[3],bindings[10],bindings[7],bindings[5],bindings[0]],propertyGetter);
  29.          watchers[2] = new FunctionReturnWatcher("getString",target,function():Array
  30.          {
  31.             return ["registration","CREATE_ACCOUNT"];
  32.          },{"change":true},[bindings[1]],null);
  33.          watchers[4] = new FunctionReturnWatcher("getString",target,function():Array
  34.          {
  35.             return ["registration","PARENT_MAIL"];
  36.          },{"change":true},[bindings[3]],null);
  37.          watchers[8] = new FunctionReturnWatcher("getString",target,function():Array
  38.          {
  39.             return ["registration","COUNTRY"];
  40.          },{"change":true},[bindings[7]],null);
  41.          watchers[11] = new FunctionReturnWatcher("getString",target,function():Array
  42.          {
  43.             return ["registration","CLICK_HERE_TO_LOGIN"];
  44.          },{"change":true},[bindings[10]],null);
  45.          watchers[6] = new FunctionReturnWatcher("getString",target,function():Array
  46.          {
  47.             return ["registration","PARENT_LAST_NAME"];
  48.          },{"change":true},[bindings[5]],null);
  49.          watchers[1] = new FunctionReturnWatcher("getString",target,function():Array
  50.          {
  51.             return ["registration","PARENT_DETAILS"];
  52.          },{"change":true},[bindings[0]],null);
  53.          watchers[10] = new FunctionReturnWatcher("getString",target,function():Array
  54.          {
  55.             return ["registration","NEXT"];
  56.          },{"change":true},[bindings[9]],null);
  57.          watchers[7] = new FunctionReturnWatcher("getString",target,function():Array
  58.          {
  59.             return ["registration","PARENT_PASSWORD"];
  60.          },{"change":true},[bindings[6]],null);
  61.          watchers[5] = new FunctionReturnWatcher("getString",target,function():Array
  62.          {
  63.             return ["registration","PARENT_FIRST_NAME"];
  64.          },{"change":true},[bindings[4]],null);
  65.          watchers[3] = new PropertyWatcher("nextBtn",{"propertyChange":true},[bindings[2]],propertyGetter);
  66.          watchers[9] = new PropertyWatcher("countries",{"propertyChange":true},[bindings[8]],propertyGetter);
  67.          watchers[0].updateParent(target);
  68.          watchers[2].parentWatcher = watchers[0];
  69.          watchers[0].addChild(watchers[2]);
  70.          watchers[4].parentWatcher = watchers[0];
  71.          watchers[0].addChild(watchers[4]);
  72.          watchers[8].parentWatcher = watchers[0];
  73.          watchers[0].addChild(watchers[8]);
  74.          watchers[11].parentWatcher = watchers[0];
  75.          watchers[0].addChild(watchers[11]);
  76.          watchers[6].parentWatcher = watchers[0];
  77.          watchers[0].addChild(watchers[6]);
  78.          watchers[1].parentWatcher = watchers[0];
  79.          watchers[0].addChild(watchers[1]);
  80.          watchers[10].parentWatcher = watchers[0];
  81.          watchers[0].addChild(watchers[10]);
  82.          watchers[7].parentWatcher = watchers[0];
  83.          watchers[0].addChild(watchers[7]);
  84.          watchers[5].parentWatcher = watchers[0];
  85.          watchers[0].addChild(watchers[5]);
  86.          watchers[3].updateParent(target);
  87.          watchers[9].updateParent(target);
  88.       }
  89.    }
  90. }
  91.  
  92.