home *** CD-ROM | disk | FTP | other *** search
- package
- {
- import com.flex.steps.RegApproval;
- import flash.display.Sprite;
- import mx.binding.FunctionReturnWatcher;
- import mx.binding.IWatcherSetupUtil;
- import mx.binding.PropertyWatcher;
- import mx.core.IFlexModuleFactory;
-
- public class _com_flex_steps_RegApprovalWatcherSetupUtil extends Sprite implements IWatcherSetupUtil
- {
- public function _com_flex_steps_RegApprovalWatcherSetupUtil()
- {
- super();
- }
-
- public static function init(param1:IFlexModuleFactory) : void
- {
- RegApproval.watcherSetupUtil = new _com_flex_steps_RegApprovalWatcherSetupUtil();
- }
-
- public function setup(param1:Object, param2:Function, param3:Array, param4:Array) : void
- {
- var target:Object = param1;
- var propertyGetter:Function = param2;
- var bindings:Array = param3;
- var watchers:Array = param4;
- watchers[0] = new PropertyWatcher("resourceManager",{"unused":true},[bindings[1],bindings[0]],propertyGetter);
- watchers[2] = new FunctionReturnWatcher("getString",target,function():Array
- {
- return ["approvals","START_KIDOZ"];
- },{"change":true},[bindings[1]],null);
- watchers[1] = new FunctionReturnWatcher("getString",target,function():Array
- {
- return ["approvals","REGISTRATION_APPROVAL"];
- },{"change":true},[bindings[0]],null);
- watchers[0].updateParent(target);
- watchers[2].parentWatcher = watchers[0];
- watchers[0].addChild(watchers[2]);
- watchers[1].parentWatcher = watchers[0];
- watchers[0].addChild(watchers[1]);
- }
- }
- }
-
-