Frame 1
return();
//infinite loop
mochi.as2.MochiAd.showPreGameAd({id:"9b2803234fffe69a", res:"690x500", background:6845841, color:788068, outline:12695210, no_bg:false});
Instance of Symbol 71 MovieClip in Frame 2
//component parameters
onClipEvent (construct) {
bOpen = true;
}
Instance of Symbol 93 MovieClip in Frame 3
//component parameters
onClipEvent (construct) {
bOpen = true;
}
Instance of Symbol 58 MovieClip [ToolTipControl] in Frame 4
//component parameters
onClipEvent (construct) {
alpha = 100;
backgroudColor = 16777166 /* 0xFFFFCE */;
borderColor = 16777166 /* 0xFFFFCE */;
borderSize = 0;
color = 3355443 /* 0x333333 */;
curve = 4;
enabled = true;
errBackgroundColor = 13315630 /* 0xCB2E2E */;
errBorderColor = 13315630 /* 0xCB2E2E */;
errColor = 16777215 /* 0xFFFFFF */;
errFontSize = 12;
fontSize = 12;
isFollow = true;
isHtml = false;
isMouseDrag = false;
paddingBottom = 2;
paddingLeft = 5;
paddingRight = 5;
paddingTop = 2;
parent = "root";
shadowAlpha = 0.5;
shadowAngle = 80;
shadowBlurX = 7;
shadowBlurY = 5;
shadowColor = 3355443 /* 0x333333 */;
shadowDistance = 3;
shadowStrength = 1;
showTime = 0;
}
Frame 4
return();
//infinite loop
return();
//infinite loop
return();
//infinite loop
return();
//infinite loop
return();
//infinite loop
return();
//infinite loop
return();
//infinite loop
return();
//infinite loop
return();
//infinite loop
Symbol 8 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 10 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 13 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 15 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 18 MovieClip [Defaults] Frame 1
#initclip 80
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 19 MovieClip [UIObjectExtensions] Frame 1
#initclip 81
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 20 MovieClip [UIObject] Frame 1
#initclip 82
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 23 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 24 MovieClip Frame 1
#initclip 83
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 25 MovieClip [FocusRect] Frame 1
#initclip 84
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 26 MovieClip [FocusManager] Frame 1
#initclip 85
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 27 MovieClip [UIComponentExtensions] Frame 1
#initclip 86
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 28 MovieClip [UIComponent] Frame 1
#initclip 87
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 29 MovieClip [SimpleButton] Frame 1
#initclip 88
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 30 MovieClip [Border] Frame 1
#initclip 89
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 31 MovieClip [RectBorder] Frame 1
#initclip 90
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 32 MovieClip [ButtonSkin] Frame 1
#initclip 91
Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin);
#endinitclip
Symbol 33 MovieClip [Button] Frame 1
#initclip 92
Object.registerClass("Button", mx.controls.Button);
#endinitclip
stop();
Instance of Symbol 29 MovieClip [SimpleButton] in Symbol 33 MovieClip [Button] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 58 MovieClip [ToolTipControl] Frame 1
#initclip 93
// swfAction0xFC hexdata 0x03,0x00 // Unknown action
function \u0001\u0002() {
return(2686);
}
var \x01 = (-1902 + \x01\x02());
// swfAction0x03 // Unknown action
#endinitclip
Symbol 66 MovieClip Frame 1
onPress = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
Symbol 68 MovieClip Frame 1
function flash_loading(x, T, A) {
var _local1 = (Math.PI / T) * x;
return(A * Math.sin(_local1));
}
_level0.reserved.swapDepths(100);
_root.stop();
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
_root.menu = my_cm;
_x = (Stage.width / 2);
_y = ((Stage.height / 2) - 30);
_alpha = 0;
mLoading._alpha = 0;
var nDownload = 0;
var _nDownload = 0;
var nTimeIn = 0;
onEnterFrame = function () {
_nDownload = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_alpha < 100) {
_alpha = (_alpha + 5);
nTimeIn = getTimer();
} else {
if (nDownload < _nDownload) {
nDownload = nDownload + (random(5) + 1);
(nDownload > _nDownload) && ((nDownload = _nDownload));
}
_alpha = 100;
tTxt.text = nDownload + " %";
mLoading._alpha = Math.abs(flash_loading(getTimer() - nTimeIn, 800, 100));
}
if (nDownload == 100) {
if ((_root._mochiad instanceof MovieClip) != true) {
_root.play();
}
}
};
Symbol 1182 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("3.02 as2");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local2}, clip._mochiad._containerLCName);
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
if (_local7._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new Object();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName);
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
containerRpcResult(clip, callbackID, _local4, clip._mochiad._containerLCName);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
containerRpcResult(clip, callbackID, _local3, clip._mochiad._containerLCName);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
static function containerNotify(clip, args, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.notify) {
_local1.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.rpcResult) {
_local1.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 1183 MovieClip [__Packages.Global] Frame 0
class Global
{
static var mainPause, pause;
function Global () {
}
static function runAll() {
if (mainPause) {
return(undefined);
}
var _local3 = runArr.length;
var _local2 = 0;
while (_local2 < _local3) {
var _local1 = runArr[_local2];
if (_local1.obj[_local1.runF] == undefined) {
runArr.splice(_local2, 1);
_local2--;
_local3--;
} else if (pause && (_local1.pauseAble)) {
} else if ((++_local1.intervalNum) >= _local1.interval) {
_local1.intervalNum = 0;
_local1.obj[_local1.runF](--_local1.times);
if (_local1.times <= 0) {
runArr.splice(_local2, 1);
_local2--;
_local3--;
}
}
_local2++;
}
}
static function addRun(obj, runF, interval, times, notPauseAble) {
delRun(obj, runF);
if (interval > 0) {
} else {
interval = 1;
}
if (times > 0) {
} else {
times = Infinity;
}
var _local1;
if (notPauseAble) {
_local1 = false;
} else {
_local1 = true;
}
runArr.push({obj:obj, runF:runF, intervalNum:0, interval:interval, times:times, pauseAble:_local1});
}
static function delRun(obj, runF) {
var _local3 = runArr.length;
var _local1 = 0;
while (_local1 < _local3) {
var _local2 = runArr[_local1];
if ((obj == _local2.obj) && (runF == _local2.runF)) {
runArr.splice(_local1, 1);
return(true);
}
_local1++;
}
return(false);
}
static function playSound(_s) {
SOUND.attachSound(_s);
SOUND.start();
}
static function playMusic(_s, _n1, _n2) {
MUSIC.stop();
MUSIC.attachSound(_s);
MUSIC.start(_n1, _n2);
}
static function switchMusic(_b) {
if (MUSIC.getVolume() != 100) {
_b && (MUSIC.setVolume(100));
return(true);
}
_b && (MUSIC.setVolume(0));
return(false);
}
static function switchSound(_b) {
if (SOUND.getVolume() != 100) {
_b && (SOUND.setVolume(100));
return(true);
}
_b && (SOUND.setVolume(0));
return(false);
}
static function SAVE(_ob, _s) {
var _local1 = SharedObject.getLocal(GAMENAME + "_data", "/");
if (_s.length > 0) {
_local1.data[_s] = _ob;
} else {
_local1.data.game = _ob;
}
_local1.flush();
}
static function LOAD(_s) {
var _local1 = SharedObject.getLocal(GAMENAME + "_data", "/");
trace(" \u6E38\u620F\u7248\u672C\u53F7:: " + _local1.data.VERSION);
if (_local1.data.VERSION != VERSION) {
DEL();
_local1.data.VERSION = VERSION;
}
if (_s.length > 0) {
trace("soData.data[_s]:: " + _local1.data[_s]);
return(_local1.data[_s]);
}
trace("soData.data.game:: " + _local1.data.game);
return(_local1.data.game);
}
static function DEL() {
var _local1 = SharedObject.getLocal(GAMENAME + "_data", "/");
_local1.clear();
}
static function VIEWSCORE() {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=" + GAMENAME, "_blank");
}
static function FWGURL() {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
static function ADDGAME() {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
static function DOWNLOAD() {
getURL ("http://www.ifungames.com", "_blank");
}
static var GAMENAME = "easterislandmystery";
static var VERSION = "V 1.0";
static var WIDTH = Stage.width;
static var HEIGHT = Stage.height;
static var MUSIC = new Sound();
static var SOUND = new Sound();
static var runArr = new Array();
var initObj = (_root.onEnterFrame = function () {
runAll();
});
static var URLHIGHSCORE = "http://www.freeworldgroup.com/score/score.asp";
}
Symbol 1184 MovieClip [__Packages.Mystery_of_Easter_Island] Frame 0
class Mystery_of_Easter_Island
{
function Mystery_of_Easter_Island () {
}
static function CHECK_RIGHT(mc) {
if (mc.step == SHOULD_RUN_STEP) {
return(true);
}
return(false);
}
static var SHOULD_RUN_STEP = 1;
}
Symbol 38 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 1185 MovieClip [__Packages.mx.transitions.TransitionManager] Frame 0
class mx.transitions.TransitionManager
{
var _transitions, removeEventListener, _content, addEventListener, _contentAppearance, _innerBounds, _outerBounds, _width, _height, _triggerEvent, dispatchEvent;
function TransitionManager (content) {
this.content = (content);
_transitions = {};
}
function set content(c) {
removeEventListener("allTransitionsInDone", _content);
removeEventListener("allTransitionsOutDone", _content);
_content = c;
saveContentAppearance();
addEventListener("allTransitionsInDone", _content);
addEventListener("allTransitionsOutDone", _content);
//return(content);
}
function get content() {
return(_content);
}
function get transitionsList() {
return(_transitions);
}
function get numTransitions() {
var _local2 = 0;
for (var _local3 in _transitions) {
_local2++;
}
return(_local2);
}
function get numInTransitions() {
var _local3 = 0;
var _local2 = _transitions;
for (var _local4 in _local2) {
if (!_local2[_local4].direction) {
_local3++;
}
}
return(_local3);
}
function get numOutTransitions() {
var _local3 = 0;
var _local2 = _transitions;
for (var _local4 in _local2) {
if (_local2[_local4].direction) {
_local3++;
}
}
return(_local3);
}
function get contentAppearance() {
return(_contentAppearance);
}
static function start(content, transParams) {
if (content.__transitionManager == undefined) {
content.__transitionManager = new mx.transitions.TransitionManager(content);
}
if (transParams.direction == 1) {
content.__transitionManager._triggerEvent = "hide";
} else {
content.__transitionManager._triggerEvent = "reveal";
}
return(content.__transitionManager.startTransition(transParams));
}
function startTransition(transParams) {
removeTransition(findTransition(transParams));
var _local3 = transParams.type;
var _local2 = new _local3[undefined](_content, transParams, this);
addTransition(_local2);
_local2.start();
return(_local2);
}
function addTransition(trans) {
trans.ID = ++IDCount;
_transitions[trans.ID] = trans;
return(trans);
}
function removeTransition(trans) {
if (_transitions[trans.ID] == undefined) {
return(false);
}
trans.cleanUp();
return(delete _transitions[trans.ID]);
}
function findTransition(transParams) {
var _local2;
for (var _local4 in _transitions) {
_local2 = _transitions[_local4];
if (_local2.type == transParams.type) {
return(_local2);
}
}
return(undefined);
}
function removeAllTransitions() {
for (var _local2 in _transitions) {
_transitions[_local2].cleanUp();
removeTransition(_transitions[_local2]);
}
}
function saveContentAppearance() {
var _local2 = _content;
if (_contentAppearance == undefined) {
var _local3 = (_contentAppearance = {});
for (var _local4 in _visualPropList) {
_local3[_local4] = _local2[_local4];
}
_local3.colorTransform = new Color(_local2).getTransform();
}
_innerBounds = _local2.getBounds(targetPath(_local2));
_outerBounds = _local2.getBounds(targetPath(_local2._parent));
_width = _local2._width;
_height = _local2._height;
}
function restoreContentAppearance() {
var _local2 = _content;
var _local3 = _contentAppearance;
for (var _local4 in _visualPropList) {
_local2[_local4] = _local3[_local4];
}
new Color(_local2).setTransform(_local3.colorTransform);
}
function transitionInDone(e) {
removeTransition(e.target);
if (numInTransitions == 0) {
var _local2;
_local2 = _content._visible;
if ((_triggerEvent == "hide") || (_triggerEvent == "hideChild")) {
_content._visible = false;
}
if (_local2) {
dispatchEvent({type:"allTransitionsInDone", target:this});
}
}
}
function transitionOutDone(e) {
removeTransition(e.target);
if (numOutTransitions == 0) {
restoreContentAppearance();
var _local2;
_local2 = _content._visible;
if (_local2 && ((_triggerEvent == "hide") || (_triggerEvent == "hideChild"))) {
_content._visible = false;
}
updateAfterEvent();
if (_local2) {
dispatchEvent({type:"allTransitionsOutDone", target:this});
}
}
}
function toString() {
return("[TransitionManager]");
}
static var version = "1.1.0.52";
static var IDCount = 0;
var type = mx.transitions.TransitionManager;
var className = "TransitionManager";
var _visualPropList = {_x:null, _y:null, _xscale:null, _yscale:null, _alpha:null, _rotation:null};
static var __mixinFED = mx.events.EventDispatcher.initialize(mx.transitions.TransitionManager.prototype);
}
Symbol 1186 MovieClip [__Packages.mx.transitions.Transition] Frame 0
class mx.transitions.Transition
{
var _manager, removeEventListener, addEventListener, _content, _twn, _easing, _progress, dispatchEvent, _innerBounds, _outerBounds, _width, _height;
function Transition (content, transParams, manager) {
if (!arguments.length) {
return;
}
init(content, transParams, manager);
}
function set manager(mgr) {
if (_manager != undefined) {
removeEventListener("transitionInDone", _manager);
removeEventListener("transitionOutDone", _manager);
removeEventListener("transitionProgress", _manager);
}
_manager = mgr;
addEventListener("transitionInDone", _manager);
addEventListener("transitionOutDone", _manager);
addEventListener("transitionProgress", _manager);
//return(manager);
}
function get manager() {
return(_manager);
}
function set content(c) {
if (typeof(c) == "movieclip") {
_content = c;
_twn.obj = c;
}
//return(content);
}
function get content() {
return(_content);
}
function set direction(direction) {
_direction = (direction ? 1 : 0);
//return(this.direction);
}
function get direction() {
return(_direction);
}
function set duration(d) {
if (d) {
_duration = d;
_twn.duration = d;
}
//return(duration);
}
function get duration() {
return(_duration);
}
function set easing(e) {
if (typeof(e) == "string") {
e = eval (e);
} else if (e == undefined) {
e = _noEase;
}
_easing = e;
_twn.easing = e;
//return(easing);
}
function get easing() {
return(_easing);
}
function set progress(p) {
if (_progress == p) {
return;
}
_progress = p;
if (_direction) {
_render(1 - p);
} else {
_render(p);
}
dispatchEvent({type:"transitionProgress", target:this, progress:p});
//return(progress);
}
function get progress() {
return(_progress);
}
function init(content, transParams, manager) {
this.content = (content);
direction = (transParams.direction);
duration = (transParams.duration);
easing = (transParams.easing);
this.manager = (manager);
_innerBounds = this.manager._innerBounds;
_outerBounds = this.manager._outerBounds;
_width = this.manager._width;
_height = this.manager._height;
_resetTween();
}
function toString() {
return(("[Transition " + className) + "]");
}
function start() {
content._visible = true;
_twn.start();
}
function stop() {
_twn.fforward();
_twn.stop();
}
function cleanUp() {
removeEventListener("transitionInDone", _manager);
removeEventListener("transitionOutDone", _manager);
removeEventListener("transitionProgress", _manager);
stop();
}
function getNextHighestDepthMC(mc) {
var _local4 = mc.getNextHighestDepth();
if (_local4 != undefined) {
return(_local4);
}
_local4 = -1;
var _local3;
var _local1;
for (var _local5 in mc) {
_local1 = mc[_local5];
if ((typeof(_local1) == "movieclip") && (_local1._parent == mc)) {
_local3 = _local1.getDepth();
if (_local3 > _local4) {
_local4 = _local3;
}
}
}
return(_local4 + 1);
}
function drawBox(mc, x, y, w, h) {
mc.moveTo(x, y);
mc.lineTo(x + w, y);
mc.lineTo(x + w, y + h);
mc.lineTo(x, y + h);
mc.lineTo(x, y);
}
function drawCircle(mc, x, y, r) {
mc.moveTo(x + r, y);
mc.curveTo(r + x, (0.414213562373095 * r) + y, (0.707106781186547 * r) + x, (0.707106781186547 * r) + y);
mc.curveTo((0.414213562373095 * r) + x, r + y, x, r + y);
mc.curveTo((-0.414213562373095 * r) + x, r + y, (-0.707106781186547 * r) + x, (0.707106781186547 * r) + y);
mc.curveTo((-r) + x, (0.414213562373095 * r) + y, (-r) + x, y);
mc.curveTo((-r) + x, (-0.414213562373095 * r) + y, (-0.707106781186547 * r) + x, (-0.707106781186547 * r) + y);
mc.curveTo((-0.414213562373095 * r) + x, (-r) + y, x, (-r) + y);
mc.curveTo((0.414213562373095 * r) + x, (-r) + y, (0.707106781186547 * r) + x, (-0.707106781186547 * r) + y);
mc.curveTo(r + x, (-0.414213562373095 * r) + y, r + x, y);
}
function _render(p) {
}
function _resetTween() {
_twn.stop();
_twn.removeListener(this);
_twn = new mx.transitions.Tween(this, null, easing, 0, 1, duration, true);
_twn.stop();
_twn.prop = "progress";
_twn.addListener(this);
}
function _noEase(t, b, c, d) {
return(((c * t) / d) + b);
}
function onMotionFinished(src) {
if (direction) {
dispatchEvent({type:"transitionOutDone", target:this});
} else {
dispatchEvent({type:"transitionInDone", target:this});
}
}
static var version = "1.1.0.52";
static var IN = 0;
static var OUT = 1;
var type = mx.transitions.Transition;
var className = "Transition";
var _direction = 0;
var _duration = 2;
static var __mixinFED = mx.events.EventDispatcher.initialize(mx.transitions.Transition.prototype);
}
Symbol 1187 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 1188 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 1189 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 1190 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None
{
function None () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
}
Symbol 1191 MovieClip [__Packages.mx.transitions.PixelDissolve] Frame 0
class mx.transitions.PixelDissolve extends mx.transitions.Transition
{
var _numSections, _indices, _content, _mask, getNextHighestDepthMC, __get__direction, _innerMask, drawBox, _innerBounds;
function PixelDissolve (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function init(content, transParams, manager) {
super.init(content, transParams, manager);
if (transParams.xSections) {
_xSections = transParams.xSections;
}
if (transParams.ySections) {
_ySections = transParams.ySections;
}
_numSections = _xSections * _ySections;
_indices = new Array();
var _local3 = _ySections;
while (_local3--) {
var _local4 = _xSections;
while (_local4--) {
_indices[(_local3 * _xSections) + _local4] = {x:_local4, y:_local3};
}
}
_shuffleArray(_indices);
_initMask();
}
function start() {
_content.setMask(_mask);
super.start();
}
function cleanUp() {
_mask.removeMovieClip();
super.cleanUp();
}
function _initMask() {
var _local5 = _content;
var _local6 = getNextHighestDepthMC(_local5);
var _local3 = (_mask = _local5.createEmptyMovieClip("__mask_PixelDissolve_" + __get__direction(), _local6));
_local3._visible = false;
var _local4 = (_innerMask = _mask.createEmptyMovieClip("innerMask", 0));
_local4.beginFill(16711680);
drawBox(_local4, 0, 0, 100, 100);
_local4.endFill();
var _local2 = _innerBounds;
_local3._x = _local2.xMin;
_local3._y = _local2.yMin;
_local3._width = _local2.xMax - _local2.xMin;
_local3._height = _local2.yMax - _local2.yMin;
}
function _shuffleArray(a) {
var _local1 = a.length - 1;
while (_local1 > 0) {
var _local3 = random(_local1 + 1);
if (_local3 == _local1) {
} else {
var _local4 = a[_local1];
a[_local1] = a[_local3];
a[_local3] = _local4;
}
_local1--;
}
}
function _render(p) {
if (p < 0) {
p = 0;
}
if (p > 1) {
p = 1;
}
var _local5 = 100 / _xSections;
var _local4 = 100 / _ySections;
var _local3 = _indices;
var _local6 = _innerMask;
_local6.clear();
_local6.beginFill(16711680);
var _local2 = Math.floor(p * _numSections);
while (_local2--) {
drawBox(_local6, _local3[_local2].x * _local5, _local3[_local2].y * _local4, _local5, _local4);
}
_local6.endFill();
}
static var version = "1.1.0.52";
var type = mx.transitions.PixelDissolve;
var className = "PixelDissolve";
var _xSections = 10;
var _ySections = 10;
}
Symbol 1192 MovieClip [__Packages.ANLIK] Frame 0
class ANLIK
{
function ANLIK () {
}
static function get_radian(__rotation) {
return(__rotation * (Math.PI/180));
}
static function get_rotation(__radian) {
return(__radian * 57.2957795130823);
}
static function get_global_x(target) {
var _local1 = {x:target._x, y:target._y};
target._parent.localToGlobal(_local1);
return(_local1.x);
}
static function get_global_y(target) {
var _local1 = {x:target._x, y:target._y};
target._parent.localToGlobal(_local1);
return(_local1.y);
}
static function get_global_obj(target) {
var _local1 = {x:target._x, y:target._y};
target._parent.localToGlobal(_local1);
return(_local1);
}
static function get_me_in_target_local(me, target) {
var _local1 = {x:me._x, y:me._y};
me._parent.localToGlobal(_local1);
target.globalToLocal(_local1);
return(_local1);
}
static function leave_stage(target) {
if ((((get_global_x(target) > Stage.width) || (get_global_x(target) < 0)) || (get_global_y(target) > Stage.height)) || (get_global_y(target) < 0)) {
return(true);
}
}
static function get_x_value(_NO, _target_mc, _me_mc) {
var _local1 = get_angle_target_and_me(_target_mc, _me_mc, true, true);
return(_NO * Math.cos(_local1));
}
static function get_y_value(_NO, _target_mc, _me_mc) {
var _local1 = get_angle_target_and_me(_target_mc, _me_mc, true, true);
return(_NO * Math.sin(_local1));
}
static function get_angle_target_and_me(target, myself, target_is_global, I_am_global) {
var _local2 = {x:target._x, y:target._y};
var _local1 = {x:myself._x, y:myself._y};
if (target_is_global) {
target._parent.localToGlobal(_target);
}
if (I_am_global) {
myself._parent.localToGlobal(_local1);
}
var _local6 = _local2.x - _local1.x;
var _local7 = _local2.y - _local1.y;
var _local3 = Math.atan2(_local7, _local6);
return(_local3);
}
}
Symbol 1193 MovieClip [__Packages.Fade] Frame 0
class Fade
{
function Fade () {
}
static function start() {
var _local10 = false;
var _local7 = Stage.width;
var _local9 = Stage.height;
var _local12 = 0;
var _local11 = 0;
var _local5 = new flash.display.BitmapData(_local7, _local9, false, nColor);
_local5.draw(_root);
var _local8 = _root.getNextHighestDepth();
var _local3 = _root.createEmptyMovieClip("mClip_root" + _local8, _local8);
var _local4 = _local3.createEmptyMovieClip("mClip_mask", 0);
var _local6 = _local3.createEmptyMovieClip("mClip_bmp", 1);
_local6.attachBitmap(_local5, 0);
_local3.nT = nInterval;
_local10 && (disableBtn(_local3));
_local3.bmpRoot = _local5;
_local3.nTime = 0;
_local3.finish = function () {
this.bmpRoot.dispose();
this.removeMovieClip();
};
_local3.switchDepth = function () {
if (this.getDepth() != (_root.getNextHighestDepth() - 1)) {
this.swapDepths(_root.getNextHighestDepth() - 1);
}
};
switch (random(4)) {
case 0 :
_local3.nRdm = random(2);
_local3.m_0 = createClip("m_", _local4, 0, 0);
_local3.m_1 = createClip("m_", _local4, 0, 1, {_x:10, _y:10, _rotation:180});
_local3.onEnterFrame = function () {
this.nTime++;
this.nTemp = 50 - Fade.trigonometric(this.nTime, this.nT, 50);
if (this.nRdm > 0) {
this.m_0._yscale = (this.m_1._yscale = this.nTemp);
} else {
this.m_0._xscale = (this.m_1._xscale = this.nTemp);
}
if (this.nTime == (this.nT / 2)) {
this.finish();
}
this.switchDepth();
};
break;
case 1 :
_local3.nRdm = random(3);
_local3.nRdm_2 = random(4);
_local3.m_0 = createClip("m_", _local4, 1, 0, {_x:5, _y:5});
_local3.onEnterFrame = function () {
this.nTime++;
this.nTemp = 100 - Fade.trigonometric(this.nTime, this.nT, 100);
switch (this.nRdm) {
case 0 :
(this.m_0._xscale = 150);
(this.m_0._yscale = this.nTemp);
break;
case 1 :
(this.m_0._xscale = this.nTemp);
(this.m_0._yscale = 150);
break;
case 2 :
this.m_0._xscale = (this.m_0._yscale = this.nTemp);
}
if (this.nRdm_2 == 3) {
this.m_0._rotation = 180 - Fade.trigonometric(this.nTime, this.nT, 180);
} else if (this.nRdm_2 == 2) {
this.m_0._rotation = Fade.trigonometric(this.nTime, this.nT, 180);
}
if (this.nTime == (this.nT / 2)) {
this.finish();
}
this.switchDepth();
};
break;
case 2 :
_local3.nRdm = random(5);
_local3.m_0 = createClip("m_", _local4, 2, 0);
_local3.m_1 = createClip("m_", _local4, 2, 1, {_x:10, _y:10, _rotation:180});
_local3.onEnterFrame = function () {
this.nTime++;
this.nTemp = 100 - Fade.trigonometric(this.nTime, this.nT, 100);
switch (this.nRdm) {
case 0 :
this.m_0._yscale = (this.m_1._yscale = this.nTemp);
break;
case 1 :
this.m_0._xscale = (this.m_1._yscale = this.nTemp);
break;
case 2 :
this.m_0._yscale = (this.m_1._xscale = this.nTemp);
break;
case 3 :
this.m_0._xscale = (this.m_1._xscale = this.nTemp);
break;
case 4 :
this.m_0._xscale = (this.m_1._xscale = this.nTemp);
this.m_0._yscale = (this.m_1._yscale = this.nTemp);
}
if (this.nTime == (this.nT / 2)) {
this.finish();
}
this.switchDepth();
};
break;
case 3 :
_local3.nRdm = random(2);
_local3.m_0 = createClip("m_", _local4, 2, 0);
_local3.m_1 = createClip("m_", _local4, 2, 1, {_x:10, _y:10, _rotation:180});
_local3.m_2 = createClip("m_", _local4, 2, 2, {_x:0, _y:10, _rotation:-90});
_local3.m_3 = createClip("m_", _local4, 2, 3, {_x:10, _y:0, _rotation:90});
_local3.onEnterFrame = function () {
this.nTime++;
this.nTemp = 100 - Fade.trigonometric(this.nTime, this.nT, 100);
if (this.nRdm > 0) {
this.m_0._yscale = (this.m_1._yscale = (this.m_2._yscale = (this.m_3._yscale = this.nTemp)));
} else {
this.m_0._xscale = (this.m_1._xscale = (this.m_2._xscale = (this.m_3._xscale = this.nTemp)));
}
if (this.nTime == (this.nT / 2)) {
this.finish();
}
this.switchDepth();
};
break;
}
(_local4._width = _local7);
(_local4._height = _local9);
(_local4._x = _local12);
(_local4._y = _local11);
_local6.setMask(_local4);
}
static function disableBtn(_m) {
_m.onPress = null;
_m.enabled = false;
_m.hitArea = _root;
}
static function trigonometric(x, T, A, P) {
var _local2 = 0;
var _local1 = (Math.PI / T) * x;
if (!isNaN(P)) {
_local2 = P - _local1;
}
return(A * Math.sin(_local1 + _local2));
}
static function createClip(_s, _m, _nType, _nDepth, _ob) {
isNaN(_nDepth) && (_nDepth = _m.getNextHighestDepth());
isNaN(_nType) && (_nType = 0);
_m.createEmptyMovieClip(_s + _nDepth, _nDepth);
_m[_s + _nDepth].beginFill(0);
switch (_nType) {
case 0 :
_m[_s + _nDepth].lineTo(10, 0);
_m[_s + _nDepth].lineTo(10, 10);
_m[_s + _nDepth].lineTo(0, 10);
_m[_s + _nDepth].lineTo(0, 0);
break;
case 1 :
_m[_s + _nDepth].moveTo(-5, -5);
_m[_s + _nDepth].lineTo(-5, 5);
_m[_s + _nDepth].lineTo(5, 5);
_m[_s + _nDepth].lineTo(5, -5);
_m[_s + _nDepth].lineTo(-5, -5);
break;
case 2 :
_m[_s + _nDepth].lineTo(10, 0);
_m[_s + _nDepth].lineTo(0, 10);
_m[_s + _nDepth].lineTo(0, 0);
break;
}
_m[_s + _nDepth].endFill();
for (var _local5 in _ob) {
_m[_s + _nDepth][_local5] = _ob[_local5];
}
return(_m[_s + _nDepth]);
}
static var nColor = 0;
static var nInterval = 20;
}
Symbol 1194 MovieClip [__Packages.pzs.pf1.Jigsaw] Frame 0
class pzs.pf1.Jigsaw
{
var mArea, mName, userMouse, varOrder, w, h, mMap, dw, dh, ddw, ddh, dragLeft, dragTop, dragRight, dragBottom;
function Jigsaw (_mArea, _mName, pic_mc, _userMouse, picW, picH, _dw, _dh, _ddw, _ddh, wOrShape_array, _h) {
mArea = _mArea;
mName = _mName;
userMouse = _userMouse;
varOrder = 0;
if (typeof(wOrShape_array) == "number") {
w = wOrShape_array;
trace("w: " + w);
h = _h;
trace("h: " + h);
var _local11 = w;
var _local18 = 2 * h;
var _local7 = new Array(_local18 + 1);
trace("shape_array: " + _local7);
var _local5 = 0;
while (_local5 <= _local18) {
_local7[_local5] = new Array(_local11 + 1);
var _local4 = 0;
while (_local4 <= _local11) {
if ((((_local5 == 0) || (_local5 == _local18)) || ((_local4 == 0) && ((_local5 % 2) == 1))) || (_local4 == _local11)) {
_local7[_local5][_local4] = 0;
} else {
_local7[_local5][_local4] = (2 * random(2)) - 1;
}
_local4++;
}
_local5++;
}
} else {
var _local7 = wOrShape_array;
w = _local7[0].length - 1;
h = (_local7.length - 1) / 2;
}
mMap = new Array(h);
var _local3 = 0;
while (_local3 < h) {
mMap[_local3] = new Array(w);
var _local2 = 0;
while (_local2 < w) {
mMap[_local3][_local2] = "";
_local2++;
}
_local3++;
}
mArea.jigsaw = this;
dw = picW / w;
dh = picH / h;
var _local12 = dw / _dw;
var _local17 = dh / _dh;
ddw = _ddw * _local12;
ddh = _ddh * _local17;
mArea._x = dw / 2;
mArea._y = dh / 2;
var _local9 = dw + (ddw * 2);
var _local10 = dh + (ddh * 2);
var _local19 = new flash.display.BitmapData(picW, picH, false);
_local19.draw(pic_mc);
_local3 = 0;
while (_local3 < h) {
var _local2 = 0;
while (_local2 < w) {
var _local6 = mArea.attachMovie(mName, (("m" + _local3) + "_") + _local2, (_local3 * w) + _local2, {ox:_local2, oy:_local3, _x:_local2 * dw, _y:_local3 * dh, dXscale:_local12, dYscale:_local17});
var _local8 = new flash.display.BitmapData(_local9, _local10, false);
_local8.copyPixels(_local19, new flash.geom.Rectangle((_local2 * dw) - ddw, (_local3 * dh) - ddh, _local9, _local10), new flash.geom.Point(0, 0));
_local6.gotoAndStop((((41 - _local7[(_local3 * 2) + 1][_local2]) - (_local7[_local3 * 2][_local2] * 3)) + (_local7[(_local3 * 2) + 1][_local2 + 1] * 9)) + (_local7[(_local3 * 2) + 2][_local2] * 27));
_local6.bmp_mc.attachBitmap(_local8, 0);
_local6.bmp_mc._x = (-_local9) / 2;
_local6.bmp_mc._y = (-_local10) / 2;
_local6.filters = [new flash.filters.BevelFilter(2, 85, 16777215, 0.5, 0, 0.5, 10, 10, 2, 1)];
_local2++;
}
_local3++;
}
}
function disabledM(m) {
m.shape.enabled = false;
delete m.shape.onPress;
delete m.shape.onRelease;
delete m.shape.onRollOver;
delete m.shape.onRollOut;
delete m.shape.onReleaseOutside;
m.dragArea.enabled = false;
delete m.dragArea.onPress;
delete m.dragArea.onRelease;
delete m.dragArea.onRollOver;
delete m.dragArea.onRollOut;
delete m.dragArea.onReleaseOutside;
Mouse.show();
userMouse.gotoAndStop("blank");
}
function disorder(stageW, stageH) {
Mouse.show();
userMouse.gotoAndStop("blank");
userMouse.onEnterFrame = function () {
this._x = this._parent._xmouse;
this._y = this._parent._ymouse;
};
var _local10 = dw * w;
var _local13 = dh * h;
var _local12 = ((stageW - _local10) - dw) / 2;
var _local11 = ((stageH - _local13) - dh) / 2;
dragLeft = (mArea._x - _local12) - dw;
dragTop = (mArea._y - _local11) - dh;
dragRight = ((mArea._x + _local10) + _local12) - dw;
dragBottom = ((mArea._y + _local13) + _local11) - dh;
var _local9 = (((dragRight - dragLeft) - (dw * w)) - dw) / 2;
var _local8 = 0;
while (_local8 < h) {
var _local6 = 0;
while (_local6 < w) {
varOrder--;
var _local2 = mArea[(("m" + _local8) + "_") + _local6];
new mx.transitions.Tween(_local2, "_x", mx.transitions.easing.Strong.easeOut, _local2._x, ((random(2) * ((_local10 + _local9) + dw)) + dragLeft) + random(_local9), 6, false);
new mx.transitions.Tween(_local2, "_y", mx.transitions.easing.Strong.easeOut, _local2._y, random(dragBottom - dragTop) + dragTop, 6, false);
new mx.transitions.Tween(_local2, "_rotation", mx.transitions.easing.Strong.easeOut, 0, random(4) * 90, 6, false);
_local2.shape.onRollOver = function () {
this._parent._parent.jigsaw.userMouse.gotoAndStop("rotate");
this._parent.onEnterFrame = function () {
var _local2 = this._parent.jigsaw.userMouse;
if ((this._x - this._parent._xmouse) < 0) {
_local2._xscale = -100;
} else {
_local2._xscale = 100;
}
if ((this._y - this._parent._ymouse) < 0) {
_local2._yscale = -100;
} else {
_local2._yscale = 100;
}
};
};
_local2.shape.onRollOut = function () {
delete this._parent.onEnterFrame;
this._parent._parent.jigsaw.userMouse.gotoAndStop("blank");
};
_local2.shape.onPress = function () {
this._parent.swapDepths(this._parent._parent.getNextHighestDepth());
this._parent.x0 = this._parent._xmouse;
this._parent.y0 = this._parent._ymouse;
this._parent.da = 0;
this._parent.onEnterFrame = function () {
var _local2 = (Math.atan2(this._ymouse, this._xmouse) - Math.atan2(this.y0, this.x0)) * 57.2958;
if (_local2 != 0) {
this.da = _local2;
this._rotation = this._rotation + this.da;
}
this.x0 = this._xmouse;
this.y0 = this._ymouse;
};
};
_local2.shape.onRelease = function () {
stopDrag();
delete this._parent.onEnterFrame;
var _local2 = Math.round(this._parent._rotation / 90) * 90;
if ((Math.abs(_local2 - this._parent._rotation) > 30) && (((_local2 - this._parent._rotation) * this._parent.da) < 0)) {
if (this._parent.da < 0) {
_local2 = _local2 - 90;
} else {
_local2 = _local2 + 90;
}
}
if (_local2 == 0) {
var _local6 = this._parent._parent.jigsaw.dw;
var _local5 = this._parent._parent.jigsaw.dh;
var _local4 = Math.round(this._parent._x / _local6);
var _local3 = Math.round(this._parent._y / _local5);
if ((_local4 == this._parent.ox) && (_local3 == this._parent.oy)) {
this._parent._parent.jigsaw.mMap[_local3][_local4] = this._parent;
this._parent._parent.jigsaw.disabledM(this._parent);
this._parent._parent.jigsaw.putOne();
if ((++this._parent._parent.jigsaw.varOrder) >= 0) {
this._parent._parent.jigsaw.win();
}
new mx.transitions.Tween(this._parent, "_x", mx.transitions.easing.Strong.easeOut, this._parent._x, _local4 * _local6, 6, false);
new mx.transitions.Tween(this._parent, "_y", mx.transitions.easing.Strong.easeOut, this._parent._y, _local3 * _local5, 6, false);
}
}
new mx.transitions.Tween(this._parent, "_rotation", mx.transitions.easing.Strong.easeOut, this._parent._rotation, _local2, 6, false);
};
_local2.shape.onReleaseOutside = function () {
Mouse.show();
this._parent._parent.jigsaw.userMouse.gotoAndStop("blank");
this.onRelease();
};
_local2.dragArea.onRollOut = function () {
Mouse.show();
this._parent._parent.jigsaw.userMouse.gotoAndStop("blank");
};
_local2.dragArea.onRollOver = function () {
this._parent._parent.jigsaw.userMouse.gotoAndStop("move");
};
_local2.dragArea.onPress = function () {
this._parent.swapDepths(this._parent._parent.getNextHighestDepth());
var _local3 = Math.round(this._parent._x / this._parent._parent.jigsaw.dw);
var _local2 = Math.round(this._parent._y / this._parent._parent.jigsaw.dh);
if ((((_local3 >= 0) && (_local3 < this._parent._parent.jigsaw.w)) && (_local2 >= 0)) && (_local2 < this._parent._parent.jigsaw.h)) {
this._parent._parent.jigsaw.mMap[_local2][_local3] = "";
}
this._parent.x = this._parent._x;
this._parent.y = this._parent._y;
this._parent.startDrag(false, this._parent._parent.jigsaw.dragLeft, this._parent._parent.jigsaw.dragTop, this._parent._parent.jigsaw.dragRight, this._parent._parent.jigsaw.dragBottom);
};
_local2.dragArea.onRelease = (_local2.dragArea.onReleaseOutside = function () {
stopDrag();
delete this._parent.onEnterFrame;
var _local5 = this._parent._parent.jigsaw.dw;
var _local4 = this._parent._parent.jigsaw.dh;
var _local3 = Math.round(this._parent._x / _local5);
var _local2 = Math.round(this._parent._y / _local4);
if ((((_local3 >= 0) && (_local3 < this._parent._parent.jigsaw.w)) && (_local2 >= 0)) && (_local2 < this._parent._parent.jigsaw.h)) {
if (this._parent._parent.jigsaw.mMap[_local2][_local3] == "") {
if (((_local3 == this._parent.ox) && (_local2 == this._parent.oy)) && (this._parent._rotation == 0)) {
this._parent._parent.jigsaw.mMap[_local2][_local3] = this._parent;
this._parent._parent.jigsaw.disabledM(this._parent);
this._parent._parent.jigsaw.putOne();
if ((++this._parent._parent.jigsaw.varOrder) >= 0) {
this._parent._parent.jigsaw.win();
}
new mx.transitions.Tween(this._parent, "_x", mx.transitions.easing.Strong.easeOut, this._parent._x, _local3 * _local5, 6, false);
new mx.transitions.Tween(this._parent, "_y", mx.transitions.easing.Strong.easeOut, this._parent._y, _local2 * _local4, 6, false);
}
}
}
});
_local6++;
}
_local8++;
}
}
}
Symbol 1195 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 1196 MovieClip [__Packages.Sun] Frame 0
class Sun extends MovieClip
{
function Sun () {
super();
}
var step_sn = 0;
var step_arr = [4, 6, 7, 12];
var speed = 1;
}
Symbol 1197 MovieClip [__Packages.Cure_Bullet] Frame 0
class Cure_Bullet extends MovieClip
{
var target, onEnterFrame, my_type, _parent, swapDepths, removeMovieClip;
function Cure_Bullet () {
super();
trace(target);
onEnterFrame = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
this.run();
};
}
function run() {
walk_from_a_to_b(this, target);
}
function walk_from_a_to_b(_a, _b) {
var _local4;
var _local3;
var _local5;
_local4 = _b._x - _a._x;
_local3 = _b._y - _a._y;
_local5 = Math.atan2(_local3, _local4);
if ((Math.abs(_local4) + Math.abs(_local3)) <= 5) {
switch (my_type) {
case "red" :
_parent.red_stone.gotoAndPlay(2);
swapDepths(0);
removeMovieClip();
break;
case "blue" :
_parent.blue_stone.gotoAndPlay(2);
swapDepths(0);
removeMovieClip();
break;
case "green" :
_parent.green_stone.gotoAndPlay(2);
swapDepths(0);
removeMovieClip();
}
} else {
_a._x = _a._x + (_a.speed * Math.cos(_local5));
_a._y = _a._y + (_a.speed * Math.sin(_local5));
}
}
}
Symbol 1198 MovieClip [__Packages.Car] Frame 0
class Car extends MovieClip
{
function Car () {
super();
}
var speed = 1;
}
Symbol 1199 MovieClip [__Packages.Plant] Frame 0
class Plant extends MovieClip
{
function Plant () {
super();
}
var step_arr = [3, 5];
var step_sn = 0;
}
Symbol 1200 MovieClip [__Packages.Archeologist] Frame 0
class Archeologist extends MovieClip
{
var speed, body, onMouseDown;
function Archeologist () {
super();
speed = 1;
body.gotoAndStop(static_arr[0]);
onMouseDown = function () {
};
}
var static_arr = ["static", "run_hat", "walk"];
var step_sn = 0;
var step_arr = [1, 8, 17, 20, 23];
}
Symbol 1201 MovieClip [__Packages.Interface_Icon] Frame 0
class Interface_Icon extends MovieClip
{
var gotoAndStop, onPress;
function Interface_Icon () {
super();
gotoAndStop("gray");
onPress = function () {
var _local3 = this._name;
trace(_local3);
trace(this.step);
trace(Mystery_of_Easter_Island.SHOULD_RUN_STEP);
Global.GAME.mPage.mClip.tip_mc._visible = false;
Global.GAME.mPage.mClip.tip_mc.swapDepths(0);
Global.GAME.mPage.mClip.tip_mc.removeMovieClip();
switch (_local3) {
case "red_icon" :
if (Mystery_of_Easter_Island.CHECK_RIGHT(this)) {
if ((_global.pic == "green_btn") || (_global.pic == "blue_btn")) {
return(undefined);
}
Global.playSound("click_icon_sound");
var _local4 = this._parent.getNextHighestDepth();
var _local5 = this._parent.attachMovie("mouse_pic", "mouse_pic" + _local4, _local4, {_x:this._parent._xmouse, _y:this._parent._ymouse});
_local5.body.gotoAndStop("red_btn");
this.gotoAndStop("gray");
_global.pic = "red_btn";
Mouse.hide();
}
break;
case "blue_icon" :
if (Mystery_of_Easter_Island.CHECK_RIGHT(this)) {
if ((_global.pic == "red_btn") || (_global.pic == "green_btn")) {
return(undefined);
}
Global.playSound("click_icon_sound");
var _local4 = this._parent.getNextHighestDepth();
var _local5 = this._parent.attachMovie("mouse_pic", "mouse_pic" + _local4, _local4, {_x:this._parent._xmouse, _y:this._parent._ymouse});
_local5.body.gotoAndStop("blue_btn");
this.gotoAndStop("gray");
_global.pic = "blue_btn";
Mouse.hide();
}
break;
case "green_icon" :
if (!Mystery_of_Easter_Island.CHECK_RIGHT(this)) {
break;
}
if ((_global.pic == "red_btn") || (_global.pic == "blue_btn")) {
return(undefined);
}
Global.playSound("click_icon_sound");
var _local4 = this._parent.getNextHighestDepth();
var _local5 = this._parent.attachMovie("mouse_pic", "mouse_pic" + _local4, _local4, {_x:this._parent._xmouse, _y:this._parent._ymouse});
_local5.body.gotoAndStop("green_btn");
this.gotoAndStop("gray");
_global.pic = "green_btn";
Mouse.hide();
}
};
}
}
Symbol 1202 MovieClip [__Packages.Game_Run] Frame 0
class Game_Run extends MovieClip
{
var score_num, display_time, tip_mc, onEnterFrame, golden_stone, red_plant, blue_plant, green_plant, sun, car, dragon_print, big_stone, red_stone_man, red_hat, green_crystal, green_stone_man, blue_crystal, blue_stone_man, blue_stone, red_stone, green_stone, middle_turn, red_crystal, energy_ball, archeologist, sun_btn, energy_shooting, red_icon, blue_icon, green_icon, running_step_2, running_step_3_red, running_step_3_blue, running_step_3_green, running_step_4, running_step_9, running_step_16, running_step_21, attract_car, arrived_cure_place, running_step_18, running_step_18_2, arrived_reaction, golden_stone_point, red_plant_point, blue_plant_point, green_plant_point, dragon_print_point, getNextHighestDepth, attachMovie, car_point, cure_point, green_crystal_point, blue_crystal_point, running_step_24, red_crystal_point;
function Game_Run () {
super();
score_num.text = "0";
_global.pic = "nothing";
init_display_stage();
init_step_for_elements();
init_right_selected_for_elements();
init_running_step();
click_manager();
display_time.text = Common.formatTime(game_time);
tip_mc._visible = false;
_global.win = false;
onEnterFrame = function () {
if (Global.GAME.mPage.bPause) {
this.btm.enabled = false;
this.bts.enabled = false;
this.btq.enabled = false;
this.btmenu.enabled = false;
this.btm.toolTip = null;
this.bts.toolTip = null;
this.btq.toolTip = null;
this.btmenu.toolTip = null;
this.reset_btn.enabled = false;
this.red_icon.useHandCursor = false;
this.blue_icon.useHandCursor = false;
this.green_icon.useHandCursor = false;
} else {
this.red_icon.useHandCursor = true;
this.blue_icon.useHandCursor = true;
this.green_icon.useHandCursor = true;
this.btm.enabled = true;
this.bts.enabled = true;
this.btq.enabled = true;
this.btmenu.enabled = true;
this.btm.toolTip = "Music: " + (Global.GAME.mPage.btM.bGray ? "Off" : "On");
this.bts.toolTip = "Sound: " + (Global.GAME.mPage.btS.bGray ? "Off" : "On");
this.btq.toolTip = "Quality: " + _root._quality;
this.btmenu.toolTip = "Menu(Pause)";
this.reset_btn.enabled = true;
}
if (_global.win) {
return(undefined);
}
if ((--this.frame_rate) <= 0) {
this.frame_rate = 30;
this.game_time++;
this.display_time.text = Common.formatTime(this.game_time);
}
if (Global.GAME.mPage.bPause) {
return(undefined);
}
this.run();
};
}
function add_score() {
Global.GAME.nScore = Global.GAME.nScore + d_score;
if (game_time >= bonus_score) {
bonus_score = bonus_score + 200;
}
Global.GAME.nScore = Global.GAME.nScore + Math.round((1 / game_time) * bonus_score);
Global.GAME.mPage.mClip.score_num.text = Global.GAME.nScore;
}
function run() {
switch (Mystery_of_Easter_Island.SHOULD_RUN_STEP) {
case 1 :
break;
case 2 :
run_step_2();
break;
case 3 :
run_step_3();
break;
case 4 :
run_step_4();
break;
case 5 :
run_step_5();
break;
case 6 :
break;
case 7 :
run_step_7();
break;
case 9 :
run_step_9();
break;
case 10 :
run_step_10();
break;
case 11 :
run_step_11();
break;
case 12 :
run_step_12();
break;
case 13 :
run_step_13();
break;
case 14 :
run_step_14();
break;
case 15 :
run_step_15();
break;
case 16 :
run_step_16();
break;
case 17 :
run_step_17();
break;
case 18 :
run_step_18();
break;
case 19 :
run_step_19();
break;
case 20 :
run_step_20();
break;
case 21 :
run_step_21();
break;
case 22 :
run_step_22();
break;
case 23 :
run_step_23();
break;
case 24 :
run_step_24();
break;
case 25 :
run_step_25();
break;
case 26 :
run_step_26();
break;
case 27 :
run_step_27();
break;
case 28 :
run_step_28();
}
}
function init_display_stage() {
golden_stone.body.gotoAndStop("normal");
red_plant.body.gotoAndStop("normal");
blue_plant.body.gotoAndStop("normal");
green_plant.body.gotoAndStop("normal");
sun.body.gotoAndStop("normal");
car.body.gotoAndStop("normal");
dragon_print.body.gotoAndStop("normal");
big_stone.body.gotoAndStop("normal");
red_stone_man.body.gotoAndStop("normal");
red_hat.body.gotoAndStop("normal");
green_crystal.body.gotoAndStop("normal");
green_stone_man.body.gotoAndStop("normal");
blue_crystal.body.gotoAndStop("normal");
blue_stone_man.body.gotoAndStop("normal");
blue_stone._visible = false;
red_stone._visible = false;
green_stone._visible = false;
middle_turn._visible = false;
big_stone._visible = false;
red_crystal._visible = false;
red_crystal.body.gotoAndStop("normal");
energy_ball._visible = false;
energy_ball.gotoAndStop("normal");
}
function init_step_for_elements() {
archeologist.step = 1;
archeologist.tabEnabled = false;
golden_stone.step = 2;
golden_stone.tabEnabled = false;
red_plant.step = 3;
red_plant.tabEnabled = false;
blue_plant.step = 3;
blue_plant.tabEnabled = false;
green_plant.step = 3;
green_plant.tabEnabled = false;
sun.step = 4;
sun.tabEnabled = false;
sun_btn.step = 4;
sun_btn.tabEnabled = false;
energy_shooting.step = 7;
energy_shooting.tabEnabled = false;
car.step = 9;
car.tabEnabled = false;
blue_stone.step = 10;
blue_stone.tabEnabled = false;
red_stone.step = 10;
red_stone.tabEnabled = false;
green_stone.step = 10;
green_stone.tabEnabled = false;
dragon_print.step = 11;
dragon_print.tabEnabled = false;
big_stone.step = 14;
big_stone.tabEnabled = false;
red_hat.step = 16;
red_hat.tabEnabled = false;
green_crystal.step = 18;
green_crystal.tabEnabled = false;
green_stone_man.step = 19;
green_stone_man.tabEnabled = false;
blue_crystal.step = 21;
blue_crystal.tabEnabled = false;
blue_stone_man.step = 22;
blue_stone_man.tabEnabled = false;
red_crystal.step = 24;
red_crystal.tabEnabled = false;
red_icon.step = 25;
red_icon.tabEnabled = false;
blue_icon.step = 25;
blue_icon.tabEnabled = false;
green_icon.step = 25;
green_icon.tabEnabled = false;
energy_ball.step = 26;
energy_ball.tabEnabled = false;
}
function init_right_selected_for_elements() {
archeologist.right_selected = false;
golden_stone.right_selected = false;
red_plant.right_selected = false;
blue_plant.right_selected = false;
green_plant.right_selected = false;
dragon_print.right_selected = false;
sun.right_selected = false;
sun_btn.right_selected = false;
car.right_selected = false;
blue_stone.right_selected = false;
green_stone.right_selected = false;
red_stone.right_selected = false;
dragon_print.right_selected = false;
big_stone.right_selected = false;
red_hat.right_selected = false;
green_crystal.right_selected = false;
green_stone_man.right_selected = false;
blue_crystal.right_selected = false;
energy_ball.right_selected = false;
}
function init_running_step() {
running_step_2 = false;
running_step_3_red = false;
running_step_3_blue = false;
running_step_3_green = false;
running_step_4 = false;
running_step_9 = false;
running_step_16 = false;
running_step_21 = false;
attract_car = false;
arrived_cure_place = false;
running_step_18 = false;
running_step_18_2 = false;
}
function click_manager() {
energy_ball.onPress = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
trace(" \u80FD\u91CF\u7403:: " + this.step);
trace(" " + Mystery_of_Easter_Island.SHOULD_RUN_STEP);
if (Mystery_of_Easter_Island.CHECK_RIGHT(this)) {
trace(" \u662F\u5426\u5DF2\u9009\u4E2D " + this.right_selected);
if (this.right_selected) {
return(undefined);
}
this.right_selected = true;
this.gotoAndStop("bomb");
}
};
archeologist.onPress = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
if (this.my_state == "static") {
this.body.gotoAndStop(this.static_arr[1]);
}
if (Mystery_of_Easter_Island.CHECK_RIGHT(this)) {
Mystery_of_Easter_Island.SHOULD_RUN_STEP++;
Global.GAME.mPage.mClip.add_score();
trace(" \u8003\u53E4\u5B66\u5BB6 " + Mystery_of_Easter_Island.SHOULD_RUN_STEP);
this.step_sn++;
this.step = this.step_arr[this.step_sn];
}
};
golden_stone.onPress = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
if (Mystery_of_Easter_Island.CHECK_RIGHT(this)) {
if (this.right_selected) {
return(undefined);
}
this.right_selected = true;
this._parent.running_step_2 = true;
this._parent.archeologist.body.gotoAndStop("walk");
trace(" \u4E4B\u524D\u82F1\u96C4\u7684\u8F6C\u5411: " + this._parent.archeologist._xscale);
trace(" this._parent " + this._parent);
this._parent.change_archeologist_face(this._parent.golden_stone_point);
} else if (this.my_state == "normal") {
this.body.gotoAndStop("wrong_click");
}
};
red_plant.onPress = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
if (Mystery_of_Easter_Island.CHECK_RIGHT(this)) {
switch (this.step_sn) {
case 0 :
if (this.right_selected) {
return(undefined);
}
if (this._parent.running_step_3_blue || (this._parent.running_step_3_green)) {
return(undefined);
}
if (this._parent.archeologist.my_state != "static") {
return(undefined);
}
this.right_selected = true;
this._parent.running_step_3_red = true;
this._parent.archeologist.body.gotoAndStop("walk");
this._parent.change_archeologist_face(this._parent.red_plant_point);
break;
case 1 :
if (this._parent.sun.shoot_red) {
break;
}
this._parent.sun.shoot_red = true;
Global.playSound("8");
this._parent.sun.body.body.red_light.gotoAndPlay(2);
}
} else if (this.my_state == "normal") {
this.body.gotoAndStop("wrong_click");
}
};
blue_plant.onPress = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
if (Mystery_of_Easter_Island.CHECK_RIGHT(this)) {
switch (this.step_sn) {
case 0 :
if (this.right_selected) {
return(undefined);
}
if (this._parent.running_step_3_red || (this._parent.running_step_3_green)) {
return(undefined);
}
if (this._parent.archeologist.my_state != "static") {
return(undefined);
}
this.right_selected = true;
this._parent.running_step_3_blue = true;
this._parent.archeologist.body.gotoAndStop("walk");
this._parent.change_archeologist_face(this._parent.blue_plant_point);
break;
case 1 :
if (this._parent.sun.shoot_blue) {
break;
}
this._parent.sun.shoot_blue = true;
Global.playSound("8");
this._parent.sun.body.body.blue_light.gotoAndPlay(2);
}
} else if (this.my_state == "normal") {
this.body.gotoAndStop("wrong_click");
}
};
green_plant.onPress = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
if (Mystery_of_Easter_Island.CHECK_RIGHT(this)) {
switch (this.step_sn) {
case 0 :
if (this.right_selected) {
return(undefined);
}
if (this._parent.running_step_3_blue || (this._parent.running_step_3_red)) {
return(undefined);
}
if (this._parent.archeologist.my_state != "static") {
return(undefined);
}
this.right_selected = true;
this._parent.running_step_3_green = true;
this._parent.archeologist.body.gotoAndStop("walk");
this._parent.change_archeologist_face(this._parent.green_plant_point);
break;
case 1 :
if (this._parent.sun.shoot_green) {
break;
}
this._parent.sun.shoot_green = true;
Global.playSound("8");
this._parent.sun.body.body.green_light.gotoAndPlay(2);
}
} else if (this.my_state == "normal") {
this.body.gotoAndStop("wrong_click");
}
};
sun_btn.onPress = function () {
trace(" \u662F\u5426\u6682\u505C " + Global.GAME.mPage.bPause);
if (Global.GAME.mPage.bPause) {
return(undefined);
}
trace(" \u592A\u9633\u7684step:: " + this.step);
trace(" \u5F53\u524D\u6B65\u9AA4 " + Mystery_of_Easter_Island.SHOULD_RUN_STEP);
if (Mystery_of_Easter_Island.CHECK_RIGHT(this._parent.sun)) {
switch (this._parent.sun.step_sn) {
case 0 :
this._parent.running_step_4 = !this._parent.running_step_4;
Global.playSound("7");
break;
case 1 :
if (!this._parent.sun.add_pop_up) {
this._parent.sun.add_pop_up = true;
var _local2 = this._parent.getNextHighestDepth();
Global.GAME.mPage.bPause = true;
var _local3 = this._parent.attachMovie("Sun_Pop_Up", "Sun_Pop_Up" + _local2, _local2, {_x:345, _y:250});
}
break;
case 2 :
this._parent.sun.body.gotoAndStop("transform_shoot");
break;
case 3 :
this._parent.sun.body.gotoAndStop("smaller");
break;
case 4 :
}
}
};
car.onPress = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
if (Mystery_of_Easter_Island.CHECK_RIGHT(this)) {
if (this.right_selected) {
return(undefined);
}
this.right_selected = true;
this._parent.archeologist.body.gotoAndStop("walk");
this._parent.change_archeologist_face(this);
this._parent.running_step_9 = true;
} else if (this.my_state == "normal") {
this.body.gotoAndStop("wrong_click");
}
};
blue_stone.onPress = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
if (!this._visible) {
return(undefined);
}
if (Mystery_of_Easter_Island.CHECK_RIGHT(this)) {
if (!this._parent.attract_car) {
this._parent.attract_car = true;
this._parent.car.body.gotoAndStop("run_car");
}
if (Global.GAME.shooting_for_cure) {
if (this.have_shoot) {
return(undefined);
}
this.have_shoot = true;
Global.playSound("18");
var _local2 = ANLIK.get_me_in_target_local(this._parent.car.body.body.birth_point, this._parent);
var _local3 = this._parent.getNextHighestDepth();
this._parent.attachMovie("cure_bullet", "cure_bullet" + _local3, _local3, {_x:_local2.x, _y:_local2.y, target:this._parent.blue_plant_point_1, my_type:"blue", speed:2});
}
}
};
red_stone.onPress = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
if (!this._visible) {
return(undefined);
}
if (Mystery_of_Easter_Island.CHECK_RIGHT(this)) {
if (!this._parent.attract_car) {
this._parent.attract_car = true;
this._parent.car.body.gotoAndStop("run_car");
}
if (Global.GAME.shooting_for_cure) {
if (this.have_shoot) {
return(undefined);
}
this.have_shoot = true;
var _local2 = ANLIK.get_me_in_target_local(this._parent.car.body.body.birth_point, this._parent);
var _local3 = this._parent.getNextHighestDepth();
trace(this._parent);
trace(" red_stone_point:: " + this._parent.red_stone_point);
Global.playSound("18");
this._parent.attachMovie("cure_bullet", "cure_bullet" + _local3, _local3, {_x:_local2.x, _y:_local2.y, target:this._parent.red_plant_point_1, my_type:"red", speed:2});
}
}
};
green_stone.onPress = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
if (!this._visible) {
return(undefined);
}
if (Mystery_of_Easter_Island.CHECK_RIGHT(this)) {
if (!this._parent.attract_car) {
this._parent.attract_car = true;
this._parent.car.body.gotoAndStop("run_car");
}
if (Global.GAME.shooting_for_cure) {
if (this.have_shoot) {
return(undefined);
}
this.have_shoot = true;
var _local2 = ANLIK.get_me_in_target_local(this._parent.car.body.body.birth_point, this._parent);
var _local3 = this._parent.getNextHighestDepth();
Global.playSound("18");
this._parent.attachMovie("cure_bullet", "cure_bullet" + _local3, _local3, {_x:_local2.x, _y:_local2.y, my_type:"green", target:this._parent.green_plant_point_1, speed:2});
}
}
};
dragon_print.onPress = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
if (Mystery_of_Easter_Island.CHECK_RIGHT(this)) {
if (this.right_selected) {
return(undefined);
}
this.right_selected = true;
var _local5 = random(20) + 1;
_global.old_level = _local5;
var _local3 = this._parent.getNextHighestDepth();
Global.GAME.mPage.bPause = true;
var _local4 = this._parent.attachMovie("Pop_Up_2", "Pop_Up_2" + _local3, _local3, {_x:Stage.width / 2, _y:Stage.height / 2});
mx.transitions.TransitionManager.start(_local4, {type:mx.transitions.Iris, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.Strong.easeOut, startPoint:5, shape:mx.transitions.Iris.CIRCLE});
} else if (this.my_state == "normal") {
this.body.gotoAndStop("wrong_click");
}
};
big_stone.onPress = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
trace(Mystery_of_Easter_Island.SHOULD_RUN_STEP);
if (Mystery_of_Easter_Island.CHECK_RIGHT(this)) {
switch (this.step) {
case 14 :
this.body.gotoAndStop("English_animation");
this._parent.dragon_print.body.gotoAndStop("scanning_big_stone");
break;
case 15 :
if (_global.word_animation != undefined) {
break;
}
var _local3 = this._parent.getNextHighestDepth();
_global.word_animation = this._parent.attachMovie("word_animation", "word_animation" + _local3, _local3, {_x:0, _y:0});
}
} else if (this.my_state == "normal") {
this.body.gotoAndStop("wrong_click");
}
};
red_hat.onPress = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
if (Mystery_of_Easter_Island.CHECK_RIGHT(this)) {
this.body.gotoAndStop("raise_hat");
Mystery_of_Easter_Island.SHOULD_RUN_STEP++;
Global.GAME.mPage.mClip.add_score();
}
};
red_stone_man.onPress = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
if (this.my_state == "normal") {
this.body.gotoAndStop("wrong_click");
}
};
green_crystal.onPress = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
Global.playSound("click_crystal");
if (Mystery_of_Easter_Island.CHECK_RIGHT(this)) {
if (this.right_selected) {
return(undefined);
}
this.right_selected = true;
this._parent.archeologist.body.gotoAndStop("fly");
_global.old_position = {_x:120, _y:this._parent.archeologist._y};
this._parent.change_archeologist_face(this._parent.green_crystal_point);
this._parent.running_step_18 = true;
} else if (this.my_state == "normal") {
this.body.gotoAndStop("wrong_click");
}
};
green_stone_man.onPress = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
trace(" \u7EFF\u5E3D\u5B50\u4EBA:: " + this.step);
trace(" houhou " + Mystery_of_Easter_Island.SHOULD_RUN_STEP);
if (Mystery_of_Easter_Island.CHECK_RIGHT(this)) {
if (this.right_selected) {
return(undefined);
}
this.right_selected = true;
this.body.gotoAndStop("shake");
}
};
blue_crystal.onPress = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
Global.playSound("click_crystal");
if (Mystery_of_Easter_Island.CHECK_RIGHT(this)) {
if (this.right_selected) {
return(undefined);
}
this.right_selected = true;
this._parent.running_step_21 = true;
this._parent.archeologist.body.gotoAndStop("walk");
} else if (this._parent.my_state == "normal") {
this.body.gotoAndStop("wrong_click");
}
};
blue_stone_man.onPress = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
trace(this.blue_stone_man);
trace(" step " + this.step);
trace(" \u5F53\u524D\u5E03");
if (Mystery_of_Easter_Island.CHECK_RIGHT(this)) {
if (this.right_selected) {
return(undefined);
}
this.right_selected = true;
this.body.gotoAndStop("open_the_mouth");
Mystery_of_Easter_Island.SHOULD_RUN_STEP++;
Global.GAME.mPage.mClip.add_score();
} else if (this.my_state == "normal") {
this.body.gotoAndStop("wrong_click");
}
};
red_crystal.onPress = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
Global.playSound("click_crystal");
if (Mystery_of_Easter_Island.CHECK_RIGHT(this)) {
if (this.right_selected) {
return(undefined);
}
this.right_selected = true;
var _local2 = this._parent.dragon_print.getDepth() - 1;
this._parent.archeologist.swapDepths(_local2);
this._parent.archeologist.body.gotoAndStop("walk");
this._parent.running_step_24 = true;
} else if (this.my_state == "normal") {
this.body.gotoAndStop("wrong_click");
}
};
}
function walk_from_a_to_b(_a, _b) {
var _local4;
var _local3;
var _local5;
_local4 = _b._x - _a._x;
_local3 = _b._y - _a._y;
_local5 = Math.atan2(_local3, _local4);
if ((Math.abs(_local4) + Math.abs(_local3)) <= 5) {
arrived_reaction();
} else {
_a._x = _a._x + (_a.speed * Math.cos(_local5));
_a._y = _a._y + (_a.speed * Math.sin(_local5));
}
}
function run_step_2() {
if (running_step_2) {
walk_from_a_to_b(archeologist, golden_stone_point);
arrived_reaction = function () {
this.archeologist.body.gotoAndStop("using_electric_drill");
this.golden_stone.body.gotoAndStop("electricing");
this.running_step_2 = false;
};
}
if (Global.GAME.finished_step_2) {
Mystery_of_Easter_Island.SHOULD_RUN_STEP++;
Global.GAME.mPage.mClip.add_score();
}
}
function run_step_3() {
if (running_step_3_red) {
walk_from_a_to_b(archeologist, red_plant_point);
arrived_reaction = function () {
this.running_step_3_red = false;
this.archeologist.body.gotoAndStop("throw_stone_powder");
this.red_plant.body.gotoAndStop("golden");
};
} else if (running_step_3_blue) {
walk_from_a_to_b(archeologist, blue_plant_point);
arrived_reaction = function () {
this.running_step_3_blue = false;
this.archeologist.body.gotoAndStop("throw_stone_powder");
this.blue_plant.body.gotoAndStop("golden");
};
} else if (running_step_3_green) {
walk_from_a_to_b(archeologist, green_plant_point);
arrived_reaction = function () {
this.running_step_3_green = false;
this.archeologist.body.gotoAndStop("throw_stone_powder");
this.green_plant.body.gotoAndStop("golden");
};
}
if (Global.GAME.tree_num == 3) {
Global.GAME.finished_step_3 = true;
red_plant.body.gotoAndStop("scanning");
green_plant.body.gotoAndStop("scanning");
blue_plant.body.gotoAndStop("scanning");
}
if (Global.GAME.finished_step_3) {
red_plant.step_sn++;
red_plant.step = red_plant.step_arr[red_plant.step_sn];
blue_plant.step_sn++;
blue_plant.step = blue_plant.step_arr[blue_plant.step_sn];
green_plant.step_sn++;
green_plant.step = green_plant.step_arr[green_plant.step_sn];
Mystery_of_Easter_Island.SHOULD_RUN_STEP++;
Global.GAME.mPage.mClip.add_score();
}
}
function run_step_4() {
if (running_step_4) {
walk_from_a_to_b(sun, dragon_print_point);
sun_btn._x = sun._x;
sun_btn._y = sun._y;
arrived_reaction = function () {
Global.SOUND.stop();
this.running_step_4 = false;
Mystery_of_Easter_Island.SHOULD_RUN_STEP++;
Global.GAME.mPage.mClip.add_score();
this.sun.step_sn++;
this.sun.step = this.sun.step_arr[this.sun.step_sn];
this.sun_btn.step_sn++;
this.sun_btn.step = this.sun.step_arr[this.sun.step_sn];
this.sun.body.gotoAndStop("sun_shine");
};
}
}
function run_step_5() {
if (Global.GAME.tree_2_num == 3) {
red_plant.body.gotoAndStop("transform");
green_plant.body.gotoAndStop("transform");
blue_plant.body.gotoAndStop("transform");
Mystery_of_Easter_Island.SHOULD_RUN_STEP++;
Global.GAME.mPage.mClip.add_score();
}
}
function run_step_6() {
}
function run_step_7() {
if (Global.GAME.bomb_num == 3) {
red_plant.swapDepths(0);
var _local2 = getNextHighestDepth();
attachMovie("red_bomb", "red_bomb" + _local2, _local2, {_x:red_plant._x + 44.9, _y:red_plant._y - 18.1});
red_plant.removeMovieClip();
blue_plant.swapDepths(0);
_local2 = getNextHighestDepth();
attachMovie("blue_bomb", "blue_bomb" + _local2, _local2, {_x:blue_plant._x + 44.9, _y:blue_plant._y - 18.1});
blue_plant.removeMovieClip();
green_plant.swapDepths(0);
_local2 = getNextHighestDepth();
attachMovie("green_bomb", "green_bomb" + _local2, _local2, {_x:green_plant._x + 44.9, _y:green_plant._y - 18.1});
green_plant.removeMovieClip();
Mystery_of_Easter_Island.SHOULD_RUN_STEP++;
Global.GAME.mPage.mClip.add_score();
}
}
function run_step_8() {
}
function run_step_9() {
if (running_step_9) {
walk_from_a_to_b(archeologist, car_point);
arrived_reaction = function () {
this.running_step_9 = false;
this.car.body.gotoAndStop("in_the_car");
Mystery_of_Easter_Island.SHOULD_RUN_STEP++;
Global.GAME.mPage.mClip.add_score();
this.archeologist.body.gotoAndStop("static");
this.archeologist._visible = false;
};
}
}
function run_step_10() {
if (attract_car) {
if (!arrived_cure_place) {
walk_from_a_to_b(car, cure_point);
arrived_reaction = function () {
this.body.gotoAndStop("shoot");
this.arrived_cure_place = true;
};
}
}
if (arrived_cure_place) {
if (Global.GAME.raise_stone_num == 3) {
middle_turn._visible = true;
middle_turn.body.gotoAndPlay(2);
Global.GAME.raise_stone_num = undefined;
}
if (Global.GAME.shooting_for_cure) {
return(undefined);
}
car.body.gotoAndStop("shoot");
}
}
function run_step_11() {
}
function run_step_12() {
}
function run_step_13() {
}
function run_step_14() {
}
function run_step_15() {
}
function run_step_16() {
if (running_step_16) {
walk_from_a_to_b(archeologist, green_crystal_point);
arrived_reaction = function () {
Global.SOUND.stop();
this.running_step_16 = false;
};
}
}
function run_step_17() {
}
function run_step_18() {
if (running_step_18) {
walk_from_a_to_b(archeologist, green_crystal_point);
arrived_reaction = function () {
this.archeologist._xscale = this.archeologist._xscale * -1;
this.green_crystal.swapDepths(0);
this.green_crystal.removeMovieClip();
this.green_icon.gotoAndStop("green");
this.running_step_18 = false;
this.running_step_18_2 = true;
};
}
if (running_step_18_2) {
walk_from_a_to_b(archeologist, _global.old_position);
arrived_reaction = function () {
Global.SOUND.stop();
this.red_hat.body.gotoAndStop("fall_hat");
Mystery_of_Easter_Island.SHOULD_RUN_STEP++;
Global.GAME.mPage.mClip.add_score();
trace(" \u843D\u5730\u4E86 :: " + Mystery_of_Easter_Island.SHOULD_RUN_STEP);
this.running_step_18_2 = false;
this.archeologist.body.gotoAndStop("static");
};
}
}
function run_step_19() {
}
function run_step_20() {
}
function run_step_21() {
if (running_step_21) {
walk_from_a_to_b(archeologist, blue_crystal_point);
arrived_reaction = function () {
this.running_step_21 = false;
this.blue_icon.gotoAndStop("blue");
trace(this.blue_icon);
this.green_stone_man.body.gotoAndStop("shut_stone");
this.archeologist.body.gotoAndStop("static");
Mystery_of_Easter_Island.SHOULD_RUN_STEP++;
Global.GAME.mPage.mClip.add_score();
};
}
}
function run_step_22() {
}
function run_step_23() {
}
function run_step_24() {
if (running_step_24) {
walk_from_a_to_b(archeologist, red_crystal_point);
arrived_reaction = function () {
this.tip_mc._visible = true;
trace(" tip_mc " + this.tip_mc);
this.archeologist.body.gotoAndStop("static");
this.red_icon.gotoAndStop("red");
this.red_crystal.swapDepths(0);
this.red_crystal.removeMovieClip();
this.blue_stone_man.body.gotoAndStop("shut_up");
Mystery_of_Easter_Island.SHOULD_RUN_STEP++;
Global.GAME.mPage.mClip.add_score();
};
}
}
function run_step_25() {
trace(Global.GAME.add_eyes_num);
if (Global.GAME.add_eyes_num == 3) {
red_hat._visible = false;
red_stone_man.body.gotoAndStop("become");
blue_stone_man.body.gotoAndStop("become");
green_stone_man.body.gotoAndStop("become");
energy_ball._visible = true;
energy_ball.gotoAndStop("appear");
Global.GAME.add_eyes_num = undefined;
Mystery_of_Easter_Island.SHOULD_RUN_STEP++;
}
}
function run_step_26() {
}
function run_step_27() {
}
function run_step_28() {
}
function change_archeologist_face(mc) {
trace(mc._x);
trace(archeologist._x);
trace(mc._x > archeologist._x);
if (mc._x > archeologist._x) {
trace(archeologist._xscale);
if (archeologist._xscale == 100) {
archeologist._xscale = -100;
}
} else if (archeologist._xscale == -100) {
archeologist._xscale = 100;
}
}
var frame_rate = 30;
var game_time = 0;
var d_score = 50;
var bonus_score = 200;
}
Symbol 1203 MovieClip [__Packages.Common] Frame 0
class Common
{
function Common () {
}
static function enabledFor(_b, _m, _mHit, _nDepth) {
(_m == undefined) && (_m = _root);
(_mHit == undefined) && (_mHit = _root);
(_nDepth == undefined) && (_nDepth = _m.getNextHighestDepth());
if (_b) {
_m.createEmptyMovieClip("_mEnabled", _nDepth);
_m._mEnabled.enabled = false;
_m._mEnabled.hitArea = _mHit;
_m._mEnabled.onPress = null;
} else {
_m._mEnabled.removeMovieClip();
}
updateAfterEvent();
}
static function changeQ() {
switch (_root._quality) {
case "LOW" :
_root._quality = "MEDIUM";
return("MED");
case "MEDIUM" :
_root._quality = "HIGH";
break;
case "HIGH" :
_root._quality = "BEST";
break;
case "BEST" :
_root._quality = "LOW";
}
return(_root._quality);
}
static function getBmdHitRect(bg, obj) {
var _local2 = getContainBmd(bg, obj, 10, 10);
_root.attachBitmap(_local2, 0);
return(_local2.getColorBoundsRect(4294967295, 4278190080));
}
static function getContainBmd(bg, obj, bm1, bm2) {
var _local1 = obj.getBounds(obj);
var _local3 = new flash.geom.Rectangle(_local1.xMin, _local1.yMin, _local1.xMax - _local1.xMin, _local1.yMax - _local1.yMin);
var _local4 = new flash.display.BitmapData(_local3.width, _local3.height, true, 0);
var _local6 = bg.transform.concatenatedMatrix;
var _local2 = new flash.geom.Matrix(1, 0, 0, 1, -_local3.x, -_local3.y);
_local4.draw(obj, _local2, null, bm1);
_local2.tx = _local2.tx * -1;
_local2.ty = _local2.ty * -1;
var _local7 = obj.transform.concatenatedMatrix;
_local2.concat(_local7);
_local2.invert();
_local6.concat(_local2);
_local4.draw(bg, _local6, null, bm2);
return(_local4);
}
static function wink(_m, _T, _n) {
_m.nTemp_time = 0;
(_m.nT = _T);
(_m.nN = _n);
_m.stopWink = function () {
this._alpha = 100;
delete this.onEnterFrame;
delete this.nTemp_time;
delete this.nN;
delete this.nT;
};
_m.onEnterFrame = function () {
this.nTemp_time++;
this._alpha = 100 - Common.trigonometric(this.nTemp_time, this.nT, 100);
if (this.nTemp_time >= (this.nN * this.nT)) {
this.winkEnd();
this.stopWink();
}
};
}
static function addClip(_sId, _sName, _m, oBject, _nDepth) {
(_nDepth == undefined) && (_nDepth = _m.getNextHighestDepth());
(_sName == undefined) && (_sName = _sId);
return(_m.attachMovie(_sId, _sName + _nDepth, _nDepth, oBject));
}
static function clearAllClip(_m, _bAll) {
for (var _local3 in _m) {
if (_bAll) {
_m[_local3].swapDepths(0);
}
_m[_local3].removeMovieClip();
}
}
static function removeFixMc(mc) {
mc.swapDepths(mc._parent.getNextHighestDepth());
mc.removeMovieClip();
}
static function localToLocal(p, mc1, mc2) {
mc1.localToGlobal(p);
mc2.globalToLocal(p);
}
static function np(_n) {
(_n == undefined) && (_n = 1);
return(((random(2) > 0) ? (_n) : (-_n)));
}
static function rdm_2(a, b) {
return((Math.random() * (b - a)) + a);
}
static function rdm_0(a, l) {
return((a - (Math.random() * l)) + (l / 2));
}
static function rdm_a(a1, a2, A) {
var _local3 = 0;
var _local5 = Math.random();
var _local4 = 0;
var _local2 = A.concat();
for (var _local6 in _local2) {
var _local1 = 0;
while (_local1 < Number(_local6)) {
_local2[_local6] = _local2[_local6] + _local2[_local1];
_local1++;
}
(_local3 < _local2[_local6]) && (_local3 = _local2[_local6]);
_local2[_local6] = _local2[_local6] / _local3;
if (_local5 >= _local2[_local6]) {
_local4 = Number(_local6) + 1;
break;
}
}
return(a1 + ((_local4 * (a2 - a1)) / (_local2.length - 1)));
}
static function formatNumber(_n, _nMin, _nMax) {
if (_n < _nMin) {
_n = _nMin;
} else if (_n > _nMax) {
_n = _nMax;
}
return(_n);
}
static function randomFrame(_m) {
_m.gotoAndStop(random(_m._totalframes) + 1);
}
static function disorder(arr) {
var _local5 = arr.length;
var _local1 = 0;
while (_local1 < _local5) {
var _local3 = random(_local5);
var _local4 = arr[_local1];
arr[_local1] = arr[_local3];
arr[_local3] = _local4;
_local1++;
}
}
static function removeArray(_a, _ai) {
for (var _local2 in _a) {
if (_a[_local2] == _ai) {
_a.splice(int(_local2), 1);
return(-1);
}
}
return(((_local2 == undefined) ? 0 : 1));
}
static function removeFromArray(_a, _ai) {
for (var _local3 in _a) {
if (_a[_local3] == _ai) {
_a.splice(int(_local3), 1);
}
}
}
static function forIn(_a, _s, _b, _ob) {
var _local2 = [];
for (var _local5 in _a) {
if (((_a[_local5] == undefined) || (!_a[_local5][_s](_ob))) && (_b)) {
_local2.push(_local5);
}
}
if (_b) {
for (var _local5 in _local2) {
_a.splice(int(_local2[_local5]), 1);
}
}
}
static function distance(x0, y0, xt, yt) {
return(Math.sqrt(Math.pow(xt - x0, 2) + Math.pow(yt - y0, 2)));
}
static function side_min(x0, y0, xt, yt) {
var _local2 = xt - x0;
(_local2 < 0) && (_local2 = -_local2);
var _local1 = yt - y0;
(_local1 < 0) && (_local1 = -_local1);
return(Math.min(_local2, _local1));
}
static function side_max(x0, y0, xt, yt) {
var _local2 = xt - x0;
(_local2 < 0) && (_local2 = -_local2);
var _local1 = yt - y0;
(_local1 < 0) && (_local1 = -_local1);
return(Math.max(_local2, _local1));
}
static function rFloor(r) {
if (r >= Math.PI) {
r = r - (Math.PI*2);
}
if (r <= -3.14159265358979) {
r = r + (Math.PI*2);
}
return(r);
}
static function rFloor_n(r) {
if (r >= 180) {
r = r - 360;
}
if (r <= -180) {
r = r + 360;
}
return(r);
}
static function s_b(n, a, b) {
if ((a < n) && (n < b)) {
return(0);
}
if (n <= a) {
return(-1);
}
return(1);
}
static function vpNum(_n, _t) {
(_t == undefined) && (_t = 1);
if (_n == 0) {
return(0);
}
if (_n > 0) {
return(_t);
}
return(-_t);
}
static function formatTime(_n) {
var _local3;
var _local4;
var _local2;
if (_n < 60) {
_local3 = 0;
_local4 = _local3;
_local2 = _n;
} else if (_n < 3600) {
_local3 = 0;
_local4 = Math.floor(_n / 60);
_local2 = _n % 60;
} else {
_local3 = Math.floor(_n / 3600);
_local4 = Math.floor(_n / 60) % 60;
_local2 = _n % 60;
}
var _local5 = ((_local3 < 10) ? ("0" + _local3) : (_local3));
var _local7 = ((_local4 < 10) ? ("0" + _local4) : (_local4));
var _local6 = ((_local2 < 10) ? ("0" + _local2) : (_local2));
return((((_local5 + ":") + _local7) + ":") + _local6);
}
static function trigonometric(x, T, A) {
var _local1 = (Math.PI / T) * x;
return(A * Math.sin(_local1));
}
static function unlinearCycle(x, T, r) {
var _local1 = T / 2;
x = x % T;
return(r - ((r / (_local1 * _local1)) * Math.pow(x - _local1, 2)));
}
static function linearCycle(x, T, r) {
var _local1 = T / 2;
x = x % T;
if (x > _local1) {
return((1 - ((x % _local1) / _local1)) * r);
}
if (x < _local1) {
return(((x % _local1) / _local1) * r);
}
return(r);
}
static function linearCycle_c(x, T, r) {
var _local1 = T / 2;
x = x % T;
if (x > _local1) {
return(r - ((r / (_local1 * _local1)) * Math.pow(x - _local1, 2)));
}
x = x + _local1;
return((r / (_local1 * _local1)) * Math.pow(x - _local1, 2));
}
static function getRadian(_m1, _m2) {
if (_m1._parent == _m2._parent) {
return(Math.atan2(_m1._y - _m2._y, _m1._x - _m2._x));
}
}
static function parabolaSpeed(x0, y0, xt, yt, nR, nG) {
var _local1 = xt - x0;
var _local2 = yt - y0;
return(Math.sqrt((((nG * _local1) / (Math.tan(nR) - (_local2 / _local1))) / Math.pow(Math.cos(nR), 2)) / 2));
}
static function parabolaRot(x0, y0, xt, yt, nV, nG) {
var _local5 = xt - x0;
var _local7 = yt - y0;
var _local2 = ((nG * _local5) * _local5) / ((2 * nV) * nV);
var _local1 = _local5;
var _local6 = _local2 - _local7;
var _local4 = (_local1 * _local1) - ((4 * _local2) * _local6);
if (_local4 < 0) {
trace("\u56E0\u4E3A\u76EE\u6807\u592A\u9AD8\u6216\u592A\u8FDC\u65E0\u6CD5\u6253\u5230");
return(undefined);
}
var _local3 = new Object();
if (_local5 > 0) {
_local3.x2 = Math.atan(((-_local1) - Math.sqrt(_local4)) / (2 * _local2));
_local3.x1 = Math.atan(((-_local1) + Math.sqrt(_local4)) / (2 * _local2));
} else {
_local3.x1 = Math.atan(((-_local1) - Math.sqrt(_local4)) / (2 * _local2)) - Math.PI;
_local3.x2 = Math.atan(((-_local1) + Math.sqrt(_local4)) / (2 * _local2)) - Math.PI;
}
return(_local3);
}
static function crossPoint(x0, y0, xt, yt, _mHit, _nMin) {
isNaN(_nMin) && (_nMin = 1);
var _local3 = false;
var _local4 = int(distance(x0, y0, xt, yt));
var _local12;
var _local11;
_local12 = ((xt - x0) / _local4) * _nMin;
_local11 = ((yt - y0) / _local4) * _nMin;
xt = x0;
yt = y0;
var _local5 = 0;
while ((!_local3) && ((_local5++) < _local4)) {
x0 = x0 + _local12;
y0 = y0 + _local11;
_local3 = _mHit.hitTest(x0, y0, true);
}
(!_local3) && (x0 = xty0 = yt);
return({x:x0, y:y0, bHit:_local3});
}
static function crossPoint_tf(x0, y0, xt, yt, _mHit, _ob) {
var _local12 = 5;
var _local1 = false;
var _local5 = int(distance(x0, y0, xt, yt));
var _local10;
var _local9;
_local10 = ((xt - x0) / _local5) * _local12;
_local9 = ((yt - y0) / _local5) * _local12;
xt = x0;
yt = y0;
var _local8 = 0;
while ((!_local1) && ((_local8++) < _local5)) {
x0 = x0 + _local10;
y0 = y0 + _local9;
_local1 = _mHit.hitTest(x0, y0, true);
if (_local1) {
(_ob.x = xt - x0);
(_ob.y = yt - y0);
(_ob.bHit = _local1);
}
}
}
static function closePoint(x0, y0, xt, yt, _mHit, _nMin) {
isNaN(_nMin) && (_nMin = 2);
var _local6 = false;
var _local5 = 1;
var _local12;
var _local11;
var _local8 = 0;
while ((side_max(x0, y0, xt, yt) > _nMin) && ((_local8++) < 100)) {
_local12 = (x0 + xt) / 2;
_local11 = (y0 + yt) / 2;
_local5 = (_mHit.hitTest(_local12, _local11, true) ? (_local6 = true-1) : 1);
if (_local5 > 0) {
x0 = _local12;
y0 = _local11;
} else {
xt = _local12;
yt = _local11;
}
}
return({x:x0, y:y0, bHit:_local6});
}
static function deepObjectCopy(obj) {
if ((((typeof(obj) != "object") || (obj instanceof Button)) || (obj instanceof TextField)) || (obj instanceof MovieClip)) {
return(obj);
}
var _local3;
if (obj instanceof Boolean) {
_local3 = new Boolean(Boolean.prototype.valueOf.call(obj));
} else if (obj instanceof Number) {
_local3 = new Number(Number.prototype.valueOf.call(obj));
} else if (obj instanceof String) {
_local3 = new String(String.prototype.valueOf.call(obj));
} else if (obj.__constructor__) {
if (typeof(obj.clone) == "function") {
_local3 = obj.clone();
if (_local3.__proto__ == obj.__proto__) {
return(_local3);
}
}
_local3 = new obj.__constructor__();
} else if (obj instanceof Array) {
_local3 = [];
} else {
_local3 = {};
}
for (var _local4 in obj) {
if (obj.hasOwnProperty(_local4)) {
_local3[_local4] = arguments.callee(obj[_local4]);
}
}
return(_local3);
}
static var a2r = 57.2957795130823;
}
Symbol 1204 MovieClip [__Packages.mx.transitions.Iris] Frame 0
class mx.transitions.Iris extends mx.transitions.Transition
{
var _maxDimension, _width, _height, _minDimension, _cornerMode, _content, _mask, getNextHighestDepthMC, __get__direction, _innerBounds, drawCircle, drawBox;
function Iris (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function init(content, transParams, manager) {
super.init(content, transParams, manager);
if (transParams.startPoint) {
_startPoint = transParams.startPoint;
}
if (transParams.shape != undefined) {
_shape = transParams.shape;
}
_maxDimension = Math.max(_width, _height);
_minDimension = Math.min(_width, _height);
if (_startPoint % 2) {
_cornerMode = true;
}
if (_shape == "SQUARE") {
if (_cornerMode) {
_render = _renderSquareCorner;
} else {
_render = _renderSquareEdge;
}
} else if (_shape == "CIRCLE") {
_render = _renderCircle;
}
_initMask();
}
function start() {
_content.setMask(_mask);
super.start();
}
function cleanUp() {
_mask.removeMovieClip();
super.cleanUp();
}
function _initMask() {
var _local4 = _content;
var _local5 = getNextHighestDepthMC(_local4);
var _local2 = (_mask = _local4.createEmptyMovieClip("__mask_Iris_" + __get__direction(), _local5));
_local2._visible = false;
var _local3 = _innerBounds;
switch (_startPoint) {
case 1 :
_local2._x = _local3.xMin;
_local2._y = _local3.yMin;
break;
case 4 :
_local2._x = _local3.xMin;
_local2._y = (_local3.yMin + _local3.yMax) * 0.5;
break;
case 3 :
_local2._rotation = 90;
_local2._x = _local3.xMax;
_local2._y = _local3.yMin;
break;
case 2 :
_local2._rotation = 90;
_local2._x = (_local3.xMin + _local3.xMax) * 0.5;
_local2._y = _local3.yMin;
break;
case 9 :
_local2._rotation = 180;
_local2._x = _local3.xMax;
_local2._y = _local3.yMax;
break;
case 6 :
_local2._rotation = 180;
_local2._x = _local3.xMax;
_local2._y = (_local3.yMin + _local3.yMax) * 0.5;
break;
case 7 :
_local2._rotation = -90;
_local2._x = _local3.xMin;
_local2._y = _local3.yMax;
break;
case 8 :
_local2._rotation = -90;
_local2._x = (_local3.xMin + _local3.xMax) * 0.5;
_local2._y = _local3.yMax;
break;
case 5 :
_local2._x = (_local3.xMin + _local3.xMax) * 0.5;
_local2._y = (_local3.yMin + _local3.yMax) * 0.5;
break;
}
}
function _render(p) {
}
function _renderCircle(p) {
var _local2 = _mask;
_local2.clear();
_local2.beginFill(16711680);
if (_startPoint == 5) {
var _local4 = 0.5 * Math.sqrt((_width * _width) + (_height * _height));
drawCircle(_local2, 0, 0, p * _local4);
} else if (_cornerMode) {
var _local4 = Math.sqrt((_width * _width) + (_height * _height));
_drawQuarterCircle(_local2, p * _local4);
} else {
if ((_startPoint == 4) || (_startPoint == 6)) {
var _local4 = Math.sqrt((_width * _width) + ((0.25 * _height) * _height));
} else if ((_startPoint == 2) || (_startPoint == 8)) {
var _local4 = Math.sqrt(((0.25 * _width) * _width) + (_height * _height));
}
_drawHalfCircle(_local2, p * _local4);
}
_local2.endFill();
}
function _drawQuarterCircle(mc, r) {
var _local3 = 0;
var _local2 = 0;
mc.lineTo(r, 0);
mc.curveTo(r + _local3, (0.414213562373095 * r) + _local2, (0.707106781186547 * r) + _local3, (0.707106781186547 * r) + _local2);
mc.curveTo((0.414213562373095 * r) + _local3, r + _local2, _local3, r + _local2);
}
function _drawHalfCircle(mc, r) {
var _local3 = 0;
var _local2 = 0;
mc.lineTo(0, -r);
mc.curveTo((0.414213562373095 * r) + _local3, (-r) + _local2, (0.707106781186547 * r) + _local3, (-0.707106781186547 * r) + _local2);
mc.curveTo(r + _local3, (-0.414213562373095 * r) + _local2, r + _local3, _local2);
mc.curveTo(r + _local3, (0.414213562373095 * r) + _local2, (0.707106781186547 * r) + _local3, (0.707106781186547 * r) + _local2);
mc.curveTo((0.414213562373095 * r) + _local3, r + _local2, _local3, r + _local2);
mc.lineTo(0, 0);
}
function _renderSquareEdge(p) {
var _local2 = _mask;
_local2.clear();
_local2.beginFill(16711680);
var _local5 = _startPoint;
var _local6 = p * _width;
var _local4 = p * _height;
var _local3 = p * _maxDimension;
if ((_local5 == 4) || (_local5 == 6)) {
drawBox(_local2, 0, -0.5 * _local4, _local6, _local4);
} else if (_height < _width) {
drawBox(_local2, 0, -0.5 * _local3, _local4, _local6);
} else {
drawBox(_local2, 0, -0.5 * _local3, _local3, _local3);
}
_local2.endFill();
}
function _renderSquareCorner(p) {
var _local2 = _mask;
_local2.clear();
_local2.beginFill(16711680);
var _local5 = _startPoint;
var _local4 = p * _width;
var _local3 = p * _height;
if (_local5 == 5) {
drawBox(_local2, -0.5 * _local4, -0.5 * _local3, _local4, _local3);
} else if ((_local5 == 3) || (_local5 == 7)) {
drawBox(_local2, 0, 0, _local3, _local4);
} else {
drawBox(_local2, 0, 0, _local4, _local3);
}
_local2.endFill();
}
static var version = "1.1.0.52";
static var SQUARE = "SQUARE";
static var CIRCLE = "CIRCLE";
var type = mx.transitions.Iris;
var className = "Iris";
var _startPoint = 5;
var _shape = "SQUARE";
}
Symbol 1205 MovieClip [__Packages.Game] Frame 0
class Game extends MovieClip
{
var _visible, _x, _y, mLogo, mPage, attachMovie, getNextHighestDepth;
function Game () {
super();
}
function get nScore() {
return(__nScore);
}
function set nScore(_nScore) {
__nScore = int(_nScore);
(__nScore < 0) && ((__nScore = 0));
//return(nScore);
}
function inFrame() {
_root.stop();
stopAllSounds();
_visible = false;
_x = (_y = 0);
clearAllMc(_root);
clearAllMc(this);
Global.GAME = this;
Global.SOUND = new Sound(this);
Global.MUSIC = new Sound(_root.createEmptyMovieClip("mMusic", _root.getNextHighestDepth()));
mLogo._xscale = (mLogo._yscale = 80);
mLogo._x = int((Global.WIDTH - mLogo._width) - 10);
mLogo._y = 10;
mLogo.swapDepths(1);
goto("begin_ani");
_visible = true;
}
function goto(_s) {
if (mPage._name != _s) {
Fade.start();
mPage.remove();
mPage = attachMovie("page.Page_" + _s, _s, 0);
if (_s == "playing") {
mLogo._visible = false;
} else {
mLogo._visible = true;
}
if (((_s == "playing") || (_s == "help")) || (_s == "menu")) {
Global.playMusic("sdMusic", 0, 99999);
}
}
}
function firstPlay() {
attachMovie("common.PopUp", "PopUp_saveing", getNextHighestDepth(), {sFrame:"message", aSt:["Loading..."], _nTime:40, onEnterFrame:function () {
this._nTime--;
if (this._nTime <= 0) {
Global.SAVE(1, "nTimes_play");
Global.GAME.goto("help");
this.remove();
}
}});
}
function newGame() {
Mystery_of_Easter_Island.SHOULD_RUN_STEP = 1;
Global.GAME.tree_num = 0;
Global.GAME.tree_2_num = 0;
Global.GAME.bomb_num = 0;
Global.GAME.finished_step_2 = false;
Global.GAME.finished_step_3 = false;
Global.GAME.shooting_for_cure = false;
Global.GAME.raise_stone_num = 0;
Global.GAME.add_eyes_num = 0;
Global.GAME.pages = 0;
Global.GAME.use_reset = false;
nScore = (0);
bGameEnd = false;
goto("playing");
}
function loadGame() {
bGameEnd = false;
attachMovie("common.PopUp", "PopUp_loading", getNextHighestDepth(), {sFrame:"message", aSt:["loading..."], _nTime:40, onEnterFrame:function () {
this._nTime--;
if (this._nTime <= 0) {
this.remove();
}
}});
}
function saveGame() {
attachMovie("common.PopUp", "PopUp_saveing", getNextHighestDepth(), {sFrame:"message", aSt:["Saving game..."], _nTime:40, onEnterFrame:function () {
this._nTime--;
if (this._nTime <= 0) {
this.remove();
}
}});
}
function nextLevel() {
bGameEnd = false;
goto("playing");
}
function tryAgain() {
nScore = nScore * 0.7;
bGameEnd = false;
goto("playing");
}
function gameWin() {
if (!bGameEnd) {
bGameEnd = true;
if (nLevel >= 10) {
goto("gamewin");
} else {
goto("nextlevel");
}
}
}
function gameOver() {
if (!bGameEnd) {
bGameEnd = true;
goto("gameover");
}
}
function clearAllMc(_m) {
for (var _local2 in _m) {
_m[_local2].removeMovieClip();
}
}
var __nScore = 0;
var bGameEnd = false;
var nLevel = 0;
var finished_step_2 = false;
var finished_step_3 = false;
var tree_num = 0;
var tree_2_num = 0;
var bomb_num = 0;
var raise_stone_num = 0;
var add_eyes_num = 0;
var pages = 0;
var first_play = true;
var use_reset = false;
}
Symbol 1206 MovieClip [__Packages.common.PopUp] Frame 0
class common.PopUp extends MovieClip
{
var _visible, sFrame, attachMovie, aSt, nextFrame, nWidth, bt_N, bt_Y, tT_0, nHeight, tT_2, tT_1, bt_LOW, bt_MEDIUM, bt_HIGH, bt_BEST, mFlag_q, _x, _y, stop, swapDepths, _parent, removeMovieClip, bt_X, mBar, createEmptyMovieClip;
function PopUp () {
super();
_visible = false;
}
function init() {
switch (sFrame) {
case "y_n" :
attachMovie("common.Btn", "bt_X", 10, {sTxt:"X", sAutoSize:"right", bMask:true});
attachMovie("common.Btn", "bt_Y", 9, {sTxt:((aSt[1] == undefined) ? "YES" : (aSt[1]))});
attachMovie("common.Btn", "bt_N", 8, {sTxt:((aSt[2] == undefined) ? "NO" : (aSt[2])), sAutoSize:"right"});
attachMovie("common.Txt", "tT_0", 7, {sTxt:((aSt[0] == undefined) ? "TXT" : (aSt[0])), obCustom:{bCustom:true, multiline:true, wordWrap:true}});
break;
case "ok" :
attachMovie("common.Btn", "bt_X", 10, {sTxt:"X", sAutoSize:"right", bMask:true});
attachMovie("common.Btn", "bt_Y", 9, {sTxt:((aSt[1] == undefined) ? "OK" : (aSt[1])), sAutoSize:"center"});
attachMovie("common.Txt", "tT_0", 7, {sTxt:((aSt[0] == undefined) ? "TXT" : (aSt[0])), obCustom:{bCustom:true, multiline:true, wordWrap:true}});
break;
case "submit" :
attachMovie("common.Btn", "bt_X", 10, {sTxt:"X", sAutoSize:"right", bMask:true});
attachMovie("common.Btn", "bt_Y", 9, {sTxt:"SUBMIT", sAutoSize:"center"});
attachMovie("common.Txt", "tT_0", 8, {sTxt:"NAME:"});
attachMovie("common.Txt", "tT_1", 7, {sTxt:"SCORE: " + ((aSt[1] == undefined) ? 0 : (int(aSt[1])))});
attachMovie("common.Txt", "tT_2", 6, {_sTxt:((aSt[0] == undefined) ? "YOUR NAME" : (aSt[0])), obCustom:{bCustom:true, type:"input", selectable:true, maxChars:9, restrict:"^ ", border:true, borderColor:16777215}});
break;
case "message" :
attachMovie("common.Txt", "tT_0", 10, {sTxt:((aSt[0] == undefined) ? "Message" : (aSt[0])), sAlign:"center"});
break;
case "quality" :
attachMovie("common.Btn", "bt_X", 10, {sTxt:"X", sAutoSize:"right", bMask:true});
attachMovie("mFlag_q", "mFlag_q", 9);
attachMovie("common.Txt", "tT_0", 8, {sTxt:"QUALITY", sAlign:"center"});
attachMovie("common.Btn", "bt_LOW", 7, {sTxt:"LOW", sAutoSize:"center"});
attachMovie("common.Btn", "bt_MEDIUM", 6, {sTxt:"MEDIUM", sAutoSize:"center"});
attachMovie("common.Btn", "bt_HIGH", 5, {sTxt:"HIGH", sAutoSize:"center"});
attachMovie("common.Btn", "bt_BEST", 4, {sTxt:"BEST", sAutoSize:"center"});
break;
default :
remove();
}
nextFrame();
}
function inShow() {
switch (sFrame) {
case "y_n" :
nWidth = int(Math.max(nWidth_max, (bt_Y._width + bt_N._width) + (nOffset_x * 3)));
trace((bt_Y._width + " , ") + bt_N._width);
bt_Y._x = int((((-nWidth) / 2) + nOffset_x) + nBorder);
bt_N._x = int(((nWidth / 2) - nOffset_x) - nBorder);
tT_0.tTxt._width = nWidth - nOffset_x;
tT_0.replace();
tT_0._x = (-tT_0.tTxt.textWidth) / 2;
nHeight = int(Math.max(nHeight_max, tT_0.tTxt.textHeight + (nOffset_y * 3)));
bt_Y._y = (bt_N._y = int(((nHeight / 2) - nOffset_y) - nBorder));
tT_0._y = -int((nOffset_y / 2) + (tT_0.tTxt.textHeight / 2));
bt_Y.press = function () {
if (this._parent.callBack(true)) {
this._parent.remove();
}
};
bt_N.press = function () {
this._parent.callBack(false);
this._parent.remove();
};
break;
case "ok" :
nWidth = nWidth_max;
tT_0.tTxt._width = nWidth - nOffset_x;
tT_0.replace();
tT_0._x = (-tT_0.tTxt.textWidth) / 2;
nHeight = int(Math.max(nHeight_max, tT_0.tTxt.textHeight + (nOffset_y * 3)));
bt_Y._y = int(((nHeight / 2) - nOffset_y) - nBorder);
tT_0._y = -int((nOffset_y / 2) + (tT_0.tTxt.textHeight / 2));
bt_Y.press = function () {
this._parent.callBack(true);
this._parent.remove();
};
break;
case "submit" :
nWidth = int(Math.max(nWidth_max, (tT_1.tTxt.textWidth + tT_2.tTxt.textWidth) + (nOffset_x * 2)));
tT_0._x = (tT_1._x = int(((-nWidth) / 2) + nOffset_x));
tT_2._x = (tT_0._x + tT_0.tTxt.textWidth) + 15;
nHeight = int(nOffset_y * 5);
bt_Y._y = int(((nHeight / 2) - nOffset_y) - nBorder);
tT_0._y = int(((-nHeight) / 2) + nOffset_y);
tT_1._y = int(((-nHeight) / 2) + (nOffset_y * 2));
tT_2._y = int(((-nHeight) / 2) + nOffset_y);
bt_Y.press = function () {
this._parent.SUBMIT(this._parent.tT_2.tTxt.text, int(this._parent.aSt[1]));
};
break;
case "message" :
nWidth = nWidth_max;
tT_0.tTxt._width = nWidth - nOffset_x;
tT_0.replace();
nHeight = int(Math.max(nHeight_max, tT_0.tTxt.textHeight + (nOffset_y * 2)));
tT_0._y = -int((nOffset_y / 2) + (tT_0.tTxt.textHeight / 2));
break;
case "quality" :
nWidth = tT_0.tTxt.textWidth + (2 * nOffset_x);
nHeight = int(Math.max(nHeight_max, (5 * tT_0.tTxt.textHeight) + (nOffset_y * 4.5)));
tT_0._y = -2 * nOffset_y;
bt_LOW._y = -nOffset_y;
bt_MEDIUM._y = 0;
bt_HIGH._y = nOffset_y;
bt_BEST._y = 2 * nOffset_y;
this["bt_" + _root._quality].bGray = true;
mFlag_q._y = this["bt_" + _root._quality]._y + int(this["bt_" + _root._quality].tTxt._height / 2);
bt_LOW.press = (bt_MEDIUM.press = (bt_HIGH.press = (bt_BEST.press = function (_b) {
if (!_b) {
_root._quality = this.sTxt;
}
this._parent.callBack(true);
this._parent.remove();
})));
}
if (_x == 0) {
(_x = Stage.width / 2);
(_y = Stage.height / 2);
}
adjustXY();
x_btn(nWidth, nHeight);
setBar(nWidth, nHeight, bDrag);
enabledFor(bScreen);
stop();
_visible = true;
}
function callBack() {
return(true);
}
function remove() {
swapDepths(_parent.getNextHighestDepth());
removeMovieClip();
}
function adjustXY() {
var _local3 = nWidth / 2;
var _local2 = nHeight / 2;
var _local5 = s_b(_x, _local3, Stage.width - _local3);
var _local4 = s_b(_y, _local2, Stage.height - _local2);
if (_local5 != 0) {
_x = ((_local5 > 0) ? (Stage.width - _local3) : (_local3));
}
if (_local4 != 0) {
_y = ((_local4 > 0) ? (Stage.height - _local2) : (_local2));
}
}
static function s_b(n, a, b) {
if ((a < n) && (n < b)) {
return(0);
}
if (n <= a) {
return(-1);
}
return(1);
}
function x_btn(_nW, _nH) {
bt_X._x = int(_nW / 2) - common.Btn.nBorder;
bt_X._y = int((-_nH) / 2);
bt_X.press = function () {
this._parent.callBack(false);
this._parent.remove();
};
}
function setBar(_nW, _nH, _b) {
mBar._x = (-_nW) / 2;
mBar._y = (-_nH) / 2;
mBar._width = _nW;
mBar._height = _nH;
if (_b) {
mBar.useHandCursor = false;
mBar.onPress = function () {
this._parent.startDrag(false, this._width / 2, this._height / 2, Stage.width - (this._width / 2), Stage.height - (this._height / 2));
};
mBar.onRelease = (mBar.onReleaseOutside = function () {
this._parent.stopDrag();
});
}
}
function enabledFor(_b) {
if (_b) {
var _local3 = createEmptyMovieClip("_mEnabled", -16384);
_local3.enabled = false;
_local3.hitArea = _root;
_local3.onPress = null;
}
}
function SUBMIT(_s, _n) {
var _local3 = _parent.getNextHighestDepth();
if (_s.length > 0) {
var _local4 = new LoadVars();
var _local5 = new LoadVars();
_local4.game = Global.GAMENAME;
trace((((("\u4E0A\u4F20\u9AD8\u5206--\u6E38\u620F\u540D\uFF1A" + Global.GAMENAME) + "--\u7528\u6237\u540D\uFF1A") + _s) + "--\u5206\u6570\uFF1A") + _n);
_local4.score = _n;
_local4.name = _s;
_local4.sendAndLoad(Global.URLHIGHSCORE, _local5, "POST");
_local5.onLoad = function () {
common.PopUp.SUBMITEND();
};
_global._mSending = _parent.attachMovie("common.PopUp", "PopUp" + _local3, _local3, {sFrame:"message", aSt:["SENDING..."]});
remove();
} else {
_parent.attachMovie("common.PopUp", "PopUp" + _local3, _local3, {sFrame:"ok", aSt:["ENTER A NAME PLEASE!"]});
}
}
static function SUBMITEND() {
var _local3 = _global._mSending._parent;
_global._mSending.remove();
var _local2 = _local3.getNextHighestDepth();
_local3.attachMovie("common.PopUp", "PopUp" + _local2, _local2, {sFrame:"ok", aSt:["VIEW HIGHSCORE?"], callBack:function (_b) {
if (_b) {
Global.VIEWSCORE();
}
return(true);
}});
}
static var nOffset_x = 40;
static var nOffset_y = 40;
static var nWidth_max = 300;
static var nHeight_max = 50;
static var nBorder = 10;
var bScreen = true;
var bDrag = true;
}
Symbol 1207 MovieClip [__Packages.common.Btn] Frame 0
class common.Btn extends MovieClip
{
static var nDw;
var onRollOver, onDragOut, onRollOut, onPress, onReleaseOutside, onRelease, __bGray, gotoAndStop, __bIn, __bDown, mBar, tTxt, hitArea, nWidth;
function Btn () {
super();
onRollOver = function () {
this.bIn = true;
};
onDragOut = (onRollOut = function () {
this.bIn = false;
});
onPress = function () {
this.bDown = true;
};
onReleaseOutside = (onRelease = function () {
this.bDown = false;
});
}
function get bGray() {
return(__bGray);
}
function set bGray(_bGray) {
if (__bGray != _bGray) {
__bGray = _bGray;
gray(this, __bGray);
}
//return(bGray);
}
function get sAutoSize() {
return(__sAutoSize);
}
function set sAutoSize(_sAutoSize) {
__sAutoSize = _sAutoSize;
//return(sAutoSize);
}
function get sTxt() {
return(__sTxt);
}
function set sTxt(_sTxt) {
__sTxt = _sTxt;
gotoAndStop("reset");
replace();
//return(sTxt);
}
function get bIn() {
return(__bIn);
}
function set bIn(_bIn) {
if (__bIn != _bIn) {
(__bIn ? (rollOut(bGray)) : (rollOver(bGray)));
__bIn = _bIn;
replace();
}
//return(bIn);
}
function get bDown() {
return(__bDown);
}
function set bDown(_bDown) {
if (__bDown != _bDown) {
(__bDown ? (release(bGray)) : (press(bGray)));
__bDown = _bDown;
replace();
}
//return(bDown);
}
function init() {
sTxt = (sTxt);
bGray = (bGray);
mBar._visible = false;
}
function replace() {
var _local2;
if (bIn && (bDown)) {
_local2 = "down";
} else if (bIn || (bDown)) {
_local2 = "over";
} else {
_local2 = "up";
}
gotoAndStop(_local2);
tTxt.autoSize = true;
if (__sAutoSize == "right") {
tTxt._x = -int(tTxt._width);
} else if (__sAutoSize == "center") {
tTxt._x = -int(tTxt._width / 2);
} else {
tTxt._x = 0;
}
if (mBar == undefined) {
hitArea = tTxt;
mBar._visible = false;
} else {
mBar.gotoAndStop(_local2);
if (nWidth > 0) {
mBar._height = int(tTxt._height);
mBar._width = nWidth;
mBar._x = (-nWidth) / 2;
} else {
if (isNaN(nDw)) {
nDw = int(tTxt._width - tTxt.textWidth) - 1;
}
mBar._width = tTxt.textWidth + (nBorder * 2);
mBar._x = (tTxt._x + nDw) - nBorder;
if (bMask) {
mBar._y = 0;
mBar._height = int(tTxt._height);
hitArea = tTxt;
mBar.setMask(tTxt);
} else {
mBar._y = 0;
mBar._height = int(tTxt._height);
hitArea = mBar;
}
}
}
}
static function gray(_m, _b) {
if (_b) {
_m.filters = [new flash.filters.ColorMatrixFilter([0.308600038290024, 0.609399974346161, 0.0820000022649765, 0, 0, 0.308600008487701, 0.609399974346161, 0.0820000022649765, 0, 0, 0.308600008487701, 0.609399974346161, 0.0820000246167183, 0, 0, 0, 0, 0, 1, 0])];
} else {
_m.filters = [];
}
}
function press(_b) {
}
function release(_b) {
}
function rollOver(_b) {
}
function rollOut(_b) {
}
static var nBorder = 10;
var __sAutoSize = "left";
var bMask = false;
var __sTxt = "BUTTON";
}
Symbol 1208 MovieClip [__Packages.common.Txt] Frame 0
class common.Txt extends MovieClip
{
var obFormat, filters, tTxt, obCustom, sVariable, __sTxt;
function Txt () {
super();
obFormat = new TextFormat();
obFormat.align = sAlign;
obFormat.size = nSize;
obFormat.color = nColor;
}
function init(_sTxt) {
if (_sTxt != "undefined") {
sTxt = (_sTxt);
} else {
sTxt = (sTxt);
}
filters = tTxt.filters.slice();
tTxt.filters = null;
if (obCustom.bCustom) {
for (var _local2 in obCustom) {
if ((_local2 != "bCustom") && (obCustom[_local2] != undefined)) {
tTxt[_local2] = obCustom[_local2];
}
}
if (tTxt.type == "input") {
Selection.setFocus(tTxt);
tTxt.owner = this;
tTxt.onChanged = function () {
this.owner.sTxt = this.text;
};
}
}
(sVariable.length > 0) && ((tTxt.variable = sVariable));
}
function get sTxt() {
return(__sTxt);
}
function set sTxt(_sTxt) {
__sTxt = _sTxt;
tTxt.text = __sTxt;
replace();
//return(sTxt);
}
function replace() {
if (obCustom._height <= 0) {
tTxt.autoSize = sAlign;
}
if (sAlign == "right") {
tTxt._x = -Math.floor(tTxt._width);
} else if (sAlign == "center") {
tTxt._x = -Math.floor(tTxt._width / 2);
} else {
tTxt._x = 0;
}
tTxt.setTextFormat(obFormat);
}
var nColor = 16777215;
var nSize = 20;
var sAlign = "left";
}
Symbol 1209 MovieClip [__Packages.page.Page] Frame 0
class page.Page extends MovieClip
{
var removeMovieClip, attachMovie, getNextHighestDepth;
function Page () {
super();
}
function remove() {
removeMovieClip();
}
function addMenu_btn() {
return(attachMovie("common.Btn", "btMenu", getNextHighestDepth(), {_x:Global.WIDTH - 20, _y:getY(), sTxt:"MENU", sAutoSize:"right"}));
}
static function getX(_n) {
if (_n < 5) {
return(Global.WIDTH / 2);
}
return(20);
}
static function getY(_n) {
if (isNaN(_n)) {
return(Global.HEIGHT - nY_end);
}
if (_n == 0) {
return(nY_title);
}
return((_n * nDy_btn) + nY_title);
}
static var nY_title = 50;
static var nY_end = 50;
static var nDy_btn = 50;
}
Symbol 1210 MovieClip [__Packages.page.Page_menu] Frame 0
class page.Page_menu extends page.Page
{
var attachMovie, getNextHighestDepth, btCredits, btCopyright, btVersion, btPlay, bt_play_others, btHelp, btHighScore, btDownload, btMoreGame, btAddGame;
function Page_menu () {
super();
init();
}
function init() {
var _local3 = new Array("btPlay", "bt_play_others", "btHelp", "btHighScore", "btDownload", "btAddGame");
var _local4 = "center";
var _local5 = 30;
var _local7 = Global.WIDTH / 2;
var _local6 = 280;
var _local2 = 0;
while (_local2 < _local3.length) {
this[_local3[_local2]] = attachMovie("common.Btn", _local3[_local2], getNextHighestDepth(), {sTxt:aButtons_label[_local2], sAutoSize:_local4, _x:_local7, _y:_local6 + (_local2 * _local5)});
_local2++;
}
btCredits = attachMovie("common.Btn_c&c&v", "btCredits", getNextHighestDepth(), {sTxt:"Credits", sAutoSize:"right", _x:Global.WIDTH, _y:Global.HEIGHT - 20});
btCopyright = attachMovie("common.Btn_c&c&v", "btCopyright", getNextHighestDepth(), {sTxt:"Copyright freeworldgroup.com", sAutoSize:"left", _y:Global.HEIGHT - 20});
btVersion = attachMovie("common.Btn_c&c&v", "btVersion", getNextHighestDepth(), {sTxt:Global.VERSION, sAutoSize:"left"});
}
function inFrame() {
btPlay.press = function () {
if (Global.GAME.first_play) {
Global.GAME.first_play = false;
Global.GAME.firstPlay();
} else {
Global.GAME.newGame();
}
};
bt_play_others.press = function () {
trace(" \u600E\u4E48\u56DE\u4E8B??? ");
this.getURL("http://www.freeworldgroup.com/games8/gameindex/lifeark3.htm", "blank");
};
btHelp.press = function () {
if (Global.LOAD("nTimes_play") > 0) {
Global.GAME.goto("help");
} else {
Global.GAME.firstPlay();
}
};
btHighScore.press = function () {
Global.VIEWSCORE();
};
btDownload.press = function () {
Global.DOWNLOAD();
};
btMoreGame.press = function () {
Global.FWGURL();
};
btAddGame.press = function () {
Global.ADDGAME();
};
btCopyright.press = function () {
Global.FWGURL();
};
btCredits.press = function () {
Global.GAME.goto("credits");
};
}
static var aButtons_label = new Array("PLAY GAME", "PLAY LIFE ARK 3", "INSTRUCTIONS", "VIEW HIGHSCORES", "DOWNLOAD GAMES", "ADD GAMES TO YOUR SITE");
}
Symbol 1211 MovieClip [__Packages.page.Page_begin_ani] Frame 0
class page.Page_begin_ani extends page.Page
{
function Page_begin_ani () {
super();
}
}
Symbol 1212 MovieClip [__Packages.page.Page_playing] Frame 0
class page.Page_playing extends page.Page
{
var kPause, btMenu, addMenu_btn, btQ, attachMovie, getNextHighestDepth, btS, btM, mSetting, bPause, mClip;
function Page_playing () {
super();
init();
}
function init() {
kPause = new common.MyKey(80);
btMenu = addMenu_btn();
btMenu._x = btMenu._x + 11;
btMenu._y = btMenu._y + 500;
var _local2 = 5;
btQ = attachMovie("common.Btn", "btQ", getNextHighestDepth(), {_x:(btMenu._x - btMenu._width) - _local2, _y:btMenu._y, sTxt:"Q", sAutoSize:"right"});
btS = attachMovie("common.Btn", "btS", getNextHighestDepth(), {_x:(btQ._x - btQ._width) - _local2, _y:btMenu._y, sTxt:"S", sAutoSize:"right"});
btM = attachMovie("common.Btn", "btM", getNextHighestDepth(), {_x:(btS._x - btS._width) - _local2, _y:btMenu._y, sTxt:"M", sAutoSize:"right"});
btMenu._visible = false;
btQ._visible = false;
btS._visible = false;
btM._visible = false;
}
function inFrame() {
Global.GAME.mPage.mClip.btq.toolTip = "Quality: " + _root._quality;
btQ.press = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
Global.GAME.mPage.bPause = true;
Global.GAME.mPage.attachMovie("common.PopUp", "mSetting", Global.GAME.mPage.getNextHighestDepth(), {sFrame:"quality", callBack:function () {
Global.GAME.mPage.btQ.toolTip = "Quality: " + _root._quality;
Global.GAME.mPage.mClip.btq.toolTip = "Quality: " + _root._quality;
Global.GAME.mPage.bPause = false;
}});
};
btM.bGray = Global.switchMusic();
btM.toolTip = "Music: " + (btM.bGray ? "Off" : "On");
Global.GAME.mPage.mClip.btm.toolTip = "Music: " + (btM.bGray ? "Off" : "On");
Global.GAME.mPage.smSwitch(btM, btM.bGray);
btM.press = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
this.bGray = !Global.switchMusic(true);
this.toolTip = "Music: " + (this.bGray ? "Off" : "On");
Global.GAME.mPage.mClip.btm.toolTip = "Music: " + (this.bGray ? "Off" : "On");
Global.GAME.mPage.smSwitch(this, this.bGray);
};
btS.bGray = Global.switchSound();
btS.toolTip = "Sound: " + (btS.bGray ? "Off" : "On");
Global.GAME.mPage.mClip.bts.toolTip = "Sound: " + (btS.bGray ? "Off" : "On");
Global.GAME.mPage.smSwitch(btS, btS.bGray);
btS.press = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
this.bGray = !Global.switchSound(true);
this.toolTip = "Sound: " + (this.bGray ? "Off" : "On");
Global.GAME.mPage.mClip.bts.toolTip = "Sound: " + (this.btS.bGray ? "Off" : "On");
Global.GAME.mPage.smSwitch(this, this.bGray);
};
btMenu.toolTip = "Menu(Pause)";
Global.GAME.mPage.mClip.btmenu.toolTip = "Menu(Pause)";
kPause.onDown = (btMenu.press = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
Global.GAME.mPage.setting();
});
}
function smSwitch(_m, _b) {
if (_b) {
_m.attachMovie("mSwitch", "mSwitch", _m.getNextHighestDepth());
_m.mSwitch._x = _m.tTxt._x + int(_m.tTxt._width / 2);
_m.mSwitch._y = _m.tTxt._y + int(_m.tTxt._height / 2);
} else {
_m.mSwitch.removeMovieClip();
}
}
function setting(_n) {
if (mSetting._name == undefined) {
bPause = true;
attachMovie("common.PopUp", "mSetting", getNextHighestDepth(), {sFrame:"y_n", aSt:["QUIT TO MENU?"], callBack:function (_b) {
if (_b) {
Global.GAME.goto("menu");
} else {
Global.GAME.mPage.bPause = false;
}
return(true);
}});
} else {
mSetting.callBack(false);
mSetting.remove();
}
}
function onEnterFrame() {
kPause.run();
if (bPause) {
return(undefined);
}
mClip.run();
}
}
Symbol 1213 MovieClip [__Packages.common.MyKey] Frame 0
class common.MyKey
{
var nTime, nDelay, bHold, bDouble, nKey, sKey, hold, nNow, onDown, onUp, unHold;
function MyKey (_nKey) {
nTime = 0;
nDelay = 400;
bHold = false;
bDouble = false;
nKey = _nKey;
sKey = String.fromCharCode(nKey).toUpperCase();
}
function run() {
if (Key.isDown(nKey)) {
if (bHold) {
hold(bDouble);
nNow = (bDouble ? 4 : 3);
} else {
bHold = true;
if ((getTimer() - nTime) < nDelay) {
bDouble = true;
} else {
nTime = getTimer();
}
onDown(bDouble);
nNow = (bDouble ? 2 : 1);
}
} else if (bHold) {
bHold = false;
onUp(bDouble);
if (bDouble) {
nTime = 0;
bDouble = false;
nNow = -2;
} else {
nNow = -1;
}
} else {
unHold();
nNow = 0;
}
return(nNow);
}
}
Symbol 1214 MovieClip [__Packages.page.Page_nextlevel] Frame 0
class page.Page_nextlevel extends page.Page
{
var tTitle, attachMovie, getNextHighestDepth, tScore, btSubmit, btPlay, btMenu, addMenu_btn;
function Page_nextlevel () {
super();
init();
}
function init() {
tTitle = attachMovie("common.Txt", "tTitle", getNextHighestDepth(), {_x:page.Page.getX(0), _y:page.Page.getY(0), sTxt:"LEVEL COMPLETE", sAlign:"center", nSize:40});
tScore = attachMovie("common.Txt", "tScore", getNextHighestDepth(), {_x:page.Page.getX(1), _y:page.Page.getY(1), sTxt:"SCORE: " + Global.GAME.nScore, sAlign:"center", nSize:30});
btSubmit = attachMovie("common.Btn", "btSubmit", getNextHighestDepth(), {_x:page.Page.getX(2), _y:page.Page.getY(2), sTxt:"SUBMIT SCORE", sAutoSize:"center", _visible:Global.GAME.nScore != 0});
btPlay = attachMovie("common.Btn", "btPlay", getNextHighestDepth(), {_x:page.Page.getX(3), _y:page.Page.getY(3), sTxt:"CONTINUE", sAutoSize:"center"});
btMenu = addMenu_btn();
}
function inFrame() {
btSubmit.press = function () {
Global.GAME.mPage.attachMovie("common.PopUp", "PopUp_submit", Global.GAME.mPage.getNextHighestDepth(), {sFrame:"submit", aSt:["", Global.GAME.nScore]});
this._visible = false;
};
btPlay.press = function () {
Global.GAME.nextLevel();
};
btMenu.press = function () {
Global.GAME.goto("menu");
};
}
}
Symbol 1215 MovieClip [__Packages.page.Page_gamewin] Frame 0
class page.Page_gamewin extends page.Page
{
var tTitle, attachMovie, getNextHighestDepth, tScore, btSubmit, bt_play_others, btDownload, btAddGame, btMenu, addMenu_btn, btMoreGame;
function Page_gamewin () {
super();
init();
}
function init() {
tTitle = attachMovie("common.Txt", "tTitle", getNextHighestDepth(), {_x:page.Page.getX(0), _y:page.Page.getY(0), sTxt:"YOU WIN!", sAlign:"center", nSize:40});
tScore = attachMovie("common.Txt", "tScore", getNextHighestDepth(), {_x:page.Page.getX(1), _y:page.Page.getY(1), sTxt:"SCORE: " + Global.GAME.nScore, sAlign:"center", nSize:30});
btSubmit = attachMovie("common.Btn", "btSubmit", getNextHighestDepth(), {_x:page.Page.getX(2), _y:page.Page.getY(2), sTxt:"SUBMIT SCORE", sAutoSize:"center", _visible:Global.GAME.nScore != 0});
bt_play_others = attachMovie("common.Btn", "bt_play_others", getNextHighestDepth(), {_x:page.Page.getX(3), _y:page.Page.getY(3), sTxt:"PLAY LIFE ARK 3", sAutoSize:"center"});
btDownload = attachMovie("common.Btn", "btDownload", getNextHighestDepth(), {_x:page.Page.getX(5), _y:page.Page.getY(5), sTxt:page.Page_menu.aButtons_label[4], sAutoSize:"left"});
btAddGame = attachMovie("common.Btn", "btAddGame", getNextHighestDepth(), {_x:page.Page.getX(6), _y:page.Page.getY(6), sTxt:page.Page_menu.aButtons_label[5], sAutoSize:"left"});
btMenu = addMenu_btn();
}
function inFrame() {
btSubmit.press = function () {
Global.GAME.mPage.attachMovie("common.PopUp", "PopUp_submit", Global.GAME.mPage.getNextHighestDepth(), {sFrame:"submit", aSt:["", Global.GAME.nScore]});
this._visible = false;
};
bt_play_others.press = function () {
this.getURL("http://www.freeworldgroup.com/games8/gameindex/lifeark3.htm", "_blank");
};
btMenu.press = function () {
Global.GAME.goto("menu");
};
btDownload.press = function () {
Global.DOWNLOAD();
};
btMoreGame.press = function () {
Global.FWGURL();
};
btAddGame.press = function () {
Global.ADDGAME();
};
}
}
Symbol 1216 MovieClip [__Packages.page.Page_gameover] Frame 0
class page.Page_gameover extends page.Page
{
var tTitle, attachMovie, getNextHighestDepth, tScore, btSubmit, btPlay, btDownload, btMoreGame, btAddGame, btMenu, addMenu_btn;
function Page_gameover () {
super();
init();
}
function init() {
tTitle = attachMovie("common.Txt", "tTitle", getNextHighestDepth(), {_x:page.Page.getX(0), _y:page.Page.getY(0), sTxt:"GAME OVER!", sAlign:"center", nSize:40});
tScore = attachMovie("common.Txt", "tScore", getNextHighestDepth(), {_x:page.Page.getX(1), _y:page.Page.getY(1), sTxt:"SCORE: " + Global.GAME.nScore, sAlign:"center", nSize:30});
btSubmit = attachMovie("common.Btn", "btSubmit", getNextHighestDepth(), {_x:page.Page.getX(2), _y:page.Page.getY(2), sTxt:"SUBMIT SCORE", sAutoSize:"center", _visible:Global.GAME.nScore != 0});
btPlay = attachMovie("common.Btn", "btPlay", getNextHighestDepth(), {_x:page.Page.getX(3), _y:page.Page.getY(3), sTxt:"CONTINUE", sAutoSize:"center"});
btDownload = attachMovie("common.Btn", "btDownload", getNextHighestDepth(), {_x:page.Page.getX(5), _y:page.Page.getY(5), sTxt:page.Page_menu.aButtons_label[3], sAutoSize:"left"});
btMoreGame = attachMovie("common.Btn", "btMoreGame", getNextHighestDepth(), {_x:page.Page.getX(6), _y:page.Page.getY(6), sTxt:page.Page_menu.aButtons_label[4], sAutoSize:"left"});
btAddGame = attachMovie("common.Btn", "btAddGame", getNextHighestDepth(), {_x:page.Page.getX(7), _y:page.Page.getY(7), sTxt:page.Page_menu.aButtons_label[5], sAutoSize:"left"});
btMenu = addMenu_btn();
}
function inFrame() {
btSubmit.press = function () {
Global.GAME.mPage.attachMovie("common.PopUp", "PopUp_submit", Global.GAME.mPage.getNextHighestDepth(), {sFrame:"submit", aSt:["", Global.GAME.nScore]});
this._visible = false;
};
btPlay.press = function () {
Global.GAME.tryAgain();
};
btMenu.press = function () {
Global.GAME.goto("menu");
};
btDownload.press = function () {
Global.DOWNLOAD();
};
btMoreGame.press = function () {
Global.FWGURL();
};
btAddGame.press = function () {
Global.ADDGAME();
};
}
}
Symbol 1217 MovieClip [__Packages.page.Page_qieqie] Frame 0
class page.Page_qieqie extends page.Page
{
function Page_qieqie () {
super();
Fade.start();
Global.GAME.goto("playing");
}
}
Symbol 1218 MovieClip [__Packages.page.Page_help] Frame 0
class page.Page_help extends page.Page
{
var tTitle, attachMovie, getNextHighestDepth, btMenu, addMenu_btn, btBack, btNext, btPlay, mClip;
function Page_help () {
super();
init();
}
function init() {
tTitle = attachMovie("common.Txt", "tTitle", getNextHighestDepth(), {_x:Global.WIDTH / 2, _y:page.Page.nY_title, sTxt:page.Page_menu.aButtons_label[2], sAlign:"center", nSize:40});
btMenu = addMenu_btn();
var _local2 = Global.WIDTH - btMenu._x;
var _local3 = int((Global.WIDTH / 9) * 2);
btBack = attachMovie("common.Btn", "btBack", getNextHighestDepth(), {_x:_local2, _y:btMenu._y, sTxt:"BACK", sAutoSize:"left"});
btNext = attachMovie("common.Btn", "btNext", getNextHighestDepth(), {_x:_local3 + _local2, _y:btMenu._y, sTxt:"NEXT", sAutoSize:"left"});
btPlay = attachMovie("common.Btn", "btPlay", getNextHighestDepth(), {_x:(_local3 * 2) + _local2, _y:btMenu._y, sTxt:"SKIP", sAutoSize:"left"});
}
function inFrame() {
btBack.press = function () {
this._parent.inStep(-1);
};
btNext.press = function () {
this._parent.inStep(1);
};
btPlay.press = function () {
Global.GAME.newGame();
};
btMenu.press = function () {
Global.GAME.goto("menu");
};
mClip.stop();
inStep(-1);
}
function inStep(_n) {
Fade.start();
if (_n > 0) {
mClip.nextFrame();
} else {
mClip.prevFrame();
}
if (mClip._currentframe == 1) {
btBack._visible = false;
btPlay.sTxt = "PLAY";
btNext._visible = false;
} else if (mClip._currentframe == mClip._totalframes) {
btNext._visible = false;
btPlay.sTxt = "PLAY";
} else {
btBack._visible = (btNext._visible = false);
btPlay.sTxt = "PLAY";
}
}
}
Symbol 1219 MovieClip [__Packages.page.Page_credits] Frame 0
class page.Page_credits extends page.Page
{
var tTitle, attachMovie, getNextHighestDepth, tInfo, btMenu, addMenu_btn;
function Page_credits () {
super();
init();
}
function init() {
tTitle = attachMovie("common.Txt", "tTitle", getNextHighestDepth(), {_x:Global.WIDTH / 2, _y:page.Page.nY_title, sTxt:"MUSIC CREDITS", sAlign:"center", nSize:40});
tInfo = attachMovie("common.Txt", "tInfo", getNextHighestDepth(), {_x:Global.WIDTH / 2, _y:int(Global.HEIGHT / 3), sAlign:"center", nSize:30});
btMenu = addMenu_btn();
}
function inFrame() {
tInfo.sTxt = "A Final Peace\n\nBy Dark-Frando";
btMenu.press = function () {
Global.GAME.goto("menu");
};
}
}
Symbol 1220 MovieClip [__Packages.Light_Btn] Frame 0
class Light_Btn extends MovieClip
{
var gotoAndStop, onPress;
function Light_Btn () {
super();
gotoAndStop("golden");
onPress = function () {
if (this._parent.the_result) {
return(undefined);
}
Global.playSound("10");
var _local3 = this._name;
var _local2 = _local3.charAt(_local3.length - 1);
this.counter++;
this.my_color = this.color_arr[this.counter];
if (this.counter > (this.color_arr.length - 1)) {
this.counter = 0;
this.my_color = this.color_arr[this.counter];
}
trace(" my_color:: " + this.my_color);
this.gotoAndStop(this.my_color);
trace(_local2);
trace(" \u9F7F\u8F6E\u7684\u989C\u8272" + this._parent["gear_" + _local2].color);
trace(this.my_color == this._parent["gear_" + _local2].color);
if (this.my_color == this._parent["gear_" + _local2].color) {
this.select_right = true;
} else {
this.select_right = false;
}
};
}
var select_right = false;
var counter = 0;
var color_arr = ["golden", "red", "green", "blue"];
}
Symbol 1221 MovieClip [__Packages.Gear] Frame 0
class Gear extends MovieClip
{
var live_time, color, gotoAndStop, onEnterFrame;
function Gear () {
super();
live_time = 90;
color = "cupreous";
gotoAndStop(color);
onEnterFrame = function () {
this.run();
};
}
function run() {
if (color != "cupreous") {
if ((--live_time) <= 0) {
gotoAndStop("cupreous");
delete onEnterFrame;
}
}
}
}
Symbol 1222 MovieClip [__Packages.Sun_Pop_Up] Frame 0
class Sun_Pop_Up extends MovieClip
{
var flash_interval, _alpha, onEnterFrame, the_result, light_1, light_2, light_3, light_4, light_5, light_6, light_7, swapDepths, _parent, removeMovieClip;
function Sun_Pop_Up () {
super();
flash_interval = 30;
_alpha = 0;
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Rotate, direction:mx.transitions.Transition.IN, duration:2, easing:mx.transitions.easing.Strong.easeInOut, ccw:false, degrees:720});
onEnterFrame = function () {
if ((--this.init_time) <= 0) {
this._alpha = this._alpha + 2;
if (this._alpha >= 100) {
this._alpha = 100;
}
}
this.run();
this.run_is_completed();
};
}
function run() {
if ((--flash_interval) <= 0) {
flash_interval = 30;
sn++;
var _local3 = random(color_arr.length);
var _local2 = color_arr[_local3];
this["gear_" + sn].color = _local2;
this["gear_" + sn].gotoAndStop(_local2);
if (sn >= 7) {
sn = 0;
run = null;
}
}
}
function run_is_completed() {
the_result = (((((light_1.select_right && (light_2.select_right)) && (light_3.select_right)) && (light_4.select_right)) && (light_5.select_right)) && (light_6.select_right)) && (light_7.select_right);
if (the_result) {
if (!run_one) {
Global.playSound("11");
run_one = true;
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Rotate, direction:mx.transitions.Transition.IN, duration:2, easing:mx.transitions.easing.Strong.easeInOut, ccw:false, degrees:720});
}
_alpha = _alpha - 4;
if (_alpha <= 0) {
swapDepths(0);
Global.GAME.mPage.bPause = false;
_parent.sun.body.gotoAndStop("transform");
_parent.sun.step_sn++;
_parent.sun_btn.step_sn++;
_parent.sun.step = _parent.sun.step_arr[_parent.sun.step_sn];
_parent.sun_btn.step = _parent.sun_btn.step_arr[_parent.sun_btn.step_sn];
Mystery_of_Easter_Island.SHOULD_RUN_STEP++;
Global.GAME.mPage.mClip.add_score();
removeMovieClip();
}
}
}
static var right_num = 0;
var color_arr = ["red", "blue", "green"];
var sn = 0;
var init_time = 10;
var run_one = false;
}
Symbol 1223 MovieClip [__Packages.mx.transitions.Rotate] Frame 0
class mx.transitions.Rotate extends mx.transitions.Transition
{
var _rotationFinal, __get__manager, __get__direction, _content;
function Rotate (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function init(content, transParams, manager) {
super.init(content, transParams, manager);
if (_rotationFinal == undefined) {
_rotationFinal = __get__manager().__get__contentAppearance()._rotation;
}
if (transParams.degrees) {
_degrees = transParams.degrees;
}
if (transParams.ccw ^ __get__direction()) {
_degrees = _degrees * -1;
}
}
function _render(p) {
_content._rotation = _rotationFinal - (_degrees * (1 - p));
}
static var version = "1.1.0.52";
var type = mx.transitions.Rotate;
var className = "Rotate";
var _degrees = 360;
}
Symbol 1224 MovieClip [__Packages.pzs.old.Station] Frame 0
class pzs.old.Station extends MovieClip
{
var stop, sArr, body;
function Station () {
super();
stop();
sArr = new Array();
}
function canLinkTo(s) {
return(arrIndexOf(sArr, s) >= 0);
}
function effect() {
body.gotoAndPlay(2);
}
static function arrIndexOf(arr, item) {
var _local2 = arr.length;
var _local1 = 0;
while (_local1 < _local2) {
if (arr[_local1] == item) {
return(_local1);
}
_local1++;
}
return(-1);
}
}
Symbol 1225 MovieClip [__Packages.pzs.old.Car] Frame 0
class pzs.old.Car extends MovieClip
{
var gotoAndStop, sTween, obj3d, _x, _xscale;
function Car () {
super();
gotoAndStop(1);
sTween = new effect.STween(this);
sTween.onMov = function (car) {
car.onMov();
};
sTween.onTween = function (car) {
car.gotoAndStop(1);
car.onMovFinished();
};
obj3d = new effect.Obj3d(this);
obj3d.onMov = function (car) {
car.onJumpMov();
};
obj3d.onHitGround = function (car) {
car.gotoAndStop(1);
car.onJumpFinished();
return(true);
};
}
function jumpTo(s) {
obj3d.jumpTo(s._x, s._y);
}
function movTo(s) {
var _local3 = s._x - _x;
if (_local3 < 0) {
_xscale = -100;
} else {
_xscale = 100;
}
gotoAndStop(2);
sTween.movTo(s._x, s._y);
}
function fallFinish() {
trace("lose");
}
}
Symbol 1226 MovieClip [__Packages.effect.Obj3d] Frame 0
class effect.Obj3d
{
var mc, z, vx, vy, vz, u, x, y, onMov, onHitGround;
function Obj3d (_mc, _vx, _vy, _vz, _u, _z) {
mc = _mc;
if (isNaN(_z)) {
_z = 0;
}
z = _z;
if (isNaN(_vx)) {
_vx = 0;
}
vx = _vx;
if (isNaN(_vy)) {
_vy = 0;
}
vy = _vy;
if (isNaN(_vz)) {
_vz = 0;
}
vz = _vz;
if (isNaN(_u)) {
_u = 1;
}
u = _u;
}
function jumpTo(x1, y1, _vz) {
x = mc._y + (z * 0.2);
y = mc._x;
var _local4 = y1;
var _local3 = x1;
var _local8 = 0;
var _local7 = _local4 - x;
var _local6 = _local3 - y;
if (isNaN(_vz)) {
_vz = 100;
}
vz = _vz;
var _local2 = (-2 * vz) / g;
vx = _local7 / _local2;
vy = _local6 / _local2;
Global.addRun(this, "run");
}
function run() {
if (mc._name == undefined) {
Global.delRun(this, "run");
return(undefined);
}
if (Global.pause) {
return(undefined);
}
onMov();
vx = vx * u;
vy = vy * u;
x = x + vx;
y = y + vy;
z = z + (vz + (g / 2));
vz = vz + g;
mc._x = y;
mc._y = x - (z * 0.2);
if (z <= 0) {
if (onHitGround(mc) || (isSlow)) {
Global.delRun(this, "run");
return(undefined);
}
z = 0;
vz = vz * -0.6;
}
}
function get isSlow() {
return(((((vx * vx) + (vy * vy)) + (vz * vz)) + (z * z)) < 5);
}
static var g = -10;
}
Symbol 1227 MovieClip [__Packages.effect.STween] Frame 0
class effect.STween
{
var mc, u, minD, xt, yt, onMov, onTween;
function STween (_mc, _xt, _yt, _u, _minD) {
mc = _mc;
if (isNaN(_u)) {
_u = 0.5;
}
u = _u;
if (isNaN(_minD)) {
_minD = 1;
}
minD = _minD;
if (isNaN(_xt) || (isNaN(_yt))) {
} else {
movTo(_xt, _yt);
}
}
function movTo(_xt, _yt) {
xt = _xt;
yt = _yt;
Global.addRun(this, "run");
}
function run() {
if (mc._name == undefined) {
Global.delRun(this, "run");
return(undefined);
}
if (Global.pause) {
return(undefined);
}
var _local2 = new flash.geom.Point(xt - mc._x, yt - mc._y);
if (_local2.length < minD) {
Global.delRun(this, "run");
mc._x = xt;
mc._y = yt;
onMov(mc);
onTween(mc);
} else {
mc._x = mc._x + (_local2.x * u);
mc._y = mc._y + (_local2.y * u);
onMov(mc);
}
}
}
Symbol 1228 MovieClip [__Packages.pzs.old.OneLineDraw] Frame 0
class pzs.old.OneLineDraw extends MovieClip
{
static var oneLineDraw;
var stationArea, onEnterFrame, currentStation, drawArea, sArr, totalMainStation, prevScore, id, totalLine, linkedObj, car, comboTime, comboNum, dScore, _parent;
function OneLineDraw () {
super();
oneLineDraw = this;
}
function playLevel(levelNum) {
stationArea.gotoAndStop(levelNum);
onEnterFrame = init;
}
function init() {
delete onEnterFrame;
currentStation = null;
drawArea.clear();
drawArea.lineStyle(3, 16776960);
sArr = new Array();
totalMainStation = 0;
prevScore = 0;
while (stationArea["s" + (++totalMainStation)]) {
}
id = 0;
totalLine = 0;
linkedObj = new Object();
var _local6 = 0;
while (_local6 < totalMainStation) {
var _local7 = stationArea["s" + _local6];
initStation(_local7);
var _local3 = _local6 + 1;
while (_local3 < totalMainStation) {
var _local4 = stationArea["s" + _local3];
initStation(_local4);
var _local5 = 0;
var _local2;
while (_local2 = stationArea[(((("s" + _local6) + "_") + _local3) + "_") + _local5] , _local2 || (_local2 = stationArea[(((("s" + _local3) + "_") + _local6) + "_") + _local5])) {
_local7.sArr.push(_local2);
_local4.sArr.push(_local2);
_local2.sArr.push(_local7);
_local2.sArr.push(_local4);
initStation(_local2);
createLinkedB(_local2, _local7);
createLinkedB(_local2, _local4);
totalLine = totalLine + 2;
_local5++;
}
_local3++;
}
_local6++;
}
car.onMov = function () {
pzs.old.OneLineDraw.oneLineDraw.drawArea.lineTo(this._x, this._y);
pzs.old.OneLineDraw.oneLineDraw.currentStation.gotoAndStop(2);
};
car.onMovFinished = function () {
pzs.old.OneLineDraw.oneLineDraw.movFinished();
};
car.onJumpMov = function () {
trace("car=" + this);
};
car.onJumpFinished = function () {
pzs.old.OneLineDraw.oneLineDraw.currentStation.gotoAndStop(2);
pzs.old.OneLineDraw.oneLineDraw.drawArea.moveTo(this._x, this._y);
trace("\u9009\u62E9\u4E0B\u4E00\u4E2A\u8377\u53F6\u8FDB\u884C\u79FB\u52A8");
pzs.old.OneLineDraw.oneLineDraw.enabledAll(true);
};
}
function movFinished() {
if ((getTimer() - comboTime) <= 1000) {
comboNum++;
dScore = dScore + 10;
trace("\u4E00\u79D2\u5185\u8FDE\u51FB,\u8FDE\u51FB\u6570\u662F " + comboNum);
} else {
comboNum = 0;
dScore = 10;
}
comboTime = getTimer();
prevScore = prevScore + dScore;
checkWin();
}
function createLinkedB(s1, s2) {
if (s1.id < s2.id) {
linkedObj[(("$" + s1.id) + "_") + s2.id] = false;
}
linkedObj[(("$" + s2.id) + "_") + s1.id] = false;
}
function isLinked(s1, s2) {
if (s1.id < s2.id) {
return(linkedObj[(("$" + s1.id) + "_") + s2.id]);
}
return(linkedObj[(("$" + s2.id) + "_") + s1.id]);
}
function initStation(s) {
s.id = id;
sArr.push(s);
s.onPress = (s._press = function () {
Global.playSound("run_line");
pzs.old.OneLineDraw.oneLineDraw.select(this);
});
s.onRollOver = function () {
s.gotoAndStop(3);
};
s.onRollOut = function () {
s.gotoAndStop(1);
};
id++;
}
function select(s) {
enabledAll(false);
if (currentStation) {
if (s.id < currentStation.id) {
linkedObj[(("$" + s.id) + "_") + currentStation.id] = true;
} else {
linkedObj[(("$" + currentStation.id) + "_") + s.id] = true;
}
currentStation = s;
car.movTo(currentStation);
} else {
comboTime = getTimer();
dScore = 10;
currentStation = s;
currentStation.gotoAndStop(2);
car.jumpTo(currentStation);
}
}
function checkWin() {
if ((--totalLine) <= 0) {
Global.GAME.mPage.mClip.dragon_print.body.gotoAndStop("fall");
Global.GAME.mPage.bPause = false;
_parent.swapDepths(0);
_parent.removeMovieClip();
} else {
enabledAll(true);
}
}
function enabledAll(value) {
var _local4 = sArr.length;
var _local3 = 0;
while (_local3 < _local4) {
var _local2 = sArr[_local3];
if (_local2.canLinkTo(currentStation) && (!isLinked(_local2, currentStation))) {
_local2.enabled = value;
} else {
_local2.enabled = false;
}
_local3++;
}
}
}
Symbol 1229 MovieClip [__Packages.Pop_Up_2] Frame 0
class Pop_Up_2 extends MovieClip
{
var which_way, arrow_tip, current_letter, mask_line, line_border, attachMovie, onEnterFrame, G, W, F, Z, Y, X, V, U, T, S, R, Q, P, O, N, M, L, K, J, I, H, E, D, C, B, A;
function Pop_Up_2 () {
super();
appear_turn_arr = ["F", "W", "G"];
which_way = "u_d";
arrow_tip.gotoAndStop(which_way);
var _local4 = random(appear_turn_arr.length);
trace(" index:: " + _local4);
trace(" appear_turn_arr:: " + appear_turn_arr);
current_letter = appear_turn_arr[_local4];
trace(" current_index:: " + current_letter);
appear_turn_arr.splice(_local4, 1);
switch (which_way) {
case "l_r" :
mask_line.gotoAndStop("left_right");
line_border.gotoAndStop("left_right");
var _local6 = mask_line.getDepth() - 1;
_global.fwg = attachMovie(current_letter, current_letter, _local6, {_x:left, _y:0});
break;
case "r_l" :
mask_line.gotoAndStop("left_right");
line_border.gotoAndStop("left_right");
_local6 = mask_line.getDepth() - 1;
_global.fwg = attachMovie(current_letter, current_letter, _local6, {_x:right, _y:0});
break;
case "u_d" :
mask_line.gotoAndStop("up_down");
line_border.gotoAndStop("up_down");
_local6 = mask_line.getDepth() - 1;
_global.fwg = attachMovie(current_letter, current_letter, _local6, {_x:0, _y:top});
break;
case "d_u" :
mask_line.gotoAndStop("up_down");
line_border.gotoAndStop("up_down");
_local6 = mask_line.getDepth() - 1;
_global.fwg = attachMovie(current_letter, current_letter, _local6, {_x:0, _y:down});
}
trace(" puzzle2 _global.fwg::: " + _global.fwg);
trace(" puzzle2 :: " + mask_line);
_global.fwg.setMask(mask_line);
onEnterFrame = function () {
var _local2 = this.getNextHighestDepth();
this.letters.swapDepths(_local2);
if (this.right_num >= 3) {
this._alpha = this._alpha - 5;
if ((--this.dead_time) <= 0) {
trace(" dead_time::: " + this.dead_time);
this.swapDepths(0);
this.removeMovieClip();
}
}
};
F.onPress = (W.onPress = (G.onPress = function () {
Global.playSound("right_click_sound");
var _local6 = this._name;
if (_local6 == this._parent.current_letter) {
var _local4 = new flash.filters.GlowFilter(13369344, 0.5, 10, 10, 2, 3);
this.filters = [_local4];
this._parent.right_num++;
trace(" \u6210\u529F\u8BA1\u6570:: " + this._parent.right_num);
_global.fwg.swapDepths(1000);
_global.fwg.removeMovieClip();
if (this._parent.right_num >= 3) {
if (this._parent.run_one) {
this._parent.run_one = false;
Global.GAME.mPage.bPause = false;
Global.GAME.mPage.mClip.green_stone_man.body.gotoAndStop("split_stone");
mx.transitions.TransitionManager.start(this._parent, {type:mx.transitions.Iris, direction:mx.transitions.Transition.OUT, duration:3, easing:mx.transitions.easing.Strong.easeOut, startPoint:5, shape:mx.transitions.Iris.CIRCLE});
}
return(undefined);
}
var _local3 = random(this._parent.appear_turn_arr.length);
trace(" index :: " + _local3);
this._parent.current_letter = this._parent.appear_turn_arr[_local3];
trace(" this._parent.current_letter::: " + this._parent.current_letter);
this._parent.appear_turn_arr.splice(_local3, 1);
trace(" this._parent.appear_turn_arr::: " + this._parent.appear_turn_arr.length);
switch (this._parent.which_way) {
case "l_r" :
this._parent.mask_line.gotoAndStop("left_right");
var _local5 = this._parent.mask_line.getDepth() - 1;
_global.fwg = this._parent.attachMovie(this._parent.current_letter, this._parent.current_letter, _local5, {_x:this._parent.left, _y:0});
trace(" \u5DE6\u5230\u53F3:: " + _global.fwg);
break;
case "r_l" :
this._parent.mask_line.gotoAndStop("left_right");
_local5 = this._parent.mask_line.getDepth() - 1;
_global.fwg = this._parent.attachMovie(this._parent.current_letter, this._parent.current_letter, _local5, {_x:this._parent.right, _y:0});
trace(" \u53F3\u5230\u5DE6:: " + _global.fwg);
break;
case "u_d" :
this._parent.mask_line.gotoAndStop("up_down");
_local5 = this._parent.mask_line.getDepth() - 1;
_global.fwg = this._parent.attachMovie(this._parent.current_letter, this._parent.current_letter, _local5, {_x:0, _y:this._parent.top});
trace(" \u4E0A\u5230\u4E0B:: " + _global.fwg);
break;
case "d_u" :
this._parent.mask_line.gotoAndStop("up_down");
_local5 = this._parent.mask_line.getDepth() - 1;
_global.fwg = this._parent.attachMovie(this._parent.current_letter, this._parent.current_letter, _local5, {_x:0, _y:this._parent.top});
trace(" \u4E0B\u5230\u4E0A:: " + _global.fwg);
}
_global.fwg.setMask(this._parent.mask_line);
}
}));
A.onPress = (B.onPress = (C.onPress = (D.onPress = (E.onPress = (H.onPress = (I.onPress = (J.onPress = (K.onPress = (L.onPress = (M.onPress = (N.onPress = (O.onPress = (P.onPress = (Q.onPress = (R.onPress = (S.onPress = (T.onPress = (U.onPress = (V.onPress = (X.onPress = (Y.onPress = (Z.onPress = function () {
Global.GAME.nScore = Global.GAME.nScore - 5;
Global.GAME.mPage.mClip.score_num.text = Global.GAME.nScore;
Global.playSound("wrong_click_letter");
}))))))))))))))))))))));
}
function run() {
}
var total_way_arr = ["l_r", "r_l", "u_d", "d_u"];
var right_num = 0;
var appear_turn_arr = ["F", "W", "G"];
var top = -168;
var down = 145;
var left = -220;
var right = 220;
var dead_time = 60;
var run_one = true;
}
Symbol 1230 MovieClip [__Packages.Moving_Letter] Frame 0
class Moving_Letter extends MovieClip
{
var top, down, _parent, left, right, onEnterFrame, x_speed, y_speed, old_x, old_y, _x, _y;
function Moving_Letter () {
super();
top = 0;
down = _parent._height;
left = 0;
right = _parent._width;
onEnterFrame = function () {
this.run();
};
}
function run() {
switch (_parent.which_way) {
case "l_r" :
x_speed = 1;
y_speed = 0;
old_x = old_x + x_speed;
old_y = old_y + y_speed;
if (old_x >= _parent.right) {
old_x = _parent.left;
}
break;
case "r_l" :
x_speed = -1;
y_speed = 0;
old_x = old_x + x_speed;
old_y = old_y + y_speed;
if (old_x <= _parent.left) {
old_x = _parent.right;
}
break;
case "u_d" :
x_speed = 0;
y_speed = 1;
old_x = old_x + x_speed;
old_y = old_y + y_speed;
if (old_y >= _parent.down) {
old_y = _parent.top;
}
break;
case "d_u" :
x_speed = 0;
y_speed = -1;
old_x = old_x + x_speed;
old_y = old_y + y_speed;
if (old_y > _parent.top) {
break;
}
old_y = _parent.down;
}
_x = old_x;
_y = old_y;
}
}
Symbol 1231 MovieClip [__Packages.Mouse_Pic] Frame 0
class Mouse_Pic extends MovieClip
{
var red_area, _parent, green_area, blue_area, onEnterFrame;
function Mouse_Pic () {
super();
red_area = _parent.red_area;
green_area = _parent.green_area;
blue_area = _parent.blue_area;
onEnterFrame = function () {
if (_global.pic != "nothing") {
this._x = this._parent._xmouse;
this._y = this._parent._ymouse;
var _local3 = ANLIK.get_global_obj(this);
switch (_global.pic) {
case "red_btn" :
if (this.red_area.hitTest(_local3.x, _local3.y, true)) {
this._parent.red_stone_man.body.gotoAndStop("red_eyes");
trace(" \u7EA2: " + Global.GAME.add_eyes_num);
Mouse.show();
Global.GAME.mPage.mClip.red_icon.gotoAndStop("gray");
_global.pic = undefined;
this.swapDepths(0);
this.removeMovieClip();
delete this.onEnterFrame;
}
break;
case "green_btn" :
if (this.green_area.hitTest(_local3.x, _local3.y, true)) {
this._parent.green_stone_man.body.gotoAndStop("green_eyes");
trace(" \u7EFF " + Global.GAME.add_eyes_num);
Mouse.show();
Global.GAME.mPage.mClip.green_icon.gotoAndStop("gray");
this.swapDepths(0);
_global.pic = undefined;
this.removeMovieClip();
delete this.onEnterFrame;
}
break;
case "blue_btn" :
if (!this.blue_area.hitTest(_local3.x, _local3.y, true)) {
break;
}
this._parent.blue_stone_man.body.gotoAndStop("blue_eyes");
trace(" \u84DD " + Global.GAME.add_eyes_num);
Global.GAME.mPage.mClip.blue_icon.gotoAndStop("gray");
Mouse.show();
_global.pic = undefined;
this.swapDepths(0);
this.removeMovieClip();
delete this.onEnterFrame;
}
}
};
}
function run() {
}
}
Symbol 1 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.2.127";
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 2 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.2.127";
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 3 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.2.127";
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 4 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.2.127";
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 34 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 35 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 36 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 37 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 39 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 40 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 41 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 42 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 43 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 44 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 45 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.2.127";
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 46 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 47 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 48 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 49 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 50 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 51 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.2.127";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 52 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.2.127";
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 53 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 54 MovieClip [__Packages.hjw.view.controls.ToolTipControl] Frame 0
!!!ERROR
Symbol 59 MovieClip [__Packages.hjw.lang.Runnable] Frame 0
!!!ERROR
Symbol 60 MovieClip [__Packages.hjw.lang.Thread] Frame 0
!!!ERROR
Symbol 61 MovieClip [__Packages.hjw.view.controls.ToolTip] Frame 0
!!!ERROR
Symbol 62 MovieClip [__Packages.hjw.view.controls.ToolTipManager] Frame 0
!!!ERROR
Symbol 71 MovieClip Frame 1
function isIn(domainName) {
return(((isInUrlFront(domainName) || (isInUrlFront("http://" + domainName))) || (isInUrlFront("http://www." + domainName))) || (isInUrlFront("www." + domainName)));
}
function isInUrlFront(str) {
var _local1 = _url;
_local1.toLowerCase();
str.toLowerCase();
return(_local1.indexOf(str) == 0);
}
_x = (Stage.width / 2);
_y = (Stage.height / 2);
this._visible = false;
return(undefined);
Symbol 93 MovieClip Frame 1
_x = (Stage.width / 2);
_y = (Stage.height / 2);
if (bOpen) {
_root.stop();
onPress = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
} else {
_visible = false;
}
Symbol 93 MovieClip Frame 114
stop();
onEnterFrame = function () {
if (_alpha <= 0) {
_parent.play();
delete onEnterFrame;
} else {
_alpha = (_alpha - 5);
}
};
Symbol 101 MovieClip [mouse_pic] Frame 1
#initclip 130
Object.registerClass("mouse_pic", Mouse_Pic);
#endinitclip
Symbol 179 MovieClip Frame 56
stop();
next_btn.onPress = function () {
var _local2 = this._parent._currentframe + 1;
this._parent.gotoAndPlay(_local2);
};
Symbol 179 MovieClip Frame 109
stop();
next_btn.onPress = function () {
var _local2 = this._parent._currentframe + 1;
this._parent.gotoAndPlay(_local2);
};
Symbol 179 MovieClip Frame 162
stop();
next_btn.onPress = function () {
var _local2 = this._parent._currentframe + 1;
this._parent.gotoAndPlay(_local2);
};
Symbol 179 MovieClip Frame 226
stop();
next_btn.onPress = function () {
var _local2 = this._parent._currentframe + 1;
this._parent.gotoAndPlay(_local2);
Global.GAME.mPage.bPause = false;
};
Symbol 179 MovieClip Frame 270
_global.word_animation = undefined;
Mystery_of_Easter_Island.SHOULD_RUN_STEP++;
this._parent.swapDepths(0);
this._parent.removeMovieClip();
Symbol 180 MovieClip [word_animation] Frame 1
Global.GAME.mPage.bPause = true;
Symbol 182 MovieClip [sun_btn] Frame 1
#initclip 94
Object.registerClass("sun_btn", Sun);
#endinitclip
Symbol 189 MovieClip Frame 20
this._parent.gotoAndStop("normal");
Symbol 195 MovieClip Frame 37
Global.playSound("24");
Symbol 195 MovieClip Frame 81
stop();
Global.GAME.mPage.mClip.big_stone.step = 15;
Global.GAME.mPage.mClip.dragon_print.body.gotoAndStop("the_end");
Mystery_of_Easter_Island.SHOULD_RUN_STEP++;
Symbol 196 MovieClip Frame 1
this._parent.my_state = "normal";
Symbol 196 MovieClip Frame 10
this._parent.my_state = "wrong_click";
Symbol 196 MovieClip Frame 20
this._parent.my_state = "English_animation";
Symbol 201 MovieClip [cure_bullet] Frame 1
#initclip 95
Object.registerClass("cure_bullet", Cure_Bullet);
#endinitclip
Symbol 209 MovieClip Frame 15
this._parent.gotoAndStop("normal");
Symbol 210 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 9
Global.playSound("15_2");
Symbol 235 MovieClip Frame 30
Global.playSound("16");
Symbol 235 MovieClip Frame 75
stop();
Global.GAME.shooting_for_cure = true;
Symbol 243 MovieClip Frame 1
Global.playSound("15_3");
Symbol 244 MovieClip Frame 1
this._parent.my_state = "normal";
Symbol 244 MovieClip Frame 10
this._parent.my_state = "wrong_click";
Global.playSound("25");
Symbol 244 MovieClip Frame 20
this._parent.my_state = "right_click";
Symbol 244 MovieClip Frame 31
this._parent.my_state = "in_the_car";
Global.playSound("15_1");
Symbol 244 MovieClip Frame 41
this._parent.my_state = "shoot";
Symbol 244 MovieClip Frame 51
this._parent.my_state = "run_car";
Symbol 245 MovieClip [temp_car] Frame 1
#initclip 96
Object.registerClass("temp_car", Car);
#endinitclip
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 50
stop();
Global.GAME.tree_2_num++;
Symbol 253 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 50
stop();
Global.GAME.tree_2_num++;
Symbol 254 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 50
stop();
Global.GAME.tree_2_num++;
Symbol 262 MovieClip Frame 49
stop();
Symbol 265 MovieClip Frame 1
Global.playSound("new_fly");
Symbol 265 MovieClip Frame 90
Global.SOUND.stop();
Symbol 265 MovieClip Frame 114
stop();
Global.GAME.mPage.mClip.red_plant.body.gotoAndStop("transform_receive");
Global.GAME.mPage.mClip.blue_plant.body.gotoAndStop("transform_receive");
Global.GAME.mPage.mClip.green_plant.body.gotoAndStop("transform_receive");
this._parent.gotoAndStop("small_normal");
Symbol 270 MovieClip Frame 1
Global.playSound("new_fly");
Symbol 270 MovieClip Frame 45
Global.SOUND.stop();
Symbol 270 MovieClip Frame 50
this._parent._parent._parent.dragon_print.body.gotoAndStop("appear_energy");
Symbol 270 MovieClip Frame 55
this._parent._parent._parent.sun_btn.swapDepths(0);
this._parent._parent._parent.sun_btn.removeMovieClip();
this._parent._parent.swapDepths(0);
this._parent._parent.removeMovieClip();
Symbol 272 MovieClip [sun] Frame 1
#initclip 97
Object.registerClass("sun", Sun);
#endinitclip
Symbol 278 MovieClip Frame 4
this._parent.gotoAndStop("normal");
Symbol 286 MovieClip Frame 50
stop();
Symbol 297 MovieClip Frame 19
stop();
Global.GAME.tree_num++;
Symbol 303 MovieClip Frame 60
stop();
Global.GAME.bomb_num++;
Symbol 305 MovieClip Frame 1
this._parent.my_state = "normal";
Symbol 305 MovieClip Frame 10
this._parent.my_state = "wrong_click";
Symbol 305 MovieClip Frame 20
this._parent.my_state = "right_click";
Symbol 305 MovieClip Frame 31
this._parent.my_state = "scanning";
Symbol 305 MovieClip Frame 41
Global.playSound("9");
Symbol 306 MovieClip [red_plant] Frame 1
#initclip 98
Object.registerClass("red_plant", Plant);
#endinitclip
Symbol 308 MovieClip Frame 4
this._parent.gotoAndStop("normal");
Symbol 313 MovieClip Frame 50
stop();
Symbol 320 MovieClip Frame 19
stop();
Global.GAME.tree_num++;
Symbol 326 MovieClip Frame 60
stop();
Global.GAME.bomb_num++;
Symbol 328 MovieClip Frame 1
this._parent.my_state = "normal";
Symbol 328 MovieClip Frame 10
this._parent.my_state = "wrong_click";
Symbol 328 MovieClip Frame 20
this._parent.my_click = "right_click";
Symbol 328 MovieClip Frame 31
this._parent.my_state = "scanning";
Global.playSound("6");
Symbol 328 MovieClip Frame 41
Global.playSound("9");
Symbol 329 MovieClip [green_plant] Frame 1
#initclip 99
Object.registerClass("green_plant", Plant);
#endinitclip
Symbol 331 MovieClip Frame 4
this._parent.gotoAndStop("normal");
Symbol 336 MovieClip Frame 50
stop();
Symbol 343 MovieClip Frame 19
stop();
Global.GAME.tree_num++;
Symbol 349 MovieClip Frame 60
stop();
Global.GAME.bomb_num++;
Symbol 351 MovieClip Frame 1
this._parent.my_state = "normal";
Symbol 351 MovieClip Frame 10
this._parent.my_state = "wrong_click";
Symbol 351 MovieClip Frame 20
this._parent.my_state = "right_click";
Symbol 351 MovieClip Frame 31
this._parent.my_state = "scanning";
Symbol 351 MovieClip Frame 41
Global.playSound("9");
Symbol 352 MovieClip [blue_plant] Frame 1
#initclip 100
Object.registerClass("blue_plant", Plant);
#endinitclip
Symbol 359 MovieClip Frame 1
Global.playSound("14");
Symbol 360 MovieClip Frame 1
Global.playSound("run_hat");
Symbol 360 MovieClip Frame 41
this._parent.gotoAndStop("static");
Symbol 368 MovieClip Frame 1
Global.playSound("5");
Symbol 368 MovieClip Frame 24
Global.playSound("5");
Symbol 368 MovieClip Frame 47
Global.GAME.tree_num++;
this._parent.gotoAndStop("static");
Symbol 417 MovieClip Frame 1
Global.playSound("new_fly");
Symbol 419 MovieClip Frame 1
this._parent.my_state = "static";
Symbol 419 MovieClip Frame 10
this._parent.my_state = "walk";
Symbol 419 MovieClip Frame 20
this._parent.my_state = "run_hat";
Symbol 419 MovieClip Frame 31
this._parent.my_state = "using_electric_drill";
Symbol 419 MovieClip Frame 47
this._parent.my_state = "throw_stone_powder";
Symbol 419 MovieClip Frame 62
this._parent.my_state = "fly";
Symbol 420 MovieClip [archeologist] Frame 1
#initclip 101
Object.registerClass("archeologist", Archeologist);
#endinitclip
Symbol 431 MovieClip Frame 10
stop();
Symbol 431 MovieClip Frame 310
stop();
Symbol 453 MovieClip Frame 10
stop();
Symbol 453 MovieClip Frame 310
stop();
this._parent.next_btn._visible = true;
Symbol 468 MovieClip Frame 10
stop();
Symbol 468 MovieClip Frame 310
stop();
Symbol 473 MovieClip Frame 10
this._parent.gotoAndStop("normal");
Symbol 474 MovieClip Frame 1
Global.playSound("shake");
Symbol 474 MovieClip Frame 24
Global.GAME.finished_step_2 = true;
trace(Global.GAME.mPage.mClip.archeologist);
Global.GAME.mPage.mClip.archeologist.body.gotoAndStop("static");
this._parent.gotoAndStop("normal");
Symbol 475 MovieClip Frame 1
this._parent.my_state = "normal";
Symbol 475 MovieClip Frame 10
this._parent.my_state = "wrong_click";
Symbol 475 MovieClip Frame 20
this._parent.my_state = "right_click";
Symbol 482 MovieClip Frame 20
this._parent.gotoAndStop("normal");
Symbol 483 MovieClip Frame 1
this._parent.my_state = "normal";
Symbol 483 MovieClip Frame 10
this._parent.my_state = "wrong_click";
Symbol 517 MovieClip Frame 15
Global.playSound("appear_alien");
Symbol 517 MovieClip Frame 69
stop();
Symbol 518 MovieClip Frame 20
stop();
Mystery_of_Easter_Island.SHOULD_RUN_STEP++;
Symbol 519 MovieClip Frame 30
this._parent.gotoAndStop("normal");
Symbol 520 MovieClip Frame 30
stop();
Symbol 521 MovieClip Frame 16
var depth = Global.GAME.mPage.mClip.getNextHighestDepth();
Global.GAME.mPage.bPause = true;
var meme = Global.GAME.mPage.mClip.attachMovie("Pop_Up_3", "Pop_Up_3" + depth, depth, {_x:Stage.width / 2, _y:Stage.height / 2});
mx.transitions.TransitionManager.start(meme, {type:mx.transitions.PixelDissolve, direction:mx.transitions.Transition.IN, duration:0.5, easing:mx.transitions.easing.None.easeNone, xSections:20, ySections:20});
Symbol 521 MovieClip Frame 32
this._parent.gotoAndStop("normal");
Symbol 522 MovieClip Frame 7
Global.GAME.add_eyes_num++;
Global.playSound("eye2");
Symbol 522 MovieClip Frame 33
Global.playSound("27");
Symbol 522 MovieClip Frame 45
Global.playSound("27");
Symbol 522 MovieClip Frame 66
trace(" \u600E\u4E48\u56DE\u4E8B??? ");
Symbol 530 MovieClip Frame 41
this._parent.gotoAndStop("normal");
Symbol 550 MovieClip Frame 15
Global.playSound("appear_alien");
Symbol 550 MovieClip Frame 69
stop();
Symbol 551 MovieClip Frame 30
this._parent.gotoAndStop("normal");
Symbol 552 MovieClip Frame 1
this._parent.my_state = "normal";
Symbol 552 MovieClip Frame 9
this._parent.my_state = "wrong_click";
Symbol 552 MovieClip Frame 21
this._parent.my_state = "red_eyes";
Global.GAME.add_eyes_num++;
Global.playSound("eye1");
Symbol 552 MovieClip Frame 33
this._parent.my_state = "become";
Symbol 557 MovieClip Frame 20
this._parent.gotoAndStop("normal");
Symbol 558 MovieClip Frame 1
this._parent.my_state = "normal";
Symbol 558 MovieClip Frame 10
this._parent.my_state = "wrong_click";
Symbol 562 MovieClip Frame 30
stop();
Symbol 563 MovieClip Frame 30
stop();
this._parent.gotoAndStop("normal");
Symbol 564 MovieClip Frame 10
Global.playSound("26");
Symbol 590 MovieClip Frame 69
stop();
Symbol 596 MovieClip Frame 9
this._parent.gotoAndStop("normal");
Symbol 602 MovieClip Frame 3
Global.GAME.mPage.mClip.red_crystal._visible = true;
Symbol 602 MovieClip Frame 10
stop();
Symbol 606 MovieClip Frame 20
this._parent.gotoAndStop("normal");
Symbol 611 MovieClip Frame 20
this._parent.gotoAndStop("normal");
Symbol 612 MovieClip Frame 30
this._parent.gotoAndStop("normal");
Symbol 613 MovieClip Frame 1
this._parent.my_state = "normal";
Symbol 613 MovieClip Frame 10
this._parent.my_state = "blue_eyes";
Global.GAME.add_eyes_num++;
Global.playSound("eye3");
Symbol 613 MovieClip Frame 21
this._parent.my_state = "become";
Global.playSound("appear_alien");
Symbol 613 MovieClip Frame 37
this._parent.my_state = "wrong_click";
Global.playSound("4");
Symbol 613 MovieClip Frame 50
this._parent.my_state = "open_the_mouth";
Global.playSound("28");
Symbol 613 MovieClip Frame 71
this._parent.my_state = "shut_up";
Symbol 615 MovieClip Frame 1
this._parent.my_state = "normal";
Symbol 615 MovieClip Frame 11
this._parent.my_state = "wrong_click";
Symbol 636 MovieClip Frame 107
Global.playSound("20");
Symbol 636 MovieClip Frame 153
stop();
Mystery_of_Easter_Island.SHOULD_RUN_STEP++;
Symbol 642 MovieClip Frame 30
this._parent.gotoAndStop("normal");
Symbol 647 MovieClip Frame 1
Global.playSound("23");
Symbol 660 MovieClip Frame 31
stop();
houhou._visible = false;
var my_obj = ANLIK.get_me_in_target_local(houhou, Global.GAME.mPage.mClip);
var depth = (this._parent._parent.getDepth() - 1);
_global.small_machine = Global.GAME.mPage.mClip.attachMovie("small_machine", "small_machine", depth, {_x:my_obj.x, _y:my_obj.y});
_global.small_machine.step = 13;
Mystery_of_Easter_Island.SHOULD_RUN_STEP++;
_global.small_machine.onPress = function () {
if (Mystery_of_Easter_Island.CHECK_RIGHT(this)) {
this._visible = false;
Mystery_of_Easter_Island.SHOULD_RUN_STEP++;
Global.GAME.mPage.mClip.dragon_print.body.gotoAndStop("incept_energy");
}
};
Symbol 662 MovieClip Frame 1
stop();
Symbol 663 MovieClip Frame 1
this._parent.my_state = "normal";
Symbol 663 MovieClip Frame 11
this._parent.my_state = "fall";
Global.playSound("21");
Symbol 663 MovieClip Frame 21
Global.playSound("3");
this._parent.my_state = "wrong_click";
Symbol 663 MovieClip Frame 31
this._parent.my_state = "scanning_big_stone";
Symbol 663 MovieClip Frame 51
this._parent.my_state = "incept_energy";
Symbol 663 MovieClip Frame 66
this._parent.my_state = "appear_energy";
Symbol 673 MovieClip Frame 1
stop();
Symbol 673 MovieClip Frame 71
stop();
Global.GAME.raise_stone_num++;
Symbol 676 MovieClip Frame 1
stop();
Symbol 676 MovieClip Frame 71
stop();
Global.GAME.raise_stone_num++;
Symbol 679 MovieClip Frame 1
stop();
Symbol 679 MovieClip Frame 71
stop();
Global.GAME.raise_stone_num++;
Symbol 685 MovieClip Frame 1
stop();
Symbol 685 MovieClip Frame 2
Global.playSound("17");
Symbol 685 MovieClip Frame 6
this._parent._parent.big_stone._visible = true;
this._parent._parent.big_stone.gotoAndPlay(2);
this._parent._parent.blue_stone.swapDepths(0);
this._parent._parent.blue_stone.removeMovieClip();
this._parent._parent.red_stone.swapDepths(0);
this._parent._parent.red_stone.removeMovieClip();
this._parent._parent.green_stone.swapDepths(0);
this._parent._parent.green_stone.removeMovieClip();
Symbol 685 MovieClip Frame 37
this.swapDepths(0);
Mystery_of_Easter_Island.SHOULD_RUN_STEP++;
this._parent._parent.sun.step_sn++;
this._parent._parent.sun.step = this._parent._parent.sun.step_arr[this._parent._parent.sun.step_sn];
this._parent._parent.sun_btn.step = this._parent._parent.sun.step;
this._parent._parent.archeologist._visible = true;
this._parent._parent.archeologist._x = this._parent._parent.cure_point._x;
this._parent._parent.car.body.gotoAndStop("normal");
this.removeMovieClip();
Symbol 690 MovieClip [界面-道具] Frame 1
#initclip 102
Object.registerClass("\u754C\u9762-\u9053\u5177", Interface_Icon);
#endinitclip
Symbol 706 MovieClip Frame 1
stop();
Symbol 711 MovieClip Frame 1
stop();
Symbol 716 MovieClip Frame 1
stop();
Symbol 725 MovieClip Frame 1
stop();
var run_one = true;
this.onEnterFrame = function () {
if (this._visible) {
if (run_one) {
run_one = false;
Global.playSound("pop_up_tip");
}
}
};
Symbol 728 Button
on (press) {
Global.GAME.mPage.mClip.next_btn._visible = false;
Global.GAME.mPage.mClip.next_btn._x = Global.GAME.mPage.mClip.next_btn._x + 500;
Global.GAME.mPage.bPause = true;
var depth = this._parent.getNextHighestDepth();
_global.win = true;
this._parent.attachMovie("youwin", "youwin" + depth, depth, {_x:0, _y:0});
}
Symbol 754 MovieClip Frame 17
Global.playSound("puzzle_bomb");
var huhu = (random(20) + 1);
_global.old_level = huhu;
var depth = Global.GAME.mPage.mClip.getNextHighestDepth();
Global.GAME.mPage.bPause = true;
_global.popup_4 = Global.GAME.mPage.mClip.attachMovie("Pop_Up_4", "Pop_Up_4" + depth, depth, {_x:-12, _y:59});
TransitionManager.start(_global.popup_4, {type:Photo, direction:Transition.IN, duration:1, easing:None.easeNone});
Symbol 754 MovieClip Frame 60
stop();
trace(" ????? ");
Symbol 755 MovieClip Frame 41
Global.playSound("bomb");
Symbol 760 Button
on (press) {
getURL ("http://www.freeworldgroup.com/walkthroughs/easterislandmystery.htm", "_blank");
}
Symbol 762 MovieClip [Game_Run] Frame 1
#initclip 103
Object.registerClass("Game_Run", Game_Run);
#endinitclip
stop();
next_btn._visible = false;
var reset_btn;
reset_btn.onPress = function () {
Global.GAME.use_reset = true;
Global.GAME.goto("qieqie");
};
_root._quality = "high";
btq.onRelease = function () {
this._parent._parent.btQ.press();
};
btq.enabled = false;
btm.gotoAndStop(_root.btm);
var old_m_frame;
var old_s_frame;
var old_p_frame;
btm.onRollOver = function () {
old_m_frame = this._currentframe;
trace(old_m_frame);
this.gotoAndStop(old_m_frame + 2);
};
btm.onRollOut = function () {
this.gotoAndStop(old_m_frame);
};
btq.onRollOver = function () {
this.gotoAndStop("mouse_over");
};
btq.onRollOut = function () {
this.gotoAndStop(1);
};
bts.onRollOver = function () {
old_s_frame = this._currentframe;
this.gotoAndStop(old_s_frame + 2);
};
bts.onRollOut = function () {
this.gotoAndStop(old_s_frame);
};
btmenu.onRollOver = function () {
this.gotoAndStop("mouse_over");
};
btmenu.onRollOut = function () {
this.gotoAndStop(1);
};
btp.onRollOver = function () {
old_p_frame = this._currentframe;
this.gotoAndStop(old_p_frame + 2);
};
btp.onRollOut = function () {
this.gotoAndStop(old_p_frame);
};
btm.onRelease = function () {
if ((this._currentframe == 1) || (this._currentframe == 3)) {
this.gotoAndStop(2);
old_m_frame = 2;
_root.btm = 2;
} else if ((this._currentframe == 2) || (this._currentframe == 4)) {
this.gotoAndStop(1);
old_m_frame = 1;
_root.btm = 1;
}
this._parent._parent.btM.press();
};
bts.onRelease = function () {
if ((this._currentframe == 1) || (this._currentframe == 3)) {
old_s_frame = 2;
this.gotoAndStop(2);
} else if ((this._currentframe == 2) || (this._currentframe == 4)) {
old_s_frame = 1;
this.gotoAndStop(1);
}
this._parent._parent.btS.press();
};
btmenu.gotoAndStop(1);
btmenu.onRelease = function () {
this._parent._parent.btMenu.press();
};
btp.onRelease = function () {
if ((this._currentframe == 1) || (this._currentframe == 3)) {
old_p_frame = 2;
this.gotoAndStop(2);
} else if ((this._currentframe == 2) || (this._currentframe == 4)) {
old_p_frame = 1;
this.gotoAndStop(1);
}
Global.GAME.mPage.bPause = !Global.GAME.mPage.bPause;
};
Symbol 763 MovieClip [Game] Frame 1
#initclip 104
Object.registerClass("Game", Game);
#endinitclip
this.inFrame();
Symbol 765 MovieClip [common.PopUp] Frame 1
#initclip 105
Object.registerClass("common.PopUp", common.PopUp);
#endinitclip
this.init();
Symbol 765 MovieClip [common.PopUp] Frame 2
this.inShow();
Symbol 768 MovieClip [common.Btn_c&c&v] Frame 1
#initclip 106
Object.registerClass("common.Btn_c&c&v", common.Btn);
#endinitclip
var sTemp = typeof(eval (_sTxt));
if (sTemp == "function") {
_sTxt = eval (_sTxt)();
} else if ((sTemp == "string") || (sTemp == "number")) {
_sTxt = eval (_sTxt);
} else {
_sTxt = String(_sTxt);
}
delete sTemp;
this.init(_sTxt);
Symbol 771 MovieClip [common.Btn] Frame 1
#initclip 107
Object.registerClass("common.Btn", common.Btn);
#endinitclip
this.init();
Symbol 773 MovieClip [common.Txt] Frame 1
#initclip 108
Object.registerClass("common.Txt", common.Txt);
#endinitclip
var sTemp = typeof(eval (_sTxt));
if (sTemp == "function") {
_sTxt = eval (_sTxt)();
} else if ((sTemp == "string") || (sTemp == "number")) {
_sTxt = eval (_sTxt);
} else {
_sTxt = String(_sTxt);
}
delete sTemp;
this.init(_sTxt);
Symbol 775 Button
on (press) {
Global.GAME.goto("menu");
}
Symbol 847 MovieClip Frame 36
stop();
Global.GAME.pages++;
var num = this._currentframe;
next_btn.onPress = function () {
this._parent.gotoAndPlay(num + 1);
};
Symbol 847 MovieClip Frame 68
stop();
Global.GAME.pages++;
next_btn.onPress = function () {
var _local2 = this._parent._currentframe;
this._parent.gotoAndPlay(_local2 + 1);
};
back_btn.onPress = function () {
this._parent.gotoAndStop("p1");
};
Symbol 847 MovieClip Frame 142
stop();
next_btn.onPress = function () {
var _local2 = this._parent._currentframe;
this._parent.gotoAndPlay(_local2 + 1);
};
trace(Global.GAME.pages);
back_btn.onPress = function () {
this._parent.gotoAndStop("p2");
};
Symbol 847 MovieClip Frame 173
stop();
stop();
next_btn.onPress = function () {
var _local2 = this._parent._currentframe;
this._parent.gotoAndPlay(_local2 + 1);
};
back_btn.onPress = function () {
this._parent.gotoAndStop("p3");
};
Symbol 847 MovieClip Frame 233
stop();
Global.GAME.goto("menu");
Symbol 848 MovieClip [page.Page_menu] Frame 1
#initclip 109
Object.registerClass("page.Page_menu", page.Page_menu);
#endinitclip
this.inFrame();
mClip.gotoAndStop("final");
Symbol 849 MovieClip [page.Page_begin_ani] Frame 1
#initclip 110
Object.registerClass("page.Page_begin_ani", page.Page_begin_ani);
#endinitclip
this.inFrame();
Symbol 850 MovieClip [page.Page_playing] Frame 1
#initclip 111
Object.registerClass("page.Page_playing", page.Page_playing);
#endinitclip
this.inFrame();
Symbol 851 MovieClip [page.Page_nextlevel] Frame 1
#initclip 112
Object.registerClass("page.Page_nextlevel", page.Page_nextlevel);
#endinitclip
this.inFrame();
Symbol 852 MovieClip [page.Page_gamewin] Frame 1
#initclip 113
Object.registerClass("page.Page_gamewin", page.Page_gamewin);
#endinitclip
this.inFrame();
Symbol 853 MovieClip [page.Page_gameover] Frame 1
#initclip 114
Object.registerClass("page.Page_gameover", page.Page_gameover);
#endinitclip
this.inFrame();
Symbol 854 MovieClip [page.Page_qieqie] Frame 1
#initclip 115
Object.registerClass("page.Page_qieqie", page.Page_qieqie);
#endinitclip
Symbol 854 MovieClip [page.Page_qieqie] Frame 2
Fade.start();
Mystery_of_Easter_Island.SHOULD_RUN_STEP = 1;
Global.GAME.tree_num = 0;
Global.GAME.tree_2_num = 0;
Global.GAME.bomb_num = 0;
Global.GAME.finished_step_2 = false;
Global.GAME.finished_step_3 = false;
Global.GAME.shooting_for_cure = false;
Global.GAME.raise_stone_num = 0;
Global.GAME.add_eyes_num = 0;
Global.GAME.pages = 0;
Global.GAME.use_reset = true;
Global.GAME.nScore = 0;
Global.GAME.goto("playing");
Symbol 862 MovieClip [page.Page_help] Frame 1
#initclip 116
Object.registerClass("page.Page_help", page.Page_help);
#endinitclip
this.inFrame();
Symbol 863 MovieClip [page.Page_credits] Frame 1
#initclip 117
Object.registerClass("page.Page_credits", page.Page_credits);
#endinitclip
this.inFrame();
Symbol 868 MovieClip [light] Frame 1
#initclip 118
Object.registerClass("light", Light_Btn);
#endinitclip
Symbol 873 MovieClip [Gear] Frame 1
#initclip 119
Object.registerClass("Gear", Gear);
#endinitclip
Symbol 884 MovieClip [弹出太阳-光芒] Frame 1
#initclip 120
Object.registerClass("\u5F39\u51FA\u592A\u9633-\u5149\u8292", Light_Btn);
#endinitclip
Symbol 890 MovieClip [弹出太阳-星星] Frame 1
#initclip 121
Object.registerClass("\u5F39\u51FA\u592A\u9633-\u661F\u661F", Gear);
#endinitclip
Symbol 891 MovieClip [Sun_Pop_Up] Frame 1
#initclip 122
Object.registerClass("Sun_Pop_Up", Sun_Pop_Up);
#endinitclip
close_mc.onPress = function () {
Global.GAME.mPage.bPause = false;
this._parent._parent.sun.add_pop_up = false;
this._parent.swapDepths(0);
this._parent.removeMovieClip();
};
Symbol 903 MovieClip Frame 21
stop();
this._parent.swapDepths(0);
Global.GAME.mPage.mClip.red_stone._visible = true;
this._parent.removeMovieClip();
Symbol 914 MovieClip Frame 1
Global.playSound("13");
Symbol 914 MovieClip Frame 21
stop();
this._parent.swapDepths(0);
Global.GAME.mPage.mClip.blue_stone._visible = true;
this._parent.removeMovieClip();
Symbol 925 MovieClip Frame 1
Global.playSound("13");
Symbol 925 MovieClip Frame 21
stop();
this._parent.swapDepths(0);
Global.GAME.mPage.mClip.green_stone._visible = true;
this._parent.removeMovieClip();
Symbol 933 MovieClip [pzs.old.Station] Frame 1
#initclip 123
Object.registerClass("pzs.old.Station", pzs.old.Station);
#endinitclip
Symbol 960 MovieClip [pzs.old.Car] Frame 1
#initclip 124
Object.registerClass("pzs.old.Car", pzs.old.Car);
#endinitclip
Symbol 960 MovieClip [pzs.old.Car] Frame 43
stop();
fallFinish();
Symbol 993 MovieClip [pzs.old.OneLineDraw] Frame 1
#initclip 125
Object.registerClass("pzs.old.OneLineDraw", pzs.old.OneLineDraw);
#endinitclip
car._visible = false;
close_mc.onPress = function () {
Global.GAME.mPage.mClip.dragon_print.right_selected = false;
this._parent._parent.swapDepths(0);
Global.GAME.mPage.bPause = false;
this._parent._parent.removeMovieClip();
};
Symbol 998 MovieClip [Pop_Up_2] Frame 1
stop();
_global.car_init_position = {x:oneLineDraw.car._x, y:oneLineDraw.car._y};
resetBtn.onPress = function () {
this._parent.play();
};
trace("" + _global.old_level);
oneLineDraw.playLevel(_global.old_level);
Symbol 1007 MovieClip Frame 1
function open() {
gotoAndPlay (2);
}
function close() {
gotoAndPlay (31);
}
function show(_txt) {
txt = _txt;
gotoAndPlay (2);
}
stop();
var onShow;
var onOpen;
var onClose;
Symbol 1007 MovieClip Frame 15
onOpen();
Symbol 1007 MovieClip Frame 41
stop();
onClose();
onShow();
Symbol 1019 MovieClip Frame 1
stop();
var picW = 400;
var picH = 300;
var bestW;
var bestH;
var w;
var h;
var clickToStart_mc = _parent.clickToStart_mc;
bestW = int(picW / 70);
bestH = int(((picH * 0.9) * bestW) / picW);
w = bestW;
h = bestH;
pic_mc.gotoAndStop(_parent.stageNum);
var myJigsaw = (new pzs.pf1.Jigsaw(mArea, "m", pic_mc, _parent.userMouse, picW, picH, 90, 100, 25, 30, w, h));
_global.pop_up_3 = this._parent;
myJigsaw.win = function () {
Global.GAME.mPage.mClip.energy_ball.gotoAndStop("victory");
var _local3 = Global.GAME.mPage.mClip.sea._currentframe;
Global.GAME.mPage.mClip.sea.gotoAndPlay(_local3 + 1);
_local3 = Global.GAME.mPage.mClip.sky._currentframe;
Global.GAME.mPage.mClip.sky.gotoAndPlay(_local3 + 1);
_local3 = Global.GAME.mPage.mClip.island._currentframe;
Global.GAME.mPage.mClip.island.gotoAndPlay(_local3 + 1);
Global.GAME.mPage.bPause = false;
Global.GAME.nScore = Global.GAME.nScore + (Math.round((1 / Global.GAME.mPage.mClip.game_time) * 10000) + 5000);
Global.GAME.mPage.mClip.score_num.text = Global.GAME.nScore + "";
Mouse.show();
Global.playSound("solvesound");
Global.MUSIC.stop();
_global.pop_up_3.onEnterFrame = function () {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.swapDepths(0);
this.removeMovieClip();
}
};
};
_parent._parent._parent.timer.timeStop();
clickToStart_mc.show("Click to Start!");
clickToStart_mc.onOpen = function () {
clickToStart_mc.stop();
mArea.onPress = function () {
delete this.onPress;
clickToStart_mc.close();
clickToStart_mc.onClose = function () {
myJigsaw.disorder(600, 400);
_parent._parent._parent.timer.timeStart(_parent._parent._parent.gameObj.time);
};
};
};
Symbol 1022 MovieClip Frame 1
Mouse.show();
stop();
Symbol 1022 MovieClip Frame 2
Mouse.hide();
Symbol 1022 MovieClip Frame 3
Mouse.hide();
Symbol 1023 MovieClip [Pop_Up_4] Frame 2
stop();
userMouse._x = -10000;
var num = (random(4) + 1);
stageNum = num;
close_mc.onPress = function () {
Global.GAME.mPage.mClip.energy_ball.right_selected = false;
Global.GAME.mPage.mClip.energy_ball.gotoAndStop("appear");
Global.GAME.mPage.bPause = false;
this._parent.swapDepths(0);
this._parent.removeMovieClip();
};
Symbol 1088 MovieClip Frame 1
this._xscale = _parent.dXscale * 100;
this._yscale = _parent.dYscale * 100;
gotoAndStop(_parent._currentframe);
Symbol 1090 MovieClip Frame 1
this._xscale = _parent.dXscale * 100;
this._yscale = _parent.dYscale * 100;
Symbol 1110 MovieClip [Pop_Up_3] Frame 1
#initclip 126
Object.registerClass("Pop_Up_3", Pop_Up_2);
#endinitclip
line_border._visible = false;
close_mc.onPress = function () {
Global.GAME.mPage.mClip.green_stone_man.right_selected = false;
Global.GAME.mPage.bPause = false;
this._parent.swapDepths(0);
this._parent.removeMovieClip();
};
Symbol 1113 MovieClip [G] Frame 1
#initclip 127
Object.registerClass("G", Moving_Letter);
#endinitclip
Symbol 1115 MovieClip [W] Frame 1
#initclip 128
Object.registerClass("W", Moving_Letter);
#endinitclip
Symbol 1117 MovieClip [F] Frame 1
#initclip 129
Object.registerClass("F", Moving_Letter);
#endinitclip
Symbol 1118 MovieClip Frame 1
this.hehe.text = Global.GAME.nScore;
submit_btn = function () {
this._parent.attachMovie("common.PopUp", "PopUp_submit", this._parent.getNextHighestDepth(), {sFrame:"submit", aSt:["", Global.GAME.nScore]});
_visible = false;
};
play_others = function () {
getURL ("http://www.freeworldgroup.com/games8/gameindex/lifeark3.htm", "blank");
};
view_btn = function () {
};
more_btn = function () {
Global.FWGURL();
};
menu_btn = function () {
Global.GAME.goto("menu");
};
Symbol 1136 Button
on (press) {
getURL ("http://www.freeworldgroup.com/games8/gameindex/lifeark3.htm", "blank");
}
Symbol 1137 MovieClip [youwin] Frame 1
this.hehe.text = Global.GAME.nScore;
if (Global.GAME.nScore == 0) {
submit_btn._visible = false;
}
submit_btn.onPress = function () {
Global.GAME.mPage.attachMovie("common.PopUp", "PopUp_submit", Global.GAME.mPage.getNextHighestDepth(), {sFrame:"submit", aSt:["", Global.GAME.nScore]});
this._parent.submit_btn._visible = false;
};
view_btn = function () {
};
more_btn.onPress = function () {
Global.FWGURL();
};
menu_btn.onPress = function () {
Global.GAME.goto("menu");
};
Symbol 1181 MovieClip Frame 1
stop();
Instance of Symbol 765 MovieClip [common.PopUp] in Symbol 1181 MovieClip Frame 18
//component parameters
onClipEvent (construct) {
sFrame = "ok";
}
Instance of Symbol 768 MovieClip [common.Btn_c&c&v] in Symbol 1181 MovieClip Frame 19
//component parameters
onClipEvent (construct) {
sTxt = "BUTTON";
sAutoSize = "left";
nWidth = 0;
}
Instance of Symbol 771 MovieClip [common.Btn] in Symbol 1181 MovieClip Frame 20
//component parameters
onClipEvent (construct) {
sTxt = "BUTTON";
sAutoSize = "left";
nWidth = 0;
}
Instance of Symbol 773 MovieClip [common.Txt] in Symbol 1181 MovieClip Frame 21
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
nSize = 20;
nColor = 16777215 /* 0xFFFFFF */;
sAlign = "left";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom._height = 0;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
}