中国开发网: 论坛: 程序员情感CBD: 贴子 190258
JoJo
公开源代码,希望看了不要头晕。。。
[DeferCreation("false")]
[DeferCreation("false")]
class fleet extends mx.core.Application
{
// removed before bytecode generation...
static function __generateDocumentDescriptor() {
new mx.core.UIObjectDescriptor({ type: mx.core.Application, id: "_Application0", events: { initialize: _global.fleet.prototype.___Application0_initialize }, nonInheritingStyles: function() { return {backgroundAlpha: 0.0}; },
_properties: function() { return { preloader: "com.tksoft.preloaders.MacOSX", theme: "/themes/Blue_Crystal.swc", usePreloader: true, creationPolicy: "all", childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.containers.ViewStack, id: "scene_main",
_properties: function() { return { width: "100%", height: "100%", childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.containers.VBox, id: "scene_login", nonInheritingStyles: function() { return {horizontalAlign: "center", verticalAlign: "middle"}; },
_properties: function() { return { width: "100%", height: "100%", childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.containers.TitleWindow, id: "panel_login", nonInheritingStyles: function() { return {horizontalAlign: "center"}; },
_properties: function() { return { closeButton: true, childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.containers.HBox, nonInheritingStyles: function() { return {horizontalAlign: "center", horizontalGap: 0.0, verticalAlign: "top"}; },
_properties: function() { return { childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.controls.Image, effects: [ "creationComplete" ], nonInheritingStyles: function() { return {creationCompleteEffect: "Fade"}; },
_properties: function() { return { creationCompleteEffect: "Fade", source: "__Resources.1153072418.woman_64_png" }; }
}),
new mx.core.UIObjectDescriptor({ type: mx.containers.Form, id: "form_login",
_properties: function() { return { childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.containers.FormItem, id: "_FormItem3",
_properties: function() { return { required: true, childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.controls.TextInput, id: "fi_login_username" })
]};}
}),
new mx.core.UIObjectDescriptor({ type: mx.containers.FormItem, id: "_FormItem4",
_properties: function() { return { childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.controls.TextInput, id: "fi_login_password",
_properties: function() { return { password: true }; }
})
]};}
}),
new mx.core.UIObjectDescriptor({ type: mx.containers.FormItem, id: "f_LoginDialog_server",
_properties: function() { return { height: 0.0, required: true, visible: false, childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.controls.TextInput, id: "fi_login_server" })
]};}
}),
new mx.core.UIObjectDescriptor({ type: mx.containers.FormItem, id: "f_LoginDialog_port",
_properties: function() { return { height: 0.0, required: true, visible: false, childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.controls.TextInput, id: "fi_login_port" })
]};}
}),
new mx.core.UIObjectDescriptor({ type: mx.containers.FormItem, id: "f_LoginDialog_usedefault",
_properties: function() { return { height: 0.0, visible: false, childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.controls.CheckBox, id: "fi_login_usedefault", events: { click: _global.fleet.prototype.__fi_login_usedefault_click },
_properties: function() { return { selected: true }; }
})
]};}
})
]};}
})
]};}
}),
new mx.core.UIObjectDescriptor({ type: mx.containers.ControlBar, nonInheritingStyles: function() { return {horizontalAlign: "right", verticalAlign: "middle"}; },
_properties: function() { return { childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.containers.HBox,
_properties: function() { return { width: "100%", childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.controls.Link, id: "_Link7", events: { click: _global.fleet.prototype.___Link7_click } })
]};}
}),
new mx.core.UIObjectDescriptor({ type: mx.controls.Button, id: "btn_login_ok", events: { click: _global.fleet.prototype.__btn_login_ok_click },
_properties: function() { return { width: 100.0 }; }
})
]};}
})
]};}
})
]};}
})
]};}
})
]};}
});
}
var f_LoginDialog_usedefault:mx.containers.FormItem;
var form_login:mx.containers.Form;
var f_LoginDialog_server:mx.containers.FormItem;
[AnonymousObjectGraph]
var model_login:Object;
var btn_login_ok:mx.controls.Button;
var _FormItem3:mx.containers.FormItem;
[AnonymousObjectGraph]
var def_lang:Object;
var fi_login_port:mx.controls.TextInput;
var fi_login_password:mx.controls.TextInput;
var scene_login:mx.containers.VBox;
var scene_main:mx.containers.ViewStack;
var _Link7:mx.controls.Link;
var fi_login_username:mx.controls.TextInput;
var fi_login_server:mx.controls.TextInput;
var panel_login:mx.containers.TitleWindow;
[AnonymousObjectGraph]
var model_login_more:Object;
var fi_login_usedefault:mx.controls.CheckBox;
var _FormItem4:mx.containers.FormItem;
var f_LoginDialog_port:mx.containers.FormItem;

