home *** CD-ROM | disk | FTP | other *** search
- package
- {
- import com.flex.ParentalControl;
- import flash.display.Sprite;
- import mx.binding.FunctionReturnWatcher;
- import mx.binding.IWatcherSetupUtil;
- import mx.binding.PropertyWatcher;
- import mx.core.IFlexModuleFactory;
-
- public class _com_flex_ParentalControlWatcherSetupUtil extends Sprite implements IWatcherSetupUtil
- {
- public function _com_flex_ParentalControlWatcherSetupUtil()
- {
- super();
- }
-
- public static function init(param1:IFlexModuleFactory) : void
- {
- ParentalControl.watcherSetupUtil = new _com_flex_ParentalControlWatcherSetupUtil();
- }
-
- 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[7] = new PropertyWatcher("html",{"propertyChange":true},[bindings[4]],propertyGetter);
- watchers[8] = new PropertyWatcher("location",{"locationChange":true},[bindings[4]],null);
- watchers[4] = new PropertyWatcher("resourceManager",{"unused":true},[bindings[2],bindings[3],bindings[5]],propertyGetter);
- watchers[9] = new FunctionReturnWatcher("getString",target,function():Array
- {
- return ["parentalControl","EXIT"];
- },{"change":true},[bindings[5]],null);
- watchers[6] = new FunctionReturnWatcher("getString",target,function():Array
- {
- return ["parentalControl","FORWARD"];
- },{"change":true},[bindings[3]],null);
- watchers[5] = new FunctionReturnWatcher("getString",target,function():Array
- {
- return ["parentalControl","BACK"];
- },{"change":true},[bindings[2]],null);
- watchers[0] = new PropertyWatcher("parentDocument",{"initialize":true},[bindings[1],bindings[0]],propertyGetter);
- watchers[1] = new PropertyWatcher("nativeWindow",null,[bindings[1],bindings[0]],null);
- watchers[2] = new PropertyWatcher("width",null,[bindings[0]],null);
- watchers[3] = new PropertyWatcher("height",null,[bindings[1]],null);
- watchers[7].updateParent(target);
- watchers[7].addChild(watchers[8]);
- watchers[4].updateParent(target);
- watchers[9].parentWatcher = watchers[4];
- watchers[4].addChild(watchers[9]);
- watchers[6].parentWatcher = watchers[4];
- watchers[4].addChild(watchers[6]);
- watchers[5].parentWatcher = watchers[4];
- watchers[4].addChild(watchers[5]);
- watchers[0].updateParent(target);
- watchers[0].addChild(watchers[1]);
- watchers[1].addChild(watchers[2]);
- watchers[1].addChild(watchers[3]);
- }
- }
- }
-
-