[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Combined Code (21.38 KiB) ● ● ●
movieClip 2 fpb_hitArea {
}
movieClip 5 FLabelSymbol {
#initclip
_global.FLabelClass = function () {
if (this.hostComponent == undefined) {
this.hostComponent = (this._parent.controller == undefined) ? this._parent : this._parent.controller;
}
if (this.customTextStyle == undefined) {
if (this.hostComponent.textStyle == undefined) {
this.hostComponent.textStyle = new TextFormat();
}
this.textStyle = this.hostComponent.textStyle;
this.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass('FLabelSymbol', FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var v2 = this.hostComponent.styleTable.embedFonts.value;
if (v2 != undefined) {
this.labelField.embedFonts = v2;
}
this.labelField.setNewTextFormat(this.textStyle);
this.labelField.text = label;
this.labelField._height = this.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
this.enable = enable;
var v2 = this.hostComponent.styleTable[enable ? 'textColor' : 'textDisabled'].value;
if (v2 == undefined) {
v2 = enable ? 0 : 8947848;
}
this.setColor(v2);
};
FLabelClass.prototype.getLabel = function () {
return this.labelField.text;
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
frame 1 {
}
}
movieClip 7 {
}
movieClip 8 {
}
movieClip 10 {
}
movieClip 11 {
}
movieClip 13 {
}
movieClip 14 {
frame 1 {
var component = _parent._parent;
component.registerSkinElement(frame5, 'face');
component.registerSkinElement(frame3, 'shadow');
component.registerSkinElement(frame1, 'darkshadow');
component.registerSkinElement(frame4, 'highlight');
component.registerSkinElement(frame2, 'highlight3D');
}
}
movieClip 15 {
}
movieClip 16 {
}
movieClip 17 {
}
movieClip 18 {
}
movieClip 19 {
}
movieClip 20 {
frame 1 {
var component = _parent._parent;
component.registerSkinElement(frame5, 'face');
component.registerSkinElement(frame3, 'shadow');
component.registerSkinElement(frame1, 'darkshadow');
component.registerSkinElement(frame4, 'highlight');
component.registerSkinElement(frame2, 'highlight3D');
}
}
movieClip 21 {
}
movieClip 22 {
}
movieClip 23 {
}
movieClip 24 {
}
movieClip 25 {
}
movieClip 26 {
frame 1 {
var component = _parent._parent;
component.registerSkinElement(frame5, 'face');
component.registerSkinElement(frame4, 'shadow');
component.registerSkinElement(frame2, 'darkshadow');
component.registerSkinElement(frame3, 'highlight');
component.registerSkinElement(frame1, 'highlight3D');
}
}
movieClip 27 {
}
movieClip 28 {
}
movieClip 29 {
}
movieClip 30 {
}
movieClip 31 {
}
movieClip 32 {
frame 1 {
var component = _parent._parent;
component.registerSkinElement(frame5, 'face');
component.registerSkinElement(frame3, 'shadow');
component.registerSkinElement(frame1, 'darkshadow');
component.registerSkinElement(frame4, 'highlight');
component.registerSkinElement(frame2, 'highlight3D');
}
}
movieClip 33 fpb_states {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 34 FUIComponentSymbol {
#initclip
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._height = 1;
this.deadPreview._width = 1;
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var v3 in this.styleFormat_prm) {
this.setStyleProperty(v3, this.styleFormat_prm[v3]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = arguments.length > 0 ? enabledFlag : true;
this.focusEnabled = enabledFlag;
this.tabEnabled = this.focusEnabled;
if (!this.enable && this.focused) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return this.enable;
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = (obj == undefined) ? this._parent : obj;
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var v2 in this.methodTable) {
this[v2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var v4 = this.styleTable.focusRectInner.value;
var v5 = this.styleTable.focusRectOuter.value;
if (v4 == undefined) {
v4 = 16777215;
}
if (v5 == undefined) {
v5 = 0;
}
this.createEmptyMovieClip('focusRect', 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, v5);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, v4);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo(x + w - 1, y + 1);
this.focusRect.lineTo(x + w - 1, y + h - 1);
this.focusRect.lineTo(x + 1, y + h - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == '') {
return undefined;
}
var v17 = parseInt(value);
if (!isNaN(v17)) {
value = v17;
}
var v16 = arguments.length > 2 ? isGlobal : false;
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || !v16) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else {
if (propName == 'embedFonts') {
this.invalidate('setSize');
} else {
if (propName.subString(0, 4) == 'text') {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var v18 = propName.subString(4, propName.length);
this.textStyle[v18] = value;
this.invalidate('setSize');
} else {
for (var v15 in this.styleTable[propName].coloredMCs) {
var v4 = new Color(this.styleTable[propName].coloredMCs[v15]);
if (this.styleTable[propName].value == undefined) {
var v5 = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0', 'aa': '100', 'ab': '0'};
v4.setTransform(v5);
} else {
v4.setRGB(value);
}
}
}
}
}
this.styleTable[propName].useGlobal = v16;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var v4 = new Color(skinMCRef);
v4.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {'listeners': true, 'isGlobal': true, 'isAStyle': true, 'addListener': true, 'removeListener': true, 'nonStyles': true, 'applyChanges': true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var v3 in arguments[0]) {
this[v3] = arguments[0][v3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var v3 = 0;
while (v3 < arguments.length) {
var v4 = arguments[v3];
this.listeners[arguments[v3]] = v4;
for (var v5 in this) {
if (this.isAStyle(v5)) {
v4.updateStyleProperty(this, v5.toString());
}
}
++v3;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var v4 in this) {
if (this.isAStyle(v4)) {
if (component.styleTable[v4].useGlobal == this.isGlobal) {
component.styleTable[v4].useGlobal = true;
var v3 = this.isGlobal ? undefined : globalStyleFormat[v4];
component.setStyleProperty(v4, v3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var v6 = 0;
for (var v5 in this.listeners) {
var v3 = this.listeners[v5];
if (arguments.length > 0) {
var v4 = 0;
while (v4 < arguments.length) {
if (this.isAStyle(arguments[v4])) {
v3.updateStyleProperty(this, arguments[v4]);
}
++v4;
}
} else {
for (var v4 in this) {
if (this.isAStyle(v4)) {
v3.updateStyleProperty(this, v4.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return this.nonStyles[name] ? false : true;
};
#endinitclip
frame 1 {
}
}
movieClip 36 {
}
movieClip 38 FBoundingBoxSymbol {
frame 1 {
var component = _parent;
component.registerSkinElement(boundingBox, 'background');
stop();
}
frame 2 {
component.registerSkinElement(boundingBox2, 'backgroundDisabled');
stop();
}
}
movieClip 40 {
}
movieClip 41 FPushButtonSymbol {
#initclip
function FPushButtonClass() {
this.init();
}
FPushButtonClass.prototype = new FUIComponentClass();
Object.registerClass('FPushButtonSymbol', FPushButtonClass);
FPushButtonClass.prototype.init = function () {
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.attachMovie('fpb_states', 'fpbState_mc', 1);
this.attachMovie('FLabelSymbol', 'fLabel_mc', 2);
this.attachMovie('fpb_hitArea', 'fpb_hitArea_mc', 3);
super.init();
this.btnState = false;
this.setClickHandler(this.clickHandler);
this._xscale = 100;
this._yscale = 100;
this.setSize(this.width, this.height);
if (this.label != undefined) {
this.setLabel(this.label);
}
this.ROLE_SYSTEM_PUSHBUTTON = 43;
this.STATE_SYSTEM_PRESSED = 8;
this.EVENT_OBJECT_STATECHANGE = 32778;
this.EVENT_OBJECT_NAMECHANGE = 32780;
this._accImpl.master = this;
this._accImpl.stub = false;
this._accImpl.get_accRole = this.get_accRole;
this._accImpl.get_accName = this.get_accName;
this._accImpl.get_accState = this.get_accState;
this._accImpl.get_accDefaultAction = this.get_accDefaultAction;
this._accImpl.accDoDefaultAction = this.accDoDefaultAction;
};
FPushButtonClass.prototype.setHitArea = function (w, h) {
var v3 = this.fpb_hitArea_mc;
this.hitArea = v3;
v3._visible = false;
v3._width = w;
v3._height = arguments.length > 1 ? h : v3._height;
};
FPushButtonClass.prototype.setSize = function (w, h) {
w = w < 6 ? 6 : w;
if (arguments.length > 1) {
if (h < 6) {
h = 6;
}
}
super.setSize(w, h);
this.setLabel(this.getLabel());
this.arrangeLabel();
this.setHitArea(w, h);
this.boundingBox_mc._width = w;
this.boundingBox_mc._height = h;
this.drawFrame();
if (this.focused) {
super.myOnSetFocus();
}
this.initContentPos('fLabel_mc');
};
FPushButtonClass.prototype.arrangeLabel = function () {
var v2 = this.fLabel_mc;
var v4 = this.height;
var v5 = this.width - 2;
var v3 = 1;
this.fLabel_mc.setSize(v5 - v3 * 4);
v2._x = v3 * 3;
v2._y = v4 / 2 - v2._height / 2;
};
FPushButtonClass.prototype.getLabel = function () {
return this.fLabel_mc.labelField.text;
};
FPushButtonClass.prototype.setLabel = function (label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
this.arrangeLabel();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE);
}
};
FPushButtonClass.prototype.getEnabled = function () {
return this.enabled;
};
FPushButtonClass.prototype.setEnabled = function (enable) {
if (enable || enable == undefined) {
this.gotoFrame(1);
this.drawFrame();
this.flabel_mc.setEnabled(true);
this.enabled = true;
super.setEnabled(true);
} else {
this.gotoFrame(4);
this.drawFrame();
this.flabel_mc.setEnabled(false);
this.enabled = false;
super.setEnabled(false);
}
};
FPushButtonClass.prototype.txtFormat = function () {
var v3 = this.textStyle;
var v4 = this.styleTable;
v3.align = (v4.textAlign.value == undefined) ? 'center' : undefined;
v3.leftMargin = (v4.textLeftMargin.value == undefined) ? 1 : undefined;
v3.rightMargin = (v4.textRightMargin.value == undefined) ? 1 : undefined;
if (this.fLabel_mc._height > this.height) {
super.setSize(this.width, this.fLabel_mc._height);
} else {
super.setSize(this.width, this.height);
}
this.fLabel_mc.labelField.setTextFormat(this.textStyle);
this.setEnabled(this.enable);
};
FPushButtonClass.prototype.drawFrame = function () {
var v3 = 1;
var v7 = 0;
var v6 = 0;
var v11 = this.width;
var v10 = this.height;
var v12 = ['up_mc', 'over_mc', 'down_mc', 'disabled_mc'];
var v5 = v12[this.fpbState_mc._currentframe - 1];
var v4 = 'frame';
var v2 = 0;
while (v2 < 6) {
v7 += (v2 % 2) * v3;
v6 += (v2 % 2) * v3;
v11 -= ((v2 + 1) % 2) * v3;
v10 -= ((v2 + 1) % 2) * v3;
var v9 = Math.abs(v7 - v11) + 2 * v3;
var v8 = Math.abs(v6 - v10) + 2 * v3;
this.fpbState_mc[v5][v4 + v2]._width = v9;
this.fpbState_mc[v5][v4 + v2]._height = v8;
this.fpbState_mc[v5][v4 + v2]._x = v7 - v3;
this.fpbState_mc[v5][v4 + v2]._y = v6 - v3;
++v2;
}
};
FPushButtonClass.prototype.setClickHandler = function (chng, obj) {
this.handlerObj = arguments.length < 2 ? this._parent : obj;
this.clickHandler = chng;
};
FPushButtonClass.prototype.executeCallBack = function () {
this.handlerObj[this.clickHandler](this);
};
FPushButtonClass.prototype.initContentPos = function (mc) {
this.incrVal = 1;
this.initx = this[mc]._x - this.getBtnState() * this.incrVal;
this.inity = this[mc]._y - this.getBtnState() * this.incrVal;
this.togx = this.initx + this.incrVal;
this.togy = this.inity + this.incrVal;
};
FPushButtonClass.prototype.setBtnState = function (state) {
this.btnState = state;
if (state) {
this.fLabel_mc._x = this.togx;
this.fLabel_mc._y = this.togy;
} else {
this.fLabel_mc._x = this.initx;
this.fLabel_mc._y = this.inity;
}
};
FPushButtonClass.prototype.getBtnState = function () {
return this.btnState;
};
FPushButtonClass.prototype.myOnSetFocus = function () {
this.focused = true;
super.myOnSetFocus();
};
FPushButtonClass.prototype.onPress = function () {
this.pressFocus();
this.fpbState_mc.gotoAndStop(3);
this.drawFrame();
this.setBtnState(true);
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRelease = function () {
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
this.executeCallBack();
this.setBtnState(false);
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRollOver = function () {
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
};
FPushButtonClass.prototype.onRollOut = function () {
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onReleaseOutside = function () {
this.setBtnState(false);
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onDragOut = function () {
this.setBtnState(false);
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onDragOver = function () {
this.setBtnState(true);
this.fpbState_mc.gotoAndStop(3);
this.drawFrame();
};
FPushButtonClass.prototype.myOnKeyDown = function () {
if (Key.getCode() == 32 && this.pressOnce == undefined) {
this.onPress();
this.pressOnce = 1;
}
};
FPushButtonClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.onRelease();
this.pressOnce = undefined;
}
};
FPushButtonClass.prototype.get_accRole = function (childId) {
return this.master.ROLE_SYSTEM_PUSHBUTTON;
};
FPushButtonClass.prototype.get_accName = function (childId) {
return this.master.getLabel();
};
FPushButtonClass.prototype.get_accState = function (childId) {
if (this.pressOnce) {
return this.master.STATE_SYSTEM_PRESSED;
} else {
return this.master.STATE_SYSTEM_DEFAULT;
}
};
FPushButtonClass.prototype.get_accDefaultAction = function (childId) {
return 'Press';
};
FPushButtonClass.prototype.accDoDefaultAction = function (childId) {
this.master.onPress();
this.master.onRelease();
};
#endinitclip
frame 1 {
boundingBox_mc._visible = false;
deadPreview._visible = false;
}
}
frame 1 {
stopAllSounds();
}
movieClip 42 {
}
button 50 {
on (release) {
_root.play();
}
}
movieClip 51 {
frame 1 {
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
eval(bar)._xscale = PercentLoaded;
} else {
gotoAndStop('loaded');
}
}
frame 2 {
gotoAndPlay(1);
}
}
movieClip 55 {
}
movieClip 76 {
frame 1 {
function camControl() {
parentColor.setTransform(camColor.getTransform());
var v4 = sX / this._width;
var v3 = sY / this._height;
_parent._x = cX - this._x * v4;
_parent._y = cY - this._y * v3;
_parent._xscale = 100 * v4;
_parent._yscale = 100 * v3;
}
function resetStage() {
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
}
}
// unknown tag 88 length 78
movieClip 143 {
}
movieClip 236 {
}
movieClip 267 {
}
movieClip 269 {
}
movieClip 452 {
frame 92 {
stop();
}
}
movieClip 474 {
}
// unknown tag 88 length 104
// unknown tag 88 length 143