function fleet()
{

}

function init():Void
{
__document = this;
__documentDescriptor = fleet["_documentDescriptor_"];
__documentDescriptor.document = this;

addEventListener("initialize", ___Application0_initialize, undefined, mx.events.EventDispatcher.kPriorityClassDefinition);

super.init();

if (_parent != undefined)
{
width = 1024;
height = 768;
}
else
{
Stage.align = "LT";
Stage.scaleMode = "noScale";
preferredWidth = Stage.width;
preferredHeight = Stage.height;
}
mx.styles.StyleManager.registerColorStyle("backgroundDisabledColor");
mx.styles.StyleManager.registerColorStyle("barColor");
mx.styles.StyleManager.registerColorStyle("borderCapColor");
mx.styles.StyleManager.registerColorStyle("buttonColor");
mx.styles.StyleManager.registerColorStyle("color");
mx.styles.StyleManager.registerColorStyle("disabledColor");
mx.styles.StyleManager.registerColorStyle("dividerColor");
mx.styles.StyleManager.registerColorStyle("dropdownBorderColor");
mx.styles.StyleManager.registerColorStyle("errorColor");
mx.styles.StyleManager.registerColorStyle("hGridLineColor");
mx.styles.StyleManager.registerColorStyle("headerColor");
mx.styles.StyleManager.registerColorStyle("highlightColor");
mx.styles.StyleManager.registerColorStyle("rollOverColor");
mx.styles.StyleManager.registerColorStyle("scrollTrackColor");
mx.styles.StyleManager.registerColorStyle("selectionColor");
mx.styles.StyleManager.registerColorStyle("selectionDisabledColor");
mx.styles.StyleManager.registerColorStyle("shadowCapColor");
mx.styles.StyleManager.registerColorStyle("shadowColor");
mx.styles.StyleManager.registerColorStyle("strokeColor");
mx.styles.StyleManager.registerColorStyle("symbolBackgroundColor");
mx.styles.StyleManager.registerColorStyle("symbolBackgroundDisabledColor");
mx.styles.StyleManager.registerColorStyle("symbolBackgroundPressedColor");
mx.styles.StyleManager.registerColorStyle("symbolColor");
mx.styles.StyleManager.registerColorStyle("symbolDisabledColor");
mx.styles.StyleManager.registerColorStyle("textDisabledColor");
mx.styles.StyleManager.registerColorStyle("textRollOverColor");
mx.styles.StyleManager.registerColorStyle("textSelectedColor");
mx.styles.StyleManager.registerColorStyle("themeColor");
mx.styles.StyleManager.registerColorStyle("todayColor");
mx.styles.StyleManager.registerColorStyle("trackColor");
mx.styles.StyleManager.registerColorStyle("vGridLineColor");
mx.styles.StyleManager.registerInheritingStyle("alternatingItemColors");
mx.styles.StyleManager.registerInheritingStyle("alternatingRowColors");
mx.styles.StyleManager.registerInheritingStyle("axisTitleStyle");
mx.styles.StyleManager.registerInheritingStyle("depthColors");
mx.styles.StyleManager.registerInheritingStyle("fontFamily");
mx.styles.StyleManager.registerInheritingStyle("fontSize");
mx.styles.StyleManager.registerInheritingStyle("fontStyle");
mx.styles.StyleManager.registerInheritingStyle("fontWeight");
mx.styles.StyleManager.registerInheritingStyle("footerColors");
mx.styles.StyleManager.registerInheritingStyle("headerColors");
mx.styles.StyleManager.registerInheritingStyle("indicatorGap");
mx.styles.StyleManager.registerInheritingStyle("labelPlacement");
mx.styles.StyleManager.registerInheritingStyle("labelWidth");
mx.styles.StyleManager.registerInheritingStyle("markerHeight");
mx.styles.StyleManager.registerInheritingStyle("markerWidth");
mx.styles.StyleManager.registerInheritingStyle("modalTransparency");
mx.styles.StyleManager.registerInheritingStyle("strokeWidth");
mx.styles.StyleManager.registerInheritingStyle("textAlign");
mx.styles.StyleManager.registerInheritingStyle("textIndent");

var props = new Object();
props.preloader = "com.tksoft.preloaders.MacOSX";
props.theme = "/themes/Blue_Crystal.swc";
props.usePreloader = true;
props.backgroundAlpha = 0.0;
props.creationPolicy = "all";
applyProperties(props, props);

var o;

if (_global.styles.Link == undefined)
{
o = _global.styles.Link = new mx.styles.CSSStyleDeclaration();
}
else
{
o = _global.styles.Link;
}

if (o.inheriting == undefined)
{
o.inheriting = new mx.styles.CSSStyleSheet();
}
var i = o.inheriting;

i.factory = function() { return { disabledColor: 0x6699ff, fontWeight: "bold"}; }
var o;

if (_global.styles.ToolTip == undefined)
{
o = _global.styles.ToolTip = new mx.styles.CSSStyleDeclaration();
}
else
{
o = _global.styles.ToolTip;
}

if (o.inheriting == undefined)
{
o.inheriting = new mx.styles.CSSStyleSheet();
}
var i = o.inheriting;

i.factory = function() { return { fontSize: 11}; }
var o;

if (_global.styles.Panel == undefined)
{
o = _global.styles.Panel = new mx.styles.CSSStyleDeclaration();
}
else
{
o = _global.styles.Panel;
}

if (o.nonInheriting == undefined)
{
o.nonInheriting = new mx.styles.CSSStyleSheet();
}
var n = o.nonInheriting;
n.factory = function() { return { cornerRadius: 3, headerHeight: 22}; }
var o;

if (_global.styles.TabNavigator == undefined)
{
o = _global.styles.TabNavigator = new mx.styles.CSSStyleDeclaration();
}
else
{
o = _global.styles.TabNavigator;
}

if (o.nonInheriting == undefined)
{
o.nonInheriting = new mx.styles.CSSStyleSheet();
}
var n = o.nonInheriting;
n.factory = function() { return { tabHeight: 19}; }
var o;

if (_global.styles.LinkBar == undefined)
{
o = _global.styles.LinkBar = new mx.styles.CSSStyleDeclaration();
}
else
{
o = _global.styles.LinkBar;
}

if (o.inheriting == undefined)
{
o.inheriting = new mx.styles.CSSStyleSheet();
}
var i = o.inheriting;

i.factory = function() { return { disabledColor: 0x6699ff, fontWeight: "bold"}; }
if (o.nonInheriting == undefined)
{
o.nonInheriting = new mx.styles.CSSStyleSheet();
}
var n = o.nonInheriting;
n.factory = function() { return { backgroundColor: 0xf0f5ff}; }
var o;

if (_global.styles.Application == undefined)
{
o = _global.styles.Application = new mx.styles.CSSStyleDeclaration();
}
else
{
o = _global.styles.Application;
}

if (o.inheriting == undefined)
{
o.inheriting = new mx.styles.CSSStyleSheet();
}
var i = o.inheriting;

i.factory = function() { return { themeColor: 0x6699ff}; }
if (o.nonInheriting == undefined)
{
o.nonInheriting = new mx.styles.CSSStyleSheet();
}
var n = o.nonInheriting;
n.factory = function() { return { marginBottom: 10, marginLeft: 10, marginRight: 10, marginTop: 10}; }
var o;

if (_global.styles.Button == undefined)
{
o = _global.styles.Button = new mx.styles.CSSStyleDeclaration();
}
else
{
o = _global.styles.Button;
}

if (o.nonInheriting == undefined)
{
o.nonInheriting = new mx.styles.CSSStyleSheet();
}
var n = o.nonInheriting;
n.factory = function() { return { marginLeft: 10, marginRight: 7}; }
var o;

if (_global.styles.ErrorTip == undefined)
{
o = _global.styles.ErrorTip = new mx.styles.CSSStyleDeclaration();
}
else
{
o = _global.styles.ErrorTip;
}

if (o.inheriting == undefined)
{
o.inheriting = new mx.styles.CSSStyleSheet();
}
var i = o.inheriting;

i.factory = function() { return { color: 0xffffcc, fontSize: 11}; }
var o;

if (_global.styles.TitleWindow == undefined)
{
o = _global.styles.TitleWindow = new mx.styles.CSSStyleDeclaration();
}
else
{
o = _global.styles.TitleWindow;
}

if (o.nonInheriting == undefined)
{
o.nonInheriting = new mx.styles.CSSStyleSheet();
}
var n = o.nonInheriting;
n.factory = function() { return { cornerRadius: 3, headerHeight: 22}; }
var global = _global.styles.global;
global.embedFonts = false;
global.fontFamily = "Tahoma";
global.fontSize = 11;

new mx.effects.Fade(null);
_fleet_facelessSetup();
_fleet_bindingSetup();

if (nonInheritingStyleSheet == undefined)
{
nonInheritingStyleSheet = new mx.styles.CSSStyleSheet();
}

nonInheritingStyleSheet.defaultFactory = function() { return {backgroundAlpha: 0.0}; };
}

