home *** CD-ROM | disk | FTP | other *** search
- package
- {
- import com.flex.steps.Welcome;
- 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_WelcomeWatcherSetupUtil extends Sprite implements IWatcherSetupUtil
- {
- public function _com_flex_steps_WelcomeWatcherSetupUtil()
- {
- super();
- }
-
- public static function init(param1:IFlexModuleFactory) : void
- {
- Welcome.watcherSetupUtil = new _com_flex_steps_WelcomeWatcherSetupUtil();
- }
-
- 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[2] = new PropertyWatcher("locales",{"propertyChange":true},[bindings[1]],propertyGetter);
- watchers[0] = new PropertyWatcher("resourceManager",{"unused":true},[bindings[2],bindings[4],bindings[3],bindings[5],bindings[0]],propertyGetter);
- watchers[4] = new FunctionReturnWatcher("getString",target,function():Array
- {
- return ["welcome","WELCOME_TEXT"];
- },{"change":true},[bindings[3]],null);
- watchers[6] = new FunctionReturnWatcher("getString",target,function():Array
- {
- return ["welcome","CONTINUE"];
- },{"change":true},[bindings[5]],null);
- watchers[1] = new FunctionReturnWatcher("getString",target,function():Array
- {
- return ["welcome","CHANGE_LANGUAGE"];
- },{"change":true},[bindings[0]],null);
- watchers[3] = new FunctionReturnWatcher("getString",target,function():Array
- {
- return ["welcome","WELCOME_TITLE"];
- },{"change":true},[bindings[2]],null);
- watchers[5] = new FunctionReturnWatcher("getString",target,function():Array
- {
- return ["welcome","AGREE"];
- },{"change":true},[bindings[4]],null);
- watchers[2].updateParent(target);
- watchers[0].updateParent(target);
- watchers[4].parentWatcher = watchers[0];
- watchers[0].addChild(watchers[4]);
- watchers[6].parentWatcher = watchers[0];
- watchers[0].addChild(watchers[6]);
- watchers[1].parentWatcher = watchers[0];
- watchers[0].addChild(watchers[1]);
- watchers[3].parentWatcher = watchers[0];
- watchers[0].addChild(watchers[3]);
- watchers[5].parentWatcher = watchers[0];
- watchers[0].addChild(watchers[5]);
- }
- }
- }
-
-