Frame 1
__junk = new mx.data.binding.Binding({component:charSet, property:"dataProvider", event:"dataProvider"}, {component:charXML, property:"results", location:["charData", "record"], event:["result"]}, null, true);
var pro = (new pjam.CmnProject(this));
stop();
Instance of Symbol 717 MovieClip [XMLConnector] "charXML" in Frame 1
//component parameters
onClipEvent (construct) {
URL = "xml/char.xml";
direction = "receive";
ignoreWhite = true;
multipleSimultaneousAllowed = true;
suppressInvalidCalls = false;
}
//component parameters
onClipEvent (initialize) {
__schema = {name:"Object", elements:[{name:"params", type:{name:"XML", validation:{cls:mx.data.types.Xm, className:"mx.data.types.Xm", settings:{ignoreWhite:"true"}}, category:"complex", original:false}}, {name:"results", type:{name:"XML", elements:[{name:"charData", type:{name:"Object", elements:[{name:"record", type:{name:"", elements:[{name:"[n]", type:{name:"Object", elements:[{name:"no", type:{name:"Integer", encoder:{cls:mx.data.encoders.Num, className:"mx.data.encoders.Num"}, validation:{cls:mx.data.types.Int, className:"mx.data.types.Int", settings:{}}, category:"attribute", original:false}}, {name:"charNum", type:{name:"Integer", encoder:{cls:mx.data.encoders.Num, className:"mx.data.encoders.Num"}, validation:{cls:mx.data.types.Int, className:"mx.data.types.Int", settings:{}}, original:false}}, {name:"charName", type:{name:"String", validation:{cls:mx.data.types.Str, className:"mx.data.types.Str", settings:{}}, original:false}}, {name:"lv", type:{name:"Integer", encoder:{cls:mx.data.encoders.Num, className:"mx.data.encoders.Num"}, validation:{cls:mx.data.types.Int, className:"mx.data.types.Int", settings:{}}, original:false}}, {name:"hp", type:{name:"Integer", encoder:{cls:mx.data.encoders.Num, className:"mx.data.encoders.Num"}, validation:{cls:mx.data.types.Int, className:"mx.data.types.Int", settings:{}}, original:false}}, {name:"attack", type:{name:"Integer", encoder:{cls:mx.data.encoders.Num, className:"mx.data.encoders.Num"}, validation:{cls:mx.data.types.Int, className:"mx.data.types.Int", settings:{}}, original:false}}, {name:"magic", type:{name:"Integer", encoder:{cls:mx.data.encoders.Num, className:"mx.data.encoders.Num"}, validation:{cls:mx.data.types.Int, className:"mx.data.types.Int", settings:{}}, original:false}}, {name:"defense", type:{name:"Integer", encoder:{cls:mx.data.encoders.Num, className:"mx.data.encoders.Num"}, validation:{cls:mx.data.types.Int, className:"mx.data.types.Int", settings:{}}, original:false}}, {name:"speed", type:{name:"Integer", encoder:{cls:mx.data.encoders.Num, className:"mx.data.encoders.Num"}, validation:{cls:mx.data.types.Int, className:"mx.data.types.Int", settings:{}}, original:false}}, {name:"luck", type:{name:"Integer", encoder:{cls:mx.data.encoders.Num, className:"mx.data.encoders.Num"}, validation:{cls:mx.data.types.Int, className:"mx.data.types.Int", settings:{}}, original:false}}, {name:"ex", type:{name:"Integer", encoder:{cls:mx.data.encoders.Num, className:"mx.data.encoders.Num"}, validation:{cls:mx.data.types.Int, className:"mx.data.types.Int", settings:{}}, original:false}}, {name:"money", type:{name:"Integer", encoder:{cls:mx.data.encoders.Num, className:"mx.data.encoders.Num"}, validation:{cls:mx.data.types.Int, className:"mx.data.types.Int", settings:{}}, original:false}}, {name:"master", type:{name:"String", validation:{cls:mx.data.types.Str, className:"mx.data.types.Str", settings:{}}, original:false}}, {name:"comment", type:{name:"String", validation:{cls:mx.data.types.Str, className:"mx.data.types.Str", settings:{}}, original:false}}, {name:"url", type:{name:"String", validation:{cls:mx.data.types.Str, className:"mx.data.types.Str", settings:{}}, original:false}}, {name:"plusHp", type:{name:"Integer", encoder:{cls:mx.data.encoders.Num, className:"mx.data.encoders.Num"}, validation:{cls:mx.data.types.Int, className:"mx.data.types.Int", settings:{}}, original:false}}, {name:"plusAttack", type:{name:"Integer", encoder:{cls:mx.data.encoders.Num, className:"mx.data.encoders.Num"}, validation:{cls:mx.data.types.Int, className:"mx.data.types.Int", settings:{}}, original:false}}, {name:"plusMagic", type:{name:"Integer", encoder:{cls:mx.data.encoders.Num, className:"mx.data.encoders.Num"}, validation:{cls:mx.data.types.Int, className:"mx.data.types.Int", settings:{}}, original:false}}, {name:"plusDefense", type:{name:"Integer", encoder:{cls:mx.data.encoders.Num, className:"mx.data.encoders.Num"}, validation:{cls:mx.data.types.Int, className:"mx.data.types.Int", settings:{}}, original:false}}, {name:"various", type:{name:"Integer", encoder:{cls:mx.data.encoders.Num, className:"mx.data.encoders.Num"}, validation:{cls:mx.data.types.Int, className:"mx.data.types.Int", settings:{}}, original:false}}, {name:"downMove", type:{name:"Boolean", encoder:{cls:mx.data.encoders.Bool, className:"mx.data.encoders.Bool", settings:{falseStrings:"no,NO,No,n,F,f,false,False,FALSE", trueStrings:"yes,YES,Yes,y,T,t,true,True,TRUE"}}, validation:{cls:mx.data.types.Bool, className:"mx.data.types.Bool", settings:{}}, original:false}}, {name:"jump", type:{name:"Integer", encoder:{cls:mx.data.encoders.Num, className:"mx.data.encoders.Num"}, validation:{cls:mx.data.types.Int, className:"mx.data.types.Int", settings:{}}, original:false}}, {name:"spMove", type:{name:"Integer", encoder:{cls:mx.data.encoders.Num, className:"mx.data.encoders.Num"}, validation:{cls:mx.data.types.Int, className:"mx.data.types.Int", settings:{}}, original:false}}, {name:"drop", type:{name:"Boolean", encoder:{cls:mx.data.encoders.Bool, className:"mx.data.encoders.Bool", settings:{falseStrings:"no,NO,No,n,F,f,false,False,FALSE", trueStrings:"yes,YES,Yes,y,T,t,true,True,TRUE"}}, validation:{cls:mx.data.types.Bool, className:"mx.data.types.Bool", settings:{}}, original:false}}, {name:"item", type:{name:"String", validation:{cls:mx.data.types.Str, className:"mx.data.types.Str", settings:{}}, original:false}}, {name:"buy", type:{name:"Integer", encoder:{cls:mx.data.encoders.Num, className:"mx.data.encoders.Num"}, validation:{cls:mx.data.types.Int, className:"mx.data.types.Int", settings:{}}, original:false}}, {name:"sell", type:{name:"Integer", encoder:{cls:mx.data.encoders.Num, className:"mx.data.encoders.Num"}, validation:{cls:mx.data.types.Int, className:"mx.data.types.Int", settings:{}}, original:false}}, {name:"id", type:{name:"String", validation:{cls:mx.data.types.Str, className:"mx.data.types.Str", settings:{}}, original:false}}], validation:{cls:mx.data.types.Obj, className:"mx.data.types.Obj", settings:{}}, original:false}}], category:"array", original:false}}], validation:{cls:mx.data.types.Obj, className:"mx.data.types.Obj", settings:{}}, original:false}}], validation:{cls:mx.data.types.Xm, className:"mx.data.types.Xm", settings:{ignoreWhite:"true"}}, original:false}}], validation:{cls:mx.data.types.Obj, className:"mx.data.types.Obj"}, original:false};
}
Instance of Symbol 699 MovieClip [DataSet] "charSet" in Frame 1
//component parameters
onClipEvent (construct) {
itemClassName = "";
logChanges = true;
readOnly = false;
}
//component parameters
onClipEvent (initialize) {
__schema = {name:"Object", elements:[{name:"dataProvider", type:{name:"DataProvider", validation:{cls:mx.data.types.DataProvider, className:"mx.data.types.DataProvider", settings:{}}, category:"array"}}, {name:"deltaPacket", type:{name:"DeltaPacket", validation:{cls:mx.data.types.Obj, className:"mx.data.types.Obj"}, category:"complex"}}, {name:"items", type:{name:"Array", category:"array"}}, {name:"selectedIndex", type:{name:"Number", validation:{cls:mx.data.types.Num, className:"mx.data.types.Num", settings:{}}}}], validation:{cls:mx.data.types.Obj, className:"mx.data.types.Obj"}, original:false};
}
Symbol 48 MovieClip [fontTopMC] Frame 1
stop();
Symbol 84 MovieClip [fontBtmMC] Frame 1
stop();
Symbol 103 MovieClip [damageMC] Frame 1
stop();
Symbol 112 MovieClip [jumpMC] Frame 1
stop();
Symbol 119 MovieClip Frame 6
stop();
Symbol 124 MovieClip [defenseMC] Frame 1
stop();
Symbol 135 MovieClip [powerMC] Frame 1
stop();
Symbol 216 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 8
stop();
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 5
stop();
Symbol 227 MovieClip Frame 1
stop();
Symbol 274 MovieClip [shopMC] Frame 1
stop();
Symbol 317 MovieClip Frame 1
stop();
Symbol 348 MovieClip [registMC] Frame 1
stop();
Symbol 352 MovieClip [deleteMC] Frame 1
stop();
Symbol 380 MovieClip [itemMC] Frame 1
stop();
Symbol 407 MovieClip Frame 1
stop();
Symbol 422 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 1
stop();
Symbol 440 MovieClip Frame 1
stop();
Symbol 440 MovieClip Frame 13
stop();
Symbol 441 MovieClip Frame 20
stop();
Symbol 443 MovieClip Frame 5
stop();
Symbol 446 MovieClip Frame 1
stop();
Symbol 448 MovieClip Frame 1
stop();
Symbol 452 MovieClip Frame 5
stop();
Symbol 488 MovieClip Frame 1
stop();
Symbol 489 MovieClip [fightMC] Frame 1
stop();
Symbol 509 MovieClip [dropMoneyMC] Frame 1
stop();
Symbol 513 MovieClip [DataBindingClasses] Frame 1
#initclip 148
Object.registerClass("DataBindingClasses", mx.data.components.DataBinding);
#endinitclip
stop();
Symbol 549 MovieClip [Defaults] Frame 1
#initclip 149
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 550 MovieClip [UIObjectExtensions] Frame 1
#initclip 150
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 551 MovieClip [UIObject] Frame 1
#initclip 151
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 554 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 555 MovieClip Frame 1
#initclip 152
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 556 MovieClip [FocusRect] Frame 1
#initclip 153
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 557 MovieClip [FocusManager] Frame 1
#initclip 154
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 558 MovieClip [UIComponentExtensions] Frame 1
#initclip 155
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 559 MovieClip [UIComponent] Frame 1
#initclip 156
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 561 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 563 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 566 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 568 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 571 MovieClip [SimpleButton] Frame 1
#initclip 157
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 574 MovieClip [Border] Frame 1
#initclip 158
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 575 MovieClip [RectBorder] Frame 1
#initclip 159
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 576 MovieClip [TextInput] Frame 1
#initclip 160
Object.registerClass("TextInput", mx.controls.TextInput);
#endinitclip
stop();
Symbol 577 MovieClip [ComboBase] Frame 1
#initclip 161
mx.controls.listclasses.DataSelector.Initialize(Object(mx.controls.ComboBase).prototype);
Object.registerClass("ComboBase", mx.controls.ComboBase);
#endinitclip
stop();
Instance of Symbol 571 MovieClip [SimpleButton] in Symbol 577 MovieClip [ComboBase] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 576 MovieClip [TextInput] in Symbol 577 MovieClip [ComboBase] Frame 2
//component parameters
onClipEvent (initialize) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "null";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 578 MovieClip [DataProvider] Frame 1
#initclip 162
Object.registerClass("DataProvider", mx.controls.listclasses.DataProvider);
#endinitclip
stop();
Symbol 579 MovieClip [DataSelector] Frame 1
#initclip 163
Object.registerClass("DataSelector", mx.controls.listclasses.DataSelector);
#endinitclip
stop();
Symbol 580 MovieClip [SelectableRow] Frame 1
#initclip 164
Object.registerClass("SelectableRow", mx.controls.listclasses.SelectableRow);
#endinitclip
stop();
Symbol 581 MovieClip [ButtonSkin] Frame 1
#initclip 165
Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin);
#endinitclip
Symbol 582 MovieClip [Button] Frame 1
#initclip 166
Object.registerClass("Button", mx.controls.Button);
#endinitclip
stop();
Instance of Symbol 571 MovieClip [SimpleButton] in Symbol 582 MovieClip [Button] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 583 MovieClip [CustomBorder] Frame 1
#initclip 167
Object.registerClass("CustomBorder", mx.skins.CustomBorder);
mx.skins.SkinElement.registerElement("CustomBorder", mx.skins.CustomBorder);
#endinitclip
Symbol 595 MovieClip [ScrollThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 597 MovieClip [ScrollThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 608 MovieClip [ThumbThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 610 MovieClip [ThumbThemeColor3] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 617 MovieClip [ThumbThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 638 MovieClip [BtnDownArrow] Frame 1
#initclip 168
Object.registerClass("BtnDownArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 639 MovieClip [BtnUpArrow] Frame 1
#initclip 169
Object.registerClass("BtnUpArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 641 MovieClip [HScrollBar] Frame 1
#initclip 170
Object.registerClass("HScrollBar", mx.controls.HScrollBar);
#endinitclip
stop();
Instance of Symbol 582 MovieClip [Button] in Symbol 641 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 571 MovieClip [SimpleButton] in Symbol 641 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 642 MovieClip [VScrollBar] Frame 1
#initclip 171
Object.registerClass("VScrollBar", mx.controls.VScrollBar);
#endinitclip
stop();
Instance of Symbol 582 MovieClip [Button] in Symbol 642 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 571 MovieClip [SimpleButton] in Symbol 642 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 643 MovieClip [View] Frame 1
#initclip 172
Object.registerClass("View", mx.core.View);
#endinitclip
stop();
Symbol 644 MovieClip [ScrollView] Frame 1
#initclip 173
Object.registerClass("ScrollView", mx.core.ScrollView);
#endinitclip
stop();
Instance of Symbol 641 MovieClip [HScrollBar] in Symbol 644 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 642 MovieClip [VScrollBar] in Symbol 644 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 645 MovieClip [ScrollSelectList] Frame 1
#initclip 174
Object.registerClass("ScrollSelectList", mx.controls.listclasses.ScrollSelectList);
#endinitclip
stop();
Symbol 646 MovieClip [List] Frame 1
#initclip 175
Object.registerClass("List", mx.controls.List);
#endinitclip
stop();
Symbol 652 MovieClip [ComboDownArrowDisabled] Frame 1
#initclip 176
Object.registerClass("ComboDownArrowDisabled", mx.controls.SimpleButton);
#endinitclip
Symbol 654 MovieClip [ComboThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 657 MovieClip [ComboAssets] Frame 1
#initclip 177
mx.controls.ComboBox.prototype.downArrowUpName = "ComboDownArrowUp";
mx.controls.ComboBox.prototype.downArrowDownName = "ComboDownArrowDown";
mx.controls.ComboBox.prototype.downArrowOverName = "ComboDownArrowOver";
mx.controls.ComboBox.prototype.downArrowDisabledName = "ComboDownArrowDisabled";
mx.controls.ComboBox.prototype.wrapDownArrowButton = false;
mx.controls.ComboBox.prototype.dropDownBorderStyle = "solid";
mx.controls.ComboBox.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, {bl:0, tl:0, tr:5, br:5}, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
#endinitclip
Symbol 658 MovieClip [ComboBox] Frame 1
#initclip 178
Object.registerClass("ComboBox", mx.controls.ComboBox);
#endinitclip
stop();
Instance of Symbol 646 MovieClip [List] in Symbol 658 MovieClip [ComboBox] Frame 2
//component parameters
onClipEvent (initialize) {
multipleSelection = false;
rowHeight = 20;
}
Symbol 699 MovieClip [DataSet] Frame 1
#initclip 179
Object.registerClass("DataSet", mx.data.components.DataSet);
#endinitclip
preview._visible = false;
stop();
Symbol 717 MovieClip [XMLConnector] Frame 1
#initclip 180
Object.registerClass("XMLConnector", mx.data.components.XMLConnector);
#endinitclip
preview._visible = false;
stop();
Symbol 722 MovieClip Frame 7
stop();
Symbol 741 MovieClip Frame 1
stop();
Symbol 762 MovieClip Frame 1
stop();
Symbol 912 MovieClip Frame 1
stop();
Symbol 515 MovieClip [__Packages.mx.data.binding.Binding] Frame 0
class mx.data.binding.Binding
{
var is2way, dest, source, format;
function Binding (source, dest, format, is2way) {
mx.events.EventDispatcher.initialize(this);
var _local5 = this;
_local5.source = source;
_local5.dest = dest;
_local5.format = format;
_local5.is2way = is2way;
registerBinding(this);
calcShortLoc(source);
calcShortLoc(dest);
_global.__dataLogger.logData(null, ("Creating binding " + summaryString()) + (is2way ? ", 2-way" : ""), {binding:this});
_global.__dataLogger.nestLevel++;
mx.data.binding.ComponentMixins.initComponent(dest.component);
if (source.component != undefined) {
mx.data.binding.ComponentMixins.initComponent(source.component);
}
dest.component.addBinding(this);
if (source.component != undefined) {
source.component.addBinding(this);
setUpListener(source, false);
if (this.is2way) {
setUpListener(dest, true);
setUpIndexListeners(source, false);
setUpIndexListeners(dest, true);
} else {
setUpIndexListeners(source, false);
setUpIndexListeners(dest, false);
}
} else {
execute();
}
_global.__dataLogger.nestLevel--;
}
function execute(reverse) {
var _local3;
var _local4;
if (reverse) {
if (!is2way) {
_global.__dataLogger.logData(null, ("Warning: Can't execute binding " + summaryString(false)) + " in reverse, because it's not a 2 way binding", {binding:this}, mx.data.binding.Log.BRIEF);
return(["error"]);
}
_local3 = dest;
_local4 = source;
} else {
_local3 = source;
_local4 = dest;
}
_global.__dataLogger.logData(null, "Executing binding " + summaryString(reverse), {binding:this});
_global.__dataLogger.nestLevel++;
var _local10;
if (_local3.constant != undefined) {
_local10 = {value:new mx.data.binding.TypedValue(_local3.constant, "String"), getAnyTypedValue:function () {
return(this.value);
}, getTypedValue:function () {
return(this.value);
}, getGettableTypes:function () {
return(["String"]);
}};
} else {
_local10 = _local3.component.getField(_local3.property, _local3.location, true);
}
var _local18;
var _local20;
var _local12 = "";
var _local8 = _local4.component.getField(_local4.property, _local4.location);
if (format != null) {
var _local5 = getRuntimeObject(format);
if (_local5 != null) {
if (reverse) {
_local5.setupDataAccessor(_local4.component, _local4.property, _local4.location);
_local5.dataAccessor = _local8;
_local8 = _local5;
} else {
_local5.setupDataAccessor(_local3.component, _local3.property, _local3.location);
_local5.dataAccessor = _local10;
_local10 = _local5;
}
}
}
var _local14 = ((format == null) ? (_local8.getSettableTypes()) : null);
var value = _local10.getAnyTypedValue(_local14);
var _local9 = new Object();
if (_local8.type.readonly == true) {
_global.__dataLogger.logData(null, "Not executing binding because the destination is read-only", null, mx.data.binding.Log.BRIEF);
var _local6 = new Object();
_local6.type = "invalid";
_local6.property = _local4.property;
_local6.location = _local4.location;
_local6.messages = [{message:"Cannot assign to a read-only data field."}];
_local4.component.dispatchEvent(_local6);
_local9.event = _local6;
} else {
_global.__dataLogger.logData(null, "Assigning new value '<value>' (<typeName>) " + _local12, {value:value.value, typeName:value.typeName, unformattedValue:_local18, formatterFrom:_local20});
var _local13 = _local8.setAnyTypedValue(value);
_local8.validateAndNotify(_local9, false, _local13);
_local4.component.dispatchEvent({type:"bindingExecuted", binding:this});
}
if (_local9.event != null) {
if (_local3.component != null) {
var _local7 = new Object();
_local7.type = _local9.event.type;
_local7.property = _local3.property;
_local7.location = _local3.location;
_local7.messages = _local9.event.messages;
_local7.to = _local4.component;
_local3.component.dispatchEvent(_local7);
}
}
_global.__dataLogger.nestLevel--;
return(_local9.event.messages);
}
function queueForExecute(reverse) {
if (!queued) {
if (_global.__databind_executeQueue == null) {
_global.__databind_executeQueue = new Array();
}
if (_root.__databind_dispatch == undefined) {
_root.createEmptyMovieClip("__databind_dispatch", -8888);
}
_global.__databind_executeQueue.push(this);
queued = true;
this.reverse = reverse;
_root.__databind_dispatch.onEnterFrame = dispatchEnterFrame;
}
}
static function dispatchEnterFrame() {
_root.__databind_dispatch.onEnterFrame = null;
var _local4 = 0;
while (_local4 < _global.__databind_executeQueue.length) {
var _local3 = _global.__databind_executeQueue[_local4];
_local3.execute(_local3.reverse);
_local4++;
}
var _local5;
while (_local5 = _global.__databind_executeQueue.pop() , _local5 != null) {
_local5.queued = false;
_local5.reverse = false;
}
}
function calcShortLoc(endpoint) {
var _local1 = endpoint.location;
if (_local1.path != null) {
_local1 = _local1.path;
}
endpoint.loc = ((_local1 instanceof Array) ? (_local1.join(".")) : (_local1));
}
function summaryString(reverse) {
var _local2 = "<binding.dest.component>:<binding.dest.property>:<binding.dest.loc>";
var _local3 = "<binding.source.component>:<binding.source.property>:<binding.source.loc>";
if (source.constant == null) {
if (reverse == true) {
return((("from " + _local2) + " to ") + _local3);
}
return((("from " + _local3) + " to ") + _local2);
}
return("from constant '<binding.source.constant>' to " + _local2);
}
static function getRuntimeObject(info, constructorParameter) {
if (info.cls == undefined) {
info.cls = mx.utils.ClassFinder.findClass(info.className);
}
var _local3 = new info.cls(constructorParameter);
if (_local3 == null) {
_global.__dataLogger.logData(null, "Could not construct a formatter or validator - new <info.className>(<params>)", {info:info, params:constructorParameter}, mx.data.binding.Log.BRIEF);
}
for (var _local4 in info.settings) {
_local3[_local4] = info.settings[_local4];
}
return(_local3);
}
static function refreshFromSources(component, property, bindings) {
var _local5 = null;
var _local3;
_local3 = 0;
while (_local3 < bindings.length) {
var _local1 = bindings[_local3];
var _local2 = null;
if ((_local1.dest.component == component) && ((property == null) || (property == _local1.dest.property))) {
_local2 = _local1.execute();
} else if ((_local1.is2way && (_local1.source.component == component)) && ((property == null) || (property == _local1.source.property))) {
_local2 = _local1.execute(true);
}
if (_local2 != null) {
_local5 = ((_local5 == null) ? (_local2) : (_local5.concat(_local2)));
}
_local3++;
}
return(_local5);
}
static function refreshDestinations(component, bindings) {
var _local1;
_local1 = 0;
while (_local1 < bindings.length) {
var _local2 = bindings[_local1];
if (_local2.source.component == component) {
_local2.execute();
} else if (_local2.is2way && (_local2.dest.component == component)) {
_local2.execute(true);
}
_local1++;
}
_local1 = 0;
while (_local1 < component.__indexBindings.length) {
var _local3 = component.__indexBindings[_local1];
_local3.binding.execute(_local3.reverse);
_local1++;
}
}
static function okToCallGetterFromSetter() {
function setter(val) {
this.value2 = this.value;
}
function getter() {
return(5);
}
var _local2 = new Object();
_local2.addProperty("value", getter, setter);
_local2.value = 0;
var _local3 = _local2.value2 == _local2.value;
return(_local3);
}
function setUpListener(endpoint, reverse) {
var _local4 = new Object();
_local4.binding = this;
_local4.property = endpoint.property;
_local4.reverse = reverse;
_local4.immediate = okToCallGetterFromSetter();
_local4.handleEvent = function (event) {
_global.__dataLogger.logData(event.target, "Data of property '<property>' has changed. <immediate>.", this);
if (this.immediate) {
if (this.binding.executing != true) {
this.binding.executing = true;
this.binding.execute(this.reverse);
this.binding.executing = false;
}
} else {
this.binding.queueForExecute(this.reverse);
}
};
if (endpoint.event instanceof Array) {
for (var _local5 in endpoint.event) {
endpoint.component.__addHighPrioEventListener(endpoint.event[_local5], _local4);
}
} else {
endpoint.component.__addHighPrioEventListener(endpoint.event, _local4);
}
mx.data.binding.ComponentMixins.initComponent(endpoint.component);
}
function setUpIndexListeners(endpoint, reverse) {
if (endpoint.location.indices != undefined) {
var _local3 = 0;
while (_local3 < endpoint.location.indices.length) {
var _local2 = endpoint.location.indices[_local3];
if (_local2.component != undefined) {
setUpListener(_local2, reverse);
if (_local2.component.__indexBindings == undefined) {
_local2.component.__indexBindings = new Array();
}
_local2.component.__indexBindings.push({binding:this, reverse:reverse});
}
_local3++;
}
}
}
static function copyBinding(b) {
var _local1 = new Object();
_local1.source = copyEndPoint(b.source);
_local1.dest = copyEndPoint(b.dest);
_local1.format = b.format;
_local1.is2way = b.is2way;
return(_local1);
}
static function copyEndPoint(e) {
var _local1 = new Object();
_local1.constant = e.constant;
_local1.component = String(e.component);
_local1.event = e.event;
_local1.location = e.location;
_local1.property = e.property;
return(_local1);
}
static function registerScreen(screen, id) {
var symbol = screenRegistry[id];
if (symbol == null) {
screenRegistry[id] = {symbolPath:String(screen), bindings:[], id:id};
return(undefined);
}
if (symbol.symbolPath == String(screen)) {
return(undefined);
}
var instancePath = String(screen);
var i = 0;
while (i < bindingRegistry.length) {
var b = bindingRegistry[i];
var src = copyEndPoint(b.source);
var dst = copyEndPoint(b.dest);
var prefix = (symbol.symbolPath + ".");
var symbolContainsSource = (prefix == b.source.component.substr(0, prefix.length));
var symbolContainsDest = (prefix == b.dest.component.substr(0, prefix.length));
if (symbolContainsSource) {
if (symbolContainsDest) {
src.component = eval (instancePath + src.component.substr(symbol.symbolPath.length));
dst.component = eval (instancePath + dst.component.substr(symbol.symbolPath.length));
new mx.data.binding.Binding(src, dst, b.format, b.is2way);
} else {
src.component = eval (instancePath + src.component.substr(symbol.symbolPath.length));
dst.component = eval (dst.component);
new mx.data.binding.Binding(src, dst, b.format, b.is2way);
}
} else if (symbolContainsDest) {
src.component = eval (src.component);
dst.component = eval (instancePath + dst.component.substr(symbol.symbolPath.length));
new mx.data.binding.Binding(src, dst, b.format, b.is2way);
}
i++;
}
}
static function registerBinding(binding) {
var _local1 = copyBinding(binding);
bindingRegistry.push(_local1);
}
static function getLocalRoot(clip) {
var _local2;
var _local3 = clip._url;
while (clip != null) {
if (clip._url != _local3) {
break;
}
_local2 = clip;
clip = clip._parent;
}
return(_local2);
}
var queued = false;
var reverse = false;
static var counter = 0;
static var screenRegistry = new Object();
static var bindingRegistry = new Array();
}
Symbol 514 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 518 MovieClip [__Packages.mx.data.binding.ComponentMixins] Frame 0
class mx.data.binding.ComponentMixins
{
var __refreshing, __bindings, __schema, __fieldCache, _eventDispatcher;
function ComponentMixins () {
}
function refreshFromSources() {
if (__refreshing != null) {
return(undefined);
}
__refreshing = true;
_global.__dataLogger.logData(this, "Refreshing from sources");
_global.__dataLogger.nestLevel++;
mx.data.binding.Binding.refreshFromSources(this, null, __bindings);
_global.__dataLogger.nestLevel--;
__refreshing = null;
}
function refreshDestinations() {
_global.__dataLogger.logData(this, "Refreshing Destinations");
_global.__dataLogger.nestLevel++;
mx.data.binding.Binding.refreshDestinations(this, __bindings);
_global.__dataLogger.nestLevel--;
}
function validateProperty(property, initialMessages) {
var _local4 = null;
var _local3 = getField(property);
if (_local3 != null) {
_local4 = _local3.validateAndNotify(null, null, initialMessages);
} else {
_global.__dataLogger.logData(this, "Can't validate property '<property>' because it doesn't exist", {property:property});
}
return(_local4);
}
function addBinding(binding) {
if (__bindings == undefined) {
__bindings = new Array();
}
__bindings.push(binding);
var _local3 = false;
if (binding.source.component == this) {
getField(binding.source.property, binding.source.location);
_local3 = true;
}
if (binding.dest.component == this) {
getField(binding.dest.property, binding.dest.location);
_local3 = _local3 | Object(binding).is2way;
}
if (_local3) {
var _local4 = binding.dest.component.findSchema(binding.dest.property, binding.dest.location);
if (_local4.readonly) {
binding.source.component.__setReadOnly(true);
}
}
}
static function initComponent(component) {
var _local2 = mx.data.binding.ComponentMixins.prototype;
if (component.refreshFromSources == undefined) {
component.refreshFromSources = _local2.refreshFromSources;
}
if (component.refreshDestinations == undefined) {
component.refreshDestinations = _local2.refreshDestinations;
}
if (component.validateProperty == undefined) {
component.validateProperty = _local2.validateProperty;
}
if (component.createFieldAccessor == undefined) {
component.createFieldAccessor = _local2.createFieldAccessor;
}
if (component.createField == undefined) {
component.createField = _local2.createField;
}
if (component.addBinding == undefined) {
component.addBinding = _local2.addBinding;
}
if (component.findSchema == undefined) {
component.findSchema = _local2.findSchema;
}
if (component.getField == undefined) {
component.getField = _local2.getField;
}
if (component.refreshAndValidate == undefined) {
component.refreshAndValidate = _local2.refreshAndValidate;
}
if (component.getFieldFromCache == undefined) {
component.getFieldFromCache = _local2.getFieldFromCache;
}
if (component.getBindingMetaData == undefined) {
component.getBindingMetaData = _local2.getBindingMetaData;
}
if (component.__setReadOnly == undefined) {
component.__setReadOnly = _local2.__setReadOnly;
}
if (component.__addHighPrioEventListener == undefined) {
component.__addHighPrioEventListener = _local2.__addHighPrioEventListener;
}
}
function createFieldAccessor(property, location, mustExist) {
return(mx.data.binding.FieldAccessor.createFieldAccessor(this, property, location, mx.data.binding.FieldAccessor.findElementType(__schema, property), mustExist));
}
function findSchema(property, location) {
if (typeof(location) == "string") {
if (mx.data.binding.FieldAccessor.isActionScriptPath(String(location))) {
location = location.split(".");
} else {
return(null);
}
}
var _local5 = mx.data.binding.FieldAccessor.findElementType(__schema, property);
if (location != null) {
if (location.path != null) {
location = location.path;
}
if (!(location instanceof Array)) {
return(null);
}
var _local2 = 0;
while (_local2 < location.length) {
var _local4 = location[_local2];
_local5 = mx.data.binding.FieldAccessor.findElementType(_local5, _local4);
_local2++;
}
}
return(_local5);
}
function createField(property, location) {
var _local3 = findSchema(property, location);
var _local2;
if (_local3.validation != null) {
_local2 = mx.data.binding.Binding.getRuntimeObject(_local3.validation);
} else {
_local2 = new mx.data.binding.DataType();
}
_local2.setupDataAccessor(this, property, location);
return(_local2);
}
static function deepEqual(a, b) {
if (a == b) {
return(true);
}
if (typeof(a) != typeof(b)) {
return(false);
}
if (typeof(a) != "object") {
return(false);
}
var _local3 = new Object();
for (var _local4 in a) {
if (!deepEqual(a[_local4], b[_local4])) {
return(false);
}
_local3[_local4] = 1;
}
for (var _local4 in b) {
if (_local3[_local4] != 1) {
return(false);
}
}
return(true);
}
function getFieldFromCache(property, location) {
for (var _local5 in __fieldCache) {
var _local2 = __fieldCache[_local5];
if ((_local2.property == property) && (deepEqual(_local2.location, location))) {
return(_local2);
}
}
return(null);
}
function getField(property, location) {
var _local2 = getFieldFromCache(property, location);
if (_local2 != null) {
return(_local2);
}
_local2 = createField(property, location);
if (__fieldCache == null) {
__fieldCache = new Array();
}
__fieldCache.push(_local2);
return(_local2);
}
function refreshAndValidate(property) {
_global.__dataLogger.logData(this, "Refreshing and validating " + property);
_global.__dataLogger.nestLevel++;
var _local3 = mx.data.binding.Binding.refreshFromSources(this, property, __bindings);
_local3 = validateProperty(property, _local3);
_global.__dataLogger.nestLevel--;
return(_local3 == null);
}
function getBindingMetaData(name) {
return(this["__" + name]);
}
function __setReadOnly(setting) {
if (Object(this).editable != undefined) {
Object(this).editable = !setting;
}
}
function __addHighPrioEventListener(event, handler) {
var _local3 = ((_eventDispatcher != undefined) ? (_eventDispatcher) : this);
if (_local3.__highPrioEvents == undefined) {
_local3.__highPrioEvents = new Object();
}
var _local4 = "__q_" + event;
if (_local3.__highPrioEvents[_local4] == undefined) {
_local3.__highPrioEvents[_local4] = new Array();
}
_global.ASSetPropFlags(_local3.__highPrioEvents, _local4, 1);
mx.events.EventDispatcher._removeEventListener(_local3.__highPrioEvents[_local4], event, handler);
_local3.__highPrioEvents[_local4].push(handler);
if (_local3._databinding_original_dispatchEvent == undefined) {
_local3._databinding_original_dispatchEvent = _local3.dispatchEvent;
_local3.dispatchEvent = function (eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this.dispatchQueue(this.__highPrioEvents, eventObj);
this._databinding_original_dispatchEvent(eventObj);
};
}
}
}
Symbol 517 MovieClip [__Packages.mx.data.binding.DataAccessor] Frame 0
class mx.data.binding.DataAccessor
{
var dataAccessor, component, property, location, type;
function DataAccessor () {
}
function getAnyTypedValue(suggestedTypes) {
var _local3 = 0;
while (_local3 < suggestedTypes.length) {
var _local5 = getTypedValue(suggestedTypes[_local3]);
if (_local5 != null) {
return(_local5);
}
_local3++;
}
var _local5 = getTypedValue();
_local3 = 0;
while (_local3 < suggestedTypes.length) {
var _local2 = suggestedTypes[_local3];
if (_local2 == "String") {
return(new mx.data.binding.TypedValue(String(_local5.value), _local2));
}
if (_local2 == "Number") {
return(new mx.data.binding.TypedValue(Number(_local5.value), _local2));
}
if (_local2 == "Boolean") {
return(new mx.data.binding.TypedValue(Boolean(_local5.value), _local2));
}
_local3++;
}
return(_local5);
}
function setAnyTypedValue(newValue) {
var _local7 = getSettableTypes();
if ((_local7 == null) || (-1 != findString(newValue.typeName, _local7))) {
return(setTypedValue(newValue));
}
var _local3 = 0;
while (_local3 < _local7.length) {
var _local2 = _local7[_local3];
if (_local2 == "String") {
return(setTypedValue(new mx.data.binding.TypedValue(String(newValue.value), _local2)));
}
if (_local2 == "Number") {
var _local5 = Number(newValue.value);
var _local6 = setTypedValue(new mx.data.binding.TypedValue(_local5, _local2));
if (_local5.toString() == "NaN") {
return([("Failed to convert '" + newValue.value) + "' to a number"]);
}
return(_local6);
}
if (_local2 == "Boolean") {
return(setTypedValue(new mx.data.binding.TypedValue(Boolean(newValue.value), _local2)));
}
_local3++;
}
return(dataAccessor.setTypedValue(newValue));
}
function getTypedValue(requestedType) {
var _local2 = dataAccessor.getTypedValue(requestedType);
return(_local2);
}
function getGettableTypes() {
return(null);
}
function setTypedValue(newValue) {
return(dataAccessor.setTypedValue(newValue));
}
function getSettableTypes() {
return(null);
}
function findLastAccessor() {
return(((dataAccessor == null) ? this : (dataAccessor.findLastAccessor())));
}
function setupDataAccessor(component, property, location) {
this.component = component;
this.property = property;
this.location = location;
type = component.findSchema(property, location);
}
static function findString(str, arr) {
var _local3 = str.toLowerCase();
var _local1 = 0;
while (_local1 < arr.length) {
if (arr[_local1].toLowerCase() == _local3) {
return(_local1);
}
_local1++;
}
return(-1);
}
static function conversionFailed(newValue, target) {
return(((("Failed to convert to " + target) + ": '") + newValue.value) + "'");
}
}
Symbol 516 MovieClip [__Packages.mx.data.binding.TypedValue] Frame 0
class mx.data.binding.TypedValue
{
var value, typeName, type;
function TypedValue (value, typeName, type) {
this.value = value;
this.typeName = typeName;
this.type = type;
}
}
Symbol 528 MovieClip [__Packages.mx.data.binding.DataType] Frame 0
class mx.data.binding.DataType extends mx.data.binding.DataAccessor
{
var errorArray, type, kind, dataAccessor, encoder, formatter, getAnyTypedValue, setAnyTypedValue, component, location, property;
function DataType () {
super();
errorArray = null;
}
function setupDataAccessor(component, property, location) {
super.setupDataAccessor(component, property, location);
type = component.findSchema(property, location);
if (type.kind != undefined) {
kind = mx.data.binding.Binding.getRuntimeObject(type.kind);
} else {
kind = new mx.data.kinds.Data();
}
kind.setupDataAccessor(component, property, location);
dataAccessor = kind;
if (type.encoder != undefined) {
encoder = mx.data.binding.Binding.getRuntimeObject(type.encoder);
encoder.setupDataAccessor(component, property, location);
encoder.dataAccessor = dataAccessor;
dataAccessor = encoder;
}
if (type.formatter != undefined) {
formatter = mx.data.binding.Binding.getRuntimeObject(type.formatter);
formatter.setupDataAccessor(component, property, location);
formatter.dataAccessor = dataAccessor;
}
}
function getAsBoolean() {
var _local2 = getAnyTypedValue(["Boolean"]);
return(_local2.value);
}
function getAsNumber() {
var _local2 = getAnyTypedValue(["Number"]);
return(_local2.value);
}
function getAsString() {
var _local2 = getAnyTypedValue(["String"]);
return(_local2.value);
}
function setAsBoolean(newValue) {
setAnyTypedValue(new mx.data.binding.TypedValue(newValue, "Boolean"));
}
function setAsNumber(newValue) {
setAnyTypedValue(new mx.data.binding.TypedValue(newValue, "Number"));
}
function setAsString(newValue) {
setAnyTypedValue(new mx.data.binding.TypedValue(newValue, "String"));
}
function validationError(errorMessage) {
if (errorArray == null) {
errorArray = new Array();
}
errorArray.push(errorMessage);
}
function validate(value) {
}
function getTypedValue(requestedType) {
var _local2;
if ((requestedType == "String") && (formatter != null)) {
_local2 = formatter.getTypedValue(requestedType);
} else {
_local2 = dataAccessor.getTypedValue(requestedType);
if (_local2.type == null) {
_local2.type = type;
}
if (_local2.typeName == null) {
_local2.typeName = type.name;
}
}
if ((_local2.typeName != requestedType) && (requestedType != null)) {
_local2 = null;
} else if (((!requestedType) && (_local2.typeName == "XML")) && (_local2.type.name == "String")) {
_local2 = null;
}
return(_local2);
}
function getGettableTypes() {
var _local2 = new Array();
var _local3 = gettableTypes();
if (_local3 != null) {
_local2 = _local2.concat(_local3);
}
if (type.name != null) {
_local2 = _local2.concat(type.name);
}
if (formatter != null) {
_local2 = _local2.concat(formatter.getGettableTypes());
}
if (_local2.length == 0) {
return(null);
}
return(_local2);
}
function setTypedValue(newValue) {
if ((newValue.typeName == "String") && (formatter != null)) {
return(formatter.setTypedValue(newValue));
}
var _local3 = dataAccessor.getSettableTypes();
if ((_local3 == null) || (-1 != mx.data.binding.DataAccessor.findString(newValue.typeName, _local3))) {
return(dataAccessor.setTypedValue(newValue));
}
return(["Can't set a value of type " + newValue.typeName]);
}
function getSettableTypes() {
var _local2 = new Array();
var _local3 = settableTypes();
if (_local3 != null) {
_local2 = _local2.concat(_local3);
}
if (type.name != null) {
_local2 = _local2.concat(type.name);
}
if (formatter != null) {
_local2 = _local2.concat(formatter.getSettableTypes());
}
if (_local2.length == 0) {
return(null);
}
return(_local2);
}
function gettableTypes() {
return(dataAccessor.getGettableTypes());
}
function settableTypes() {
return(dataAccessor.getSettableTypes());
}
function validateAndNotify(returnData, noEvent, initialMessages) {
var _local4 = false;
errorArray = null;
for (var _local6 in initialMessages) {
validationError(initialMessages[_local6]);
_local4 = true;
}
var _local7 = getTypedValue();
if ((_local7.value == null) || (_local7.value == "")) {
if (type.required == false) {
_global.__dataLogger.logData(component, "Validation of null value succeeded because field '<property>/<m_location>' is not required", this);
} else {
var _local8 = ((location == null) ? "" : (":" + String(location)));
validationError((("Required item '" + property) + _local8) + "' is missing");
_local4 = true;
}
} else {
validate(_local7.value);
_local4 = true;
}
if (_local4 && (noEvent != true)) {
var _local5 = new Object();
_local5.type = ((errorArray == null) ? "valid" : "invalid");
_local5.property = property;
_local5.location = location;
_local5.messages = errorArray;
component.dispatchEvent(_local5);
returnData.event = _local5;
}
return(errorArray);
}
}
Symbol 526 MovieClip [__Packages.mx.data.kinds.Data] Frame 0
class mx.data.kinds.Data extends mx.data.binding.DataAccessor
{
var component, property, location;
function Data () {
super();
}
function getTypedValue(requestedType) {
var _local5;
var _local2 = getFieldAccessor().getValue();
var _local3 = null;
if (_local2 != null) {
if (_local2 instanceof Array) {
_local3 = "Array";
} else if ((_local2 instanceof XMLNode) || (_local2 instanceof XMLNode)) {
_local3 = "XML";
} else {
var _local4 = typeof(_local2);
_local3 = _local4.charAt(0).toUpperCase() + _local4.slice(1);
}
} else {
_local2 = null;
}
_local5 = new mx.data.binding.TypedValue(_local2, _local3, null);
return(_local5);
}
function getGettableTypes() {
return(null);
}
function setTypedValue(newValue) {
getFieldAccessor().setValue(newValue.value, newValue);
return(null);
}
function getSettableTypes() {
return(null);
}
function getFieldAccessor() {
return(component.createFieldAccessor(property, location, false));
}
}
Symbol 525 MovieClip [__Packages.mx.data.binding.FieldAccessor] Frame 0
class mx.data.binding.FieldAccessor
{
var component, property, parentObj, fieldName, m_location, type, index, xpath;
function FieldAccessor (component, property, parentObj, fieldName, type, index, parentField) {
this.component = component;
this.property = property;
this.parentObj = parentObj;
this.fieldName = fieldName;
if (component == parentObj) {
m_location = undefined;
} else if (parentField.m_location == undefined) {
m_location = fieldName;
} else {
m_location = (parentField.m_location + ".") + fieldName;
}
this.type = type;
this.index = index;
}
function getValue() {
var _local2 = getFieldData();
if ((_local2 == null) && (type.value != undefined)) {
var _local3 = new mx.data.binding.TypedValue(type.value, "String");
_local3.getDefault = true;
component.getField(fieldName).setAnyTypedValue(_local3);
_local2 = _local3.value;
}
if ((isXML(_local2) && (_local2.childNodes.length == 1)) && (_local2.firstChild.nodeType == 3)) {
return(_local2.firstChild.nodeValue);
}
return(_local2);
}
function setValue(newValue, newTypedValue) {
if (newTypedValue.getDefault) {
newTypedValue.value = newValue;
} else {
if (xpath != null) {
var _local4 = getFieldData();
if (_local4 != null) {
setXMLData(_local4, newValue);
} else {
_global.__dataLogger.logData(component, "Can't assign to '<property>:<xpath>' because there is no element at the given path", this);
}
} else if (isXML(parentObj)) {
if (type.category == "attribute") {
parentObj.attributes[fieldName] = newValue;
} else if (type.category == "array") {
} else {
var _local4 = getOrCreateFieldData();
setXMLData(_local4, newValue);
}
} else {
if (parentObj == null) {
_global.__dataLogger.logData(component, "Can't set field '<property>/<location>' because the field doesn't exist", this);
}
parentObj[fieldName] = newValue;
}
component.propertyModified(property, (xpath == null) && (parentObj == component), newTypedValue.type);
}
}
static function isActionScriptPath(str) {
var _local2 = str.toLowerCase();
var _local3 = "0123456789abcdefghijklmnopqrstuvwxyz_.";
var _local1 = 0;
while (_local1 < _local2.length) {
if (-1 == _local3.indexOf(_local2.charAt(_local1))) {
return(false);
}
_local1++;
}
return(true);
}
static function createFieldAccessor(component, property, location, type, mustExist) {
if (mustExist && (component[property] == null)) {
_global.__dataLogger.logData(component, "Warning: property '<property>' does not exist", {property:property});
return(null);
}
var _local5 = new mx.data.binding.FieldAccessor(component, property, component, property, type, null, null);
if (location == null) {
return(_local5);
}
var _local7 = null;
if (location.indices != null) {
_local7 = location.indices;
location = location.path;
}
if (typeof(location) == "string") {
if (_local7 != null) {
_global.__dataLogger.logData(component, "Warning: ignoring index values for property '<property>', path '<location>'", {property:property, location:location});
}
if (isActionScriptPath(String(location))) {
location = location.split(".");
} else {
_local5.xpath = location;
return(_local5);
}
}
if (location instanceof Array) {
var _local3;
var _local10 = 0;
_local3 = 0;
while (_local3 < location.length) {
var _local2 = null;
var _local4 = location[_local3];
if (_local4 == "[n]") {
if (_local7 == null) {
_global.__dataLogger.logData(component, "Error: indices for <property>:<location> are null, but [n] appears in the location.", {property:property, location:location});
return(null);
}
_local2 = _local7[_local10++];
if (_local2 == null) {
_global.__dataLogger.logData(component, "Error: not enough index values for <property>:<location>", {property:property, location:location});
return(null);
}
}
_local5 = _local5.getChild(_local4, _local2, mustExist);
_local3++;
}
if (mustExist && (_local5.getValue() == null)) {
_global.__dataLogger.logData(component, "Warning: field <property>:<m_location> does not exist, or is null", _local5);
}
return(_local5);
}
trace("unrecognized location: " + mx.data.binding.ObjectDumper.toString(location));
return(null);
}
function getFieldAccessor() {
return(this);
}
function getChild(childName, index, mustExist) {
if (childName == ".") {
return(this);
}
var _local2 = getOrCreateFieldData(mustExist);
if (_local2 == null) {
return(null);
}
var _local4 = findElementType(type, childName);
return(new mx.data.binding.FieldAccessor(component, property, _local2, childName, _local4, index, this));
}
function getOrCreateFieldData(mustExist) {
var _local3 = getFieldData();
if (_local3 == null) {
if (mustExist) {
_global.__dataLogger.logData(component, "Warning: field <property>:<m_location> does not exist", this);
} else {
setupComplexField();
_local3 = getFieldData();
}
}
return(_local3);
}
function evaluateSubPath(obj, type) {
var path = type.path;
if (isActionScriptPath(path)) {
var tokens = path.split(".");
var i = 0;
while (i < tokens.length) {
var token = tokens[i];
if (isXML(obj)) {
obj = obj.firstChild;
while (obj != null) {
if (toLocalName(obj.nodeName) == token) {
break;
}
obj = obj.nextSibling;
}
} else {
obj = obj[token];
}
if (obj == null) {
_global.__dataLogger.logData(component, "Warning: path '<path>' evaluates to null, at '<token>' in <t.property>:<t.m_location>", {path:path, token:token, t:this});
break;
}
i++;
}
} else if (isXML(obj)) {
if (path.charAt(0) != "/") {
path = "/" + path;
}
if (obj.nodeName == null) {
obj = obj.firstChild;
} else {
path = toLocalName(obj.nodeName) + path;
}
var category = ((type.category != null) ? (type.category) : (((type.elements.length > 0) ? "complex" : "simple")));
if ((category == "simple") || (category == "attribute")) {
obj = eval ("obj" + mx.xpath.XPathAPI.getEvalString(obj, path));
} else if (category == "complex") {
obj = mx.xpath.XPathAPI.selectSingleNode(obj, path);
} else if (category == "array") {
obj = mx.xpath.XPathAPI.selectNodeList(obj, path);
}
} else {
_global.__dataLogger.logData(component, "Error: path '<path>' is an XPath. It cannot be applied to non-XML data <t.property>:<t.m_location>", {path:path, t:this});
}
return(obj);
}
function getFieldData() {
if (xpath != null) {
var _local4 = parentObj[fieldName].firstChild;
while ((_local4 != null) && (_local4.nodeType != 1)) {
_local4 = _local4.nextSibling;
}
var _local10 = mx.xpath.XPathAPI.selectSingleNode(_local4, xpath);
return(_local10);
}
if (isXML(parentObj)) {
if (type.path != null) {
return(evaluateSubPath(parentObj, type));
}
if (type.category == "attribute") {
var _local5 = parentObj.attributes;
for (var _local8 in _local5) {
if (toLocalName(_local8) == fieldName) {
return(_local5[_local8]);
}
}
return(undefined);
}
var _local3 = parentObj.firstChild;
if (type.category == "array") {
var _local6 = new Array();
while (_local3 != null) {
if (toLocalName(_local3.nodeName) == fieldName) {
_local6.push(_local3);
}
_local3 = _local3.nextSibling;
}
return(_local6);
}
while (_local3 != null) {
if (toLocalName(_local3.nodeName) == fieldName) {
return(_local3);
}
_local3 = _local3.nextSibling;
}
return(null);
}
if (fieldName == "[n]") {
var _local7;
if (index.component != null) {
var _local9 = index.component.getField(index.property, index.location);
_local7 = _local9.getAnyTypedValue(["Number"]);
_local7 = _local7.value;
} else {
_local7 = index.constant;
}
var index = Number(_local7);
if (typeof(_local7) == "undefined") {
_global.__dataLogger.logData(component, "Error: index specification '<index>' was not supplied, or incorrect, for <t.property>:<t.m_location>", {index:index, t:this});
return(null);
}
if (index.toString() == "NaN") {
_global.__dataLogger.logData(component, "Error: index value '<index>' for <t.property>:<t.m_location> is not a number", {index:index, t:this});
return(null);
}
if (!(parentObj instanceof Array)) {
_global.__dataLogger.logData(component, "Error: indexed field <property>:<m_location> is not an array", this);
return(null);
}
if ((index < 0) || (index >= parentObj.length)) {
_global.__dataLogger.logData(component, "Error: index '<index>' for <t.property>:<t.m_location> is out of bounds", {index:index, t:this});
return(null);
}
_global.__dataLogger.logData(component, "Accessing item [<index>] of <t.property>:<t.m_location>", {index:index, t:this});
return(parentObj[index]);
}
if (type.path != null) {
return(evaluateSubPath(parentObj, type));
}
return(parentObj[fieldName]);
}
static function setXMLData(obj, newValue) {
while (obj.hasChildNodes()) {
obj.firstChild.removeNode();
}
var _local2 = xmlNodeFactory.createTextNode(newValue);
obj.appendChild(_local2);
}
function setupComplexField() {
var _local2;
if (isXML(parentObj)) {
_local2 = xmlNodeFactory.createElement(fieldName);
parentObj.appendChild(_local2);
} else if (dataIsXML()) {
parentObj[fieldName] = new XML();
} else {
parentObj[fieldName] = new Object();
}
}
static function findElementType(type, name) {
var _local1 = 0;
while (_local1 < type.elements.length) {
if (type.elements[_local1].name == name) {
return(type.elements[_local1].type);
}
_local1++;
}
return(null);
}
function isXML(obj) {
return(obj instanceof XMLNode);
}
function dataIsXML() {
return(type.name == "XML");
}
static function accessField(component, fieldName, desiredTypes) {
var _local1;
_local1 = desiredTypes[fieldName];
if (_local1 == null) {
_local1 = desiredTypes.dflt;
}
if (_local1 == null) {
_local1 = desiredTypes;
}
var _local4 = component.createField("data", [fieldName]);
var _local2 = _local4.getAnyTypedValue([_local1]);
return(_local2.value);
}
static function ExpandRecord(obj, objectType, desiredTypes) {
var _local4 = new Object();
mx.data.binding.ComponentMixins.initComponent(_local4);
_local4.data = obj;
_local4.__schema = {elements:[{name:"data", type:objectType}]};
var _local2 = new Object();
if (objectType.elements.length > 0) {
var _local3 = 0;
while (_local3 < objectType.elements.length) {
var _local10 = objectType.elements[_local3].name;
_local2[_local10] = accessField(_local4, _local10, desiredTypes);
_local3++;
}
} else if ((obj instanceof XML) || (obj instanceof XMLNode)) {
if ((obj.childNodes.length == 1) && (obj.firstChild.nodeType == 3)) {
return(obj.firstChild.nodeValue);
}
var _local5 = obj.lastChild;
while (_local5 != null) {
var _local10 = toLocalName(_local5.nodeName);
if ((_local10 != null) && (_local2[_local10] == null)) {
_local2[_local10] = accessField(_local4, _local10, desiredTypes);
}
_local5 = _local5.previousSibling;
}
for (var _local10 in obj.attributes) {
if (_local2[_local10] != null) {
_global.__dataLogger.logData(null, "Warning: attribute '<name>' has same name as an element, in XML object <obj>", {name:_local10, obj:obj});
}
_local2[_local10] = accessField(_local4, _local10, desiredTypes);
}
} else {
if (typeof(obj) != "object") {
return(obj);
}
for (var _local10 in obj) {
_local2[_local10] = accessField(_local4, _local10, desiredTypes);
}
}
return(_local2);
}
static function wrapArray(theArray, itemType, desiredTypes) {
var _local4 = {getItemAt:function (index) {
if ((index < 0) || (index >= this.data.length)) {
return(undefined);
}
var _local2 = this.data[index];
if (_local2 == undefined) {
return(undefined);
}
var _local3 = mx.data.binding.FieldAccessor.ExpandRecord(_local2, this.type, desiredTypes);
return(_local3);
}, getItemID:function (index) {
return(index);
}, data:theArray, type:itemType, length:theArray.length};
return(_local4);
}
static function toLocalName(nodeName) {
var _local1 = nodeName.split(":");
var _local2 = _local1[_local1.length - 1];
return(_local2);
}
static var xmlNodeFactory = new XML();
}
Symbol 519 MovieClip [__Packages.mx.data.binding.ObjectDumper] Frame 0
class mx.data.binding.ObjectDumper
{
var inProgress;
function ObjectDumper () {
inProgress = new Array();
}
static function toString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent) {
var _local3 = new mx.data.binding.ObjectDumper();
if (maxLineLength == undefined) {
maxLineLength = 100;
}
if (indent == undefined) {
indent = 0;
}
return(_local3.realToString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent));
}
function realToString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent) {
var _local8 = 0;
while (_local8 < inProgress.length) {
if (inProgress[_local8] == obj) {
return("***");
}
_local8++;
}
inProgress.push(obj);
indent++;
var _local16 = typeof(obj);
var _local5;
if ((obj instanceof XMLNode) && (showXMLstructures != true)) {
_local5 = obj.toString();
} else if (obj instanceof Date) {
_local5 = obj.toString();
} else if (_local16 == "object") {
var _local4 = new Array();
if (obj instanceof Array) {
_local5 = "[";
var _local15 = 0;
while (_local15 < obj.length) {
_local4.push(_local15);
_local15++;
}
} else {
_local5 = "{";
for (var _local15 in obj) {
_local4.push(_local15);
}
_local4.sort();
}
var _local9 = "";
var _local3 = 0;
while (_local3 < _local4.length) {
var _local6 = obj[_local4[_local3]];
var _local7 = true;
if (typeof(_local6) == "function") {
_local7 = showFunctions == true;
}
if (typeof(_local6) == "undefined") {
_local7 = showUndefined == true;
}
if (_local7) {
_local5 = _local5 + _local9;
if (!(obj instanceof Array)) {
_local5 = _local5 + (_local4[_local3] + ": ");
}
_local5 = _local5 + realToString(_local6, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent);
_local9 = ", `";
}
_local3++;
}
if (obj instanceof Array) {
_local5 = _local5 + "]";
} else {
_local5 = _local5 + "}";
}
} else if (_local16 == "function") {
_local5 = "function";
} else if (_local16 == "string") {
_local5 = ("\"" + obj) + "\"";
} else {
_local5 = String(obj);
}
if (_local5 == "undefined") {
_local5 = "-";
}
inProgress.pop();
return(replaceAll(_local5, "`", ((_local5.length < maxLineLength) ? "" : (newline + doIndent(indent)))));
}
static function replaceAll(str, from, to) {
var _local3 = str.split(from);
var _local4 = "";
var _local2 = "";
var _local1 = 0;
while (_local1 < _local3.length) {
_local4 = _local4 + (_local2 + _local3[_local1]);
_local2 = to;
_local1++;
}
return(_local4);
}
function doIndent(indent) {
var _local2 = "";
var _local1 = 0;
while (_local1 < indent) {
_local2 = _local2 + " ";
_local1++;
}
return(_local2);
}
}
Symbol 524 MovieClip [__Packages.mx.xpath.XPathAPI] Frame 0
class mx.xpath.XPathAPI
{
function XPathAPI () {
}
static function getEvalString(node, path) {
var _local7 = "";
var _local4 = null;
var _local9 = getPathSet(path);
var _local3 = _local9[0].nodeName;
var _local8;
var _local2 = node;
var _local5 = false;
if ((_local3 != undefined) && ((_local3 == "*") || (node.nodeName == _local3))) {
var _local6 = 1;
while (_local6 < _local9.length) {
_local3 = _local9[_local6].nodeName;
_local8 = _local3.indexOf("@");
if (_local8 >= 0) {
_local3 = _local3.substring(_local8 + 1);
_local5 = _local2.attributes[_local3] != undefined;
_local7 = _local7 + (".attributes." + _local3);
} else {
_local5 = false;
var _local1 = 0;
while (_local1 < _local2.childNodes.length) {
_local4 = _local2.childNodes[_local1];
if (_local4.nodeName == _local3) {
_local7 = _local7 + (".childNodes." + _local1);
_local1 = _local2.childNodes.length;
_local2 = _local4;
_local5 = true;
}
_local1++;
}
}
if (!_local5) {
return("");
}
_local6++;
}
if (!_local5) {
_local7 = "";
} else if (_local8 == -1) {
_local7 = _local7 + ".firstChild.nodeValue";
}
} else {
_local7 = "";
}
return(_local7);
}
static function selectNodeList(node, path) {
var _local2 = new Array(node);
var _local5 = getPathSet(path);
var _local4 = _local5[0];
var _local6 = _local4.__get__nodeName();
var _local1 = null;
if ((_local6 != undefined) && ((_local6 == "*") || (node.nodeName == _local6))) {
if (_local4.__get__filter().length > 0) {
_local1 = new mx.xpath.FilterStack(_local4.__get__filter());
_local2 = filterNodes(_local2, _local1);
}
if (_local2.length > 0) {
var _local3 = 1;
while (_local3 < _local5.length) {
_local4 = _local5[_local3];
_local2 = getAllChildNodesByName(_local2, _local4.__get__nodeName());
if (_local4.__get__filter().length > 0) {
_local1 = new mx.xpath.FilterStack(_local4.__get__filter());
} else {
_local1 = null;
}
if ((_local1 != null) && (_local1.__get__exprs().length > 0)) {
_local2 = filterNodes(_local2, _local1);
}
_local3++;
}
}
} else {
_local2 = new Array();
}
return(_local2);
}
static function selectSingleNode(node, path) {
var _local1 = selectNodeList(node, path);
if (_local1.length > 0) {
return(_local1[0]);
}
return(null);
}
static function setNodeValue(node, path, newValue) {
var _local1 = new Array(node);
var _local9 = getPathSet(path);
var _local7 = _local9[_local9.length - 1].nodeName;
if (_local7.charAt(0) == "@") {
_local7 = _local7.substring(1, _local7.length);
_local9.pop();
} else {
_local7 = null;
}
var _local5 = _local9[0];
var _local11 = _local5.__get__nodeName();
var _local3 = null;
if ((_local11 != undefined) && ((_local11 == "*") || (node.nodeName == _local11))) {
if (_local5.__get__filter().length > 0) {
_local3 = new mx.xpath.FilterStack(_local5.__get__filter());
_local1 = filterNodes(_local1, _local3);
}
if (_local1.length > 0) {
var _local2 = 1;
while (_local2 < _local9.length) {
_local5 = _local9[_local2];
_local1 = getAllChildNodesByName(_local1, _local5.__get__nodeName());
if (_local5.__get__filter().length > 0) {
_local3 = new mx.xpath.FilterStack(_local5.__get__filter());
} else {
_local3 = null;
}
if ((_local3 != null) && (_local3.__get__exprs().length > 0)) {
_local1 = filterNodes(_local1, _local3);
}
_local2++;
}
}
} else {
_local1 = new Array();
}
var _local4 = null;
var _local6 = null;
var _local10 = new XML();
var _local2 = 0;
while (_local2 < _local1.length) {
if (_local7 != null) {
_local1[_local2].attributes[_local7] = newValue;
} else {
_local4 = _local1[_local2];
if ((_local4.firstChild == null) || (_local4.firstChild.nodeType != 3)) {
_local6 = _local10.createTextNode(newValue);
_local4.appendChild(_local6);
} else {
_local6 = _local4.firstChild;
_local6.nodeValue = newValue;
}
}
_local2++;
}
return(_local1.length);
}
static function copyStack(toStk, fromStk) {
var _local1 = 0;
while (_local1 < fromStk.length) {
toStk.splice(_local1, 0, fromStk[_local1]);
_local1++;
}
}
static function evalExpr(expr, node) {
var _local2 = true;
if (expr.__get__attr()) {
_local2 = ((expr.__get__value() != null) ? (node.attributes[expr.__get__name()] == expr.__get__value()) : (node.attributes[expr.__get__name()] != null));
} else {
var _local3 = getChildNodeByName(node, expr.__get__name());
if (_local3 != null) {
_local2 = ((expr.__get__value() != null) ? (_local3.firstChild.nodeValue == expr.__get__value()) : true);
} else {
_local2 = false;
}
}
return(_local2);
}
static function filterNodes(nodeList, stack) {
var _local13 = new Array();
var _local2;
var _local3;
var _local9;
var _local6;
var _local10;
var _local1 = true;
var _local4;
var _local5;
var _local8 = 0;
while (_local8 < nodeList.length) {
_local5 = true;
_local2 = new Array();
_local3 = new Array();
copyStack(_local2, stack.__get__exprs());
copyStack(_local3, stack.__get__ops());
_local4 = nodeList[_local8];
while ((_local2.length > 0) && (_local5)) {
if (typeof(_local2[_local2.length - 1]) == "object") {
_local9 = mx.xpath.FilterExpr(_local2.pop());
_local1 = evalExpr(_local9, _local4);
} else {
_local10 = Boolean(_local2.pop());
_local1 = _local10;
}
if (_local3.length > 0) {
var _local7 = _local2.pop();
_local6 = _local7;
switch (_local3[_local3.length - 1]) {
case "and" :
_local1 = _local1 && (evalExpr(_local6, _local4));
_local5 = _local1;
break;
case "or" :
_local1 = _local1 || (evalExpr(_local6, _local4));
_local5 = !_local1;
}
_local3.pop();
_local2.push(_local1);
}
}
if (_local1) {
_local13.push(_local4);
}
_local8++;
}
return(_local13);
}
static function getAllChildNodesByName(nodeList, name) {
var _local5 = new Array();
var _local2;
var _local3 = 0;
while (_local3 < nodeList.length) {
_local2 = nodeList[_local3].childNodes;
if (_local2 != null) {
var _local1 = 0;
while (_local1 < _local2.length) {
if ((name == "*") || (_local2[_local1].nodeName == name)) {
_local5.push(_local2[_local1]);
}
_local1++;
}
}
_local3++;
}
return(_local5);
}
static function getChildNodeByName(node, nodeName) {
var _local2;
var _local3 = node.childNodes;
var _local1 = 0;
while (_local1 < _local3.length) {
_local2 = _local3[_local1];
if (_local2.nodeName == nodeName) {
return(_local2);
}
_local1++;
}
return(null);
}
static function getKeyValues(node, keySpec) {
var _local5 = "";
var _local3 = new mx.utils.StringTokenParser(keySpec);
var _local2 = _local3.nextToken();
var _local1;
var _local6;
while (_local2 != mx.utils.StringTokenParser.tkEOF) {
_local1 = _local3.token;
_local5 = _local5 + (" " + _local1);
if (_local2 == mx.utils.StringTokenParser.tkSymbol) {
if (_local1 == "@") {
_local2 = _local3.nextToken();
_local1 = _local3.token;
if (_local2 == mx.utils.StringTokenParser.tkSymbol) {
_local5 = _local5 + (((_local1 + "='") + node.attributes[_local1]) + "'");
}
} else if (_local1 == "/") {
_local2 = _local3.nextToken();
if (_local2 == mx.utils.StringTokenParser.tkSymbol) {
_local1 = _local3.token;
node = getChildNodeByName(node, _local1);
if (node != null) {
_local5 = _local5 + _local1;
}
}
} else if ((((_local1 != "and") && (_local1 != "or")) && (_local1 != "[")) && (_local1 != "]")) {
_local6 = getChildNodeByName(node, _local1);
if (_local6 != null) {
_local5 = _local5 + (("='" + _local6.firstChild.nodeValue) + "'");
}
}
}
if (node == null) {
trace(("Invalid keySpec specified. '" + keySpec) + "' Error.");
return("ERR");
}
_local2 = _local3.nextToken();
}
return(_local5.slice(1));
}
static function getPath(node, keySpecs) {
var _local2 = "";
var _local5 = keySpecs[node.nodeName];
if (_local5 == undefined) {
var _local8 = "";
var _local10;
for (_local10 in node.attributes) {
_local8 = _local8 + (((("@" + _local10) + "='") + node.attributes[_local10]) + "' and ");
}
var _local7 = "";
var _local1;
var _local6;
var _local4 = 0;
while (_local4 < node.childNodes.length) {
_local1 = node.childNodes[_local4];
_local6 = _local1.firstChild.nodeValue;
if (_local6 != undefined) {
_local7 = _local7 + (((_local1.nodeName + "='") + _local6) + "' and ");
}
_local4++;
}
if (_local8.length > 0) {
if (_local7.length > 0) {
_local2 = (((("/" + node.nodeName) + "[") + _local8) + _local7.substring(0, _local7.length - 4)) + "]";
} else {
_local2 = ((("/" + node.nodeName) + "[") + _local8.substring(0, _local8.length - 4)) + "]";
}
} else {
_local2 = ((("/" + node.nodeName) + "[") + _local7.substring(0, _local7.length - 4)) + "]";
}
} else {
_local2 = _local2 + (("/" + node.nodeName) + getKeyValues(node, _local5));
}
var _local1 = node.parentNode;
while (_local1.parentNode != null) {
_local5 = keySpecs[_local1.nodeName];
if (_local5 != undefined) {
_local2 = (("/" + _local1.nodeName) + getKeyValues(_local1, _local5)) + _local2;
} else {
_local2 = ("/" + _local1.nodeName) + _local2;
}
_local1 = _local1.parentNode;
}
return(_local2);
}
static function getPathSet(path) {
var _local6 = new Array();
var _local4;
var _local1;
var _local2;
var _local5;
while (path.length > 0) {
_local4 = path.lastIndexOf("/");
_local1 = path.substring(_local4 + 1);
_local2 = _local1.indexOf("[", 0);
_local5 = ((_local2 >= 0) ? (_local1.substring(_local2 + 1, _local1.length - 1)) : "");
_local1 = ((_local2 >= 0) ? (_local1.substring(0, _local2)) : (_local1));
_local6.splice(0, 0, new mx.xpath.NodePathInfo(_local1, _local5));
path = path.substring(0, _local4);
}
return(_local6);
}
}
Symbol 520 MovieClip [__Packages.mx.xpath.NodePathInfo] Frame 0
class mx.xpath.NodePathInfo
{
function NodePathInfo (nodeName, filter) {
__nodeName = nodeName;
__filter = filter;
}
function get nodeName() {
return(__nodeName);
}
function get filter() {
return(__filter);
}
var __nodeName = null;
var __filter = null;
}
Symbol 523 MovieClip [__Packages.mx.xpath.FilterStack] Frame 0
class mx.xpath.FilterStack
{
var __expr, __ops;
function FilterStack (filterVal) {
__expr = new Array();
__ops = new Array();
var _local2 = new mx.utils.StringTokenParser(filterVal);
var _local5 = _local2.nextToken();
var _local4;
var _local3 = _local2.__get__token();
while (_local5 != mx.utils.StringTokenParser.tkEOF) {
if (_local3 == "@") {
_local5 = _local2.nextToken();
_local3 = _local2.token;
_local4 = new mx.xpath.FilterExpr(true, _local3, null);
__expr.splice(0, 0, _local4);
if (_local2.nextToken() == mx.utils.StringTokenParser.tkSymbol) {
if (_local2.__get__token() == "=") {
_local5 = _local2.nextToken();
_local4.__set__value(_local2.token);
}
}
} else if ((_local3 == "and") || (_local3 == "or")) {
__ops.splice(0, 0, _local3);
} else if ((_local3 != ")") && (_local3 != "(")) {
_local4 = new mx.xpath.FilterExpr(false, _local3, null);
__expr.splice(0, 0, _local4);
if (_local2.nextToken() == mx.utils.StringTokenParser.tkSymbol) {
if (_local2.__get__token() == "=") {
_local5 = _local2.nextToken();
_local4.__set__value(_local2.token);
}
}
}
_local5 = _local2.nextToken();
_local3 = _local2.token;
}
}
function get exprs() {
return(__expr);
}
function get ops() {
return(__ops);
}
}
Symbol 521 MovieClip [__Packages.mx.utils.StringTokenParser] Frame 0
class mx.utils.StringTokenParser
{
var _source, _skipChars;
function StringTokenParser (source, skipChars) {
_source = source;
_skipChars = ((skipChars == undefined) ? null : (skipChars));
}
function get token() {
return(_token);
}
function getPos() {
return(_index);
}
function nextToken() {
var _local4;
var _local2;
var _local3 = _source.length;
skipBlanks();
if (_index >= _local3) {
return(tkEOF);
}
_local2 = _source.charCodeAt(_index);
if (((((_local2 >= 65) && (_local2 <= 90)) || ((_local2 >= 97) && (_local2 <= 122))) || ((_local2 >= 192) && (_local2 <= Number.POSITIVE_INFINITY))) || (_local2 == 95)) {
_local4 = _index;
_index++;
_local2 = _source.charCodeAt(_index);
while (((((((_local2 >= 65) && (_local2 <= 90)) || ((_local2 >= 97) && (_local2 <= 122))) || ((_local2 >= 48) && (_local2 <= 57))) || ((_local2 >= 192) && (_local2 <= Number.POSITIVE_INFINITY))) || (_local2 == 95)) && (_index < _local3)) {
_index++;
_local2 = _source.charCodeAt(_index);
}
_token = _source.substring(_local4, _index);
return(tkSymbol);
}
if ((_local2 == 34) || (_local2 == 39)) {
_index++;
_local4 = _index;
_local2 = _source.charCodeAt(_local4);
while (((_local2 != 34) && (_local2 != 39)) && (_index < _local3)) {
_index++;
_local2 = _source.charCodeAt(_index);
}
_token = _source.substring(_local4, _index);
_index++;
return(tkString);
}
if ((_local2 == 45) || ((_local2 >= 48) && (_local2 <= 57))) {
var _local5 = tkInteger;
_local4 = _index;
_index++;
_local2 = _source.charCodeAt(_index);
while (((_local2 >= 48) && (_local2 <= 57)) && (_index < _local3)) {
_index++;
_local2 = _source.charCodeAt(_index);
}
if (_index < _local3) {
if (((((((_local2 >= 48) && (_local2 <= 57)) || (_local2 == 46)) || (_local2 == 43)) || (_local2 == 45)) || (_local2 == 101)) || (_local2 == 69)) {
_local5 = tkFloat;
}
while ((((((((_local2 >= 48) && (_local2 <= 57)) || (_local2 == 46)) || (_local2 == 43)) || (_local2 == 45)) || (_local2 == 101)) || (_local2 == 69)) && (_index < _local3)) {
_index++;
_local2 = _source.charCodeAt(_index);
}
}
_token = _source.substring(_local4, _index);
return(_local5);
}
_token = _source.charAt(_index);
_index++;
return(tkSymbol);
}
function skipBlanks() {
if (_index < _source.length) {
var _local2 = _source.charAt(_index);
while ((_local2 == " ") || ((_skipChars != null) && (skipChar(_local2)))) {
_index++;
_local2 = _source.charAt(_index);
}
}
}
function skipChar(ch) {
var _local2 = 0;
while (_local2 < _skipChars.length) {
if (ch == _skipChars[_local2]) {
return(true);
}
_local2++;
}
return(false);
}
static var tkEOF = -1;
static var tkSymbol = 0;
static var tkString = 1;
static var tkInteger = 2;
static var tkFloat = 3;
var _index = 0;
var _token = "";
}
Symbol 522 MovieClip [__Packages.mx.xpath.FilterExpr] Frame 0
class mx.xpath.FilterExpr
{
function FilterExpr (attrInit, nameInit, valueInit) {
__attr = attrInit;
__name = nameInit;
__value = valueInit;
}
function get attr() {
return(__attr);
}
function set attr(newVal) {
__attr = newVal;
//return(attr);
}
function get name() {
return(__name);
}
function set name(newVal) {
__name = newVal;
//return(name);
}
function get value() {
return(__value);
}
function set value(newVal) {
__value = newVal;
//return(value);
}
var __attr = false;
var __value = null;
var __name = null;
}
Symbol 527 MovieClip [__Packages.mx.data.binding.Formatter] Frame 0
class mx.data.binding.Formatter extends mx.data.binding.DataAccessor
{
function Formatter () {
super();
}
}
Symbol 529 MovieClip [__Packages.mx.data.binding.EndPoint] Frame 0
class mx.data.binding.EndPoint
{
function EndPoint () {
}
}
Symbol 530 MovieClip [__Packages.mx.data.binding.Log] Frame 0
class mx.data.binding.Log
{
var level, name;
function Log (logLevel, logName) {
level = ((logLevel == undefined) ? (BRIEF) : (logLevel));
name = ((name == undefined) ? "" : (name));
}
function logInfo(msg, level) {
if (level == undefined) {
level = BRIEF;
}
onLog((((getDateString() + " ") + name) + ": ") + mx.data.binding.ObjectDumper.toString(msg));
}
function logData(target, message, info, level) {
if (level == undefined) {
level = VERBOSE;
}
var _local6 = ((name.length > 0) ? ((" " + name) + ": ") : " ");
var _local4 = ((target == null) ? "" : (target + ": "));
if (_local4.indexOf("_level0.") == 0) {
_local4 = _local4.substr(8);
}
var _local3 = ((getDateString() + _local6) + _local4) + substituteIntoString(message, info, 50);
if (showDetails && (info != null)) {
_local3 = _local3 + ("\n " + mx.data.binding.ObjectDumper.toString(info));
} else {
var _local2 = 0;
while (_local2 < nestLevel) {
_local3 = " " + _local3;
_local2++;
}
}
onLog(_local3);
}
function onLog(message) {
trace(message);
}
function getDateString() {
var _local1 = new Date();
return(((((((((_local1.getMonth() + 1) + "/") + _local1.getDate()) + " ") + _local1.getHours()) + ":") + _local1.getMinutes()) + ":") + _local1.getSeconds());
}
static function substituteIntoString(message, info, maxlen, rawDataType) {
var _local9 = "";
if (info == null) {
return(message);
}
var _local11 = message.split("<");
if (_local11 == null) {
return(message);
}
_local9 = _local9 + _local11[0];
var _local7 = 1;
while (_local7 < _local11.length) {
var _local8 = _local11[_local7].split(">");
var _local5 = _local8[0].split(".");
var _local1 = info;
var _local4 = rawDataType;
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2];
if (_local3 != "") {
_local4 = mx.data.binding.FieldAccessor.findElementType(_local4, _local3);
var _local6 = new mx.data.binding.FieldAccessor(null, null, _local1, _local3, _local4, null, null);
_local1 = _local6.getValue();
}
_local2++;
}
if (typeof(_local1) != "string") {
_local1 = mx.data.binding.ObjectDumper.toString(_local1);
}
if (_local1.indexOf("_level0.") == 0) {
_local1 = _local1.substr(8);
}
if ((maxlen != null) && (_local1.length > maxlen)) {
_local1 = _local1.substr(0, maxlen) + "...";
}
_local9 = _local9 + _local1;
_local9 = _local9 + _local8[1];
_local7++;
}
var _local14 = _local9.split(">");
_local9 = _local14.join(">");
_local14 = _local9.split("<");
_local9 = _local14.join("<");
return(_local9);
}
static var NONE = -1;
static var BRIEF = 0;
static var VERBOSE = 1;
static var DEBUG = 2;
static var INFO = 2;
static var WARNING = 1;
static var ERROR = 0;
var showDetails = false;
var nestLevel = 0;
}
Symbol 531 MovieClip [__Packages.mx.utils.ClassFinder] Frame 0
class mx.utils.ClassFinder
{
function ClassFinder () {
}
static function findClass(fullClassName) {
if (fullClassName == null) {
return(null);
}
var _local3 = _global;
var _local4 = fullClassName.split(".");
var _local2 = 0;
while (_local2 < _local4.length) {
_local3 = _local3[_local4[_local2]];
_local2++;
}
if (_local3 == null) {
_global.__dataLogger.logData(null, "Could not find class '<classname>'", {classname:fullClassName}, mx.data.binding.Log.BRIEF);
}
return(_local3);
}
}
Symbol 3617 MovieClip [__Packages.pjam.CmnProject] Frame 0
class pjam.CmnProject
{
var root, pdata, next, status, sound, help, edata;
function CmnProject (root) {
Stage.scaleMode = "noScale";
Stage.showMenu = false;
this.root = root;
pdata = new pjam.PlayerData(root);
next = new pjam.NextStage(root);
status = new pjam.head.Status(root, pdata);
sound = new pjam.head.SoundControl(root);
help = new pjam.head.Help(root, sound);
root.statusMC._visible = false;
root.musicMC._visible = false;
root.rankMC._visible = false;
root.loadMC._visible = false;
root.helpMC._visible = false;
if (pjam.IllegalUserList.checkIllegal(pdata.getID(), pdata.getName()) == true) {
return;
}
if (pdata.checkCode() == false) {
return;
}
var sc = this;
root.onEnterFrame = function () {
delete this.onEnterFrame;
sc.checkFPlayer();
};
}
static function main(ref) {
}
function checkFPlayer() {
if (System.capabilities.version.split(" ")[1].charAt(0) < 8) {
var sc = this;
root.gotoAndStop("fplayer");
root.playerBtn.onPress = function () {
getURL (sc.FP_URL, "_blank");
};
} else {
loadOpen();
}
}
function loadOpen() {
var sc = this;
var _local2 = new pjam.LoadCheck(root);
_local2.openEnd = function () {
sc.loadSwf();
};
_local2.open();
}
function loadSwf() {
var sc = this;
var _local2 = new pjam.LoadCheck(root);
_local2.loadEnd = function () {
sc.getCharData();
};
_local2.main();
}
function getCharData() {
var sc = this;
var _local2 = {result:function (ev) {
if (sc.pdata.checkKey() == true) {
sc.getedata();
} else {
sc.charCreate();
}
}};
root.charXML.addEventListener("result", _local2);
root.charXML.trigger();
}
function charCreate() {
var sc = this;
var _local2 = new pjam.scene.CharCreate(root, pdata, mode);
_local2.createEnd = function () {
sc.getedata();
};
_local2.start();
sound.playSound("songSound");
}
function getedata() {
var sc = this;
root.gotoAndStop("menu");
root.closeBtn._visible = false;
edata = new pjam.EnemyData(root, pdata);
edata.getEnd = function () {
sc.checkFake();
};
edata.getNetEnemy();
}
function checkFake() {
if (pdata.checkFakeFlg() == false) {
initMain();
return(undefined);
}
var sc = this;
next.end = function () {
var _local1 = new pjam.scene.FakeDisp(sc.root);
_local1.end = function () {
sc.initMain();
};
_local1.main();
};
next.start("fakeMC", -1);
}
function initMain() {
var sc = this;
root.statusBtn.onPress = function () {
var _local1 = pjam.Charactor.getCharData(sc.root, sc.pdata.createRegistData());
sc.status.start(_local1, pjam.head.Status.MY_DISP);
};
root.musicBtn.onPress = function () {
sc.sound.dispControl();
};
root.helpBtn.onPress = function () {
sc.help.start();
};
root.statusBtn.onRollOver = function () {
pjam.SysLog.disp(sc.root, "\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u8868\u793A\u3057\u307E\u3059\u3002");
};
root.musicBtn.onRollOver = function () {
pjam.SysLog.disp(sc.root, "\u30B2\u30FC\u30E0\u306E\u97F3\u91CF\u3092\u8ABF\u6574\u3067\u304D\u307E\u3059\u3002");
};
root.helpBtn.onRollOver = function () {
pjam.SysLog.disp(sc.root, "\u30D8\u30EB\u30D7\u3092\u8868\u793A\u3057\u307E\u3059\u3002");
};
root.closeBtn._visible = false;
sound.playSound("mainSound");
mainMenu(-1);
}
function mainMenu(vec) {
var sc = this;
next.end = function () {
var _local1 = new pjam.scene.MainMenu(sc.root);
_local1.selectGame = function () {
sc.gameMenu(-1);
};
_local1.selectRank = function () {
sc.dispRank();
};
_local1.selectRegist = function () {
sc.dataRegist();
};
_local1.selectDelete = function () {
sc.dataDelete();
};
_local1.start(sc.pdata);
};
next.start("mainMenuMC", vec);
}
function dispRank() {
var sc = this;
var _local2 = new pjam.scene.Ranking(root, pdata);
_local2.end = function () {
sc.mainMenu();
};
_local2.start();
}
function dataRegist() {
var sc = this;
next.end = function () {
var _local1 = new pjam.scene.Regist(sc.root, sc.pdata, sc.edata);
_local1.registEnd = function () {
sc.mainMenu(1);
};
_local1.start();
};
next.start("registMC", -1);
}
function dataDelete() {
var sc = this;
next.end = function () {
var _local1 = new pjam.scene.Delete(sc.root, sc.pdata);
_local1.deleteEnd = function () {
sc.mainMenu(1);
};
_local1.start();
};
next.start("deleteMC", -1);
}
function gameMenu(vec) {
var sc = this;
next.end = function () {
var _local1 = new pjam.scene.GameMenu(sc.root, sc.pdata);
_local1.selectFight = function () {
sc.encount(-1);
};
_local1.selectStatus = sc.root.statusBtn.onPress;
_local1.selectItem = function () {
sc.itemUse();
};
_local1.selectShop = function () {
sc.shop();
};
_local1.selectHelp = sc.root.helpBtn.onPress;
_local1.selectEnd = function () {
sc.mainMenu(1);
};
_local1.start();
};
next.start("gameMenuMC", vec);
}
function itemUse() {
var sc = this;
next.end = function () {
var _local1 = new pjam.scene.ItemUse(sc.root, sc.pdata);
_local1.end = function (n) {
sc.gameMenu(1);
};
_local1.start();
};
next.start("itemMC", -1);
}
function shop() {
var sc = this;
next.end = function () {
var _local1 = new pjam.scene.Shop(sc.root, sc.pdata);
_local1.end = function (n) {
sc.gameMenu(1);
};
_local1.start();
};
next.start("shopMC", -1);
}
function encount(vec) {
var sc = this;
next.end = function () {
var _local1 = new pjam.scene.Encount(sc.root, sc.edata, sc.pdata);
_local1.selectFight = function (n) {
sc.fight(n);
};
_local1.selectMenu = function () {
sc.gameMenu(1);
};
_local1.start();
};
next.start("encountMC", vec);
}
function fight(fdata) {
var sc = this;
next.end = function () {
var _local2 = new pjam.fight.Fight(sc.root, sc.pdata, fdata, sc.mode, this);
_local2.end = function () {
sc.encount(1);
};
_local2.start();
};
next.start("fightMC", -1);
}
function testExe() {
root.gotoAndStop("test");
root.testMC._visible = true;
root.statusMC._visible = false;
var _local2 = new pjam.fight.Fight(root, root.fightMC);
_local2.start();
}
static var DOMAIN = "http://www.dango-itimi.com/jam/cgi/";
static var CGI_URL = DOMAIN + "rank.cgi";
static var RANK_NUM = 500;
var FP_URL = "http://www.macromedia.com/shockwave/download/download.cgi?P5_Language=Japanese&Lang=Japanese&P1_Prod_Version=ShockwaveFlash&Lang=Japanese";
static var LOADEND_TIME = 1000;
static var NORMAL_MODE = 0;
static var TEST_MODE = 1;
var mode = 0;
}
Symbol 3618 MovieClip [__Packages.pjam.PlayerData] Frame 0
class pjam.PlayerData
{
var root, so;
function PlayerData (root) {
this.root = root;
so = SharedObject.getLocal("OH_DANGO_JAM", "/");
}
function checkKey() {
return(((so.data.id == undefined) ? false : true));
}
function create(charNum, name, charName, hp, attack, magic, defense, url) {
so.data.id = -1;
so.data.money = 0;
so.data.lv = 1;
so.data.ex = 0;
so.data.charNum = charNum;
so.data.name = name;
so.data.charName = charName;
so.data.hp = hp;
so.data.attack = attack;
so.data.magic = magic;
so.data.defense = defense;
so.data.url = url;
so.data.item0 = charNum;
so.data.item1 = -1;
so.data.item2 = -1;
so.data.exc = 0;
so.data.control = -1;
so.data.sp = 0;
codeExe();
}
function firstRegistData() {
return((((((((((((((((((((((((((((so.data.money + ",") + so.data.lv) + ",") + so.data.ex) + ",") + so.data.charNum) + ",") + so.data.name) + ",") + so.data.charName) + ",") + so.data.hp) + ",") + so.data.attack) + ",") + so.data.magic) + ",") + so.data.defense) + ",") + so.data.url) + ",") + so.data.item0) + ",") + so.data.item1) + ",") + so.data.item2) + ",") + so.data.sp);
}
function createRegistData() {
return((so.data.id + ",") + firstRegistData());
}
function createUseItemData(num) {
return((((((((((((((((((((((((((((("-1," + so.data.money) + ",") + so.data.lv) + ",") + so.data.ex) + ",") + num) + ",") + so.data.name) + ",") + so.data.charName) + ",") + so.data.hp) + ",") + so.data.attack) + ",") + so.data.magic) + ",") + so.data.defense) + ",") + so.data.url) + ",") + so.data.item0) + ",") + so.data.item1) + ",") + so.data.item2) + ",") + so.data.sp);
}
function checkRegistTime() {
if (so.data.time == undefined) {
so.data.time = getTimer();
return(REGIST_TIME);
}
var _local2 = getTimer() - so.data.time;
return(((_local2 > REGIST_TIME) ? 0 : (REGIST_TIME - _local2)));
}
function setFightData(money, up, ex, exc, hp, attack, magic, defense, sp) {
so.data.money = so.data.money + money;
so.data.lv = so.data.lv + up;
so.data.ex = so.data.ex + ex;
so.data.exc = exc;
so.data.hp = so.data.hp + hp;
so.data.attack = so.data.attack + attack;
so.data.magic = so.data.magic + magic;
so.data.defense = so.data.defense + defense;
so.data.sp = sp;
so.data.attack = cutStatus(so.data.attack);
so.data.magic = cutStatus(so.data.magic);
so.data.defense = cutStatus(so.data.defense);
codeExe();
}
function checkCode() {
if (checkKey() == false) {
return(true);
}
if (so.data.maru == undefined) {
codeExe();
return(true);
}
var _local3 = decodeExe(so.data.maru);
var _local2 = _local3.split(",");
if ((((((((((((_local2[0] - KEY2) == so.data.money) && ((_local2[1] - KEY2) == so.data.lv)) && ((_local2[2] - KEY2) == so.data.ex)) && ((_local2[3] - KEY2) == so.data.charNum)) && ((_local2[4] - KEY2) == so.data.hp)) && ((_local2[5] - KEY2) == Math.floor(so.data.attack))) && ((_local2[6] - KEY2) == Math.floor(so.data.magic))) && ((_local2[7] - KEY2) == Math.floor(so.data.defense))) && ((_local2[8] - KEY2) == so.data.item0)) && ((_local2[9] - KEY2) == so.data.item1)) && ((_local2[10] - KEY2) == so.data.item2)) {
return(true);
}
return(false);
}
function cutStatus(num) {
var _local1 = num.toString().indexOf(".");
if (_local1 == -1) {
return(num);
}
return(Number(num.toString().substring(0, _local1 + 3)));
}
function setFakeFlg(flg) {
so.data.fakeFlg = flg;
}
function checkFakeFlg() {
if (so.data.fakeFlg == true) {
var _local2 = pjam.fight.LvUp.getDownPer(so.data.lv);
so.data.money = so.data.money - Math.floor(so.data.money * _local2);
so.data.fakeFlg = false;
codeExe();
return(true);
}
return(false);
}
function setRegistTime() {
so.data.time = getTimer();
}
function checkItemFull() {
if (so.data.item0 == -1) {
return(0);
}
if (so.data.item1 == -1) {
return(1);
}
if (so.data.item2 == -1) {
return(2);
}
return(-1);
}
function getItemList() {
return([so.data.item0, so.data.item1, so.data.item2]);
}
function setItem(num, item) {
so.data["item" + num] = item;
codeExe();
}
function checkItemNum() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < 3) {
if (so.data["item" + _local2] == -1) {
_local3++;
}
_local2++;
}
if (_local3 > 1) {
return(true);
}
return(false);
}
function setMoney(n) {
so.data.money = so.data.money + n;
codeExe();
}
function setCharNum(num) {
so.data.charNum = num;
codeExe();
}
function getID() {
return(so.data.id);
}
function setID(n) {
so.data.id = n;
}
function deleteID() {
so.data.id = undefined;
}
function setUrl(url) {
so.data.url = url;
}
function changeControl() {
so.data.control = so.data.control * -1;
}
function getControl() {
return(so.data.control);
}
function getLv() {
return(so.data.lv);
}
function getEx() {
return(so.data.ex);
}
function getExc() {
return(so.data.exc);
}
function getCharNum() {
return(so.data.charNum);
}
function getName() {
return(so.data.name);
}
function codeExe() {
var _local3 = ((((((((((((((((((((so.data.money + KEY2) + ",") + (so.data.lv + KEY2)) + ",") + (so.data.ex + KEY2)) + ",") + (so.data.charNum + KEY2)) + ",") + (so.data.hp + KEY2)) + ",") + (Math.floor(so.data.attack) + KEY2)) + ",") + (Math.floor(so.data.magic) + KEY2)) + ",") + (Math.floor(so.data.defense) + KEY2)) + ",") + (so.data.item0 + KEY2)) + ",") + (so.data.item1 + KEY2)) + ",") + (so.data.item2 + KEY2);
var _local4 = "";
var _local2 = 0;
while (_local2 < _local3.length) {
_local4 = _local4 + ((_local3.charCodeAt(_local2) + KEY) + KEY_STR);
_local2++;
}
so.data.maru = _local4;
}
function decodeExe(code) {
var _local4 = code.split(KEY_STR);
var _local5 = "";
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = String(Number(_local4[_local2]) - KEY);
_local5 = _local5 + String.fromCharCode(_local3);
_local2++;
}
return(_local5);
}
var REGIST_TIME = 300000;
var KEY = 14;
var KEY_STR = "%";
var KEY2 = 4;
}
Symbol 3619 MovieClip [__Packages.pjam.fight.LvUp] Frame 0
class pjam.fight.LvUp
{
var root, pdata, scene;
function LvUp (root, pdata) {
this.root = root;
this.pdata = pdata;
}
function get _excNum() {
return(excNum);
}
function get _upLv() {
return(upLv);
}
function check(gex) {
var _local3 = pdata.getLv();
var _local2 = pdata.getExc();
if (_local2 == undefined) {
_local2 = 0;
}
upLv = getUpLv(_local3, gex, _local2);
}
function getUpLv(lv, gex, exc) {
if (lv < 5) {
return(cmn(lv, gex, exc, 5));
}
if (lv < 10) {
return(cmn(lv, gex, exc, 10));
}
if (lv < 50) {
return(cmn(lv, gex, exc, 50));
}
if (lv < 100) {
return(cmn(lv, gex, exc, 100));
}
if (lv < 300) {
return(cmn(lv, gex, exc, 300));
}
if (lv < 600) {
return(cmn(lv, gex, exc, 600));
}
if (lv < 1000) {
return(cmn(lv, gex, exc, 1000));
}
return(cmn(lv, gex, exc, 5000));
}
function cmn(lv, gex, exc, max) {
var _local2 = 0;
var _local3 = Math.floor((exc + gex) / this["LV" + max]);
if ((lv + _local3) > max) {
_local2 = max - lv;
var _local5 = gex - (_local2 * this["LV" + max]);
_local2 = _local2 + getUpLv(lv + _local3, _local5, 0);
} else {
_local2 = _local3;
excNum = (exc + gex) - (_local3 * this["LV" + max]);
}
return(_local2);
}
function getBeMax(max) {
if (max == 5) {
return(0);
}
if (max == 10) {
return(5);
}
if (max == 50) {
return(10);
}
if (max == 100) {
return(50);
}
if (max == 300) {
return(100);
}
if (max == 600) {
return(300);
}
if (max == 1000) {
return(600);
}
return(1000);
}
function dispLvUp() {
scene = root.stageMC.lvupMC;
restBonus = upLv * BONUS;
scene.bonusTxt.text = restBonus;
scene.hpTxt.text = 0;
scene.attackTxt.text = 0;
scene.magicTxt.text = 0;
scene.defenseTxt.text = 0;
var _local2 = pjam.Charactor.getCharData(root, pdata.createRegistData());
scene.nowHpTxt.text = _local2.hp;
scene.nowAttackTxt.text = _local2.attack;
scene.nowMagicTxt.text = _local2.magic;
scene.nowDefenseTxt.text = _local2.defense;
var sc = this;
scene.okBtn.onRelease = function () {
this.enabled = false;
var _local2 = {hp:Number(sc.scene.hpTxt.text), attack:Number(sc.scene.attackTxt.text), magic:Number(sc.scene.magicTxt.text), defense:Number(sc.scene.defenseTxt.text)};
sc.bonusEnd(_local2);
};
setBonusBtn("hp");
setBonusBtn("attack");
setBonusBtn("magic");
setBonusBtn("defense");
if (restBonus > 0) {
scene.okBtn.enabled = false;
scene.okBtn._alpha = 50;
} else {
scene.okBtn.enabled = true;
scene.okBtn._alpha = 100;
}
}
function setBonusBtn(txt) {
var sc = this;
scene[txt + "BackBtn"].onPress = function () {
if (sc.scene[txt + "Txt"].text > 0) {
sc.restBonus++;
sc.scene.bonusTxt.text = sc.restBonus;
sc.scene[txt + "Txt"].text--;
if (sc.restBonus == 0) {
return(undefined);
}
sc.scene.okBtn.enabled = false;
sc.scene.okBtn._alpha = 50;
}
};
scene[txt + "NextBtn"].onPress = function () {
if (sc.restBonus > 0) {
sc.restBonus--;
sc.scene.bonusTxt.text = sc.restBonus;
sc.scene[txt + "Txt"].text++;
if (sc.restBonus > 0) {
return(undefined);
}
sc.scene.okBtn.enabled = true;
sc.scene.okBtn._alpha = 100;
}
};
}
static function getPlayerBestLv(lv) {
if (lv < 50) {
return(50);
}
if (lv < 100) {
return(100);
}
if (lv < 300) {
return(300);
}
if (lv < 600) {
return(600);
}
if (lv < 1000) {
return(1000);
}
return(999999);
}
static function getDownPer(lv) {
if (lv < 50) {
return(0.1);
}
if (lv < 100) {
return(0.15);
}
if (lv < 300) {
return(0.2);
}
if (lv < 600) {
return(0.3);
}
if (lv < 1000) {
return(0.4);
}
return(0.5);
}
var upLv = 0;
var excNum = 0;
var LV5 = 50;
var LV10 = 100;
var LV50 = 500;
var LV100 = 2000;
var LV300 = 4000;
var LV600 = 15000;
var LV1000 = 40000;
var LV5000 = 200000;
var LV0 = 0;
static var BONUS = 3;
var restBonus = 0;
}
Symbol 3620 MovieClip [__Packages.pjam.Charactor] Frame 0
class pjam.Charactor
{
function Charactor () {
}
static function getCharData(root, data) {
var _local2 = data.split(",");
var _local3 = false;
var _local1 = root.charSet;
_local1.first();
while (_local1.hasNext()) {
if (_local1.currentItem.charNum == _local2[4]) {
_local3 = true;
break;
}
_local1.next();
}
if (_local3 == false) {
_local1.selectedIndex = 0;
}
return({id:_local1.currentItem.id, uid:Number(_local2[0]), money:Number(_local2[1]), lv:Number(_local2[2]), ex:Number(_local2[3]), charNum:Number(_local2[4]), name:_local2[5], charName:_local2[6], hp:Number(_local2[7]) + _local1.currentItem.plusHp, attack:Number(_local2[8]) + _local1.currentItem.plusAttack, magic:Number(_local2[9]) + _local1.currentItem.plusMagic, defense:Number(_local2[10]) + _local1.currentItem.plusDefense, speed:_local1.currentItem.speed, luck:_local1.currentItem.luck, jump:_local1.currentItem.jump, spMove:_local1.currentItem.spMove, url:_local2[11], item0:Number(_local2[12]), item1:Number(_local2[13]), item2:Number(_local2[14]), sp:Number(_local2[15]), kind:KIND_PLAYER, various:_local1.currentItem.various});
}
static function getCpuData(root) {
var _local2 = root.charSet;
var _local3 = Math.floor(Math.random() * _local2.getLength());
_local2.selectedIndex = _local3;
if ((_local2.currentItem.various == VARIOUS_REA) && (Math.floor(Math.random() * REA_PER) != 0)) {
_local2.selectedIndex = 0;
}
var _local1 = _local2.currentItem;
return({id:_local1.id, money:_local1.money, lv:_local1.lv, ex:_local1.ex, charNum:_local1.charNum, name:"CPU", charName:_local1.charName, hp:_local1.hp, attack:_local1.attack, magic:_local1.magic, defense:_local1.defense, speed:_local1.speed, luck:_local1.luck, jump:_local1.jump, spMove:_local1.spMove, url:_local1.url, item0:_local1.charNum, item1:-1, item2:-1, sp:0, kind:KIND_CPU, various:_local1.various});
}
static function getNearCpuData(root, pdata) {
var _local3 = root.charSet;
var _local6 = Math.floor(Math.random() * _local3.getLength());
_local3.selectedIndex = _local6;
if (_local3.currentItem.various == VARIOUS_REA) {
_local3.selectedIndex = 0;
}
var _local28 = Math.floor(Math.random() * pdata.getLv());
var _local5 = Math.floor(Math.random() * NEAR_LV);
_local28 = _local28 + ((Math.floor(Math.random() * 2) == 0) ? (_local5) : (-_local5));
if (_local28 < 1) {
_local28 = 1;
}
var _local4 = pjam.fight.Bonus.getExMoney(_local28);
var _local7 = _local28 * pjam.fight.LvUp.BONUS;
var _local2 = getNearUpData(_local7);
var _local19 = 10 + _local2.up;
_local2 = getNearUpData(_local2.rest);
var _local10 = 10 + _local2.up;
_local2 = getNearUpData(_local2.rest);
var _local20 = 10 + _local2.up;
var _local8 = 10 + _local2.rest;
_local19 = _local19 + Math.floor(_local28 / 2);
var _local1 = _local3.currentItem;
return({id:_local1.id, money:_local4.money, lv:_local28, ex:_local4.ex, charNum:_local1.charNum, name:"CPU", charName:_local1.charName, hp:_local19, attack:_local10, magic:_local20, defense:_local8, speed:_local1.speed, luck:_local1.luck, jump:_local1.jump, spMove:_local1.spMove, url:_local1.url, item0:_local1.charNum, item1:-1, item2:-1, sp:0, kind:KIND_CPU, various:_local1.various});
}
static function getNearUpData(rest) {
var _local1 = Math.floor(Math.random() * rest);
return({up:_local1, rest:rest - _local1});
}
static function getItemName(root, num) {
if (num == -1) {
return("");
}
var _local1 = root.charSet;
_local1.first();
while (_local1.hasNext()) {
if (_local1.currentItem.charNum == num) {
break;
}
_local1.next();
}
return(_local1.currentItem.item);
}
static function getItemPrice(root, num) {
var _local1 = root.charSet;
_local1.first();
while (_local1.hasNext()) {
if (_local1.currentItem.charNum == num) {
break;
}
_local1.next();
}
return(_local1.currentItem.sell);
}
static var KIND_PLAYER = 1;
static var KIND_CPU = 2;
static var VARIOUS_NORMAL = 0;
static var VARIOUS_REA = 2;
static var NEAR_LV = 10;
static var REA_PER = 5;
}
Symbol 3621 MovieClip [__Packages.pjam.fight.Bonus] Frame 0
class pjam.fight.Bonus
{
function Bonus () {
}
function action(str) {
if (str == pjam.fight.player.Player.ATTACK_STATE) {
attack = attack + 0.02;
return(7);
}
if (str == pjam.fight.player.Player.MAGIC_STATE) {
magic = magic + 0.02;
return(10);
}
defense = defense + 0.03;
return(50);
}
function setCombo(combo) {
if (combo > comboMax) {
comboMax = combo;
}
}
function getBonus(num, eObj, root) {
var _local9 = 0;
var _local11 = 0;
var _local13 = -1;
var _local3 = 0;
if (num == pjam.fight.player.Player.PLAYER_EN) {
if (eObj.kind == pjam.Charactor.KIND_CPU) {
_local9 = eObj.ex;
_local11 = eObj.money;
} else {
var _local5 = getExMoney(eObj.lv);
_local9 = _local5.ex;
_local11 = _local5.money;
}
var _local6 = ((eObj.various == pjam.Charactor.VARIOUS_REA) ? (REA_ITEM_PER) : (ITEM_PER));
if (Math.floor(Math.random() * _local6) == 0) {
_local13 = getItem(eObj);
}
if ((_local13 != -1) && (eObj.kind == pjam.Charactor.KIND_PLAYER)) {
var _local2 = root.charSet;
_local2.first();
while (_local2.hasNext()) {
if (_local2.currentItem.charNum == _local13) {
break;
}
_local2.next();
}
if (_local2.currentItem.various == pjam.Charactor.VARIOUS_REA) {
_local13 = -1;
}
}
_local3 = getComboBonus(_local11);
}
if (typeof(_local9) != "number") {
_local9 = 0;
}
if (typeof(_local11) != "number") {
_local11 = 0;
}
if (typeof(_local13) != "number") {
_local13 = -1;
}
if (typeof(_local3) != "number") {
_local3 = 0;
}
if (_local9 == NaN) {
_local9 = 0;
}
if (_local11 == NaN) {
_local11 = 0;
}
if (_local13 == NaN) {
_local13 = -1;
}
if (_local3 == NaN) {
_local3 = 0;
}
return({ex:_local9, money:_local11, item:_local13, attack:attack, magic:magic, defense:defense, combo:_local3, comboMax:comboMax});
}
static function getExMoney(lv) {
var _local2 = (lv * 10) + Math.floor((Math.random() * lv) / 10);
_local2 = Math.floor(_local2 * 0.5);
var _local3 = Math.floor(Math.random() * (lv * 10)) + 1;
return({ex:_local2, money:_local3});
}
function getItem(eObj) {
var _local2 = eObj["item" + Math.floor(Math.random() * 3)];
if (_local2 == -1) {
_local2 = getItem(eObj);
}
return(_local2);
}
function getComboBonus(money) {
return(((comboMax <= 2) ? 0 : (Math.floor((money / 10) * comboMax))));
}
var attack = 0;
var magic = 0;
var defense = 0;
var ITEM_PER = 35;
var REA_ITEM_PER = 75;
var comboMax = 0;
}
Symbol 3622 MovieClip [__Packages.pjam.fight.player.Player] Frame 0
class pjam.fight.player.Player
{
var root, scene, cdata, bonus, effect, shadowMC, modeMC, mc, area, some, attack, damage, jump, move, ai, manual, changeHP, changeSP;
function Player (root, pnum, cdata) {
this.root = root;
scene = root.stageMC.fightMC;
this.pnum = pnum;
this.cdata = cdata;
bonus = new pjam.fight.Bonus();
effect = new pjam.fight.Effect(root);
var _local2 = 0;
_local2 = scene.charMC.getNextHighestDepth();
shadowMC = scene.charMC.attachMovie("shadowMC", "shadowMC" + pnum, _local2);
_local2 = scene.charMC.getNextHighestDepth();
modeMC = scene.charMC.createEmptyMovieClip("modeMC" + _local2, _local2);
_local2 = scene.charMC.getNextHighestDepth();
mc = scene.charMC.attachMovie(cdata.id, cdata.id + pnum, _local2);
mc._x = scene.charMC["charMC" + pnum]._x;
mc._y = scene.charMC["charMC" + pnum]._y;
var sc = this;
shadowMC._y = mc._y;
shadowMC.onEnterFrame = function () {
this._x = sc.mc._x;
};
area = scene.areaMC.getBounds(scene);
mc._y = area.yMax;
if (pnum == PLAYER_EN) {
vec = -1;
mc.gotoAndStop("waitL");
}
}
function setAct(some) {
this.some = some;
attack = new pjam.fight.player.Attack(mc, scene, area, cdata, some, effect);
damage = new pjam.fight.player.Damage(mc, scene, area);
jump = new pjam.fight.player.Jump(mc, scene, area);
move = new pjam.fight.player.Move(mc, scene, area, pnum);
ai = new pjam.fight.player.AiPlayer(mc, scene, area, some, pnum);
manual = new pjam.fight.player.Manual(root, scene);
var sc = this;
attack.attackEnd = function () {
sc.nextAct(true);
};
attack.actionCansel = function () {
if (sc.jump.checkJump(sc.__get___cdata().jump) == false) {
return(undefined);
}
if (sc.aimode == false) {
sc.manual.setCanselKey();
return(undefined);
}
if (sc.ai.aiHitJump() == true) {
sc.jumpCmn();
}
};
attack.someHitAway = function () {
sc.some.damageCmn("down", "H");
sc.some.damage.hitAway(sc.some.vec);
};
attack.someHitBack = function (hit) {
sc.some.damageCmn("wait", hit);
sc.some.damage.hitBack(sc.some.vec, hit);
};
attack.someAerial = function () {
sc.effect.aerial(sc.some.__get___mc());
sc.some.damageCmn("down", "M");
sc.some.damage.aerial(sc.some.vec);
};
attack.someReAerial = function () {
sc.some.damageCmn("down", "M");
sc.some.damage.reAerial(sc.some.vec);
};
attack.someKO = function () {
sc.some.damageCmn("down", "H");
sc.some.damage.ko(sc.some.vec);
sc.manual.removeControl();
sc.__get___mc().gotoAndStop("wait" + pjam.fight.player.Player.getVecStr(sc.vec));
};
attack.setBonus = function (str) {
sc.setBonus(str);
};
damage.hitBackMy = function (step) {
sc.some.move.hitBack(step, sc.some.vec);
};
damage.end = function (combo) {
if (sc.escapeFlg == true) {
return(undefined);
}
if (combo > 1) {
var _local2 = new pjam.fight.TextEffect(sc.root, sc.scene.comboMC);
_local2.combo(combo, sc.some.__get___pnum());
}
sc.some.__get___bonus().setCombo(combo);
if (sc.__get___cdata().hp <= 0) {
if (sc.endFlg == true) {
return(undefined);
}
sc.endFlg = true;
sc.destroy();
sc.gameEnd(sc.__get___pnum());
} else {
sc.nextAct(false);
}
};
jump.aiActCheck = function () {
if (sc.__get___state() != pjam.fight.player.Player.NON_STATE) {
return(undefined);
}
if (sc.aimode == false) {
return(undefined);
}
if (sc.ai.aiCheckAct() == true) {
sc.ai.nextAct(sc.vec);
}
};
jump.end = function () {
if (sc.escapeFlg == true) {
return(undefined);
}
if (sc.__get___state() != pjam.fight.player.Player.NON_STATE) {
return(undefined);
}
if (sc.some.__get___cdata().hp <= 0) {
return(undefined);
}
if (sc.move.checkMoveState() == true) {
return(undefined);
}
sc.nextAct(true);
};
move.aiMoveEnd = function () {
sc.ai.nextAct(sc.vec);
};
ai.jump = function () {
sc.jumpCmn();
};
ai.move = function () {
var _local1 = (Math.floor(Math.random() * 2) ? 1 : -1);
if ((sc.__get___mc()._y < sc.area.yMax) && (sc.vec != _local1)) {
sc.jump.changeVec();
}
sc.vec = _local1;
sc.move.aiMove(sc.vec, sc.__get___cdata().speed, sc.some);
};
ai.waitEnd = function () {
sc.nextAct(true);
};
ai.action = function (str) {
sc.actionCmn(str);
};
manual.move = function (num) {
if ((sc.__get___mc()._y < sc.area.yMax) && (sc.vec != num)) {
sc.jump.changeVec();
}
sc.vec = num;
sc.move.main(sc.vec, sc.__get___cdata().speed);
};
manual.moveMouse = function () {
if (sc.__get___state() != pjam.fight.player.Player.NON_STATE) {
return(undefined);
}
var _local1 = ((sc.scene._xmouse < sc.__get___mc()._x) ? -1 : 1);
if ((sc.__get___mc()._y < sc.area.yMax) && (sc.vec != _local1)) {
sc.jump.changeVec();
}
sc.vec = _local1;
sc.move.moveMouse(sc.vec, sc.__get___cdata().speed);
};
manual.jump = function () {
sc.jumpCmn();
};
manual.action = function (str) {
sc.actionCmn(str);
};
}
function damageCmn(frame, hit) {
var _local2 = getSomeVecStr(mc, some);
mc.gotoAndStop(frame + _local2.str);
vec = _local2.vec;
state = NON_STATE;
manual.removeControl();
attack.setActionCansel();
ai.destroy();
jump.destroy();
move.destroy();
effect.char(pjam.fight.Effect.DAMAGE, mc);
effect.damage(hit, mc, vec);
}
function jumpCmn() {
if (jump.checkJump(cdata.jump) == false) {
nextAct(true);
return(undefined);
}
attack.setActionCansel();
if (mc._y == area.yMax) {
effect.jump(mc, getVecStr(vec));
}
var _local2 = move.checkMoveState();
if (_local2 == true) {
move.destroy();
}
jump.main(cdata.speed, vec, _local2);
nextAct(false);
}
function actionCmn(str) {
if ((str == DEFENSE_STATE) && (mc._y < area.yMax)) {
return(undefined);
}
if (powerExe(str) == false) {
if (aimode == true) {
ai.nextAct(vec);
}
return(undefined);
}
manual.removeControl();
var _local3 = move.checkMoveState();
if ((aimode == true) && (_local3 == false)) {
var _local4 = getSomeVecStr(mc, some);
vec = _local4.vec;
}
move.destroy();
state = str;
attack.action(str, vec, _local3);
}
function nextAct(flg) {
if (escapeFlg == true) {
return(undefined);
}
if (flg == true) {
mc.gotoAndStop("wait" + getVecStr(vec));
}
state = NON_STATE;
if (aimode == true) {
ai.nextAct(vec);
} else {
manual.setControl();
}
}
function start(control) {
if ((pnum == PLAYER_EN) || (control == -1)) {
aimode = true;
ai.nextAct(vec);
} else {
aimode = false;
manual.setControl();
}
}
function changeMode() {
delete modeMC.onEnterFrame;
if ((state == NON_STATE) || (mc._y == area.yMax)) {
move.destroy();
setMode();
return(undefined);
}
var sc = this;
modeMC.onEnterFrame = function () {
if (sc.__get___state() != pjam.fight.player.Player.NON_STATE) {
return(undefined);
}
if (sc.__get___mc()._y < sc.area.yMax) {
return(undefined);
}
delete this.onEnterFrame;
sc.setMode();
};
}
function setMode() {
if (aimode == true) {
ai.destroy();
aimode = false;
manual.setControl();
} else {
manual.removeControl();
aimode = true;
ai.nextAct(vec);
}
}
function escape() {
escapeFlg = true;
manual.removeControl();
attack.setActionCansel();
ai.destroy();
move.destroy();
mc.gotoAndStop("wait" + getVecStr(vec));
}
function destroy() {
manual.removeControl();
attack.setActionCansel();
ai.destroy();
damage.destroy();
jump.destroy();
move.destroy();
if (cdata.hp > 0) {
mc.gotoAndStop("wait" + getVecStr(vec));
} else {
mc.gotoAndStop("ko" + getVecStr(vec));
}
}
function get _mc() {
return(mc);
}
function get _state() {
return(state);
}
function get _cdata() {
return(cdata);
}
function get _bonus() {
return(bonus);
}
function get _pnum() {
return(pnum);
}
function dispDamage(num) {
var _local2 = new pjam.fight.TextEffect(root, scene);
_local2.start(num.toString(), mc, 16777215, pjam.fight.TextEffect.DAMAGE_MODE);
if (((cdata.hp = cdata.hp - num)) < 0) {
cdata.hp = 0;
}
changeHP(cdata.hp, pnum);
return(cdata.hp);
}
function setBonus(str) {
cdata.sp = cdata.sp + bonus.action(str);
if (cdata.sp > 100) {
cdata.sp = 100;
}
changeSP(cdata.sp, pnum);
}
function powerExe(str) {
if (str != POWER_STATE) {
return(true);
}
if (cdata.sp < 50) {
return(false);
}
cdata.sp = cdata.sp - 50;
changeSP(cdata.sp, pnum);
effect.power(mc, getVecStr(vec));
return(true);
}
static function getVecStr(vec) {
return(((vec == 1) ? "R" : "L"));
}
static function getSomeVecStr(mc, some) {
return(((mc._x > some.__get___mc()._x) ? ({vec:-1, str:"L"}) : ({vec:1, str:"R"})));
}
static function checkArea(cmc, scene, area) {
var _local1 = cmc.getBounds(scene);
if ((_local1.xMin <= area.xMin) || (_local1.xMax >= area.xMax)) {
return(true);
}
return(false);
}
static function setAreaPosition(mc, scene, area) {
var _local2 = mc.hitMC.getBounds(scene);
if (_local2.xMin <= area.xMin) {
mc._x = area.xMin + Math.floor(mc.hitMC._width / 2);
return(true);
}
if (_local2.xMax >= area.xMax) {
mc._x = area.xMax - Math.floor(mc.hitMC._width / 2);
return(true);
}
return(false);
}
static var PLAYER_MY = 0;
static var PLAYER_EN = 1;
var pnum = -1;
var vec = 1;
static var ATTACK_STATE = "attack";
static var MAGIC_STATE = "magic";
static var DEFENSE_STATE = "defense";
static var POWER_STATE = "power";
static var NON_STATE = "";
var state = "";
var aimode = false;
var escapeFlg = false;
var endFlg = false;
}
Symbol 3623 MovieClip [__Packages.pjam.fight.Effect] Frame 0
class pjam.fight.Effect
{
var root, scene, effectMC;
function Effect (root) {
this.root = root;
scene = root.stageMC.fightMC;
}
function char(list, mc) {
effectMC.removeMovieClip();
effectMC = mc.createEmptyMovieClip("effectMC", mc.getNextHighestDepth());
var sc = this;
var count = 0;
effectMC.onEnterFrame = function () {
var _local1 = new Color(mc);
_local1.setTransform(list[count]);
if ((++count) >= list.length) {
sc.effectMC.removeMovieClip();
}
};
}
function damage(hit, mc, vec) {
var _local4 = scene.getNextHighestDepth();
var _local2 = scene.attachMovie("damageMC", "damageMC" + _local4, _local4);
_local2._x = mc._x + (vec * (mc._width / 2));
_local2._y = mc._y - (mc._height / 2);
_local2.gotoAndStop(hit);
sound("damage_" + hit);
watchEffect(_local2.mc, _local2);
}
function jump(mc, vecStr) {
var _local3 = scene.backEffectMC;
var _local4 = _local3.getNextHighestDepth();
var _local2 = _local3.attachMovie("jumpMC", "jumpMC" + _local4, _local4);
_local2._x = mc._x;
_local2._y = mc._y;
_local2.gotoAndStop(vecStr);
watchEffect(_local2.mc, _local2);
}
function aerial(mc) {
var _local4 = scene.frontEffectMC;
var _local3 = scene.getNextHighestDepth();
var _local2 = _local4.attachMovie("aerialMC", "aerialMC" + _local3, _local3);
_local2._x = mc._x;
_local2._y = mc._y;
watchEffect(_local2, _local2);
}
function power(mc, vec) {
effectCmn(mc, vec, "powerMC", "", 0, POWER, "power");
}
function defense(mc, vec) {
effectCmn(mc, vec, "defenseMC", "CHANSE!", 16759671, DEFENSE, "defense");
}
function smash(mc, vec) {
effectCmn(mc, vec, "smashMC", "SMAAASH!!", 4508740, SMASH, "smash");
}
function effectCmn(mc, vec, id, str, color, efList, soundID) {
var _local4 = scene.backEffectMC;
var _local5 = _local4.getNextHighestDepth();
var _local2 = _local4.attachMovie(id, id + _local5, _local5);
_local2._x = mc._x;
_local2._y = mc._y - (mc._height / 2);
_local2.gotoAndStop(vec);
if (str != "") {
var _local6 = new pjam.fight.TextEffect(root, scene);
_local6.start(str, mc, color, pjam.fight.TextEffect.DAMAGE_MODE);
}
if (efList != null) {
char(efList, mc);
}
if (soundID != "") {
sound(soundID);
}
watchEffect(_local2.mc, _local2);
}
function sound(id) {
var _local2 = new Sound(root);
_local2.attachSound(id);
_local2.start();
}
function watchEffect(mc1, mc2) {
var _local2 = this;
mc1.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
mc2.removeMovieClip();
}
};
}
static var DAMAGE = [{ra:30, rb:180, ga:30, gb:100, ba:30, bb:100, aa:100, ab:0}, {ra:30, rb:180, ga:30, gb:100, ba:30, bb:100, aa:100, ab:0}, {ra:100, rb:0, ga:100, gb:-170, ba:100, bb:-220, aa:100, ab:0}, {ra:100, rb:0, ga:100, gb:-170, ba:100, bb:-220, aa:100, ab:0}, {ra:100, rb:0, ga:100, gb:-170, ba:100, bb:-220, aa:100, ab:0}, {ra:100, rb:0, ga:100, gb:-100, ba:100, bb:-100, aa:100, ab:0}, {ra:100, rb:0, ga:100, gb:-50, ba:100, bb:-50, aa:100, ab:0}, {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0}];
static var POWER = [{ra:30, rb:100, ga:30, gb:100, ba:30, bb:180, aa:100, ab:0}, {ra:30, rb:100, ga:30, gb:100, ba:30, bb:180, aa:100, ab:0}, {ra:30, rb:100, ga:30, gb:100, ba:30, bb:180, aa:100, ab:0}, {ra:100, rb:-120, ga:100, gb:-120, ba:100, bb:0, aa:100, ab:0}, {ra:100, rb:-120, ga:100, gb:-120, ba:100, bb:0, aa:100, ab:0}, {ra:100, rb:-120, ga:100, gb:-120, ba:100, bb:0, aa:100, ab:0}, {ra:100, rb:-120, ga:100, gb:-120, ba:100, bb:0, aa:100, ab:0}, {ra:100, rb:-90, ga:100, gb:-90, ba:100, bb:0, aa:100, ab:0}, {ra:100, rb:-60, ga:100, gb:-60, ba:100, bb:0, aa:100, ab:0}, {ra:100, rb:-40, ga:100, gb:-40, ba:100, bb:0, aa:100, ab:0}, {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0}];
static var DEFENSE = [{ra:30, rb:200, ga:30, gb:140, ba:30, bb:-30, aa:100, ab:0}, {ra:30, rb:200, ga:30, gb:140, ba:30, bb:-30, aa:100, ab:0}, {ra:100, rb:40, ga:100, gb:-90, ba:100, bb:-255, aa:100, ab:0}, {ra:100, rb:40, ga:100, gb:-90, ba:100, bb:-255, aa:100, ab:0}, {ra:100, rb:40, ga:100, gb:-90, ba:100, bb:-255, aa:100, ab:0}, {ra:100, rb:28, ga:100, gb:-60, ba:100, bb:-155, aa:100, ab:0}, {ra:100, rb:10, ga:100, gb:-30, ba:100, bb:-55, aa:100, ab:0}, {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0}];
static var SMASH = [{ra:30, rb:200, ga:65, gb:140, ba:30, bb:-30, aa:100, ab:0}, {ra:30, rb:200, ga:65, gb:140, ba:30, bb:-30, aa:100, ab:0}, {ra:100, rb:40, ga:100, gb:-90, ba:100, bb:-255, aa:100, ab:0}, {ra:100, rb:40, ga:100, gb:-90, ba:100, bb:-255, aa:100, ab:0}, {ra:100, rb:40, ga:100, gb:-90, ba:100, bb:-255, aa:100, ab:0}, {ra:100, rb:28, ga:100, gb:-60, ba:100, bb:-155, aa:100, ab:0}, {ra:100, rb:10, ga:100, gb:-30, ba:100, bb:-55, aa:100, ab:0}, {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0}];
}
Symbol 3624 MovieClip [__Packages.pjam.fight.TextEffect] Frame 0
class pjam.fight.TextEffect
{
var root, scene;
function TextEffect (root, scene) {
this.root = root;
this.scene = scene;
}
function start(str, charMC, clrNum, mode) {
var _local9 = scene.getNextHighestDepth();
var lineMC = scene.createEmptyMovieClip("lineMC" + _local9, _local9);
var _local5 = 0;
var _local2 = 0;
while (_local2 < str.length) {
var _local4 = lineMC.attachMovie(BTM_MC, BTM_MC + _local2, lineMC.getNextHighestDepth());
var _local3 = lineMC.attachMovie(TOP_MC, TOP_MC + _local2, lineMC.getNextHighestDepth());
_local3.gotoAndStop(str.charCodeAt(_local2));
_local4.gotoAndStop(str.charCodeAt(_local2));
_local3._visible = false;
_local4._visible = false;
var _local6 = new Color(_local4);
_local6.setRGB(clrNum);
_local3._x = _local5;
_local4._x = _local5;
_local5 = _local5 + (_local3._width + 1);
_local2++;
}
if (mode == DAMAGE_MODE) {
lineMC._x = charMC._x - Math.floor(lineMC._width / 2);
lineMC._y = Math.floor((charMC._y - charMC._height) - 10);
} else if (mode == MONEY_MODE) {
lineMC._x = charMC._x - lineMC._width;
lineMC._y = charMC._y;
}
var sc = this;
var num = -1;
var count = 0;
lineMC.onEnterFrame = function () {
this[sc.TOP_MC + count].moveEnd = function () {
if ((++count) >= str.length) {
sc.eraze(lineMC);
}
};
if (mode == pjam.fight.TextEffect.DAMAGE_MODE) {
sc.move(this, ++num);
} else if (mode == pjam.fight.TextEffect.MONEY_MODE) {
sc.money(this, ++num);
}
};
}
function move(lineMC, num) {
var sc = this;
var vec = -1;
var topMC = lineMC[TOP_MC + num];
var btmMC = lineMC[BTM_MC + num];
var step = 0;
var speed = FIRST_SPEED;
var first = topMC._y;
topMC._visible = true;
btmMC._visible = true;
topMC.onEnterFrame = function () {
topMC._y = topMC._y + (vec * speed);
btmMC._y = btmMC._y + (vec * speed);
speed = speed * (((++step) < sc.STEP_MAX) ? (sc.SPEED_DOWN) : (sc.SPEED_UP));
if (step >= sc.STEP_MAX) {
vec = 1;
}
if (step < sc.STEP_MAX) {
return(undefined);
}
if (topMC._y < first) {
return(undefined);
}
topMC._y = first;
btmMC._y = first;
delete this.onEnterFrame;
this.moveEnd();
};
}
function money(lineMC, num) {
var _local7 = this;
var _local6 = -1;
var _local2 = lineMC[TOP_MC + num];
var _local3 = lineMC[BTM_MC + num];
_local2._visible = true;
_local3._visible = true;
var step = 0;
var max = 10;
_local2.onEnterFrame = function () {
if ((++step) >= max) {
this.moveEnd();
}
};
}
function eraze(lineMC) {
lineMC.onEnterFrame = function () {
this._alpha = this._alpha - 30;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
}
function combo(num, pnum) {
var str = (num.toString() + "COMBO!");
var _local9 = scene.getNextHighestDepth();
var _local6 = scene.createEmptyMovieClip("comboMC" + _local9, _local9);
var _local7 = 0;
var _local3 = 0;
while (_local3 < str.length) {
var _local5 = _local6.attachMovie(BTM_MC, BTM_MC + _local3, _local6.getNextHighestDepth());
var _local4 = _local6.attachMovie(TOP_MC, TOP_MC + _local3, _local6.getNextHighestDepth());
_local4.gotoAndStop(str.charCodeAt(_local3));
_local5.gotoAndStop(str.charCodeAt(_local3));
_local4._alpha = 0;
_local5._alpha = 0;
var _local8 = new Color(_local5);
_local8.setRGB(16763904);
_local4._x = _local7;
_local5._x = _local7;
_local7 = _local7 + (_local4._width + 1);
_local3++;
}
_local6._x = scene["mc" + pnum]._x;
_local6._y = scene["mc" + pnum]._y;
var sc = this;
var numC = -1;
var count = 0;
_local6.onEnterFrame = function () {
this[sc.TOP_MC + count].moveEnd = function () {
count++;
};
if ((++numC) < str.length) {
sc.comboDisp(this, numC);
}
if (count < str.length) {
return(undefined);
}
delete this.onEnterFrame;
_global.setTimeout(function (mc) {
mc.onEnterFrame = function () {
this._x = this._x + 3;
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
}, 600, this);
};
}
function comboDisp(lineMC, num) {
var _local4 = this;
var topMC = lineMC[TOP_MC + num];
var btmMC = lineMC[BTM_MC + num];
topMC.onEnterFrame = function () {
topMC._alpha = topMC._alpha + 10;
btmMC._alpha = btmMC._alpha + 10;
if (topMC._alpha < 100) {
return(undefined);
}
delete this.onEnterFrame;
this.moveEnd();
};
}
var FIRST_SPEED = 4;
var SPEED_UP = 1.05;
var SPEED_DOWN = 0.8;
var STEP_MAX = 3;
var TOP_MC = "fontTopMC";
var BTM_MC = "fontBtmMC";
static var DAMAGE_MODE = 1;
static var MONEY_MODE = 2;
}
Symbol 3625 MovieClip [__Packages.pjam.fight.player.Attack] Frame 0
class pjam.fight.player.Attack
{
var mc, scene, area, cdata, some, effect, someKO, attackEnd, setBonus, someHitAway, someReAerial, someAerial, someHitBack, actionCansel;
function Attack (mc, scene, area, cdata, some, effect) {
this.mc = mc;
this.scene = scene;
this.area = area;
this.cdata = cdata;
this.some = some;
this.effect = effect;
}
function setActionCansel() {
actionCanselFlg = true;
}
function action(str, vec, moveFlg) {
actionCanselFlg = false;
actStep = 0;
if (str == pjam.fight.player.Player.POWER_STATE) {
spFlg = true;
}
mc.gotoAndStop(str + pjam.fight.player.Player.getVecStr(vec));
var sc = this;
mc.mc.onEnterFrame = function () {
sc.actionAct(str, vec, moveFlg);
};
}
function actionAct(str, vec, flg) {
if (actionCanselFlg == true) {
actionEndCmn(vec);
return(undefined);
}
if ((spFlg == true) && (str == pjam.fight.player.Player.POWER_STATE)) {
mc._x = mc._x + (cdata.spMove * vec);
}
if ((flg == true) && ((++actStep) < ATTACK_MOVE)) {
mc._x = mc._x + ((Math.floor(cdata.speed / 3) + 1) * vec);
}
if (pjam.fight.player.Player.setAreaPosition(mc, scene, area) == true) {
flg = false;
spFlg = false;
}
if (some.__get___cdata().hp > 0) {
readyHit(vec, str);
} else {
someKO();
}
if (mc.mc._currentframe != mc.mc._totalframes) {
return(undefined);
}
actionEndCmn(vec);
if (some.__get___cdata().hp > 0) {
attackEnd();
}
}
function actionEndCmn(vec) {
delete mc.mc.onEnterFrame;
}
function readyHit(vec, str) {
if ((str == pjam.fight.player.Player.MAGIC_STATE) && (some.__get___state() == pjam.fight.player.Player.ATTACK_STATE)) {
return(undefined);
}
if ((str == pjam.fight.player.Player.ATTACK_STATE) && (some.__get___state() == pjam.fight.player.Player.DEFENSE_STATE)) {
return(undefined);
}
if (str != pjam.fight.player.Player.DEFENSE_STATE) {
hitCheck(vec, mc.mc.hitS, str);
hitCheck(vec, mc.mc.hitM, str);
hitCheck(vec, mc.mc.hitH, str);
hitCheck(vec, mc.mc.hitUP, str);
} else {
defense(vec, some.__get___mc().mc.hitS);
defense(vec, some.__get___mc().mc.hitM);
defense(vec, some.__get___mc().mc.hitH);
defense(vec, some.__get___mc().mc.hitUP);
}
}
function hitCheck(vec, cMC, str) {
if (cMC == undefined) {
return(undefined);
}
if (cMC._visible == false) {
return(undefined);
}
if (cMC.hitTest(some.__get___mc().hitMC) == false) {
return(undefined);
}
cMC._visible = false;
var _local3 = cMC._name.substring(3, cMC._name.length);
if (str != pjam.fight.player.Player.POWER_STATE) {
setBonus(str);
}
if (damageGet(vec, cMC, str, _local3) == 0) {
return(undefined);
}
if ((mc._y == area.yMax) && (some.__get___mc()._y < area.yMax)) {
someHitAway();
} else if (some.__get___mc()._y < area.yMax) {
someReAerial();
} else if (_local3 == "UP") {
someAerial();
} else {
someHitBack(_local3);
}
actionCansel();
}
function damageGet(vec, cMC, str, hit) {
var _local2 = 0;
if ((str != pjam.fight.player.Player.POWER_STATE) && (pjam.fight.DamageGet.smashCheck(cdata.luck) == true)) {
_local2 = pjam.fight.DamageGet.smash(str, cdata);
effect.smash(mc, pjam.fight.player.Player.getVecStr(vec));
} else if (str != pjam.fight.player.Player.POWER_STATE) {
_local2 = pjam.fight.DamageGet.normal(str, hit, cdata, some.__get___cdata());
} else {
_local2 = pjam.fight.DamageGet.power(hit, cdata, some.__get___cdata());
}
return(some.dispDamage(_local2));
}
function defense(vec, cMC) {
if (cMC == undefined) {
return(undefined);
}
if (cMC._visible == false) {
return(undefined);
}
if (cMC.hitTest(mc.hitMC) == false) {
return(undefined);
}
if (some.__get___state() == pjam.fight.player.Player.MAGIC_STATE) {
return(undefined);
}
setBonus(pjam.fight.player.Player.DEFENSE_STATE);
effect.defense(mc, pjam.fight.player.Player.getVecStr());
someAerial();
actionCansel();
}
var ATTACK_MOVE = 6;
var actStep = 0;
var spFlg = true;
var actionCanselFlg = false;
}
Symbol 3626 MovieClip [__Packages.pjam.fight.DamageGet] Frame 0
class pjam.fight.DamageGet
{
function DamageGet () {
}
static function normal(state, hit, data1, data2) {
var _local1 = data1[state];
if (hit == "H") {
_local1 = _local1 + (_local1 * 0.1);
} else if (hit == "M") {
_local1 = _local1 + (_local1 * 0.07);
} else if (hit == "S") {
_local1 = _local1 + (_local1 * 0.04);
}
var _local3 = Math.floor(Math.random() * 10);
if (Math.floor(Math.random() * 2) == 0) {
_local1 = _local1 + _local3;
} else {
_local1 = _local1 - _local3;
}
_local1 = Math.floor(((_local1 * 0.3) + (data1.lv * 0.15)) - (data2.defense * 0.2));
if (_local1 <= 0) {
_local1 = 0;
if (data1.lv < 100) {
_local1 = Math.floor(Math.random() * 4) + 1;
} else if (data1.lv < 300) {
_local1 = Math.floor(Math.random() * 7) + 1;
} else if (data1.lv < 600) {
_local1 = Math.floor(Math.random() * 10) + 1;
} else {
_local1 = Math.floor(Math.random() * 15) + 1;
}
}
return(_local1);
}
static function power(hit, data1, data2) {
var _local1 = Math.floor(Math.random() * 2);
var _local2 = ((_local1 == 0) ? (pjam.fight.player.Player.ATTACK_STATE) : (pjam.fight.player.Player.MAGIC_STATE));
return(Math.ceil(normal(_local2, hit, data1, data2) * 0.8));
}
static function smashCheck(luck) {
return(((Math.floor(Math.random() * 500) < luck) ? true : false));
}
static function smash(state, data1) {
var _local1 = Math.floor(data1[state]);
var _local2 = Math.floor(Math.random() * 10);
if (Math.floor(Math.random() * 2) == 0) {
_local1 = _local1 + _local2;
} else {
_local1 = _local1 - _local2;
}
return(_local1);
}
}
Symbol 3627 MovieClip [__Packages.pjam.fight.player.Damage] Frame 0
class pjam.fight.player.Damage
{
var mc, scene, area, end;
function Damage (mc, scene, area) {
this.mc = mc;
this.scene = scene;
this.area = area;
}
function destroy() {
damageEndFlg = true;
delete mc.onEnterFrame;
}
function hitBack(vec, hit) {
comboNum++;
var sc = this;
var step = 0;
var _local2 = false;
mc.onEnterFrame = function () {
if (sc.damageEndFlg == true) {
return(undefined);
}
if (pjam.fight.player.Player.setAreaPosition(this, sc.scene, sc.area) == true) {
sc.hitBackMy(sc["BACK_" + hit] - step);
} else {
this._x = this._x + (pjam.fight.player.Damage.BACK_SPEED * (-vec));
}
if ((++step) >= sc["BACK_" + hit]) {
sc.damageEnd("wait", vec);
}
};
}
function aerial(vec) {
comboNum++;
mc.mc.gotoAndPlay(1);
var sc = this;
var step = 0;
var jnum = FIRST_AERIAL;
mc.onEnterFrame = function () {
if ((++step) < sc.AERIAL_MAX) {
this._y = this._y - ((jnum = jnum * sc.AERIAL_UP));
} else {
this._y = this._y + ((jnum = jnum * sc.AERIAL_DOWN));
}
if (this._y < sc.area.yMax) {
return(undefined);
}
if (sc.damageEndFlg == false) {
sc.damageEnd("wait", vec);
}
};
}
function hitAway(vec) {
comboNum++;
reAerialNum++;
var sc = this;
var _local2 = 0;
mc.onEnterFrame = function () {
this._y = this._y + sc.AWAY_DOWN_SPEED;
if (pjam.fight.player.Player.checkArea(this.hitMC, sc.scene, sc.area) == false) {
this._x = this._x - (vec * sc.AWAY_MOVE_SPEED);
}
if (this._y < sc.area.yMax) {
return(undefined);
}
if (sc.damageEndFlg == false) {
sc.damageEnd("ko", vec);
}
};
}
function reAerial(vec) {
comboNum++;
reAerialNum++;
var sc = this;
var step = 0;
var hitNum = ((reAerialNum > 3) ? 3 : (reAerialNum));
var jnum = this["FIRST_RE_AERIAL" + hitNum];
mc.onEnterFrame = function () {
if (pjam.fight.player.Player.checkArea(this.hitMC, sc.scene, sc.area) == false) {
this._x = this._x - (vec * sc.RE_AERIAL_MOVE);
}
var _local2 = sc["RE_AERIAL_MAX" + hitNum];
if ((++step) < _local2) {
this._y = this._y - ((jnum = jnum * sc.RE_AERIAL_UP));
} else {
this._y = this._y + ((jnum = jnum * sc.RE_AERIAL_DOWN));
}
if (this._y < sc.area.yMax) {
return(undefined);
}
if (sc.damageEndFlg == false) {
sc.damageEnd("wait", vec);
}
};
}
function ko(vec) {
comboNum++;
var sc = this;
var step = 0;
var jnum = pjam.fight.player.Jump.FIRST_JUMP;
mc.onEnterFrame = function () {
if (pjam.fight.player.Player.checkArea(this.hitMC, sc.scene, sc.area) == false) {
this._x = this._x - (vec * sc.RE_AERIAL_MOVE);
}
if ((++step) < pjam.fight.player.Jump.JUMP_MAX) {
this._y = this._y - ((jnum = jnum * pjam.fight.player.Jump.JUMP_UP));
} else {
this._y = this._y + ((jnum = jnum * pjam.fight.player.Jump.JUMP_DOWN));
}
if (this._y < sc.area.yMax) {
return(undefined);
}
sc.damageEnd("ko", vec);
};
}
function damageEnd(frame, vec) {
mc._y = area.yMax;
delete mc.onEnterFrame;
mc.gotoAndStop(frame + pjam.fight.player.Player.getVecStr(vec));
end(comboNum);
comboNum = 0;
reAerialNum = 0;
}
var damageEndFlg = false;
static var BACK_SPEED = 2;
var BACK_S = 3;
var BACK_M = 4;
var BACK_H = 6;
var FIRST_AERIAL = 25;
var AERIAL_UP = 0.7;
var AERIAL_DOWN = 1.4;
var AERIAL_MAX = 7;
var FIRST_AWAY = 25;
var AWAY_MOVE_SPEED = 6;
var AWAY_DOWN_SPEED = 6;
var AWAY_MAX = 14;
var FIRST_RE_AERIAL1 = 10;
var FIRST_RE_AERIAL2 = 8;
var FIRST_RE_AERIAL3 = 7;
var RE_AERIAL_MOVE = 4;
var RE_AERIAL_UP = 0.7;
var RE_AERIAL_DOWN = 1.4;
var RE_AERIAL_MAX1 = 6;
var RE_AERIAL_MAX2 = 5;
var RE_AERIAL_MAX3 = 3;
var comboNum = 0;
var reAerialNum = 0;
}
Symbol 3628 MovieClip [__Packages.pjam.fight.player.Jump] Frame 0
class pjam.fight.player.Jump
{
var mc, scene, area;
function Jump (mc, scene, area) {
this.mc = mc;
this.scene = scene;
this.area = area;
}
function destroy() {
aerialJump = 0;
delete mc.onEnterFrame;
}
function checkJump(num) {
return(((aerialJump >= num) ? false : true));
}
function changeVec() {
changeVecFlg = true;
}
function main(speed, vec, flg) {
aerialJump++;
var step = 0;
var jnum = FIRST_JUMP;
if (flg == true) {
mc.gotoAndStop("run" + pjam.fight.player.Player.getVecStr(vec));
} else {
mc.gotoAndStop("wait" + pjam.fight.player.Player.getVecStr(vec));
}
var sc = this;
var _local2 = false;
mc.onEnterFrame = function () {
if (sc.changeVecFlg == true) {
sc.changeVecFlg = false;
vec = vec * -1;
}
if (flg == true) {
this._x = this._x + (speed * vec);
}
if (pjam.fight.player.Player.setAreaPosition(this, sc.scene, sc.area) == true) {
flg = false;
}
if ((++step) < pjam.fight.player.Jump.JUMP_MAX) {
this._y = this._y - ((jnum = jnum * pjam.fight.player.Jump.JUMP_UP));
} else {
this._y = this._y + ((jnum = jnum * pjam.fight.player.Jump.JUMP_DOWN));
}
sc.aiActCheck();
if (this._y < sc.area.yMax) {
return(undefined);
}
sc.aerialJump = 0;
this._y = sc.area.yMax;
delete this.onEnterFrame;
sc.end();
};
}
static var FIRST_JUMP = 8;
static var JUMP_UP = 0.8;
static var JUMP_DOWN = 1.2;
static var JUMP_MAX = 7;
var aerialJump = 0;
var changeVecFlg = false;
}
Symbol 3629 MovieClip [__Packages.pjam.fight.player.Move] Frame 0
class pjam.fight.player.Move
{
var mc, scene, area, pnum, moveMC;
function Move (mc, scene, area, pnum) {
this.mc = mc;
this.scene = scene;
this.area = area;
this.pnum = pnum;
}
function checkMoveState() {
return(((moveMC.onEnterFrame != undefined) ? true : false));
}
function destroy() {
moveEndFlg = true;
moveMC.removeMovieClip();
}
function main(vec, speed) {
moveEndFlg = false;
mc.gotoAndStop("run" + pjam.fight.player.Player.getVecStr(vec));
var step = 0;
createMoveMC();
var sc = this;
moveMC.onEnterFrame = function () {
if (sc.moveEndFlg == true) {
sc.moveEndFunc(vec);
return(undefined);
}
sc.mc._x = sc.mc._x + (speed * vec);
if (pjam.fight.player.Player.checkArea(sc.mc.hitMC, sc.scene, sc.area) == true) {
step = sc.STEP_MAX;
sc.mc._x = sc.mc._x - (speed * vec);
}
if ((++step) < sc.STEP_MAX) {
return(undefined);
}
sc.moveEndFunc(vec);
};
}
function moveMouse(vec, speed) {
moveEndFlg = false;
var _local3 = mc.hitMC.getBounds(scene);
if ((_local3.xMin <= scene._xmouse) && (scene._xmouse <= _local3.xMax)) {
return(undefined);
}
mc.gotoAndStop("run" + pjam.fight.player.Player.getVecStr(vec));
createMoveMC();
var sc = this;
moveMC.onEnterFrame = function () {
if (sc.moveEndFlg == true) {
sc.moveEndFunc(vec);
return(undefined);
}
sc.mc._x = sc.mc._x + (speed * vec);
if (pjam.fight.player.Player.setAreaPosition(sc.mc, sc.scene, sc.area) == true) {
sc.moveEndFunc(vec);
return(undefined);
}
var _local1 = sc.mc.hitMC.getBounds(sc.scene);
if ((vec == 1) && (_local1.xMax < sc.scene._xmouse)) {
return(undefined);
}
if ((vec == -1) && (_local1.xMin > sc.scene._xmouse)) {
return(undefined);
}
sc.moveEndFunc(vec);
};
}
function hitBack(step, vec) {
moveEndFlg = false;
var sc = this;
var back = 0;
createMoveMC();
moveMC.onEnterFrame = function () {
if (sc.moveEndFlg == true) {
delete this.onEnterFrame;
return(undefined);
}
sc.mc._x = sc.mc._x + (pjam.fight.player.Damage.BACK_SPEED * (-vec));
if ((++back) >= step) {
delete this.onEnterFrame;
}
};
}
function aiMove(vec, speed, some) {
moveEndFlg = false;
mc.gotoAndStop("run" + pjam.fight.player.Player.getVecStr(vec));
var bns = mc.hitMC.getBounds(scene);
var point = ((vec == 1) ? (Math.floor(Math.random() * (area.xMax - bns.xMax)) + bns.xMax) : (Math.floor(Math.random() * (bns.xMin - area.xMin)) + area.xMin));
if (point > area.xMax) {
point = area.xMax;
}
if (point < area.xMin) {
point = area.xMin;
}
createMoveMC();
var sc = this;
moveMC.onEnterFrame = function () {
if (sc.moveEndFlg == true) {
return(undefined);
}
sc.mc._x = sc.mc._x + (speed * vec);
if ((sc.mc._y == sc.area.yMax) && (pjam.fight.player.AiPlayer.aiCheckNear(sc.mc, sc.scene, some) == true)) {
sc.moveEndFunc(vec);
sc.aiMoveEnd();
return(undefined);
}
var _local1 = sc.mc.hitMC.getBounds(sc.scene);
if ((vec == 1) && (_local1.xMax < point)) {
return(undefined);
}
if ((vec == -1) && (_local1.xMin > point)) {
return(undefined);
}
if ((vec == 1) && (bns.xMax >= point)) {
sc.mc._x = point - Math.floor(sc.mc.hitMC._width / 2);
} else if ((vec == -1) && (bns.xMin <= point)) {
sc.mc._x = point + Math.floor(sc.mc.hitMC._width / 2);
}
sc.moveEndFunc(vec);
sc.aiMoveEnd();
};
}
function moveEndFunc(vec) {
delete moveMC.onEnterFrame;
mc.gotoAndStop("wait" + pjam.fight.player.Player.getVecStr(vec));
}
function createMoveMC() {
moveMC.removeMovieClip();
moveMC = scene.createEmptyMovieClip("moveMC" + pnum, scene.getNextHighestDepth());
}
var moveEndFlg = false;
var STEP_MAX = 12;
}
Symbol 3630 MovieClip [__Packages.pjam.fight.player.AiPlayer] Frame 0
class pjam.fight.player.AiPlayer
{
var mc, scene, area, some, aiEndFlg, waitID, move, jump, action;
function AiPlayer (mc, scene, area, some, pnum) {
this.mc = mc;
this.scene = scene;
this.area = area;
this.some = some;
if (pnum == pjam.fight.player.Player.PLAYER_EN) {
actMode = Math.floor(Math.random() * AI_ACT_MAX);
}
}
function destroy() {
aiEndFlg = true;
clearInterval(waitID);
}
function nextAct(vec) {
aiEndFlg = false;
var _local2 = this["ACT_MODE" + actMode];
var _local3 = Math.floor(Math.random() * _local2.special);
if (_local3 < _local2.wait) {
wait(vec);
return(undefined);
}
if (_local3 < _local2.move) {
move();
return(undefined);
}
if (_local3 < _local2.jump) {
jump();
return(undefined);
}
if (aiCheckNear(mc, scene, some) == false) {
if (Math.floor(Math.random() * 10) != 0) {
wait(vec);
return(undefined);
}
}
if (_local3 < _local2.attack) {
action(pjam.fight.player.Player.ATTACK_STATE);
} else if (_local3 < _local2.magic) {
action(pjam.fight.player.Player.MAGIC_STATE);
} else if (_local3 < _local2.defense) {
action(pjam.fight.player.Player.DEFENSE_STATE);
} else {
action(pjam.fight.player.Player.POWER_STATE);
}
}
function wait(vec) {
mc.gotoAndStop("wait" + pjam.fight.player.Player.getVecStr(vec));
clearInterval(waitID);
var _local2 = Math.floor(Math.random() * WAIT_TIME);
waitID = setInterval(function (sc) {
if (sc.aiEndFlg == true) {
return(undefined);
}
clearInterval(sc.waitID);
sc.waitEnd();
}, _local2, this);
}
function aiCheckAct() {
if (((aiCheckNear(mc, scene, some) == true) && (Math.floor(Math.random() * NEAR_NXT_PER) >= NEAR_NON_PER)) || (Math.floor(Math.random() * RAN_NXT_PER) >= RAN_NON_PER)) {
return(true);
}
return(false);
}
static function aiCheckNear(mc, scene, some) {
var _local2 = mc.hitMC.getBounds(scene);
var _local1 = some.__get___mc().hitMC.getBounds(scene);
if ((mc._x > some.__get___mc()._x) && ((_local2.xMin - NEAR_DIS) <= _local1.xMax)) {
return(true);
}
if ((mc._x < some.__get___mc()._x) && ((_local2.xMax + NEAR_DIS) >= _local1.xMin)) {
return(true);
}
return(false);
}
function aiHitJump() {
if (Math.floor(Math.random() * HIT_JMP_PER) >= HIT_NON_PER) {
return(true);
}
return(false);
}
var actMode = 0;
var AI_ACT_MAX = 4;
var ACT_MODE0 = {wait:3, move:35, jump:45, attack:60, magic:85, defense:95, special:100};
var ACT_MODE1 = {wait:5, move:20, jump:30, attack:40, magic:50, defense:60, special:70};
var ACT_MODE2 = {wait:10, move:40, jump:45, attack:50, magic:55, defense:60, special:63};
var ACT_MODE3 = {wait:5, move:30, jump:35, attack:60, magic:70, defense:80, special:90};
var WAIT_TIME = 200;
static var NEAR_DIS = 15;
var NEAR_NON_PER = 3;
var NEAR_NXT_PER = 5;
var RAN_NON_PER = 190;
var RAN_NXT_PER = 200;
var HIT_NON_PER = 5;
var HIT_JMP_PER = 6;
}
Symbol 3631 MovieClip [__Packages.pjam.fight.player.Manual] Frame 0
class pjam.fight.player.Manual
{
var root, scene, keyLsnr, musLsnr;
function Manual (root, scene) {
this.root = root;
this.scene = scene;
keyLsnr = new Object();
musLsnr = new Object();
}
function setControl() {
setKey();
setMouse();
}
function removeControl() {
Key.removeListener(keyLsnr);
Mouse.removeListener(musLsnr);
}
function setCanselKey() {
var sc = this;
keyLsnr.onKeyDown = function () {
if (Key.getCode() != 38) {
return(undefined);
}
sc.setControl();
sc.jump();
};
musLsnr.onMouseDown = function () {
sc.setControl();
sc.jump();
};
Key.addListener(keyLsnr);
Mouse.addListener(musLsnr);
}
function setKey() {
var sc = this;
keyLsnr.onKeyDown = function () {
if (Key.getCode() == 37) {
sc.move(-1);
} else if (Key.getCode() == 39) {
sc.move(1);
} else if (Key.getCode() == 38) {
sc.jump();
} else if (Key.getCode() == 90) {
sc.action(pjam.fight.player.Player.ATTACK_STATE);
} else if (Key.getCode() == 65) {
sc.action(pjam.fight.player.Player.ATTACK_STATE);
} else if (Key.getCode() == 88) {
sc.action(pjam.fight.player.Player.MAGIC_STATE);
} else if (Key.getCode() == 83) {
sc.action(pjam.fight.player.Player.MAGIC_STATE);
} else if (Key.getCode() == 67) {
sc.action(pjam.fight.player.Player.DEFENSE_STATE);
} else if (Key.getCode() == 68) {
sc.action(pjam.fight.player.Player.DEFENSE_STATE);
} else if (Key.getCode() == 32) {
sc.action(pjam.fight.player.Player.POWER_STATE);
}
};
Key.addListener(keyLsnr);
}
function setMouse() {
var sc = this;
musLsnr.onMouseMove = function () {
if (sc.scene.mouseMC.hitTest(sc.root._xmouse, sc.root._ymouse, true)) {
sc.moveMouse();
}
};
musLsnr.onMouseDown = function () {
if (sc.scene.mouseMC.hitTest(sc.root._xmouse, sc.root._ymouse, true)) {
sc.jump();
}
};
Mouse.addListener(musLsnr);
}
}
Symbol 3632 MovieClip [__Packages.pjam.NextStage] Frame 0
class pjam.NextStage
{
var root, stage, nowMC, end;
function NextStage (root) {
this.root = root;
}
function start(id, vec) {
stage = root.stageMC.moveMC;
var _local3 = root.stageMC.getNextHighestDepth();
var nextMC = root.stageMC.attachMovie(id, id, _local3);
var path = ((vec == 1) ? (stage.leftMC) : (stage.rightMC));
setPoint(nowMC, stage.centerMC);
setPoint(nextMC, path);
var first = stage._x;
var point = ((stage.centerMC._x - path._x) - first);
var sc = this;
var speed = FIRST_SPEED;
stage.onEnterFrame = function () {
speed = speed * sc.MINUS_SPEED;
this._x = this._x + (vec * speed);
sc.setPoint(sc.nowMC, sc.stage.centerMC);
sc.setPoint(nextMC, path);
if ((vec == 1) && (point > this._x)) {
return(undefined);
}
if ((vec == -1) && (point < this._x)) {
return(undefined);
}
this._x = first;
sc.setPoint(nextMC, sc.stage.centerMC);
var _local2 = new Sound();
_local2.attachSound("nextSound");
_local2.start();
delete this.onEnterFrame;
sc.alphaEffect(nextMC);
};
}
function alphaEffect(nextMC) {
if (nowMC == undefined) {
nowMC = nextMC;
end();
return(undefined);
}
var sc = this;
nowMC.onEnterFrame = function () {
this._alpha = this._alpha - 25;
if (this._alpha > 0) {
return(undefined);
}
this.removeMovieClip();
sc.nowMC = nextMC;
sc.end();
};
}
function setPoint(mc, path) {
var _local2 = {x:path._x, y:path._y};
stage.localToGlobal(_local2);
mc._x = _local2.x - root.stageMC._x;
}
var FIRST_SPEED = 90;
var MINUS_SPEED = 0.7;
}
Symbol 3633 MovieClip [__Packages.pjam.EnemyData] Frame 0
class pjam.EnemyData
{
var root, pdata, enemyList;
function EnemyData (root, pdata) {
this.root = root;
this.pdata = pdata;
enemyList = new Object();
}
function getNetEnemy() {
root.loadMC._visible = true;
root.loadMC.gotoAndStop(1);
root.loadMC.maruMC.gotoAndPlay(1);
var sc = this;
var num = 0;
var func = function () {
sc.pdata.setRegistTime();
sc.root.loadMC._visible = false;
clearInterval(num);
sc.getEnd();
};
var _local4 = {mode:5, rank:"", data:""};
var _local2 = new net.LinkCGI();
_local2.suc = function (data) {
sc.root.loadMC.gotoAndStop("end");
sc.enemyList = data;
sc.enemyList.min = Number(data.min);
sc.enemyList.max = Number(data.max);
num = setInterval(func, pjam.CmnProject.LOADEND_TIME);
};
_local2.mis = function () {
sc.root.loadMC.gotoAndStop("end");
sc.enemyList.max = 0;
num = setInterval(func, pjam.CmnProject.LOADEND_TIME);
};
_local2.sendAndLoad(pjam.CmnProject.CGI_URL, "POST", _local4);
}
function encountPlayer(lv) {
if (enemyList.max <= 0) {
return(null);
}
var _local3 = Math.floor(Math.random() * enemyList.max) + enemyList.min;
var _local2 = pjam.Charactor.getCharData(root, enemyList["data" + _local3]);
if (_local2.name == undefined) {
_local2 = encountPlayer();
}
if (_local2.lv > pjam.fight.LvUp.getPlayerBestLv(lv)) {
return(null);
}
if (pjam.IllegalUserList.checkIllegal(_local2.uid, _local2.name) == true) {
return(null);
}
_local2.sp = 0;
return(_local2);
}
function destroy() {
}
}
Symbol 3634 MovieClip [__Packages.net.LinkCGI] Frame 0
class net.LinkCGI
{
function LinkCGI () {
}
function sendAndLoad(url, action, list) {
var _local5 = new LoadVars();
var _local3 = new LoadVars();
var _local6 = (url + "?") + Math.floor(Math.random() * 10000);
for (var _local4 in list) {
_local3[_local4] = list[_local4];
}
var sc = this;
_local5.onLoad = function (success) {
if (success == true) {
sc.suc(this);
} else {
sc.mis();
}
};
_local3.sendAndLoad(_local6, _local5, action);
}
function sendAndData(url, action, list) {
var _local5 = new LoadVars();
var _local3 = new LoadVars();
var _local6 = url;
for (var _local4 in list) {
_local3[_local4] = list[_local4];
}
var sc = this;
_local5.onData = function (data) {
if (data != undefined) {
sc.suc(data);
} else {
sc.mis();
}
};
_local3.sendAndLoad(_local6, _local5, action);
}
}
Symbol 3635 MovieClip [__Packages.pjam.IllegalUserList] Frame 0
class pjam.IllegalUserList
{
function IllegalUserList () {
}
static function checkIllegal(id, name) {
var _local1 = 0;
while (_local1 < LIST.length) {
if ((id == LIST[_local1].id) && (name == LIST[_local1].name)) {
return(true);
}
_local1++;
}
return(false);
}
static var LIST = [{id:95, name:"sodom"}, {id:229, name:"\u3042\u308B\u306F\u306B"}, {id:522, name:"ben", c:"URL"}, {id:440, name:"\u30AF\u30ED\u30A6"}, {id:2131, name:"\u30CF\u30F3\u30BF\u30FC"}, {id:4643, name:"\u6211\u662F\u8AB0?"}, {id:4869, name:"roof"}, {id:4750, name:"lovel"}, {id:5080, name:"\u6BC0\u6708"}, {id:1540, name:"123"}, {id:4884, name:"\u6953"}, {id:4659, name:"NEIL"}];
}
Symbol 3636 MovieClip [__Packages.pjam.head.Status] Frame 0
class pjam.head.Status
{
var root, scene, pdata;
function Status (root, pdata) {
this.root = root;
scene = root.statusMC;
this.pdata = pdata;
}
function start(data, check) {
var sc = this;
scene._visible = true;
root.closeBtn._visible = true;
scene.charMC.attachMovie(data.id, data.id, 1);
scene.moneyTxt.text = data.money;
scene.lvTxt.text = data.lv;
scene.exTxt.text = data.ex;
scene.hpTxt.text = data.hp;
scene.attackTxt.text = data.attack;
scene.magicTxt.text = data.magic;
scene.defenseTxt.text = data.defense;
scene.speedTxt.text = data.speed;
scene.luckTxt.text = data.luck;
scene.itemTxt0.text = pjam.Charactor.getItemName(root, data.item0);
scene.itemTxt1.text = pjam.Charactor.getItemName(root, data.item1);
scene.itemTxt2.text = pjam.Charactor.getItemName(root, data.item2);
scene.nameTxt.text = data.name;
scene.charNameTxt.text = data.charName;
scene.urlTxt.restrict = pjam.scene.CharCreate.OUT_STR;
scene.urlTxt.text = data.url;
var url = data.url;
if (url == "") {
scene.urlBtn._visible = false;
} else {
if (url.indexOf("http://") == -1) {
url = "http://" + url;
}
scene.urlBtn._visible = true;
scene.urlBtn.onPress = function () {
getURL (url, "_blank");
};
}
if (check == MY_DISP) {
pjam.SysLog.disp(root, "\u30B9\u30C6\u30FC\u30BF\u30B9\u4E00\u89A7\u8868\u793A\nWeb\u30B5\u30A4\u30C8URL\u306E\u7DE8\u96C6\u304C\u53EF\u80FD\u3067\u3059\u3002");
scene.urlTxt.type = "input";
scene.urlTxt.onChanged = function () {
sc.pdata.setUrl(this.text);
};
} else {
scene.urlTxt.type = "dynamic";
}
scene.dummyBtn.useHandCursor = false;
root.closeBtn.onPress = function () {
var _local2 = sc.scene.dummyBtn._target;
Selection.setFocus(_local2);
pjam.SysLog.disp(sc.root, " ");
this._visible = false;
sc.scene._visible = false;
delete sc.scene.urlTxt.onChanged;
};
var _local3 = new Sound();
_local3.attachSound("statusSound");
_local3.start();
}
static var MY_DISP = 1;
static var RK_DISP = 2;
}
Symbol 3637 MovieClip [__Packages.pjam.scene.CharCreate] Frame 0
class pjam.scene.CharCreate
{
var root, pdata, scene, mode, dataObj;
function CharCreate (root, pdata, mode) {
root.gotoAndStop("create");
this.root = root;
this.pdata = pdata;
scene = root.createMC;
this.mode = mode;
dataObj = new Object();
var _local2 = new Sound();
_local2.attachSound("nameSound");
_local2.start();
}
function start() {
scene.gotoAndStop("name");
if (dataObj.name != undefined) {
scene.nameTxt.text = dataObj.name;
}
scene.nameTxt.restrict = OUT_STR;
var sc = this;
scene.nextBtn.onRelease = function () {
if (sc.scene.nameTxt.text == "") {
return(undefined);
}
sc.dataObj.name = sc.scene.nameTxt.text;
sc.charSelect();
};
}
function charSelect() {
scene.gotoAndStop("char");
var path = root.charSet;
if (dataObj.charNum != undefined) {
path.selectedIndex = dataObj.charNum;
} else {
path.first();
}
var _local2 = path.currentItem.id;
scene.charMC.attachMovie(_local2, _local2, 0);
var sc = this;
scene.backBtn.onRelease = function () {
sc.start();
};
scene.nextBtn.onRelease = function () {
sc.dataObj.charNum = path.selectedIndex;
sc.enterCharName();
};
scene.charBackBtn.onPress = function () {
sc.selectChar(-1);
};
scene.charNextBtn.onPress = function () {
sc.selectChar(1);
};
}
function selectChar(num) {
var _local2 = root.charSet;
if ((num == 1) && ((_local2.selectedIndex + num) >= _local2.getLength())) {
_local2.selectedIndex = 0;
} else if ((num == -1) && ((_local2.selectedIndex + num) < 0)) {
_local2.selectedIndex = _local2.getLength() - 1;
} else {
_local2.selectedIndex = _local2.selectedIndex + num;
}
var _local4 = _local2.currentItem.id;
scene.charMC.attachMovie(_local4, _local4, 0);
if (mode == pjam.CmnProject.TEST_MODE) {
return(undefined);
}
if (_local2.currentItem.various == pjam.Charactor.VARIOUS_NORMAL) {
return(undefined);
}
selectChar(num);
}
function enterCharName() {
scene.gotoAndStop("charName");
if (dataObj.charName != undefined) {
scene.charNameTxt.text = dataObj.charName;
}
scene.charNameTxt.restrict = OUT_STR;
var sc = this;
scene.backBtn.onRelease = function () {
sc.charSelect();
};
scene.nextBtn.onRelease = function () {
if (sc.scene.charNameTxt.text == "") {
return(undefined);
}
sc.dataObj.charName = sc.scene.charNameTxt.text;
sc.setBonus();
};
}
function setBonus() {
scene.gotoAndStop("bonus");
scene.bonusTxt.text = restBonus;
scene.hpTxt.text = 0;
scene.attackTxt.text = 0;
scene.magicTxt.text = 0;
scene.defenseTxt.text = 0;
if (dataObj.hp != undefined) {
scene.hpTxt.text = dataObj.hp;
}
if (dataObj.attack != undefined) {
scene.attackTxt.text = dataObj.attack;
}
if (dataObj.magic != undefined) {
scene.magicTxt.text = dataObj.magic;
}
if (dataObj.defense != undefined) {
scene.defenseTxt.text = dataObj.defense;
}
var sc = this;
scene.backBtn.onRelease = function () {
sc.enterCharName();
};
scene.nextBtn.onRelease = function () {
sc.dataObj.hp = Number(sc.scene.hpTxt.text);
sc.dataObj.attack = Number(sc.scene.attackTxt.text);
sc.dataObj.magic = Number(sc.scene.magicTxt.text);
sc.dataObj.defense = Number(sc.scene.defenseTxt.text);
sc.enterURL();
};
setBonusBtn("hp");
setBonusBtn("attack");
setBonusBtn("magic");
setBonusBtn("defense");
if (restBonus > 0) {
scene.nextBtn.enabled = false;
scene.nextBtn._alpha = 50;
} else {
scene.nextBtn.enabled = true;
scene.nextBtn._alpha = 100;
}
}
function setBonusBtn(txt) {
var sc = this;
scene[txt + "BackBtn"].onPress = function () {
if (sc.scene[txt + "Txt"].text > 0) {
sc.restBonus++;
sc.scene.bonusTxt.text = sc.restBonus;
sc.scene[txt + "Txt"].text--;
if (sc.restBonus == 0) {
return(undefined);
}
sc.scene.nextBtn.enabled = false;
sc.scene.nextBtn._alpha = 50;
}
};
scene[txt + "NextBtn"].onPress = function () {
if (sc.restBonus > 0) {
sc.restBonus--;
sc.scene.bonusTxt.text = sc.restBonus;
sc.scene[txt + "Txt"].text++;
if (sc.restBonus > 0) {
return(undefined);
}
sc.scene.nextBtn.enabled = true;
sc.scene.nextBtn._alpha = 100;
}
};
}
function enterURL() {
scene.gotoAndStop("url");
if (dataObj.url != undefined) {
scene.urlTxt.text = dataObj.url;
}
scene.urlTxt.restrict = OUT_STR;
var sc = this;
scene.backBtn.onRelease = function () {
sc.setBonus();
};
scene.nextBtn.onRelease = function () {
sc.dataObj.url = sc.scene.urlTxt.text;
sc.createCheck();
};
}
function createCheck() {
scene.gotoAndStop("check");
var sc = this;
scene.backBtn.onRelease = function () {
sc.enterURL();
};
scene.okBtn.onRelease = function () {
sc.registData();
};
var _local2 = root.charSet.currentItem;
scene.nameTxt.text = dataObj.name;
scene.charNameTxt.text = dataObj.charName;
scene.urlTxt.text = dataObj.url;
var _local3 = _local2.id;
scene.charMC.attachMovie(_local3, _local3, scene.getNextHighestDepth());
scene.hpTxt.text = _local2.plusHp + dataObj.hp;
scene.attackTxt.text = _local2.plusAttack + dataObj.attack;
scene.magicTxt.text = _local2.plusMagic + dataObj.magic;
scene.defenseTxt.text = _local2.plusDefense + dataObj.defense;
scene.speedTxt.text = _local2.speed;
scene.luckTxt.text = _local2.luck;
scene.itemTxt0.text = _local2.item;
}
function registData() {
root.loadMC._visible = true;
root.loadMC.maruMC.gotoAndPlay(1);
root.gotoAndStop("menu");
root.loadMC.gotoAndStop("end");
var _local3 = root.charSet.currentItem;
pdata.create(_local3.charNum, dataObj.name, dataObj.charName, dataObj.hp, dataObj.attack, dataObj.magic, dataObj.defense, dataObj.url);
_global.setTimeout(function (sc) {
sc.registMsg();
}, pjam.CmnProject.LOADEND_TIME, this);
}
function registMsg() {
root.loadMC.gotoAndStop("msg");
root.loadMC.msgTxt.text = "\u30AD\u30E3\u30E9\u30AF\u30BF\u30FC\u4F5C\u6210\u5B8C\u4E86";
var sc = this;
root.loadMC.okBtn.onPress = function () {
sc.root.loadMC._visible = false;
sc.createEnd();
};
}
var BONUS_MAX = 5;
var restBonus = pjam.scene.CharCreate.prototype.BONUS_MAX;
static var OUT_STR = "^,%=";
}
Symbol 3638 MovieClip [__Packages.comp.TextEffect.Line] Frame 0
class comp.TextEffect.Line
{
var lineMC, fontData, color, type, soundFlg, width, align, index, headFlg, stopFlg, scope, lineEnd;
function Line () {
}
function start(str, lineMC, fontData, color, type, soundFlg, width, align, index, headFlg, stopFlg) {
this.lineMC = lineMC;
this.fontData = fontData;
this.color = color;
this.type = type;
this.soundFlg = soundFlg;
this.width = width;
this.align = align;
this.index = index;
this.headFlg = headFlg;
this.stopFlg = stopFlg;
disp(str);
}
function disp(str) {
str = changeStrExe(str);
var _local2 = new comp.TextEffect.Main();
_local2.scope = this;
_local2.textEnd = textEnd;
var _local3 = lineMC.createEmptyMovieClip("empMC" + mcNum, lineMC.getNextHighestDepth());
_local3._y = lineHeight;
_local2.disp(str, _local3, fontData, color, type, soundFlg, width, align);
}
function destroy() {
var _local2 = 0;
while (_local2 <= mcNum) {
lineMC["empMC" + _local2].removeMovieClip();
_local2++;
}
lineHeight = 0;
mcNum = 0;
changeFlg = false;
}
function textEnd(event) {
this=scope;//parameter overwritten
scope;
if (event.enter == true) {
mcNum++;
disp(event.rest);
} else if (event.rest != "") {
mcNum++;
lineHeight = lineHeight + index;
disp(event.rest);
} else {
lineEnd();
}
}
function changeStrExe(str) {
if (changeFlg == true) {
return(str);
}
changeFlg = true;
if (headFlg == true) {
str = "\u3000" + str;
}
if (stopFlg == false) {
return(str);
}
var _local4 = "";
var _local3 = str;
while (true) {
var _local2 = checkPoint(_local3);
_local4 = _local4 + _local2[0];
if (_local2[1] == null) {
break;
}
_local3 = _local2[1];
}
return(_local4);
}
function checkPoint(str) {
var _local4 = str.indexOf("\u3002");
if (_local4 == -1) {
return([str, null]);
}
if (_local4 == (str.length - 1)) {
return([str, null]);
}
var _local2 = util.StringEx.cutStr(str, "\u3002");
_local2[0] = _local2[0] + "\u3002\n";
if (headFlg == true) {
_local2[0] = _local2[0] + "\u3000";
}
return([_local2[0], _local2[1]]);
}
var lineHeight = 0;
var mcNum = 0;
var changeFlg = false;
}
Symbol 3639 MovieClip [__Packages.comp.TextEffect.Main] Frame 0
class comp.TextEffect.Main
{
var path, effectList, textEnd, empMC;
function Main () {
}
function disp(str, path, fontData, color, type, soundFlg, strWidth, align) {
this.soundFlg = soundFlg;
this.fontData = fontData;
restStr = "";
this.path = path;
var _local3 = createTextList(str);
effectList = createEffectList(str, path, _local3, color, type, strWidth);
if (effectList.length == 0) {
textEnd({rest:restStr, enter:true});
return(undefined);
}
comp.TextEffect.TextAlign.setAlign(effectList, align);
effectStart(effectList, path, type);
}
function soundStart(mc) {
if (soundFlg == false) {
return(undefined);
}
var _local2 = "";
if (mc._name.indexOf(fontData[MARK_CODE][0]) != -1) {
_local2 = fontData[MARK_CODE][2];
} else if (mc._name.indexOf(fontData[HIRA_CODE][0]) != -1) {
_local2 = fontData[HIRA_CODE][2];
} else if (mc._name.indexOf(fontData[KATA_CODE][0]) != -1) {
_local2 = fontData[KATA_CODE][2];
} else {
_local2 = fontData[KANJ_CODE][2];
}
var _local3 = new Sound(path);
_local3.attachSound(_local2);
_local3.start(0, 0);
}
function endExe(mc) {
var _local2 = util.StringEx.cutStr(mc._name, "MC")[1];
if (_local2 != (effectList.length - 1)) {
return(undefined);
}
textEnd({rest:restStr});
}
function destroy() {
var _local2 = 0;
while (_local2 < effectList.length) {
effectList[_local2].mc.removeMovieClip();
_local2++;
}
delete effectList;
delete empMC.onEnterFrame;
empMC.removeMovieClip();
}
function createTextList(str) {
var _local4 = new Array();
str = changeEnterStr(str);
var _local2 = 0;
while (_local2 < str.length) {
_local4.push(getFontTypeList(str.charAt(_local2)));
_local2++;
}
return(_local4);
}
function changeEnterStr(str) {
var _local1 = util.StringEx.cutStr(str, newline);
if (_local1[1] == null) {
return(str);
}
return((_local1[0] + ENTER_CHAR) + _local1[1]);
}
function getFontTypeList(char) {
var _local2 = char.charCodeAt(0);
var _local6 = checkFontType(_local2, MARK_CODE);
var _local3 = checkFontType(_local2, HIRA_CODE);
var _local4 = checkFontType(_local2, KATA_CODE);
if (_local6 != -1) {
return([fontData[MARK_CODE][0], char]);
}
if (_local3 != -1) {
return([fontData[HIRA_CODE][0], kanaStr.charAt(_local3)]);
}
if (_local4 != -1) {
return([fontData[KATA_CODE][0], kanaStr.charAt(_local4)]);
}
return([fontData[KANJ_CODE][0], char]);
}
function checkFontType(num, type) {
var _local1 = codeList[type][0];
var _local2 = 0;
while (_local1 <= codeList[type][1]) {
if (_local1 == num) {
return(_local2);
}
_local1++;
_local2++;
}
return(-1);
}
function createEffectList(str, path, list, color, type, strWidth) {
var _local9 = new Array();
var _local6 = 0;
var _local3 = 0;
while (_local3 < list.length) {
var _local2 = path.attachMovie(list[_local3][0], list[_local3][0] + _local3, _local3);
_local2[TEXT_NAME].text = list[_local3][1];
_local2[TEXT_NAME].textColor = color;
_local2[TEXT_NAME].autoSize = true;
var _local5 = new TextFormat();
_local5.size = getFontSize(list[_local3][0]);
_local2[TEXT_NAME].setTextFormat(_local5);
_local2._x = _local6;
if ((strWidth != 0) && (strWidth < ((_local6 + _local2._width) - 4))) {
_local2.removeMovieClip();
restStr = str.substring(_local3);
break;
}
if (_local2[TEXT_NAME].text == ENTER_CHAR) {
_local2.removeMovieClip();
restStr = str.substring(_local3 + 1);
break;
}
_local9.push(createEffectObj(_local2, type));
_local6 = _local6 + Math.ceil(_local2._width - 4);
_local3++;
}
_local9 = checkRandomType(type, _local9);
return(_local9);
}
function getFontSize(name) {
if (name == fontData[MARK_CODE][0]) {
return(fontData[MARK_CODE][1]);
}
if (name == fontData[HIRA_CODE][0]) {
return(fontData[HIRA_CODE][1]);
}
if (name == fontData[KATA_CODE][0]) {
return(fontData[KATA_CODE][1]);
}
return(fontData[KANJ_CODE][1]);
}
function createEffectObj(mc, type) {
if (type == TYPE0) {
return(new comp.TextEffect.effect.Line(mc, this));
}
if (type == TYPE1) {
return(new comp.TextEffect.effect.Normal(mc, this));
}
if (type == TYPE1_RAN) {
return(new comp.TextEffect.effect.Normal(mc, this));
}
if (type == TYPE2) {
return(new comp.TextEffect.effect.Drop(mc, this));
}
if (type == TYPE2_RAN) {
return(new comp.TextEffect.effect.Drop(mc, this));
}
if (type == TYPE3) {
return(new comp.TextEffect.effect.Wide(mc, this));
}
if (type == TYPE4) {
return(new comp.TextEffect.effect.Pop(mc, this));
}
}
function checkRandomType(type, list) {
if ((type == TYPE1_RAN) || (type == TYPE2_RAN)) {
list = util.ArrayEx.randomList(list);
}
return(list);
}
function effectStart(list, path, type) {
if (type == TYPE0) {
soundStart(list[list.length - 1].mc);
textEnd({rest:restStr});
return(undefined);
}
empMC = path.createEmptyMovieClip("empMC", path.getNextHighestDepth());
var _local2 = 0;
while (_local2 < list.length) {
list[_local2].mc._visible = false;
_local2++;
}
var count = 0;
var scope = this;
empMC.onEnterFrame = function () {
list[count].effect();
count++;
if (count >= list.length) {
delete scope.empMC.onEnterFrame;
}
};
}
var soundFlg = false;
var restStr = "";
static var kanaStr = "#3Ee$4%5&6tTgGhH:*bBxXdDrRpPcCqQaA[zZwWsSui1,kfFUvVI2\"J^~K-=Ljn]/m'7(8)9ol.;\\ 0 Yy";
static var codeList = [[33, 126], [12353, 12435], [12449, 12531]];
static var MARK_CODE = 0;
static var HIRA_CODE = 1;
static var KATA_CODE = 2;
static var KANJ_CODE = 3;
static var TEXT_NAME = "charTxt";
static var ENTER_CHAR = "\u0436";
static var TYPE0 = 0;
static var TYPE1 = 1;
static var TYPE1_RAN = 101;
static var TYPE2 = 2;
static var TYPE2_RAN = 102;
static var TYPE3 = 3;
static var TYPE4 = 4;
var fontData = null;
}
Symbol 3640 MovieClip [__Packages.comp.TextEffect.TextAlign] Frame 0
class comp.TextEffect.TextAlign
{
function TextAlign () {
}
static function setAlign(list, align) {
if (align == LEFT) {
return(undefined);
}
var _local1 = getStrLength(list);
if (align == CENTER) {
setCenter(list, _local1);
} else if (align == RIGHT) {
setRight(list, _local1);
}
}
static function getStrLength(list) {
var _local3 = 0;
var _local1 = 0;
while (_local1 < list.length) {
_local3 = _local3 + Math.ceil(list[_local1].mc._width - 4);
_local1++;
}
return(_local3);
}
static function setCenter(list, len) {
var _local1 = 0;
while (_local1 < list.length) {
list[_local1].mc._x = list[_local1].mc._x - (Math.floor(len / 2) + 1);
_local1++;
}
}
static function setRight(list, len) {
var _local1 = 0;
while (_local1 < list.length) {
list[_local1].mc._x = list[_local1].mc._x - len;
_local1++;
}
}
static var LEFT = 0;
static var CENTER = 1;
static var RIGHT = 2;
}
Symbol 3641 MovieClip [__Packages.util.StringEx] Frame 0
class util.StringEx
{
function StringEx () {
}
static function cutStr(str, clm) {
var _local1 = str.indexOf(clm);
if (_local1 == -1) {
return([str, null]);
}
var _local4 = str.substring(0, _local1);
var _local3 = str.substring(_local1 + clm.length);
return([_local4, _local3]);
}
static function insert(str, num, ins) {
var _local2 = str.substring(0, num);
var _local1 = str.substring(num);
return((_local2 + ins) + _local1);
}
static function placeFillNum(place, num, fill) {
var _local5 = place.toString();
var _local2 = num.toString();
var _local3 = fill.toString();
var _local1 = _local2.length;
while (_local1 < place) {
_local2 = _local3 + _local2;
_local1++;
}
return(_local2);
}
static function removeList(str, list) {
var _local1 = 0;
while (_local1 < list.length) {
str = remove(str, list[_local1]);
_local1++;
}
return(str);
}
static function remove(str, rem) {
while (true) {
var _local1 = cutStr(str, rem);
if (_local1[1] == null) {
return(_local1[0]);
}
str = _local1[0] + _local1[1];
}
}
static function checkHan(str) {
var _local1 = 0;
while (_local1 < str.length) {
if (str.charCodeAt(_local1) > 127) {
return(false);
}
_local1++;
}
return(true);
}
static function cutLineList(checkList, cut) {
var _local4 = new Array();
var _local3 = 0;
while (_local3 < checkList.length) {
var _local2 = checkList[_local3];
do {
var _local1 = cutStr(_local2, cut);
_local4.push(_local1[0]);
_local2 = _local1[1];
} while (_local1[1] != null);
_local3++;
}
return(_local4);
}
}
Symbol 3642 MovieClip [__Packages.comp.TextEffect.effect.Effect] Frame 0
interface comp.TextEffect.effect.Effect
{
}
Symbol 3643 MovieClip [__Packages.comp.TextEffect.effect.Line] Frame 0
class comp.TextEffect.effect.Line implements comp.TextEffect.effect.Effect
{
var mc, textEffect;
function Line (mc, textEffect) {
this.mc = mc;
this.textEffect = textEffect;
}
function effect() {
}
}
Symbol 3644 MovieClip [__Packages.comp.TextEffect.effect.Normal] Frame 0
class comp.TextEffect.effect.Normal implements comp.TextEffect.effect.Effect
{
var mc, textEffect;
function Normal (mc, textEffect) {
this.mc = mc;
this.textEffect = textEffect;
}
function effect() {
mc._visible = true;
textEffect.soundStart(mc);
textEffect.endExe(mc);
}
}
Symbol 3645 MovieClip [__Packages.comp.TextEffect.effect.Drop] Frame 0
class comp.TextEffect.effect.Drop implements comp.TextEffect.effect.Effect
{
var mc, textEffect, scope;
function Drop (mc, textEffect) {
this.mc = mc;
this.textEffect = textEffect;
}
function effect() {
mc._y = FIRST_Y_POS;
mc._visible = true;
mc._alpha = 50;
mc.scope = this;
mc.onEnterFrame = move;
}
function move() {
this=scope;//parameter overwritten
scope;
mc._y = mc._y + speed;
mc._alpha = mc._alpha + 20;
speed = speed * PLUS_SPEED;
if (mc._y < 0) {
return(undefined);
}
mc._y = 0;
mc._alpha = 100;
delete mc.onEnterFrame;
textEffect.soundStart(mc);
textEffect.endExe(mc);
}
var FIRST_Y_POS = -5;
var PLUS_SPEED = 1.2;
var speed = 1;
}
Symbol 3646 MovieClip [__Packages.comp.TextEffect.effect.Wide] Frame 0
class comp.TextEffect.effect.Wide implements comp.TextEffect.effect.Effect
{
var mc, textEffect, scope;
function Wide (mc, textEffect) {
this.mc = mc;
this.textEffect = textEffect;
}
function effect() {
mc._yscale = 0;
mc._visible = true;
mc.scope = this;
mc.onEnterFrame = move;
}
function move() {
this=scope;//parameter overwritten
scope;
mc._yscale = mc._yscale + 20;
if (mc._yscale < 100) {
return(undefined);
}
mc._yscale = 100;
delete mc.onEnterFrame;
textEffect.soundStart(mc);
textEffect.endExe(mc);
}
}
Symbol 3647 MovieClip [__Packages.comp.TextEffect.effect.Pop] Frame 0
class comp.TextEffect.effect.Pop implements comp.TextEffect.effect.Effect
{
var mc, textEffect;
function Pop (mc, textEffect) {
this.mc = mc;
this.textEffect = textEffect;
}
function effect() {
mc._yscale = 0;
mc._visible = true;
var sc = this;
var step = 0;
mc.onEnterFrame = function () {
this._yscale = sc.LIST[step].h;
this._y = sc.LIST[step].y;
if ((++step) <= sc.LIST.length) {
return(undefined);
}
this._yscale = 100;
delete this.onEnterFrame;
sc.textEffect.soundStart(this);
sc.textEffect.endExe(this);
};
}
var UP = 0.8;
var DOWN = 1.2;
var STEP = 5;
var LIST = [{h:30, y:0}, {h:62, y:-5}, {h:87, y:-9}, {h:130, y:-10}, {h:145, y:-9}, {h:123, y:-7}, {h:100, y:0}];
}
Symbol 3648 MovieClip [__Packages.util.ArrayEx] Frame 0
class util.ArrayEx
{
function ArrayEx () {
}
static function checkList(data, list) {
var _local1 = 0;
while (_local1 < list.length) {
if (list[_local1] == data) {
return(true);
}
_local1++;
}
return(false);
}
static function randomList(list) {
var _local3 = new Array();
while (true) {
if (_local3.length >= list.length) {
break;
}
var _local1 = Math.floor(Math.random() * list.length);
if (checkList(list[_local1], _local3) == true) {
continue;
}
_local3.push(list[_local1]);
}
return(_local3);
}
static function checkListNum(list, max) {
var _local3 = Math.floor(Math.random() * max);
var _local1 = 0;
while (_local1 < list.length) {
if (list[_local1] == _local3) {
_local3 = checkListNum(list, max);
}
_local1++;
}
return(_local3);
}
static function getRandomData(list, max) {
var _local5 = new Array();
var _local3 = new Array();
var _local2 = 0;
while (_local2 < max) {
var _local1 = checkListNum(_local3, max);
_local3.push(_local1);
_local5.push(list[_local1]);
_local2++;
}
return(_local5);
}
}
Symbol 3649 MovieClip [__Packages.pjam.SysLog] Frame 0
class pjam.SysLog
{
static var timerID;
function SysLog () {
}
static function disp(root, str) {
delete root.loghideMC.onEnterFrame;
root.loghideMC._alpha = 0;
clearInterval(timerID);
lineObj.destroy();
lineObj.lineEnd = function () {
var _local2 = {interval:function () {
clearInterval(pjam.SysLog.timerID);
root.loghideMC.onEnterFrame = function () {
if (((this._alpha = this._alpha + 10)) < 100) {
return(undefined);
}
delete this.onEnterFrame;
pjam.SysLog.lineObj.destroy();
};
}};
pjam.SysLog.timerID = setInterval(_local2.interval, 4000);
};
lineObj.start(str, root.syslogMC, FONT_DATA, 3154192, comp.TextEffect.Main.TYPE1, false, 220, comp.TextEffect.TextAlign.LEFT, 14, false, false);
}
static var lineObj = new comp.TextEffect.Line();
static var FONT_DATA = [["markMC", 10, ""], ["hiraMC", 16, ""], ["kataMC", 16, ""], ["kanjMC", 10, ""]];
}
Symbol 3650 MovieClip [__Packages.pjam.head.SoundControl] Frame 0
class pjam.head.SoundControl
{
var root, scene, sound;
function SoundControl (root) {
this.root = root;
scene = root.musicMC;
sound = new Sound(root.bgmMC);
scene.dummyBtn.useHandCursor = false;
}
function playSound(id) {
sound.stop();
sound.attachSound(id);
sound.start(0, 10000);
}
function dispControl() {
scene._visible = true;
root.closeBtn._visible = true;
var sc = this;
root.closeBtn.onPress = function () {
sc.root.closeBtn._visible = false;
sc.scene._visible = false;
};
scene.okBtn.onPress = root.closeBtn.onPress;
var bar = sc.scene.barBtn;
var len = (scene.maxMC._x - scene.minMC._x);
bar._x = Math.floor((len * sound.getVolume()) / 100) + scene.minMC._x;
bar.onPress = function () {
sc.scene.onEnterFrame = function () {
bar._x = sc.scene._xmouse;
if (bar._x > sc.scene.maxMC._x) {
bar._x = sc.scene.maxMC._x;
}
if (bar._x < sc.scene.minMC._x) {
bar._x = sc.scene.minMC._x;
}
var _local1 = ((bar._x - sc.scene.minMC._x) * 100) / len;
sc.sound.setVolume(_local1);
};
};
bar.onRelease = function () {
delete sc.scene.onEnterFrame;
};
bar.onReleaseOutside = bar.onRelease;
}
}
Symbol 3651 MovieClip [__Packages.pjam.head.Help] Frame 0
class pjam.head.Help
{
var root, scene, sound, credit;
function Help (root, sound) {
this.root = root;
scene = root.helpMC;
this.sound = sound;
credit = new pjam.head.Credit(root);
}
function start(data, check) {
var sc = this;
scene._visible = true;
root.closeBtn._visible = true;
page = 1;
scene.gotoAndStop(1);
scene.topBtn.onPress = function () {
sc.page = 1;
sc.scene.gotoAndStop(1);
sc.setMenu();
};
scene.topBtn.onRollOver = function () {
pjam.SysLog.disp(sc.root, "\u76EE\u6B21\u3092\u8868\u793A\u3057\u307E\u3059\u3002");
};
scene.dummyBtn.useHandCursor = false;
root.closeBtn.onPress = function () {
pjam.SysLog.disp(sc.root, " ");
sc.root.closeBtn._visible = false;
sc.scene._visible = false;
sc.sound.playSound("mainSound");
sc.credit.destroy();
};
scene.closeBtn2.onPress = root.closeBtn.onPress;
setMenu();
var _local2 = new Sound();
_local2.attachSound("statusSound");
_local2.start();
sound.playSound("songSound");
}
function setMenu() {
var sc = this;
scene.backBtn._alpha = 50;
scene.backBtn.enabled = false;
setNextBtn();
var _local2 = 2;
while (_local2 <= PAGE_MAX) {
scene["btn" + _local2].num = _local2;
scene["btn" + _local2].onPress = function () {
sc.page = this.num;
sc.scene.gotoAndStop(this.num);
sc.setBackBtn();
sc.setNextBtn();
if (sc.page == sc.PAGE_MAX) {
sc.creditDisp();
}
};
_local2++;
}
}
function setBackBtn() {
var sc = this;
scene.backBtn._alpha = 100;
scene.backBtn.enabled = true;
scene.backBtn.onPress = function () {
sc.backFunc();
};
}
function setNextBtn() {
var sc = this;
scene.nextBtn._alpha = 100;
scene.nextBtn.enabled = true;
scene.nextBtn.onPress = function () {
sc.nextFunc();
};
}
function nextFunc() {
if (page == PAGE_MAX) {
return(undefined);
}
setBackBtn();
scene.nextFrame();
if ((++page) == PAGE_MAX) {
creditDisp();
}
}
function backFunc() {
if (page == 1) {
return(undefined);
}
setNextBtn();
scene.prevFrame();
if ((--page) == 1) {
setMenu();
}
}
function creditDisp() {
scene.nextBtn._alpha = 50;
scene.nextBtn.enabled = false;
delete scene.nextBtn.onPress;
credit.main();
}
var PAGE_MAX = 10;
var page = 1;
}
Symbol 3652 MovieClip [__Packages.pjam.head.Credit] Frame 0
class pjam.head.Credit
{
var root, scene;
function Credit (root) {
this.root = root;
scene = root.helpMC;
}
function main() {
var sc = this;
var _local2 = 0;
while (_local2 < CHAR_NUM) {
scene.stageMC["charBtn" + _local2].url = this["CHAR_URL" + _local2];
scene.stageMC["charBtn" + _local2].onPress = function () {
getURL (this.url, "_blank");
};
scene.stageMC["btn" + _local2].url = this["BTN" + _local2];
scene.stageMC["btn" + _local2].onPress = function () {
getURL (this.url, "_blank");
};
_local2++;
}
var area = scene.areaMC.getBounds(root);
scene.stageMC.onEnterFrame = function () {
var _local2 = this.getBounds(sc.root);
if ((sc.root._ymouse > sc.scene.topMC._y) && (sc.root._ymouse < sc.scene.btmMC._y)) {
return(undefined);
}
if (sc.root._ymouse < sc.scene.topMC._y) {
this._y = this._y + sc.MOVE;
if (_local2.yMin > area.yMin) {
this._y = this._y - sc.MOVE;
}
} else {
this._y = this._y - sc.MOVE;
if (_local2.yMax < area.yMax) {
this._y = this._y + sc.MOVE;
}
}
};
}
function destroy() {
delete scene.stageMC.onEnterFrame;
}
var MOVE = 5;
var CHAR_NUM = 4;
var CHAR_URL0 = "http://prmr.hp.infoseek.co.jp";
var CHAR_URL1 = "http://www1.odn.ne.jp/haccan/";
var CHAR_URL2 = "http://yougado.chips.jp/";
var CHAR_URL3 = "http://www.dango-itimi.com";
var BTN0 = "http://www.dango-itimi.com";
var BTN1 = "http://www.dango-itimi.com/blog/";
var BTN2 = "mailto:webmaster@dango-itimi.com";
}
Symbol 3653 MovieClip [__Packages.pjam.LoadCheck] Frame 0
class pjam.LoadCheck
{
var root, scene;
function LoadCheck (root) {
this.root = root;
scene = root.loadingMC;
}
function open() {
var sc = this;
root.onEnterFrame = function () {
if (this._framesloaded < sc.FIRST_NUM) {
return(undefined);
}
sc.root.gotoAndStop("open");
delete this.onEnterFrame;
sc.root.openFirstMC.onEnterFrame = function () {
if (this._currentframe < this._totalframes) {
return(undefined);
}
delete this.onEnterFrame;
sc.root.onEnterFrame = function () {
if (this._framesloaded < sc.OPEN_NUM) {
return(undefined);
}
delete this.onEnterFrame;
sc.openEnd();
};
};
sc.root.loadingMC.barMC._visible = false;
};
}
function main() {
root.gotoAndStop("load");
root.btn.useHandCursor = false;
scene.barMC._visible = true;
var sc = this;
root.onEnterFrame = function () {
var _local2 = (this.getBytesLoaded() * 100) / this.getBytesTotal();
sc.scene.barMC._width = (_local2 * sc.scene.barMaxMC._width) / 100;
if (_local2 >= 100) {
delete this.onEnterFrame;
sc.end();
}
};
}
function end() {
scene.nextFrame();
var sc = this;
root.btn.onPress = function () {
sc.feedOut();
};
}
function feedOut() {
var _local2 = new Sound();
_local2.attachSound("startSound");
_local2.start();
var sc = this;
root.openMC.onEnterFrame = function () {
sc.root.loadingMC._alpha = sc.root.loadingMC._alpha - 5;
if (((this._alpha = this._alpha - 5)) > 0) {
return(undefined);
}
delete this.onEnterFrame;
sc.loadEnd();
};
}
var FIRST_NUM = 11;
var OPEN_NUM = 16;
}
Symbol 3654 MovieClip [__Packages.pjam.scene.FakeDisp] Frame 0
class pjam.scene.FakeDisp
{
var root, scene;
function FakeDisp (root) {
this.root = root;
scene = root.stageMC.fakeMC;
}
function main() {
var sc = this;
scene.okBtn.onPress = function () {
sc.end();
};
}
}
Symbol 3655 MovieClip [__Packages.pjam.scene.MainMenu] Frame 0
class pjam.scene.MainMenu
{
var root, scene;
function MainMenu (root) {
this.root = root;
scene = root.stageMC.mainMenuMC;
}
function start(pdata) {
var _local2 = pdata.checkRegistTime();
if (_local2 != 0) {
limit(pdata, _local2);
} else {
normal();
}
}
function limit(pdata, rest) {
var sc = this;
scene.rankBtn._alpha = 70;
scene.registBtn._alpha = 70;
scene.rankBtn.onRollOver = function () {
sc.limitCmn(pdata, "\u79D2\u5F8C\u306B\u30E9\u30F3\u30AD\u30F3\u30B0\u95B2\u89A7\u304C\u53EF\u80FD\u3067\u3059\u3002");
};
scene.registBtn.onRollOver = function () {
sc.limitCmn(pdata, "\u79D2\u5F8C\u306B\u30B2\u30FC\u30E0\u30C7\u30FC\u30BF\u3092\u30CD\u30C3\u30C8\u767B\u9332\u3059\u308B\u3053\u3068\u304C\u53EF\u80FD\u3067\u3059\u3002");
};
cmn();
}
function limitCmn(pdata, str) {
var _local2 = pdata.checkRegistTime();
if (_local2 == 0) {
normal();
} else {
pjam.SysLog.disp(root, Math.floor(_local2 / 1000) + str);
}
}
function normal() {
var sc = this;
scene.rankBtn._alpha = 100;
scene.registBtn._alpha = 100;
scene.rankBtn.onPress = function () {
sc.destroy();
sc.selectRank();
};
scene.registBtn.onPress = function () {
sc.destroy();
sc.selectRegist();
};
scene.rankBtn.onRollOver = function () {
pjam.SysLog.disp(sc.root, "\u30E9\u30F3\u30AD\u30F3\u30B0\u3092\u8868\u793A\u3057\u307E\u3059\u3002");
};
scene.registBtn.onRollOver = function () {
pjam.SysLog.disp(sc.root, "\u30B2\u30FC\u30E0\u30C7\u30FC\u30BF\u3092\u30CD\u30C3\u30C8\u306B\u767B\u9332\u3057\u307E\u3059\u3002");
};
cmn();
}
function cmn() {
var sc = this;
scene.gameBtn.onPress = function () {
sc.destroy();
sc.selectGame();
};
scene.deleteBtn.onPress = function () {
sc.destroy();
sc.selectDelete();
};
scene.gameBtn.onRollOver = function () {
pjam.SysLog.disp(sc.root, "\u30E1\u30A4\u30F3\u30B2\u30FC\u30E0\u3092\u958B\u59CB\u3057\u307E\u3059\u3002");
};
scene.deleteBtn.onRollOver = function () {
pjam.SysLog.disp(sc.root, "\u30B2\u30FC\u30E0\u30C7\u30FC\u30BF\u3092\u524A\u9664\u3057\u307E\u3059\u3002");
};
}
function destroy() {
delete scene.gameBtn.onPress;
delete scene.rankBtn.onPress;
delete scene.registBtn.onPress;
delete scene.deleteBtn.onPress;
}
}
Symbol 3656 MovieClip [__Packages.pjam.scene.Ranking] Frame 0
class pjam.scene.Ranking
{
var root, scene, pdata, rankData, moveID, moveNum;
function Ranking (root, pdata) {
this.root = root;
scene = root.rankMC;
this.pdata = pdata;
scene.dummyBtn.useHandCursor = false;
scene.mc.setMask(scene.maskMC);
scene.upBtn1.useHandCursor = false;
scene.upBtn2.useHandCursor = false;
scene.downBtn1.useHandCursor = false;
scene.downBtn2.useHandCursor = false;
}
function start() {
root.loadMC._visible = true;
root.loadMC.gotoAndStop(1);
root.loadMC.maruMC.gotoAndPlay(1);
var _local3 = {mode:4, rank:RANK_MAX, data:""};
var sc = this;
var num = 0;
var _local2 = new net.LinkCGI();
_local2.suc = function (data) {
sc.rankData = data;
sc.pdata.setRegistTime();
sc.root.loadMC.gotoAndStop("end");
num = setInterval(function () {
clearInterval(num);
sc.dispStart();
}, 1000);
};
_local2.mis = function () {
sc.dispErr();
};
_local2.sendAndLoad(pjam.CmnProject.CGI_URL, "POST", _local3);
}
function dispStart() {
root.loadMC._visible = false;
var sc = this;
scene._visible = true;
scene._alpha = 0;
scene.onEnterFrame = function () {
if (((this._alpha = this._alpha + 25)) < 100) {
return(undefined);
}
delete this.onEnterFrame;
sc.dispMyRank();
sc.selectRank();
};
}
function selectRank() {
var sc = this;
scene.mc.backBtn.onPress = function () {
sc.dispEnd();
};
var _local2 = 0;
var _local3 = 0;
while (_local2 < RANK_MAX) {
scene.mc["rankBtn" + _local3].onPress = pushRankBtn(_local2);
_local2 = _local2 + RANK_BLOCK;
_local3++;
}
}
function dispMyRank() {
var _local2 = 0;
while (_local2 < RANK_MAX) {
if (rankData["data" + _local2] == undefined) {
scene.mc.rankTxt.text = "-";
break;
}
var _local3 = rankData["data" + _local2].split(",");
if (pdata.getID() != _local3[0]) {
} else {
scene.mc.rankTxt.text = _local2 + 1;
break;
}
_local2++;
}
}
function pushRankBtn(num) {
var sc = this;
return(function () {
sc.moveNum = num;
delete sc.scene.mc.backBtn.onPress;
var _local2 = 0;
while (_local2 < sc.RANK_MAX) {
delete sc.scene.mc["btn" + _local2].onPress;
_local2 = _local2 + sc.RANK_BLOCK;
}
var xPos = (-sc.scene.mc.movePointMC._x);
sc.stageSpeed = sc.STAGE_FIRST_SPEED;
sc.scene.mc.onEnterFrame = function () {
sc.stageSpeed = sc.stageSpeed * sc.STAGE_MINUS_SPEED;
this._x = this._x - sc.stageSpeed;
if (sc.scene.mc._x > xPos) {
return(undefined);
}
sc.scene.mc._x = xPos;
delete this.onEnterFrame;
sc.dispRank();
};
});
}
function dispRank() {
var sc = this;
scene.upBtn1.onRollOver = function () {
sc.moveRank(1, -1);
};
scene.upBtn2.onRollOver = function () {
sc.moveRank(2, -1);
};
scene.downBtn1.onRollOver = function () {
sc.moveRank(1, 1);
};
scene.downBtn2.onRollOver = function () {
sc.moveRank(2, 1);
};
scene.upBtn1.onRollOut = function () {
clearInterval(sc.moveID);
sc.scene.mc.selectUpMC.gotoAndStop(1);
sc.scene.mc.selectDownMC.gotoAndStop(1);
};
scene.upBtn2.onRollOut = scene.upBtn1.onRollOut;
scene.downBtn1.onRollOut = scene.upBtn1.onRollOut;
scene.downBtn2.onRollOut = scene.upBtn1.onRollOut;
scene.mc.changeBtn.onPress = function () {
delete sc.scene.upBtn1.onRollOver;
delete sc.scene.upBtn2.onRollOver;
delete sc.scene.downBtn1.onRollOver;
delete sc.scene.downBtn2.onRollOver;
delete sc.scene.upBtn1.onRollOut;
delete sc.scene.upBtn2.onRollOut;
delete sc.scene.downBtn1.onRollOut;
delete sc.scene.downBtn2.onRollOut;
sc.stageSpeed = sc.STAGE_FIRST_SPEED;
sc.scene.mc.onEnterFrame = function () {
sc.stageSpeed = sc.stageSpeed * sc.STAGE_MINUS_SPEED;
this._x = this._x + sc.stageSpeed;
if (sc.scene.mc._x < 0) {
return(undefined);
}
sc.scene.mc._x = 0;
delete this.onEnterFrame;
sc.selectRank();
};
};
dispData();
}
function moveRank(speed, vec) {
if (vec == 1) {
scene.mc.selectDownMC.nextFrame();
} else {
scene.mc.selectUpMC.nextFrame();
}
clearInterval(moveID);
var _local2 = new Object();
_local2.interval = function (sc) {
sc.moveNum = sc.moveNum + vec;
sc.dispData();
};
moveID = setInterval(_local2.interval, this["SPEED" + speed], this);
}
function dispData() {
if (moveNum < 0) {
moveNum++;
return(undefined);
}
if (moveNum > (RANK_MAX - DISP_RANK)) {
moveNum--;
return(undefined);
}
var sc = this;
var _local4 = moveNum;
var _local5 = 0;
while (_local4 < (moveNum + DISP_RANK)) {
var _local2 = scene.mc["dataMC" + _local5];
_local2.rankTxt.text = _local4 + 1;
if (rankData["data" + _local4] != undefined) {
var _local3 = pjam.Charactor.getCharData(root, rankData["data" + _local4]);
var _local6 = _local2.charMC.mc.attachMovie(_local3.id, _local3.id, 1);
_local2.charMC.mc._visible = true;
_local6.mc.gotoAndStop(1);
_local2.moneyTxt.text = _local3.money;
_local2.nameTxt.text = _local3.name;
_local2.charNameTxt.text = _local3.charName;
_local2.nameTxt.textColor = ((_local3.url != "") ? (URL_COLOR) : (NON_COLOR));
_local2.backBtn.obj = _local3;
_local2.backBtn.onPress = function () {
clearInterval(sc.moveID);
var _local2 = new pjam.head.Status(sc.root, null);
_local2.start(this.obj, pjam.head.Status.RK_DISP);
};
} else {
_local2.charMC.mc.removeMovieClip();
_local2.charMC.mc._visible = false;
_local2.moneyTxt.text = "-";
_local2.nameTxt.text = "";
_local2.charNameTxt.text = "";
}
_local4++;
_local5++;
}
}
function dispEnd() {
clearInterval(moveID);
var sc = this;
scene.onEnterFrame = function () {
this._alpha = this._alpha - 25;
if (this._alpha > 0) {
return(undefined);
}
delete this.onEnterFrame;
sc.scene._visible = false;
sc.end();
};
}
function dispErr() {
var sc = this;
scene.mc.backBtn.onPress = function () {
sc.scene._visible = false;
};
}
var SPEED1 = 100;
var SPEED2 = 50;
var STAGE_MINUS_SPEED = 0.9;
var STAGE_FIRST_SPEED = 20;
var RANK_MAX = 500;
var DISP_RANK = 5;
var RANK_BLOCK = 50;
var URL_COLOR = 10044416;
var NON_COLOR = 0;
}
Symbol 3657 MovieClip [__Packages.pjam.scene.Regist] Frame 0
class pjam.scene.Regist
{
var root, pdata, edata, scene;
function Regist (root, pdata, edata) {
this.root = root;
this.pdata = pdata;
this.edata = edata;
scene = root.stageMC.registMC;
}
function start() {
var _local2 = pdata.checkRegistTime();
if (_local2 == 0) {
dataRegist();
} else {
nonRegist(_local2);
}
}
function nonRegist(rest) {
var sc = this;
scene.nextFrame();
scene.timeTxt.text = Math.floor(rest / 1000) + "\u79D2\u5F8C\u306B";
scene.backBtn.onPress = function () {
sc.registEnd();
};
}
function dataRegist() {
root.loadMC._visible = true;
root.loadMC.gotoAndStop(1);
root.loadMC.maruMC.gotoAndPlay(1);
var _local8 = root.charSet.currentItem;
var id = pdata.getID();
var _local3 = null;
if (id == -1) {
_local3 = {mode:1, rank:pjam.CmnProject.RANK_NUM, data:pdata.firstRegistData()};
} else {
_local3 = {mode:2, rank:pjam.CmnProject.RANK_NUM, data:pdata.createRegistData()};
}
var sc = this;
var _local6 = 0;
var _local2 = new net.LinkCGI();
_local2.suc = function (data) {
if (id == -1) {
sc.pdata.setID(data.id);
}
sc.pdata.setRegistTime();
sc.getNetEnemy();
};
_local2.mis = function () {
sc.root.loadMC.gotoAndStop("err");
};
_local2.sendAndLoad(pjam.CmnProject.CGI_URL, "POST", _local3);
}
function getNetEnemy() {
var sc = this;
edata.getEnd = function () {
sc.root.loadMC._visible = true;
sc.root.loadMC.gotoAndStop("msg");
sc.root.loadMC.msgTxt.text = "\u30C7\u30FC\u30BF\u767B\u9332\u5B8C\u4E86\uFF01";
sc.root.loadMC.okBtn.onPress = function () {
sc.root.loadMC._visible = false;
sc.registEnd();
};
};
edata.getNetEnemy();
}
}
Symbol 3658 MovieClip [__Packages.pjam.scene.Delete] Frame 0
class pjam.scene.Delete
{
var root, pdata, scene;
function Delete (root, pdata) {
this.root = root;
this.pdata = pdata;
scene = root.stageMC.deleteMC;
}
function start() {
var sc = this;
scene.backBtn.onPress = function () {
sc.deleteEnd();
};
scene.okBtn.onPress = function () {
sc.dataDelete();
};
}
function dataDelete() {
root.loadMC._visible = true;
root.loadMC.gotoAndStop(1);
root.loadMC.maruMC.gotoAndPlay(1);
if (pdata.getID() == -1) {
dispEnd();
return(undefined);
}
var _local3 = {mode:3, rank:pjam.CmnProject.RANK_NUM, data:pdata.createRegistData()};
var sc = this;
var _local5 = 0;
var _local2 = new net.LinkCGI();
_local2.suc = function (data) {
sc.pdata.deleteID();
sc.root.loadMC.gotoAndStop("msg");
sc.root.loadMC.msgTxt.text = "see you again\uFF01";
sc.root.loadMC.okBtn._visible = false;
};
_local2.mis = function () {
sc.root.loadMC.gotoAndStop("err");
};
_local2.sendAndLoad(pjam.CmnProject.CGI_URL, "POST", _local3);
}
function dispEnd() {
pdata.deleteID();
root.loadMC.gotoAndStop("msg");
root.loadMC.msgTxt.text = "see you again\uFF01";
root.loadMC.okBtn._visible = false;
}
}
Symbol 3659 MovieClip [__Packages.pjam.scene.GameMenu] Frame 0
class pjam.scene.GameMenu
{
var root, scene, pdata, display;
function GameMenu (root, pdata) {
this.root = root;
scene = root.stageMC.gameMenuMC;
this.pdata = pdata;
}
function start() {
var sc = this;
scene.fightBtn.onPress = function () {
sc.destroy();
sc.selectFight();
};
scene.statusBtn.onPress = function () {
sc.selectStatus();
};
scene.itemBtn.onPress = function () {
sc.destroy();
sc.selectItem();
};
scene.shopBtn.onPress = function () {
sc.destroy();
sc.selectShop();
};
scene.helpBtn.onPress = function () {
sc.selectHelp();
};
scene.endBtn.onPress = function () {
sc.destroy();
sc.selectEnd();
};
scene.fightBtn.onRollOver = function () {
pjam.SysLog.disp(sc.root, "\u6226\u95D8\u3092\u958B\u59CB\u3057\u307E\u3059\u3002");
};
scene.statusBtn.onRollOver = function () {
pjam.SysLog.disp(sc.root, "\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u8868\u793A\u3057\u307E\u3059\u3002");
};
scene.itemBtn.onRollOver = function () {
pjam.SysLog.disp(sc.root, "\u6240\u6301\u3057\u3066\u3044\u308B\u30A2\u30A4\u30C6\u30E0\u3092\u4F7F\u7528\u3057\u307E\u3059\u3002");
};
scene.shopBtn.onRollOver = function () {
pjam.SysLog.disp(sc.root, "\u5E97\u306B\u884C\u304D\u30A2\u30A4\u30C6\u30E0\u3092\u58F2\u8CB7\u3057\u307E\u3059\u3002");
};
scene.helpBtn.onRollOver = function () {
pjam.SysLog.disp(sc.root, "\u30D8\u30EB\u30D7\u3092\u8868\u793A\u3057\u307E\u3059\u3002");
};
scene.endBtn.onRollOver = function () {
pjam.SysLog.disp(sc.root, "\u30B2\u30FC\u30E0\u3092\u7D42\u4E86\u3057\u30B7\u30B9\u30C6\u30E0\u30E1\u30CB\u30E5\u30FC\u3078\u623B\u308A\u307E\u3059\u3002");
};
display = new pjam.scene.gmenu.MenuDisplay(root, pdata);
display.start();
}
function destroy() {
display.destroy();
delete scene.fightBtn.onPress;
delete scene.statusBtn.onPress;
delete scene.itemBtn.onPress;
delete scene.shopBtn.onPress;
delete scene.helpBtn.onPress;
delete scene.endBtn.onPress;
}
}
Symbol 3660 MovieClip [__Packages.pjam.scene.gmenu.MenuDisplay] Frame 0
class pjam.scene.gmenu.MenuDisplay
{
var root, scene, pdata, moneyList, bm, lineMC, charMC, sound, idNum;
function MenuDisplay (root, pdata) {
this.root = root;
scene = root.stageMC.gameMenuMC.displayMC;
BASE_LINE = scene.charMC._y;
line = BASE_LINE;
this.pdata = pdata;
moneyList = new Object();
scene.setMask(root.stageMC.gameMenuMC.maskMC);
var _local6 = scene.areaMC._width;
var _local4 = scene.areaMC._height;
bm = new flash.display.BitmapData(_local6, _local4, true, 0);
lineMC = scene.createEmptyMovieClip("lineMC", 0);
lineMC.attachBitmap(bm, lineMC.getNextHighestDepth());
var _local2 = pjam.Charactor.getCharData(root, pdata.createRegistData());
var _local5 = scene.createEmptyMovieClip("empMC", 1);
charMC = _local5.attachMovie(_local2.id, _local2.id + 1, 1);
charMC.gotoAndStop("runR");
charMC._x = scene.charMC._x;
charMC._y = scene.charMC._y;
sound = new Sound(charMC);
sound.setVolume(0);
scene.moneyTxt.text = "0";
firstLine();
start();
}
function start() {
var sc = this;
scene.onEnterFrame = function () {
sc.main();
};
}
function destroy() {
delete sound;
bm.dispose();
charMC.removeMovieClip();
lineMC.removeMovieClip();
for (var _local2 in moneyList) {
moneyList[_local2].destroy();
}
}
function main() {
bm.scroll(-SCROLL, 0);
setDrawPos();
var _local3 = scene.areaMC._width - SCROLL;
var _local4 = scene.areaMC._height;
bm.fillRect(new flash.geom.Rectangle(_local3, 0, SCROLL, _local4), 0);
bm.fillRect(new flash.geom.Rectangle(_local3, line, SCROLL, _local4 - line), baseColor);
bm.fillRect(new flash.geom.Rectangle(_local3, line, SCROLL, 1), lineColor);
setCharPos();
if (Math.floor(Math.random() * MONEY_RAN) != 1) {
return(undefined);
}
idNum++;
var _local2 = new pjam.scene.gmenu.DropMoney(root, pdata, line, charMC, idNum);
moneyList.idNum = _local2;
var sc = this;
_local2.end = function (n) {
delete sc.moneyList[n];
};
_local2.start();
}
function firstLine() {
var _local2 = scene.areaMC._width;
var _local3 = scene.areaMC._height;
bm.fillRect(new flash.geom.Rectangle(0, BASE_LINE, _local2, _local3 - BASE_LINE), baseColor);
bm.fillRect(new flash.geom.Rectangle(0, BASE_LINE, _local2, 1), lineColor);
}
function setDrawPos() {
if (scene._ymouse < line) {
line = line - 1;
}
if (scene._ymouse > line) {
line = line + 1;
}
if (line > (BASE_LINE + BLUR_LINE)) {
line = BASE_LINE + BLUR_LINE;
}
if (line < (BASE_LINE - BLUR_LINE)) {
line = BASE_LINE - BLUR_LINE;
}
}
function setCharPos() {
var _local2 = BASE_LINE - BLUR_LINE;
while (_local2 <= (BASE_LINE + BLUR_LINE)) {
if (lineColor.toString(16) != bm.getPixel32(charMC._x, _local2).toString(16)) {
} else {
charMC._y = _local2;
break;
}
_local2++;
}
}
static var SCROLL = 2;
var BASE_LINE = 0;
var BLUR_LINE = 10;
var line = 0;
var baseColor = 4294303683;
var lineColor = 4294293925;
var MONEY_RAN = 400;
}
Symbol 3661 MovieClip [__Packages.pjam.scene.gmenu.DropMoney] Frame 0
class pjam.scene.gmenu.DropMoney
{
var root, scene, pdata, charMC, idNum, mc;
function DropMoney (root, pdata, dPoint, charMC, idNum) {
this.root = root;
scene = root.stageMC.gameMenuMC.displayMC;
this.pdata = pdata;
this.charMC = charMC;
this.idNum = idNum;
this.dPoint = dPoint;
var _local4 = scene.getNextHighestDepth();
mc = scene.attachMovie(MC_NAME, MC_NAME + _local4, _local4);
var _local2 = function (n) {
return(Math.floor(Math.random() * n));
};
var _local3 = _local2(1000);
if (_local3 == 0) {
money = _local2(10000);
} else if (_local3 < 10) {
money = _local2(1000);
} else if (_local3 < 100) {
money = _local2(100);
} else {
money = _local2(10);
}
}
function start() {
var sc = this;
mc._x = scene.areaMC._width;
mc._alpha = 0;
mc.onEnterFrame = function () {
sc.drop();
};
}
function destroy() {
mc.removeMovieClip();
}
function drop() {
if (mc._alpha < 100) {
mc._alpha = mc._alpha + 20;
}
mc._x = mc._x + (-pjam.scene.gmenu.MenuDisplay.SCROLL);
if (((mc._y = mc._y + ((dSpeed = dSpeed * pSpeed)))) < dPoint) {
return(undefined);
}
mc._y = dPoint;
var sc = this;
mc.onEnterFrame = function () {
sc.scroll();
};
}
function scroll() {
mc._x = mc._x + (-pjam.scene.gmenu.MenuDisplay.SCROLL);
if (scene.charMC._x < mc._x) {
return(undefined);
}
pdata.setMoney(money);
scene.moneyTxt.text = Number(scene.moneyTxt.text) + money;
var _local2 = new Sound();
_local2.attachSound("getMoneySound");
_local2.start();
var _local3 = new pjam.fight.TextEffect(root, scene);
_local3.start(money.toString() + " GOLD GET", scene.getMoneyMC, 16764023, pjam.fight.TextEffect.MONEY_MODE);
var sc = this;
mc.play();
mc.onEnterFrame = function () {
if (this._currentframe < this._totalframes) {
return(undefined);
}
this.removeMovieClip();
sc.end(sc.idNum);
};
}
var MC_NAME = "dropMoneyMC";
var dPoint = 0;
var dSpeed = 1;
var pSpeed = 1.2;
var money = 0;
}
Symbol 3662 MovieClip [__Packages.pjam.scene.ItemUse] Frame 0
class pjam.scene.ItemUse
{
var root, pdata, scene;
function ItemUse (root, pdata) {
this.root = root;
this.pdata = pdata;
scene = root.stageMC.itemMC;
}
function start() {
var sc = this;
scene.backBtn.onPress = function () {
sc.end();
};
var _local3 = pdata.getItemList();
var _local2 = 0;
while (_local2 < 3) {
scene["itemTxt" + _local2].text = pjam.Charactor.getItemName(root, _local3[_local2]);
scene["btn" + _local2].num = _local3[_local2];
scene["btn" + _local2].onPress = function () {
sc.check(this.num);
};
_local2++;
}
}
function check(num) {
if (num == -1) {
return(undefined);
}
var sc = this;
scene.nextFrame();
var _local3 = pjam.Charactor.getCharData(root, pdata.createRegistData());
scene.hpBfrTxt.text = _local3.hp;
scene.attackBfrTxt.text = _local3.attack;
scene.magicBfrTxt.text = _local3.magic;
scene.defenseBfrTxt.text = _local3.defense;
scene.speedBfrTxt.text = _local3.speed;
scene.luckBfrTxt.text = _local3.luck;
var _local2 = pjam.Charactor.getCharData(root, pdata.createUseItemData(num));
scene.hpAfrTxt.text = _local2.hp;
scene.attackAfrTxt.text = _local2.attack;
scene.magicAfrTxt.text = _local2.magic;
scene.defenseAfrTxt.text = _local2.defense;
scene.speedAfrTxt.text = _local2.speed;
scene.luckAfrTxt.text = _local2.luck;
scene.charNameTxt.text = _local2.charName;
scene.charMC.attachMovie(_local2.id, _local2.id, 1);
scene.backBtn.onPress = function () {
sc.scene.prevFrame();
sc.start();
};
scene.okBtn.onPress = function () {
sc.pdata.setCharNum(num);
sc.end();
};
}
}
Symbol 3663 MovieClip [__Packages.pjam.scene.Shop] Frame 0
class pjam.scene.Shop
{
var root, pdata, scene;
function Shop (root, pdata) {
this.root = root;
this.pdata = pdata;
scene = root.stageMC.shopMC;
}
function start() {
var sc = this;
scene.backBtn.onPress = function () {
sc.end();
};
scene.risuMC.play();
scene.fukidasiMC.play();
scene.fukidasiMC.onEnterFrame = function () {
if (this._currentframe < this._totalframes) {
return(undefined);
}
delete this.onEnterFrame;
sc.first();
};
}
function first() {
scene.gotoAndStop("first");
scene.msgMC.gotoAndStop("first");
var sc = this;
var _local3 = false;
var _local2 = pdata.getItemList();
var i = 0;
while (i < 3) {
if (_local2[i] == -1) {
scene["itemTxt" + i].text = "-";
scene["priceTxt" + i].text = "-";
scene["btn" + i].enabled = false;
} else {
scene["itemTxt" + i].text = pjam.Charactor.getItemName(root, _local2[i]);
scene["priceTxt" + i].text = pjam.Charactor.getItemPrice(root, _local2[i]);
scene["btn" + i].num = _local2[i];
scene["btn" + i].i = i;
scene["btn" + i].onPress = function () {
sc.check(this.num, this.i);
};
if ((_local2[i] == pdata.getCharNum()) && (_local3 == false)) {
_local3 = true;
delete scene["btn" + i].onPress;
scene["btn" + i].onRollOver = function () {
pjam.SysLog.disp(sc.root, "\u88C5\u5099\u3057\u3066\u3044\u308B\u30A2\u30A4\u30C6\u30E0\u306F\u58F2\u308C\u307E\u305B\u3093\u3002");
};
}
}
i++;
}
if (pdata.checkItemNum() == true) {
scene.msgMC.gotoAndStop("no");
return(undefined);
}
dispPer();
}
function dispPer() {
var sc = this;
scene.onEnterFrame = function () {
var _local2 = Math.floor(Math.random() * 50);
if (_local2 == 0) {
sc.val = 5;
} else if (_local2 < 4) {
sc.val = 4;
} else if (_local2 < 10) {
sc.val = 3;
} else if (_local2 < 18) {
sc.val = 2;
} else {
sc.val = Math.floor(Math.random() * 20) / 10;
}
this.valueTxt.text = sc.val;
};
}
function check(num, i) {
delete scene.onEnterFrame;
scene.gotoAndStop("check");
scene.msgMC.gotoAndStop("check");
var sell = pjam.Charactor.getItemPrice(root, num);
scene.itemTxt.text = pjam.Charactor.getItemName(root, num);
scene.orgTxt.text = sell;
scene.valueTxt.text = val;
scene.sellTxt.text = sell * val;
var sc = this;
scene.noBtn.onPress = function () {
sc.first();
};
scene.yesBtn.onPress = function () {
sc.getDisp(num, i, sell * sc.val);
};
}
function getDisp(num, i, sell) {
scene.gotoAndStop("get");
scene.msgMC.gotoAndStop("get");
scene.msgTxt.text = sell + "\u30B4\u30FC\u30EB\u30C9\u30B2\u30C3\u30C8\uFF01";
pdata.setMoney(sell);
pdata.setItem(i, -1);
var sc = this;
scene.okBtn.onPress = function () {
sc.first();
};
}
var val = 0;
}
Symbol 3664 MovieClip [__Packages.pjam.scene.Encount] Frame 0
class pjam.scene.Encount
{
var root, scene, edata, pdata, fdata;
function Encount (root, edata, pdata) {
this.root = root;
scene = root.stageMC.encountMC;
this.edata = edata;
this.pdata = pdata;
}
function start() {
var sc = this;
scene.fightBtn.onPress = function () {
sc.destroy();
sc.selectFight(sc.fdata);
};
scene.changeBtn.onPress = function () {
sc.dispEnemy();
};
scene.menuBtn.onPress = function () {
sc.destroy();
sc.selectMenu();
};
scene.fightBtn.onRollOver = function () {
pjam.SysLog.disp(sc.root, "\u3053\u306E\u6575\u3068\u6226\u3044\u307E\u3059\u3002");
};
scene.changeBtn.onRollOver = function () {
pjam.SysLog.disp(sc.root, "\u6226\u3046\u6575\u3092\u5909\u66F4\u3057\u307E\u3059\u3002");
};
scene.menuBtn.onRollOver = function () {
pjam.SysLog.disp(sc.root, "\u30B2\u30FC\u30E0\u30E1\u30CB\u30E5\u30FC\u3078\u623B\u308A\u307E\u3059\u3002");
};
dispEnemy();
}
function destroy() {
pjam.SysLog.disp(root, " ");
delete scene.fightBtn.onPress;
delete scene.changeBtn.onPress;
delete scene.menuBtn.onPress;
}
function dispEnemy() {
var _local2;
var _local3 = Math.floor(Math.random() * CPU_PER);
if (_local3 == 0) {
fdata = pjam.Charactor.getCpuData(root);
_local2 = "[CPU] ";
} else if (_local3 == 1) {
fdata = pjam.Charactor.getNearCpuData(root, pdata);
_local2 = "[CPU] ";
} else {
fdata = edata.encountPlayer(pdata.getLv());
_local2 = "[PLAYER] ";
if (fdata == null) {
fdata = pjam.Charactor.getNearCpuData(root, pdata);
_local2 = "[CPU] ";
}
}
scene.charMC.attachMovie(fdata.id, fdata.id, 1);
scene.msgTxt.text = (_local2 + fdata.charName) + "\u30AC\u30A2\u30E9\u30EF\u30EC\u30BF\uFF01";
scene.nameTxt.text = fdata.name;
scene.charNameTxt.text = fdata.charName;
scene.lvTxt.text = fdata.lv;
var url = fdata.url;
if (url == "") {
scene.urlBtn._visible = false;
return(undefined);
}
if (url.indexOf("http://") == -1) {
url = "http://" + url;
}
var _local4 = this;
scene.urlBtn._visible = true;
scene.urlBtn.onPress = function () {
getURL (url, "_blank");
};
}
var CPU_PER = 3;
}
Symbol 3665 MovieClip [__Packages.pjam.fight.Fight] Frame 0
class pjam.fight.Fight
{
var root, scene, pdata, mode, next, myObj, enObj, lvUp, gauge, pryEn, pryMy, bonus, end;
function Fight (root, pdata, enObj, mode, next) {
this.root = root;
scene = root.stageMC.fightMC;
this.pdata = pdata;
this.mode = mode;
this.next = next;
myObj = pjam.Charactor.getCharData(root, pdata.createRegistData());
this.enObj = enObj;
lvUp = new pjam.fight.LvUp(root, pdata);
}
function start() {
pdata.setFakeFlg(true);
createPlayer();
scene.finMC._visible = false;
if (pdata.getControl() == 1) {
scene.btnMMC.nextFrame();
scene.btnAMC.gotoAndStop(1);
} else {
scene.btnAMC.nextFrame();
scene.btnMMC.gotoAndStop(1);
}
gauge = new pjam.fight.Gauge(root, myObj.hp, enObj.hp, myObj.sp);
if (pdata.getControl() == -1) {
scene.btnAMC.nextFrame();
} else {
scene.btnMMC.nextFrame();
}
var sc = this;
scene.btnAMC.onPress = function () {
sc.pdata.changeControl();
sc.pryMy.changeMode();
sc.scene.btnMMC.enabled = true;
sc.scene.btnMMC.gotoAndStop(1);
this.enabled = false;
this.nextFrame();
};
scene.btnMMC.onPress = function () {
sc.pdata.changeControl();
sc.pryMy.changeMode();
sc.scene.btnAMC.enabled = true;
sc.scene.btnAMC.gotoAndStop(1);
this.enabled = false;
this.nextFrame();
};
scene.escapeBtn.onPress = function () {
sc.pryEn.escape();
sc.pryMy.escape();
sc.judge();
};
scene.btnAMC.onRollOver = function () {
pjam.SysLog.disp(sc.root, "\u64CD\u4F5C\u3092\u30AA\u30FC\u30C8\u306B\u5207\u308A\u66FF\u3048\u307E\u3059\u3002");
};
scene.btnMMC.onRollOver = function () {
pjam.SysLog.disp(sc.root, "\u64CD\u4F5C\u3092\u30DE\u30CB\u30E5\u30A2\u30EB\u306B\u5207\u308A\u66FF\u3048\u307E\u3059\u3002\n\u64CD\u4F5C\u65B9\u6CD5\u306FHELP\u3092\u53C2\u7167\u3057\u3066\u304F\u3060\u3055\u3044\u3002");
};
scene.escapeBtn.onRollOver = function () {
pjam.SysLog.disp(sc.root, "\u6226\u95D8\u304B\u3089\u8131\u51FA\u3057\u307E\u3059\u3002\n\u30E9\u30F3\u30C0\u30E0\u3067\u304A\u91D1\u3092\u5931\u3044\u307E\u3059\u3002");
};
scene.btnAMC.enabled = false;
scene.btnMMC.enabled = false;
scene.escapeBtn.enabled = false;
var _local2 = new pjam.fight.StageEffect(root);
_local2.start();
hideCheck();
}
function createPlayer() {
pryEn.destroy();
pryMy.destroy();
delete pryEn;
delete pryMy;
pryEn = new pjam.fight.player.Player(root, pjam.fight.player.Player.PLAYER_EN, enObj);
pryMy = new pjam.fight.player.Player(root, pjam.fight.player.Player.PLAYER_MY, myObj);
pryEn.setAct(pryMy);
pryMy.setAct(pryEn);
var sc = this;
pryEn.changeHP = function (hp, num) {
sc.gauge.setHP(hp, num);
};
pryEn.changeSP = function (sp, num) {
sc.gauge.setSP(sp, num);
};
pryMy.changeHP = function (hp, num) {
sc.gauge.setHP(hp, num);
};
pryMy.changeSP = function (sp, num) {
sc.gauge.setSP(sp, num);
};
pryEn.gameEnd = function (num) {
sc.loseNum = num;
sc.judge();
};
pryMy.gameEnd = pryEn.gameEnd;
}
function hideCheck() {
var sc = this;
scene.hideMC.play();
scene.hideMC.onEnterFrame = function () {
if (this._currentframe < this._totalframes) {
return(undefined);
}
delete this.onEnterFrame;
sc.ready();
};
}
function ready() {
var sc = this;
scene.gotoAndStop("ready");
scene.readyMC.blackMC.onEnterFrame = function () {
if (this._currentframe < this._totalframes) {
return(undefined);
}
delete this.onEnterFrame;
sc.scene.readyMC.nextFrame();
sc.scene.readyMC.blackMC.onEnterFrame = function () {
if (this._currentframe < this._totalframes) {
return(undefined);
}
delete this.onEnterFrame;
sc.scene.readyMC._visible = false;
};
sc.pryMy.start(sc.pdata.getControl());
sc.pryEn.start(-1);
if (sc.pdata.getControl() == -1) {
sc.scene.btnMMC.enabled = true;
} else {
sc.scene.btnAMC.enabled = true;
}
sc.scene.escapeBtn.enabled = true;
};
}
function judge() {
scene.btnAMC.enabled = false;
scene.btnMMC.enabled = false;
scene.escapeBtn.enabled = false;
if (loseNum == -1) {
fin();
return(undefined);
}
scene.gotoAndStop("judge");
if (loseNum == pjam.fight.player.Player.PLAYER_EN) {
scene.judgeMC.msgTxt.text = "YOU WIN";
} else {
scene.judgeMC.msgTxt.text = "YOU LOSE";
}
var sc = this;
scene.btn.onPress = function () {
sc.fin();
};
}
function fin() {
bonus = pryMy.__get___bonus().getBonus(loseNum, enObj, root);
var sc = this;
scene.gotoAndStop("fin");
scene.finMC.frameMC.onEnterFrame = function () {
if (this._currentframe < this._totalframes) {
return(undefined);
}
delete this.onEnterFrame;
sc.finPoint();
};
}
function finPoint() {
if (loseNum == -1) {
finEscape();
return(undefined);
}
if (loseNum == pjam.fight.player.Player.PLAYER_MY) {
finStatus();
return(undefined);
}
scene.finMC.gotoAndStop("point");
scene.finMC.exTxt.text = bonus.ex;
scene.finMC.moneyTxt.text = bonus.money;
var sc = this;
scene.btn.onPress = function () {
sc.finStatus();
};
}
function finStatus() {
scene.finMC.gotoAndStop("status");
scene.finMC.attackTxt.text = bonus.attack;
scene.finMC.magicTxt.text = bonus.magic;
scene.finMC.defenseTxt.text = bonus.defense;
var sc = this;
scene.btn.onPress = function () {
sc.finCombo();
};
}
function finCombo() {
if (bonus.combo == 0) {
finItem();
return(undefined);
}
scene.finMC.gotoAndStop("combo");
scene.finMC.comboTxt.text = bonus.comboMax;
scene.finMC.moneyTxt.text = bonus.combo;
var sc = this;
scene.btn.onPress = function () {
sc.finItem();
};
}
function finItem() {
if (loseNum == pjam.fight.player.Player.PLAYER_MY) {
finDrop();
return(undefined);
}
if (bonus.item == -1) {
finLv();
return(undefined);
}
scene.finMC.gotoAndStop("item");
var _local2 = pjam.Charactor.getItemName(root, bonus.item);
scene.finMC.itemTxt.text = _local2;
var sc = this;
scene.btn.onPress = function () {
sc.finLv();
};
}
function finLv() {
lvUp.check(bonus.ex);
if (lvUp.__get___upLv() <= 0) {
destroy();
dispFullItem();
return(undefined);
}
scene.finMC.gotoAndStop("lv");
var sc = this;
scene.btn.onPress = function () {
sc.destroy();
sc.dispFullItem();
};
}
function finEscape() {
scene.finMC.gotoAndStop("escape");
var sc = this;
scene.btn.onPress = function () {
sc.finDrop();
};
}
function finDrop() {
scene.finMC.gotoAndStop("drop");
var _local2 = 0;
var _local3 = pjam.fight.LvUp.getDownPer(pdata.getLv());
if (loseNum == -1) {
_local2 = Math.floor(Math.random() * (pryMy.__get___cdata().money * _local3));
} else {
_local2 = Math.floor(pryMy.__get___cdata().money * _local3);
}
scene.finMC.moneyTxt.text = _local2;
bonus.money = bonus.money - _local2;
var sc = this;
scene.btn.onPress = function () {
sc.destroy();
sc.saveData(null);
};
}
function dispFullItem() {
var _local2 = pdata.checkItemFull();
if ((bonus.item != -1) && (_local2 != -1)) {
pdata.setItem(_local2, bonus.item);
dispLvUp();
return(undefined);
}
if (bonus.item == -1) {
dispLvUp();
return(undefined);
}
var sc = this;
next.end = function () {
var _local1 = new pjam.fight.ItemRest(sc.root, sc.pdata);
_local1.end = function () {
sc.dispLvUp();
};
_local1.start(sc.bonus.item);
};
next.start("itemRestMC", -1);
}
function dispLvUp() {
if (lvUp.__get___upLv() <= 0) {
saveData(null);
return(undefined);
}
var sc = this;
next.end = function () {
sc.lvUp.bonusEnd = function (data) {
sc.saveData(data);
};
sc.lvUp.dispLvUp();
};
next.start("lvupMC", -1);
}
function saveData(data) {
var _local6 = 0;
var _local3 = 0;
var _local5 = 0;
var _local2 = 0;
var _local7 = ((loseNum == pjam.fight.player.Player.PLAYER_MY) ? (pdata.getExc()) : (lvUp.__get___excNum()));
if (data != null) {
_local6 = data.hp + 1;
_local3 = data.attack + bonus.attack;
_local5 = data.magic + bonus.magic;
_local2 = data.defense + bonus.defense;
} else {
_local3 = bonus.attack;
_local5 = bonus.magic;
_local2 = bonus.defense;
}
pdata.setFightData(bonus.money + bonus.combo, lvUp.__get___upLv(), bonus.ex, _local7, _local6, _local3, _local5, _local2, pryMy.__get___cdata().sp);
pdata.setFakeFlg(false);
end();
}
function destroy() {
scene.btn.enabled = false;
}
var loseNum = -1;
}
Symbol 3666 MovieClip [__Packages.pjam.fight.Gauge] Frame 0
class pjam.fight.Gauge
{
var root, scene, hpBar, hpMax0, hpMax1, spBar0, spBar1;
function Gauge (root, php, ehp, sp) {
this.root = root;
scene = root.stageMC.fightMC;
hpBar = scene.gaugeMC0.hpMC._width;
hpMax0 = php;
hpMax1 = ehp;
spBar0 = scene.gaugeMC0.spMC0._width;
spBar1 = scene.gaugeMC0.spMC1._width;
setSP(sp, pjam.fight.player.Player.PLAYER_MY);
setSP(0, pjam.fight.player.Player.PLAYER_EN);
}
function setHP(hp, num) {
var _local2 = (hpBar * hp) / this["hpMax" + num];
scene["gaugeMC" + num].hpMC._width = _local2;
}
function setSP(sp, num) {
var _local2 = scene["gaugeMC" + num];
var _local4 = scene["numTxt" + num];
if (sp < 50) {
_local2.spMC0._width = (spBar0 * sp) / 50;
_local2.spMC1._width = 0;
_local4.text = "0";
} else {
_local2.spMC0._width = spBar0;
_local2.spMC1._width = (spBar1 * (sp - 50)) / 50;
_local4.text = ((sp < 100) ? "1" : "2");
}
}
}
Symbol 3667 MovieClip [__Packages.pjam.fight.StageEffect] Frame 0
class pjam.fight.StageEffect
{
var root, scene;
function StageEffect (root) {
this.root = root;
scene = root.stageMC.fightMC.backMC;
}
function start() {
var _local2 = Math.floor(Math.random() * scene._totalframes) + 1;
scene.gotoAndStop(_local2);
if (_local2 >= STAGE3) {
room();
} else if (_local2 >= STAGE2) {
city();
} else {
forest1(_local2);
}
}
function forest1(kind) {
if (kind == 4) {
forest2();
return(undefined);
}
var sc = this;
scene.onEnterFrame = function () {
if (Math.floor(Math.random() * sc.LEAF_NUM) != 0) {
return(undefined);
}
var _local3 = sc.scene.getNextHighestDepth();
var _local2 = sc.scene.attachMovie("leafMC" + kind, "leafMC" + _local3, _local3);
_local2._x = Math.floor((Math.random() * sc.scene._width) - 60);
_local2._y = -_local2._height;
var x = (Math.floor(Math.random() * 3) + 1);
var y = (Math.floor(Math.random() * 2) + 1);
_local2.onEnterFrame = function () {
this._x = this._x + x;
this._y = this._y + y;
if (this._y > sc.STAGE_HEIGHT) {
this.removeMovieClip();
}
};
};
}
function forest2() {
var sc = this;
scene.onEnterFrame = function () {
if (Math.floor(Math.random() * sc.POW_NUM) != 0) {
return(undefined);
}
var _local3 = sc.scene.getNextHighestDepth();
var _local2 = sc.scene.attachMovie("powMC1", "powMC" + _local3, _local3);
_local2._x = Math.floor(Math.random() * sc.scene._width);
_local2._y = Math.floor((Math.random() * sc.scene._height) + 40);
var y = (Math.floor(Math.random() * 1) + 1);
var first = _local2._y;
_local2.onEnterFrame = function () {
this._y = this._y - y;
if (this._y > (first - 20)) {
return(undefined);
}
if (((this._alpha = this._alpha - 10)) <= 0) {
this.removeMovieClip();
}
};
};
}
function city() {
var sc = this;
scene.onEnterFrame = function () {
if (Math.floor(Math.random() * sc.SNOW_NUM) != 0) {
return(undefined);
}
var _local3 = sc.scene.getNextHighestDepth();
var _local2 = sc.scene.attachMovie("snowMC1", "snowMC" + _local3, _local3);
_local2._x = Math.floor(Math.random() * sc.scene._width);
var _local4 = Math.floor(Math.random() * 30) + 100;
_local2._xscale = _local4;
_local2._yscale = _local4;
var y = 1;
_local2.onEnterFrame = function () {
this._y = this._y + y;
if (this._y > sc.STAGE_HEIGHT) {
this.removeMovieClip();
}
};
};
}
function room() {
}
var STAGE1 = 4;
var STAGE2 = 5;
var STAGE3 = 6;
var STAGE_HEIGHT = 114;
var LEAF_NUM = 5;
var POW_NUM = 10;
var SNOW_NUM = 15;
}
Symbol 3668 MovieClip [__Packages.pjam.fight.ItemRest] Frame 0
class pjam.fight.ItemRest
{
var root, pdata, scene;
function ItemRest (root, pdata) {
this.root = root;
this.pdata = pdata;
scene = root.stageMC.itemRestMC;
}
function start(item) {
var sc = this;
var _local4 = false;
var _local3 = pdata.getItemList();
var _local2 = 0;
while (_local2 < 3) {
scene["itemTxt" + _local2].text = pjam.Charactor.getItemName(root, _local3[_local2]);
scene["btn" + _local2].num = _local2;
scene["btn" + _local2].onPress = function () {
sc.pdata.setItem(this.num, item);
sc.end();
};
if ((_local3[_local2] == pdata.getCharNum()) && (_local4 == false)) {
_local4 = true;
delete scene["btn" + _local2].onPress;
scene["btn" + _local2].enabled = false;
}
_local2++;
}
scene.getItemTxt.text = pjam.Charactor.getItemName(root, item);
scene.getBtn.onPress = function () {
sc.scene.btn0.enabled = false;
sc.scene.btn1.enabled = false;
sc.scene.btn2.enabled = false;
sc.scene.getBtn.enabled = false;
sc.end();
};
}
}
Symbol 3669 MovieClip [__Packages.mx.data.types.Obj] Frame 0
class mx.data.types.Obj extends mx.data.binding.DataType
{
var location, type, component, property, validationError;
function Obj () {
super();
}
function gettableTypes() {
return(["Object"]);
}
function settableTypes() {
return([null]);
}
function validate(value) {
var _local7 = new Array();
if (location instanceof Array) {
_local7 = _local7.concat(location);
} else if (location != null) {
return(undefined);
}
var _local4 = 0;
while (_local4 < type.elements.length) {
var _local2 = type.elements[_local4];
if (_local2.name == "[n]") {
} else {
var _local5 = component.getField(property, _local7.concat(_local2.name));
var _local3 = _local5.validateAndNotify(null, true);
for (var _local6 in _local3) {
validationError((_local2.name + ":") + _local3[_local6]);
}
}
_local4++;
}
}
}
Symbol 3670 MovieClip [__Packages.mx.data.encoders.Bool] Frame 0
class mx.data.encoders.Bool extends mx.data.binding.DataAccessor
{
var dataAccessor, trueStrings, falseStrings;
function Bool () {
super();
}
function getTypedValue(requestedType) {
if ((requestedType == "Boolean") || (requestedType == null)) {
var _local2 = dataAccessor.getTypedValue("String");
var _local3 = null;
if ((_local2.value != null) && (_local2.value.length > 0)) {
var _local4 = trueStrings.indexOf(String(_local2.value));
_local3 = _local4 != -1;
}
return(new mx.data.binding.TypedValue(_local3, "Boolean"));
}
}
function getGettableTypes() {
return(["Boolean"]);
}
function setTypedValue(newValue) {
if (newValue.typeName == "Boolean") {
var _local2 = "";
if (newValue.value != null) {
var _local4 = (newValue.value ? (trueStrings) : (falseStrings));
var _local5 = _local4.split(",");
_local2 = _local5[0];
}
return(dataAccessor.setTypedValue(new mx.data.binding.TypedValue(_local2, "String")));
}
return([mx.data.binding.DataAccessor.conversionFailed(newValue, "Boolean")]);
}
function getSettableTypes() {
return(["Boolean"]);
}
}
Symbol 3671 MovieClip [__Packages.mx.data.encoders.Num] Frame 0
class mx.data.encoders.Num extends mx.data.binding.DataAccessor
{
var dataAccessor;
function Num () {
super();
}
function getTypedValue(requestedType) {
var _local4;
if ((requestedType == "Number") || (requestedType == null)) {
var _local2 = dataAccessor.getTypedValue("String");
var _local3 = null;
if ((_local2.value != null) && (_local2.value.length > 0)) {
_local3 = Number(_local2.value);
}
_local4 = new mx.data.binding.TypedValue(_local3, "Number");
}
return(_local4);
}
function getGettableTypes() {
return(["Number", "Integer"]);
}
function setTypedValue(newValue) {
if ((newValue.typeName == "Number") || (newValue.typeName == "Integer")) {
var _local3;
if (newValue.value != null) {
_local3 = newValue.value.toString();
} else {
_local3 = "";
}
return(dataAccessor.setTypedValue(new mx.data.binding.TypedValue(_local3, newValue.typeName)));
}
return([mx.data.binding.DataAccessor.conversionFailed(newValue, newValue.typeName)]);
}
function getSettableTypes() {
return(["Number", "Integer"]);
}
}
Symbol 3672 MovieClip [__Packages.mx.data.types.Num] Frame 0
class mx.data.types.Num extends mx.data.binding.DataType
{
var formatter, dataAccessor, type, maxValue, validationError, minValue;
function Num () {
super();
}
function gettableTypes() {
return(["Number", "Integer", "String"]);
}
function getTypedValue(requestedType) {
var _local2;
if (requestedType == "String") {
if (formatter != null) {
if (formatter instanceof mx.data.formatters.NumberFormatter) {
mx.data.formatters.NumberFormatter(formatter).isInt = int;
}
_local2 = formatter.getTypedValue(requestedType);
} else {
_local2 = dataAccessor.getTypedValue();
if (_local2.value == null) {
_local2.value = "";
_local2.typeName = "String";
}
}
} else {
if (requestedType == "Integer") {
requestedType = "Number";
}
_local2 = dataAccessor.getTypedValue(requestedType);
if (_local2.type == null) {
_local2.type = type;
}
if (_local2.typeName == null) {
_local2.typeName = type.name;
}
if ((_local2.typeName != requestedType) && (requestedType != null)) {
_local2 = null;
}
if ((_local2.value != null) && (int)) {
_local2.value = Math.round(_local2.value);
}
}
return(_local2);
}
function settableTypes() {
return(["Number", "Integer", "String", "Boolean", null]);
}
function setTypedValue(newValue) {
if (newValue.value != null) {
if (newValue.typeName == "String") {
if (formatter != null) {
return(formatter.setTypedValue(newValue));
}
var _local3;
if (newValue.value.length == 0) {
newValue.value = null;
newValue.typeName = "Number";
_local3 = dataAccessor.setTypedValue(newValue);
} else {
var _local4 = convertStringToNumber(int, newValue);
_local3 = dataAccessor.setTypedValue(newValue);
}
return(((_local4 == null) ? (_local3) : (_local4)));
}
if (int) {
newValue.value = Math.round(newValue.value);
}
}
return(dataAccessor.setTypedValue(newValue));
}
static function convertStringToNumber(isInt, newValue) {
newValue.typeName = (isInt ? "Integer" : "Number");
if (isInt) {
newValue.value = parseInt(newValue.value);
} else {
newValue.value = parseFloat(newValue.value);
}
if (isNaN(newValue.value)) {
newValue.value = 0;
return([mx.data.binding.DataAccessor.conversionFailed(newValue, (isInt ? "Integer" : "Number"))]);
}
return(null);
}
function validate(value) {
var _local2 = Number(value);
if ((maxValue != null) && (_local2 > maxValue)) {
validationError(exceedsMaxError);
}
if ((minValue != null) && (_local2 < minValue)) {
validationError(lowerThanMinError);
}
if (int && (_local2 != Math.round(_local2))) {
validationError(integerError);
}
}
var exceedsMaxError = "This number exceeds the maximum allowed value.";
var lowerThanMinError = "This number is lower than the minimum allowed value.";
var integerError = "This number must be an integer.";
var int = false;
}
Symbol 3673 MovieClip [__Packages.mx.data.formatters.NumberFormatter] Frame 0
class mx.data.formatters.NumberFormatter extends mx.data.binding.Formatter
{
var dataAccessor, precision, isInt;
function NumberFormatter () {
super();
}
function getTypedValue(requestedType) {
if ((requestedType == "String") || (requestedType == null)) {
var _local3 = dataAccessor.getTypedValue();
if (_local3.value != null) {
var _local2;
if (precision > 0) {
var _local6 = (isInt ? 1 : (Math.pow(10, precision)));
_local2 = (Math.round(_local3.value * _local6) / _local6).toString();
if (_local2.length > 0) {
var _local5 = _local2.lastIndexOf(".");
var _local4 = 0;
if (_local5 < 0) {
_local2 = _local2 + ".";
_local4 = precision;
} else {
_local4 = precision - (_local2.length - (_local5 + 1));
}
_local2 = _local2 + "0000000000000000000000000000".substring(0, _local4);
}
} else {
_local2 = Math.round(_local3.value).toString();
}
return(new mx.data.binding.TypedValue(_local2, "String"));
}
return(new mx.data.binding.TypedValue("", "String"));
}
}
function getGettableTypes() {
return(["String"]);
}
function setTypedValue(newValue) {
if (newValue.typeName == "String") {
if (newValue.value.length == 0) {
return(dataAccessor.setTypedValue(new mx.data.binding.TypedValue(null, "Number")));
}
var _local3 = mx.data.types.Num.convertStringToNumber(isInt, newValue);
var _local4 = dataAccessor.setTypedValue(newValue);
return(((_local3 == null) ? (_local4) : (_local3)));
}
return([mx.data.binding.DataAccessor.conversionFailed(newValue, "Number")]);
}
function getSettableTypes() {
return(["String"]);
}
}
Symbol 3674 MovieClip [__Packages.mx.data.types.Str] Frame 0
class mx.data.types.Str extends mx.data.binding.DataType
{
var maxLength, validationError, minLength;
function Str () {
super();
}
function getTypedValue(requestedType) {
var _local2 = super.getTypedValue(requestedType);
if ((_local2.value == null) && (requestedType == "String")) {
_local2.value = "";
}
return(_local2);
}
function gettableTypes() {
return(["String"]);
}
function settableTypes() {
return(["String"]);
}
function validate(value) {
var _local2 = String(value);
if ((maxLength != null) && (_local2.length > maxLength)) {
validationError(tooLongError);
}
if ((minLength != null) && (_local2.length < minLength)) {
validationError(tooShortError);
}
}
var tooLongError = "This string is longer than the maximum allowed length.";
var tooShortError = "This string is shorter than the minimum allowed length.";
}
Symbol 3675 MovieClip [__Packages.mx.data.types.Int] Frame 0
class mx.data.types.Int extends mx.data.types.Num
{
var int;
function Int () {
super();
int = true;
}
}
Symbol 3676 MovieClip [__Packages.mx.data.types.Bool] Frame 0
class mx.data.types.Bool extends mx.data.binding.DataType
{
var formatter, dataAccessor, type;
function Bool () {
super();
}
function gettableTypes() {
return(["Boolean"]);
}
function settableTypes() {
return(["Number", "Boolean", "String"]);
}
function getTypedValue(requestedType) {
var _local2;
if (requestedType == "String") {
if (formatter != null) {
_local2 = formatter.getTypedValue(requestedType);
} else {
_local2 = dataAccessor.getTypedValue();
if (_local2.value == null) {
_local2.value = "";
_local2.typeName = "String";
}
}
} else {
_local2 = dataAccessor.getTypedValue(requestedType);
if (_local2.type == null) {
_local2.type = type;
}
if (_local2.typeName == null) {
_local2.typeName = type.name;
}
if ((_local2.typeName != requestedType) && (requestedType != null)) {
_local2 = null;
}
}
return(_local2);
}
function setTypedValue(newValue) {
var _local3 = null;
if (newValue.value != null) {
if ((newValue.typeName == "Boolean") || (newValue.typeName == "Number")) {
_local3 = Boolean(newValue.value);
} else if (newValue.typeName == "String") {
if (newValue.value.length > 0) {
if (formatter != null) {
return(formatter.setTypedValue(newValue));
}
var _local4 = newValue.value.toLowerCase();
_local3 = _local4 == "true";
if ((!_local3) && (_local4 != "false")) {
var _local5 = Number(_local4);
if (isNaN(_local5)) {
return([mx.data.binding.DataAccessor.conversionFailed(newValue, "Boolean")]);
}
_local3 = Boolean(_local5);
}
}
} else {
return([mx.data.binding.DataAccessor.conversionFailed(newValue, "Boolean")]);
}
}
return(dataAccessor.setTypedValue(new mx.data.binding.TypedValue(_local3, "Boolean")));
}
}
Symbol 3677 MovieClip [__Packages.mx.data.types.Xm] Frame 0
class mx.data.types.Xm extends mx.data.binding.DataType
{
var ignoreWhite, dataAccessor;
function Xm () {
super();
}
function gettableTypes() {
return(["XML"]);
}
function settableTypes() {
return(["XML", "String"]);
}
function setTypedValue(newValue) {
var _local4 = null;
var _local2 = new mx.data.binding.TypedValue();
_local2.typeName = "XML";
if (newValue.typeName == "XML") {
_local2.value = newValue.value;
_local2.type = newValue.type;
} else if (newValue.typeName == "String") {
var _local5 = new XML();
_local5.ignoreWhite = ignoreWhite == "true";
_local5.parseXML(newValue.value);
_local2.value = _local5;
} else {
_local4 = [mx.data.binding.DataAccessor.conversionFailed(newValue, "XML")];
}
var _local6 = dataAccessor.setTypedValue(_local2);
if (_local4 != null) {
return(_local4);
}
return(_local6);
}
function validate() {
}
}
Symbol 3678 MovieClip [__Packages.mx.data.types.DataProvider] Frame 0
class mx.data.types.DataProvider extends mx.data.binding.DataType
{
var property, component, dataAccessor;
function DataProvider () {
super();
}
function gettableTypes() {
return(["DataProvider"]);
}
function settableTypes() {
return(["DataProvider", "Array", "String", "Object"]);
}
function setTypedValue(newValue) {
var _local4 = null;
var _local3 = new mx.data.binding.TypedValue();
_local3.typeName = "DataProvider";
if (newValue.typeName == "DataProvider") {
_local3.value = newValue.value;
_local3.type = newValue.type;
} else if (newValue.typeName == "Array") {
_local3.value = mx.data.binding.FieldAccessor.wrapArray(newValue.value, newValue.type.elements[0].type, component.getBindingMetaData("acceptedTypes")[property]);
_local3.type = newValue.type;
} else if (newValue.typeName == "String") {
_local3.value = newValue.value.split(",");
} else if (newValue.typeName == "Object") {
_local3.value = newValue.value;
_local3.type = newValue.type;
} else {
_local4 = [mx.data.binding.DataAccessor.conversionFailed(newValue, "DataProvider")];
}
if (typeof(_local3.value.editField) != "function") {
component.__setReadOnly(true);
}
var _local5 = dataAccessor.setTypedValue(_local3);
if (_local4 != null) {
return(_local4);
}
return(_local5);
}
function validate() {
}
}
Symbol 510 MovieClip [__Packages.mx.data.components.DataBinding] Frame 0
class mx.data.components.DataBinding extends MovieClip
{
function DataBinding () {
super();
}
function Dummy() {
new mx.data.binding.Binding();
new mx.data.binding.ComponentMixins();
new mx.data.binding.CustomFormatter();
new mx.data.binding.CustomValidator();
new mx.data.binding.DataAccessor();
new mx.data.binding.DataType();
new mx.data.binding.DateBase();
new mx.data.binding.Encoder();
new mx.data.binding.EndPoint();
new mx.data.binding.FieldAccessor();
new mx.data.binding.Formatter();
new mx.data.binding.Kind();
new mx.data.binding.Log();
new mx.data.binding.TypedValue();
new mx.utils.ClassFinder();
new mx.utils.Collection();
new mx.utils.CollectionImpl();
new mx.utils.Iterator();
new mx.utils.IteratorImpl();
new mx.utils.StringFormatter();
new mx.utils.StringTokenParser();
}
}
Symbol 532 MovieClip [__Packages.mx.data.binding.CustomFormatter] Frame 0
class mx.data.binding.CustomFormatter
{
function CustomFormatter () {
}
function format(rawValue) {
}
function unformat(formattedValue) {
}
}
Symbol 533 MovieClip [__Packages.mx.data.binding.CustomValidator] Frame 0
class mx.data.binding.CustomValidator
{
var field;
function CustomValidator () {
}
function validate(value) {
}
function validationError(message) {
field.validationError(message);
}
}
Symbol 534 MovieClip [__Packages.mx.data.binding.DateBase] Frame 0
class mx.data.binding.DateBase extends mx.data.binding.DataAccessor
{
var dataAccessor;
function DateBase () {
super();
}
function internalToExternal(rawValue) {
return(null);
}
function externalToInternal(value) {
return(null);
}
function externalTypeName() {
return(null);
}
function internalTypeName() {
return(null);
}
function getTypedValue(requestedType) {
var _local3;
if ((requestedType == externalTypeName()) || (requestedType == null)) {
var _local4 = dataAccessor.getTypedValue();
var _local2 = internalToExternal(_local4.value);
_local3 = new mx.data.binding.TypedValue(_local2, externalTypeName());
}
return(_local3);
}
function getGettableTypes() {
return([externalTypeName()]);
}
function setTypedValue(newValue) {
if ((newValue.typeName == externalTypeName()) || (newValue.typeName == null)) {
var _local4 = externalToInternal(newValue.value);
var _local3;
if (!_local4) {
_local3 = [mx.data.binding.DataAccessor.conversionFailed(newValue, internalTypeName())];
}
var _local5 = dataAccessor.setTypedValue(new mx.data.binding.TypedValue(_local4, internalTypeName()));
if (_local3) {
return(_local3);
}
return(_local5);
}
return([mx.data.binding.DataAccessor.conversionFailed(newValue, internalTypeName())]);
}
function getSettableTypes() {
return([externalTypeName()]);
}
static function extractTokenDate(value, tokenInfo) {
var _local1 = "";
if (value != null) {
switch (tokenInfo.token) {
case "M" :
var _local5 = value.getMonth() + 1;
if (_local5 < 10) {
_local1 = _local1 + "0";
}
_local1 = _local1 + _local5.toString();
break;
case "Y" :
var _local6 = value.getFullYear().toString();
if ((tokenInfo.end - tokenInfo.begin) < 3) {
_local1 = _local6.substr(2);
} else {
_local1 = _local6;
}
break;
case "D" :
var _local3 = value.getDate();
if (_local3 < 10) {
_local1 = _local1 + "0";
}
_local1 = _local1 + _local3.toString();
break;
case "H" :
var _local8 = value.getHours();
if (_local8 < 10) {
_local1 = _local1 + "0";
}
_local1 = _local1 + _local8.toString();
break;
case "N" :
var _local7 = value.getMinutes();
if (_local7 < 10) {
_local1 = _local1 + "0";
}
_local1 = _local1 + _local7.toString();
break;
case "S" :
var _local4 = value.getSeconds();
if (_local4 < 10) {
_local1 = _local1 + "0";
}
_local1 = _local1 + _local4.toString();
}
}
return(_local1);
}
static function infuseTokenDate(tkData, tk, value) {
if (tkData.length > 0) {
switch (tk.token) {
case "M" :
value.setMonth(Number(tkData) - 1);
break;
case "D" :
value.setDate(Number(tkData));
break;
case "Y" :
value.setYear(Number(tkData));
break;
case "H" :
value.setHours(Number(tkData));
break;
case "N" :
value.setMinutes(Number(tkData));
break;
case "S" :
value.setSeconds(Number(tkData));
}
}
}
}
Symbol 535 MovieClip [__Packages.mx.data.binding.Encoder] Frame 0
class mx.data.binding.Encoder extends mx.data.binding.DataAccessor
{
function Encoder () {
super();
}
}
Symbol 536 MovieClip [__Packages.mx.data.binding.Kind] Frame 0
class mx.data.binding.Kind extends mx.data.binding.DataAccessor
{
function Kind () {
super();
}
}
Symbol 537 MovieClip [__Packages.mx.utils.Iterator] Frame 0
interface mx.utils.Iterator{}
Symbol 538 MovieClip [__Packages.mx.utils.Collection] Frame 0
interface mx.utils.Collection{}
Symbol 539 MovieClip [__Packages.mx.utils.IteratorImpl] Frame 0
class mx.utils.IteratorImpl
{
var _collection, _cursor;
function IteratorImpl (coll) {
_collection = coll;
_cursor = 0;
}
function hasNext() {
return(_cursor < _collection.getLength());
}
function next() {
return(_collection.getItemAt(_cursor++));
}
}
Symbol 540 MovieClip [__Packages.mx.utils.CollectionImpl] Frame 0
class mx.utils.CollectionImpl extends Object
{
var _items;
function CollectionImpl () {
super();
_items = new Array();
}
function addItem(item) {
var _local2 = false;
if (item != null) {
_items.push(item);
_local2 = true;
}
return(_local2);
}
function clear() {
_items = new Array();
}
function contains(item) {
return(internalGetItem(item) > -1);
}
function getItemAt(index) {
return(_items[index]);
}
function getIterator() {
return(new mx.utils.IteratorImpl(this));
}
function getLength() {
return(_items.length);
}
function isEmpty() {
return(_items.length == 0);
}
function removeItem(item) {
var _local2 = false;
var _local3 = internalGetItem(item);
if (_local3 > -1) {
_items.splice(_local3, 1);
_local2 = true;
}
return(_local2);
}
function internalGetItem(item) {
var _local3 = -1;
var _local2 = 0;
while (_local2 < _items.length) {
if (_items[_local2] == item) {
_local3 = _local2;
break;
}
_local2++;
}
return(_local3);
}
}
Symbol 541 MovieClip [__Packages.mx.utils.StringFormatter] Frame 0
class mx.utils.StringFormatter
{
var __extractToken, __infuseToken, __tokenInfo, __format;
function StringFormatter (format, tokens, extractTokenFunc, infuseTokenFunc) {
setFormat(format, tokens);
__extractToken = extractTokenFunc;
__infuseToken = infuseTokenFunc;
}
function extractValue(formattedData, result) {
if (result != null) {
var _local3 = null;
var _local2 = 0;
while (_local2 < __tokenInfo.length) {
_local3 = __tokenInfo[_local2];
__infuseToken(formattedData.substring(_local3.begin, _local3.end), _local3, result);
_local2++;
}
}
}
function formatValue(value) {
var _local5 = "";
if (value != null) {
var _local3 = __tokenInfo[0];
_local5 = __format.substring(0, _local3.begin) + __extractToken(value, _local3);
var _local4 = _local3;
var _local2 = 1;
while (_local2 < __tokenInfo.length) {
_local3 = __tokenInfo[_local2];
_local5 = _local5 + (__format.substring(_local4.end, _local3.begin) + __extractToken(value, _local3));
_local4 = _local3;
_local2++;
}
}
return(_local5);
}
function getFormat() {
return(__format);
}
function setFormat(format, tokens) {
function compareValues(a, b) {
if (a.begin < b.begin) {
return(-1);
}
if (a.begin > b.begin) {
return(1);
}
return(0);
}
if (format != __format) {
__format = format;
var _local5 = tokens.split(",");
__tokenInfo = new Array();
var _local4 = 0;
var _local3 = 0;
var _local7 = 0;
var _local2 = 0;
while (_local2 < _local5.length) {
_local4 = format.indexOf(_local5[_local2]);
if ((_local4 >= 0) && (_local4 < format.length)) {
_local3 = format.lastIndexOf(_local5[_local2]);
_local3 = ((_local3 >= 0) ? (_local3 + 1) : (_local4 + 1));
__tokenInfo.splice(_local7, 0, {token:_local5[_local2], begin:_local4, end:_local3});
_local7++;
}
_local2++;
}
__tokenInfo.sort(compareValues);
}
}
}
Symbol 542 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local2 = __width;
var _local3 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local2, oldHeight:_local3});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = createObject(className.symbolOwner.symbolName, id, depth, initobj);
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.1.78";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 543 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.1.78";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 544 MovieClip [__Packages.mx.controls.listclasses.DataSelector] Frame 0
class mx.controls.listclasses.DataSelector extends Object
{
var __vPosition, setVPosition, __dataProvider, enabled, lastSelID, lastSelected, selected, invUpdateControl, invalidate, multipleSelection, updateControl, __rowCount, rows;
function DataSelector () {
super();
}
static function Initialize(obj) {
var _local3 = mixinProps;
var _local4 = _local3.length;
obj = obj.prototype;
var _local1 = 0;
while (_local1 < _local4) {
obj[_local3[_local1]] = mixins[_local3[_local1]];
_local1++;
}
mixins.createProp(obj, "dataProvider", true);
mixins.createProp(obj, "length", false);
mixins.createProp(obj, "value", false);
mixins.createProp(obj, "selectedIndex", true);
mixins.createProp(obj, "selectedIndices", true);
mixins.createProp(obj, "selectedItems", false);
mixins.createProp(obj, "selectedItem", true);
return(true);
}
function createProp(obj, propName, setter) {
var p = (propName.charAt(0).toUpperCase() + propName.substr(1));
var _local2 = null;
var _local4 = function (Void) {
return(this["get" + p]());
};
if (setter) {
_local2 = function (val) {
this["set" + p](val);
};
}
obj.addProperty(propName, _local4, _local2);
}
function setDataProvider(dP) {
if (__vPosition != 0) {
setVPosition(0);
}
clearSelected();
__dataProvider.removeEventListener(this);
__dataProvider = dP;
dP.addEventListener("modelChanged", this);
dP.addView(this);
modelChanged({eventName:"updateAll"});
}
function getDataProvider(Void) {
return(__dataProvider);
}
function addItemAt(index, label, data) {
if ((index < 0) || (!enabled)) {
return(undefined);
}
var _local2 = __dataProvider;
if (_local2 == undefined) {
_local2 = (__dataProvider = new Array());
_local2.addEventListener("modelChanged", this);
index = 0;
}
if ((typeof(label) == "object") || (typeof(_local2.getItemAt(0)) == "string")) {
_local2.addItemAt(index, label);
} else {
_local2.addItemAt(index, {label:label, data:data});
}
}
function addItem(label, data) {
addItemAt(__dataProvider.length, label, data);
}
function removeItemAt(index) {
return(__dataProvider.removeItemAt(index));
}
function removeAll(Void) {
__dataProvider.removeAll();
}
function replaceItemAt(index, newLabel, newData) {
if (typeof(newLabel) == "object") {
__dataProvider.replaceItemAt(index, newLabel);
} else {
__dataProvider.replaceItemAt(index, {label:newLabel, data:newData});
}
}
function sortItemsBy(fieldName, order) {
lastSelID = __dataProvider.getItemID(lastSelected);
__dataProvider.sortItemsBy(fieldName, order);
}
function sortItems(compareFunc, order) {
lastSelID = __dataProvider.getItemID(lastSelected);
__dataProvider.sortItems(compareFunc, order);
}
function getLength(Void) {
return(__dataProvider.length);
}
function getItemAt(index) {
return(__dataProvider.getItemAt(index));
}
function modelChanged(eventObj) {
var _local3 = eventObj.firstItem;
var _local6 = eventObj.lastItem;
var _local7 = eventObj.eventName;
if (_local7 == undefined) {
_local7 = eventObj.event;
_local3 = eventObj.firstRow;
_local6 = eventObj.lastRow;
if (_local7 == "addRows") {
_local7 = (eventObj.eventName = "addItems");
} else if (_local7 == "deleteRows") {
_local7 = (eventObj.eventName = "removeItems");
} else if (_local7 == "updateRows") {
_local7 = (eventObj.eventName = "updateItems");
}
}
if (_local7 == "addItems") {
for (var _local2 in selected) {
var _local5 = selected[_local2];
if ((_local5 != undefined) && (_local5 >= _local3)) {
selected[_local2] = selected[_local2] + ((_local6 - _local3) + 1);
}
}
} else if (_local7 == "removeItems") {
if (__dataProvider.length == 0) {
delete selected;
} else {
var _local9 = eventObj.removedIDs;
var _local10 = _local9.length;
var _local2 = 0;
while (_local2 < _local10) {
var _local4 = _local9[_local2];
if (selected[_local4] != undefined) {
delete selected[_local4];
}
_local2++;
}
for (_local2 in selected) {
if (selected[_local2] >= _local3) {
selected[_local2] = selected[_local2] - ((_local6 - _local3) + 1);
}
}
}
} else if (_local7 == "sort") {
if (typeof(__dataProvider.getItemAt(0)) != "object") {
delete selected;
} else {
var _local10 = __dataProvider.length;
var _local2 = 0;
while (_local2 < _local10) {
if (isSelected(_local2)) {
var _local4 = __dataProvider.getItemID(_local2);
if (_local4 == lastSelID) {
lastSelected = _local2;
}
selected[_local4] = _local2;
}
_local2++;
}
}
} else if (_local7 == "filterModel") {
setVPosition(0);
}
invUpdateControl = true;
invalidate();
}
function getValue(Void) {
var _local2 = getSelectedItem();
if (typeof(_local2) != "object") {
return(_local2);
}
return(((_local2.data == undefined) ? (_local2.label) : (_local2.data)));
}
function getSelectedIndex(Void) {
for (var _local3 in selected) {
var _local2 = selected[_local3];
if (_local2 != undefined) {
return(_local2);
}
}
}
function setSelectedIndex(index) {
if (((index >= 0) && (index < __dataProvider.length)) && (enabled)) {
delete selected;
selectItem(index, true);
lastSelected = index;
invUpdateControl = true;
invalidate();
} else if (index == undefined) {
clearSelected();
}
}
function getSelectedIndices(Void) {
var _local2 = new Array();
for (var _local3 in selected) {
_local2.push(selected[_local3]);
}
_local2.reverse();
return(((_local2.length > 0) ? (_local2) : undefined));
}
function setSelectedIndices(indexArray) {
if (multipleSelection != true) {
return(undefined);
}
delete selected;
var _local3 = 0;
while (_local3 < indexArray.length) {
var _local2 = indexArray[_local3];
if ((_local2 >= 0) && (_local2 < __dataProvider.length)) {
selectItem(_local2, true);
}
_local3++;
}
invUpdateControl = true;
updateControl();
}
function getSelectedItems(Void) {
var _local3 = getSelectedIndices();
var _local4 = new Array();
var _local2 = 0;
while (_local2 < _local3.length) {
_local4.push(getItemAt(_local3[_local2]));
_local2++;
}
return(((_local4.length > 0) ? (_local4) : undefined));
}
function getSelectedItem(Void) {
return(__dataProvider.getItemAt(getSelectedIndex()));
}
function selectItem(index, selectedFlag) {
if (selected == undefined) {
selected = new Object();
}
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
if (selectedFlag && (!isSelected(index))) {
selected[_local2] = index;
} else if (!selectedFlag) {
delete selected[_local2];
}
}
function isSelected(index) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(false);
}
return(selected[_local2] != undefined);
}
function clearSelected(transition) {
var _local3 = 0;
for (var _local4 in selected) {
var _local2 = selected[_local4];
if (((_local2 != undefined) && (__vPosition <= _local2)) && (_local2 < (__vPosition + __rowCount))) {
rows[_local2 - __vPosition].drawRow(rows[_local2 - __vPosition].item, "normal", transition && ((_local3 % 3) == 0));
}
_local3++;
}
delete selected;
}
static var mixins = new mx.controls.listclasses.DataSelector();
static var mixinProps = ["setDataProvider", "getDataProvider", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "sortItemsBy", "sortItems", "getLength", "getItemAt", "modelChanged", "calcPreferredWidthFromData", "calcPreferredHeightFromData", "getValue", "getSelectedIndex", "getSelectedItem", "getSelectedIndices", "getSelectedItems", "selectItem", "isSelected", "clearSelected", "setSelectedIndex", "setSelectedIndices"];
}
Symbol 545 MovieClip [__Packages.mx.controls.ComboBase] Frame 0
class mx.controls.ComboBase extends mx.core.UIComponent
{
var getValue, tabEnabled, tabChildren, boundingBox_mc, downArrow_mc, createClassObject, onDownArrow, border_mc, __border, text_mc, focusTextField, __width, __height, getFocusManager, __get__height, height, _parent;
function ComboBase () {
super();
getValue = _getValue;
}
function init() {
super.init();
tabEnabled = !_editable;
tabChildren = _editable;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function createChildren() {
var _local3 = new Object();
_local3.styleName = this;
if (downArrow_mc == undefined) {
_local3.falseUpSkin = downArrowUpName;
_local3.falseOverSkin = downArrowOverName;
_local3.falseDownSkin = downArrowDownName;
_local3.falseDisabledSkin = downArrowDisabledName;
_local3.validateNow = true;
_local3.tabEnabled = false;
createClassObject(mx.controls.SimpleButton, "downArrow_mc", 19, _local3);
downArrow_mc.buttonDownHandler = onDownArrow;
downArrow_mc.useHandCursor = false;
downArrow_mc.onPressWas = downArrow_mc.onPress;
downArrow_mc.onPress = function () {
this.trackAsMenuWas = this.trackAsMenu;
this.trackAsMenu = true;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onPressWas();
};
downArrow_mc.onDragOutWas = downArrow_mc.onDragOut;
downArrow_mc.onDragOut = function () {
this.trackAsMenuWas = this.trackAsMenu;
this.trackAsMenu = false;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onDragOutWas();
};
downArrow_mc.onDragOverWas = downArrow_mc.onDragOver;
downArrow_mc.onDragOver = function () {
this.trackAsMenu = this.trackAsMenuWas;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onDragOverWas();
};
}
if (border_mc == undefined) {
_local3.tabEnabled = false;
createClassObject(_global.styles.rectBorderClass, "border_mc", 17, _local3);
border_mc.move(0, 0);
__border = border_mc;
}
_local3.borderStyle = "none";
_local3.readOnly = !_editable;
_local3.tabEnabled = _editable;
if (text_mc == undefined) {
createClassObject(mx.controls.TextInput, "text_mc", 18, _local3);
text_mc.move(0, 0);
text_mc.addEnterEvents();
text_mc.enterHandler = _enterHandler;
text_mc.changeHandler = _changeHandler;
text_mc.oldOnSetFocus = text_mc.onSetFocus;
text_mc.onSetFocus = function () {
this.oldOnSetFocus();
this._parent.onSetFocus();
};
text_mc.__set__restrict("^\x1B");
text_mc.oldOnKillFocus = text_mc.onKillFocus;
text_mc.onKillFocus = function (n) {
this.oldOnKillFocus(n);
this._parent.onKillFocus(n);
};
text_mc.drawFocus = function (b) {
this._parent.drawFocus(b);
};
delete text_mc.borderStyle;
}
focusTextField = text_mc;
text_mc.owner = this;
layoutChildren(__width, __height);
}
function onKillFocus() {
super.onKillFocus();
Key.removeListener(text_mc);
getFocusManager().defaultPushButtonEnabled = true;
}
function onSetFocus() {
super.onSetFocus();
getFocusManager().defaultPushButtonEnabled = false;
Key.addListener(text_mc);
}
function setFocus() {
if (_editable) {
Selection.setFocus(text_mc);
} else {
Selection.setFocus(this);
}
}
function setSize(w, h, noEvent) {
super.setSize(w, ((h == undefined) ? (__get__height()) : (h)), noEvent);
}
function setEnabled(enabledFlag) {
super.setEnabled(enabledFlag);
downArrow_mc.enabled = enabledFlag;
text_mc.enabled = enabledFlag;
}
function setEditable(e) {
_editable = e;
if (wrapDownArrowButton == false) {
if (e) {
border_mc.borderStyle = "inset";
text_mc.borderStyle = "inset";
symbolName = "ComboBox";
invalidateStyle();
} else {
border_mc.borderStyle = "comboNonEdit";
text_mc.borderStyle = "dropDown";
symbolName = "DropDown";
invalidateStyle();
}
}
tabEnabled = !e;
tabChildren = e;
text_mc.tabEnabled = e;
if (e) {
delete text_mc.onPress;
delete text_mc.onRelease;
delete text_mc.onReleaseOutside;
delete text_mc.onDragOut;
delete text_mc.onDragOver;
delete text_mc.onRollOver;
delete text_mc.onRollOut;
} else {
text_mc.onPress = function () {
this._parent.downArrow_mc.onPress();
};
text_mc.onRelease = function () {
this._parent.downArrow_mc.onRelease();
};
text_mc.onReleaseOutside = function () {
this._parent.downArrow_mc.onReleaseOutside();
};
text_mc.onDragOut = function () {
this._parent.downArrow_mc.onDragOut();
};
text_mc.onDragOver = function () {
this._parent.downArrow_mc.onDragOver();
};
text_mc.onRollOver = function () {
this._parent.downArrow_mc.onRollOver();
};
text_mc.onRollOut = function () {
this._parent.downArrow_mc.onRollOut();
};
text_mc.useHandCursor = false;
}
}
function get editable() {
return(_editable);
}
function set editable(e) {
setEditable(e);
//return(editable);
}
function _getValue() {
return((_editable ? (text_mc.getText()) : (DSgetValue())));
}
function draw() {
downArrow_mc.draw();
border_mc.draw();
}
function size() {
layoutChildren(__width, __height);
}
function setTheme(t) {
downArrowUpName = (t + "downArrow") + "Up_mc";
downArrowDownName = (t + "downArrow") + "Down_mc";
downArrowDisabledName = (t + "downArrow") + "Disabled_mc";
}
function get text() {
return(text_mc.getText());
}
function set text(t) {
setText(t);
//return(text);
}
function setText(t) {
text_mc.setText(t);
}
function get textField() {
return(text_mc);
}
function get restrict() {
return(text_mc.__get__restrict());
}
function set restrict(w) {
text_mc.__set__restrict(w);
//return(restrict);
}
function invalidateStyle() {
downArrow_mc.invalidateStyle();
text_mc.invalidateStyle();
border_mc.invalidateStyle();
}
function layoutChildren(w, h) {
if (downArrow_mc == undefined) {
return(undefined);
}
if (wrapDownArrowButton) {
var _local2 = border_mc.__get__borderMetrics();
downArrow_mc._width = (downArrow_mc._height = (h - _local2.top) - _local2.bottom);
downArrow_mc.move((w - downArrow_mc._width) - _local2.right, _local2.top);
border_mc.setSize(w, h);
text_mc.setSize(w - downArrow_mc._width, h);
} else {
downArrow_mc.move(w - downArrow_mc._width, 0);
border_mc.setSize(w - downArrow_mc.width, h);
text_mc.setSize(w - downArrow_mc._width, h);
downArrow_mc._height = height;
}
}
function _changeHandler(obj) {
}
function _enterHandler(obj) {
var _local2 = _parent;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function get tabIndex() {
return(text_mc.__get__tabIndex());
}
function set tabIndex(w) {
text_mc.__set__tabIndex(w);
//return(tabIndex);
}
static var mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.ComboBase);
static var symbolName = "ComboBase";
static var symbolOwner = mx.controls.ComboBase;
static var version = "2.0.1.78";
var _editable = false;
var downArrowUpName = "ScrollDownArrowUp";
var downArrowDownName = "ScrollDownArrowDown";
var downArrowOverName = "ScrollDownArrowOver";
var downArrowDisabledName = "ScrollDownArrowDisabled";
var wrapDownArrowButton = true;
var DSgetValue = mx.controls.listclasses.DataSelector.prototype.getValue;
var multipleSelection = false;
}
Symbol 546 MovieClip [__Packages.mx.controls.ComboBox] Frame 0
class mx.controls.ComboBox extends mx.controls.ComboBase
{
var __set__editable, editable, __labels, data, __dropdownWidth, __width, _editable, selectedIndex, __dropdown, dataProvider, __labelFunction, createObject, border_mc, mask, text_mc, dispatchValueChangedEvent, getValue, length, selectedItem, _y, isPressed, owner, __set__visible, height, localToGlobal, __selectedIndexOnDropdown, __get__height, getStyle, _parent, width, __dataProvider, selected, dispatchEvent;
function ComboBox () {
super();
}
function init() {
super.init();
}
function createChildren() {
super.createChildren();
__set__editable(editable);
if (__labels.length > 0) {
var _local6 = new Array();
var _local3 = 0;
while (_local3 < labels.length) {
_local6.addItem({label:labels[_local3], data:data[_local3]});
_local3++;
}
setDataProvider(_local6);
}
dropdownWidth = (((typeof(__dropdownWidth) == "number") ? (__dropdownWidth) : (__width)));
if (!_editable) {
selectedIndex = 0;
}
initializing = false;
}
function onKillFocus(n) {
if (_showingDropdown && (n != null)) {
displayDropdown(false);
}
super.onKillFocus();
}
function getDropdown() {
if (initializing) {
return(undefined);
}
if (!hasDropdown()) {
var _local3 = new Object();
_local3.styleName = this;
if (dropdownBorderStyle != undefined) {
_local3.borderStyle = dropdownBorderStyle;
}
_local3._visible = false;
__dropdown = mx.managers.PopUpManager.createPopUp(this, mx.controls.List, false, _local3, true);
__dropdown.scroller.mask.removeMovieClip();
if (dataProvider == undefined) {
dataProvider = new Array();
}
__dropdown.setDataProvider(dataProvider);
__dropdown.selectMultiple = false;
__dropdown.rowCount = __rowCount;
__dropdown.selectedIndex = selectedIndex;
__dropdown.vScrollPolicy = "auto";
__dropdown.labelField = __labelField;
__dropdown.labelFunction = __labelFunction;
__dropdown.owner = this;
__dropdown.changeHandler = _changeHandler;
__dropdown.scrollHandler = _scrollHandler;
__dropdown.itemRollOverHandler = _itemRollOverHandler;
__dropdown.itemRollOutHandler = _itemRollOutHandler;
__dropdown.resizeHandler = _resizeHandler;
__dropdown.mouseDownOutsideHandler = function (eventObj) {
var _local3 = this.owner;
var _local4 = new Object();
_local4.x = _local3._root._xmouse;
_local4.y = _local3._root._ymouse;
_local3._root.localToGlobal(_local4);
if (_local3.hitTest(_local4.x, _local4.y, false)) {
} else if ((!this.wrapDownArrowButton) && (this.owner.downArrow_mc.hitTest(_root._xmouse, _root._ymouse, false))) {
} else {
_local3.displayDropdown(false);
}
};
__dropdown.onTweenUpdate = function (v) {
this._y = v;
};
__dropdown.setSize(__dropdownWidth, __dropdown.height);
createObject("BoundingBox", "mask", 20);
mask._y = border_mc.height;
mask._width = __dropdownWidth;
mask._height = __dropdown.height;
mask._visible = false;
__dropdown.setMask(mask);
}
return(__dropdown);
}
function setSize(w, h, noEvent) {
super.setSize(w, h, noEvent);
__dropdownWidth = w;
__dropdown.rowHeight = h;
__dropdown.setSize(__dropdownWidth, __dropdown.height);
}
function setEditable(e) {
super.setEditable(e);
if (e) {
text_mc.setText("");
} else {
text_mc.setText(selectedLabel);
}
}
function get labels() {
return(__labels);
}
function set labels(lbls) {
__labels = lbls;
setDataProvider(lbls);
//return(labels);
}
function getLabelField() {
return(__labelField);
}
function get labelField() {
return(getLabelField());
}
function setLabelField(s) {
__dropdown.labelField = (__labelField = s);
text_mc.setText(selectedLabel);
}
function set labelField(s) {
setLabelField(s);
//return(labelField);
}
function getLabelFunction() {
return(__labelFunction);
}
function get labelFunction() {
return(getLabelFunction());
}
function set labelFunction(f) {
__dropdown.labelFunction = (__labelFunction = f);
text_mc.setText(selectedLabel);
//return(labelFunction);
}
function setSelectedItem(v) {
super.setSelectedItem(v);
__dropdown.selectedItem = v;
text_mc.setText(selectedLabel);
}
function setSelectedIndex(v) {
super.setSelectedIndex(v);
__dropdown.selectedIndex = v;
if (v != undefined) {
text_mc.setText(selectedLabel);
}
dispatchValueChangedEvent(getValue());
}
function setRowCount(count) {
if (isNaN(count)) {
return(undefined);
}
__rowCount = count;
__dropdown.setRowCount(count);
}
function get rowCount() {
return(Math.max(1, Math.min(length, __rowCount)));
}
function set rowCount(v) {
setRowCount(v);
//return(rowCount);
}
function setDropdownWidth(w) {
__dropdownWidth = w;
__dropdown.setSize(w, __dropdown.height);
}
function get dropdownWidth() {
return(__dropdownWidth);
}
function set dropdownWidth(v) {
setDropdownWidth(v);
//return(dropdownWidth);
}
function get dropdown() {
return(getDropdown());
}
function setDataProvider(dp) {
super.setDataProvider(dp);
__dropdown.setDataProvider(dp);
if (!_editable) {
selectedIndex = 0;
}
}
function open() {
displayDropdown(true);
}
function close() {
displayDropdown(false);
}
function get selectedLabel() {
var _local2 = selectedItem;
if (_local2 == undefined) {
return("");
}
if (labelFunction != undefined) {
return(labelFunction(_local2));
}
if (typeof(_local2) != "object") {
return(_local2);
}
if (_local2[labelField] != undefined) {
return(_local2[labelField]);
}
if (_local2.label != undefined) {
return(_local2.label);
}
var _local3 = " ";
for (var _local4 in _local2) {
if (_local4 != "__ID__") {
_local3 = (_local2[_local4] + ", ") + _local3;
}
}
_local3 = _local3.substring(0, _local3.length - 3);
return(_local3);
}
function hasDropdown() {
return((__dropdown != undefined) && (__dropdown.valueOf() != undefined));
}
function tweenEndShow(value) {
_y = value;
isPressed = true;
owner.dispatchEvent({type:"open", target:owner});
}
function tweenEndHide(value) {
_y = value;
__set__visible(false);
owner.dispatchEvent({type:"close", target:owner});
}
function displayDropdown(show) {
if (show == _showingDropdown) {
return(undefined);
}
var _local3 = new Object();
_local3.x = 0;
_local3.y = height;
localToGlobal(_local3);
if (show) {
__selectedIndexOnDropdown = selectedIndex;
getDropdown();
var _local2 = __dropdown;
_local2.isPressed = true;
_local2.rowCount = rowCount;
_local2.visible = show;
_local2._parent.globalToLocal(_local3);
_local2.onTweenEnd = tweenEndShow;
var _local5;
var _local8;
if ((_local3.y + _local2.height) > Stage.height) {
_local5 = _local3.y - __get__height();
_local8 = _local5 - _local2.height;
mask._y = -_local2.height;
} else {
_local5 = _local3.y - _local2.height;
_local8 = _local3.y;
mask._y = border_mc.height;
}
var _local6 = _local2.selectedIndex;
if (_local6 == undefined) {
_local6 = 0;
}
var _local4 = _local2.vPosition;
_local4 = _local6 - 1;
_local4 = Math.min(Math.max(_local4, 0), _local2.length - _local2.rowCount);
_local2.vPosition = _local4;
_local2.move(_local3.x, _local5);
_local2.tween = new mx.effects.Tween(__dropdown, _local5, _local8, getStyle("openDuration"));
} else {
__dropdown._parent.globalToLocal(_local3);
delete __dropdown.dragScrolling;
__dropdown.onTweenEnd = tweenEndHide;
__dropdown.tween = new mx.effects.Tween(__dropdown, __dropdown._y, _local3.y - __dropdown.height, getStyle("openDuration"));
}
var _local9 = getStyle("openEasing");
if (_local9 != undefined) {
__dropdown.tween.easingEquation = _local9;
}
_showingDropdown = show;
}
function onDownArrow() {
_parent.displayDropdown(!_parent._showingDropdown);
}
function keyDown(e) {
if (e.ctrlKey && (e.code == 40)) {
displayDropdown(true);
} else if (e.ctrlKey && (e.code == 38)) {
displayDropdown(false);
dispatchChangeEvent(undefined, __selectedIndexOnDropdown, selectedIndex);
} else if (e.code == 27) {
displayDropdown(false);
} else if (e.code == 13) {
if (_showingDropdown) {
selectedIndex = __dropdown.selectedIndex;
displayDropdown(false);
dispatchChangeEvent(undefined, __selectedIndexOnDropdown, selectedIndex);
}
} else if (((((!_editable) || (e.code == 38)) || (e.code == 40)) || (e.code == 33)) || (e.code == 34)) {
selectedIndex = 0 + selectedIndex;
bInKeyDown = true;
var _local3 = dropdown;
_local3.keyDown(e);
bInKeyDown = false;
selectedIndex = __dropdown.selectedIndex;
}
}
function invalidateStyle(styleProp) {
__dropdown.invalidateStyle(styleProp);
super.invalidateStyle(styleProp);
}
function changeTextStyleInChildren(styleProp) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.changeTextStyleInChildren(styleProp);
super.changeTextStyleInChildren(styleProp);
}
function changeColorStyleInChildren(sheetName, styleProp, newValue) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.changeColorStyleInChildren(sheetName, styleProp, newValue);
super.changeColorStyleInChildren(sheetName, styleProp, newValue);
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
super.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
}
function onUnload() {
__dropdown.removeMovieClip();
}
function _resizeHandler() {
var _local2 = owner;
_local2.mask._width = width;
_local2.mask._height = height;
}
function _changeHandler(obj) {
var _local2 = owner;
var _local3 = _local2.selectedIndex;
obj.target = _local2;
if (this == owner.text_mc) {
_local2.selectedIndex = undefined;
_local2.dispatchChangeEvent(obj, -1, -2);
} else {
_local2.selectedIndex = selectedIndex;
if (!_local2._showingDropdown) {
_local2.dispatchChangeEvent(obj, _local3, _local2.selectedIndex);
} else if (!_local2.bInKeyDown) {
_local2.displayDropdown(false);
_local2.dispatchChangeEvent(obj, _local3, _local2.selectedIndex);
}
}
}
function _scrollHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function _itemRollOverHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function _itemRollOutHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function modelChanged(eventObj) {
super.modelChanged(eventObj);
if (0 == __dataProvider.length) {
text_mc.setText("");
delete selected;
} else if ((__dataProvider.length == ((eventObj.lastItem - eventObj.firstItem) + 1)) && (eventObj.eventName == "addItems")) {
selectedIndex = 0;
}
}
function dispatchChangeEvent(obj, prevValue, newValue) {
var _local2;
if (prevValue != newValue) {
if ((obj != undefined) && (obj.type == "change")) {
_local2 = obj;
} else {
_local2 = {type:"change"};
}
dispatchEvent(_local2);
}
}
static var symbolName = "ComboBox";
static var symbolOwner = mx.controls.ComboBox;
static var version = "2.0.1.78";
var clipParameters = {labels:1, data:1, editable:1, rowCount:1, dropdownWidth:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.ComboBox.prototype.clipParameters, mx.controls.ComboBase.prototype.clipParameters);
var className = "ComboBox";
var _showingDropdown = false;
var __rowCount = 5;
var dropdownBorderStyle = undefined;
var initializing = true;
var __labelField = "label";
var bInKeyDown = false;
}
Symbol 659 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 660 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 661 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 662 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 663 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject
{
function Border () {
super();
}
function init(Void) {
super.init();
}
static var symbolName = "Border";
static var symbolOwner = mx.skins.Border;
var className = "Border";
var tagBorder = 0;
var idNames = new Array("border_mc");
}
Symbol 664 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height, offset, __borderMetrics;
function RectBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function draw(Void) {
size();
}
function getBorderMetrics(Void) {
var _local2 = offset;
if (__borderMetrics == undefined) {
__borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2};
} else {
__borderMetrics.left = _local2;
__borderMetrics.top = _local2;
__borderMetrics.right = _local2;
__borderMetrics.bottom = _local2;
}
return(__borderMetrics);
}
function get borderMetrics() {
return(getBorderMetrics());
}
function drawBorder(Void) {
}
function size(Void) {
drawBorder();
}
function setColor(Void) {
drawBorder();
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.RectBorder;
static var version = "2.0.1.78";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 665 MovieClip [__Packages.mx.controls.TextInput] Frame 0
class mx.controls.TextInput extends mx.core.UIComponent
{
var owner, enterListener, label, tabChildren, tabEnabled, focusTextField, _color, _parent, border_mc, createClassObject, dispatchValueChangedEvent, __get__width, __get__height, tfx, tfy, tfw, tfh, getStyle, bind, updateModel, _getTextFormat, enabled;
function TextInput () {
super();
}
function addEventListener(event, handler) {
if (event == "enter") {
addEnterEvents();
}
super.addEventListener(event, handler);
}
function enterOnKeyDown() {
if (Key.getAscii() == 13) {
owner.dispatchEvent({type:"enter"});
}
}
function addEnterEvents() {
if (enterListener == undefined) {
enterListener = new Object();
enterListener.owner = this;
enterListener.onKeyDown = enterOnKeyDown;
}
}
function init(Void) {
super.init();
label.styleName = this;
tabChildren = true;
tabEnabled = false;
focusTextField = label;
_color = mx.core.UIObject.textColorList;
label.onSetFocus = function () {
this._parent.onSetFocus();
};
label.onKillFocus = function (n) {
this._parent.onKillFocus(n);
};
label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
label.onChanged = onLabelChanged;
}
function setFocus() {
Selection.setFocus(label);
}
function onLabelChanged(Void) {
_parent.dispatchEvent({type:"change"});
_parent.dispatchValueChangedEvent(text);
}
function createChildren(Void) {
super.createChildren();
if (border_mc == undefined) {
createClassObject(_global.styles.rectBorderClass, "border_mc", 0, {styleName:this});
}
border_mc.swapDepths(label);
label.autoSize = "none";
}
function get html() {
return(getHtml());
}
function set html(value) {
setHtml(value);
//return(html);
}
function getHtml() {
return(label.html);
}
function setHtml(value) {
if (value != label.html) {
label.html = value;
}
}
function get text() {
return(getText());
}
function set text(t) {
setText(t);
//return(text);
}
function getText() {
if (initializing) {
return(initText);
}
if (label.html == true) {
return(label.htmlText);
}
return(label.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = label;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
}
dispatchValueChangedEvent(t);
}
function size(Void) {
border_mc.setSize(__get__width(), __get__height());
var _local2 = border_mc.__get__borderMetrics();
var _local6 = _local2.left + _local2.right;
var _local3 = _local2.top + _local2.bottom;
var _local5 = _local2.left;
var _local4 = _local2.top;
tfx = _local5;
tfy = _local4;
tfw = __get__width() - _local6;
tfh = __get__height() - _local3;
label.move(tfx, tfy);
label.setSize(tfw, tfh + 1);
}
function setEnabled(enable) {
label.type = (((__editable == true) || (enable == false)) ? "input" : "dynamic");
label.selectable = enable;
var _local2 = getStyle((enable ? "color" : "disabledColor"));
if (_local2 == undefined) {
_local2 = (enable ? 0 : 8947848);
}
setColor(_local2);
}
function setColor(col) {
label.textColor = col;
}
function onKillFocus(newFocus) {
if (enterListener != undefined) {
Key.removeListener(enterListener);
}
if (bind != undefined) {
updateModel(text);
}
super.onKillFocus(newFocus);
}
function onSetFocus(oldFocus) {
var f = Selection.getFocus();
var o = eval (f);
if (o != label) {
Selection.setFocus(label);
return(undefined);
}
if (enterListener != undefined) {
Key.addListener(enterListener);
}
super.onSetFocus(oldFocus);
}
function draw(Void) {
var _local2 = label;
var _local4 = getText();
if (initializing) {
initializing = false;
delete initText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
_local2.multiline = false;
_local2.wordWrap = false;
if (_local2.html == true) {
_local2.setTextFormat(_local3);
_local2.htmlText = _local4;
} else {
_local2.text = _local4;
}
_local2.type = (((__editable == true) || (enabled == false)) ? "input" : "dynamic");
size();
}
function setEditable(s) {
__editable = s;
label.type = (s ? "input" : "dynamic");
}
function get maxChars() {
return(label.maxChars);
}
function set maxChars(w) {
label.maxChars = w;
//return(maxChars);
}
function get length() {
return(label.length);
}
function get restrict() {
return(label.restrict);
}
function set restrict(w) {
label.restrict = ((w == "") ? null : (w));
//return(restrict);
}
function get hPosition() {
return(label.hscroll);
}
function set hPosition(w) {
label.hscroll = w;
//return(hPosition);
}
function get maxHPosition() {
return(label.maxhscroll);
}
function get editable() {
return(__editable);
}
function set editable(w) {
setEditable(w);
//return(editable);
}
function get password() {
return(label.password);
}
function set password(w) {
label.password = w;
//return(password);
}
function get tabIndex() {
return(label.tabIndex);
}
function set tabIndex(w) {
label.tabIndex = w;
//return(tabIndex);
}
function set _accProps(val) {
label._accProps = val;
//return(_accProps);
}
function get _accProps() {
return(label._accProps);
}
static var symbolName = "TextInput";
static var symbolOwner = mx.controls.TextInput;
static var version = "2.0.1.78";
var className = "TextInput";
var initializing = true;
var clipParameters = {text:1, editable:1, password:1, maxChars:1, restrict:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var _maxWidth = mx.core.UIComponent.kStretch;
var __editable = true;
var initText = "";
}
Symbol 666 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent
{
static var emphasizedStyleDeclaration;
var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle;
function SimpleButton () {
super();
}
function init(Void) {
super.init();
if (preset == undefined) {
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
useHandCursor = false;
}
function createChildren(Void) {
if (preset != undefined) {
var _local2 = this[idNames[preset]];
this[refNames[preset]] = _local2;
skinName = _local2;
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
initializing = false;
} else if (__state == true) {
setStateVar(true);
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
}
}
function setIcon(tag, linkageName) {
return(setSkin(tag + 8, linkageName));
}
function changeIcon(tag, linkageName) {
linkLength = linkageName.length;
var _local2 = stateNames[tag] + "Icon";
this[_local2] = linkageName;
this[idNames[tag + 8]] = _local2;
setStateVar(getState());
}
function changeSkin(tag, linkageName) {
var _local2 = stateNames[tag] + "Skin";
this[_local2] = linkageName;
this[idNames[tag]] = _local2;
setStateVar(getState());
}
function viewIcon(varName) {
var _local4 = varName + "Icon";
var _local3 = this[_local4];
if (typeof(_local3) == "string") {
var _local5 = _local3;
if (__emphasized) {
if (this[_local3 + "Emphasized"].length > 0) {
_local3 = _local3 + "Emphasized";
}
}
if (this[_local3].length == 0) {
return(undefined);
}
_local3 = setIcon(tagMap[_local5], this[_local3]);
if ((_local3 == undefined) && (_global.isLivePreview)) {
_local3 = setIcon(0, "ButtonIcon");
}
this[_local4] = _local3;
}
iconName._visible = false;
iconName = _local3;
iconName._visible = true;
}
function removeIcons() {
var _local3 = 0;
while (_local3 < 2) {
var _local2 = 8;
while (_local2 < 16) {
destroyObject(idNames[_local2]);
this[stateNames[_local2 - 8] + "Icon"] = "";
_local2++;
}
_local3++;
}
refresh();
}
function setSkin(tag, linkageName, initobj) {
var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this})));
calcSize(tag, _local3);
return(_local3);
}
function calcSize(Void) {
__width = _width;
__height = _height;
}
function viewSkin(varName, initObj) {
var _local3 = varName + "Skin";
var _local2 = this[_local3];
if (typeof(_local2) == "string") {
var _local4 = _local2;
if (__emphasized) {
if (this[_local2 + "Emphasized"].length > 0) {
_local2 = _local2 + "Emphasized";
}
}
if (this[_local2].length == 0) {
return(undefined);
}
_local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this})));
this[_local3] = _local2;
}
skinName._visible = false;
skinName = _local2;
skinName._visible = true;
}
function showEmphasized(e) {
if (e && (!__emphatic)) {
if (emphasizedStyleDeclaration != undefined) {
__emphaticStyleName = styleName;
styleName = emphasizedStyleDeclaration;
}
__emphatic = true;
} else {
if (__emphatic) {
styleName = __emphaticStyleName;
}
__emphatic = false;
}
}
function refresh(Void) {
var _local2 = getState();
if (enabled == false) {
viewIcon("disabled");
viewSkin("disabled");
} else {
viewSkin(phase);
viewIcon(phase);
}
setView(phase == "down");
iconName.enabled = enabled;
}
function setView(offset) {
if (iconName == undefined) {
return(undefined);
}
var _local2 = (offset ? (btnOffset) : 0);
iconName._x = ((__width - iconName._width) / 2) + _local2;
iconName._y = ((__height - iconName._height) / 2) + _local2;
}
function setStateVar(state) {
if (state) {
if (trueOverSkin.length == 0) {
rolloverSkin = tus;
} else {
rolloverSkin = trs;
}
if (trueOverIcon.length == 0) {
rolloverIcon = tui;
} else {
rolloverIcon = tri;
}
upSkin = tus;
downSkin = tds;
disabledSkin = dts;
upIcon = tui;
downIcon = tdi;
disabledIcon = dti;
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
} else {
rolloverSkin = frs;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
} else {
rolloverIcon = fri;
}
upSkin = fus;
downSkin = fds;
disabledSkin = dfs;
upIcon = fui;
downIcon = fdi;
disabledIcon = dfi;
}
__state = state;
}
function setState(state) {
if (state != __state) {
setStateVar(state);
invalidate();
}
}
function size(Void) {
refresh();
}
function draw(Void) {
if (initializing) {
initializing = false;
skinName.visible = true;
iconName.visible = true;
}
size();
}
function getState(Void) {
return(__state);
}
function setToggle(val) {
__toggle = val;
if (__toggle == false) {
setState(false);
}
}
function getToggle(Void) {
return(__toggle);
}
function set toggle(val) {
setToggle(val);
//return(toggle);
}
function get toggle() {
return(getToggle());
}
function set value(val) {
setSelected(val);
//return(value);
}
function get value() {
return(getSelected());
}
function set selected(val) {
setSelected(val);
//return(selected);
}
function get selected() {
return(getSelected());
}
function setSelected(val) {
if (__toggle) {
setState(val);
} else {
setState((initializing ? (val) : (__state)));
}
}
function getSelected() {
return(__state);
}
function setEnabled(val) {
if (enabled != val) {
super.setEnabled(val);
invalidate();
}
}
function onPress(Void) {
pressFocus();
phase = "down";
refresh();
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
interval = setInterval(this, "onPressDelay", getStyle("repeatDelay"));
}
}
function onPressDelay(Void) {
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
clearInterval(interval);
interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval"));
}
}
function onPressRepeat(Void) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(Void) {
releaseFocus();
phase = "rollover";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
if (getToggle()) {
setState(!getState());
} else {
refresh();
}
dispatchEvent({type:"click"});
}
function onDragOut(Void) {
phase = "up";
refresh();
dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(Void) {
if (phase != "up") {
onPress();
return(undefined);
}
phase = "down";
refresh();
}
function onReleaseOutside(Void) {
releaseFocus();
phase = "up";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
}
function onRollOver(Void) {
phase = "rollover";
refresh();
}
function onRollOut(Void) {
phase = "up";
refresh();
}
function getLabel(Void) {
return(fui.text);
}
function setLabel(val) {
if (typeof(fui) == "string") {
createLabel("fui", 8, val);
fui.styleName = this;
} else {
fui.text = val;
}
var _local4 = fui._getTextFormat();
var _local2 = _local4.getTextExtent2(val);
fui._width = _local2.width + 5;
fui._height = _local2.height + 5;
iconName = fui;
setView(__state);
}
function get emphasized() {
return(__emphasized);
}
function set emphasized(val) {
__emphasized = val;
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]] = stateNames[_local2] + "Skin";
if (typeof(this[idNames[_local2 + 8]]) == "movieclip") {
this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon";
}
_local2++;
}
showEmphasized(__emphasized);
setStateVar(__state);
invalidateStyle();
//return(emphasized);
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
function keyUp(e) {
if (e.code == 32) {
onRelease();
}
}
function onKillFocus(newFocus) {
super.onKillFocus();
if (phase != "up") {
phase = "up";
refresh();
}
}
static var symbolName = "SimpleButton";
static var symbolOwner = mx.controls.SimpleButton;
static var version = "2.0.1.78";
var className = "SimpleButton";
var style3dInset = 4;
var btnOffset = 1;
var __toggle = false;
var __state = false;
var __emphasized = false;
var __emphatic = false;
static var falseUp = 0;
static var falseDown = 1;
static var falseOver = 2;
static var falseDisabled = 3;
static var trueUp = 4;
static var trueDown = 5;
static var trueOver = 6;
static var trueDisabled = 7;
var falseUpSkin = "SimpleButtonUp";
var falseDownSkin = "SimpleButtonIn";
var falseOverSkin = "";
var falseDisabledSkin = "SimpleButtonUp";
var trueUpSkin = "SimpleButtonIn";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "SimpleButtonIn";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var phase = "up";
var fui = "falseUpIcon";
var fus = "falseUpSkin";
var fdi = "falseDownIcon";
var fds = "falseDownSkin";
var frs = "falseOverSkin";
var fri = "falseOverIcon";
var dfi = "falseDisabledIcon";
var dfs = "falseDisabledSkin";
var tui = "trueUpIcon";
var tus = "trueUpSkin";
var tdi = "trueDownIcon";
var tds = "trueDownSkin";
var trs = "trueOverSkin";
var tri = "trueOverIcon";
var dts = "trueDisabledSkin";
var dti = "trueDisabledIcon";
var rolloverSkin = mx.controls.SimpleButton.prototype.frs;
var rolloverIcon = mx.controls.SimpleButton.prototype.fri;
var upSkin = mx.controls.SimpleButton.prototype.fus;
var downSkin = mx.controls.SimpleButton.prototype.fds;
var disabledSkin = mx.controls.SimpleButton.prototype.dfs;
var upIcon = mx.controls.SimpleButton.prototype.fui;
var downIcon = mx.controls.SimpleButton.prototype.fdi;
var disabledIcon = mx.controls.SimpleButton.prototype.dfi;
var initializing = true;
var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"];
var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"];
var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"];
var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7};
}
Symbol 667 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
_global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1);
_global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1);
_global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1);
_global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1);
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function setDepthTo(depthFlag) {
var _local2 = _parent.buildDepthTable();
var _local3 = _parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
shuffleDepths(this, _local3, _local2, undefined);
} else {
swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local2 = targetInstance.getDepth() + 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local2] != undefined) && (getDepth() < _local2)) {
_local2 = _local2 - 1;
}
if (_local2 > highestDepth) {
_local2 = highestDepth;
}
if (_local2 == highestDepth) {
_parent.shuffleDepths(this, _local2, _local3, "down");
} else if (_local3[_local2] != undefined) {
_parent.shuffleDepths(this, _local2, _local3, undefined);
} else {
swapDepths(_local2);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local6 = targetInstance.getDepth() - 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local6] != undefined) && (getDepth() > _local6)) {
_local6 = _local6 + 1;
}
var _local4 = lowestDepth + numberOfAuthortimeLayers;
var _local5;
for (_local5 in _local3) {
var _local2 = _local3[_local5];
if (_local2._parent != undefined) {
_local4 = Math.min(_local4, _local2.getDepth());
}
}
if (_local6 < _local4) {
_local6 = _local4;
}
if (_local6 == _local4) {
_parent.shuffleDepths(this, _local6, _local3, "up");
} else if (_local3[_local6] != undefined) {
_parent.shuffleDepths(this, _local6, _local3, undefined);
} else {
swapDepths(_local6);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local2 = targetDepth;
var _local1 = targetDepth;
if (direction == "down") {
while (depthTable[_local1] != undefined) {
_local1--;
}
return(_local1);
}
while (depthTable[_local2] != undefined) {
_local2++;
}
return(_local2);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 668 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class mx.managers.SystemManager
{
static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent;
function SystemManager () {
}
static function init(Void) {
if (_initialized == false) {
_initialized = true;
mx.events.EventDispatcher.initialize(mx.managers.SystemManager);
Mouse.addListener(mx.managers.SystemManager);
Stage.addListener(mx.managers.SystemManager);
_xAddEventListener = addEventListener;
addEventListener = __addEventListener;
_xRemoveEventListener = removeEventListener;
removeEventListener = __removeEventListener;
}
}
static function addFocusManager(f) {
form = f;
f.focusManager.activate();
}
static function removeFocusManager(f) {
}
static function onMouseDown(Void) {
var _local1 = form;
_local1.focusManager._onMouseDown();
}
static function onResize(Void) {
var _local7 = Stage.width;
var _local6 = Stage.height;
var _local9 = _global.origWidth;
var _local8 = _global.origHeight;
var _local3 = Stage.align;
var _local5 = (_local9 - _local7) / 2;
var _local4 = (_local8 - _local6) / 2;
if (_local3 == "T") {
_local4 = 0;
} else if (_local3 == "B") {
_local4 = _local8 - _local6;
} else if (_local3 == "L") {
_local5 = 0;
} else if (_local3 == "R") {
_local5 = _local9 - _local7;
} else if (_local3 == "LT") {
_local4 = 0;
_local5 = 0;
} else if (_local3 == "TR") {
_local4 = 0;
_local5 = _local9 - _local7;
} else if (_local3 == "LB") {
_local4 = _local8 - _local6;
_local5 = 0;
} else if (_local3 == "RB") {
_local4 = _local8 - _local6;
_local5 = _local9 - _local7;
}
if (__screen == undefined) {
__screen = new Object();
}
__screen.x = _local5;
__screen.y = _local4;
__screen.width = _local7;
__screen.height = _local6;
_root.focusManager.relocate();
dispatchEvent({type:"resize"});
}
static function get screen() {
init();
if (__screen == undefined) {
onResize();
}
return(__screen);
}
static var _initialized = false;
static var idleFrames = 0;
static var isMouseDown = false;
static var forms = new Array();
}
Symbol 669 MovieClip [__Packages.mx.managers.PopUpManager] Frame 0
class mx.managers.PopUpManager
{
var popUp, setSize, move, modalWindow, _parent, _name, _visible, owner;
function PopUpManager () {
}
static function createModalWindow(parent, o, broadcastOutsideEvents) {
var _local2 = parent.createChildAtDepth("Modal", mx.managers.DepthManager.kTopmost);
_local2.setDepthBelow(o);
o.modalID = _local2._name;
_local2._alpha = _global.style.modalTransparency;
_local2.tabEnabled = false;
if (broadcastOutsideEvents) {
_local2.onPress = mixins.onPress;
} else {
_local2.onPress = mixins.nullFunction;
}
_local2.onRelease = mixins.nullFunction;
_local2.resize = mixins.resize;
mx.managers.SystemManager.init();
mx.managers.SystemManager.addEventListener("resize", _local2);
_local2.resize();
_local2.useHandCursor = false;
_local2.popUp = o;
o.modalWindow = _local2;
o.deletePopUp = mixins.deletePopUp;
o.setVisible = mixins.setVisible;
o.getVisible = mixins.getVisible;
o.addProperty("visible", o.getVisible, o.setVisible);
}
static function createPopUp(parent, className, modal, initobj, broadcastOutsideEvents) {
if (mixins == undefined) {
mixins = new mx.managers.PopUpManager();
}
if (broadcastOutsideEvents == undefined) {
broadcastOutsideEvents = false;
}
var _local5 = parent._root;
if (_local5 == undefined) {
_local5 = _root;
}
while (parent != _local5) {
parent = parent._parent;
}
initobj.popUp = true;
var _local4 = parent.createClassChildAtDepth(className, ((broadcastOutsideEvents || (modal)) ? (mx.managers.DepthManager.kTopmost) : (mx.managers.DepthManager.kTop)), initobj);
var _local2 = _root;
var _local6 = _local2.focusManager != undefined;
while (_local2._parent != undefined) {
_local2 = _local2._parent._root;
if (_local2.focusManager != undefined) {
_local6 = true;
break;
}
}
if (_local6) {
_local4.createObject("FocusManager", "focusManager", -1);
if (_local4._visible == false) {
mx.managers.SystemManager.deactivate(_local4);
}
}
if (modal) {
createModalWindow(parent, _local4, broadcastOutsideEvents);
} else {
if (broadcastOutsideEvents) {
_local4.mouseListener = new Object();
_local4.mouseListener.owner = _local4;
_local4.mouseListener.onMouseDown = mixins.onMouseDown;
Mouse.addListener(_local4.mouseListener);
}
_local4.deletePopUp = mixins.deletePopUp;
}
return(_local4);
}
function onPress(Void) {
var _local3 = popUp._root;
if (_local3 == undefined) {
_local3 = _root;
}
if (popUp.hitTest(_local3._xmouse, _local3._ymouse, false)) {
return(undefined);
}
popUp.dispatchEvent({type:"mouseDownOutside"});
}
function nullFunction(Void) {
}
function resize(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
setSize(_local2.width, _local2.height);
move(_local2.x, _local2.y);
}
function deletePopUp(Void) {
if (modalWindow != undefined) {
_parent.destroyObject(modalWindow._name);
}
_parent.destroyObject(_name);
}
function setVisible(v, noEvent) {
super.setVisible(v, noEvent);
modalWindow._visible = v;
}
function getVisible(Void) {
return(_visible);
}
function onMouseDown(Void) {
var _local3 = owner._root;
if (_local3 == undefined) {
_local3 = _root;
}
var _local4 = new Object();
_local4.x = _local3._xmouse;
_local4.y = _local3._ymouse;
_local3.localToGlobal(_local4);
if (owner.hitTest(_local4.x, _local4.y, false)) {
} else {
owner.mouseDownOutsideHandler(owner);
}
}
static var version = "2.0.1.78";
static var mixins = undefined;
}
Symbol 670 MovieClip [__Packages.mx.core.View] Frame 0
class mx.core.View extends mx.core.UIComponent
{
var tabChildren, tabEnabled, boundingBox_mc, border_mc, __get__width, __get__height, __tabIndex, depth, createObject, createClassObject, loadExternal, destroyObject, createClassChildAtDepth, doLater;
function View () {
super();
}
function init() {
super.init();
tabChildren = true;
tabEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function size() {
border_mc.move(0, 0);
border_mc.setSize(__get__width(), __get__height());
doLayout();
}
function draw() {
size();
}
function get numChildren() {
var _local3 = childNameBase;
var _local2 = 0;
while (true) {
if (this[_local3 + _local2] == undefined) {
return(_local2);
}
_local2++;
}
}
function get tabIndex() {
return((tabEnabled ? (__tabIndex) : undefined));
}
function set tabIndex(n) {
__tabIndex = n;
//return(tabIndex);
}
function addLayoutObject(object) {
}
function createChild(className, instanceName, initProps) {
if (depth == undefined) {
depth = 1;
}
var _local2;
if (typeof(className) == "string") {
_local2 = createObject(className, instanceName, depth++, initProps);
} else {
_local2 = createClassObject(className, instanceName, depth++, initProps);
}
if (_local2 == undefined) {
_local2 = loadExternal(className, _loadExternalClass, instanceName, depth++, initProps);
} else {
this[childNameBase + numChildren] = _local2;
_local2._complete = true;
childLoaded(_local2);
}
addLayoutObject(_local2);
return(_local2);
}
function getChildAt(childIndex) {
return(this[childNameBase + childIndex]);
}
function destroyChildAt(childIndex) {
if (!((childIndex >= 0) && (childIndex < numChildren))) {
return(undefined);
}
var _local4 = childNameBase + childIndex;
var _local6 = numChildren;
var _local3;
for (_local3 in this) {
if (_local3 == _local4) {
_local4 = "";
destroyObject(_local3);
break;
}
}
var _local2 = Number(childIndex);
while (_local2 < (_local6 - 1)) {
this[childNameBase + _local2] = this[childNameBase + (_local2 + 1)];
_local2++;
}
delete this[childNameBase + (_local6 - 1)];
depth--;
}
function initLayout() {
if (!hasBeenLayedOut) {
doLayout();
}
}
function doLayout() {
hasBeenLayedOut = true;
}
function createChildren() {
if (border_mc == undefined) {
border_mc = createClassChildAtDepth(_global.styles.rectBorderClass, mx.managers.DepthManager.kBottom, {styleName:this});
}
doLater(this, "initLayout");
}
function convertToUIObject(obj) {
}
function childLoaded(obj) {
convertToUIObject(obj);
}
static function extension() {
mx.core.ExternalContent.enableExternalContent();
}
static var symbolName = "View";
static var symbolOwner = mx.core.View;
static var version = "2.0.1.78";
var className = "View";
static var childNameBase = "_child";
var hasBeenLayedOut = false;
var _loadExternalClass = "UIComponent";
}
Symbol 671 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher
{
var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener;
function UIEventDispatcher () {
super();
}
static function addKeyEvents(obj) {
if (obj.keyHandler == undefined) {
var _local1 = (obj.keyHandler = new Object());
_local1.owner = obj;
_local1.onKeyDown = _fEventDispatcher.onKeyDown;
_local1.onKeyUp = _fEventDispatcher.onKeyUp;
}
Key.addListener(obj.keyHandler);
}
static function removeKeyEvents(obj) {
Key.removeListener(obj.keyHandler);
}
static function addLoadEvents(obj) {
if (obj.onLoad == undefined) {
obj.onLoad = _fEventDispatcher.onLoad;
obj.onUnload = _fEventDispatcher.onUnload;
if (obj.getBytesTotal() == obj.getBytesLoaded()) {
obj.doLater(obj, "onLoad");
}
}
}
static function removeLoadEvents(obj) {
delete obj.onLoad;
delete obj.onUnload;
}
static function initialize(obj) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.UIEventDispatcher();
}
obj.addEventListener = _fEventDispatcher.__addEventListener;
obj.__origAddEventListener = _fEventDispatcher.addEventListener;
obj.removeEventListener = _fEventDispatcher.removeEventListener;
obj.dispatchEvent = _fEventDispatcher.dispatchEvent;
obj.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(mx.events.EventDispatcher, eventObj);
dispatchQueue(this, eventObj);
}
function onKeyDown(Void) {
owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onKeyUp(Void) {
owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onLoad(Void) {
if (__sentLoadEvent != true) {
dispatchEvent({type:"load"});
}
__sentLoadEvent = true;
}
function onUnload(Void) {
dispatchEvent({type:"unload"});
}
function __addEventListener(event, handler) {
__origAddEventListener(event, handler);
var _local3 = lowLevelEvents;
for (var _local5 in _local3) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local2 = _local3[_local5][0];
mx.events.UIEventDispatcher[_local2](this);
}
}
}
function removeEventListener(event, handler) {
var _local6 = "__q_" + event;
mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler);
if (this[_local6].length == 0) {
var _local2 = lowLevelEvents;
for (var _local5 in _local2) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local3 = _local2[_local5][1];
mx.events.UIEventDispatcher[_local2[_local5][1]](this);
}
}
}
}
static var keyEvents = {keyDown:1, keyUp:1};
static var loadEvents = {load:1, unload:1};
static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]};
static var _fEventDispatcher = undefined;
}
Symbol 672 MovieClip [__Packages.mx.core.ExternalContent] Frame 0
class mx.core.ExternalContent
{
var createObject, numChildren, prepList, doLater, loadList, dispatchEvent, loadedList, childLoaded;
function ExternalContent () {
}
function loadExternal(url, placeholderClassName, instanceName, depth, initProps) {
var _local2;
_local2 = createObject(placeholderClassName, instanceName, depth, initProps);
this[mx.core.View.childNameBase + numChildren] = _local2;
if (prepList == undefined) {
prepList = new Object();
}
prepList[instanceName] = {obj:_local2, url:url, complete:false, initProps:initProps};
prepareToLoadMovie(_local2);
return(_local2);
}
function prepareToLoadMovie(obj) {
obj.unloadMovie();
doLater(this, "waitForUnload");
}
function waitForUnload() {
var _local3;
for (_local3 in prepList) {
var _local2 = prepList[_local3];
if (_local2.obj.getBytesTotal() == 0) {
if (loadList == undefined) {
loadList = new Object();
}
loadList[_local3] = _local2;
_local2.obj.loadMovie(_local2.url);
delete prepList[_local3];
doLater(this, "checkLoadProgress");
} else {
doLater(this, "waitForUnload");
}
}
}
function checkLoadProgress() {
var _local3;
for (_local3 in loadList) {
var _local2 = loadList[_local3];
_local2.loaded = _local2.obj.getBytesLoaded();
_local2.total = _local2.obj.getBytesTotal();
if (_local2.total > 0) {
_local2.obj._visible = false;
dispatchEvent({type:"progress", target:_local2.obj, current:_local2.loaded, total:_local2.total});
if (_local2.loaded == _local2.total) {
if (loadedList == undefined) {
loadedList = new Object();
}
loadedList[_local3] = _local2;
delete loadList[_local3];
doLater(this, "contentLoaded");
}
} else if (_local2.total == -1) {
if (_local2.failedOnce != undefined) {
_local2.failedOnce++;
if (_local2.failedOnce > 3) {
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadList[_local3];
}
} else {
_local2.failedOnce = 0;
}
}
doLater(this, "checkLoadProgress");
}
}
function contentLoaded() {
var _local4;
for (_local4 in loadedList) {
var _local2 = loadedList[_local4];
_local2.obj._visible = true;
_local2.obj._complete = true;
var _local3;
for (_local3 in _local2.initProps) {
_local2.obj[_local3] = _local2.initProps[_local3];
}
childLoaded(_local2.obj);
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadedList[_local4];
}
}
function convertToUIObject(obj) {
if (obj.setSize == undefined) {
var _local2 = mx.core.UIObject.prototype;
obj.addProperty("width", _local2.__get__width, null);
obj.addProperty("height", _local2.__get__height, null);
obj.addProperty("left", _local2.__get__left, null);
obj.addProperty("x", _local2.__get__x, null);
obj.addProperty("top", _local2.__get__top, null);
obj.addProperty("y", _local2.__get__y, null);
obj.addProperty("right", _local2.__get__right, null);
obj.addProperty("bottom", _local2.__get__bottom, null);
obj.addProperty("visible", _local2.__get__visible, _local2.__set__visible);
obj.move = mx.core.UIObject.prototype.move;
obj.setSize = mx.core.UIObject.prototype.setSize;
obj.size = mx.core.UIObject.prototype.size;
mx.events.UIEventDispatcher.initialize(obj);
}
}
static function enableExternalContent() {
}
static function classConstruct() {
var _local1 = mx.core.View.prototype;
var _local2 = mx.core.ExternalContent.prototype;
_local1.loadExternal = _local2.loadExternal;
_local1.prepareToLoadMovie = _local2.prepareToLoadMovie;
_local1.waitForUnload = _local2.waitForUnload;
_local1.checkLoadProgress = _local2.checkLoadProgress;
_local1.contentLoaded = _local2.contentLoaded;
_local1.convertToUIObject = _local2.convertToUIObject;
return(true);
}
static var classConstructed = classConstruct();
static var ViewDependency = mx.core.View;
}
Symbol 673 MovieClip [__Packages.mx.skins.CustomBorder] Frame 0
class mx.skins.CustomBorder extends mx.skins.Border
{
var __width, __height, l_mc, setSkin, minHeight, minWidth, m_mc, r_mc;
function CustomBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function createChildren(Void) {
}
function draw(Void) {
if (l_mc == undefined) {
var _local2 = setSkin(tagL, leftSkin);
if (horizontal) {
minHeight = l_mc._height;
minWidth = l_mc._width;
} else {
minHeight = l_mc._height;
minWidth = l_mc._width;
}
}
if (m_mc == undefined) {
setSkin(tagM, middleSkin);
if (horizontal) {
minHeight = m_mc._height;
minWidth = minWidth + m_mc._width;
} else {
minHeight = minHeight + m_mc._height;
minWidth = m_mc._width;
}
}
if (r_mc == undefined) {
setSkin(tagR, rightSkin);
if (horizontal) {
minHeight = r_mc._height;
minWidth = minWidth + r_mc._width;
} else {
minHeight = minHeight + r_mc._height;
minWidth = r_mc._width;
}
}
size();
}
function size(Void) {
l_mc.move(0, 0);
if (horizontal) {
r_mc.move(width - r_mc.width, 0);
m_mc.move(l_mc.width, 0);
m_mc.setSize(r_mc.x - m_mc.x, m_mc.height);
} else {
r_mc.move(0, height - r_mc.height, 0);
m_mc.move(0, l_mc.height);
m_mc.setSize(m_mc.width, r_mc.y - m_mc.y);
}
}
static var symbolName = "CustomBorder";
static var symbolOwner = mx.skins.CustomBorder;
static var version = "2.0.1.78";
var className = "CustomBorder";
static var tagL = 0;
static var tagM = 1;
static var tagR = 2;
var idNames = new Array("l_mc", "m_mc", "r_mc");
var leftSkin = "F3PieceLeft";
var middleSkin = "F3PieceMiddle";
var rightSkin = "F3PieceRight";
var horizontal = true;
}
Symbol 674 MovieClip [__Packages.mx.controls.scrollClasses.ScrollThumb] Frame 0
class mx.controls.scrollClasses.ScrollThumb extends mx.skins.CustomBorder
{
var useHandCursor, ymin, ymax, datamin, datamax, scrollMove, lastY, _ymouse, _y, _parent, onMouseMove, grip_mc, setSkin, gripSkin, __get__width, __get__height;
function ScrollThumb () {
super();
}
function createChildren(Void) {
super.createChildren();
useHandCursor = false;
}
function setRange(_ymin, _ymax, _datamin, _datamax) {
ymin = _ymin;
ymax = _ymax;
datamin = _datamin;
datamax = _datamax;
}
function dragThumb(Void) {
scrollMove = _ymouse - lastY;
scrollMove = scrollMove + _y;
if (scrollMove < ymin) {
scrollMove = ymin;
} else if (scrollMove > ymax) {
scrollMove = ymax;
}
_parent.isScrolling = true;
_y = scrollMove;
var _local2 = Math.round(((datamax - datamin) * (_y - ymin)) / (ymax - ymin)) + datamin;
_parent.scrollPosition = _local2;
_parent.dispatchScrollEvent("ThumbTrack");
updateAfterEvent();
}
function stopDragThumb(Void) {
_parent.isScrolling = false;
_parent.dispatchScrollEvent("ThumbPosition");
_parent.dispatchScrollChangedEvent();
delete onMouseMove;
}
function onPress(Void) {
_parent.pressFocus();
lastY = _ymouse;
onMouseMove = dragThumb;
super.onPress();
}
function onRelease(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onRelease();
}
function onReleaseOutside(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onReleaseOutside();
}
function draw() {
super.draw();
if (grip_mc == undefined) {
setSkin(3, gripSkin);
}
}
function size() {
super.size();
grip_mc.move((__get__width() - grip_mc.width) / 2, (__get__height() - grip_mc.height) / 2);
}
static var symbolOwner = mx.skins.CustomBorder.symbolOwner;
var className = "ScrollThumb";
var btnOffset = 0;
var horizontal = false;
var idNames = new Array("l_mc", "m_mc", "r_mc", "grip_mc");
}
Symbol 675 MovieClip [__Packages.mx.controls.scrollClasses.ScrollBar] Frame 0
class mx.controls.scrollClasses.ScrollBar extends mx.core.UIComponent
{
var isScrolling, scrollTrack_mc, scrollThumb_mc, __height, tabEnabled, focusEnabled, boundingBox_mc, setSkin, upArrow_mc, _minHeight, _minWidth, downArrow_mc, createObject, createClassObject, enabled, _height, dispatchEvent, minMode, maxMode, plusMode, minusMode, _parent, getStyle, scrolling, _ymouse;
function ScrollBar () {
super();
}
function get scrollPosition() {
return(_scrollPosition);
}
function set scrollPosition(pos) {
_scrollPosition = pos;
if (isScrolling != true) {
pos = Math.min(pos, maxPos);
pos = Math.max(pos, minPos);
var _local3 = (((pos - minPos) * (scrollTrack_mc.height - scrollThumb_mc._height)) / (maxPos - minPos)) + scrollTrack_mc.top;
scrollThumb_mc.move(0, _local3);
}
//return(scrollPosition);
}
function get pageScrollSize() {
return(largeScroll);
}
function set pageScrollSize(lScroll) {
largeScroll = lScroll;
//return(pageScrollSize);
}
function set lineScrollSize(sScroll) {
smallScroll = sScroll;
//return(lineScrollSize);
}
function get lineScrollSize() {
return(smallScroll);
}
function get virtualHeight() {
return(__height);
}
function init(Void) {
super.init();
_scrollPosition = 0;
tabEnabled = false;
focusEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function createChildren(Void) {
if (scrollTrack_mc == undefined) {
setSkin(skinIDTrack, scrollTrackName);
}
scrollTrack_mc.visible = false;
var _local3 = new Object();
_local3.enabled = false;
_local3.preset = mx.controls.SimpleButton.falseDisabled;
_local3.initProperties = 0;
_local3.autoRepeat = true;
_local3.tabEnabled = false;
var _local2;
if (upArrow_mc == undefined) {
_local2 = createButton(upArrowName, "upArrow_mc", skinIDUpArrow, _local3);
}
_local2.buttonDownHandler = onUpArrow;
_local2.clickHandler = onScrollChanged;
_minHeight = _local2.height;
_minWidth = _local2.width;
if (downArrow_mc == undefined) {
_local2 = createButton(downArrowName, "downArrow_mc", skinIDDownArrow, _local3);
}
_local2.buttonDownHandler = onDownArrow;
_local2.clickHandler = onScrollChanged;
_minHeight = _minHeight + _local2.height;
}
function createButton(linkageName, id, skinID, o) {
if (skinID == skinIDUpArrow) {
o.falseUpSkin = upArrowUpName;
o.falseDownSkin = upArrowDownName;
o.falseOverSkin = upArrowOverName;
} else {
o.falseUpSkin = downArrowUpName;
o.falseDownSkin = downArrowDownName;
o.falseOverSkin = downArrowOverName;
}
var _local3 = createObject(linkageName, id, skinID, o);
this[id].visible = false;
this[id].useHandCursor = false;
return(_local3);
}
function createThumb(Void) {
var _local2 = new Object();
_local2.validateNow = true;
_local2.tabEnabled = false;
_local2.leftSkin = thumbTopName;
_local2.middleSkin = thumbMiddleName;
_local2.rightSkin = thumbBottomName;
_local2.gripSkin = thumbGripName;
createClassObject(mx.controls.scrollClasses.ScrollThumb, "scrollThumb_mc", skinIDThumb, _local2);
}
function setScrollProperties(pSize, mnPos, mxPos, ls) {
var _local4;
var _local2 = scrollTrack_mc;
pageSize = pSize;
largeScroll = (((ls != undefined) && (ls > 0)) ? (ls) : (pSize));
minPos = Math.max(mnPos, 0);
maxPos = Math.max(mxPos, 0);
_scrollPosition = Math.max(minPos, _scrollPosition);
_scrollPosition = Math.min(maxPos, _scrollPosition);
if (((maxPos - minPos) > 0) && (enabled)) {
var _local5 = _scrollPosition;
if (!initializing) {
upArrow_mc.enabled = true;
downArrow_mc.enabled = true;
}
_local2.onPress = (_local2.onDragOver = startTrackScroller);
_local2.onRelease = releaseScrolling;
_local2.onDragOut = (_local2.stopScrolling = stopScrolling);
_local2.onReleaseOutside = releaseScrolling;
_local2.useHandCursor = false;
if (scrollThumb_mc == undefined) {
createThumb();
}
var _local3 = scrollThumb_mc;
if (scrollTrackOverName.length > 0) {
_local2.onRollOver = trackOver;
_local2.onRollOut = trackOut;
}
_local4 = (pageSize / ((maxPos - minPos) + pageSize)) * _local2.height;
if (_local4 < _local3.minHeight) {
if (_local2.height < _local3.minHeight) {
_local3.__set__visible(false);
} else {
_local4 = _local3.minHeight;
_local3.__set__visible(true);
_local3.setSize(_minWidth, _local3.minHeight + 0);
}
} else {
_local3.__set__visible(true);
_local3.setSize(_minWidth, _local4);
}
_local3.setRange(upArrow_mc.__get__height() + 0, (virtualHeight - downArrow_mc.__get__height()) - _local3.__get__height(), minPos, maxPos);
_local5 = Math.min(_local5, maxPos);
scrollPosition = (Math.max(_local5, minPos));
} else {
scrollThumb_mc.__set__visible(false);
if (!initializing) {
upArrow_mc.enabled = false;
downArrow_mc.enabled = false;
}
delete _local2.onPress;
delete _local2.onDragOver;
delete _local2.onRelease;
delete _local2.onDragOut;
delete _local2.onRollOver;
delete _local2.onRollOut;
delete _local2.onReleaseOutside;
}
if (initializing) {
scrollThumb_mc.__set__visible(false);
}
}
function setEnabled(enabledFlag) {
super.setEnabled(enabledFlag);
setScrollProperties(pageSize, minPos, maxPos, largeScroll);
}
function draw(Void) {
if (initializing) {
initializing = false;
scrollTrack_mc.visible = true;
upArrow_mc.__set__visible(true);
downArrow_mc.__set__visible(true);
}
size();
}
function size(Void) {
if (_height == 1) {
return(undefined);
}
if (upArrow_mc == undefined) {
return(undefined);
}
var _local3 = upArrow_mc.__get__height();
var _local2 = downArrow_mc.__get__height();
upArrow_mc.move(0, 0);
var _local4 = scrollTrack_mc;
_local4._y = _local3;
_local4._height = (virtualHeight - _local3) - _local2;
downArrow_mc.move(0, virtualHeight - _local2);
setScrollProperties(pageSize, minPos, maxPos, largeScroll);
}
function dispatchScrollEvent(detail) {
dispatchEvent({type:"scroll", detail:detail});
}
function isScrollBarKey(k) {
if (k == 36) {
if (scrollPosition != 0) {
scrollPosition = (0);
dispatchScrollEvent(minMode);
}
return(true);
}
if (k == 35) {
if (scrollPosition < maxPos) {
scrollPosition = (maxPos);
dispatchScrollEvent(maxMode);
}
return(true);
}
return(false);
}
function scrollIt(inc, mode) {
var _local3 = smallScroll;
if (inc != "Line") {
_local3 = ((largeScroll == 0) ? (pageSize) : (largeScroll));
}
var _local2 = _scrollPosition + (mode * _local3);
if (_local2 > maxPos) {
_local2 = maxPos;
} else if (_local2 < minPos) {
_local2 = minPos;
}
if (scrollPosition != _local2) {
scrollPosition = (_local2);
var _local4 = ((mode < 0) ? (minusMode) : (plusMode));
dispatchScrollEvent(inc + _local4);
}
}
function startTrackScroller(Void) {
_parent.pressFocus();
if (_parent.scrollTrackDownName.length > 0) {
if (_parent.scrollTrackDown_mc == undefined) {
_parent.setSkin(skinIDTrackDown, scrollTrackDownName);
} else {
_parent.scrollTrackDown_mc.visible = true;
}
}
_parent.trackScroller();
_parent.scrolling = setInterval(_parent, "scrollInterval", getStyle("repeatDelay"), "Page", -1);
}
function scrollInterval(inc, mode) {
clearInterval(scrolling);
if (inc == "Page") {
trackScroller();
} else {
scrollIt(inc, mode);
}
scrolling = setInterval(this, "scrollInterval", getStyle("repeatInterval"), inc, mode);
}
function trackScroller(Void) {
if ((scrollThumb_mc._y + scrollThumb_mc.__get__height()) < _ymouse) {
scrollIt("Page", 1);
} else if (scrollThumb_mc._y > _ymouse) {
scrollIt("Page", -1);
}
}
function dispatchScrollChangedEvent(Void) {
dispatchEvent({type:"scrollChanged"});
}
function stopScrolling(Void) {
clearInterval(_parent.scrolling);
_parent.scrollTrackDown_mc.visible = false;
}
function releaseScrolling(Void) {
_parent.releaseFocus();
stopScrolling();
_parent.dispatchScrollChangedEvent();
}
function trackOver(Void) {
if (_parent.scrollTrackOverName.length > 0) {
if (_parent.scrollTrackOver_mc == undefined) {
_parent.setSkin(skinIDTrackOver, scrollTrackOverName);
} else {
_parent.scrollTrackOver_mc.visible = true;
}
}
}
function trackOut(Void) {
_parent.scrollTrackOver_mc.visible = false;
}
function onUpArrow(Void) {
_parent.scrollIt("Line", -1);
}
function onDownArrow(Void) {
_parent.scrollIt("Line", 1);
}
function onScrollChanged(Void) {
_parent.dispatchScrollChangedEvent();
}
static var symbolOwner = mx.core.UIComponent;
var className = "ScrollBar";
var minPos = 0;
var maxPos = 0;
var pageSize = 0;
var largeScroll = 0;
var smallScroll = 1;
var _scrollPosition = 0;
var scrollTrackName = "ScrollTrack";
var scrollTrackOverName = "";
var scrollTrackDownName = "";
var upArrowName = "BtnUpArrow";
var upArrowUpName = "ScrollUpArrowUp";
var upArrowOverName = "ScrollUpArrowOver";
var upArrowDownName = "ScrollUpArrowDown";
var downArrowName = "BtnDownArrow";
var downArrowUpName = "ScrollDownArrowUp";
var downArrowOverName = "ScrollDownArrowOver";
var downArrowDownName = "ScrollDownArrowDown";
var thumbTopName = "ScrollThumbTopUp";
var thumbMiddleName = "ScrollThumbMiddleUp";
var thumbBottomName = "ScrollThumbBottomUp";
var thumbGripName = "ScrollThumbGripUp";
static var skinIDTrack = 0;
static var skinIDTrackOver = 1;
static var skinIDTrackDown = 2;
static var skinIDUpArrow = 3;
static var skinIDDownArrow = 4;
static var skinIDThumb = 5;
var idNames = new Array("scrollTrack_mc", "scrollTrackOver_mc", "scrollTrackDown_mc", "upArrow_mc", "downArrow_mc");
var clipParameters = {minPos:1, maxPos:1, pageSize:1, scrollPosition:1, lineScrollSize:1, pageScrollSize:1, visible:1, enabled:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.scrollClasses.ScrollBar.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var initializing = true;
}
Symbol 676 MovieClip [__Packages.mx.core.ScrollView] Frame 0
class mx.core.ScrollView extends mx.core.View
{
var __width, hScroller, vScroller, __maxHPosition, propsInited, scrollAreaChanged, specialHScrollCase, createObject, viewableColumns, __height, oldRndUp, viewableRows, __viewMetrics, owner, enabled, border_mc, __get__width, __get__height, invLayout, mask_mc, _parent, dispatchEvent;
function ScrollView () {
super();
}
function getHScrollPolicy(Void) {
return(__hScrollPolicy);
}
function setHScrollPolicy(policy) {
__hScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get hScrollPolicy() {
return(getHScrollPolicy());
}
function set hScrollPolicy(policy) {
setHScrollPolicy(policy);
//return(hScrollPolicy);
}
function getVScrollPolicy(Void) {
return(__vScrollPolicy);
}
function setVScrollPolicy(policy) {
__vScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get vScrollPolicy() {
return(getVScrollPolicy());
}
function set vScrollPolicy(policy) {
setVScrollPolicy(policy);
//return(vScrollPolicy);
}
function get hPosition() {
return(getHPosition());
}
function set hPosition(pos) {
setHPosition(pos);
//return(hPosition);
}
function getHPosition(Void) {
return(__hPosition);
}
function setHPosition(pos) {
hScroller.__set__scrollPosition(pos);
__hPosition = pos;
}
function get vPosition() {
return(getVPosition());
}
function set vPosition(pos) {
setVPosition(pos);
//return(vPosition);
}
function getVPosition(Void) {
return(__vPosition);
}
function setVPosition(pos) {
vScroller.__set__scrollPosition(pos);
__vPosition = pos;
}
function get maxVPosition() {
var _local2 = vScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function get maxHPosition() {
return(getMaxHPosition());
}
function set maxHPosition(pos) {
setMaxHPosition(pos);
//return(maxHPosition);
}
function getMaxHPosition(Void) {
if (__maxHPosition != undefined) {
return(__maxHPosition);
}
var _local2 = hScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function setMaxHPosition(pos) {
__maxHPosition = pos;
}
function setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) {
var _local3 = getViewMetrics();
if (hPadding == undefined) {
hPadding = 0;
}
if (wPadding == undefined) {
wPadding = 0;
}
propsInited = true;
delete scrollAreaChanged;
heightPadding = hPadding;
widthPadding = wPadding;
if (colWidth == 0) {
colWidth = 1;
}
if (rwHeight == 0) {
rwHeight = 1;
}
var _local5 = Math.ceil((((__width - _local3.left) - _local3.right) - widthPadding) / colWidth);
if ((__hScrollPolicy == "on") || ((_local5 < colCount) && (__hScrollPolicy == "auto"))) {
if ((hScroller == undefined) || (specialHScrollCase)) {
delete specialHScrollCase;
hScroller = createObject("HScrollBar", "hSB", 1001);
hScroller.__set__lineScrollSize(20);
hScroller.scrollHandler = scrollProxy;
hScroller.__set__scrollPosition(__hPosition);
scrollAreaChanged = true;
}
if ((((numberOfCols != colCount) || (columnWidth != colWidth)) || (viewableColumns != _local5)) || (scrollAreaChanged)) {
hScroller.setScrollProperties(_local5, 0, colCount - _local5);
viewableColumns = _local5;
numberOfCols = colCount;
columnWidth = colWidth;
}
} else if (((__hScrollPolicy == "auto") || (__hScrollPolicy == "off")) && (hScroller != undefined)) {
hScroller.removeMovieClip();
delete hScroller;
scrollAreaChanged = true;
}
if (heightPadding == undefined) {
heightPadding = 0;
}
var _local4 = Math.ceil((((__height - _local3.top) - _local3.bottom) - heightPadding) / rwHeight);
var _local8 = (((__height - _local3.top) - _local3.bottom) % rwHeight) != 0;
if ((__vScrollPolicy == "on") || ((_local4 < (rwCount + _local8)) && (__vScrollPolicy == "auto"))) {
if (vScroller == undefined) {
vScroller = createObject("VScrollBar", "vSB", 1002);
vScroller.scrollHandler = scrollProxy;
vScroller.__set__scrollPosition(__vPosition);
scrollAreaChanged = true;
rowH = 0;
}
if ((((rowC != rwCount) || (rowH != rwHeight)) || ((viewableRows + _local8) != (_local4 + oldRndUp))) || (scrollAreaChanged)) {
vScroller.setScrollProperties(_local4, 0, (rwCount - _local4) + _local8);
viewableRows = _local4;
rowC = rwCount;
rowH = rwHeight;
oldRndUp = _local8;
}
} else if (((__vScrollPolicy == "auto") || (__vScrollPolicy == "off")) && (vScroller != undefined)) {
vScroller.removeMovieClip();
delete vScroller;
scrollAreaChanged = true;
}
numberOfCols = colCount;
columnWidth = colWidth;
if (scrollAreaChanged) {
doLayout();
var _local2 = __viewMetrics;
var _local12 = ((owner != undefined) ? (owner) : this);
_local12.layoutContent(_local2.left, _local2.top, ((columnWidth * numberOfCols) - _local2.left) - _local2.right, rowC * rowH, (__width - _local2.left) - _local2.right, (__height - _local2.top) - _local2.bottom);
}
if (!enabled) {
setEnabled(false);
}
}
function getViewMetrics(Void) {
var _local2 = __viewMetrics;
var _local3 = border_mc.__get__borderMetrics();
_local2.left = _local3.left;
_local2.right = _local3.right;
if (vScroller != undefined) {
_local2.right = _local2.right + vScroller.minWidth;
}
_local2.top = _local3.top;
if ((hScroller == undefined) && ((__hScrollPolicy == "on") || (__hScrollPolicy == true))) {
hScroller = createObject("FHScrollBar", "hSB", 1001);
specialHScrollCase = true;
}
_local2.bottom = _local3.bottom;
if (hScroller != undefined) {
_local2.bottom = _local2.bottom + hScroller.minHeight;
}
return(_local2);
}
function doLayout(Void) {
var _local10 = __get__width();
var _local8 = __get__height();
delete invLayout;
var _local3 = (__viewMetrics = getViewMetrics());
var _local2 = _local3.left;
var _local9 = _local3.right;
var _local5 = _local3.top;
var _local11 = _local3.bottom;
var _local7 = hScroller;
var _local6 = vScroller;
_local7.setSize((_local10 - _local2) - _local9, _local7.minHeight + 0);
_local7.move(_local2, _local8 - _local11);
_local6.setSize(_local6.minWidth + 0, (_local8 - _local5) - _local11);
_local6.move(_local10 - _local9, _local5);
var _local4 = mask_mc;
_local4._width = (_local10 - _local2) - _local9;
_local4._height = (_local8 - _local5) - _local11;
_local4._x = _local2;
_local4._y = _local5;
}
function createChild(id, name, props) {
var _local2 = super.createChild(id, name, props);
return(_local2);
}
function init(Void) {
super.init();
__viewMetrics = new Object();
if (_global.__SVMouseWheelManager == undefined) {
var _local4 = (_global.__SVMouseWheelManager = new Object());
_local4.onMouseWheel = __onMouseWheel;
Mouse.addListener(_local4);
}
}
function __onMouseWheel(delta, scrollTarget) {
var _local4 = scrollTarget;
var _local1;
while (_local4 != undefined) {
if (_local4 instanceof mx.core.ScrollView) {
_local1 = _local4;
}
_local4 = _local4._parent;
}
if (_local1 != undefined) {
_local4 = ((delta <= 0) ? 1 : -1);
var _local2 = _local1.vScroller.lineScrollSize;
if (_local2 == undefined) {
_local2 = 0;
}
_local2 = Math.max(Math.abs(delta), _local2);
var _local3 = _local1.vPosition + (_local2 * _local4);
_local1.vPosition = Math.max(0, Math.min(_local3, _local1.maxVPosition));
_local1.dispatchEvent({type:"scroll", direction:"vertical", position:_local1.vPosition});
}
}
function createChildren(Void) {
super.createChildren();
if (mask_mc == undefined) {
mask_mc = createObject("BoundingBox", "mask_mc", MASK_DEPTH);
}
mask_mc._visible = false;
}
function invalidate(Void) {
super.invalidate();
}
function draw(Void) {
size();
}
function size(Void) {
super.size();
}
function scrollProxy(docObj) {
_parent.onScroll(docObj);
}
function onScroll(docObj) {
var _local3 = docObj.target;
var _local2 = _local3.scrollPosition;
if (_local3 == vScroller) {
var _local4 = "vertical";
var _local5 = "__vPosition";
} else {
var _local4 = "horizontal";
var _local5 = "__hPosition";
}
dispatchEvent({type:"scroll", direction:_local4, position:_local2});
this[_local5] = _local2;
}
function setEnabled(v) {
vScroller.enabled = (hScroller.enabled = v);
}
function childLoaded(obj) {
super.childLoaded(obj);
obj.setMask(mask_mc);
}
static var symbolName = "ScrollView";
static var symbolOwner = mx.core.ScrollView;
static var version = "2.0.1.78";
var className = "ScrollView";
var __vScrollPolicy = "auto";
var __hScrollPolicy = "off";
var __vPosition = 0;
var __hPosition = 0;
var numberOfCols = 0;
var rowC = 0;
var columnWidth = 1;
var rowH = 0;
var heightPadding = 0;
var widthPadding = 0;
var MASK_DEPTH = 10000;
}
Symbol 677 MovieClip [__Packages.mx.controls.listclasses.DataProvider] Frame 0
class mx.controls.listclasses.DataProvider extends Object
{
var length, splice, dispatchEvent, sortOn, reverse, sort;
function DataProvider (obj) {
super();
}
static function Initialize(obj) {
var _local4 = mixinProps;
var _local6 = _local4.length;
obj = obj.prototype;
var _local3 = 0;
while (_local3 < _local6) {
obj[_local4[_local3]] = mixins[_local4[_local3]];
_global.ASSetPropFlags(obj, _local4[_local3], 1);
_local3++;
}
mx.events.EventDispatcher.initialize(obj);
_global.ASSetPropFlags(obj, "addEventListener", 1);
_global.ASSetPropFlags(obj, "removeEventListener", 1);
_global.ASSetPropFlags(obj, "dispatchEvent", 1);
_global.ASSetPropFlags(obj, "dispatchQueue", 1);
Object.prototype.LargestID = 0;
Object.prototype.getID = function () {
if (this.__ID__ == undefined) {
this.__ID__ = Object.prototype.LargestID++;
_global.ASSetPropFlags(this, "__ID__", 1);
}
return(this.__ID__);
};
_global.ASSetPropFlags(Object.prototype, "LargestID", 1);
_global.ASSetPropFlags(Object.prototype, "getID", 1);
return(true);
}
function addItemAt(index, value) {
if (index < length) {
splice(index, 0, value);
} else if (index > length) {
trace("Cannot add an item past the end of the DataProvider");
return(undefined);
}
this[index] = value;
updateViews("addItems", index, index);
}
function addItem(value) {
addItemAt(length, value);
}
function addItemsAt(index, newItems) {
index = Math.min(length, index);
newItems.unshift(index, 0);
splice.apply(this, newItems);
newItems.splice(0, 2);
updateViews("addItems", index, (index + newItems.length) - 1);
}
function removeItemsAt(index, len) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < len) {
_local3.push(getItemID(index + _local2));
_local2++;
}
var _local6 = splice(index, len);
dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:index, lastItem:(index + len) - 1, removedItems:_local6, removedIDs:_local3});
}
function removeItemAt(index) {
var _local2 = this[index];
removeItemsAt(index, 1);
return(_local2);
}
function removeAll(Void) {
splice(0);
updateViews("removeItems", 0, length - 1);
}
function replaceItemAt(index, itemObj) {
if ((index < 0) || (index >= length)) {
return(undefined);
}
var _local3 = getItemID(index);
this[index] = itemObj;
this[index].__ID__ = _local3;
updateViews("updateItems", index, index);
}
function getItemAt(index) {
return(this[index]);
}
function getItemID(index) {
var _local2 = this[index];
if ((typeof(_local2) != "object") && (_local2 != undefined)) {
return(index);
}
return(_local2.getID());
}
function sortItemsBy(fieldName, order) {
if (typeof(order) == "string") {
sortOn(fieldName);
if (order.toUpperCase() == "DESC") {
reverse();
}
} else {
sortOn(fieldName, order);
}
updateViews("sort");
}
function sortItems(compareFunc, optionFlags) {
sort(compareFunc, optionFlags);
updateViews("sort");
}
function editField(index, fieldName, newData) {
this[index][fieldName] = newData;
dispatchEvent({type:"modelChanged", eventName:"updateField", firstItem:index, lastItem:index, fieldName:fieldName});
}
function getEditingData(index, fieldName) {
return(this[index][fieldName]);
}
function updateViews(event, first, last) {
dispatchEvent({type:"modelChanged", eventName:event, firstItem:first, lastItem:last});
}
static var mixinProps = ["addView", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "getItemAt", "getItemID", "sortItemsBy", "sortItems", "updateViews", "addItemsAt", "removeItemsAt", "getEditingData", "editField"];
static var evtDipatcher = mx.events.EventDispatcher;
static var mixins = new mx.controls.listclasses.DataProvider();
}
Symbol 678 MovieClip [__Packages.mx.controls.listclasses.ScrollSelectList] Frame 0
class mx.controls.listclasses.ScrollSelectList extends mx.core.ScrollView
{
var invLayoutContent, rows, topRowZ, listContent, __dataProvider, __vPosition, tW, layoutX, layoutY, tH, invRowHeight, invalidate, __height, invUpdateControl, __cellRenderer, __labelFunction, __iconField, __iconFunction, getLength, baseRowZ, lastPosition, propertyTable, isSelected, wasKeySelected, changeFlag, clearSelected, selectItem, lastSelected, dispatchEvent, dragScrolling, _ymouse, scrollInterval, isPressed, onMouseUp, getSelectedIndex, enabled, tabEnabled, tabChildren, createEmptyMovieClip, border_mc;
function ScrollSelectList () {
super();
}
function layoutContent(x, y, w, h) {
delete invLayoutContent;
var _local4 = Math.ceil(h / __rowHeight);
roundUp = (h % __rowHeight) != 0;
var _local12 = _local4 - __rowCount;
if (_local12 < 0) {
var _local3 = _local4;
while (_local3 < __rowCount) {
rows[_local3].removeMovieClip();
delete rows[_local3];
_local3++;
}
topRowZ = topRowZ + _local12;
} else if (_local12 > 0) {
if (rows == undefined) {
rows = new Array();
}
var _local3 = __rowCount;
while (_local3 < _local4) {
var _local2 = (rows[_local3] = listContent.createObject(__rowRenderer, "listRow" + (topRowZ++), topRowZ, {owner:this, styleName:this, rowIndex:_local3}));
_local2._x = x;
_local2._y = Math.round((_local3 * __rowHeight) + y);
_local2.setSize(w, __rowHeight);
_local2.drawRow(__dataProvider.getItemAt(__vPosition + _local3), getStateAt(__vPosition + _local3));
_local2.lastY = _local2._y;
_local3++;
}
}
if (w != tW) {
var _local11 = ((_local12 > 0) ? (__rowCount) : (_local4));
var _local3 = 0;
while (_local3 < _local11) {
rows[_local3].setSize(w, __rowHeight);
_local3++;
}
}
if ((layoutX != x) || (layoutY != y)) {
var _local3 = 0;
while (_local3 < _local4) {
rows[_local3]._x = x;
rows[_local3]._y = Math.round((_local3 * __rowHeight) + y);
_local3++;
}
}
__rowCount = _local4;
layoutX = x;
layoutY = y;
tW = w;
tH = h;
}
function getRowHeight(Void) {
return(__rowHeight);
}
function setRowHeight(v) {
__rowHeight = v;
invRowHeight = true;
invalidate();
}
function get rowHeight() {
return(getRowHeight());
}
function set rowHeight(w) {
setRowHeight(w);
//return(rowHeight);
}
function setRowCount(v) {
__rowCount = v;
}
function getRowCount(Void) {
var _local2 = ((__rowCount == 0) ? (Math.ceil(__height / __rowHeight)) : (__rowCount));
return(_local2);
}
function get rowCount() {
return(getRowCount());
}
function set rowCount(w) {
setRowCount(w);
//return(rowCount);
}
function setEnabled(v) {
super.setEnabled(v);
invUpdateControl = true;
invalidate();
}
function setCellRenderer(cR) {
__cellRenderer = cR;
var _local2 = 0;
while (_local2 < rows.length) {
rows[_local2].setCellRenderer(true);
_local2++;
}
invUpdateControl = true;
invalidate();
}
function set cellRenderer(cR) {
setCellRenderer(cR);
//return(cellRenderer);
}
function get cellRenderer() {
return(__cellRenderer);
}
function set labelField(field) {
setLabelField(field);
//return(labelField);
}
function setLabelField(field) {
__labelField = field;
invUpdateControl = true;
invalidate();
}
function get labelField() {
return(__labelField);
}
function set labelFunction(func) {
setLabelFunction(func);
//return(labelFunction);
}
function setLabelFunction(func) {
__labelFunction = func;
invUpdateControl = true;
invalidate();
}
function get labelFunction() {
return(__labelFunction);
}
function set iconField(field) {
setIconField(field);
//return(iconField);
}
function setIconField(field) {
__iconField = field;
invUpdateControl = true;
invalidate();
}
function get iconField() {
return(__iconField);
}
function set iconFunction(func) {
setIconFunction(func);
//return(iconFunction);
}
function setIconFunction(func) {
__iconFunction = func;
invUpdateControl = true;
invalidate();
}
function get iconFunction() {
return(__iconFunction);
}
function setVPosition(pos) {
if (pos < 0) {
return(undefined);
}
if ((pos > 0) && (pos > ((getLength() - __rowCount) + roundUp))) {
return(undefined);
}
var _local8 = pos - __vPosition;
if (_local8 == 0) {
return(undefined);
}
__vPosition = pos;
var _local10 = _local8 > 0;
_local8 = Math.abs(_local8);
if (_local8 >= __rowCount) {
updateControl();
} else {
var _local4 = new Array();
var _local9 = __rowCount - _local8;
var _local12 = _local8 * __rowHeight;
var _local11 = _local9 * __rowHeight;
var _local6 = (_local10 ? 1 : -1);
var _local3 = 0;
while (_local3 < __rowCount) {
if (((_local3 < _local8) && (_local10)) || ((_local3 >= _local9) && (!_local10))) {
rows[_local3]._y = rows[_local3]._y + Math.round(_local6 * _local11);
var _local5 = _local3 + (_local6 * _local9);
var _local7 = __vPosition + _local5;
_local4[_local5] = rows[_local3];
_local4[_local5].rowIndex = _local5;
_local4[_local5].drawRow(__dataProvider.getItemAt(_local7), getStateAt(_local7), false);
} else {
rows[_local3]._y = rows[_local3]._y - Math.round(_local6 * _local12);
var _local5 = _local3 - (_local6 * _local8);
_local4[_local5] = rows[_local3];
_local4[_local5].rowIndex = _local5;
}
_local3++;
}
rows = _local4;
_local3 = 0;
while (_local3 < __rowCount) {
rows[_local3].swapDepths(baseRowZ + _local3);
_local3++;
}
}
lastPosition = pos;
super.setVPosition(pos);
}
function setPropertiesAt(index, obj) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
if (propertyTable == undefined) {
propertyTable = new Object();
}
propertyTable[_local2] = obj;
rows[index - __vPosition].drawRow(__dataProvider.getItemAt(index), getStateAt(index));
}
function getPropertiesAt(index) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
return(propertyTable[_local2]);
}
function getPropertiesOf(obj) {
var _local2 = obj.getID();
if (_local2 == undefined) {
return(undefined);
}
return(propertyTable[_local2]);
}
function getStyle(styleProp) {
var _local2 = super.getStyle(styleProp);
var _local3 = mx.styles.StyleManager.colorNames[_local2];
if (_local3 != undefined) {
_local2 = _local3;
}
return(_local2);
}
function updateControl(Void) {
var _local2 = 0;
while (_local2 < __rowCount) {
rows[_local2].drawRow(__dataProvider.getItemAt(_local2 + __vPosition), getStateAt(_local2 + __vPosition));
_local2++;
}
delete invUpdateControl;
}
function getStateAt(index) {
return((isSelected(index) ? "selected" : "normal"));
}
function selectRow(rowIndex, transition, allowChangeEvent) {
if (!selectable) {
return(undefined);
}
var _local3 = __vPosition + rowIndex;
var _local8 = __dataProvider.getItemAt(_local3);
var _local5 = rows[rowIndex];
if (_local8 == undefined) {
return(undefined);
}
if (transition == undefined) {
transition = true;
}
if (allowChangeEvent == undefined) {
allowChangeEvent = wasKeySelected;
}
changeFlag = true;
if (((!multipleSelection) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) {
clearSelected(transition);
selectItem(_local3, true);
lastSelected = _local3;
_local5.drawRow(_local5.item, getStateAt(_local3), transition);
} else if (Key.isDown(16) && (multipleSelection)) {
if (lastSelected == undefined) {
lastSelected = _local3;
}
var _local4 = ((lastSelected < _local3) ? 1 : -1);
clearSelected(false);
var _local2 = lastSelected;
while (_local2 != _local3) {
selectItem(_local2, true);
if ((_local2 >= __vPosition) && (_local2 < (__vPosition + __rowCount))) {
rows[_local2 - __vPosition].drawRow(rows[_local2 - __vPosition].item, "selected", false);
}
_local2 = _local2 + _local4;
}
selectItem(_local3, true);
_local5.drawRow(_local5.item, "selected", transition);
} else if (Key.isDown(17)) {
var _local7 = isSelected(_local3);
if ((!multipleSelection) || (wasKeySelected)) {
clearSelected(transition);
}
if (!((!multipleSelection) && (_local7))) {
selectItem(_local3, !_local7);
var _local9 = ((!_local7) ? "selected" : "normal");
_local5.drawRow(_local5.item, _local9, transition);
}
lastSelected = _local3;
}
if (allowChangeEvent) {
dispatchEvent({type:"change"});
}
delete wasKeySelected;
}
function dragScroll(Void) {
clearInterval(dragScrolling);
if (_ymouse < 0) {
setVPosition(__vPosition - 1);
selectRow(0, false);
var _local2 = Math.min((-_ymouse) - 30, 0);
scrollInterval = (((0.593 * _local2) * _local2) + 1) + minScrollInterval;
dragScrolling = setInterval(this, "dragScroll", scrollInterval);
dispatchEvent({type:"scroll", direction:"vertical", position:__vPosition});
} else if (_ymouse > __height) {
var _local3 = __vPosition;
setVPosition(__vPosition + 1);
if (_local3 != __vPosition) {
selectRow((__rowCount - 1) - roundUp, false);
}
var _local2 = Math.min((_ymouse - __height) - 30, 0);
scrollInterval = (((0.593 * _local2) * _local2) + 1) + minScrollInterval;
dragScrolling = setInterval(this, "dragScroll", scrollInterval);
dispatchEvent({type:"scroll", direction:"vertical", position:__vPosition});
} else {
dragScrolling = setInterval(this, "dragScroll", 15);
}
updateAfterEvent();
}
function __onMouseUp(Void) {
clearInterval(dragScrolling);
delete dragScrolling;
delete dragScrolling;
delete isPressed;
delete onMouseUp;
if (!selectable) {
return(undefined);
}
if (changeFlag) {
dispatchEvent({type:"change"});
}
delete changeFlag;
}
function moveSelBy(incr) {
if (!selectable) {
setVPosition(__vPosition + incr);
return(undefined);
}
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = -1;
}
var _local2 = _local3 + incr;
_local2 = Math.max(0, _local2);
_local2 = Math.min(getLength() - 1, _local2);
if (_local2 == _local3) {
return(undefined);
}
if ((_local3 < __vPosition) || (_local3 >= (__vPosition + __rowCount))) {
setVPosition(_local3);
}
if ((_local2 >= ((__vPosition + __rowCount) - roundUp)) || (_local2 < __vPosition)) {
setVPosition(__vPosition + incr);
}
wasKeySelected = true;
selectRow(_local2 - __vPosition, false);
}
function keyDown(e) {
if (selectable) {
if (findInputText()) {
return(undefined);
}
}
if (e.code == 40) {
moveSelBy(1);
} else if (e.code == 38) {
moveSelBy(-1);
} else if (e.code == 34) {
if (selectable) {
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = 0;
}
setVPosition(_local3);
}
moveSelBy((__rowCount - 1) - roundUp);
} else if (e.code == 33) {
if (selectable) {
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = 0;
}
setVPosition(_local3);
}
moveSelBy((1 - __rowCount) + roundUp);
} else if (e.code == 36) {
moveSelBy(-__dataProvider.length);
} else if (e.code == 35) {
moveSelBy(__dataProvider.length);
}
}
function findInputText(Void) {
var _local2 = Key.getAscii();
if ((_local2 >= 33) && (_local2 <= 126)) {
findString(String.fromCharCode(_local2));
return(true);
}
}
function findString(str) {
if (__dataProvider.length == 0) {
return(undefined);
}
var _local4 = getSelectedIndex();
if (_local4 == undefined) {
_local4 = 0;
}
var _local6 = 0;
var _local3 = _local4 + 1;
while (_local3 != _local4) {
var _local2 = __dataProvider.getItemAt(_local3);
if (_local2 instanceof XMLNode) {
_local2 = _local2.attributes[__labelField];
} else if (typeof(_local2) != "string") {
_local2 = String(_local2[__labelField]);
}
_local2 = _local2.substring(0, str.length);
if ((str == _local2) || (str.toUpperCase() == _local2.toUpperCase())) {
_local6 = _local3 - _local4;
break;
}
if (_local3 >= (getLength() - 1)) {
_local3 = -1;
}
_local3++;
}
if (_local6 != 0) {
moveSelBy(_local6);
}
}
function onRowPress(rowIndex) {
if (!enabled) {
return(undefined);
}
isPressed = true;
dragScrolling = setInterval(this, "dragScroll", 15);
onMouseUp = __onMouseUp;
if (!selectable) {
return(undefined);
}
selectRow(rowIndex);
}
function onRowRelease(rowIndex) {
}
function onRowRollOver(rowIndex) {
if (!enabled) {
return(undefined);
}
var _local2 = rows[rowIndex].item;
if (getStyle("useRollOver") && (_local2 != undefined)) {
rows[rowIndex].drawRow(_local2, "highlighted", false);
}
dispatchEvent({type:"itemRollOver", index:rowIndex + __vPosition});
}
function onRowRollOut(rowIndex) {
if (!enabled) {
return(undefined);
}
if (getStyle("useRollOver")) {
rows[rowIndex].drawRow(rows[rowIndex].item, getStateAt(rowIndex + __vPosition), false);
}
dispatchEvent({type:"itemRollOut", index:rowIndex + __vPosition});
}
function onRowDragOver(rowIndex) {
if (((!enabled) || (isPressed != true)) || (!selectable)) {
return(undefined);
}
if (dropEnabled) {
} else if (dragScrolling) {
selectRow(rowIndex, false);
} else {
onMouseUp = __onMouseUp;
onRowPress(rowIndex);
}
}
function onRowDragOut(rowIndex) {
if (!enabled) {
return(undefined);
}
if (dragEnabled) {
} else {
onRowRollOut(rowIndex);
}
}
function init(Void) {
super.init();
tabEnabled = true;
tabChildren = false;
if (__dataProvider == undefined) {
__dataProvider = new Array();
__dataProvider.addEventListener("modelChanged", this);
}
baseRowZ = (topRowZ = 10);
}
function createChildren(Void) {
super.createChildren();
listContent = createEmptyMovieClip("content_mc", CONTENTDEPTH);
invLayoutContent = true;
invalidate();
}
function draw(Void) {
if (invRowHeight) {
delete invRowHeight;
__rowCount = 0;
listContent.removeMovieClip();
listContent = createEmptyMovieClip("content_mc", CONTENTDEPTH);
}
if (invUpdateControl) {
updateControl();
}
border_mc.draw();
}
function invalidateStyle(propName) {
if (isRowStyle[propName]) {
invUpdateControl = true;
invalidate();
} else {
var _local3 = 0;
while (_local3 < __rowCount) {
rows[_local3].invalidateStyle(propName);
_local3++;
}
}
super.invalidateStyle(propName);
}
static var mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.listclasses.ScrollSelectList);
static var mixIt2 = mx.controls.listclasses.DataProvider.Initialize(Array);
var CONTENTDEPTH = 100;
var __hPosition = 0;
var __rowRenderer = "SelectableRow";
var __rowHeight = 22;
var __rowCount = 0;
var __labelField = "label";
var minScrollInterval = 30;
var dropEnabled = false;
var dragEnabled = false;
var className = "ScrollSelectList";
var isRowStyle = {styleName:true, backgroundColor:true, selectionColor:true, rollOverColor:true, selectionDisabledColor:true, backgroundDisabledColor:true, textColor:true, textSelectedColor:true, textRollOverColor:true, textDisabledColor:true, alternatingRowColors:true, defaultIcon:true};
var roundUp = 0;
var selectable = true;
var multipleSelection = false;
}
Symbol 679 MovieClip [__Packages.mx.controls.List] Frame 0
class mx.controls.List extends mx.controls.listclasses.ScrollSelectList
{
var border_mc, __labels, setDataProvider, roundUp, __get__rowCount, __dataProvider, __maxHPosition, invScrollProps, invalidate, __vPosition, getViewMetrics, setSize, __width, __rowHeight, totalWidth, totalHeight, displayWidth, __hScrollPolicy, vScroller, __hPosition, listContent, data, mask_mc, __height, __rowCount, invRowHeight, invLayoutContent, setScrollProperties, oldVWidth;
function List () {
super();
}
function setEnabled(v) {
super.setEnabled(v);
border_mc.backgroundColorName = (v ? "backgroundColor" : "backgroundDisabledColor");
border_mc.invalidate();
}
function get labels() {
return(__labels);
}
function set labels(lbls) {
__labels = lbls;
setDataProvider(lbls);
//return(labels);
}
function setVPosition(pos) {
pos = Math.min((__dataProvider.length - __get__rowCount()) + roundUp, pos);
pos = Math.max(0, pos);
super.setVPosition(pos);
}
function setHPosition(pos) {
pos = Math.max(Math.min(__maxHPosition, pos), 0);
super.setHPosition(pos);
hScroll(pos);
}
function setMaxHPosition(pos) {
__maxHPosition = pos;
invScrollProps = true;
invalidate();
}
function setHScrollPolicy(policy) {
if ((policy.toLowerCase() == "auto") && (!autoHScrollAble)) {
return(undefined);
}
super.setHScrollPolicy(policy);
if (policy == "off") {
setHPosition(0);
setVPosition(Math.min((__dataProvider.length - __get__rowCount()) + roundUp, __vPosition));
}
}
function setRowCount(rC) {
if (isNaN(rC)) {
return(undefined);
}
var _local2 = getViewMetrics();
setSize(__width, ((__rowHeight * rC) + _local2.top) + _local2.bottom);
}
function layoutContent(x, y, tW, tH, dW, dH) {
totalWidth = tW;
totalHeight = tH;
displayWidth = dW;
var _local4 = (((__hScrollPolicy == "on") || (__hScrollPolicy == "auto")) ? (Math.max(tW, dW)) : (dW));
super.layoutContent(x, y, _local4, dH);
}
function modelChanged(eventObj) {
super.modelChanged(eventObj);
var _local3 = eventObj.eventName;
if ((((_local3 == "addItems") || (_local3 == "removeItems")) || (_local3 == "updateAll")) || (_local3 == "filterModel")) {
invScrollProps = true;
invalidate("invScrollProps");
}
}
function onScroll(eventObj) {
var _local3 = eventObj.target;
if (_local3 == vScroller) {
setVPosition(_local3.scrollPosition);
} else {
hScroll(_local3.scrollPosition);
}
super.onScroll(eventObj);
}
function hScroll(pos) {
__hPosition = pos;
listContent._x = -pos;
}
function init(Void) {
super.init();
if (labels.length > 0) {
var _local6 = new Array();
var _local3 = 0;
while (_local3 < labels.length) {
_local6.addItem({label:labels[_local3], data:data[_local3]});
_local3++;
}
setDataProvider(_local6);
}
__maxHPosition = 0;
}
function createChildren(Void) {
super.createChildren();
listContent.setMask(mask_mc);
border_mc.move(0, 0);
border_mc.setSize(__width, __height);
}
function getRowCount(Void) {
var _local2 = getViewMetrics();
return(((__rowCount == 0) ? (Math.ceil(((__height - _local2.top) - _local2.bottom) / __rowHeight)) : (__rowCount)));
}
function size(Void) {
super.size();
configureScrolling();
var _local3 = getViewMetrics();
layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom);
}
function draw(Void) {
if (invRowHeight) {
invScrollProps = true;
super.draw();
listContent.setMask(mask_mc);
invLayoutContent = true;
}
if (invScrollProps) {
configureScrolling();
delete invScrollProps;
}
if (invLayoutContent) {
var _local3 = getViewMetrics();
layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom);
}
super.draw();
}
function configureScrolling(Void) {
var _local2 = __dataProvider.length;
if (__vPosition > Math.max(0, (_local2 - getRowCount()) + roundUp)) {
setVPosition(Math.max(0, Math.min((_local2 - getRowCount()) + roundUp, __vPosition)));
}
var _local3 = getViewMetrics();
var _local4 = ((__hScrollPolicy != "off") ? (((__maxHPosition + __width) - _local3.left) - _local3.right) : ((__width - _local3.left) - _local3.right));
if (_local2 == undefined) {
_local2 = 0;
}
setScrollProperties(_local4, 1, _local2, __rowHeight);
if (oldVWidth != _local4) {
invLayoutContent = true;
}
oldVWidth = _local4;
}
static var symbolOwner = mx.controls.List;
static var symbolName = "List";
var className = "List";
static var version = "2.0.1.78";
var clipParameters = {rowHeight:1, enabled:1, visible:1, labels:1};
var scrollDepth = 1;
var __vScrollPolicy = "on";
var autoHScrollAble = false;
}
Symbol 680 MovieClip [__Packages.mx.effects.Tween] Frame 0
class mx.effects.Tween extends Object
{
static var IntervalToken;
var arrayMode, listener, initVal, endVal, startTime, updateFunc, endFunc, ID;
function Tween (listenerObj, init, end, dur) {
super();
if (listenerObj == undefined) {
return;
}
if (typeof(init) != "number") {
arrayMode = true;
}
listener = listenerObj;
initVal = init;
endVal = end;
if (dur != undefined) {
duration = dur;
}
startTime = getTimer();
if (duration == 0) {
endTween();
} else {
AddTween(this);
}
}
static function AddTween(tween) {
tween.ID = ActiveTweens.length;
ActiveTweens.push(tween);
if (IntervalToken == undefined) {
Dispatcher.DispatchTweens = DispatchTweens;
IntervalToken = setInterval(Dispatcher, "DispatchTweens", Interval);
}
}
static function RemoveTweenAt(index) {
var _local2 = ActiveTweens;
if (((index >= _local2.length) || (index < 0)) || (index == undefined)) {
return(undefined);
}
_local2.splice(index, 1);
var _local4 = _local2.length;
var _local1 = index;
while (_local1 < _local4) {
_local2[_local1].ID--;
_local1++;
}
if (_local4 == 0) {
clearInterval(IntervalToken);
delete IntervalToken;
}
}
static function DispatchTweens(Void) {
var _local2 = ActiveTweens;
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
_local2[_local1].doInterval();
_local1++;
}
updateAfterEvent();
}
function doInterval() {
var _local2 = getTimer() - startTime;
var _local3 = getCurVal(_local2);
if (_local2 >= duration) {
endTween();
} else if (updateFunc != undefined) {
listener[updateFunc](_local3);
} else {
listener.onTweenUpdate(_local3);
}
}
function getCurVal(curTime) {
if (arrayMode) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < initVal.length) {
_local3[_local2] = easingEquation(curTime, initVal[_local2], endVal[_local2] - initVal[_local2], duration);
_local2++;
}
return(_local3);
}
return(easingEquation(curTime, initVal, endVal - initVal, duration));
}
function endTween() {
if (endFunc != undefined) {
listener[endFunc](endVal);
} else {
listener.onTweenEnd(endVal);
}
RemoveTweenAt(ID);
}
function setTweenHandlers(update, end) {
updateFunc = update;
endFunc = end;
}
function easingEquation(t, b, c, d) {
return(((c / 2) * (Math.sin(Math.PI * ((t / d) - 0.5)) + 1)) + b);
}
static var ActiveTweens = new Array();
static var Interval = 10;
static var Dispatcher = new Object();
var duration = 3000;
}
Symbol 681 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement
{
var getStyle, _color, onEnterFrame;
function ColoredSkinElement () {
}
function setColor(c) {
if (c != undefined) {
var _local2 = new Color(this);
_local2.setRGB(c);
}
}
function draw(Void) {
setColor(getStyle(_color));
onEnterFrame = undefined;
}
function invalidateStyle(Void) {
onEnterFrame = draw;
}
static function setColorStyle(p, colorStyle) {
if (p._color == undefined) {
p._color = colorStyle;
}
p.setColor = mixins.setColor;
p.invalidateStyle = mixins.invalidateStyle;
p.draw = mixins.draw;
p.setColor(p.getStyle(colorStyle));
}
static var mixins = new mx.skins.ColoredSkinElement();
}
Symbol 682 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class mx.core.ext.UIObjectExtensions
{
function UIObjectExtensions () {
}
static function addGeometry(tf, ui) {
tf.addProperty("width", ui.__get__width, null);
tf.addProperty("height", ui.__get__height, null);
tf.addProperty("left", ui.__get__left, null);
tf.addProperty("x", ui.__get__x, null);
tf.addProperty("top", ui.__get__top, null);
tf.addProperty("y", ui.__get__y, null);
tf.addProperty("right", ui.__get__right, null);
tf.addProperty("bottom", ui.__get__bottom, null);
tf.addProperty("visible", ui.__get__visible, ui.__set__visible);
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
var _local6 = mx.core.UIObject.prototype;
var _local9 = mx.skins.SkinElement.prototype;
addGeometry(_local9, _local6);
mx.events.UIEventDispatcher.initialize(_local6);
var _local13 = mx.skins.ColoredSkinElement;
mx.styles.CSSTextStyles.addTextStyles(_local6);
var _local5 = MovieClip.prototype;
_local5.getTopLevel = _local6.getTopLevel;
_local5.createLabel = _local6.createLabel;
_local5.createObject = _local6.createObject;
_local5.createClassObject = _local6.createClassObject;
_local5.createEmptyObject = _local6.createEmptyObject;
_local5.destroyObject = _local6.destroyObject;
_global.ASSetPropFlags(_local5, "getTopLevel", 1);
_global.ASSetPropFlags(_local5, "createLabel", 1);
_global.ASSetPropFlags(_local5, "createObject", 1);
_global.ASSetPropFlags(_local5, "createClassObject", 1);
_global.ASSetPropFlags(_local5, "createEmptyObject", 1);
_global.ASSetPropFlags(_local5, "destroyObject", 1);
_local5.__getTextFormat = _local6.__getTextFormat;
_local5._getTextFormat = _local6._getTextFormat;
_local5.getStyleName = _local6.getStyleName;
_local5.getStyle = _local6.getStyle;
_global.ASSetPropFlags(_local5, "__getTextFormat", 1);
_global.ASSetPropFlags(_local5, "_getTextFormat", 1);
_global.ASSetPropFlags(_local5, "getStyleName", 1);
_global.ASSetPropFlags(_local5, "getStyle", 1);
var _local7 = TextField.prototype;
addGeometry(_local7, _local6);
_local7.addProperty("enabled", function () {
return(this.__enabled);
}, function (x) {
this.__enabled = x;
this.invalidateStyle();
});
_local7.move = _local9.move;
_local7.setSize = _local9.setSize;
_local7.invalidateStyle = function () {
this.invalidateFlag = true;
};
_local7.draw = function () {
if (this.invalidateFlag) {
this.invalidateFlag = false;
var _local2 = this._getTextFormat();
this.setTextFormat(_local2);
this.setNewTextFormat(_local2);
this.embedFonts = _local2.embedFonts == true;
if (this.__text != undefined) {
if (this.text == "") {
this.text = this.__text;
}
delete this.__text;
}
this._visible = true;
}
};
_local7.setColor = function (color) {
this.textColor = color;
};
_local7.getStyle = _local5.getStyle;
_local7.__getTextFormat = _local6.__getTextFormat;
_local7.setValue = function (v) {
this.text = v;
};
_local7.getValue = function () {
return(this.text);
};
_local7.addProperty("value", function () {
return(this.getValue());
}, function (v) {
this.setValue(v);
});
_local7._getTextFormat = function () {
var _local2 = this.stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
this.__getTextFormat(_local2);
this.stylecache.tf = _local2;
if (this.__enabled == false) {
if (this.enabledColor == undefined) {
var _local4 = this.getTextFormat();
this.enabledColor = _local4.color;
}
var _local3 = this.getStyle("disabledColor");
_local2.color = _local3;
} else if (this.enabledColor != undefined) {
if (_local2.color == undefined) {
_local2.color = this.enabledColor;
}
}
return(_local2);
};
_local7.getPreferredWidth = function () {
this.draw();
return(this.textWidth + 4);
};
_local7.getPreferredHeight = function () {
this.draw();
return(this.textHeight + 4);
};
TextFormat.prototype.getTextExtent2 = function (s) {
var _local3 = _root._getTextExtent;
if (_local3 == undefined) {
_root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100);
_local3 = _root._getTextExtent;
_local3._visible = false;
}
_root._getTextExtent.text = s;
var _local4 = this.align;
this.align = "left";
_root._getTextExtent.setTextFormat(this);
this.align = _local4;
return({width:_local3.textWidth, height:_local3.textHeight});
};
if (_global.style == undefined) {
_global.style = new mx.styles.CSSStyleDeclaration();
_global.cascadingStyles = true;
_global.styles = new Object();
_global.skinRegistry = new Object();
if (_global._origWidth == undefined) {
_global.origWidth = Stage.width;
_global.origHeight = Stage.height;
}
}
var _local4 = _root;
while (_local4._parent != undefined) {
_local4 = _local4._parent;
}
_local4.addProperty("width", function () {
return(Stage.width);
}, null);
_local4.addProperty("height", function () {
return(Stage.height);
}, null);
_global.ASSetPropFlags(_local4, "width", 1);
_global.ASSetPropFlags(_local4, "height", 1);
return(true);
}
static var bExtended = false;
static var UIObjectExtended = Extensions();
static var UIObjectDependency = mx.core.UIObject;
static var SkinElementDependency = mx.skins.SkinElement;
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
static var UIEventDispatcherDependency = mx.events.UIEventDispatcher;
}
Symbol 683 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class mx.skins.halo.Defaults
{
var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill;
function Defaults () {
}
static function setThemeDefaults() {
var _local2 = _global.style;
_local2.themeColor = 8453965 /* 0x80FF4D */;
_local2.disabledColor = 8684164 /* 0x848284 */;
_local2.modalTransparency = 0;
_local2.filled = true;
_local2.stroked = true;
_local2.strokeWidth = 1;
_local2.strokeColor = 0;
_local2.fillColor = 16777215 /* 0xFFFFFF */;
_local2.repeatInterval = 35;
_local2.repeatDelay = 500;
_local2.fontFamily = "_sans";
_local2.fontSize = 12;
_local2.selectionColor = 13500353 /* 0xCDFFC1 */;
_local2.rollOverColor = 14942166 /* 0xE3FFD6 */;
_local2.useRollOver = true;
_local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDuration = 200;
_local2.openDuration = 250;
_local2.borderStyle = "inset";
_local2.color = 734012 /* 0x0B333C */;
_local2.textSelectedColor = 24371;
_local2.textRollOverColor = 2831164 /* 0x2B333C */;
_local2.textDisabledColor = 16777215 /* 0xFFFFFF */;
_local2.vGridLines = true;
_local2.hGridLines = false;
_local2.vGridLineColor = 6710886 /* 0x666666 */;
_local2.hGridLineColor = 6710886 /* 0x666666 */;
_local2.headerColor = 15395562 /* 0xEAEAEA */;
_local2.indentation = 17;
_local2.folderOpenIcon = "TreeFolderOpen";
_local2.folderClosedIcon = "TreeFolderClosed";
_local2.defaultLeafIcon = "TreeNodeIcon";
_local2.disclosureOpenIcon = "TreeDisclosureOpen";
_local2.disclosureClosedIcon = "TreeDisclosureClosed";
_local2.popupDuration = 150;
_local2.todayColor = 6710886 /* 0x666666 */;
_local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration());
_local2.backgroundColor = 16777215 /* 0xFFFFFF */;
_local2.borderColor = 13290186 /* 0xCACACA */;
_local2.borderStyle = "inset";
_local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration());
_local2.borderStyle = "inset";
_local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration());
_local2.textAlign = "center";
_local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration());
_local2.borderColor = 14015965 /* 0xD5DDDD */;
_local2.buttonColor = 7305079 /* 0x6F7777 */;
_local2.shadowColor = 15658734 /* 0xEEEEEE */;
_local2.highlightColor = 12897484 /* 0xC4CCCC */;
_local2.shadowCapColor = 14015965 /* 0xD5DDDD */;
_local2.borderCapColor = 9542041 /* 0x919999 */;
var _local4 = new Object();
_local4.borderColor = 16711680 /* 0xFF0000 */;
_local4.buttonColor = 16711680 /* 0xFF0000 */;
_local4.shadowColor = 16711680 /* 0xFF0000 */;
_local4.highlightColor = 16711680 /* 0xFF0000 */;
_local4.shadowCapColor = 16711680 /* 0xFF0000 */;
_local4.borderCapColor = 16711680 /* 0xFF0000 */;
mx.core.UIComponent.prototype.origBorderStyles = _local4;
var _local3;
_local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration());
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderStyle = "inset";
_global.styles.TextArea = _global.styles.TextInput;
_local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "default";
_local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "alert";
_local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "inset";
_local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "none";
_local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration());
_local3.color = 11187123 /* 0xAAB3B3 */;
_local3.fontWeight = "bold";
_local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = "11";
_local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "solid";
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderColor = 9081738 /* 0x8A938A */;
_local3.headerHeight = 22;
_local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1)));
_local3.verticalGap = -1;
_local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration());
_local3.borderColor = 9542041 /* 0x919999 */;
_local3.headerColor = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 10;
_local3.textAlign = "right";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = 11;
_local3.textAlign = "center";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration());
_local3.color = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 12;
_local3.fontWeight = "bold";
_local3.textAlign = "center";
}
function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) {
if (typeof(r) == "object") {
var _local18 = r.br;
var _local16 = r.bl;
var _local15 = r.tl;
var _local10 = r.tr;
} else {
var _local10 = r;
var _local15 = _local10;
var _local16 = _local15;
var _local18 = _local16;
}
if (typeof(c) == "object") {
if (typeof(alpha) != "object") {
var _local9 = [alpha, alpha];
} else {
var _local9 = alpha;
}
if (ratios == undefined) {
ratios = [0, 255];
}
var _local14 = h * 0.7;
if (typeof(rot) != "object") {
var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */};
} else {
var _local11 = rot;
}
if (gradient == "radial") {
beginGradientFill("radial", c, _local9, ratios, _local11);
} else {
beginGradientFill("linear", c, _local9, ratios, _local11);
}
} else if (c != undefined) {
beginFill(c, alpha);
}
r = _local18;
var _local13 = r - (r * 0.707106781186547);
var _local12 = r - (r * 0.414213562373095);
moveTo(x + w, (y + h) - r);
lineTo(x + w, (y + h) - r);
curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13);
curveTo((x + w) - _local12, y + h, (x + w) - r, y + h);
r = _local16;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x + r, y + h);
curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13);
curveTo(x, (y + h) - _local12, x, (y + h) - r);
r = _local15;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x, y + r);
curveTo(x, y + _local12, x + _local13, y + _local13);
curveTo(x + _local12, y, x + r, y);
r = _local10;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo((x + w) - r, y);
curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13);
curveTo(x + w, y + _local12, x + w, y + r);
lineTo(x + w, (y + h) - r);
if (c != undefined) {
endFill();
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
setThemeDefaults();
mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
static var UIObjectDependency = mx.core.UIObject;
}
Symbol 684 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent
{
var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject;
function FocusManager () {
super();
}
function get defaultPushButton() {
return(__defaultPushButton);
}
function set defaultPushButton(x) {
if (x != __defaultPushButton) {
__defaultPushButton.__set__emphasized(false);
__defaultPushButton = x;
defPushButton = x;
x.__set__emphasized(true);
}
//return(defaultPushButton);
}
function getMaxTabIndex(o) {
var _local3 = 0;
var _local6;
for (_local6 in o) {
var _local2 = o[_local6];
if (_local2._parent == o) {
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex > _local3) {
_local3 = _local2.tabIndex;
}
}
if (_local2.tabChildren == true) {
var _local4 = getMaxTabIndex(_local2);
if (_local4 > _local3) {
_local3 = _local4;
}
}
}
}
return(_local3);
}
function getNextTabIndex(Void) {
return(getMaxTabIndex(form) + 1);
}
function get nextTabIndex() {
return(getNextTabIndex());
}
function relocate(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
move(_local2.x - 1, _local2.y - 1);
}
function init(Void) {
super.init();
tabEnabled = false;
_width = (_height = 1);
_x = (_y = -1);
_alpha = 0;
_parent.focusManager = this;
_parent.tabChildren = true;
_parent.tabEnabled = false;
form = _parent;
_parent.addEventListener("hide", this);
_parent.addEventListener("reveal", this);
mx.managers.SystemManager.init();
mx.managers.SystemManager.addFocusManager(form);
tabCapture.tabIndex = 0;
watch("enabled", enabledChanged);
Selection.addListener(this);
lastMouse = new Object();
_global.ASSetPropFlags(_parent, "focusManager", 1);
_global.ASSetPropFlags(_parent, "tabChildren", 1);
_global.ASSetPropFlags(_parent, "tabEnabled", 1);
}
function enabledChanged(id, oldValue, newValue) {
_visible = newValue;
return(newValue);
}
function activate(Void) {
Key.addListener(this);
activated = (_visible = true);
if (lastFocus != undefined) {
bNeedFocus = true;
if (!mx.managers.SystemManager.isMouseDown) {
doLater(this, "restoreFocus");
}
}
}
function deactivate(Void) {
Key.removeListener(this);
activated = (_visible = false);
var _local2 = getSelectionFocus();
var _local3 = getActualFocus(_local2);
if (isOurFocus(_local3)) {
lastSelFocus = _local2;
lastFocus = _local3;
}
cancelAllDoLaters();
}
function isOurFocus(o) {
if (o.focusManager == this) {
return(true);
}
while (o != undefined) {
if (o.focusManager != undefined) {
return(false);
}
if (o._parent == _parent) {
return(true);
}
o = o._parent;
}
return(false);
}
function onSetFocus(o, n) {
if (n == null) {
if (activated) {
bNeedFocus = true;
}
} else {
var _local2 = getFocus();
if (isOurFocus(_local2)) {
bNeedFocus = false;
lastFocus = _local2;
lastSelFocus = n;
}
}
}
function restoreFocus(Void) {
var _local2 = lastSelFocus.hscroll;
if (_local2 != undefined) {
var _local5 = lastSelFocus.scroll;
var _local4 = lastSelFocus.background;
}
lastFocus.setFocus();
var _local3 = Selection;
Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex);
if (_local2 != undefined) {
lastSelFocus.scroll = _local5;
lastSelFocus.hscroll = _local2;
lastSelFocus.background = _local4;
}
}
function onUnload(Void) {
mx.managers.SystemManager.removeFocusManager(form);
}
function setFocus(o) {
if (o == null) {
Selection.setFocus(null);
} else if (o.setFocus == undefined) {
Selection.setFocus(o);
} else {
o.setFocus();
}
}
function getActualFocus(o) {
var _local1 = o._parent;
while (_local1 != undefined) {
if (_local1.focusTextField != undefined) {
while (_local1.focusTextField != undefined) {
o = _local1;
_local1 = _local1._parent;
if (_local1 == undefined) {
return(undefined);
}
if (_local1.focusTextField == undefined) {
return(o);
}
}
}
if (_local1.tabEnabled != true) {
return(o);
}
o = _local1;
_local1 = o._parent;
}
return(undefined);
}
function getSelectionFocus() {
var m = Selection.getFocus();
var o = eval (m);
return(o);
}
function getFocus(Void) {
var _local2 = getSelectionFocus();
return(getActualFocus(_local2));
}
function walkTree(p, index, groupName, dir, lookup, firstChild) {
var _local5 = true;
var _local11;
for (_local11 in p) {
var _local2 = p[_local11];
if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_local2 != _lastTarget) {
if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) {
continue;
}
if ((_local2 instanceof TextField) && (_local2.selectable == false)) {
continue;
}
if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) {
if (firstChild) {
_firstNode = _local2;
firstChild = false;
}
}
if (_nextIsNext == true) {
if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) {
_nextNode = _local2;
}
}
if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) {
if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) {
} else {
_lastx = _local2;
}
}
} else {
_prevNode = _lastx;
_needPrev = false;
_nextIsNext = true;
}
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex == index) {
if (_foundList[_local2._name] == undefined) {
if (_needPrev) {
_prevObj = _local2;
_needPrev = false;
}
_nextObj = _local2;
}
}
if (dir && (_local2.tabIndex > index)) {
if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) {
_nextObj = _local2;
}
} else if ((!dir) && (_local2.tabIndex < index)) {
if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) {
_prevObj = _local2;
}
}
if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) {
_firstObj = _local2;
}
if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) {
_lastObj = _local2;
}
}
if (_local2.tabChildren) {
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
} else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) {
if (_local2 == _lastTarget) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_prevNode == undefined) {
var _local3 = _lastx;
var _local7 = false;
while (_local3 != undefined) {
if (_local3 == _local2) {
_local7 = true;
break;
}
_local3 = _local3._parent;
}
if (_local7 == false) {
_prevNode = _lastx;
}
}
_needPrev = false;
if (_nextNode == undefined) {
_nextIsNext = true;
}
} else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
}
}
_lastNode = _lastx;
if (lookup) {
if (p._parent != undefined) {
if (p != _parent) {
if ((_prevNode == undefined) && (dir)) {
_needPrev = true;
} else if ((_nextNode == undefined) && (!dir)) {
_nextIsNext = false;
}
_lastTarget = _lastTarget._parent;
getTabCandidate(p._parent, index, groupName, dir, true);
}
}
}
}
function getTabCandidate(o, index, groupName, dir, firstChild) {
var _local2;
var _local3 = true;
if (o == _parent) {
_local2 = o;
_local3 = false;
} else {
_local2 = o._parent;
if (_local2 == undefined) {
_local2 = o;
_local3 = false;
}
}
walkTree(_local2, index, groupName, dir, _local3, firstChild);
}
function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) {
walkTree(o, index, groupName, dir, false, firstChild);
}
function getFocusManagerFromObject(o) {
while (o != undefined) {
if (o.focusManager != undefined) {
return(o.focusManager);
}
o = o._parent;
}
return(undefined);
}
function tabHandler(Void) {
bDrawFocus = true;
var _local5 = getSelectionFocus();
var _local4 = getActualFocus(_local5);
if (_local4 != _local5) {
_local5 = _local4;
}
if (getFocusManagerFromObject(_local5) != this) {
_local5 == undefined;
}
if (_local5 == undefined) {
_local5 = form;
} else if (_local5.tabIndex != undefined) {
if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) {
_foundList = new Object();
_foundList.tabIndex = _local5.tabIndex;
}
_foundList[_local5._name] = _local5;
}
var _local3 = Key.isDown(16) != true;
_searchKey = getTimer();
_needPrev = true;
_nextIsNext = false;
_lastx = undefined;
_firstNode = undefined;
_lastNode = undefined;
_nextNode = undefined;
_prevNode = undefined;
_firstObj = undefined;
_lastObj = undefined;
_nextObj = undefined;
_prevObj = undefined;
_lastTarget = _local5;
var _local6 = _local5;
getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true);
var _local2;
if (_local3) {
if (_nextObj != undefined) {
_local2 = _nextObj;
} else {
_local2 = _firstObj;
}
} else if (_prevObj != undefined) {
_local2 = _prevObj;
} else {
_local2 = _lastObj;
}
if (_local2.tabIndex != _local5.tabIndex) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
_foundList[_local2._name] = _local2;
} else {
if (_foundList == undefined) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
}
_foundList[_local2._name] = _local2;
}
if (_local2 == undefined) {
if (_local3 == false) {
if (_nextNode != undefined) {
_local2 = _nextNode;
} else {
_local2 = _firstNode;
}
} else if ((_prevNode == undefined) || (_local5 == form)) {
_local2 = _lastNode;
} else {
_local2 = _prevNode;
}
}
if (_local2 == undefined) {
return(undefined);
}
lastTabFocus = _local2;
setFocus(_local2);
if (_local2.emphasized != undefined) {
if (defPushButton != undefined) {
_local5 = defPushButton;
defPushButton = _local2;
_local5.emphasized = false;
_local2.emphasized = true;
}
} else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) {
_local5 = defPushButton;
defPushButton = __defaultPushButton;
_local5.emphasized = false;
__defaultPushButton.__set__emphasized(true);
}
}
function onKeyDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
if (defaultPushButtonEnabled) {
if (Key.getCode() == 13) {
if (defaultPushButton != undefined) {
doLater(this, "sendDefaultPushButtonEvent");
}
}
}
}
function sendDefaultPushButtonEvent(Void) {
defPushButton.dispatchEvent({type:"click"});
}
function getMousedComponentFromChildren(x, y, o) {
for (var _local7 in o) {
var _local2 = o[_local7];
if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) {
_local2._searchKey = _searchKey;
if (_local2.hitTest(x, y, true)) {
if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) {
return(_local2);
}
var _local3 = getMousedComponentFromChildren(x, y, _local2);
if (_local3 != undefined) {
return(_local3);
}
return(_local2);
}
}
}
return(undefined);
}
function mouseActivate(Void) {
if (!bNeedFocus) {
return(undefined);
}
_searchKey = getTimer();
var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form);
if (_local2 instanceof mx.core.UIComponent) {
return(undefined);
}
_local2 = findFocusFromObject(_local2);
if (_local2 == lastFocus) {
return(undefined);
}
if (_local2 == undefined) {
doLater(this, "restoreFocus");
return(undefined);
}
var _local3 = _local2.hscroll;
if (_local3 != undefined) {
var _local6 = _local2.scroll;
var _local5 = _local2.background;
}
setFocus(_local2);
var _local4 = Selection;
Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex);
if (_local3 != undefined) {
_local2.scroll = _local6;
_local2.hscroll = _local3;
_local2.background = _local5;
}
}
function _onMouseDown(Void) {
bDrawFocus = false;
if (lastFocus != undefined) {
lastFocus.drawFocus(false);
}
mx.managers.SystemManager.idleFrames = 0;
var _local3 = Selection;
_local3.lastBeginIndex = Selection.getBeginIndex();
_local3.lastEndIndex = Selection.getEndIndex();
lastMouse.x = _root._xmouse;
lastMouse.y = _root._ymouse;
_root.localToGlobal(lastMouse);
}
function onMouseUp(Void) {
if (_visible) {
doLater(this, "mouseActivate");
}
}
function handleEvent(e) {
if (e.type == "reveal") {
mx.managers.SystemManager.activate(form);
} else {
mx.managers.SystemManager.deactivate(form);
}
}
static function enableFocusManagement() {
if (!initialized) {
initialized = true;
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
}
}
static var symbolName = "FocusManager";
static var symbolOwner = mx.managers.FocusManager;
static var version = "2.0.1.78";
var className = "FocusManager";
var bNeedFocus = false;
var bDrawFocus = false;
var defaultPushButtonEnabled = true;
var activated = true;
static var initialized = false;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 685 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class mx.skins.halo.FocusRect extends mx.skins.SkinElement
{
var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible;
function FocusRect () {
super();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function draw(o) {
o.adjustFocusRect();
}
function setSize(w, h, r, a, rectCol) {
_xscale = (_yscale = 100);
clear();
if (typeof(r) == "object") {
r.br = ((r.br > 2) ? (r.br - 2) : 0);
r.bl = ((r.bl > 2) ? (r.bl - 2) : 0);
r.tr = ((r.tr > 2) ? (r.tr - 2) : 0);
r.tl = ((r.tl > 2) ? (r.tl - 2) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
r.br = ((r.br > 1) ? (r.br + 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl + 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr + 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl + 1) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(1, 1, w - 2, h - 2, r);
r.br = ((r.br > 1) ? (r.br - 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl - 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr - 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl - 1) : 0);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
} else {
var _local5;
if (r != 0) {
_local5 = r - 2;
} else {
_local5 = 0;
}
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
beginFill(rectCol, a * 0.3);
if (r != 0) {
_local5 = r - 2;
r = r - 1;
} else {
_local5 = 0;
r = 0;
}
drawRoundRect(1, 1, w - 2, h - 2, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
}
}
function handleEvent(e) {
if (e.type == "unload") {
_visible = true;
} else if (e.type == "resize") {
e.target.adjustFocusRect();
} else if (e.type == "move") {
e.target.adjustFocusRect();
}
}
static function classConstruct() {
mx.core.UIComponent.prototype.drawFocus = function (focused) {
var _local2 = this._parent.focus_mc;
if (!focused) {
_local2._visible = false;
this.removeEventListener("unload", _local2);
this.removeEventListener("move", _local2);
this.removeEventListener("resize", _local2);
} else {
if (_local2 == undefined) {
_local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop);
_local2.tabEnabled = false;
this._parent.focus_mc = _local2;
} else {
_local2._visible = true;
}
_local2.draw(this);
if (_local2.getDepth() < this.getDepth()) {
_local2.setDepthAbove(this);
}
this.addEventListener("unload", _local2);
this.addEventListener("move", _local2);
this.addEventListener("resize", _local2);
}
};
mx.core.UIComponent.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect;
mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var DefaultsDependency = mx.skins.halo.Defaults;
static var UIComponentDependency = mx.core.UIComponent;
}
Symbol 686 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows
{
function OverlappedWindows () {
}
static function checkIdle(Void) {
if (mx.managers.SystemManager.idleFrames > 10) {
mx.managers.SystemManager.dispatchEvent({type:"idle"});
} else {
mx.managers.SystemManager.idleFrames++;
}
}
static function __addEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager.interval == undefined) {
mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100);
}
}
mx.managers.SystemManager._xAddEventListener(e, o, l);
}
static function __removeEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) {
clearInterval(mx.managers.SystemManager.interval);
}
} else {
mx.managers.SystemManager._xRemoveEventListener(e, o, l);
}
}
static function onMouseDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
mx.managers.SystemManager.isMouseDown = true;
var _local5 = _root;
var _local3;
var _local8 = _root._xmouse;
var _local7 = _root._ymouse;
if (mx.managers.SystemManager.form.modalWindow == undefined) {
if (mx.managers.SystemManager.forms.length > 1) {
var _local6 = mx.managers.SystemManager.forms.length;
var _local4;
_local4 = 0;
while (_local4 < _local6) {
var _local2 = mx.managers.SystemManager.forms[_local4];
if (_local2._visible) {
if (_local2.hitTest(_local8, _local7)) {
if (_local3 == undefined) {
_local3 = _local2.getDepth();
_local5 = _local2;
} else if (_local3 < _local2.getDepth()) {
_local3 = _local2.getDepth();
_local5 = _local2;
}
}
}
_local4++;
}
if (_local5 != mx.managers.SystemManager.form) {
mx.managers.SystemManager.activate(_local5);
}
}
}
var _local9 = mx.managers.SystemManager.form;
_local9.focusManager._onMouseDown();
}
static function onMouseMove(Void) {
mx.managers.SystemManager.idleFrames = 0;
}
static function onMouseUp(Void) {
mx.managers.SystemManager.isMouseDown = false;
mx.managers.SystemManager.idleFrames = 0;
}
static function activate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local1 = mx.managers.SystemManager.form;
_local1.focusManager.deactivate();
}
}
mx.managers.SystemManager.form = f;
f.focusManager.activate();
}
static function deactivate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local5 = mx.managers.SystemManager.form;
_local5.focusManager.deactivate();
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
var _local2;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
_local1 = _local1 + 1;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
mx.managers.SystemManager.form = _local2;
break;
}
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
_local5 = mx.managers.SystemManager.form;
_local5.focusManager.activate();
}
}
}
static function addFocusManager(f) {
mx.managers.SystemManager.forms.push(f);
mx.managers.SystemManager.activate(f);
}
static function removeFocusManager(f) {
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
if (mx.managers.SystemManager.form == f) {
mx.managers.SystemManager.deactivate(f);
}
mx.managers.SystemManager.forms.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
static function enableOverlappedWindows() {
if (!initialized) {
initialized = true;
mx.managers.SystemManager.checkIdle = checkIdle;
mx.managers.SystemManager.__addEventListener = __addEventListener;
mx.managers.SystemManager.__removeEventListener = __removeEventListener;
mx.managers.SystemManager.onMouseDown = onMouseDown;
mx.managers.SystemManager.onMouseMove = onMouseMove;
mx.managers.SystemManager.onMouseUp = onMouseUp;
mx.managers.SystemManager.activate = activate;
mx.managers.SystemManager.deactivate = deactivate;
mx.managers.SystemManager.addFocusManager = addFocusManager;
mx.managers.SystemManager.removeFocusManager = removeFocusManager;
}
}
static var initialized = false;
static var SystemManagerDependency = mx.managers.SystemManager;
}
Symbol 687 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class mx.styles.CSSSetStyle
{
var styleName, stylecache, _color, setColor, invalidateStyle;
function CSSSetStyle () {
}
function _setStyle(styleProp, newValue) {
this[styleProp] = newValue;
if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) {
if (styleProp == "color") {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
}
_level0.changeTextStyleInChildren(styleProp);
return(undefined);
}
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local7 = mx.styles.StyleManager.colorNames.haloBlue;
var _local6 = mx.styles.StyleManager.colorNames.haloGreen;
var _local8 = mx.styles.StyleManager.colorNames.haloOrange;
var _local4 = {};
_local4[_local7] = 12188666 /* 0xB9FBFA */;
_local4[_local6] = 13500353 /* 0xCDFFC1 */;
_local4[_local8] = 16766319 /* 0xFFD56F */;
var _local5 = {};
_local5[_local7] = 13958653 /* 0xD4FDFD */;
_local5[_local6] = 14942166 /* 0xE3FFD6 */;
_local5[_local8] = 16772787 /* 0xFFEEB3 */;
var _local9 = _local4[newValue];
var _local10 = _local5[newValue];
if (_local9 == undefined) {
_local9 = newValue;
}
if (_local10 == undefined) {
_local10 = newValue;
}
setStyle("selectionColor", _local9);
setStyle("rollOverColor", _local10);
}
_level0.changeColorStyleInChildren(styleName, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
_level0.notifyStyleChangeInChildren(styleName, styleProp, newValue);
}
}
function changeTextStyleInChildren(styleProp) {
var _local4 = getTimer();
var _local5;
for (_local5 in this) {
var _local2 = this[_local5];
if (_local2._parent == this) {
if (_local2.searchKey != _local4) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache.tf;
delete _local2.stylecache[styleProp];
}
_local2.invalidateStyle(styleProp);
_local2.changeTextStyleInChildren(styleProp);
_local2.searchKey = _local4;
}
}
}
}
function changeColorStyleInChildren(sheetName, colorStyle, newValue) {
var _local6 = getTimer();
var _local7;
for (_local7 in this) {
var _local2 = this[_local7];
if (_local2._parent == this) {
if (_local2.searchKey != _local6) {
if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[colorStyle];
}
if (typeof(_local2._color) == "string") {
if (_local2._color == colorStyle) {
var _local4 = _local2.getStyle(colorStyle);
if (colorStyle == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = _local4;
}
}
_local2.setColor(_local4);
}
} else if (_local2._color[colorStyle] != undefined) {
if (typeof(_local2) != "movieclip") {
_local2._parent.invalidateStyle();
} else {
_local2.invalidateStyle(colorStyle);
}
}
}
_local2.changeColorStyleInChildren(sheetName, colorStyle, newValue);
_local2.searchKey = _local6;
}
}
}
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
var _local5 = getTimer();
var _local6;
for (_local6 in this) {
var _local2 = this[_local6];
if (_local2._parent == this) {
if (_local2.searchKey != _local5) {
if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[styleProp];
delete _local2.stylecache.tf;
}
delete _local2.enabledColor;
_local2.invalidateStyle(styleProp);
}
_local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
_local2.searchKey = _local5;
}
}
}
}
function setStyle(styleProp, newValue) {
if (stylecache != undefined) {
delete stylecache[styleProp];
delete stylecache.tf;
}
this[styleProp] = newValue;
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local10 = mx.styles.StyleManager.colorNames.haloBlue;
var _local9 = mx.styles.StyleManager.colorNames.haloGreen;
var _local11 = mx.styles.StyleManager.colorNames.haloOrange;
var _local6 = {};
_local6[_local10] = 12188666 /* 0xB9FBFA */;
_local6[_local9] = 13500353 /* 0xCDFFC1 */;
_local6[_local11] = 16766319 /* 0xFFD56F */;
var _local7 = {};
_local7[_local10] = 13958653 /* 0xD4FDFD */;
_local7[_local9] = 14942166 /* 0xE3FFD6 */;
_local7[_local11] = 16772787 /* 0xFFEEB3 */;
var _local12 = _local6[newValue];
var _local13 = _local7[newValue];
if (_local12 == undefined) {
_local12 = newValue;
}
if (_local13 == undefined) {
_local13 = newValue;
}
setStyle("selectionColor", _local12);
setStyle("rollOverColor", _local13);
}
if (typeof(_color) == "string") {
if (_color == styleProp) {
if (styleProp == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = newValue;
}
}
setColor(newValue);
}
} else if (_color[styleProp] != undefined) {
invalidateStyle(styleProp);
}
changeColorStyleInChildren(undefined, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
invalidateStyle(styleProp);
}
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) {
var _local8;
var _local5 = newValue;
if (styleProp == "styleName") {
_local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5));
_local5 = _local8.themeColor;
if (_local5 != undefined) {
_local8.rollOverColor = (_local8.selectionColor = _local5);
}
}
notifyStyleChangeInChildren(undefined, styleProp, newValue);
}
}
static function enableRunTimeCSS() {
}
static function classConstruct() {
var _local2 = MovieClip.prototype;
var _local3 = mx.styles.CSSSetStyle.prototype;
mx.styles.CSSStyleDeclaration.prototype.setStyle = _local3._setStyle;
_local2.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
_local2.changeColorStyleInChildren = _local3.changeColorStyleInChildren;
_local2.notifyStyleChangeInChildren = _local3.notifyStyleChangeInChildren;
_local2.setStyle = _local3.setStyle;
_global.ASSetPropFlags(_local2, "changeTextStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "changeColorStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "notifyStyleChangeInChildren", 1);
_global.ASSetPropFlags(_local2, "setStyle", 1);
var _local4 = TextField.prototype;
_local4.setStyle = _local2.setStyle;
_local4.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
}
Symbol 688 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class mx.core.ext.UIComponentExtensions
{
function UIComponentExtensions () {
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
TextField.prototype.setFocus = function () {
Selection.setFocus(this);
};
TextField.prototype.onSetFocus = function (oldFocus) {
if (this.tabEnabled != false) {
if (this.getFocusManager().bDrawFocus) {
this.drawFocus(true);
}
}
};
TextField.prototype.onKillFocus = function (oldFocus) {
if (this.tabEnabled != false) {
this.drawFocus(false);
}
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager;
mx.managers.OverlappedWindows.enableOverlappedWindows();
mx.styles.CSSSetStyle.enableRunTimeCSS();
mx.managers.FocusManager.enableFocusManagement();
}
static var bExtended = false;
static var UIComponentExtended = Extensions();
static var UIComponentDependency = mx.core.UIComponent;
static var FocusManagerDependency = mx.managers.FocusManager;
static var OverlappedWindowsDependency = mx.managers.OverlappedWindows;
}
Symbol 689 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class mx.skins.halo.RectBorder extends mx.skins.RectBorder
{
var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill;
function RectBorder () {
super();
}
function init(Void) {
borderWidths.default = 3;
super.init();
}
function getBorderMetrics(Void) {
if (offset == undefined) {
var _local3 = getStyle(borderStyleName);
offset = borderWidths[_local3];
}
if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) {
__borderMetrics = {left:3, top:1, right:3, bottom:3};
return(__borderMetrics);
}
return(super.getBorderMetrics());
}
function drawBorder(Void) {
var _local6 = _global.styles[className];
if (_local6 == undefined) {
_local6 = _global.styles.RectBorder;
}
var _local5 = getStyle(borderStyleName);
var _local7 = getStyle(borderColorName);
if (_local7 == undefined) {
_local7 = _local6[borderColorName];
}
var _local8 = getStyle(backgroundColorName);
if (_local8 == undefined) {
_local8 = _local6[backgroundColorName];
}
var _local16 = getStyle("backgroundImage");
if (_local5 != "none") {
var _local14 = getStyle(shadowColorName);
if (_local14 == undefined) {
_local14 = _local6[shadowColorName];
}
var _local13 = getStyle(highlightColorName);
if (_local13 == undefined) {
_local13 = _local6[highlightColorName];
}
var _local12 = getStyle(buttonColorName);
if (_local12 == undefined) {
_local12 = _local6[buttonColorName];
}
var _local11 = getStyle(borderCapColorName);
if (_local11 == undefined) {
_local11 = _local6[borderCapColorName];
}
var _local10 = getStyle(shadowCapColorName);
if (_local10 == undefined) {
_local10 = _local6[shadowCapColorName];
}
}
offset = borderWidths[_local5];
var _local9 = offset;
var _local3 = __get__width();
var _local4 = __get__height();
clear();
_color = undefined;
if (_local5 == "none") {
} else if (_local5 == "inset") {
_color = colorList;
draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10);
} else if (_local5 == "outset") {
_color = colorList;
draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10);
} else if (_local5 == "alert") {
var _local15 = getStyle("themeColor");
drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50);
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100);
} else if (_local5 == "default") {
drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial");
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100);
} else if (_local5 == "dropDown") {
drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear");
drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100);
} else if (_local5 == "menuBorder") {
var _local15 = getStyle("themeColor");
drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10);
drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear");
drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50);
drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100);
} else if (_local5 == "comboNonEdit") {
} else {
beginFill(_local7);
drawRect(0, 0, _local3, _local4);
drawRect(1, 1, _local3 - 1, _local4 - 1);
endFill();
_color = borderColorName;
}
if (_local8 != undefined) {
beginFill(_local8);
drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9);
endFill();
}
}
function draw3dBorder(c1, c2, c3, c4, c5, c6) {
var _local3 = __get__width();
var _local2 = __get__height();
beginFill(c1);
drawRect(0, 0, _local3, _local2);
drawRect(1, 0, _local3 - 1, _local2);
endFill();
beginFill(c2);
drawRect(1, 0, _local3 - 1, 1);
endFill();
beginFill(c3);
drawRect(1, _local2 - 1, _local3 - 1, _local2);
endFill();
beginFill(c4);
drawRect(1, 1, _local3 - 1, 2);
endFill();
beginFill(c5);
drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1);
endFill();
beginFill(c6);
drawRect(1, 2, _local3 - 1, _local2 - 2);
drawRect(2, 2, _local3 - 2, _local2 - 2);
endFill();
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.styles.rectBorderClass = mx.skins.halo.RectBorder;
_global.skinRegistry.RectBorder = true;
return(true);
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.halo.RectBorder;
static var version = "2.0.1.78";
var borderCapColorName = "borderCapColor";
var shadowCapColorName = "shadowCapColor";
var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0};
var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2};
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 690 MovieClip [__Packages.mx.controls.listclasses.SelectableRow] Frame 0
class mx.controls.listclasses.SelectableRow extends mx.core.UIComponent
{
var __height, cell, owner, rowIndex, icon_mc, createObject, __width, backGround, highlight, highlightColor, createLabel, createClassObject, listOwner, tabEnabled, item, createEmptyMovieClip, drawRect, isChangedToSelected, bGTween, grandOwner;
function SelectableRow () {
super();
}
function setValue(itmObj, state) {
var _local7 = __height;
var _local2 = cell;
var _local5 = owner;
var _local8 = itemToString(itmObj);
if (_local2.getValue() != _local8) {
_local2.setValue(_local8, itmObj, state);
}
var _local4 = _local5.getPropertiesAt(rowIndex + _local5.__vPosition).icon;
if (_local4 == undefined) {
_local4 = _local5.__iconFunction(itmObj);
if (_local4 == undefined) {
_local4 = itmObj[_local5.__iconField];
if (_local4 == undefined) {
_local4 = _local5.getStyle("defaultIcon");
}
}
}
var _local3 = icon_mc;
if ((_local4 != undefined) && (itmObj != undefined)) {
_local3 = createObject(_local4, "icon_mc", 20);
_local3._x = 2;
_local3._y = (_local7 - _local3._height) / 2;
_local2._x = 4 + _local3._width;
} else {
_local3.removeMovieClip();
_local2._x = 2;
}
var _local9 = ((_local3 == undefined) ? 0 : (_local3._width));
_local2.setSize(__width - _local9, Math.min(_local7, _local2.getPreferredHeight()));
_local2._y = (_local7 - _local2._height) / 2;
}
function size(Void) {
var _local3 = backGround;
var _local2 = cell;
var _local4 = __height;
var _local5 = __width;
var _local6 = ((icon_mc == undefined) ? 0 : (icon_mc._width));
_local2.setSize(_local5 - _local6, Math.min(_local4, _local2.getPreferredHeight()));
_local2._y = (_local4 - _local2._height) / 2;
icon_mc._y = (_local4 - icon_mc._height) / 2;
_local3._x = 0;
_local3._width = _local5;
_local3._height = _local4;
drawRowFill(_local3, normalColor);
drawRowFill(highlight, highlightColor);
}
function setCellRenderer(forceSizing) {
var _local3 = owner.__cellRenderer;
var _local4;
if (cell != undefined) {
_local4 = cell._x;
cell.removeMovieClip();
cell.removeTextField();
}
var _local2;
if (_local3 == undefined) {
_local2 = (cell = createLabel("cll", 0, {styleName:this}));
_local2.styleName = owner;
_local2.selectable = false;
_local2.tabEnabled = false;
_local2.background = false;
_local2.border = false;
} else if (typeof(_local3) == "string") {
_local2 = (cell = createObject(_local3, "cll", 0, {styleName:this}));
} else {
_local2 = (cell = createClassObject(_local3, "cll", 0, {styleName:this}));
}
_local2.owner = this;
_local2.listOwner = owner;
_local2.getCellIndex = getCellIndex;
_local2.getDataLabel = getDataLabel;
if (_local4 != undefined) {
_local2._x = _local4;
}
if (forceSizing) {
size();
}
}
function getCellIndex(Void) {
return({columnIndex:0, itemIndex:owner.rowIndex + listOwner.__vPosition});
}
function getDataLabel() {
return(listOwner.labelField);
}
function init(Void) {
super.init();
tabEnabled = false;
}
function createChildren(Void) {
setCellRenderer(false);
setupBG();
setState(state, false);
}
function drawRow(itmObj, state, transition) {
item = itmObj;
setState(state, transition);
setValue(itmObj, state, transition);
}
function itemToString(itmObj) {
if (itmObj == undefined) {
return(" ");
}
var _local2 = owner.__labelFunction(itmObj);
if (_local2 == undefined) {
_local2 = ((itmObj instanceof XMLNode) ? (itmObj.attributes[owner.__labelField]) : (itmObj[owner.__labelField]));
if (_local2 == undefined) {
_local2 = " ";
if (typeof(itmObj) == "object") {
for (var _local4 in itmObj) {
if (_local4 != "__ID__") {
_local2 = (itmObj[_local4] + ", ") + _local2;
}
}
_local2 = _local2.substring(0, _local2.length - 2);
} else {
_local2 = itmObj;
}
}
}
return(_local2);
}
function setupBG(Void) {
var _local2 = (backGround = createEmptyMovieClip("bG_mc", LOWEST_DEPTH));
drawRowFill(_local2, normalColor);
highlight = createEmptyMovieClip("tran_mc", LOWEST_DEPTH + 10);
_local2.owner = this;
_local2.grandOwner = owner;
_local2.onPress = bGOnPress;
_local2.onRelease = bGOnRelease;
_local2.onRollOver = bGOnRollOver;
_local2.onRollOut = bGOnRollOut;
_local2.onDragOver = bGOnDragOver;
_local2.onDragOut = bGOnDragOut;
_local2.useHandCursor = false;
_local2.trackAsMenu = true;
_local2.drawRect = drawRect;
highlight.drawRect = drawRect;
}
function drawRowFill(mc, newClr) {
mc.clear();
mc.beginFill(newClr);
mc.drawRect(1, 0, __width, __height);
mc.endFill();
mc._width = __width;
mc._height = __height;
}
function setState(newState, transition) {
var _local2 = highlight;
var _local8 = backGround;
var _local4 = __height;
var _local3 = owner;
if (!_local3.enabled) {
if ((newState == "selected") || (state == "selected")) {
highlightColor = _local3.getStyle("selectionDisabledColor");
drawRowFill(_local2, highlightColor);
_local2._visible = true;
_local2._y = 0;
_local2._height = _local4;
} else {
_local2._visible = false;
normalColor = _local3.getStyle("backgroundDisabledColor");
drawRowFill(_local8, normalColor);
}
cell.__enabled = false;
cell.setColor(_local3.getStyle("disabledColor"));
} else {
cell.__enabled = true;
if (transition && ((newState == state) || ((newState == "highlighted") && (state == "selected")))) {
isChangedToSelected = true;
return(undefined);
}
var _local6 = _local3.getStyle("selectionDuration");
var _local7 = 0;
if (isChangedToSelected && (newState == "selected")) {
transition = false;
}
var _local10 = transition && (_local6 != 0);
if (newState == "normal") {
_local7 = _local3.getStyle("color");
normalColor = getNormalColor();
drawRowFill(_local8, normalColor);
if (_local10) {
_local6 = _local6 / 2;
_local2._height = _local4;
_local2._width = __width;
_local2._y = 0;
bGTween = new mx.effects.Tween(this, _local4 + 2, _local4 * 0.2, _local6, 5);
} else {
_local2._visible = false;
}
delete isChangedToSelected;
} else {
highlightColor = _local3.getStyle(((newState == "highlighted") ? "rollOverColor" : "selectionColor"));
drawRowFill(_local2, highlightColor);
_local2._visible = true;
_local7 = _local3.getStyle(((newState == "highlighted") ? "textRollOverColor" : "textSelectedColor"));
if (_local10) {
_local2._height = _local4 * 0.5;
_local2._y = (_local4 - _local2._height) / 2;
bGTween = new mx.effects.Tween(this, _local2._height, _local4 + 2, _local6, 5);
var _local9 = _local3.getStyle("selectionEasing");
if (_local9 != undefined) {
bGTween.easingEquation = _local9;
}
} else {
_local2._y = 0;
_local2._height = _local4;
}
}
cell.setColor(_local7);
}
state = newState;
}
function onTweenUpdate(val) {
highlight._height = val;
highlight._y = (__height - val) / 2;
}
function onTweenEnd(val) {
onTweenUpdate(val);
highlight._visible = state != "normal";
}
function getNormalColor(Void) {
var _local3;
var _local2 = owner;
if (!owner.enabled) {
_local3 = _local2.getStyle("backgroundDisabledColor");
} else {
var _local5 = rowIndex + _local2.__vPosition;
if (rowIndex == undefined) {
_local3 = _local2.getPropertiesOf(item).backgroundColor;
} else {
_local3 = _local2.getPropertiesAt(_local5).backgroundColor;
}
if (_local3 == undefined) {
var _local4 = _local2.getStyle("alternatingRowColors");
if (_local4 == undefined) {
_local3 = _local2.getStyle("backgroundColor");
} else {
_local3 = _local4[_local5 % _local4.length];
}
}
}
return(_local3);
}
function invalidateStyle(propName) {
cell.invalidateStyle(propName);
super.invalidateStyle(propName);
}
function bGOnPress(Void) {
grandOwner.pressFocus();
grandOwner.onRowPress(owner.rowIndex);
}
function bGOnRelease(Void) {
grandOwner.releaseFocus();
grandOwner.onRowRelease(owner.rowIndex);
}
function bGOnRollOver(Void) {
grandOwner.onRowRollOver(owner.rowIndex);
}
function bGOnRollOut(Void) {
grandOwner.onRowRollOut(owner.rowIndex);
}
function bGOnDragOver(Void) {
grandOwner.onRowDragOver(owner.rowIndex);
}
function bGOnDragOut(Void) {
grandOwner.onRowDragOut(owner.rowIndex);
}
static var LOWEST_DEPTH = -16384;
var state = "normal";
var disabledColor = 15263976;
var normalColor = 16777215;
}
Symbol 691 MovieClip [__Packages.mx.controls.HScrollBar] Frame 0
class mx.controls.HScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var _minHeight, _minWidth, _xscale, _rotation, __width, scrollIt;
function HScrollBar () {
super();
}
function getMinWidth(Void) {
return(_minHeight);
}
function getMinHeight(Void) {
return(_minWidth);
}
function init(Void) {
super.init();
_xscale = -100;
_rotation = -90;
}
function get virtualHeight() {
return(__width);
}
function isScrollBarKey(k) {
if (k == 37) {
scrollIt("Line", -1);
return(true);
}
if (k == 39) {
scrollIt("Line", 1);
return(true);
}
return(super.isScrollBarKey(k));
}
static var symbolName = "HScrollBar";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.1.78";
var className = "HScrollBar";
var minusMode = "Left";
var plusMode = "Right";
var minMode = "AtLeft";
var maxMode = "AtRight";
}
Symbol 692 MovieClip [__Packages.mx.controls.Button] Frame 0
class mx.controls.Button extends mx.controls.SimpleButton
{
var initializing, labelPath, initIcon, getState, enabled, phase, idNames, __width, __height, setState, invalidate, iconName, refresh, createLabel, _iconLinkageName, removeIcons, hitArea_mc, createEmptyObject;
function Button () {
super();
}
function init(Void) {
super.init();
}
function draw() {
if (initializing) {
labelPath.visible = true;
}
super.draw();
if (initIcon != undefined) {
_setIcon(initIcon);
}
delete initIcon;
}
function onRelease(Void) {
super.onRelease();
}
function createChildren(Void) {
super.createChildren();
}
function setSkin(tag, linkageName, initobj) {
return(super.setSkin(tag, linkageName, initobj));
}
function viewSkin(varName) {
var _local3 = (getState() ? "true" : "false");
_local3 = _local3 + (enabled ? (phase) : "disabled");
super.viewSkin(varName, {styleName:this, borderStyle:_local3});
}
function invalidateStyle(c) {
labelPath.invalidateStyle(c);
super.invalidateStyle(c);
}
function setColor(c) {
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]].redraw(true);
_local2++;
}
}
function setEnabled(enable) {
labelPath.enabled = enable;
super.setEnabled(enable);
}
function calcSize(tag, ref) {
if ((__width == undefined) || (__height == undefined)) {
return(undefined);
}
if (tag < 7) {
ref.setSize(__width, __height, true);
}
}
function size(Void) {
setState(getState());
setHitArea(__width, __height);
var _local3 = 0;
while (_local3 < 8) {
var _local4 = idNames[_local3];
if (typeof(this[_local4]) == "movieclip") {
this[_local4].setSize(__width, __height, true);
}
_local3++;
}
super.size();
}
function set labelPlacement(val) {
__labelPlacement = val;
invalidate();
//return(labelPlacement);
}
function get labelPlacement() {
return(__labelPlacement);
}
function getLabelPlacement(Void) {
return(__labelPlacement);
}
function setLabelPlacement(val) {
__labelPlacement = val;
invalidate();
}
function getBtnOffset(Void) {
if (getState()) {
var _local2 = btnOffset;
} else if (phase == "down") {
var _local2 = btnOffset;
} else {
var _local2 = 0;
}
return(_local2);
}
function setView(offset) {
var _local16 = (offset ? (btnOffset) : 0);
var _local12 = getLabelPlacement();
var _local7 = 0;
var _local6 = 0;
var _local9 = 0;
var _local8 = 0;
var _local5 = 0;
var _local4 = 0;
var _local3 = labelPath;
var _local2 = iconName;
var _local15 = _local3.textWidth;
var _local14 = _local3.textHeight;
var _local10 = (__width - borderW) - borderW;
var _local11 = (__height - borderW) - borderW;
if (_local2 != undefined) {
_local7 = _local2._width;
_local6 = _local2._height;
}
if ((_local12 == "left") || (_local12 == "right")) {
if (_local3 != undefined) {
_local9 = Math.min(_local10 - _local7, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11, _local14 + 5);
_local3._height = _local8;
}
if (_local12 == "right") {
_local5 = _local7;
if (centerContent) {
_local5 = _local5 + (((_local10 - _local9) - _local7) / 2);
}
_local2._x = _local5 - _local7;
} else {
_local5 = (_local10 - _local9) - _local7;
if (centerContent) {
_local5 = _local5 / 2;
}
_local2._x = _local5 + _local9;
}
_local4 = 0;
_local2._y = _local4;
if (centerContent) {
_local2._y = (_local11 - _local6) / 2;
_local4 = (_local11 - _local8) / 2;
}
if (!centerContent) {
_local2._y = _local2._y + Math.max(0, (_local8 - _local6) / 2);
}
} else {
if (_local3 != undefined) {
_local9 = Math.min(_local10, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11 - _local6, _local14 + 5);
_local3._height = _local8;
}
_local5 = (_local10 - _local9) / 2;
_local2._x = (_local10 - _local7) / 2;
if (_local12 == "top") {
_local4 = (_local11 - _local8) - _local6;
if (centerContent) {
_local4 = _local4 / 2;
}
_local2._y = _local4 + _local8;
} else {
_local4 = _local6;
if (centerContent) {
_local4 = _local4 + (((_local11 - _local8) - _local6) / 2);
}
_local2._y = _local4 - _local6;
}
}
var _local13 = borderW + _local16;
_local3._x = _local5 + _local13;
_local3._y = _local4 + _local13;
_local2._x = _local2._x + _local13;
_local2._y = _local2._y + _local13;
}
function set label(lbl) {
setLabel(lbl);
//return(label);
}
function setLabel(label) {
if (label == "") {
labelPath.removeTextField();
refresh();
return(undefined);
}
if (labelPath == undefined) {
var _local2 = createLabel("labelPath", 200, label);
_local2._width = _local2.textWidth + 5;
_local2._height = _local2.textHeight + 5;
if (initializing) {
_local2.visible = false;
}
} else {
delete labelPath.__text;
labelPath.text = label;
refresh();
}
}
function getLabel(Void) {
return(((labelPath.__text != undefined) ? (labelPath.__text) : (labelPath.text)));
}
function get label() {
return(getLabel());
}
function _getIcon(Void) {
return(_iconLinkageName);
}
function get icon() {
if (initializing) {
return(initIcon);
}
return(_iconLinkageName);
}
function _setIcon(linkage) {
if (initializing) {
if (linkage == "") {
return(undefined);
}
initIcon = linkage;
} else {
if (linkage == "") {
removeIcons();
return(undefined);
}
super.changeIcon(0, linkage);
super.changeIcon(1, linkage);
super.changeIcon(3, linkage);
super.changeIcon(4, linkage);
super.changeIcon(5, linkage);
_iconLinkageName = linkage;
refresh();
}
}
function set icon(linkage) {
_setIcon(linkage);
//return(icon);
}
function setHitArea(w, h) {
if (hitArea_mc == undefined) {
createEmptyObject("hitArea_mc", 100);
}
var _local2 = hitArea_mc;
_local2.clear();
_local2.beginFill(16711680);
_local2.drawRect(0, 0, w, h);
_local2.endFill();
_local2.setVisible(false);
}
static var symbolName = "Button";
static var symbolOwner = mx.controls.Button;
var className = "Button";
static var version = "2.0.1.78";
var btnOffset = 0;
var _color = "buttonColor";
var __label = "default value";
var __labelPlacement = "right";
var falseUpSkin = "ButtonSkin";
var falseDownSkin = "ButtonSkin";
var falseOverSkin = "ButtonSkin";
var falseDisabledSkin = "ButtonSkin";
var trueUpSkin = "ButtonSkin";
var trueDownSkin = "ButtonSkin";
var trueOverSkin = "ButtonSkin";
var trueDisabledSkin = "ButtonSkin";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var clipParameters = {labelPlacement:1, icon:1, toggle:1, selected:1, label:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters);
var centerContent = true;
var borderW = 1;
}
Symbol 693 MovieClip [__Packages.mx.skins.halo.ButtonSkin] Frame 0
class mx.skins.halo.ButtonSkin extends mx.skins.RectBorder
{
var __get__width, __get__height, getStyle, _parent, clear, drawRoundRect, __get__x, __get__y;
function ButtonSkin () {
super();
}
function init() {
super.init();
}
function size() {
drawHaloRect(__get__width(), __get__height());
}
function drawHaloRect(w, h) {
var _local6 = getStyle("borderStyle");
var _local4 = getStyle("themeColor");
var _local5 = _parent.emphasized;
clear();
switch (_local6) {
case "falseup" :
if (_local5) {
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 75);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 75);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
} else {
drawRoundRect(0, 0, w, h, 5, 9542041, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, "radial");
drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, "radial");
drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100);
}
break;
case "falsedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "falserollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 50);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "falsedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
break;
case "trueup" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16250871, 100);
break;
case "truedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "truerollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 40);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "truedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.skinRegistry.ButtonSkin = true;
return(true);
}
static var symbolName = "ButtonSkin";
static var symbolOwner = mx.skins.halo.ButtonSkin;
var className = "ButtonSkin";
var backgroundColorName = "buttonColor";
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 694 MovieClip [__Packages.mx.controls.VScrollBar] Frame 0
class mx.controls.VScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var scrollIt;
function VScrollBar () {
super();
}
function init(Void) {
super.init();
}
function isScrollBarKey(k) {
if (k == 38) {
scrollIt("Line", -1);
return(true);
}
if (k == 40) {
scrollIt("Line", 1);
return(true);
}
if (k == 33) {
scrollIt("Page", -1);
return(true);
}
if (k == 34) {
scrollIt("Page", 1);
return(true);
}
return(super.isScrollBarKey(k));
}
static var symbolName = "VScrollBar";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.1.78";
var className = "VScrollBar";
var minusMode = "Up";
var plusMode = "Down";
var minMode = "AtTop";
var maxMode = "AtBottom";
}
Symbol 695 MovieClip [__Packages.mx.data.components.DataSet] Frame 0
class mx.data.components.DataSet extends MovieClip
{
var _loading, _eventDispatcher, super_addBinding, _fldValObj, __schema, __toProperties, _calcFields, _enableEvents, _event, _itemClass, _hasDelta, _deltaPacket, _filterFunc, _visible, _filtered, _srcSchema, _defValues, _name, __logChanges, __readOnly, __itemClassName, _trapProperties, __curItem, _dpIndexByTransId, _iterator, getField, __items, __schemaXML, _invalidSchema, _iterators, _itemIndexById, _dpTransIdCount, _lastTransId, _optDeltaItems, _deltaItems, _propCage, addProperty;
function DataSet () {
super();
_loading = false;
_eventDispatcher = new Object();
mx.events.EventDispatcher.initialize(_eventDispatcher);
super_addBinding = mx.data.binding.ComponentMixins.prototype.addBinding;
_fldValObj = new Object();
_fldValObj.__schema = __schema;
mx.data.binding.ComponentMixins.initComponent(_fldValObj);
mx.data.binding.ComponentMixins.initComponent(this);
__toProperties = new Object();
_calcFields = new Object();
_calcFields.__length__ = 0;
initCollection();
initIterators();
_enableEvents = 0;
_event = null;
_itemClass = null;
_hasDelta = 0;
_deltaPacket = null;
_filterFunc = null;
_visible = false;
_filtered = false;
_srcSchema = null;
_defValues = new Object();
_name = ((_name == undefined) ? "" : (_name));
__logChanges = ((__logChanges == undefined) ? true : (__logChanges));
__readOnly = ((__readOnly == undefined) ? false : (__readOnly));
__itemClassName = ((__itemClassName == undefined) ? "" : (__itemClassName));
_trapProperties = false;
buildSchema();
createProperties();
}
function get currentItem() {
return(__curItem);
}
function get deltaPacket() {
return(_deltaPacket);
}
function set deltaPacket(dp) {
if (dp != null) {
var _local9 = dp.getIterator();
var _local5;
var _local13 = new Array();
var _local12 = _dpIndexByTransId[dp.getTransactionId()];
if (_local12 != undefined) {
internalClearDeltaPacket(dp.getTransactionId());
while (_local9.hasNext()) {
_local5 = mx.data.components.datasetclasses.Delta(_local9.next());
if (_local12.items[_local5.getId()] == null) {
throw new mx.data.components.datasetclasses.DataSetError(((((("Couldn't resolve item with ID [" + _local5.getId()) + "] specified in deltaPacket [") + dp.getTransactionId()) + "]. Error for DataSet '") + _name) + "'.");
}
applyResolvePacket(_local5, _local13, _local12.items);
}
if (_local13.length > 0) {
internalDispatchEvent("resolveDelta", {data:_local13});
}
} else {
var _local3;
var _local15 = __logChanges;
__logChanges = dp.logChanges() && (__logChanges);
_enableEvents--;
var _local14 = dp.getKeyInfo();
addSort(dp.getTransactionId(), _local14.keyList, _local14.options);
try {
while (_local9.hasNext()) {
_local5 = mx.data.components.datasetclasses.Delta(_local9.next());
switch (_local5.getOperation()) {
case mx.data.components.datasetclasses.DeltaPacketConsts.Modified :
_local3 = _iterator.find(_local5.getSource());
if (_local3 != null) {
var _local11 = __curItem;
try {
__curItem = _local3;
var _local4;
var _local8 = _local5.getChangeList();
var _local6 = 0;
while (_local6 < _local8.length) {
_local4 = _local8[_local6];
if (_local4.kind == mx.data.components.datasetclasses.DeltaItem.Property) {
var _local7 = __toProperties[_local4.name].type;
getField(_local4.name).setTypedValue(new mx.data.binding.TypedValue(_local4.newValue, _local7.name, _local7));
} else {
this[_local4.name].apply(_local3, _local4.argList);
}
_local6++;
}
} finally {
__curItem = _local11;
}
}
break;
case mx.data.components.datasetclasses.DeltaPacketConsts.Added :
_local3 = convertToRaw(_local5.getSource(true));
_local3 = createItem(_local3);
addItem(_local3);
break;
case mx.data.components.datasetclasses.DeltaPacketConsts.Removed :
_local3 = convertToRaw(_local5.getSource());
_local3 = _iterator.find(_local3);
if (_local3 == null) {
break;
}
removeItem(_local3);
}
if (_local3 == null) {
_global.__dataLogger.logData(null, "Couldn't find the following item:", _local5.getSource());
}
}
} finally {
removeSort(dp.getTransactionId());
_enableEvents++;
__logChanges = _local15;
}
}
}
//return(deltaPacket);
}
function get dataProvider() {
return(new mx.data.components.datasetclasses.DataSetDataProvider(this));
}
function set dataProvider(dp) {
if (dp != null) {
_loading = true;
var _local6 = __logChanges;
try {
__logChanges = false;
initCollection();
if ((dp.length > 0) && (hasInvalidSchema())) {
defaultSchema(dp.getItemAt(0), true);
}
var _local5 = ((_itemClass != null) || (__itemClassName.length > 0)) || (_eventDispatcher.__q_newItem != undefined);
var _local3;
var _local2 = 0;
while (_local2 < dp.length) {
_local3 = dp.getItemAt(_local2);
_local3 = (_local5 ? (createItem(_local3)) : (_local3));
internalAddItem(_local3, _local2, false, true);
_local2++;
}
rebuildItemIndexById();
initIterators();
internalDispatchEvent("afterLoaded");
internalDispatchEvent("modelChanged", {eventName:"updateAll", firstItem:0, lastItem:length});
} finally {
__logChanges = _local6;
_loading = false;
}
}
//return(dataProvider);
}
function get filtered() {
return(_filtered);
}
function set filtered(value) {
if (_filtered != value) {
if (_iterator.setFiltered(value) != 0) {
__curItem = internalFirst();
internalDispatchEvent("modelChanged", {eventName:"filterModel"});
}
_filtered = value;
}
//return(filtered);
}
function get filterFunc() {
return(_filterFunc);
}
function set filterFunc(value) {
if (_filterFunc != value) {
if (_iterator.setFilterFunc(value) != 0) {
__curItem = internalFirst();
internalDispatchEvent("modelChanged", {eventName:"filterModel"});
}
_filterFunc = value;
}
//return(filterFunc);
}
function get items() {
return(__items);
}
function set items(itms) {
var _local6 = __logChanges;
_loading = true;
try {
__logChanges = false;
initCollection();
if ((itms.length > 0) && (hasInvalidSchema())) {
defaultSchema(itms[0]);
}
var _local5 = ((_itemClass != null) || (__itemClassName.length > 0)) || (_eventDispatcher.__q_newItem != undefined);
var _local3;
var _local2 = 0;
while (_local2 < itms.length) {
_local3 = itms[_local2];
_local3 = (_local5 ? (createItem(_local3)) : (_local3));
internalAddItem(_local3, _local2, false, false);
_local2++;
}
rebuildItemIndexById();
initIterators();
internalDispatchEvent("afterLoaded");
internalDispatchEvent("modelChanged", {eventName:"updateAll", firstItem:0, lastItem:length});
} finally {
__logChanges = _local6;
_loading = false;
}
//return(items);
}
function get itemClassName() {
return(__itemClassName);
}
function set itemClassName(value) {
if ((__itemClassName != value) && (__items.length > 0)) {
throw new mx.data.components.datasetclasses.DataSetError(("ItemClass can not be changed when there are already items in the collection. Error for DataSet '" + _name) + "'.");
}
__itemClassName = value;
_itemClass = null;
//return(itemClassName);
}
function get length() {
return(getLength());
}
function get logChanges() {
return(__logChanges);
}
function set logChanges(value) {
__logChanges = value;
//return(logChanges);
}
function get properties() {
return(__toProperties);
}
function get readOnly() {
return(__readOnly);
}
function set readOnly(value) {
__readOnly = value;
//return(readOnly);
}
function get schema() {
return(__schemaXML);
}
function set schema(sch) {
if (sch.firstChild.nodeName != "properties") {
throw new mx.data.components.datasetclasses.DataSetError("First node of schema XML must be 'properties'");
}
__schema = new Object();
__schema.elements = new Array();
var _local3 = sch.firstChild.childNodes;
var _local2;
var _local6;
for (var _local4 in _local3) {
_local2 = _local3[_local4];
if (_local2.nodeName == "property") {
__schema.elements.push(getSchemaObject(_local2));
}
}
__schemaXML = sch;
_invalidSchema = false;
createProperties();
//return(schema);
}
function get selectedIndex() {
return(_iterator.getItemIndex(__curItem));
}
function set selectedIndex(index) {
var _local2 = _iterator.getItemAt(index);
if (_local2 != null) {
__curItem = _local2;
_iterator.find(_local2);
internalDispatchEvent("iteratorScrolled");
}
//return(selectedIndex);
}
function addBinding(aBinding) {
var _local2 = null;
if (aBinding.source.component == this) {
_local2 = aBinding.source;
if (_local2.property == "dataProvider") {
Object(aBinding).queueForExecute();
_local2.event = "NoEvent";
_local2 = null;
}
}
if (aBinding.dest.component == this) {
_local2 = aBinding.dest;
}
if (_local2 != null) {
var _local4 = _local2.property;
if ((_local4 != "deltaPacket") && (_local4 != "items")) {
_local2.event = new Array("iteratorScrolled", "modelChanged");
}
}
super_addBinding(aBinding);
}
function addEventListener(name, handler) {
_eventDispatcher.addEventListener(name, handler);
}
function addSort(name, propList, options) {
if (hasSort(name)) {
throw new mx.data.components.datasetclasses.DataSetError(((("Sort '" + name) + "' specified is already added. Error for dataset '") + _name) + "'.");
}
var _local4 = null;
var _local2 = 0;
while (_local2 < propList.length) {
_local4 = __toProperties[propList[_local2]];
if (_local4 == null) {
throw new mx.data.components.datasetclasses.DataSetError(((("Property '" + propList[_local2]) + "' not found in schema for DataSet '") + _name) + "' can't build index.");
}
addSortInfo(getField(_local4.name), name, _local2);
_local2++;
}
var _local6 = new mx.data.components.datasetclasses.DataSetIterator(name, this, _iterators[DefaultIterator]);
_local6.setFilterFunc(_filterFunc);
_local6.setFiltered(_filtered);
_local6.sortOn(propList, options);
_iterators[name] = _local6;
_iterator = _local6;
__curItem = _iterator.next();
internalDispatchEvent("modelChanged", {eventName:"sort"});
}
function addItem(transferObj) {
if ((arguments.length > 0) && (transferObj == null)) {
return(false);
}
return(addItemAt(length, transferObj));
}
function addItemAt(index, transferObj) {
checkReadOnly();
var _local5 = true;
if (transferObj == undefined) {
transferObj = createItem(null);
} else {
var _local7 = transferObj[ItemId];
_local5 = (_local7 == undefined) || (_itemIndexById[_local7] == undefined);
}
if (_local5) {
if (hasInvalidSchema()) {
defaultSchema(transferObj);
}
var _local4 = internalDispatchEvent("addItem", {item:transferObj, result:true});
_local5 = (_local4 == null) || (_local4.result);
if (_local5 && (index <= length)) {
var _local7 = internalAddItem(transferObj, index, true, false);
if (__logChanges) {
logAddItem(transferObj, false);
}
_local4 = {eventName:"addItems", firstItem:index, lastItem:index};
resyncIterators(_local4);
var _local6 = _iterator.find({__ID__:_local7});
if (_local6 != null) {
__curItem = _local6;
}
internalDispatchEvent("modelChanged", _local4);
if ((_enableEvents < 0) && (_event != null)) {
_event.data.lastItem = index;
}
}
}
return(_local5);
}
function applyUpdates() {
if (_hasDelta > 0) {
var _local2 = getDPTransId();
var _local4 = 0;
if (_dpTransIdCount == 0) {
_lastTransId = _local2;
} else {
_local4 = _dpIndexByTransId[_lastTransId].index;
}
_dpIndexByTransId[_local2] = {index:_deltaItems.length, prevId:_lastTransId, items:_optDeltaItems};
_dpTransIdCount++;
_deltaPacket = new mx.data.components.datasetclasses.DeltaPacketImpl(this, _local2, getKeyInfo(), false, _srcSchema);
for (var _local3 in _optDeltaItems) {
_deltaPacket.addItem(_optDeltaItems[_local3]);
}
_lastTransId = _local2;
_optDeltaItems = new Array();
_hasDelta = 0;
internalDispatchEvent("deltaPacketChanged");
} else {
_deltaPacket = null;
}
}
function clear() {
var _local4 = new Array();
var _local5 = new Array();
var _local2;
var _local6;
var _local8 = _iterator.getLength();
var _local3 = 0;
while (_local3 < __items.length) {
_local2 = __items[_local3];
_local6 = _local2[ItemId];
if (_iterator.contains(_local2)) {
if (__logChanges) {
logRemoveItem(_local2, false);
}
_local5.push(_local2[ItemId]);
} else {
_local4.push(_local2);
}
_local3++;
}
__items = _local4;
rebuildItemIndexById();
var _local7 = {eventName:"removeItems", firstItem:0, lastItem:_local8, removedIDs:_local5};
resyncIterators(_local7);
__curItem = getCurrentItem();
delete _local7[items];
internalDispatchEvent("modelChanged", _local7);
}
function createItem(itemData) {
checkSchema();
var _local5 = null;
if (_itemClass == null) {
if (__itemClassName.length > 0) {
_itemClass = mx.utils.ClassFinder.findClass(__itemClassName);
if (_itemClass == null) {
throw new mx.data.components.datasetclasses.DataSetError(((("Item class '" + __itemClassName) + "' specified not found. Error for DataSet '") + _name) + "'.");
}
} else {
_itemClass = Function(Object);
}
}
if (itemData == null) {
_propCage = new Object();
_trapProperties = true;
try {
var _local2;
for (var _local3 in __toProperties) {
_local2 = _defValues[_local3];
if (_local2 != null) {
getField(_local3).setTypedValue(new mx.data.binding.TypedValue(_local2, "String"));
}
}
itemData = _propCage;
} finally {
_trapProperties = false;
}
}
if (_itemClass == Object) {
_local5 = itemData;
} else {
_local5 = new this._itemClass();
}
_local5.setPropertyData(itemData);
internalDispatchEvent("newItem", {item:_local5});
return(_local5);
}
function disableEvents() {
_enableEvents--;
}
function dispatchEvent(eventObj) {
internalDispatchEvent(eventObj.type, eventObj);
}
function enableEvents() {
if (_enableEvents < 0) {
_enableEvents++;
}
if (_enableEvents == 0) {
internalDispatchEvent(_event.type, _event.data);
_event = null;
}
}
function find(values) {
var _local2 = _iterator.find(convertToRaw(values));
if (_local2 != null) {
__curItem = _local2;
internalDispatchEvent("iteratorScrolled");
}
return(_local2 != null);
}
function findFirst(values) {
var _local2 = _iterator.findFirst(convertToRaw(values));
if (_local2 != null) {
__curItem = _local2;
internalDispatchEvent("iteratorScrolled");
}
return(_local2 != null);
}
function findLast(values) {
var _local2 = _iterator.findLast(convertToRaw(values));
if (_local2 != null) {
__curItem = _local2;
internalDispatchEvent("iteratorScrolled");
}
return(_local2 != null);
}
function first() {
var _local2 = internalFirst();
if (__curItem != _local2) {
__curItem = _local2;
internalDispatchEvent("iteratorScrolled");
}
}
function getItemId(index) {
var _local2 = "";
if (getLength() > 0) {
_local2 = ((index == undefined) ? (__curItem[ItemId]) : (_iterator.getItemId(index)));
}
return(_local2);
}
function getIterator() {
var _local3 = internalGetId();
var _local2 = new mx.data.components.datasetclasses.DataSetIterator(_local3, this, mx.data.components.datasetclasses.DataSetIterator(_iterator));
_local2.first();
_iterators[_local3] = _local2;
return(_local2);
}
function getLength() {
return(_iterator.getLength());
}
function hasNext() {
return((_iterator.getLength() > 0) && (_iterator.hasNext() || (_iterator.getCurrentItem() != null)));
}
function hasPrevious() {
return((_iterator.getLength() > 0) && (_iterator.hasPrevious() || (_iterator.getCurrentItem() != null)));
}
function hasSort(name) {
return(_iterators[name] != undefined);
}
function isEmpty() {
return(length == 0);
}
function clearDelta(id) {
return(removeDelta(_optDeltaItems[id]));
}
function changesPending() {
return(_hasDelta > 0);
}
function locateById(id) {
var _local2 = _iterator.find({__ID__:id});
if (_local2 != null) {
__curItem = _local2;
internalDispatchEvent("iteratorScrolled");
}
return(_local2 != null);
}
function last() {
_iterator.last();
var _local2 = _iterator.previous();
_iterator.next();
if (__curItem != _local2) {
__curItem = _local2;
internalDispatchEvent("iteratorScrolled");
}
}
function loadFromSharedObj(objName, localPath) {
var _local7 = SharedObject.getLocal(objName, localPath);
if (_local7.data.items != undefined) {
items = (_local7.data.items);
var _local4 = _local7.data.optDelta;
_optDeltaItems = new Array();
var _local2;
for (var _local8 in _local4) {
_local2 = _local4[_local8];
_optDeltaItems[_local2._id] = createDelta(_local2);
}
_local4 = _local7.data.delta;
_deltaItems = new Array();
var _local8 = 0;
while (_local8 < _local4.length) {
_local2 = _local4[_local8];
if (_optDeltaItems[_local2._id] == undefined) {
d = createDelta(_local2);
} else {
d = _optDeltaItems[_local2._id];
}
_deltaItems.push(d);
_local8++;
}
var _local5 = _local7.data.dpIndex;
var _local3;
for (_local8 in _local5) {
_local3 = _local5[_local8].items;
for (var _local6 in _local3) {
_local3[_local6] = findDelta(_local6);
}
}
_dpIndexByTransId = _local5;
_lastTransId = _local7.data.lastTransId;
_dpTransIdCount = _local7.data.transIdCount;
_hasDelta = _local7.data.hasDelta;
}
}
function next() {
var _local2 = _iterator.next();
if (_local2 != null) {
if (_local2 == __curItem) {
_local2 = _iterator.next();
}
if (_local2 != null) {
__curItem = _local2;
internalDispatchEvent("iteratorScrolled");
}
}
}
function previous() {
var _local2 = _iterator.previous();
if (_local2 != null) {
if (_local2 == __curItem) {
_local2 = _iterator.previous();
}
if (_local2 != null) {
__curItem = _local2;
internalDispatchEvent("iteratorScrolled");
}
}
}
function propertyModified(propName, subProp, typeInfo) {
if ((propName == "dataProvider") || (propName == "items")) {
_srcSchema = typeInfo;
}
}
function removeAll() {
var _local3 = __items.length;
var _local2 = 0;
while (_local2 < _local3) {
if (__logChanges) {
logRemoveItem(__items[_local2], false);
}
_local2++;
}
__items = new Array();
_itemIndexById = new Array();
var _local4 = {eventName:"removeItems", firstItem:0, lastItem:_local3};
resyncIterators(_local4);
internalDispatchEvent("modelChanged", _local4);
}
function removeEventListener(name, handler) {
_eventDispatcher.removeEventListener(name, handler);
}
function removeItem(item) {
if ((arguments.length > 0) && (item == null)) {
return(false);
}
if (item == null) {
item = __curItem;
}
var _local4 = _itemIndexById[item[ItemId]];
if (_local4 != undefined) {
return(internalRemoveItem(item));
}
return(false);
}
function removeItemAt(index) {
return(internalRemoveItem(_iterator.getItemAt(index)));
}
function removeRange() {
_iterator.removeRange();
__curItem = internalFirst();
internalDispatchEvent("modelChanged", {eventName:"filterModel"});
}
function removeSort(name) {
if (_iterators[name] != undefined) {
if (name != DefaultIterator) {
if (_iterator.getId() == name) {
setIterator(_iterators[DefaultIterator]);
}
var _local3 = _iterators[name].getSortInfo();
var _local2 = 0;
while (_local2 < _local3.keyList.length) {
removeSortInfo(getField(_local3.keyList[_local2]), name);
_local2++;
}
delete _iterators[name];
} else {
throw new mx.data.components.datasetclasses.DataSetError(("The default index can not be removed. Error on DataSet '" + _name) + "'.");
}
} else {
throw new mx.data.components.datasetclasses.DataSetError(((("Sort '" + name) + "' specified does not exist. Error on DataSet '") + _name) + "'.");
}
}
function skip(offset) {
var _local2 = _iterator.skip(offset);
if (_local2 == null) {
if (offset > 0) {
_local2 = _iterator.previous();
} else {
_local2 = _iterator.next();
}
}
if (__curItem != _local2) {
__curItem = _local2;
internalDispatchEvent("iteratorScrolled");
}
return(this);
}
function saveToSharedObj(objName, localPath) {
var _local2 = SharedObject.getLocal(objName, localPath);
if (_local2 == null) {
throw new mx.data.components.datasetclasses.DataSetError(("Couldn't access specified shared object. Error for DataSet '" + _name) + "'.");
}
_local2.data.items = __items;
_local2.data.optDelta = _optDeltaItems;
_local2.data.delta = _deltaItems;
_local2.data.dpIndex = _dpIndexByTransId;
_local2.data.lastTransId = _lastTransId;
_local2.data.transIdCount = _dpTransIdCount;
_local2.data.hasDelta = _hasDelta;
if (_local2.flush() == false) {
throw new mx.data.components.datasetclasses.DataSetError(("Couldn't save shared object not sufficient space or rights. Error for DataSet '" + _name) + "'.");
}
}
function setIterator(newIterator) {
if (_iterators[newIterator.getId()] == undefined) {
throw new mx.data.components.datasetclasses.DataSetError(((("Can't assign foreign iterator '" + newIterator.getId()) + "' to DataSet '") + _name) + "'.");
}
_iterator = newIterator;
__curItem = getCurrentItem();
internalDispatchEvent("modelChanged", {eventName:"filterModel"});
}
function setRange(startValues, endValues) {
_iterator.setRange(convertToRaw(startValues), convertToRaw(endValues));
__curItem = internalFirst();
internalDispatchEvent("modelChanged", {eventName:"filterModel"});
}
function useSort(sortName, options) {
if (!hasSort(sortName)) {
throw new mx.data.components.datasetclasses.DataSetError(((("Sort specified '" + sortName) + "' does'nt exist for DataSet '") + _name) + "'.");
}
var _local2 = _iterators[sortName];
if (options != undefined) {
_local2.setSortOptions(options);
}
_local2.setFiltered(_filtered);
_local2.setFilterFunc(_filterFunc);
_iterator = _local2;
first();
internalDispatchEvent("modelChanged", {eventName:"sort"});
}
function addProxy() {
var _local2;
for (var _local3 in __toProperties) {
_local2 = String(_local3);
addProperty(_local2, this["get_" + _local2], this["set_" + _local2]);
}
}
function addSortInfo(fld, name, index) {
if (fld.sortInfo == null) {
fld.sortInfo = new Array();
}
fld.sortInfo[name] = index;
}
function applyResolvePacket(d, resPckt, dpItems) {
var _local9 = resPckt.length;
if (d.getMessage().length > 0) {
resPckt.push(Object(d));
} else {
var _local3 = d.getChangeList();
var _local4 = true;
var _local2 = 0;
while ((_local2 < _local3.length) && (_local4)) {
_local4 = _local3[_local2].message.length == 0;
_local2++;
}
if (_local2 < _local3.length) {
resPckt.push(Object(d));
}
}
var _local6 = _local9 != resPckt.length;
switch (d.getOperation()) {
case mx.data.components.datasetclasses.DeltaPacketConsts.Added :
if (_local6) {
logAddItem(d.getSource(), true, d.getId());
} else {
updateItem(d);
}
break;
case mx.data.components.datasetclasses.DeltaPacketConsts.Removed :
if (_local6) {
logRemoveItem(d.getSource(), true, d.getId());
}
break;
case mx.data.components.datasetclasses.DeltaPacketConsts.Modified :
if (!_local6) {
updateItem(d);
} else {
var _local7 = dpItems[d.getId()];
_optDeltaItems[d.getId()] = _local7;
_deltaItems.push(Object(_local7));
_hasDelta++;
}
}
}
function buildSchema() {
if (hasInvalidSchema()) {
__schemaXML = new XML("<properties/>");
} else {
var _local4 = __schema.elements;
var _local2;
var _local6 = "<properties>";
var _local3 = 0;
while (_local3 < _local4.length) {
_local2 = _local4[_local3];
if (isValidElement(_local2)) {
if ((_local2.type.name == "Date") && (_local2.type.encoder == undefined)) {
_local2.type.encoder = {className:"mx.data.encoders.DateToNumber"};
}
_local6 = _local6 + (((("<property name=\"" + _local2.name) + "\">") + getSchemaXML("type", _local2.type)) + "</property>");
}
_local3++;
}
_local6 = _local6 + "</properties>";
__schemaXML = new XML(_local6);
}
}
function createDelta(td) {
var _local10;
var _local1;
var _local3;
_local10 = new mx.data.components.datasetclasses.DeltaImpl(td._id, td._source, td._op, td._message, td._accessCl);
var _local2 = 0;
while (_local2 < td._deltaItems.length) {
_local1 = td._deltaItems[_local2];
if (_local1.__kind == mx.data.components.datasetclasses.DeltaItem.Property) {
_local3 = {newValue:_local1.__newValue, oldValue:_local1.__oldValue, curValue:_local1.__curValue, message:_local1.__message};
} else {
_local3 = {argList:_local1.__argList};
}
new mx.data.components.datasetclasses.DeltaItem(_local1.__kind, _local1.__name, _local3, Object(_local10));
_local2++;
}
return(_local10);
}
function checkReadOnly() {
if (__readOnly) {
throw new mx.data.components.datasetclasses.DataSetError(("Can't modify a read only DataSet. Error for '" + Object(this)._name) + "'.");
}
}
function checkSchema() {
if (hasInvalidSchema()) {
throw new mx.data.components.datasetclasses.DataSetError(("Schema has not been specified. Can't construct item. Error for DataSet '" + _name) + "'.");
}
}
function createProperties() {
removeProxy();
_allowReslv = true;
_calcFields.__length__ = 0;
__toProperties = new Object();
var _local2;
var _local3 = 0;
while (_local3 < __schema.elements.length) {
_local2 = __schema.elements[_local3];
if (isValidElement(_local2)) {
__toProperties[_local2.name] = _local2;
if (_local2.type.value != null) {
_defValues[_local2.name] = _local2.type.value;
_local2.type.value = null;
}
if (getField(_local2.name).kind.isCalculated) {
_calcFields[_local2.name] = _local2;
_calcFields.__length__++;
}
}
_local3++;
}
addProxy();
_allowReslv = __items.length > 0;
}
function convertToRaw(values) {
if (values instanceof Array) {
return(convertArrayToRaw(values));
}
return(convertObjectToRaw(values));
}
function convertArrayToRaw(values) {
_trapProperties = true;
_propCage = new Object();
try {
var _local5 = _iterator.getSortInfo();
var _local4;
var _local6;
var _local3;
var _local2 = 0;
while (_local2 < _local5.keyList.length) {
if (_local2 < values.length) {
_local4 = getField(_local5.keyList[_local2]);
_local6 = __toProperties[_local5.keyList[_local2]].type;
_local3 = values[_local2];
switch (typeof(_local3)) {
case "string" :
_local4.setAsString(_local3);
break;
case "boolean" :
_local4.setAsBoolean(_local3);
break;
case "number" :
_local4.setAsNumber(_local3);
break;
case "object" :
_local4.setTypedValue(new mx.data.binding.TypedValue(_local3, _local6.name, _local6));
}
}
_local2++;
}
} finally {
_trapProperties = false;
}
return(_propCage);
}
function convertObjectToRaw(values) {
_trapProperties = true;
_propCage = new Object();
try {
var _local6 = _iterator.getSortInfo();
var _local4;
var _local7;
var _local2;
var _local3 = 0;
while (_local3 < _local6.keyList.length) {
_local2 = _local6.keyList[_local3];
_local4 = getField(_local2);
_local7 = __toProperties[_local6.keyList[_local3]].type;
switch (typeof(values[_local2])) {
case "string" :
_local4.setAsString(values[_local2]);
break;
case "boolean" :
_local4.setAsBoolean(values[_local2]);
break;
case "number" :
_local4.setAsNumber(values[_local2]);
break;
case "object" :
_local4.setTypedValue(new mx.data.binding.TypedValue(values[_local2], _local7.name, _local7));
}
_local3++;
}
} finally {
_trapProperties = false;
}
return(_propCage);
}
function decodeItem(item) {
var _local2 = new Object();
var _local4 = __curItem;
__curItem = item;
try {
for (var _local3 in __toProperties) {
_local2[_local3] = getField(_local3).getTypedValue().value;
}
} finally {
__curItem = _local4;
}
return(_local2);
}
function defaultSchema(obj) {
var _local2;
var _local3;
var _local4 = "";
for (var _local6 in obj) {
_local2 = typeof(obj[_local6]);
if (_local2 != "function") {
_local2 = String(_local2.charAt(0)).toUpperCase() + _local2.substring(1, _local2.length);
if (_local2 == "Boolean") {
_local3 = "Bool";
} else {
_local3 = _local2.substring(0, 3);
}
_local4 = (((((("<property name=\"" + _local6) + "\"><type name=\"") + _local2) + "\" original=\"false\"><validation className=\"mx.data.types.") + _local3) + "\"/></type></property>") + _local4;
}
}
schema = (new XML(("<properties>" + _local4) + "</properties>"));
}
function decodeValue(fieldName, value) {
_fldValObj.__schema = __schema;
_fldValObj[fieldName] = value;
return(_fldValObj.getField(fieldName).getTypedValue().value);
}
function encodeValue(fieldName, value) {
var _local2 = __toProperties[fieldName].type;
_fldValObj.__schema = __schema;
_fldValObj.getField(fieldName).setTypedValue(new mx.data.binding.TypedValue(value, _local2.name, _local2));
return(_fldValObj[fieldName]);
}
function findDelta(id) {
var _local2 = 0;
while (_local2 < _deltaItems.length) {
if (_deltaItems[_local2]._id == id) {
return(_deltaItems[_local2]);
}
_local2++;
}
return(null);
}
function internalDispatchEvent(type, params) {
var _local3 = null;
if (_enableEvents >= 0) {
_local3 = {type:type, target:this};
if (params != undefined) {
for (var _local4 in params) {
_local3[_local4] = params[_local4];
}
}
_eventDispatcher.dispatchEvent(_local3);
} else if ((_event != null) && (_event.type == "modelChanged")) {
if (type == "modelChanged") {
if ((_event.data.eventName != "sort") && (_event.data.eventName != "filter")) {
_event.data = params;
}
}
} else {
_event = {data:params, type:type};
}
return(_local3);
}
function getDataProviderItem(item, desiredTypes) {
var _local5 = new Object();
var _local4;
var _local8 = __curItem;
var _local3;
var _local2;
try {
__curItem = item;
for (var _local7 in __toProperties) {
_local3 = desiredTypes[_local7];
if (_local3 == null) {
_local3 = "String";
}
_local4 = getField(_local7);
_local2 = _local4.getTypedValue(_local3);
if (_local2 == null) {
_local2 = _local4.getTypedValue();
}
_local5[_local7] = _local2.value;
}
} finally {
__curItem = _local8;
}
return(_local5);
}
function getEditingData(fieldName, item, desiredTypes) {
var _local4;
var _local5 = __curItem;
var _local2;
try {
__curItem = item;
_local2 = desiredTypes[fieldName];
if (_local2 == null) {
_local2 = "String";
}
var _local3 = getField(fieldName);
val = _local3.getTypedValue(_local2);
if (val == null) {
val = _local3.getTypedValue();
}
_local4 = val.value;
} finally {
__curItem = _local5;
}
return(_local4);
}
function getDisplayValue(propName, index) {
var _local3 = __curItem;
var _local2 = "";
try {
__curItem = __items[index];
_local2 = getField(propName).getAsString();
} finally {
__curItem = _local3;
}
return(_local2);
}
function getCurrentItem() {
var _local2 = _iterator.getCurrentItem();
if (_local2 == null) {
if (_iterator.hasNext()) {
_local2 = _iterator.next();
_iterator.previous();
} else {
_local2 = _iterator.previous();
_iterator.next();
}
}
return(_local2);
}
function getInternalIndex(index) {
var _local2 = _iterator.getItemAt(index);
if (_local2 == null) {
return(-1);
}
return(_itemIndexById[_local2[ItemId]]);
}
function getKeyInfo() {
var _local3;
var _local2;
for (var _local5 in _iterators) {
_local3 = _iterators[_local5];
_local2 = _local3.getSortInfo();
if ((_local5 != DefaultIterator) && ((_local2.options & mx.data.components.datasetclasses.DataSetIterator.Unique) == mx.data.components.datasetclasses.DataSetIterator.Unique)) {
return({options:_local2.options, keyList:_local2.keyList.slice(0)});
}
}
var _local4 = new Array();
for (var _local5 in __toProperties) {
_local4.push(_local5);
}
return({options:mx.data.components.datasetclasses.DataSetIterator.Unique, keyList:_local4});
}
function getModDeltaInfo(id) {
var _local3 = null;
var _local5 = null;
var _local6 = _optDeltaItems[id];
if (_local6 == undefined) {
_local3 = __curItem;
if (_local3.clone == undefined) {
var _local8 = _local3.getPropertyData();
if (_local8 != null) {
_local5 = createItem(_local8);
} else {
_local5 = new Object();
}
} else {
_local5 = _local3.clone();
}
var _local2;
var _local4;
for (var _local7 in _local3) {
_local2 = _local3[_local7];
if (typeof(_local2) != "function") {
_local4 = __toProperties[_local7];
_local5[_local7] = ((_local4 == undefined) ? (_local2) : (getField(_local7).getTypedValue().value));
}
}
_local6 = new mx.data.components.datasetclasses.DeltaImpl(id, _local5, mx.data.components.datasetclasses.DeltaPacketConsts.Modified);
_optDeltaItems[id] = _local6;
_hasDelta++;
_deltaItems.push(_local6);
}
return(_local6);
}
function getPropertyValue(name) {
return(__curItem[name]);
}
function getResolverFieldList() {
var _local2 = new Object();
for (var _local3 in __toProperties) {
if ((_calcFields[_local3] == null) && (__toProperties[_local3].type.path == null)) {
_local2[_local3] = __toProperties[_local3];
}
}
return(_local2);
}
function getDPTransId() {
return((internalGetId() + ":") + new Date().toString());
}
function getSchemaObject(xmlInfo) {
var _local3 = new Object();
var _local5;
for (var _local2 in xmlInfo.attributes) {
_local5 = xmlInfo.attributes[_local2];
if (_local2 == "original") {
_local3[_local2] = ((_local5 == "false") ? false : true);
} else {
_local3[_local2] = _local5;
}
}
var _local4 = xmlInfo.childNodes;
var _local7;
var _local2 = 0;
while (_local2 < _local4.length) {
_local3[_local4[_local2].nodeName] = getSchemaObject(_local4[_local2]);
_local2++;
}
return(_local3);
}
function getSchemaXML(nodeName, info) {
var _local5 = "";
var _local2;
for (var _local6 in info) {
_local2 = info[_local6];
if ((typeof(_local2) != "object") && (_local6 != "cls")) {
_local5 = _local5 + ((((" " + _local6) + "=\"") + _local2) + "\"");
}
}
var _local4 = (("<" + nodeName) + _local5) + ">";
for (var _local6 in info) {
_local2 = info[_local6];
if (typeof(_local2) == "object") {
_local4 = _local4 + getSchemaXML(_local6, _local2);
}
}
_local4 = _local4 + (("</" + nodeName) + ">");
return(_local4);
}
function hasInvalidSchema() {
if (_invalidSchema == undefined) {
_invalidSchema = true;
if (__schema.elements != null) {
var _local2 = __schema.elements;
for (var _local3 in _local2) {
if (_local2[_local3].type.original == false) {
_invalidSchema = false;
return(_invalidSchema);
}
}
}
}
return(_invalidSchema);
}
function initCollection() {
__items = new Array();
_itemIndexById = new Array();
internalClearDeltaPacket();
}
function internalAddItem(item, index, rebuildIndx, pipeData) {
var _local7;
if (item[ItemId] == null) {
_local7 = internalGetId();
item[ItemId] = _local7;
} else {
_local7 = item[ItemId];
}
if (index >= __items.length) {
__items.push(item);
} else {
__items.splice(index, 0, item);
}
_enableEvents--;
var _local8 = _event;
_trapProperties = true;
try {
_propCage = item;
var _local3;
for (var _local6 in __toProperties) {
_local3 = __toProperties[_local6];
if (rebuildIndx && ((item[_local6] == null) && (_calcFields[_local6] == null))) {
getField(_local6).setAsString(__toProperties[_local6].type.value);
} else if ((item[_local6] != null) && (pipeData)) {
getField(_local6).setTypedValue(new mx.data.binding.TypedValue(item[_local6], _local3.type.name, _local3.type));
}
}
} finally {
_enableEvents++;
_event = _local8;
_trapProperties = false;
}
if (_calcFields.__length__ > 0) {
__curItem = item;
_loading = true;
try {
internalDispatchEvent("calcFields");
} finally {
_loading = false;
}
}
_allowReslv = true;
if (rebuildIndx) {
rebuildItemIndexById();
}
return(_local7);
}
function internalClearDeltaPacket(transId) {
if ((transId == undefined) || (transId.length == 0)) {
_optDeltaItems = new Array();
_deltaItems = new Array();
_dpIndexByTransId = new Array();
_lastTransId = "";
_dpTransIdCount = 0;
_hasDelta = 0;
} else {
var _local2 = _dpIndexByTransId[transId];
if (_local2 != undefined) {
var _local6 = _dpIndexByTransId[_local2.prevId].index;
_local6 = ((_local6 == _local2.index) ? 0 : (_local6));
var _local5 = _local2.index - _local6;
_deltaItems.splice(_local6, _local5);
var _local3 = _lastTransId;
while (_local3 != transId) {
_local2 = _dpIndexByTransId[_local3];
_local3 = _local2.prevId;
_local2.index = _local2.index - _local5;
}
delete _dpIndexByTransId[transId];
_dpTransIdCount--;
if (_dpTransIdCount == 0) {
_lastTransId = "";
}
}
}
}
function internalGetId() {
return("IID" + String(Math.round(Math.random() * 100000000000)));
}
function internalFirst() {
_iterator.first();
var _local2 = _iterator.next();
_iterator.previous();
return(_local2);
}
function internalRemoveItem(item) {
checkReadOnly();
var _local2 = _itemIndexById[item[ItemId]];
var _local3 = _local2 != undefined;
var _local4 = internalDispatchEvent("removeItem", {result:true, item:item});
_local3 = (_local4 == null) || (_local4.result);
if (_local3) {
__items.splice(_local2, 1);
rebuildItemIndexById();
if (__logChanges) {
logRemoveItem(item, false);
}
_local4 = {eventName:"removeItems", firstItem:_local2, lastItem:_local2, removedIDs:new Array(item[ItemId])};
resyncIterators(_local4);
_allowReslv = __items.length > 0;
__curItem = getCurrentItem();
internalDispatchEvent("modelChanged", _local4);
if ((_enableEvents < 0) && (_event != null)) {
_event.data.lastItem = _local2;
}
}
return(_local3);
}
function initIterators() {
var _local2 = null;
if (_iterators != undefined) {
_local2 = _iterators[DefaultIterator].getFilterFunc();
}
_iterators = new Array();
_iterator = new mx.data.components.datasetclasses.DataSetIterator(DefaultIterator, this);
_iterator.setFilterFunc(_local2);
_iterators[DefaultIterator] = _iterator;
_iterator.first();
__curItem = _iterator.next();
}
function isValidElement(el) {
return(el.type.original == false);
}
function logAddItem(item, piped, id) {
if (id == undefined) {
id = item[ItemId];
}
var _local2 = new mx.data.components.datasetclasses.DeltaImpl(id, (piped ? (item) : (decodeItem(item))), mx.data.components.datasetclasses.DeltaPacketConsts.Added);
_optDeltaItems[id] = _local2;
_deltaItems.push(Object(_local2));
_hasDelta++;
}
function logRemoveItem(item, piped, id) {
if (id == undefined) {
id = item[ItemId];
}
var _local3 = _optDeltaItems[id];
item = (piped ? (item) : (decodeItem(item)));
var _local6 = ((_local3 == undefined) ? (item) : (_local3.getSource()));
var _local5 = new mx.data.components.datasetclasses.DeltaImpl(id, _local6, mx.data.components.datasetclasses.DeltaPacketConsts.Removed);
_deltaItems.push(Object(_local5));
if ((_local3 != undefined) && (_local3.getOperation() == mx.data.components.datasetclasses.DeltaPacketConsts.Added)) {
delete _optDeltaItems[id];
_hasDelta--;
} else {
delete _optDeltaItems[id];
_optDeltaItems[id] = _local5;
_hasDelta++;
}
}
function rebuildItemIndexById() {
_itemIndexById = new Array();
var _local3;
var _local2 = 0;
while (_local2 < __items.length) {
_local3 = __items[_local2];
_itemIndexById[_local3[ItemId]] = _local2;
_local2++;
}
}
function removeProxy() {
var _local2;
for (var _local3 in __toProperties) {
_local2 = __toProperties[_local3];
delete this[_local2];
delete this["get_" + _local2];
delete this["set_" + _local2];
}
}
function resyncIterators(info) {
for (var _local3 in _iterators) {
_iterators[_local3].modelChanged(info);
}
}
function setPropertyValue(name, value) {
if (_trapProperties) {
_propCage[name] = value;
} else {
if (_calcFields[name] != undefined) {
__curItem[name] = value;
} else {
checkReadOnly();
var _local7 = __curItem[name];
if (_local7 != value) {
if (__logChanges) {
var _local6 = getModDeltaInfo(__curItem[ItemId]);
__curItem[name] = value;
if (_local6.getOperation() == mx.data.components.datasetclasses.DeltaPacketConsts.Modified) {
var _local9 = _local6.getItemByName(name);
if (_local9 != null) {
_local7 = encodeValue(name, _local9.__get__oldValue());
}
if (_local7 != value) {
new mx.data.components.datasetclasses.DeltaItem(mx.data.components.datasetclasses.DeltaItem.Property, name, {oldValue:decodeValue(name, _local7), newValue:decodeValue(name, value), message:""}, Object(_local6));
} else if (_local6.getChangeList().length == 1) {
removeDelta(_local6);
}
} else {
_local6.getSource()[name] = decodeValue(name, value);
}
}
__curItem[name] = value;
}
if (_calcFields.__length__ > 0) {
internalDispatchEvent("calcFields");
}
}
if (!_loading) {
var _local10 = _itemIndexById[__curItem[ItemId]];
var _local4 = {eventName:"updateField", fieldName:name, firstItem:_local10, lastItem:_local10};
var _local2 = false;
for (var _local8 in _iterators) {
_local2 = _iterators[_local8].modelChanged(_local4) || (_local2);
}
if (_local2) {
internalDispatchEvent("modelChanged", {eventName:"sort"});
} else {
internalDispatchEvent("modelChanged", _local4);
}
}
}
}
function removeSortInfo(fld, name) {
if (fld.sortInfo != null) {
delete fld.sortInfo[name];
}
}
function removeDelta(d) {
var _local3 = false;
var _local2 = 0;
while ((!_local3) && (_local2 < _deltaItems.length)) {
_local3 = _deltaItems[_local2] == d;
_local2++;
}
if (_local3) {
_local2--;
_deltaItems.splice(_local2, 1);
delete _optDeltaItems[d.getId()];
_hasDelta--;
}
return(_local3);
}
function __resolve(methodName) {
var _local3 = null;
if (_allowReslv) {
var propName = methodName.substring(4);
if (methodName.substr(0, 4) == "get_") {
_local3 = function () {
return(this.getPropertyValue(propName));
};
} else if (methodName.substr(0, 4) == "set_") {
_local3 = function () {
this.setPropertyValue(propName, arguments[0]);
};
} else {
arguments.shift();
_local3 = function () {
this.__curItem[methodName].apply(this.__curItem, arguments);
var _local3 = this.__curItem[mx.data.components.DataSet.ItemId];
if (this.__logChanges) {
var _local5 = this.getModDeltaInfo(_local3);
new mx.data.components.datasetclasses.DeltaItem(mx.data.components.datasetclasses.DeltaItem.Method, methodName, {argList:arguments, message:""}, Object(_local5));
}
var _local4 = this._itemIndexById[_local3];
this.internalDispatchEvent("modelChanged", {eventName:"updateItems", firstItem:_local4, lastItem:_local4});
};
}
}
return(_local3);
}
function updateItem(d) {
var _local8 = d.getId();
var _local10;
var _local6 = null;
var _local12 = __logChanges;
__logChanges = false;
try {
if (_local8 == null) {
_local10 = d.getSource();
} else {
_local10 = {__ID__:_local8};
}
_local6 = _iterator.find(_local10);
if (_local6 != null) {
var _local9 = _itemIndexById[_local6[ItemId]];
var _local5 = d.getChangeList();
var _local3;
var _local11 = __curItem;
try {
__curItem = _local6;
var _local4 = 0;
while (_local4 < _local5.length) {
_local3 = mx.data.components.datasetclasses.DeltaItem(_local5[_local4]);
getField(_local3.name).setTypedValue(new mx.data.binding.TypedValue(_local3.curValue, __toProperties[_local3.name].type.name, __toProperties[_local3.name].type));
_local4++;
}
} finally {
__curItem = _local11;
}
internalDispatchEvent("modelChanged", {eventName:"updateItems", firstIndex:_local9, lastIndex:_local9});
} else {
_global.__dataLogger.logData(null, "Couldn't find the following item:", d.getSource());
}
} finally {
__logChanges = _local12;
}
}
static var DefaultIterator = "__default__";
static var ItemId = "__ID__";
var _allowReslv = false;
}
Symbol 700 MovieClip [__Packages.mx.data.components.datasetclasses.DeltaPacket] Frame 0
interface mx.data.components.datasetclasses.DeltaPacket extends mx.utils.Collection
{
}
Symbol 701 MovieClip [__Packages.mx.data.components.datasetclasses.DeltaItem] Frame 0
class mx.data.components.datasetclasses.DeltaItem extends Object
{
var __name, __kind, __owner, __oldValue, __newValue, __curValue, __argList, __message;
function DeltaItem (kind, name, init, owner) {
super();
__name = name;
__kind = kind;
__owner = owner;
if (kind == Property) {
__oldValue = init.oldValue;
__newValue = init.newValue;
__curValue = init.curValue;
} else {
__argList = init.argList;
}
__message = ((init.message == undefined) ? "" : (init.message));
__owner.addDeltaItem(this);
}
function get argList() {
return(((__kind == Method) ? (__argList) : null));
}
function get delta() {
return(__owner);
}
function get kind() {
return(__kind);
}
function get message() {
return(__message);
}
function get name() {
return(__name);
}
function get curValue() {
return(__curValue);
}
function get newValue() {
return(((__kind == Property) ? (__newValue) : null));
}
function get oldValue() {
return(((__kind == Property) ? (__oldValue) : null));
}
static var Property = 0;
static var Method = 1;
}
Symbol 702 MovieClip [__Packages.mx.data.components.datasetclasses.Delta] Frame 0
interface mx.data.components.datasetclasses.Delta
{
}
Symbol 703 MovieClip [__Packages.mx.data.components.datasetclasses.DataSetError] Frame 0
class mx.data.components.datasetclasses.DataSetError extends Error
{
var message;
function DataSetError (msg) {
super(msg);
}
function toString() {
return(message);
}
}
Symbol 704 MovieClip [__Packages.mx.data.components.datasetclasses.DeltaPacketConsts] Frame 0
class mx.data.components.datasetclasses.DeltaPacketConsts extends Object
{
function DeltaPacketConsts () {
super();
}
static var Added = 0;
static var Removed = 1;
static var Modified = 2;
}
Symbol 705 MovieClip [__Packages.mx.data.to.ValueListIterator] Frame 0
interface mx.data.to.ValueListIterator extends mx.utils.Iterator
{
}
Symbol 706 MovieClip [__Packages.mx.utils.ErrorStrings] Frame 0
class mx.utils.ErrorStrings
{
function ErrorStrings () {
}
static function getPlayerError(code) {
var _local1 = "";
if (!(code === 0)) {
} else {
_local1 = "Index specified is not unique";
}
return(_local1);
}
}
Symbol 707 MovieClip [__Packages.mx.data.components.datasetclasses.DataSetIterator] Frame 0
class mx.data.components.datasetclasses.DataSetIterator extends Object implements mx.data.to.ValueListIterator
{
var _id, _dataset, __filtered, __filterFunc, _options, _startBuff, _endBuff, _rangeOn, _curItemIndex, _hasPrev, _hasNext, _cloned, _bof, _eof, _index, _indexById, _keyList;
function DataSetIterator (id, aDataSet, source) {
super();
_id = id;
_dataset = aDataSet;
if (source == undefined) {
reset();
} else {
__filtered = source.__filtered;
__filterFunc = source.__filterFunc;
_options = source._options;
_startBuff = source._startBuff;
_endBuff = source._endBuff;
_rangeOn = source._rangeOn;
_curItemIndex = source._curItemIndex;
_hasPrev = source._hasPrev;
_hasNext = source._hasNext;
_cloned = true;
_bof = source._bof;
_eof = source._eof;
_index = source._index;
_indexById = source._indexById;
_keyList = source._keyList;
}
}
function contains(item) {
var _local2 = _indexById[item[ItemId]];
if (_rangeOn) {
return((_local2 != undefined) && ((_local2 <= _eof) && (_local2 >= _bof)));
}
return(_local2 != undefined);
}
function first() {
return(resync(_bof - 1));
}
function find(propValues) {
var _local2 = findObject(propValues, FindIndexId);
if (_local2 < 0) {
return(null);
}
_curItemIndex = _local2;
return(_index[_local2]);
}
function findFirst(propValues) {
var _local2 = findObject(propValues, FindFirstIndexId);
if (_local2 < 0) {
return(null);
}
_curItemIndex = _local2;
return(_index[_local2]);
}
function findLast(propValues) {
var _local2 = findObject(propValues, FindLastIndexId);
if (_local2 < 0) {
return(null);
}
_curItemIndex = _local2;
return(_index[_local2]);
}
function getCurrentItem() {
return(resync(_curItemIndex));
}
function getCurrentItemIndex() {
var _local2 = _curItemIndex;
if (_local2 > _eof) {
_local2 = _eof;
}
if (_local2 < _bof) {
_local2 = _bof;
}
return(_local2);
}
function getFiltered() {
return(__filtered);
}
function getFilterFunc() {
return(__filterFunc);
}
function getId() {
return(_id);
}
function getItemAt(index) {
var _local2 = index + _bof;
if (_local2 <= _eof) {
return(_index[_local2]);
}
return(null);
}
function getItemId(index) {
return(_index[_bof + index][ItemId]);
}
function getItemIndex(item) {
return(_indexById[item[ItemId]] - _bof);
}
function getLength() {
if (isEmpty()) {
return(0);
}
return((_eof - _bof) + 1);
}
function getSortInfo() {
return({options:_options, keyList:_keyList});
}
function hasNext() {
return(_hasNext);
}
function hasPrevious() {
return(_hasPrev);
}
function isEmpty() {
return(_eof < 0);
}
function last() {
return(resync(_eof + 1));
}
function modelChanged(eventObj) {
var _local3 = false;
if ((_options == Default) && (!__filtered)) {
_index = _dataset.__items;
_indexById = _dataset._itemIndexById;
if ((eventObj.eventName == "removeItems") && (_curItemIndex > (_index.length - 1))) {
_curItemIndex--;
}
_local3 = eventObj.eventName != "updateField";
} else if (!_cloned) {
var _local9;
if (eventObj.eventName == "removeItems") {
var _local7;
var _local6 = eventObj.removedIDs;
var _local2 = 0;
while (_local2 < _local6.length) {
_local7 = _local6[_local2];
_index.splice(_indexById[_local7], 1);
_local2++;
}
rebuildIndexById();
_local3 = true;
} else if (eventObj.eventName == "addItems") {
var _local8 = _dataset.__items;
var _local2 = eventObj.firstItem;
while (_local2 <= eventObj.lastItem) {
_local9 = _local8[_local2];
var _local5 = _local2;
if ((!__filtered) || (__filterFunc(_local9))) {
if (_options != Default) {
_local5 = findObject(_local9, FindInsertId);
}
_index.splice(_local5, 0, _local9);
rebuildIndexById();
_local3 = true;
}
_local2++;
}
} else if (eventObj.eventName == "updateField") {
var _local2 = 0;
while ((_local2 < _keyList.length) && (!_local3)) {
_local3 = _keyList[_local2] == eventObj.fieldName;
_local2++;
}
if (_local3) {
_local9 = _dataset.__items[eventObj.firstItem];
_index.splice(_indexById[_local9[ItemId]], 1);
var _local10 = findObject(_local9, FindInsertId);
_index.splice(_local10, 0, _local9);
rebuildIndexById();
}
}
}
if (_local3) {
recalcEndPoints();
}
return(_local3);
}
function setFiltered(value) {
var _local2 = 0;
if (__filtered != value) {
_local2 = internalFilterItems(value);
__filtered = value;
}
return(_local2);
}
function setFilterFunc(value) {
var _local2 = 0;
__filterFunc = value;
if ((__filterFunc == null) && (__filtered)) {
return(internalFilterItems(false));
}
if (__filtered) {
internalFilterItems(false);
_local2 = internalFilterItems(true);
}
return(_local2);
}
function skip(offset) {
return(resync(_curItemIndex + offset));
}
function next() {
return(skip(1));
}
function previous() {
return(skip(-1));
}
function removeRange() {
if (_rangeOn) {
_rangeOn = false;
recalcEndPoints();
}
}
function reset() {
__filtered = false;
__filterFunc = null;
_options = Default;
_startBuff = null;
_endBuff = null;
_rangeOn = false;
_cloned = false;
_index = _dataset.__items;
_indexById = _dataset._itemIndexById;
resetEndPoints();
_curItemIndex = _bof;
_hasPrev = false;
_hasNext = _curItemIndex < _eof;
}
function setRange(startValues, endValues) {
checkSort();
resetEndPoints();
_rangeOn = true;
_startBuff = startValues;
_endBuff = endValues;
recalcEndPoints();
}
function setSortOptions(options) {
if (_options != Default) {
if (((options & Ascending) == Ascending) && ((_options & Descending) == Descending)) {
_options = _options ^ Descending;
}
_options = _options | (hasNumericKey() ? (Array.NUMERIC) : 0);
_options = _options | options;
internalSort();
first();
recalcEndPoints();
}
}
function sortOn(propList, options) {
_options = ((options == undefined) ? (Ascending) : (options));
_keyList = propList;
_rangeOn = false;
_options = _options | (hasNumericKey() ? (Array.NUMERIC) : 0);
internalSort();
first();
recalcEndPoints();
}
function checkSort() {
if (_options == Default) {
throw new mx.data.components.datasetclasses.DataSetError(("Operation not applicable when no sort has been defined. Error for iterator '" + _id) + "'.");
}
}
function checkError(a) {
if (typeof(a) == "number") {
throw new mx.data.components.datasetclasses.DataSetError(("Sort failed with the following error '" + mx.utils.ErrorStrings.getPlayerError(a)) + "'");
}
}
function compareValues(a, b) {
if ((a == null) && (b == null)) {
return(0);
}
if (a == null) {
return(1);
}
if (b == null) {
return(-1);
}
if (a < b) {
return(-1);
}
if (a > b) {
return(1);
}
return(0);
}
function comparePropList(alist, blist, ci) {
var _local5;
var _local6 = 0;
var _local4 = 0;
var _local2;
var _local3;
while ((_local6 == 0) && (_local4 < _keyList.length)) {
_local5 = _keyList[_local4];
_local2 = alist[_local5];
_local3 = blist[_local5];
if (ci && (typeof(_local2) == "string")) {
_local2 = _local2.toLowerCase();
_local3 = _local3.toLowerCase();
}
_local6 = compareValues(_local2, _local3);
_local4++;
}
return(_local6);
}
function hasNumericKey() {
var _local3 = _index[0];
var _local2 = 0;
while (_local2 < _keyList.length) {
if (typeof(_local3[_keyList[_local2]]) == "number") {
return(true);
}
_local2++;
}
return(false);
}
function filterIndex() {
var _local7 = new Array();
var _local3;
var _local4 = false;
var _local6 = 0;
var _local8;
var _local5 = 0;
_indexById = new Array();
var _local2 = 0;
while (_local2 < _index.length) {
_local3 = _index[_local2];
try {
_local4 = __filterFunc(_local3);
} catch(_local8) {
_local4 = true;
}
if (_local4) {
_local7.push(_local3);
_indexById[_local3[ItemId]] = _local5;
_local5++;
} else {
_local6--;
}
_local2++;
}
_index = _local7;
_cloned = false;
return(_local6);
}
function findObject(propInfo, mode) {
var _local19 = propInfo[ItemId];
if ((_local19 != undefined) && (mode != FindInsertId)) {
var _local18 = _indexById[_local19];
if (_rangeOn && ((_local18 > _eof) || (_local18 < _bof))) {
_local18 = -1;
}
return(_local18);
}
checkSort();
var _local3 = false;
var _local17 = ((mode == FindIndexId) || (mode == FindFirstIndexId)) || (mode == FindLastIndexId);
var _local15 = (_options & Unique) != Unique;
var _local16 = false;
var _local2 = 0;
var _local6 = (_local17 ? (_bof) : 0);
var _local7 = (_local17 ? (_eof) : (_index.length - 1));
var _local14 = null;
var _local12 = 1;
var _local13 = (_options & Descending) == Descending;
var _local9 = (_options & CaseInsensitive) == CaseInsensitive;
while ((!_local16) && (_local6 <= _local7)) {
_local2 = Math.round((_local6 + _local7) / 2);
_local14 = _index[_local2];
_local12 = comparePropList(propInfo, _local14, _local9);
switch (_local12) {
case -1 :
if (_local13) {
_local6 = _local2 + 1;
} else {
_local7 = _local2 - 1;
}
break;
case 0 :
_local16 = true;
if ((!_local15) && (mode == FindInsertId)) {
throw new mx.data.components.datasetclasses.DataSetError(((("Duplicate key specified. Error for index '" + _id) + "' on dataset '") + _dataset._name) + "'.");
}
if (_local15 && (_local17)) {
switch (mode) {
case FindIndexId :
_local3 = true;
break;
case FindFirstIndexId :
_local3 = _local2 == _local6;
var _local8 = null;
var _local5 = _local2 - 1;
var _local4 = true;
while ((_local4 && (!_local3)) && (_local5 >= _local6)) {
_local8 = _index[_local5];
_local4 = comparePropList(propInfo, _local8, _local9) == 0;
if ((!_local4) || (_local4 && (_local5 == _local6))) {
_local3 = true;
_local2 = _local5 + (_local4 ? 0 : 1);
}
_local5--;
}
break;
case FindLastIndexId :
_local3 = _local2 == _local7;
_local8 = null;
_local5 = _local2 + 1;
_local4 = true;
for(;;){
if (!((_local4 && (!_local3)) && (_local5 <= _local7))) {
break;
}
_local8 = _index[_local5];
_local4 = comparePropList(propInfo, _local8, _local9) == 0;
if ((!_local4) || (_local4 && (_local5 == _local7))) {
_local3 = true;
_local2 = _local5 - (_local4 ? 0 : 1);
}
_local5++;
};
}
} else {
_local3 = true;
}
break;
case 1 :
if (_local13) {
_local7 = _local2 - 1;
} else {
_local6 = _local2 + 1;
}
}
}
if ((!_local3) && (_local17)) {
return(-1);
}
if (_local13) {
return(((_local12 < 0) ? (_local2 + 1) : (_local2)));
}
return(((_local12 > 0) ? (_local2 + 1) : (_local2)));
}
function internalFilterItems(value) {
var _local2 = 0;
if (value && (__filterFunc != null)) {
_local2 = filterIndex();
} else {
unfilterIndex();
if (_options != Default) {
internalSort();
}
_local2 = _index.length;
}
recalcEndPoints();
return(_local2);
}
function internalSort() {
var _local5 = (((_options & Ascending) == Ascending) ? (_options ^ Ascending) : (_options));
if (_cloned) {
_cloned = false;
var _local3 = _index.sortOn(Object(_keyList), _local5 | Array.RETURNINDEXEDARRAY);
checkError(_local3);
var _local4 = new Array();
var _local2 = 0;
while (_local2 < _local3.length) {
_local4.push(_index[_local3[_local2]]);
_local2++;
}
_index = _local4;
} else {
checkError(_index.sortOn(Object(_keyList), _local5));
}
rebuildIndexById();
}
function recalcEndPoints() {
resetEndPoints();
if (_rangeOn) {
_bof = findObject(_startBuff, FindFirstIndexId);
if (_bof >= 0) {
_eof = findObject(_endBuff, FindLastIndexId);
if (_eof < 0) {
_bof = 0;
}
} else {
_eof = _bof - 1;
}
_curItemIndex = _bof - 1;
}
resync(_curItemIndex);
}
function resetEndPoints() {
_eof = _index.length - 1;
_bof = 0;
}
function rebuildIndexById() {
_indexById = new Array();
var _local2 = 0;
while (_local2 < _index.length) {
_indexById[_index[_local2][ItemId]] = _local2;
_local2++;
}
}
function resync(newPos) {
if (_eof < _bof) {
_hasNext = false;
_hasPrev = false;
_curItemIndex = _eof;
return(null);
}
if (newPos >= _eof) {
_hasNext = false;
_hasPrev = true;
if (newPos == _eof) {
_curItemIndex = _eof;
return(_index[_eof]);
}
_curItemIndex = _eof + 1;
return(null);
}
if (newPos <= _bof) {
_hasPrev = false;
_hasNext = true;
if (newPos == _bof) {
_curItemIndex = _bof;
return(_index[_bof]);
}
_curItemIndex = _bof - 1;
return(null);
}
_curItemIndex = newPos;
_hasNext = true;
_hasPrev = true;
return(_index[_curItemIndex]);
}
function unfilterIndex() {
_index = _dataset.__items;
_indexById = _dataset._itemIndexById;
_cloned = true;
}
static var Ascending = 32;
static var CaseInsensitive = Array.CASEINSENSITIVE;
static var Descending = Array.DESCENDING;
static var Unique = Array.UNIQUESORT;
static var Default = 0;
static var FindInsertId = 0;
static var FindIndexId = 1;
static var FindFirstIndexId = 2;
static var FindLastIndexId = 3;
static var ItemId = "__ID__";
}
Symbol 708 MovieClip [__Packages.mx.data.components.datasetclasses.DataSetDataProvider] Frame 0
class mx.data.components.datasetclasses.DataSetDataProvider extends Object
{
var _dataset, _dg, _dgInit, _desiredTypes;
function DataSetDataProvider (aDataSet) {
super();
_dataset = aDataSet;
}
function get length() {
if ((_dg != null) && (_dgInit != true)) {
_dgInit = true;
var _local2;
for (var _local3 in _dg.columns) {
_local2 = _dg.columns[_local3];
_local2.editable = _local2.editable && (!isFieldReadOnly(_local2.columnName));
}
}
return(_dataset.length);
}
function addEventListener(eventName, handler) {
_desiredTypes = handler.getBindingMetaData("acceptedTypes");
if (handler instanceof mx.controls.DataGrid) {
if (_dataset.readOnly) {
handler.editable = false;
} else {
_dg = handler;
_dgInit = false;
}
}
_dataset.addEventListener(eventName, handler);
}
function addItem(item) {
_dataset.addItem(item);
}
function addItemAt(index, transferObj) {
_dataset.addItemAt(index, transferObj);
}
function editField(index, fieldName, newData) {
var _local3 = _dataset.__curItem;
try {
_dataset.__curItem = _dataset._iterator.getItemAt(index);
var _local2 = _desiredTypes[fieldName];
if (_local2 == null) {
_local2 = "String";
}
_dataset.getField(fieldName).setTypedValue(new mx.data.binding.TypedValue(newData, _local2));
} finally {
_dataset.__curItem = _local3;
}
}
function getColumnNames() {
var _local2 = new Array();
for (var _local3 in _dataset.properties) {
_local2.push(_local3);
}
_local2.reverse();
return(_local2);
}
function getEditingData(index, fieldName) {
return(_dataset.getEditingData(fieldName, _dataset._iterator.getItemAt(index), _desiredTypes));
}
function getItemAt(index) {
if (index >= _dataset.length) {
return(null);
}
var _local2 = _dataset._iterator.getItemAt(index);
if (_local2 != null) {
return(_dataset.getDataProviderItem(_local2, _desiredTypes));
}
return(null);
}
function getItemID(index) {
return(_dataset.getItemId(index));
}
function removeAll() {
_dataset.removeAll();
}
function removeItemAt(index) {
_dataset.removeItemAt(index);
}
function replaceItemAt(index, item) {
removeItemAt(index);
addItemAt(index, item);
}
function sortItemsBy(fieldNames, options) {
var _local4;
var _local3 = 0;
if (typeof(options) == "string") {
_local3 = ((options.toUpperCase() == "DESC") ? (Array.DESCENDING) : (mx.data.components.datasetclasses.DataSetIterator.Ascending));
} else {
_local3 = options;
}
if (typeof(fieldNames) == "array") {
_local4 = fieldNames.join("_");
} else {
_local4 = fieldNames;
fieldNames = new Array(fieldNames);
}
for (var _local5 in fieldNames) {
if (_dataset.properties[fieldNames[_local5]].type.name == "String") {
_local3 = _local3 | Array.CASEINSENSITIVE;
break;
}
}
if (_dataset.hasSort(_local4)) {
_dataset.useSort(_local4, _local3);
} else {
_dataset.addSort(_local4, fieldNames, _local3);
}
}
function isFieldReadOnly(name) {
return(_dataset.properties[name].type.readonly == true);
}
}
Symbol 709 MovieClip [__Packages.mx.data.components.datasetclasses.DeltaPacketImpl] Frame 0
class mx.data.components.datasetclasses.DeltaPacketImpl extends Object implements mx.data.components.datasetclasses.DeltaPacket
{
var _deltaPacket, _optimized, _source, _keyInfo, _transId, _log, _timestamp, _confInfo;
function DeltaPacketImpl (src, id, keyInfo, log, conSch) {
super();
_deltaPacket = new Array();
_optimized = true;
_source = src;
_keyInfo = ((keyInfo == undefined) ? null : (keyInfo));
_transId = id;
_log = ((log == undefined) ? false : (log));
_timestamp = new Date();
_confInfo = conSch;
}
function addItem(item) {
if (item instanceof mx.data.components.datasetclasses.Delta) {
item._owner = this;
_deltaPacket.push(item);
return(true);
}
return(false);
}
function clear() {
_deltaPacket = new Array();
}
function contains(item) {
var _local3 = false;
var _local2 = 0;
while ((!_local3) && (_local2 < _deltaPacket.length)) {
_local3 = _deltaPacket[_local2] == item;
_local2++;
}
return(_local3);
}
function getIterator() {
return(new mx.utils.IteratorImpl(this));
}
function getItemAt(index) {
return(_deltaPacket[index]);
}
function getConfigInfo(info) {
return(_confInfo);
}
function getKeyInfo() {
return(_keyInfo);
}
function getLength() {
return(_deltaPacket.length);
}
function getSource() {
return(_source);
}
function getTransactionId() {
return(_transId);
}
function getTimestamp() {
return(_timestamp);
}
function isEmpty() {
return(_deltaPacket.length == 0);
}
function removeItem(item) {
return(false);
}
function logChanges() {
return(_log);
}
}
Symbol 710 MovieClip [__Packages.mx.data.encoders.DateToNumber] Frame 0
class mx.data.encoders.DateToNumber extends mx.data.binding.DataAccessor
{
var dataAccessor;
function DateToNumber () {
super();
}
function getTypedValue(requestedType) {
var _local4;
if ((requestedType == "Date") || (requestedType == null)) {
var _local3 = dataAccessor.getTypedValue("Number");
var _local2;
if (_local3.value != null) {
_local2 = new Date(_local3.value);
} else {
_local2 = null;
}
_local4 = new mx.data.binding.TypedValue(_local2, "Date");
}
return(_local4);
}
function getGettableTypes() {
return(["Date"]);
}
function setTypedValue(newValue) {
if (newValue.typeName == "Date") {
var _local2;
if (newValue.value != null) {
_local2 = newValue.value.getTime();
} else {
_local2 = null;
}
return(dataAccessor.setTypedValue(new mx.data.binding.TypedValue(_local2, "Number")));
}
return([mx.data.binding.DataAccessor.conversionFailed(newValue, "Date")]);
}
function getSettableTypes() {
return(["Date"]);
}
}
Symbol 711 MovieClip [__Packages.mx.data.components.datasetclasses.DeltaImpl] Frame 0
class mx.data.components.datasetclasses.DeltaImpl extends Object implements mx.data.components.datasetclasses.Delta
{
var _deltaItems, _id, _source, _op, _message, _accessCl, _owner;
function DeltaImpl (id, curSrc, op, msg, acl) {
super();
_deltaItems = new Array();
_id = id;
_source = curSrc;
_op = op;
_message = ((msg == undefined) ? "" : (msg));
_accessCl = ((acl == undefined) ? false : (acl));
}
function addDeltaItem(item) {
var _local2 = getItemIndexByName(item.__get__name());
if ((_local2 < 0) || (item.__get__kind() == mx.data.components.datasetclasses.DeltaItem.Method)) {
_deltaItems.push(item);
} else {
_deltaItems.splice(_local2, 1);
_deltaItems.splice(_local2, 0, item);
}
}
function getId() {
return(_id);
}
function getOperation() {
return(_op);
}
function getChangeList() {
if ((_op != mx.data.components.datasetclasses.DeltaPacketConsts.Added) || (_accessCl)) {
return(_deltaItems);
}
return(null);
}
function getItemByName(name) {
var _local2 = getItemIndexByName(name);
if (_local2 >= 0) {
return(_deltaItems[_local2]);
}
return(null);
}
function getSource() {
var _local4 = _source;
if ((_op == mx.data.components.datasetclasses.DeltaPacketConsts.Added) && (arguments.length > 0)) {
if (_source.clone == undefined) {
_local4 = new Object();
var _local3;
for (var _local5 in _source) {
_local3 = _source[_local5];
if (typeof(_local3) != "function") {
_local4[_local5] = _local3;
}
}
} else {
_local4 = _source.clone();
}
}
return(_local4);
}
function getMessage() {
return(_message);
}
function getDeltaPacket() {
return(_owner);
}
function getItemIndexByName(name) {
var _local3;
if ((_op == mx.data.components.datasetclasses.DeltaPacketConsts.Modified) || (_accessCl)) {
var _local2 = 0;
while (_local2 < _deltaItems.length) {
_local3 = _deltaItems[_local2];
if (_local3.__get__name() == name) {
return(_local2);
}
_local2++;
}
}
return(-1);
}
}
Symbol 712 MovieClip [__Packages.mx.data.components.connclasses.RPCCall] Frame 0
class mx.data.components.connclasses.RPCCall extends MovieClip
{
var _visible, dispatchEvent, results, multipleSimultaneousAllowed, refreshAndValidate, suppressInvalidCalls;
function RPCCall () {
super();
mx.events.EventDispatcher.initialize(this);
mx.data.binding.ComponentMixins.initComponent(this);
_visible = false;
}
function bumpCallsInProgress(amount) {
callsInProgress = callsInProgress + amount;
notifyStatus("StatusChange", {callsInProgress:callsInProgress});
}
function notifyStatus(code, data) {
var _local2 = new Object();
_local2.type = "status";
_local2.code = code;
_local2.data = data;
dispatchEvent(_local2);
}
function setResult(r) {
results = r;
dispatchEvent({type:"result"});
}
function triggerSetup(needsParams) {
if ((!multipleSimultaneousAllowed) && (callsInProgress > 0)) {
notifyStatus("CallAlreadyInProgress", callsInProgress);
return(false);
}
dispatchEvent({type:"send"});
if ((needsParams && (!refreshAndValidate("params"))) && (suppressInvalidCalls)) {
notifyStatus("InvalidParams");
return(false);
}
return(true);
}
function onUpdate() {
_visible = true;
}
var callsInProgress = 0;
}
Symbol 713 MovieClip [__Packages.mx.data.components.XMLConnector] Frame 0
class mx.data.components.XMLConnector extends mx.data.components.connclasses.RPCCall
{
var triggerSetup, direction, params, notifyStatus, ignoreWhite, URL, bumpCallsInProgress;
function XMLConnector () {
super();
}
function trigger() {
_global.__dataLogger.logData(this, "XMLConnector Triggered, <URL>", this);
_global.__dataLogger.nestLevel++;
if (triggerSetup(direction != "receive")) {
if (params != null) {
if (direction == "receive") {
_global.__dataLogger.logData(this, "Warning: direction is 'receive', but params are non-null: <params>", this, mx.data.binding.Log.WARNING);
} else {
if (!(params instanceof XML)) {
notifyStatus("Fault", {faultcode:"XMLConnector.Not.XML", faultstring:"params is not an XML object"});
return(undefined);
}
if (params.status != 0) {
notifyStatus("Fault", {faultcode:"XMLConnector.Parse.Error", faultstring:"params had XML parsing error " + params.status});
return(undefined);
}
}
} else if (direction != "receive") {
notifyStatus("Fault", {faultcode:"XMLConnector.Params.Missing", faultstring:"Direction is 'send' or 'send/receive', but params are null"});
return(undefined);
}
var _local4 = params;
if ((_local4 == null) || (direction == "receive")) {
_local4 = new XML();
}
var _local3 = new XML();
_local3.ignoreWhite = ignoreWhite;
_local3.xmlconnector = this;
_local3.needData = direction != "send";
_local3.onData = function (data) {
if (this.needData) {
if (data == undefined) {
this.xmlconnector.notifyStatus("Fault", {faultcode:"XMLConnector.No.Data.Received", faultstring:"Was expecting data from the server, but none was received"});
} else {
this.parseXML(data);
if (this.status != 0) {
this.xmlconnector.notifyStatus("Fault", {faultcode:"XMLConnector.Results.Parse.Error", faultstring:"received data had an XML parsing error " + this.status});
} else {
this.xmlconnector.setResult(this);
}
}
}
this.xmlconnector.bumpCallsInProgress(-1);
};
_global.__dataLogger.logData(this, "Invoking XMLConnector <me.URL>(<params>)", {me:this, params:_local4});
_local4.contentType = "text/xml";
_local4.sendAndLoad(URL, _local3);
bumpCallsInProgress(1);
}
_global.__dataLogger.nestLevel--;
}
}
Symbol 937 MovieClip Frame 16
stop();
Symbol 944 MovieClip Frame 1
stop();
Symbol 1096 MovieClip Frame 2033
stop();
Symbol 1099 MovieClip Frame 5
stop();
Symbol 1110 MovieClip Frame 5
stop();
Symbol 1131 MovieClip Frame 5
stop();
Symbol 1142 MovieClip Frame 5
stop();
Symbol 1150 MovieClip Frame 5
stop();
Symbol 1167 MovieClip Frame 1
stop();
Symbol 1228 MovieClip Frame 10
stop();
Symbol 1233 MovieClip [baroMC] Frame 1
stop();
Symbol 1357 MovieClip Frame 1
play();
Symbol 1385 MovieClip Frame 1
play();
Symbol 1411 MovieClip Frame 31
stop();
Symbol 1449 MovieClip [bensMC] Frame 1
stop();
Symbol 1524 MovieClip Frame 9
stop();
Symbol 1558 MovieClip [boyMC] Frame 1
stop();
Symbol 1617 MovieClip Frame 1
play();
Symbol 1622 MovieClip Frame 11
stop();
Symbol 1627 MovieClip [dangoMC] Frame 1
stop();
Symbol 1715 MovieClip Frame 9
stop();
Symbol 1720 MovieClip [gradMC] Frame 1
stop();
Symbol 1806 MovieClip Frame 9
stop();
Symbol 1850 MovieClip [haruMC] Frame 1
stop();
Symbol 1918 MovieClip Frame 8
stop();
Symbol 1941 MovieClip [himeMC] Frame 1
stop();
Symbol 2015 MovieClip Frame 8
stop();
Symbol 2029 MovieClip Frame 13
stop();
Symbol 2039 MovieClip [kabaMC] Frame 1
stop();
Symbol 2098 MovieClip Frame 8
stop();
Symbol 2120 MovieClip [maruMC] Frame 1
stop();
Symbol 2185 MovieClip Frame 12
stop();
Symbol 2194 MovieClip [pandaMC] Frame 1
stop();
Symbol 2281 MovieClip Frame 8
stop();
Symbol 2286 MovieClip [purinMC] Frame 1
stop();
Symbol 2389 MovieClip Frame 8
stop();
Symbol 2392 MovieClip Frame 5
stop();
Symbol 2394 MovieClip [risuMC] Frame 1
stop();
Symbol 2470 MovieClip Frame 8
stop();
Symbol 2475 MovieClip [tamagoMC] Frame 1
stop();
Symbol 2552 MovieClip Frame 9
stop();
Symbol 2579 MovieClip [girlMC] Frame 1
stop();
Symbol 2661 MovieClip Frame 9
stop();
Symbol 2693 MovieClip [puuMC] Frame 1
stop();
Symbol 2707 MovieClip Frame 8
stop();
Symbol 2712 MovieClip [kabaYMC] Frame 1
stop();
Symbol 2723 MovieClip Frame 8
stop();
Symbol 2728 MovieClip [kabaWMC] Frame 1
stop();
Symbol 2794 MovieClip Frame 8
stop();
Symbol 2813 MovieClip [kappaMC] Frame 1
stop();
Symbol 2884 MovieClip Frame 8
stop();
Symbol 2917 MovieClip [kmaruMC] Frame 1
stop();
Symbol 3025 MovieClip Frame 8
stop();
Symbol 3080 MovieClip [risuSMC] Frame 1
stop();
Symbol 3164 MovieClip Frame 8
stop();
Symbol 3213 MovieClip [kabaTMC] Frame 1
stop();
Symbol 3285 MovieClip Frame 9
stop();
Symbol 3316 MovieClip [boySMC] Frame 1
stop();
Symbol 3394 MovieClip Frame 8
stop();
Symbol 3425 MovieClip Frame 41
stop();
Symbol 3498 MovieClip [nekoMC] Frame 1
stop();
Symbol 3566 MovieClip Frame 8
stop();
Symbol 3591 MovieClip [ietyMC] Frame 1
stop();
Symbol 3592 MovieClip Frame 1
stop();