// Event handler functions...
function ___Application0_initialize(event:Object):Void
{
initApp()
}

function __fi_login_usedefault_click(event:Object):Void
{
login_switchToNomalView()
}

function ___Link7_click(event:Object):Void
{
login_switchToFullView()
}

function __btn_login_ok_click(event:Object):Void
{
if (login_inputIsValid()) alert ('输入正确')
}



import mx.validators.*;
//初始化代码
function initApp(){
//设置登录场景验证器
set_validator_login();
}
//XML to Object
function xml2obj(xml:XMLNode):Object{
var obj:Object = new Object();
for (var item in xml.attributes){
obj[item] = xml.attributes[item];
}
for (var i=0;i<xml.childNodes.length;i++){
var node:XMLNode = xml.childNodes[i];
switch(node.nodeType){
case 1:
obj[node.nodeName] = xml2obj(node);
break;
case 3:
obj["value"] = node.nodeValue;
break;
}
}
return obj;
}

//登录场景部分

function resizeY(item,y){
var rf = new mx.effects.Resize(item);
rf.heightTo = y;
rf.playEffect();
}

//切换到全选项视图
function login_switchToFullView(){
fi_login_usedefault.selected = false;
f_LoginDialog_server.visible = true;
f_LoginDialog_port.visible = true;
f_LoginDialog_usedefault.visible = true;
resizeY(f_LoginDialog_server,23);
resizeY(f_LoginDialog_port,23);
resizeY(f_LoginDialog_usedefault,23);
}

