home *** CD-ROM | disk | FTP | other *** search
- package
- {
- import com.flex.TopLeft;
- import flash.display.Sprite;
- import mx.binding.FunctionReturnWatcher;
- import mx.binding.IWatcherSetupUtil;
- import mx.binding.PropertyWatcher;
- import mx.core.IFlexModuleFactory;
-
- public class _com_flex_TopLeftWatcherSetupUtil extends Sprite implements IWatcherSetupUtil
- {
- public function _com_flex_TopLeftWatcherSetupUtil()
- {
- super();
- }
-
- public static function init(param1:IFlexModuleFactory) : void
- {
- TopLeft.watcherSetupUtil = new _com_flex_TopLeftWatcherSetupUtil();
- }
-
- 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[6] = new FunctionReturnWatcher("getString",target,function():Array
- {
- return ["topBar","PARENTAL_CONTROL"];
- },{"change":true},[bindings[1]],null);
- watchers[1] = new FunctionReturnWatcher("getString",target,function():Array
- {
- return ["topBar","HELLO"];
- },{"change":true},[bindings[0]],null);
- watchers[2] = new PropertyWatcher("parentDocument",{"initialize":true},[bindings[0]],propertyGetter);
- watchers[3] = new PropertyWatcher("userInfoXML",null,[bindings[0]],null);
- watchers[4] = new PropertyWatcher("USERINFO",null,[bindings[0]],null);
- watchers[5] = new PropertyWatcher("kidname",null,[bindings[0]],null);
- watchers[0].updateParent(target);
- watchers[6].parentWatcher = watchers[0];
- watchers[0].addChild(watchers[6]);
- watchers[1].parentWatcher = watchers[0];
- watchers[0].addChild(watchers[1]);
- watchers[2].updateParent(target);
- watchers[2].addChild(watchers[3]);
- watchers[3].addChild(watchers[4]);
- watchers[4].addChild(watchers[5]);
- }
- }
- }
-
-