//切换到一般选项视图
function login_switchToNomalView(){
fi_login_usedefault.selected = true;
resizeY(f_LoginDialog_server,0);
resizeY(f_LoginDialog_port,0);
resizeY(f_LoginDialog_usedefault,0);
f_LoginDialog_server.visible = false;
f_LoginDialog_port.visible = false;
f_LoginDialog_usedefault.visible = false;
}

//判断是否是全选项视图
function login_isFullView():Boolean{
return !fi_login_usedefault.selected;
}

//判断是否是一般选项视图
function login_isNomalView():Boolean{
return fi_login_usedefault.selected;
}

//判断输入是否正确
function login_inputIsValid():Boolean{
if (!Validator.isStructureValid(this,"model_login")) return false;
if (login_isFullView()){
return (Validator.isStructureValid(this,"model_login_more"));
}else{
return true;
}
}

//记住用户输入,除密码外
function login_saveUserInput(){
}

//读取用户输入
function login_loadUserInput(){
}

//设置登录窗口验证器
function set_validator_login()
{
var _vclass = mx.validators.Validator;
_vclass._initForValidation(this);
var _temp:mx.validators.Validator;
_temp = new mx.validators.NumberValidator();
_temp._init(this, "model_login_more.Port", function() { return model_login_more.Port; }, function() { return fi_login_port; }, { invalidCharError: def_lang.LoginDialog.PortInvalid, minValue: 80, maxValue: 65535, domain: "int", exceedsMaxError: def_lang.LoginDialog.PortExceedsMax, requiredFieldError: def_lang.Comm.RequiredFieldError, lowerThanMinError: def_lang.LoginDialog.PortLowerThanMin, integerError: def_lang.LoginDialog.PortInvalid });
_vclass._addValidator(this, "model_login_more.Port", _temp);
_temp = new mx.validators.StringValidator();
_temp._init(this, "model_login_more.Server", function() { return model_login_more.Server; }, function() { return fi_login_server; }, { requiredFieldError: def_lang.Comm.RequiredFieldError });
_vclass._addValidator(this, "model_login_more.Server", _temp);
_temp = new mx.validators.StringValidator();
_temp._init(this, "model_login.Username", function() { return model_login.Username; }, function() { return fi_login_username; }, { requiredFieldError: def_lang.Comm.RequiredFieldError });
_vclass._addValidator(this, "model_login.Username", _temp);
_vclass._optimizeValidators(this);
}


function _fleet_facelessSetup():Void
{
var temp1:Object = new Object();
var temp2:Object = new Object();
temp2.Cancel = "取消";
temp2.OK = "确定";
temp2.RequiredFieldError = "这一项不能省略";
temp1.Comm = temp2;
var temp3:Object = new Object();
temp3.Password = "密码";
temp3.PortExceedsMax = "端口太大,端口必须小于或等于65535";
temp3.UseDefault = "使用默认设置";
temp3.PortLowerThanMin = "端口太小,端口必须大于或等于80";
temp3.Server = "服务器";
temp3.Title = "登录";
temp3.Port = "端口";
temp3.MoreOption = "更多选项";
temp3.PortInvalid = "请填入一个整数";
temp3.Username = "用户名";
temp1.LoginDialog = temp3;
def_lang = temp1;
var temp4:Object = new Object();
temp4.Username = undefined;
temp4.Password = undefined;
model_login = temp4;
var temp5:Object = new Object();
temp5.Server = undefined;
temp5.Port = undefined;
temp5.UseDefault = undefined;
model_login_more = temp5;
}

// Bindings and watchers...

function _fleet_bindingSetup():Void
{
var _bclass = mx.binding.Binding;
var _barray = new Array();
var _bmclass = mx.binding.BindingManager;
var _btemp;
_btemp = new _bclass(this,
function() { return (def_lang.LoginDialog.Title); },
function(_v) { panel_login.title = _v;},
"panel_login.title");
_bmclass.addBinding(this, "panel_login.title", _btemp);
_barray[0] = _btemp;
_btemp = new _bclass(this,
function() { return (def_lang.LoginDialog.Username); },
function(_v) { _FormItem3.label = _v;},
"_FormItem3.label");
_bmclass.addBinding(this, "_FormItem3.label", _btemp);
_barray[1] = _btemp;
_btemp = new _bclass(this,
function() { return (def_lang.LoginDialog.Password); },
function(_v) { _FormItem4.label = _v;},
"_FormItem4.label");
_bmclass.addBinding(this, "_FormItem4.label", _btemp);
_barray[2] = _btemp;
_btemp = new _bclass(this,
function() { return (def_lang.LoginDialog.Server); },
function(_v) { f_LoginDialog_server.label = _v;},
"f_LoginDialog_server.label");
_bmclass.addBinding(this, "f_LoginDialog_server.label", _btemp);
_barray[3] = _btemp;
_btemp = new _bclass(this,
function() { return (def_lang.LoginDialog.Port); },
function(_v) { f_LoginDialog_port.label = _v;},
"f_LoginDialog_port.label");
_bmclass.addBinding(this, "f_LoginDialog_port.label", _btemp);
_barray[4] = _btemp;
_btemp = new _bclass(this,
function() { return (def_lang.LoginDialog.UseDefault); },
function(_v) { fi_login_usedefault.label = _v;},
"fi_login_usedefault.label");
_bmclass.addBinding(this, "fi_login_usedefault.label", _btemp);
_barray[5] = _btemp;
_btemp = new _bclass(this,
function() { return (def_lang.LoginDialog.MoreOption); },
function(_v) { _Link7.label = _v;},
"_Link7.label");
_bmclass.addBinding(this, "_Link7.label", _btemp);
_barray[6] = _btemp;
_btemp = new _bclass(this,
function() { return (def_lang.Comm.OK); },
function(_v) { btn_login_ok.label = _v;},
"btn_login_ok.label");
_bmclass.addBinding(this, "btn_login_ok.label", _btemp);
_barray[7] = _btemp;
_btemp = new _bclass(this,
function() { return (fi_login_username.text); },
function(_v) { model_login.Username = _v;},
"model_login.Username");
_bmclass.addBinding(this, "model_login.Username", _btemp);
_barray[8] = _btemp;
_btemp = new _bclass(this,
function() { return (fi_login_password.text); },
function(_v) { model_login.Password = _v;},
"model_login.Password");
_bmclass.addBinding(this, "model_login.Password", _btemp);
_barray[9] = _btemp;
_btemp = new _bclass(this,
function() { return (fi_login_server.text); },
function(_v) { model_login_more.Server = _v;},
"model_login_more.Server");
_bmclass.addBinding(this, "model_login_more.Server", _btemp);
_barray[10] = _btemp;
_btemp = new _bclass(this,
function() { return (fi_login_port.text); },
function(_v) { model_login_more.Port = _v;},
"model_login_more.Port");
_bmclass.addBinding(this, "model_login_more.Port", _btemp);
_barray[11] = _btemp;
_btemp = new _bclass(this,
function() { return (fi_login_usedefault.selected); },
function(_v) { model_login_more.UseDefault = _v;},
"model_login_more.UseDefault");
_bmclass.addBinding(this, "model_login_more.UseDefault", _btemp);
_barray[12] = _btemp;
_fleet_watcherSetup(_barray);
}

function _fleet_bindingExprs():Void
{
var bexpr0; panel_login.title = (def_lang.LoginDialog.Title);
var bexpr1; _FormItem3.label = (def_lang.LoginDialog.Username);
var bexpr2; _FormItem4.label = (def_lang.LoginDialog.Password);
var bexpr3; f_LoginDialog_server.label = (def_lang.LoginDialog.Server);
var bexpr4; f_LoginDialog_port.label = (def_lang.LoginDialog.Port);
var bexpr5; fi_login_usedefault.label = (def_lang.LoginDialog.UseDefault);
var bexpr6; _Link7.label = (def_lang.LoginDialog.MoreOption);
var bexpr7; btn_login_ok.label = (def_lang.Comm.OK);
var bexpr8; model_login.Username = (fi_login_username.text);
var bexpr9; model_login.Password = (fi_login_password.text);
var bexpr10; model_login_more.Server = (fi_login_server.text);
var bexpr11; model_login_more.Port = (fi_login_port.text);
var bexpr12; model_login_more.UseDefault = (fi_login_usedefault.selected);
}

var _bindings:Array;
var _watchers:Array;

function _fleet_watcherSetup(_barray):Void
{
var _dummy1:mx.binding.PropertyWatcher;
var _dummy2:mx.binding.ArrayElementWatcher;
var _dummy3:mx.binding.FunctionReturnWatcher;
}

function _fleet_watcherSetupBottom(_warray, _barray):Void
{
}



}

// generated version of _watcherSetup
function _fleet_watcherSetup(_barray):Void
{
var _warray = new Array();
_warray[14] = new mx.binding.PropertyWatcher("fi_login_password", null);
_warray[15] = new mx.binding.PropertyWatcher("text", {valueCommitted : true, enter : true, change : false});
_warray[16] = new mx.binding.PropertyWatcher("fi_login_server", null);
_warray[17] = new mx.binding.PropertyWatcher("text", {valueCommitted : true, enter : true, change : false});
_warray[12] = new mx.binding.PropertyWatcher("fi_login_username", null);
_warray[13] = new mx.binding.PropertyWatcher("text", {valueCommitted : true, enter : true, change : false});
_warray[1] = new mx.binding.PropertyWatcher("def_lang", null);
_warray[2] = new mx.binding.PropertyWatcher("LoginDialog", null);
_warray[5] = new mx.binding.PropertyWatcher("Password", null);
_warray[8] = new mx.binding.PropertyWatcher("UseDefault", null);
_warray[6] = new mx.binding.PropertyWatcher("Server", null);
_warray[3] = new mx.binding.PropertyWatcher("Title", null);
_warray[9] = new mx.binding.PropertyWatcher("MoreOption", null);
_warray[7] = new mx.binding.PropertyWatcher("Port", null);
_warray[4] = new mx.binding.PropertyWatcher("Username", null);
_warray[10] = new mx.binding.PropertyWatcher("Comm", null);
_warray[11] = new mx.binding.PropertyWatcher("OK", null);
_warray[20] = new mx.binding.PropertyWatcher("fi_login_usedefault", null);
_warray[21] = new mx.binding.PropertyWatcher("selected", {click : true, valueCommitted : true});
_warray[18] = new mx.binding.PropertyWatcher("fi_login_port", null);
_warray[19] = new mx.binding.PropertyWatcher("text", {valueCommitted : true, enter : true, change : false});
_fleet_watcherSetup50(_warray, _barray);
}
function _fleet_watcherSetup50(_warray, _barray):Void {
_fleet_watcherSetupBottom(_warray, _barray);
}
function _fleet_watcherSetupBottom(_warray, _barray):Void
{
var _tempWatcher;
_warray[14].addListener(_barray[9]);
_warray[14].updateParent(this);
_warray[15].addListener(_barray[9]);
_warray[14].addChild(_warray[15]);
_warray[16].addListener(_barray[10]);
_warray[16].updateParent(this);
_warray[17].addListener(_barray[10]);
_warray[16].addChild(_warray[17]);
_warray[12].addListener(_barray[8]);
_warray[12].updateParent(this);
_warray[13].addListener(_barray[8]);
_warray[12].addChild(_warray[13]);
_tempWatcher = _warray[1];
_tempWatcher.addListener(_barray[2]);
_tempWatcher.addListener(_barray[4]);
_tempWatcher.addListener(_barray[6]);
_tempWatcher.addListener(_barray[1]);
_tempWatcher.addListener(_barray[3]);
_tempWatcher.addListener(_barray[7]);
_tempWatcher.addListener(_barray[5]);
_tempWatcher.addListener(_barray[0]);
_warray[1].updateParent(this);
_tempWatcher = _warray[2];
_tempWatcher.addListener(_barray[2]);
_tempWatcher.addListener(_barray[4]);
_tempWatcher.addListener(_barray[6]);
_tempWatcher.addListener(_barray[1]);
_tempWatcher.addListener(_barray[3]);
_tempWatcher.addListener(_barray[5]);
_tempWatcher.addListener(_barray[0]);
_warray[1].addChild(_warray[2]);
_warray[5].addListener(_barray[2]);
_warray[2].addChild(_warray[5]);
_warray[8].addListener(_barray[5]);
_warray[2].addChild(_warray[8]);
_warray[6].addListener(_barray[3]);
_warray[2].addChild(_warray[6]);
_warray[3].addListener(_barray[0]);
_warray[2].addChild(_warray[3]);
_warray[9].addListener(_barray[6]);
_warray[2].addChild(_warray[9]);
_warray[7].addListener(_barray[4]);
_warray[2].addChild(_warray[7]);
_warray[4].addListener(_barray[1]);
_warray[2].addChild(_warray[4]);
_warray[10].addListener(_barray[7]);
_warray[1].addChild(_warray[10]);
_warray[11].addListener(_barray[7]);
_warray[10].addChild(_warray[11]);
_warray[20].addListener(_barray[12]);
_warray[20].updateParent(this);
_warray[21].addListener(_barray[12]);
_warray[20].addChild(_warray[21]);
_warray[18].addListener(_barray[11]);
_warray[18].updateParent(this);
_warray[19].addListener(_barray[11]);
_warray[18].addChild(_warray[19]);
_barray[8].uiComponentWatcher = 12;
_barray[9].uiComponentWatcher = 14;
_barray[10].uiComponentWatcher = 16;
_barray[11].uiComponentWatcher = 18;
_barray[12].uiComponentWatcher = 20;
_barray[0].execute();
_barray[1].execute();
_barray[2].execute();
_barray[3].execute();
_barray[4].execute();
_fleet_watcherSetupBottom50(_warray, _barray);
}
function _fleet_watcherSetupBottom50(_warray, _barray):Void {
var _tempWatcher;
_barray[5].execute();
_barray[6].execute();
_barray[7].execute();
_barray[8].execute();
_barray[9].execute();
_barray[10].execute();
_barray[11].execute();
_barray[12].execute();
_watchers = (_watchers == null) ? _warray : _watchers.concat(_warray);
_bindings = (_bindings == null) ? _barray : _bindings.concat(_barray);
}

// synthetic: Object.registerClass() for fleet
fleet["_documentDescriptor_"] =
new mx.core.UIObjectDescriptor({ type: mx.core.Application, id: "_Application0", events: { initialize: _global.fleet.prototype.___Application0_initialize }, nonInheritingStyles: function() { return {backgroundAlpha: 0.0}; },
_properties: function() { return { preloader: "com.tksoft.preloaders.MacOSX", theme: "/themes/Blue_Crystal.swc", usePreloader: true, creationPolicy: "all", childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.containers.ViewStack, id: "scene_main",
_properties: function() { return { width: "100%", height: "100%", childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.containers.VBox, id: "scene_login", nonInheritingStyles: function() { return {horizontalAlign: "center", verticalAlign: "middle"}; },
_properties: function() { return { width: "100%", height: "100%", childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.containers.TitleWindow, id: "panel_login", nonInheritingStyles: function() { return {horizontalAlign: "center"}; },
_properties: function() { return { closeButton: true, childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.containers.HBox, nonInheritingStyles: function() { return {horizontalAlign: "center", horizontalGap: 0.0, verticalAlign: "top"}; },
_properties: function() { return { childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.controls.Image, effects: [ "creationComplete" ], nonInheritingStyles: function() { return {creationCompleteEffect: "Fade"}; },
_properties: function() { return { creationCompleteEffect: "Fade", source: "__Resources.1153072418.woman_64_png" }; }
}),
new mx.core.UIObjectDescriptor({ type: mx.containers.Form, id: "form_login",
_properties: function() { return { childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.containers.FormItem, id: "_FormItem3",
_properties: function() { return { required: true, childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.controls.TextInput, id: "fi_login_username" })
]};}
}),
new mx.core.UIObjectDescriptor({ type: mx.containers.FormItem, id: "_FormItem4",
_properties: function() { return { childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.controls.TextInput, id: "fi_login_password",
_properties: function() { return { password: true }; }
})
]};}
}),
new mx.core.UIObjectDescriptor({ type: mx.containers.FormItem, id: "f_LoginDialog_server",
_properties: function() { return { height: 0.0, required: true, visible: false, childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.controls.TextInput, id: "fi_login_server" })
]};}
}),
new mx.core.UIObjectDescriptor({ type: mx.containers.FormItem, id: "f_LoginDialog_port",
_properties: function() { return { height: 0.0, required: true, visible: false, childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.controls.TextInput, id: "fi_login_port" })
]};}
}),
new mx.core.UIObjectDescriptor({ type: mx.containers.FormItem, id: "f_LoginDialog_usedefault",
_properties: function() { return { height: 0.0, visible: false, childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.controls.CheckBox, id: "fi_login_usedefault", events: { click: _global.fleet.prototype.__fi_login_usedefault_click },
_properties: function() { return { selected: true }; }
})
]};}
})
]};}
})
]};}
}),
new mx.core.UIObjectDescriptor({ type: mx.containers.ControlBar, nonInheritingStyles: function() { return {horizontalAlign: "right", verticalAlign: "middle"}; },
_properties: function() { return { childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.containers.HBox,
_properties: function() { return { width: "100%", childDescriptors: [
new mx.core.UIObjectDescriptor({ type: mx.controls.Link, id: "_Link7", events: { click: _global.fleet.prototype.___Link7_click } })
]};}
}),
new mx.core.UIObjectDescriptor({ type: mx.controls.Button, id: "btn_login_ok", events: { click: _global.fleet.prototype.__btn_login_ok_click },
_properties: function() { return { width: 100.0 }; }
})
]};}
})
]};}
})
]};}
})
]};}
})
]};}
});

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录