Frame 1
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
_root.menu = my_cm;
MochiAd.showPreGameAd({id:"a1bf5ca0bd1e38fd", res:"650x500"});
Frame 3
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
gotoAndStop ("Loading");
}
Frame 7
stop();
Symbol 2 MovieClip Frame 1
onPress = function () {
getURL ("http://www.freeworldgroup.com");
};
Symbol 5 MovieClip Frame 1
function Replace() {
if (sVariable.length == 0) {
tTxt.text = sTxt;
} else {
tTxt.variable = sVariable;
}
tTxt.autoSize = autoSize;
if (autoSize == "right") {
tTxt._x = -Math.floor(tTxt._width);
} else if (autoSize == "center") {
tTxt._x = -Math.floor(tTxt._width / 2);
} else {
tTxt._x = 0;
}
}
var sTxt;
var bBmp;
var bMultiline;
var autoSize;
var sVariable;
Replace();
this.cacheAsBitmap = bBmp;
Symbol 6 MovieClip Frame 1
_x = (Stage.width / 2);
_y = ((Stage.height / 2) - 30);
Symbol 6 MovieClip Frame 25
function flash_loading(x, T, r) {
var _local1 = T / 2;
var _local2 = (-r) / (_local1 * _local1);
return((_local2 * Math.pow((x % T) - _local1, 2)) + r);
}
stop();
var rate;
var all = _root.getBytesTotal();
onEnterFrame = function () {
var _local3 = _root.getBytesLoaded();
rate = int((_local3 / all) * 100) + "%";
mLoading._alpha = flash_loading(getTimer(), 800, 100);
trace(mLoading._alpha);
if (_local3 == all) {
delete this.onEnterFrame;
if ((_root._mochiad instanceof MovieClip) != true) {
_root.play();
}
}
};
Instance of Symbol 5 MovieClip in Symbol 6 MovieClip Frame 25
//component parameters
onClipEvent (construct) {
sTxt = "TXT";
sVariable = "_parent.rate";
autoSize = "center";
bBmp = false;
}
Instance of Symbol 5 MovieClip "mLoading" in Symbol 6 MovieClip Frame 25
//component parameters
onClipEvent (construct) {
sTxt = "Loading...";
sVariable = "";
autoSize = "center";
bBmp = false;
}
Symbol 658 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
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 _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.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 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_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 _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
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;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_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 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();
}};
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_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;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
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) {
_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 showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(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 _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
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 _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
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;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_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);
}
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++;
}
}
return(_local4);
}
}
Symbol 659 MovieClip [__Packages.Global] Frame 0
class Global
{
static var pause;
function Global () {
}
static function runAll() {
var _local3 = runArr.length;
var _local1 = 0;
while (_local1 < _local3) {
if (objArr[_local1][runArr[_local1]] == undefined) {
objArr.splice(_local1, 1);
runArr.splice(_local1, 1);
_local1--;
_local3--;
} else {
objArr[_local1][runArr[_local1]]();
}
_local1++;
}
if (pause) {
updateTestBar();
return(undefined);
}
gameRunArr.sortOn("orderId", Array.NUMERIC);
_local3 = gameRunArr.length;
_local1 = 0;
while (_local1 < _local3) {
var _local2 = gameRunArr[_local1];
if (_local2.obj[_local2.runF] == undefined) {
gameRunArr.splice(_local1, 1);
_local1--;
_local3--;
} else {
_local2.obj[_local2.runF]();
}
_local1++;
}
_local3 = gameDelayRunArr.length;
_local1 = 0;
while (_local1 < _local3) {
if (gameDelayObjArr[_local1][gameDelayRunArr[_local1][0]] == undefined) {
gameDelayObjArr.splice(_local1, 1);
gameDelayRunArr.splice(_local1, 1);
_local1--;
_local3--;
} else if ((--gameDelayRunArr[_local1][1]) <= 0) {
gameDelayObjArr[_local1][gameDelayRunArr[_local1][0]]();
gameDelayObjArr.splice(_local1, 1);
gameDelayRunArr.splice(_local1, 1);
_local1--;
_local3--;
}
_local1++;
}
updateTestBar();
}
static function addRun(obj, runF) {
objArr.push(obj);
runArr.push(runF);
}
static function delRun(obj, runF) {
var _local2 = runArr.length;
var _local1 = 0;
while (_local1 < _local2) {
if ((obj == objArr[_local1]) && (runF == runArr[_local1])) {
objArr.splice(_local1, 1);
runArr.splice(_local1, 1);
return(true);
}
_local1++;
}
return(false);
}
static function addGameRun(obj, runF, orderId) {
if (isNaN(orderId)) {
orderId = 0;
}
gameRunArr.push({obj:obj, runF:runF, orderId:orderId});
}
static function delGameRun(obj, runF) {
var _local3 = gameRunArr.length;
var _local1 = 0;
while (_local1 < _local3) {
var _local2 = gameRunArr[_local1];
if ((obj == _local2.obj) && (runF == _local2.runF)) {
gameRunArr.splice(_local1, 1);
return(true);
}
_local1++;
}
return(false);
}
static function addGameDelayRun(obj, runF, delayTime) {
gameDelayObjArr.push(obj);
gameDelayRunArr.push([runF, delayTime]);
}
static function delGameDelayRun(obj, runF) {
var _local2 = gameDelayRunArr.length;
var _local1 = 0;
while (_local1 < _local2) {
if ((obj == gameDelayObjArr[_local1]) && (runF == gameDelayRunArr[_local1][0])) {
gameDelayObjArr.splice(_local1, 1);
gameDelayRunArr.splice(_local1, 1);
return(true);
}
_local1++;
}
return(false);
}
static function addBmd(bmd) {
bmdArr.push(bmd);
return(bmd);
}
static function delBmd(bmd) {
if (Common.arrDel(bmdArr, bmd) == -1) {
trace(("bmd: " + bmd) + " \u4E0D\u5B58\u5728\u6216\u5DF2\u7ECF\u88AB\u5220\u9664");
}
}
static function updateTestBar() {
}
static var gameInterface = new Object();
static var objArr = new Array();
static var runArr = new Array();
static var gameRunArr = new Array();
static var gameDelayObjArr = new Array();
static var gameDelayRunArr = new Array();
static var bmdArr = new Array();
var initObj = (_root.onEnterFrame = function () {
runAll();
});
}
Symbol 660 MovieClip [__Packages.FWG.BasicMain] Frame 0
class FWG.BasicMain extends MovieClip
{
var _parent, gameName, stageWid, stageHei, totalStage, sndBg, playerInfo, keySetting, isFirstPlay, stageData, __currentScore, gamePad, __score, __stageNum, pageId, fadeEffect, stageSave, qualitySetting, snd_mc, __musicOn, __soundOn, isWin, effectArea;
function BasicMain (_gameName, _stageWid, _stageHei, _totalStage, hasKeySetting) {
super();
Global.main = this;
_parent.stop();
gameName = _gameName;
stageWid = _stageWid;
stageHei = _stageHei;
totalStage = _totalStage;
sndBg = new Sound();
sndBg.attachSound("SndBg");
musicOn = (true);
soundOn = (true);
playerInfo = new FWG.PlayerInfo();
if (hasKeySetting) {
keySetting = new FWG.KeySetting();
}
isFirstPlay = true;
currentScore = (0);
score = (0);
stageNum = (1);
stageData = new FWG.StageData(["score", "stageNum"]);
Common.cSetTimeout(this, "gotoMenu", 100);
}
function restartStage() {
stageData.restartStage();
}
function resetGameData() {
stageData.resetGameData();
}
function instPlay() {
if (isFirstPlay) {
gotoInst();
} else {
gotoOptions();
}
}
function initBtn(btn) {
switch (btn.__get__label()) {
case "Play Game" :
case "Play" :
case "Skip" :
btn._press = function () {
Global.main.instPlay();
};
break;
case "Next Stage" :
btn._press = function () {
Global.main.nextStage();
};
break;
case "Play Again" :
btn._press = function () {
Global.main.playAgain();
};
break;
case "Instructions" :
btn._press = function () {
Global.main.gotoInst();
};
break;
case "Key Settings" :
btn._press = function () {
Global.main.gotoKeySetting();
};
break;
case "View Highscores" :
btn._press = function () {
this.getURL("http://www.freeworldgroup.com/score/index.asp?game=" + Global.main.gameName, "_blank");
};
break;
case "Download Games" :
btn._press = function () {
this.getURL("http://www.ifungames.com", "_blank");
};
break;
case "More Online Games" :
btn._press = function () {
this.getURL("http://www.freeworldgroup.com", "_blank");
};
break;
case "Add Games to Your Site" :
btn._press = function () {
this.getURL("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
};
break;
case "Copyright 2007 freeworldgroup.com" :
btn._press = function () {
this.getURL("http://www.freeworldgroup.com", "_blank");
};
break;
case "Credits" :
btn._press = function () {
Global.main.musicCredits.fadeShow();
};
break;
case "Menu" :
btn._press = function () {
ui.Alt.hide();
Global.main.gotoMenu();
};
break;
case "Submit Score" :
btn._press = function () {
trace("score=" + Global.main.__get__score());
if (Global.main.__get__score() <= 0) {
ui.Alt.show("Your score is 0 !");
ui.Alt.hideDelay(2000);
} else {
Global.main.submitScore.show();
}
};
}
}
function addScore(dScore) {
currentScore = currentScore + dScore;
score = score + dScore;
}
function get currentScore() {
return(__currentScore);
}
function set currentScore(_currentScore) {
gamePad.__set__currentScore((__currentScore = _currentScore));
//return(currentScore);
}
function get score() {
return(__score);
}
function set score(_score) {
gamePad.__set__score((__score = _score));
//return(score);
}
function get stageNum() {
return(__stageNum);
}
function set stageNum(_stageNum) {
__stageNum = _stageNum;
//return(stageNum);
}
function fadeTo(_pageId, onFadeShow) {
pageId = _pageId;
fadeEffect.fadeHide();
fadeEffect.onShow = onFadeShow;
fadeEffect.onHide = function () {
Global.main.mainContainer.putIn(Global.main.pageId);
Global.main.fadeEffect.fadeShow();
Global.main.fadeEffect.onHide = null;
};
}
function gotoMenu() {
Global.pause = true;
ui.Alert.show("Back To Main Menu?", gotoMenuHandler);
}
function gotoMenuHandler(flag) {
if (flag) {
Global.main.resetGameData();
Global.main.fadeTo("FWG.PageMenu");
} else {
Global.pause = false;
}
}
function gotoInst() {
fadeTo("FWG.PageInst");
}
function gotoOptions() {
fadeTo("FWG.PageOptions");
}
function gotoGame() {
record.Recorder.reset();
Global.pause = false;
fadeTo("FWG.PageGame");
}
function selectPlay(_stageNum) {
stageNum = (_stageNum);
currentScore = (0);
var _local2 = stageSave.getScore(stageNum - 1);
if (isNaN(_local2) || (_local2 < 0)) {
_local2 = 0;
}
score = (_local2);
gotoGame();
}
function gotoKeySetting() {
fadeTo("FWG.PageKeySetting");
}
function showQualitySetting() {
Global.pause = true;
qualitySetting.fadeShow();
qualitySetting.onHide = function () {
Global.pause = false;
};
}
function playSound(soundId) {
if (soundOn) {
var _local2 = snd_mc[soundId];
if (snd_mc[soundId] == undefined) {
var _local4 = snd_mc.getNextHighestDepth();
_local2 = (snd_mc[soundId] = new Sound(snd_mc.createEmptyMovieClip("mc" + _local4, _local4)));
_local2.attachSound(soundId);
}
_local2.start();
return(_local2);
}
return(null);
}
function get musicOn() {
return(__musicOn);
}
function set musicOn(_musicOn) {
__musicOn = _musicOn;
if (__musicOn) {
sndBg.start(0, 10000);
} else {
sndBg.stop();
}
//return(musicOn);
}
function get soundOn() {
return(__soundOn);
}
function set soundOn(_soundOn) {
__soundOn = _soundOn;
//return(soundOn);
}
function stageClear() {
Global.pause = true;
stageData.update();
var _local2 = stageSave.getCurrentScore(stageNum);
if (_local2 <= currentScore) {
stageSave.setScore(stageNum, currentScore);
}
if (stageNum >= totalStage) {
win();
} else {
fadeTo("FWG.PageStageClear");
}
}
function win() {
Global.pause = true;
isWin = true;
fadeTo("FWG.PageGameOver");
}
function lose() {
Global.pause = true;
isWin = false;
fadeTo("FWG.PageGameOver");
}
function nextStage() {
stageNum = ((stageNum+1));
currentScore = (0);
stageData.update();
gotoGame();
}
function playAgain() {
stageData.resetGameData();
gotoOptions();
}
function addEffect(id, initObj) {
var _local2 = effectArea.getNextHighestDepth();
effectArea.attachMovie(id, "effect" + _local2, _local2, initObj);
}
}
Symbol 661 MovieClip [__Packages.FWG.LocalSetting] Frame 0
class FWG.LocalSetting
{
var lso, dataObj;
function LocalSetting (saveName) {
saveName = saveName + "_as2";
lso = SharedObject.getLocal(saveName, "/");
if (lso.data.dataObj) {
dataObj = Common.cloneObj(lso.data.dataObj);
} else {
trace(saveName + " \u7B2C\u4E00\u6B21\u8BBE\u5B9A");
lso.data.defaultDataObj = Common.cloneObj(dataObj);
}
lso.data.dataObj = dataObj;
}
function getDefault() {
return(lso.data.defaultDataObj);
}
function setDefault() {
lso.data.dataObj = (dataObj = Common.cloneObj(lso.data.defaultDataObj));
}
}
Symbol 662 MovieClip [__Packages.Common] Frame 0
class Common
{
static var tempArr;
function Common () {
}
static function setRGB(mc, color) {
new Color(mc).setRGB(color);
}
static function setRGBOffset(mc, color, modeNum) {
trace("Common.setRGBOffset \u672A\u6D4B\u8BD5");
if (isNaN(modeNum)) {
modeNum = 1;
}
var _local1 = mc.transform.colorTransform;
_local1.redOffset = ((color >> 16) & 255) - (255 * modeNum);
_local1.greenOffset = ((color >> 8) & 255) - (255 * modeNum);
_local1.blueOffset = (color & 255) - (255 * modeNum);
mc.transform.colorTransform = _local1;
}
static function disorder(arr) {
trace("Common.disorder \u672A\u6D4B\u8BD5");
var _local5 = arr.length;
var _local1 = 0;
while (_local1 < _local5) {
var _local3 = record.Recorder.getData(random(_local5));
var _local4 = arr[_local1];
arr[_local1] = arr[_local3];
arr[_local3] = _local4;
_local1++;
}
}
static function arrDel(arr, item) {
var _local3 = arr.length;
var _local1 = 0;
while (_local1 < _local3) {
if (arr[_local1] == item) {
arr.splice(_local1, 1);
return(_local1);
}
_local1++;
}
return(-1);
}
static function forEach(arr, f) {
var _local3 = arr.length;
var _local1 = 0;
while (_local1 < _local3) {
f(arr[_local1], _local1, arr);
_local1++;
}
}
static function getSum(numArr) {
trace("Common.getSum \u672A\u6D4B\u8BD5");
var totalValue = 0;
forEach(numArr, function (value) {
totalValue = totalValue + value;
});
return(totalValue);
}
static function arrToStr(arr, depth) {
if (isNaN(depth)) {
depth = 0;
}
var _local7 = getSpaces(depth);
if (arr.constructor == Array) {
var _local4 = ((arr[0].constructor == Array) ? newline : "");
var _local2 = (_local7 + "[") + _local4;
var _local6 = arr.length;
var _local1 = 0;
while (_local1 < _local6) {
_local2 = _local2 + ((arrToStr(arr[_local1], depth + 1) + ",") + _local4);
_local1++;
}
if (_local4 == "") {
return(_local2.substr(0, _local2.length - 1) + "]");
}
return(((_local2.substr(0, _local2.length - 2) + newline) + _local7) + "]");
}
return(arr);
}
static function getChildAt(mc, index) {
var _local2 = 0;
for (var _local4 in mc) {
var _local1 = mc[_local4];
if (_local1 instanceof MovieClip) {
if (_local2 == index) {
return(_local1);
}
_local2++;
}
}
return(null);
}
static function getNumChildren(mc) {
var _local2 = 0;
for (var _local3 in mc) {
if (mc[_local3] instanceof MovieClip) {
_local2++;
}
}
return(_local2);
}
static function randomStop(mc, totalFs) {
if (isNaN(totalFs)) {
totalFs = mc._totalframes;
}
mc.gotoAndStop(record.Recorder.getData(random(totalFs) + 1));
}
static function getAllChildren(mc, recursion, notClearTempArr) {
if (recursion && (!notClearTempArr)) {
tempArr = new Array();
}
var _local2 = new Array();
for (var _local5 in mc) {
var _local1 = mc[_local5];
if ((_local1 instanceof MovieClip) && (!isInTempArr(_local1))) {
tempArr.push(_local1);
_local2.push(_local1);
if (recursion) {
_local2 = _local2.concat(getAllChildren(_local1, true, true));
}
}
}
return(_local2);
}
static function forEachChild(mc, f, recursion) {
var _local2 = getAllChildren(mc, recursion);
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
f(_local2[_local1]);
_local1++;
}
}
static function isInTempArr(value) {
var _local2 = tempArr.length;
var _local1 = 0;
while (_local1 < _local2) {
if (tempArr[_local1] == value) {
return(true);
}
_local1++;
}
return(false);
}
static function getAllChildrenByOrder(mc, varName, recursion) {
trace("Common.getAllChildrenByOrder \u672A\u6D4B\u8BD5");
var _local1 = getAllChildren(mc, recursion);
_local1.sortOn(varName, Array.NUMERIC);
return(_local1);
}
static function cSetTimeout(objectReference, methodName, timeout) {
return(setTimeout(objectReference, methodName, timeout));
}
static function cClearTimeout(timeoutId) {
clearTimeout(timeoutId);
}
static function randomLine(mc, x1, y1, x2, y2, d) {
trace("Common.randomLine \u672A\u6D4B\u8BD5");
var _local2 = new flash.geom.Point(x2 - x1, y2 - y1);
var _local8 = _local2.length;
var _local4 = Math.round(_local8 / d);
_local2.x = _local2.x / _local4;
_local2.y = _local2.y / _local4;
mc.moveTo(x1, y1);
var _local1 = 1;
while (_local1 < _local4) {
mc.lineTo((x1 + (_local2.x * _local1)) + ((record.Recorder.getData(Math.random()) - 0.5) * d), (y1 + (_local2.y * _local1)) + ((record.Recorder.getData(Math.random()) - 0.5) * d));
_local1++;
}
mc.lineTo(x2, y2);
}
static function selectTxt(txt) {
Selection.setFocus(txt);
Selection.setSelection(0, txt.text.length);
}
static function cloneObj(obj, varName, depth) {
if (isNaN(depth)) {
depth = 0;
}
if (varName == undefined) {
varName = "";
}
var _local5 = getObjType(obj);
switch (_local5) {
case "Array" :
return(obj.slice());
case "Object" :
var _local2 = new Object();
for (varName in obj) {
_local2[varName] = cloneObj(obj[varName], varName, depth + 1);
}
return(_local2);
}
return(obj);
}
static function getObjType(obj) {
switch (obj.constructor) {
case Boolean :
return("Boolean");
case Number :
return("Number");
case String :
return("String");
case Array :
return("Array");
}
return("Object");
}
static function objToStr(obj, depth) {
if (isNaN(depth)) {
depth = 0;
}
var _local3 = obj + newline;
for (var _local4 in obj) {
_local3 = _local3 + ((((((getSpaces(depth) + "|-") + getObjType(obj[_local4])) + ":") + _local4) + " -- ") + objToStr(obj[_local4], depth + 1));
}
return(_local3);
}
static function getSpaces(total) {
var _local2 = "";
var _local1 = 0;
while (_local1 < total) {
_local2 = _local2 + " ";
_local1++;
}
return(_local2);
}
static function drawRect() {
var _local3 = arguments[0];
var _local2 = arguments[1];
var _local4;
var _local5;
var _local6;
var _local7;
switch (_local2.constructor) {
case flash.geom.Rectangle :
_local4 = _local2.x;
_local5 = _local2.y;
_local6 = _local2.x + _local2.width;
_local7 = _local2.y + _local2.height;
break;
case Number :
_local4 = _local2;
_local5 = arguments[2];
_local6 = arguments[3];
_local7 = arguments[4];
break;
default :
_local4 = _local2.xMin;
_local5 = _local2.yMin;
_local6 = _local2.xMax;
_local7 = _local2.yMax;
}
_local3.moveTo(_local4, _local5);
_local3.lineTo(_local6, _local5);
_local3.lineTo(_local6, _local7);
_local3.lineTo(_local4, _local7);
_local3.lineTo(_local4, _local5);
}
static function searchMap(map, seed, f) {
var _local15 = map[0].length;
var _local14 = map.length;
var _local7 = new Array(_local14);
var _local1 = 0;
while (_local1 < _local14) {
_local7[_local1] = new Array(_local15);
_local1++;
}
var _local10;
var _local12 = seed.length;
var _local4 = 0;
while (_local4 < _local12) {
_local7[seed[_local4][1]][seed[_local4][0]] = true;
f(map[seed[_local4][1]][seed[_local4][0]]);
_local4++;
}
while (_local12 = seed.length , _local12 > 0) {
_local10 = new Array();
_local4 = 0;
while (_local4 < _local12) {
var _local9 = seed[_local4][0];
var _local8 = seed[_local4][1];
var _local3 = 0;
while (_local3 < 4) {
var _local5 = dirArr[_local3];
var _local2 = _local9 + _local5[0];
_local1 = _local8 + _local5[1];
if ((!_local7[_local1][_local2]) && (f(map[_local1][_local2]))) {
_local7[_local1][_local2] = true;
_local10.push([_local2, _local1]);
}
_local3++;
}
_local4++;
}
seed = _local10.slice();
}
}
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 removeFixMc(mc) {
mc.swapDepths(mc._parent.getNextHighestDepth());
mc.removeMovieClip();
}
static function localToLocal(p, mc1, mc2) {
mc1.localToGlobal(p);
mc2.globalToLocal(p);
}
static var a2r = 57.2957795130823;
static var p0 = new flash.geom.Point();
static var bf = new flash.filters.BlurFilter();
static var cf = new flash.filters.ConvolutionFilter(3, 3, [1, 1, 1, 1, 30, 1, 1, 1, 1], 38);
static var dirArr = [[-1, 0], [0, -1], [1, 0], [0, 1]];
}
Symbol 663 MovieClip [__Packages.record.Recorder] Frame 0
class record.Recorder extends MovieClip
{
static var recorder, keyDownArr, keyDownArr2, __keyDown, __keyUp, __mouseDown, __mouseUp, __mouseMove, onReplayFinish, totalData, output;
function Recorder () {
super();
recorder = this;
Key.addListener(recorder);
keyDownArr = new Array(256);
keyDownArr2 = new Array(256);
recorder.onKeyDown = function () {
if (record.Recorder.action == "playing") {
return(undefined);
}
if (!record.Recorder.keyDownArr2[Key.getCode()]) {
record.Recorder.keyDownArr2[Key.getCode()] = true;
record.Recorder.addCtrl(record.Recorder.KEYDOWN, Key.getCode());
}
};
recorder.onKeyUp = function () {
if (record.Recorder.action == "playing") {
return(undefined);
}
if (record.Recorder.keyDownArr2[Key.getCode()]) {
record.Recorder.keyDownArr2[Key.getCode()] = false;
record.Recorder.addCtrl(record.Recorder.KEYUP, Key.getCode());
}
};
Global.addGameRun(this, "run");
}
function run() {
var _local3 = ctrlObj["$" + frameId];
if (_local3) {
var _local4 = _local3.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local1 = _local3[_local2];
switch (_local1.type) {
case KEYDOWN :
keyDownArr[_local1.data] = true;
__keyDown(_local1.data);
break;
case KEYUP :
keyDownArr[_local1.data] = false;
__keyUp(_local1.data);
break;
case MOUSEDOWN :
__mouseDown(_local1.data);
break;
case MOUSEUP :
__mouseUp(_local1.data);
break;
case MOUSEMOVE :
__mouseMove(_local1.data);
}
_local2++;
}
}
frameId++;
if ((action == "playing") && (frameId > totalFrame)) {
frameId = totalFrame;
Global.pause = true;
onReplayFinish();
}
showMsg();
}
static function get keyDown() {
return(__keyDown);
}
static function set keyDown(_keyDown) {
__keyDown = _keyDown;
//return(keyDown);
}
static function get keyUp() {
return(__keyUp);
}
static function set keyUp(_keyUp) {
__keyUp = _keyUp;
//return(keyUp);
}
static function get mouseDown() {
return(__mouseDown);
}
static function set mouseDown(_mouseDown) {
__mouseDown = _mouseDown;
if (__mouseDown) {
recorder.onMouseDown = function () {
record.Recorder.addCtrl(record.Recorder.MOUSEDOWN, new flash.geom.Point(this._xmouse, this._ymouse));
};
} else {
recorder.onMouseDown = null;
}
//return(mouseDown);
}
static function get mouseUp() {
return(__mouseUp);
}
static function set mouseUp(_mouseUp) {
__mouseUp = _mouseUp;
if (__mouseUp) {
recorder.onMouseUp = function () {
record.Recorder.addCtrl(record.Recorder.MOUSEUP, new flash.geom.Point(this._xmouse, this._ymouse));
};
} else {
recorder.onMouseUp = null;
}
//return(mouseUp);
}
static function get mouseMove() {
return(__mouseMove);
}
static function set mouseMove(_mouseMove) {
__mouseMove = _mouseMove;
if (__mouseMove) {
recorder.onMouseMove = function () {
record.Recorder.addCtrl(record.Recorder.MOUSEMOVE, new flash.geom.Point(this._xmouse, this._ymouse));
};
} else {
recorder.onMouseMove = null;
}
//return(mouseMove);
}
static function keyIsDown(keyCode) {
return(keyDownArr[keyCode]);
}
static function addCtrl(type, data) {
totalCtrl++;
var _local1 = ctrlObj["$" + frameId];
if (_local1 == undefined) {
_local1 = (ctrlObj["$" + frameId] = new Array());
}
_local1.push(new record.CtrlItem(type, data));
}
static function reset() {
frameId = 0;
totalFrame = 0;
dataId = 0;
dataArr = new Array();
ctrlObj = new Object();
action = "";
}
static function replay(dataObj) {
if (action == "playing") {
} else {
if (dataObj) {
totalFrame = dataObj.totalFrame;
totalData = dataObj.totalData;
dataArr = dataObj.dataArr;
ctrlObj = dataObj.ctrlObj;
} else {
totalFrame = frameId;
totalData = dataId;
}
action = "playing";
}
frameId = 0;
dataId = 0;
}
static function save(id) {
}
static function read(id) {
}
static function copyToObj(obj1, obj2) {
var _local3 = saveNames.length;
var _local1 = 0;
while (_local1 < _local3) {
var _local2 = saveNames[_local1];
obj2[_local2] = obj1[_local2];
_local1++;
}
}
static function showMsg() {
var _local1 = "";
_local1 = _local1 + (("frameId=" + frameId) + newline);
if (action == "playing") {
_local1 = _local1 + (("totalFrame=" + totalFrame) + newline);
}
_local1 = _local1 + (("dataId=" + dataId) + newline);
if (action == "playing") {
_local1 = _local1 + (("totalData=" + totalData) + newline);
} else {
_local1 = _local1 + (("dataArr.length=" + dataArr.length) + newline);
}
_local1 = _local1 + (("totalCtrl=" + totalCtrl) + newline);
output.__set__msg(_local1);
}
static function getData(data) {
if (action == "playing") {
return(dataArr[dataId++]);
}
dataId++;
dataArr.push(data);
return(data);
}
static function outputData() {
trace("dataObj={");
trace(("\ttotalFrame:" + frameId) + ",");
trace(("\ttotalData:" + dataId) + ",");
trace(("\tdataArr:" + Common.arrToStr(dataArr)) + ",");
var _local1 = "\tctrlObj:{\n";
for (var _local2 in ctrlObj) {
_local1 = _local1 + (((("\t\t" + _local2) + ":") + Common.arrToStr(ctrlObj[_local2])) + ",\n");
}
_local1 = _local1.substr(0, _local1.length - 2) + "\n\t}";
trace(_local1);
trace("}");
}
static var action = "";
static var frameId = 0;
static var totalFrame = 0;
static var dataArr = new Array();
static var dataId = 0;
static var ctrlObj = new Object();
static var totalCtrl = 0;
static var KEYDOWN = 0;
static var KEYUP = 1;
static var MOUSEDOWN = 2;
static var MOUSEUP = 3;
static var MOUSEMOVE = 4;
static var saveNames = ["totalFrame", "totalData", "totalCtrl", "dataArr", "ctrlObj"];
}
Symbol 664 MovieClip [__Packages.record.Output] Frame 0
class record.Output extends MovieClip
{
var msgTxt, __get__msg;
function Output () {
super();
msg = ("");
record.Recorder.output = this;
}
function set msg(_msg) {
msgTxt.text = _msg;
//return(__get__msg());
}
}
Symbol 665 MovieClip [__Packages.record.Replayer] Frame 0
class record.Replayer extends MovieClip
{
var stop;
function Replayer () {
super();
record.Recorder.replayer = this;
record.Recorder.replay();
record.Recorder.onReplayFinish = function () {
record.Recorder.replayer.gotoAndPlay(1);
record.Recorder.replay();
};
}
function init() {
stop();
trace("replayer=" + this);
Global.pause = false;
}
}
Symbol 666 MovieClip [__Packages.record.RecordSave] Frame 0
class record.RecordSave extends FWG.LocalSetting
{
function RecordSave () {
super(Global.main.gameName + "RecordSave");
}
function save(id, obj) {
dataObj["$" + id] = obj;
trace(obj.dataArr);
}
function read(id) {
return(dataObj["$" + id]);
}
var dataObj = {};
}
Symbol 667 MovieClip [__Packages.record.CtrlItem] Frame 0
class record.CtrlItem
{
var type, data;
function CtrlItem (_type, _data) {
type = _type;
data = _data;
}
function toString() {
return(((("{type:" + type) + ",data:") + data) + "}");
}
}
Symbol 668 MovieClip [__Packages.FWG.PlayerInfo] Frame 0
class FWG.PlayerInfo extends FWG.LocalSetting
{
function PlayerInfo () {
super("FWGPlayerInfo");
}
static var DEFAULT_PLAYERNAME = "MrNoName";
var dataObj = {playerName:DEFAULT_PLAYERNAME};
}
Symbol 669 MovieClip [__Packages.FWG.KeySetting] Frame 0
class FWG.KeySetting extends FWG.LocalSetting
{
var getDefault;
function KeySetting () {
super(Global.main.gameName + "KeySetting");
}
function getCode(id) {
return(dataObj["$" + id]);
}
function saveCode(id, code) {
dataObj["$" + id] = code;
}
function isDefault() {
var _local2 = getDefault().dataObj;
for (var _local3 in _local2) {
if (dataObj[_local3] == _local2[_local3]) {
return(false);
}
}
return(true);
}
var dataObj = {$0:65, $1:87, $2:68, $3:83, $4:74, $5:73, $6:76, $7:75, $8:86, $9:66, $10:32};
}
Symbol 670 MovieClip [__Packages.FWG.StageSave] Frame 0
class FWG.StageSave extends FWG.LocalSetting
{
function StageSave () {
super(Global.main.gameName + "StageSave");
}
function getCurrentScore(id) {
var _local2 = dataObj["$" + id].currentScore;
if (isNaN(_local2)) {
return(-1);
}
return(_local2);
}
function getScore(stageNum_1) {
var _local3 = 0;
var _local2 = 1;
while (_local2 <= stageNum_1) {
_local3 = _local3 + dataObj["$" + _local2].currentScore;
_local2++;
}
return(_local3);
}
function setScore(stageNum, currentScore) {
dataObj["$" + stageNum] = {currentScore:currentScore};
}
var dataObj = {};
}
Symbol 671 MovieClip [__Packages.FWG.SubmitScore] Frame 0
class FWG.SubmitScore extends MovieClip
{
var stop, _visible, btnSubmit, btnX, nameTxt, nameTxtPos, scoreTxt, send_var, gotoAndStop;
function SubmitScore () {
super();
stop();
_visible = false;
Global.main.submitScore = this;
btnSubmit._press = function () {
Global.main.submitScore.checkSubmit();
};
btnX._press = function () {
Global.main.submitScore.hide();
};
}
function checkSubmit() {
Common.selectTxt(nameTxt);
switch (nameTxt.text) {
case "" :
case FWG.PlayerInfo.DEFAULT_PLAYERNAME :
trace("alt=" + ui.Alt);
ui.Alt.show("Your Name, please", nameTxtPos);
ui.Alt.hideDelay(2000);
return(undefined);
}
submit();
}
function init() {
nameTxt.text = Global.main.playerInfo.dataObj.playerName;
scoreTxt.text = String(Global.main.__get__score());
Common.selectTxt(nameTxt);
trace((("playerName=" + nameTxt.text) + ",score=") + scoreTxt.text);
send_var = new LoadVars();
send_var.game = Global.main.gameName;
}
function hideAlt() {
ui.Alt.hide();
}
function show() {
_visible = true;
init();
}
function hide() {
_visible = false;
gotoAndStop(1);
send_var = null;
}
function submit() {
send_var.score = scoreTxt.text;
send_var.name = nameTxt.text;
if (send_var.name == "") {
send_var.name = "guest" + random(1000);
}
Global.main.playerInfo.dataObj.playerName = send_var.name;
var _local2 = new LoadVars();
_local2.onLoad = function () {
Global.main.submitScore.gotoAndStop(3);
};
send_var.sendAndLoad("http://www.freeworldgroup.com/score/score.asp", _local2, "POST");
gotoAndStop(2);
Global.main.btnSs._visible = false;
}
}
Symbol 672 MovieClip [__Packages.ui.SBtn] Frame 0
class ui.SBtn extends MovieClip
{
var filters0, filters, greyFilters, __selectAble, btn, stop, rollOver, _rollOver, rollOut, _rollOut, press, _press, release, _release, __selected, gotoAndStop, enabled, useHandCursor, __errorPress;
function SBtn () {
super();
filters0 = filters.slice();
greyFilters = filters.concat([greyFilter]);
__selectAble = true;
if (btn == undefined) {
btn = this;
}
btn.sbtn = this;
btn.onRollOver = function () {
this.sbtn._onRollOver();
};
btn.onRollOut = function () {
this.sbtn._onRollOut();
};
btn.onPress = function () {
this.sbtn._onPress();
};
btn.onRelease = function () {
this.sbtn._onRelease();
};
stop();
}
function _onRollOver() {
if (selectAble) {
rollOver();
_rollOver();
}
}
function _onRollOut() {
if (selectAble) {
rollOut();
_rollOut();
}
}
function _onPress() {
if (selectAble) {
press();
_press();
} else if (errorPress) {
errorPress();
}
}
function _onRelease() {
if (selectAble) {
release();
_release();
}
}
function get selected() {
return(__selected);
}
function set selected(_selected) {
__selected = _selected;
if (__selected) {
btn.enabled = false;
gotoAndStop(2);
} else {
btn.enabled = true;
gotoAndStop(1);
}
//return(selected);
}
function get selectAble() {
return(__selectAble);
}
function set selectAble(_selectAble) {
__selectAble = _selectAble;
if (__selectAble) {
enabled = true;
useHandCursor = true;
filters = filters0;
} else {
if (!errorPress) {
enabled = false;
}
filters = greyFilters;
useHandCursor = false;
}
//return(selectAble);
}
function get errorPress() {
return(__errorPress);
}
function set errorPress(_errorPress) {
__errorPress = _errorPress;
enabled = true;
//return(errorPress);
}
static var greyFilter = new flash.filters.ColorMatrixFilter([0.15, 0.295, 0.055, 0, 0, 0.15, 0.295, 0.055, 0, 0, 0.15, 0.295, 0.055, 0, 0, 0, 0, 0, 1, 0]);
}
Symbol 673 MovieClip [__Packages.FWG.Btn] Frame 0
class FWG.Btn extends ui.SBtn
{
var clear, beginFill, getBounds, __label;
function Btn () {
super();
Common.cSetTimeout(this, "init", 100);
}
function init() {
clear();
beginFill(16711680, 0);
Common.drawRect(this, getBounds(this));
}
function get label() {
return(__label);
}
function set label(_label) {
__label = _label;
Global.main.initBtn(this);
//return(label);
}
function rollOver() {
Global.main.playSound("SndRollOver", this);
}
function press() {
Global.main.playSound("SndPress", this);
}
}
Symbol 674 MovieClip [__Packages.ui.Alt] Frame 0
class ui.Alt extends MovieClip
{
static var alt;
var _visible, msgTxt, bg, _parent, _x, _y;
function Alt () {
super();
alt = this;
_visible = false;
msgTxt.autoSize = "center";
}
static function show(_msg, mc) {
alt.show_(_msg, mc);
}
static function hide() {
alt.hide_();
}
function show_(_msg, mc) {
_visible = true;
msg = (_msg);
bg._width = msgTxt._width + 10;
if (mc) {
var _local4 = new flash.geom.Point();
mc.localToGlobal(_local4);
_parent.globalToLocal(_local4);
_x = _local4.x;
_y = _local4.y;
} else {
_x = _parent._xmouse;
_y = _parent._ymouse;
}
var _local3 = bg.getBounds(_root);
if (_local3.xMin < 0) {
_x = _x + (10 - _local3.xMin);
} else if (_local3.xMax > Global.main.stageWid) {
_x = _x - ((10 + _local3.xMax) - Global.main.stageWid);
}
if (_local3.yMin < 0) {
_y = _y + (10 - _local3.yMin);
} else if (_local3.yMax > Global.main.stageHei) {
_y = _y - ((10 + _local3.yMax) - Global.main.stageHei);
}
_x = Math.round(_x);
_y = Math.round(_y);
}
function hide_() {
_visible = false;
}
static function hideDelay(delayTime) {
Common.cClearTimeout(timeoutId);
timeoutId = Common.cSetTimeout(alt, "hide_", delayTime);
}
function set msg(_msg) {
msgTxt.text = _msg;
//return(msg);
}
function get msg() {
return(msgTxt.text);
}
static var timeoutId = -1;
}
Symbol 675 MovieClip [__Packages.effect.AlphaFadeSp] Frame 0
class effect.AlphaFadeSp extends MovieClip
{
var _visible, _alpha, onShow, onHide;
function AlphaFadeSp () {
super();
}
function show() {
_visible = true;
_alpha = 100;
}
function hide() {
_visible = false;
_alpha = 0;
}
function fadeShow() {
_visible = true;
Global.delRun(this, "showRun");
Global.addRun(this, "showRun");
}
function fadeHide() {
Global.delRun(this, "hideRun");
Global.addRun(this, "hideRun");
}
function showRun() {
if (((_alpha = _alpha + 20)) > 90) {
Global.delRun(this, "showRun");
show();
onShow();
}
}
function hideRun() {
if (_alpha <= 10) {
_alpha = 0;
Global.delRun(this, "hideRun");
hide();
onHide();
return(undefined);
}
_alpha = _alpha - 20;
}
}
Symbol 676 MovieClip [__Packages.FWG.MusicCredits] Frame 0
class FWG.MusicCredits extends effect.AlphaFadeSp
{
var hide, btnBack;
function MusicCredits () {
super();
Global.main.musicCredits = this;
hide();
btnBack._press = function () {
this._parent.fadeHide();
};
}
}
Symbol 677 MovieClip [__Packages.FWG.QualitySetting] Frame 0
class FWG.QualitySetting extends effect.AlphaFadeSp
{
var hide, btnOk, _quality, __get__quality;
function QualitySetting () {
super();
Global.main.qualitySetting = this;
hide();
var _local3 = 0;
while (_local3 < 4) {
this["btn" + _local3]._press = function () {
Global.main.qualitySetting.__set__quality(this.label);
};
_local3++;
}
btnOk._press = function () {
Global.main.qualitySetting.fadeHide();
};
}
function fadeShow() {
super.fadeShow();
quality = (_quality);
}
function set quality(__quality) {
var _local3 = 0;
while (_local3 < 4) {
var _local2 = this["btn" + _local3];
if (_local2.label == __quality) {
_local2.selected = true;
} else {
_local2.selected = false;
}
_local3++;
}
_quality = __quality;
//return(__get__quality());
}
}
Symbol 678 MovieClip [__Packages.FWG.BtnSs] Frame 0
class FWG.BtnSs extends FWG.Btn
{
var __set__label;
function BtnSs () {
super();
__set__label("Submit Score");
Global.main.btnSs = this;
}
}
Symbol 679 MovieClip [__Packages.effect.FadeEffect] Frame 0
class effect.FadeEffect extends MovieClip
{
function FadeEffect () {
super();
Global.main.fadeEffect = this;
}
function fadeShow() {
}
function fadeHide() {
}
function show() {
}
function hide() {
}
function fadeRun() {
}
}
Symbol 680 MovieClip [__Packages.FWG.MainContainer] Frame 0
class FWG.MainContainer extends MovieClip
{
var page, attachMovie;
function MainContainer () {
super();
Global.main.mainContainer = this;
}
function putIn(mcId) {
page = attachMovie(mcId, "page", 0);
}
}
Symbol 681 MovieClip [__Packages.FWG.BasicGamePad] Frame 0
class FWG.BasicGamePad extends MovieClip
{
var stageNumTxt, __get__stageNum, currentScoreTxt, __get__currentScore, scoreTxt, __get__score;
function BasicGamePad () {
super();
Global.main.gamePad = this;
}
function init() {
stageNum = (Global.main.stageNum);
currentScore = (Global.main.currentScore);
score = (Global.main.score);
}
function set stageNum(_stageNum) {
stageNumTxt.text = _stageNum;
//return(__get__stageNum());
}
function set currentScore(_currentScore) {
currentScoreTxt.text = _currentScore;
//return(__get__currentScore());
}
function set score(_score) {
scoreTxt.text = _score;
//return(__get__score());
}
}
Symbol 682 MovieClip [__Packages.FWG.GamePad] Frame 0
class FWG.GamePad extends FWG.BasicGamePad
{
var timesup_mc;
function GamePad () {
super();
}
function timeup() {
timesup_mc.gotoAndPlay(2);
}
}
Symbol 683 MovieClip [__Packages.FWG.StageData] Frame 0
class FWG.StageData
{
var varNameList, dataObj0, prevDataObj, dataObj;
function StageData (_varNameList) {
trace("stageData\u521D\u59CB\u5316");
varNameList = _varNameList;
dataObj0 = new Object();
prevDataObj = new Object();
dataObj = new Object();
allCopyMain();
}
function addVars(_varNameList) {
trace("stageData\u6DFB\u52A0\u9879");
allCopyMain(_varNameList);
varNameList = varNameList.concat(_varNameList);
traceDataObj();
}
function allCopyMain(_varNameList) {
copyMain(dataObj0, _varNameList);
copyMain(prevDataObj, _varNameList);
copyMain(dataObj, _varNameList);
}
function updatePrevDataObj() {
copyMain(prevDataObj);
}
function copyMain(obj, _varNameList) {
if (!_varNameList) {
_varNameList = varNameList;
}
var _local5 = _varNameList.length;
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = _varNameList[_local2];
obj[_local3] = Common.cloneObj(Global.main[_local3], _local3);
_local2++;
}
}
function initByObj(obj) {
if (!obj) {
obj = dataObj;
}
var _local5 = varNameList.length;
var _local3 = 0;
while (_local3 < _local5) {
var _local2 = varNameList[_local3];
Global.main[_local2] = Common.cloneObj(obj[_local2], _local2);
dataObj[_local2] = Common.cloneObj(obj[_local2], _local2);
_local3++;
}
}
function update() {
trace("stageData\u5B58\u50A8\u6E38\u620F\u6570\u636E");
copyMain(prevDataObj);
copyMain(dataObj);
traceDataObj();
}
function restartStage() {
trace("stageData\u91CD\u8BBE\u4E3A\u4E0A\u4E00\u5173\u6570\u636E");
initByObj(prevDataObj);
traceDataObj();
}
function resetGameData() {
trace("stageData\u91CD\u8BBE\u4E3A\u6E38\u620F\u5F00\u59CB\u65F6\u7684\u6570\u636E");
initByObj(dataObj0);
traceDataObj();
}
function traceDataObj() {
trace(("stagedata.dataObj=" + Common.objToStr(dataObj)) + "\n--------------------------------------");
}
}
Symbol 684 MovieClip [__Packages.ui.Alert] Frame 0
class ui.Alert extends effect.AlphaFadeSp
{
static var alert;
var btnYes, btnNo, msgTxt;
function Alert () {
super();
alert = this;
alert.hide();
btnYes._press = function () {
ui.Alert.callBack(true);
};
btnNo._press = function () {
ui.Alert.callBack(false);
};
}
static function show(_msg, _onCallBack) {
if (showAlert) {
alert.__set__msg(_msg);
alert.onCallBack = _onCallBack;
alert.fadeShow();
} else {
_onCallBack(true);
}
}
function set msg(_msg) {
msgTxt.text = _msg;
//return(msg);
}
function get msg() {
return(msgTxt.text);
}
static function callBack(_flag) {
alert.flag = _flag;
alert.fadeHide();
alert.onHide = function () {
this.onCallBack(this.flag);
};
}
static function get showAlert() {
return(alert._name != undefined);
}
}
Symbol 685 MovieClip [__Packages.FWG.Main] Frame 0
class FWG.Main extends FWG.BasicMain
{
var isFirstPlay;
function Main () {
super("fwgpinball", 650, 500, 7);
isFirstPlay = false;
}
}
Symbol 686 MovieClip [__Packages.FWG.BasicGame] Frame 0
class FWG.BasicGame extends MovieClip
{
function BasicGame () {
super();
Global.game = this;
}
function stageClear() {
Global.main.stageClear();
}
function win() {
Global.main.win();
}
function lose() {
Global.main.lose();
}
}
Symbol 687 MovieClip [__Packages.pinbal.Game] Frame 0
class pinbal.Game extends FWG.BasicGame
{
var engine, gotoAndStop, missionId, hei, zoomHei, top, bottom, a, b, missObj, totalMissionCount, countTxt, __get__missionCount, missionArr, typewriter, numClock, transporter, transporterBtnGroup, scoreMachine, scoreMachineBtnGroup, tunnel, tunnelBtnGroup, franken_head, top4Stars, 马桶, 连连看砖s, 孔雀, cloudLightSystem, doorSystem, helicopter, 气球, pipe, ball, _x, _y, globalToLocal, board, ballNumTxt, moveTo, lineTo, effectArea;
function Game () {
super();
engine = new org.cove.flade.DynamicsEngine();
engine.setDamping(1);
engine.setGravity(0, g);
engine.setSurfaceBounce(0.3);
engine.setSurfaceFriction(0.05);
gotoAndStop(Global.main.__get__stageNum() + 1);
missionId = -1;
hei = 900;
zoomHei = 500;
top = 0;
bottom = zoomHei - hei;
a = 0.000657462195923734;
b = ((-a) * 800) * 800;
pinbal.AccCircle.onHitOne = function () {
Global.game.arrow.finishOneTime();
};
}
function checkMissionFinish() {
if ((--missObj.totalTimes) > 0) {
missionCount = (missObj.totalTimes);
return(false);
}
nextMission();
return(true);
}
function set missionCount(_count) {
if (totalMissionCount == 1) {
countTxt.text = "";
return;
}
countTxt.text = (("count:" + (totalMissionCount - _count)) + "/") + totalMissionCount;
//return(__get__missionCount());
}
function nextMission() {
if ((++missionId) >= missionArr.length) {
Global.pause = true;
Global.game.stageClear();
return(undefined);
}
missObj = missionArr[missionId];
if (missObj.totalTimes > 1) {
} else {
missObj.totalTimes = 1;
}
typewriter.show(missObj.info);
if (missObj.mc == this) {
pinbal.AccCircle.totalHit = missObj.totalTimes;
} else {
missObj.mc.reset();
missObj.mc.ctrlMc.reset();
}
missObj.mc.arrow.play();
missionCount = ((totalMissionCount = missObj.totalTimes));
missObj.mc.arrow.onFinishOneTime = function () {
return(Global.game.checkMissionFinish());
};
numClock.__set__totalTime(180);
numClock.start();
numClock.onTimeUp = function () {
Global.pause = true;
Global.main.gamePad.timeup();
};
}
function init() {
transporterBtnGroup.ctrlMc = transporter;
scoreMachineBtnGroup.ctrlMc = scoreMachine;
tunnelBtnGroup.ctrlMc = tunnel;
countTxt.text = "";
switch (Global.main.__get__stageNum()) {
case 1 :
var _local3 = random(2) + 2;
missionArr = [{mc:transporterBtnGroup, info:"Hit the highlighted buttons."}, {mc:transporter, info:"Hit the crane."}, {mc:scoreMachineBtnGroup, info:"Hit the highlighted buttons."}, {mc:scoreMachine, info:"Get the ball into the FWG tunnel."}, {mc:franken_head, info:("Hit the monsters head " + _local3) + " times.", totalTimes:_local3}];
break;
case 2 :
_local3 = random(5) + 10;
missionArr = [{mc:tunnelBtnGroup, info:"Hit the highlighted buttons."}, {mc:tunnel, info:"Launch the ball up the left-hand side tunnel."}, {mc:top4Stars, info:"Turn on the top 4 stars."}, {mc:this, info:("Hit the bumpers at the top " + _local3) + " times.", totalTimes:_local3}, {mc:\u9A6C\u6876, info:"Drop the ball into the toilet water tank."}];
break;
case 3 :
_local3 = random(5) + 15;
missionArr = [{mc:\u8FDE\u8FDE\u770B\u7816s, info:"Get rid of the 5 animals at the bottom.", totalTimes:5}, {mc:scoreMachineBtnGroup, info:"Hit the highlighted buttons."}, {mc:scoreMachine, info:"Hit the FWG tunnel."}, {mc:transporterBtnGroup, info:"Hit the highlighted buttons."}, {mc:transporter, info:"Hit the transporter."}, {mc:\u5B54\u96C0, info:("Hit the peacock " + _local3) + " times!", totalTimes:_local3}];
break;
case 4 :
_local3 = random(5) + 20;
missionArr = [{mc:this, info:("Hit the bumpers at the top " + _local3) + " times.", totalTimes:_local3}, {mc:cloudLightSystem, info:"Turn on the three clouds!"}, {mc:tunnelBtnGroup, info:"Hit the highlighted buttons."}, {mc:tunnel, info:"Launch the ball up the left-hand side tunnel 3 times.", totalTimes:3}];
break;
case 5 :
_local3 = random(5) + 20;
var _local2 = random(5) + 5;
missionArr = [{mc:this, info:("Hit the bumpers at the top " + _local3) + " times.", totalTimes:_local3}, {mc:top4Stars, info:"Turn on the top 4 stars."}, {mc:doorSystem, info:("Enter the door " + _local2) + " times.", totalTimes:_local2}, {mc:scoreMachineBtnGroup, info:"Hit the highlighted buttons."}, {mc:scoreMachine, info:"Get the ball into the FWG tunnel."}];
break;
case 6 :
_local3 = random(5) + 20;
missionArr = [{mc:helicopter.heli, info:"Hit the helicopter."}, {mc:this, info:("Hit the bumpers at the top " + _local3) + " times.", totalTimes:_local3}, {mc:top4Stars, info:"Turn on the top 4 stars."}, {mc:scoreMachineBtnGroup, info:"Hit the highlighted buttons."}, {mc:scoreMachine, info:"Get the ball into the FWG tunnel."}];
break;
case 7 :
_local3 = random(5) + 20;
_local2 = random(5) + 5;
missionArr = [{mc:\u6C14\u7403, info:"Hit the balloon until it bursts."}, {mc:this, info:("Hit the bumpers at the top " + _local3) + " times.", totalTimes:_local3}, {mc:pipe, info:("Hit the pipe " + _local2) + " times.", totalTimes:_local2}, {mc:scoreMachineBtnGroup, info:"Hit the highlighted buttons."}, {mc:scoreMachine, info:"Get the ball into the FWG tunnel."}, {mc:top4Stars, info:"Turn on the top 4 stars."}];
}
nextMission();
transporterBtnGroup.onHitAll = function () {
Global.game.transporter.gotoAndStop(2);
};
scoreMachineBtnGroup.onHit = function (id) {
Global.game.scoreMachine.gotoAndStop(id + 1);
switch (id) {
case 1 :
Global.game.scoreMachine.score = 500;
break;
case 2 :
Global.game.scoreMachine.score = 2000;
break;
default :
Global.game.scoreMachine.score = 5000;
}
};
Global.addGameRun(this, "run");
}
function run() {
engine.timeStep();
engine.paintSurfaces();
engine.paintConstraints();
engine.paintPrimitives();
scrollByBall();
ball.adjustV();
}
function scrollByBall() {
var _local4 = _x;
var _local2 = _y;
_local2 = _local2 + ((((zoomHei / 2) - ball._y) - _local2) * 0.3);
if (_local2 > top) {
_local2 = top;
} else if (_local2 < bottom) {
_local2 = bottom;
}
var _local3 = new math.Vector(0, 490);
globalToLocal(_local3);
board._y = _local3.y;
if (board._y >= 890) {
board._y = 890;
}
board._alpha = ((a * board._y) * board._y) + b;
if (board._alpha < 5) {
board._alpha = 5;
}
if (ball._y > 890) {
Global.main.playSound("SndDie");
if (life = ((life-1)) <= 0) {
Global.game.lose();
} else {
ball.reset();
}
}
_x = int(_local4);
_y = int(_local2);
}
function get life() {
return(__life);
}
function set life(_life) {
__life = _life;
ballNumTxt.text = "Balls left: " + ((__life > 0) ? (__life - 1) : 0);
//return(life);
}
function drawLine(p1, p2) {
moveTo(p1.x, p1.y);
lineTo(p2.x, p2.y);
}
function addScore(dScore, x, y) {
if (dScore > 0) {
if (isNaN(x)) {
x = ball._x;
y = ball._y;
}
Global.main.addScore(dScore);
addEffect("effect.ScorePopUp", {score:dScore, _x:x, _y:y});
if (dScore >= 5000) {
life = ((life+1));
trace("life=" + life);
Global.game.addEffect("extraBall_mc", {_x:451, _y:298});
}
}
}
function addEffect(id, initObj) {
var _local2 = effectArea.getNextHighestDepth();
effectArea.attachMovie(id, "effect" + _local2, _local2, initObj);
}
var g = 0.3;
var __life = 3;
}
Symbol 688 MovieClip [__Packages.org.mc.ParticleMc] Frame 0
class org.mc.ParticleMc extends MovieClip
{
var __particle;
function ParticleMc () {
super();
}
function get particle() {
return(__particle);
}
function set particle(_particle) {
__particle = _particle;
__particle.dmc = this;
Global.game.engine.addPrimitive(__particle);
//return(particle);
}
}
Symbol 689 MovieClip [__Packages.org.cove.flade.primitives.Particle] Frame 0
class org.cove.flade.primitives.Particle
{
var init, curr, prev, temp, extents, bmin, bmax, mtd, isVisible;
function Particle (posX, posY) {
init = new org.cove.flade.util.Vector(posX, posY);
curr = new org.cove.flade.util.Vector(posX, posY);
prev = new org.cove.flade.util.Vector(posX, posY);
temp = new org.cove.flade.util.Vector(0, 0);
extents = new org.cove.flade.util.Vector(0, 0);
bmin = 0;
bmax = 0;
mtd = new org.cove.flade.util.Vector(0, 0);
isVisible = true;
}
function setVisible(v) {
isVisible = v;
}
function verlet(sysObj) {
temp.x = curr.x;
temp.y = curr.y;
curr.x = curr.x + ((sysObj.coeffDamp * (curr.x - prev.x)) + sysObj.gravity.x);
curr.y = curr.y + ((sysObj.coeffDamp * (curr.y - prev.y)) + sysObj.gravity.y);
prev.x = temp.x;
prev.y = temp.y;
}
function pin() {
curr.x = init.x;
curr.y = init.y;
prev.x = init.x;
prev.y = init.y;
}
function setPos(px, py) {
curr.x = px;
curr.y = py;
prev.x = px;
prev.y = py;
}
function getCardXProjection() {
bmin = curr.x - extents.x;
bmax = curr.x + extents.x;
}
function getCardYProjection() {
bmin = curr.y - extents.y;
bmax = curr.y + extents.y;
}
function getAxisProjection(axis) {
var _local5 = new org.cove.flade.util.Vector(Math.abs(axis.x), Math.abs(axis.y));
var _local2 = curr.dot(axis);
var _local3 = extents.dot(_local5);
bmin = _local2 - _local3;
bmax = _local2 + _local3;
}
function setMTD(depthX, depthY, depthN, surfNormal) {
var _local4 = Math.abs(depthX);
var _local3 = Math.abs(depthY);
var _local2 = Math.abs(depthN);
if ((_local4 < _local3) && (_local4 < _local2)) {
mtd.setTo(depthX, 0);
} else if ((_local3 < _local4) && (_local3 < _local2)) {
mtd.setTo(0, depthY);
} else if ((_local2 < _local4) && (_local2 < _local3)) {
mtd = surfNormal.multNew(depthN);
}
}
function setXYMTD(depthX, depthY) {
var _local3 = Math.abs(depthX);
var _local2 = Math.abs(depthY);
if (_local3 < _local2) {
mtd.setTo(depthX, 0);
} else {
mtd.setTo(0, depthY);
}
}
function resolveCollision(normal, sysObj) {
var _local2 = curr.minusNew(prev);
var _local3 = normal.dot(_local2);
var _local8 = _local2.minusNew(normal.multNew(_local3));
var _local4 = _local8.multNew(sysObj.coeffFric);
var _local5 = normal.multNew(_local3 * sysObj.coeffRest);
var _local6 = _local5.plusNew(_local4);
var _local7 = _local2.minusNew(_local6);
curr.plus(mtd);
prev = curr.minusNew(_local7);
}
function paint() {
}
function checkCollision(surface, sysObj) {
}
function getV() {
return({x:curr.x - prev.x, y:curr.y - prev.y});
}
function setV(vx, vy) {
prev.x = curr.x - vx;
prev.y = curr.y - vy;
}
}
Symbol 690 MovieClip [__Packages.org.cove.flade.util.Vector] Frame 0
class org.cove.flade.util.Vector
{
var x, y;
function Vector (px, py) {
x = px;
y = py;
}
function setTo(px, py) {
x = px;
y = py;
}
function copy(v) {
x = v.x;
y = v.y;
}
function dot(v) {
return((x * v.x) + (y * v.y));
}
function cross(v) {
return((x * v.y) - (y * v.x));
}
function plus(v) {
x = x + v.x;
y = y + v.y;
return(this);
}
function plusNew(v) {
return(new org.cove.flade.util.Vector(x + v.x, y + v.y));
}
function minus(v) {
x = x - v.x;
y = y - v.y;
return(this);
}
function minusNew(v) {
return(new org.cove.flade.util.Vector(x - v.x, y - v.y));
}
function mult(s) {
x = x * s;
y = y * s;
return(this);
}
function multNew(s) {
return(new org.cove.flade.util.Vector(x * s, y * s));
}
function distance(v) {
var _local3 = x - v.x;
var _local2 = y - v.y;
return(Math.sqrt((_local3 * _local3) + (_local2 * _local2)));
}
function normalize() {
var _local2 = Math.sqrt((x * x) + (y * y));
x = x / _local2;
y = y / _local2;
return(this);
}
function magnitude() {
return(Math.sqrt((x * x) + (y * y)));
}
function project(b) {
var _local5 = dot(b);
var _local4 = (b.x * b.x) + (b.y * b.y);
var _local3 = new org.cove.flade.util.Vector(0, 0);
_local3.x = (_local5 / _local4) * b.x;
_local3.y = (_local5 / _local4) * b.y;
return(_local3);
}
function toString() {
return(((("(x:" + x) + ",y:") + y) + ")");
}
}
Symbol 691 MovieClip [__Packages.org.cove.flade.DynamicsEngine] Frame 0
class org.cove.flade.DynamicsEngine
{
var primitives, surfaces, constraints, gravity, coeffRest, coeffFric, coeffDamp;
function DynamicsEngine () {
primitives = new Array();
surfaces = new Array();
constraints = new Array();
gravity = new org.cove.flade.util.Vector(0, 1);
coeffRest = 1.5;
coeffFric = 0.01;
coeffDamp = 0.99;
}
function addPrimitive(p) {
primitives.push(p);
}
function addSurface(s) {
surfaces.push(s);
}
function delSurface(s) {
var _local2 = 0;
while (_local2 < surfaces.length) {
if (s == surfaces[_local2]) {
surfaces.splice(_local2, 1);
return(undefined);
}
_local2++;
}
}
function addConstraint(c) {
constraints.push(c);
}
function paintSurfaces() {
var _local2 = 0;
while (_local2 < surfaces.length) {
surfaces[_local2].paint();
_local2++;
}
}
function paintPrimitives() {
var _local2 = 0;
while (_local2 < primitives.length) {
primitives[_local2].paint();
_local2++;
}
}
function paintConstraints() {
var _local2 = 0;
while (_local2 < constraints.length) {
constraints[_local2].paint();
_local2++;
}
}
function timeStep() {
verlet();
satisfyConstraints();
checkCollisions();
}
function setSurfaceBounce(kfr) {
coeffRest = 1 + kfr;
}
function setSurfaceFriction(f) {
coeffFric = f;
}
function setDamping(d) {
coeffDamp = d;
}
function setGravity(gx, gy) {
gravity.x = gx;
gravity.y = gy;
}
function verlet() {
var _local2 = 0;
while (_local2 < primitives.length) {
primitives[_local2].verlet(this);
_local2++;
}
}
function satisfyConstraints() {
var _local2 = 0;
while (_local2 < constraints.length) {
constraints[_local2].resolve();
_local2++;
}
}
function checkCollisions() {
var _local3 = 0;
while (_local3 < surfaces.length) {
var _local4 = surfaces[_local3];
if (_local4.dmc._name == undefined) {
surfaces.splice(_local3, 1);
_local3--;
} else if (_local4.getActiveState()) {
var _local2 = 0;
while (_local2 < primitives.length) {
primitives[_local2].checkCollision(_local4, this);
_local2++;
}
}
_local3++;
}
}
}
Symbol 692 MovieClip [__Packages.org.cove.flade.surfaces.Surface] Frame 0
interface org.cove.flade.surfaces.Surface
{
}
Symbol 693 MovieClip [__Packages.org.cove.flade.primitives.CircleParticle] Frame 0
class org.cove.flade.primitives.CircleParticle extends org.cove.flade.primitives.Particle
{
var radius, contactRadius, extents, closestPoint;
function CircleParticle (px, py, r) {
super(px, py);
radius = r;
contactRadius = r;
extents = new org.cove.flade.util.Vector(r, r);
closestPoint = new org.cove.flade.util.Vector(0, 0);
}
function paint() {
return(undefined);
}
function checkCollision(surface, sysObj) {
surface.resolveCircleCollision(this, sysObj);
}
}
Symbol 694 MovieClip [__Packages.org.cove.flade.graphics.Graphics] Frame 0
class org.cove.flade.graphics.Graphics
{
function Graphics () {
}
static function paintLine(dmc, x0, y0, x1, y1) {
dmc.moveTo(x0, y0);
dmc.lineTo(x1, y1);
}
static function paintCircle(dmc, x, y, r) {
var mtp8r = (0.414213562373095 * r);
var msp4r = (0.707106781186547 * r);
with (dmc) {
moveTo(x + r, y);
curveTo(r + x, mtp8r + y, msp4r + x, msp4r + y);
curveTo(mtp8r + x, r + y, x, r + y);
curveTo((-mtp8r) + x, r + y, (-msp4r) + x, msp4r + y);
curveTo((-r) + x, mtp8r + y, (-r) + x, y);
curveTo((-r) + x, (-mtp8r) + y, (-msp4r) + x, (-msp4r) + y);
curveTo((-mtp8r) + x, (-r) + y, x, (-r) + y);
curveTo(mtp8r + x, (-r) + y, msp4r + x, (-msp4r) + y);
curveTo(r + x, (-mtp8r) + y, r + x, y);
}
}
static function paintRectangle(dmc, x, y, w, h) {
var w2 = (w / 2);
var h2 = (h / 2);
with (dmc) {
moveTo(x - w2, y - h2);
lineTo(x + w2, y - h2);
lineTo(x + w2, y + h2);
lineTo(x - w2, y + h2);
lineTo(x - w2, y - h2);
}
}
}
Symbol 695 MovieClip [__Packages.org.cove.flade.primitives.RectangleParticle] Frame 0
class org.cove.flade.primitives.RectangleParticle extends org.cove.flade.primitives.Particle
{
var width, height, vertex, extents;
function RectangleParticle (px, py, w, h) {
super(px, py);
width = w;
height = h;
vertex = new org.cove.flade.util.Vector(0, 0);
extents = new org.cove.flade.util.Vector(w / 2, h / 2);
}
function paint() {
return(undefined);
}
function checkCollision(surface, sysObj) {
surface.resolveRectangleCollision(this, sysObj);
}
}
Symbol 696 MovieClip [__Packages.org.cove.flade.constraints.Constraint] Frame 0
interface org.cove.flade.constraints.Constraint
{
}
Symbol 697 MovieClip [__Packages.org.mc.WheelMc] Frame 0
class org.mc.WheelMc extends org.mc.ParticleMc
{
var __set__particle, _x, _y, _width;
function WheelMc () {
super();
__set__particle(new org.cove.flade.primitives.Wheel(_x, _y, _width / 2));
}
}
Symbol 698 MovieClip [__Packages.org.cove.flade.primitives.Wheel] Frame 0
class org.cove.flade.primitives.Wheel extends org.cove.flade.primitives.CircleParticle
{
var rp, coeffSlip, onPaint, isVisible, curr, prev;
function Wheel (x, y, r) {
super(x, y, r);
rp = new org.cove.flade.primitives.RimParticle(r, 2);
coeffSlip = 0;
onPaint = function (x, y, rotation) {
this.dmc._x = x;
this.dmc._y = y;
this.dmc._rotation = rotation;
};
}
function verlet(sysObj) {
rp.verlet(sysObj);
super.verlet(sysObj);
}
function resolveCollision(normal, sysObj) {
super.resolveCollision(normal, sysObj);
resolve(normal);
}
function paint() {
if (isVisible) {
var _local5 = curr.x;
var _local4 = curr.y;
var _local3 = rp.curr.x;
var _local2 = rp.curr.y;
onPaint(_local5, _local4, Math.atan2(_local2, _local3) * Common.a2r);
}
}
function setTraction(t) {
coeffSlip = t;
}
function resolve(n) {
var _local3 = -rp.curr.y;
var _local2 = rp.curr.x;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
_local3 = _local3 / _local4;
_local2 = _local2 / _local4;
var _local13 = _local3 * rp.speed;
var _local11 = _local2 * rp.speed;
var _local12 = curr.x - prev.x;
var _local10 = curr.y - prev.y;
var _local9 = _local12 + _local13;
var _local8 = _local10 + _local11;
var _local6 = ((-n.y) * _local9) + (n.x * _local8);
rp.prev.x = rp.curr.x - (_local6 * _local3);
rp.prev.y = rp.curr.y - (_local6 * _local2);
var _local7 = 1 - coeffSlip;
curr.x = curr.x + ((_local7 * rp.speed) * (-n.y));
curr.y = curr.y + ((_local7 * rp.speed) * n.x);
rp.speed = rp.speed * coeffSlip;
}
}
Symbol 699 MovieClip [__Packages.org.cove.flade.primitives.RimParticle] Frame 0
class org.cove.flade.primitives.RimParticle
{
var curr, prev, vs, speed, maxTorque, wr;
function RimParticle (r, mt) {
curr = new org.cove.flade.util.Vector(r, 0);
prev = new org.cove.flade.util.Vector(0, 0);
vs = 0;
speed = 0;
maxTorque = mt;
wr = r;
}
function verlet(sysObj) {
speed = Math.max(-maxTorque, Math.min(maxTorque, speed + vs));
var _local3 = -curr.y;
var _local2 = curr.x;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
_local3 = _local3 / _local4;
_local2 = _local2 / _local4;
curr.x = curr.x + (speed * _local3);
curr.y = curr.y + (speed * _local2);
var _local10 = prev.x;
var _local9 = prev.y;
var _local8 = (prev.x = curr.x);
var _local7 = (prev.y = curr.y);
curr.x = curr.x + (sysObj.coeffDamp * (_local8 - _local10));
curr.y = curr.y + (sysObj.coeffDamp * (_local7 - _local9));
var _local6 = Math.sqrt((curr.x * curr.x) + (curr.y * curr.y));
var _local5 = (_local6 - wr) / _local6;
curr.x = curr.x - (curr.x * _local5);
curr.y = curr.y - (curr.y * _local5);
}
}
Symbol 700 MovieClip [__Packages.pinbal.Ball] Frame 0
class pinbal.Ball extends org.mc.WheelMc
{
var m, x0, _x, y0, _y, __get__particle, maxVLen;
function Ball () {
super();
Global.game.ball = this;
m = 0.05;
x0 = _x;
y0 = _y;
reset();
__get__particle().onPaint = function (x, y, rotation) {
this.dmc._x = x;
this.dmc._y = y;
this.dmc.ball_mov._rotation = rotation;
};
maxVLen = 30;
}
function reset() {
__get__particle().setPos(x0, y0);
setV(0, 0);
}
function get r() {
return(__get__particle().radius);
}
function getV() {
var _local2 = __get__particle().getV();
return(new math.Vector(_local2.x, _local2.y));
}
function setV(vx, vy) {
__get__particle().setV(vx, vy);
adjustV();
}
function setPos(x, y) {
__get__particle().setPos(x, y);
_x = x;
_y = y;
}
function adjustV() {
var _local2 = new math.Vector(__get__particle().getV().x, __get__particle().getV().y);
if (_local2.length > maxVLen) {
_local2.normalize(maxVLen);
}
__get__particle().setV(_local2.x, _local2.y);
}
function setEffect(p) {
Global.game.addEffect("hitEffect_mc", {_x:_x, _y:_y, _rotation:Math.atan2(-p.y, -p.x) * Common.a2r});
}
}
Symbol 701 MovieClip [__Packages.math.Vector] Frame 0
class math.Vector extends flash.geom.Point
{
var x, y;
function Vector (x1, y1) {
super(x1, y1);
if (isNaN(x)) {
x = 0;
}
if (isNaN(y)) {
y = 0;
}
}
function clone() {
return(new math.Vector(x, y));
}
function add(p) {
return(new math.Vector(x + p.x, y + p.y));
}
function subtract(p) {
return(new math.Vector(x - p.x, y - p.y));
}
function get len_2() {
return((x * x) + (y * y));
}
function simple(u) {
x = Math.round(x / u) * u;
y = Math.round(y / u) * u;
}
function rotate(a) {
var _local2 = Math.cos(a);
var _local3 = Math.sin(a);
var _local5 = x;
var _local4 = y;
x = (_local5 * _local2) - (_local4 * _local3);
y = (_local5 * _local3) + (_local4 * _local2);
}
function transform(m) {
var _local4 = x;
var _local3 = y;
x = ((_local4 * m.a) + (_local3 * m.c)) + m.tx;
y = ((_local4 * m.b) + (_local3 * m.d)) + m.ty;
}
function isRight(p) {
return(crossProduct(this, p) < 0);
}
function isInside(pArr) {
var _local4 = pArr.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = pArr[_local2];
if (!subtract(_local3).isRight(pArr[((_local2 == (_local4 - 1)) ? 0 : (_local2 + 1))].subtract(_local3))) {
return(false);
}
_local2++;
}
return(true);
}
function getMp() {
var _local2 = new math.Vector(y, -x);
_local2.normalize(1);
return(_local2);
}
static function polar(len, angle) {
var _local1 = flash.geom.Point.polar(len, angle);
return(new math.Vector(_local1.x, _local1.y));
}
static function interpolate(pt1, pt2, f) {
var _local1 = flash.geom.Point.interpolate(pt1, pt2, f);
return(new math.Vector(_local1.x, _local1.y));
}
static function getK(p, m, n) {
return(crossProduct(p, n) / crossProduct(m, n));
}
static function getHorizontal(p, p0) {
var _local1 = dotProduct(p, p0) / p0.__get__len_2();
return(new math.Vector(p0.x * _local1, p0.y * _local1));
}
static function getVertical(p, p0) {
var _local2 = p0.__get__len_2();
return(new math.Vector((p0.y * crossProduct(p, p0)) / _local2, (p0.x * crossProduct(p0, p)) / _local2));
}
static function dotProduct(p1, p2) {
return((p1.x * p2.x) + (p1.y * p2.y));
}
static function crossProduct(p1, p2) {
return((p1.x * p2.y) - (p2.x * p1.y));
}
static function intersects(p1, p2, p3, p4) {
var _local6 = p3.subtract(p1);
var _local5 = p2.subtract(p3);
var _local8 = crossProduct(_local6, _local5);
var _local3 = p4.subtract(p2);
var _local4 = crossProduct(_local5, _local3);
if ((_local8 * _local4) < 0) {
return(false);
}
var _local1 = p1.subtract(p4);
var _local2 = crossProduct(_local3, _local1);
if ((_local4 * _local2) < 0) {
return(false);
}
var _local7 = crossProduct(_local1, _local6);
if ((_local2 * _local7) < 0) {
return(false);
}
return(true);
}
static function intersection(p1, p2, p3, p4) {
var _local2 = crossProduct(p1, p3);
var _local5 = crossProduct(p2, p4);
var _local7 = crossProduct(p3, p2);
var _local1 = crossProduct(p4, p1);
var _local3 = crossProduct(p3, p4);
var _local10 = ((_local2 + _local3) + _local1) / (((_local2 + _local5) + _local7) + _local1);
return(interpolate(p2, p1, _local10));
}
}
Symbol 702 MovieClip [__Packages.pinbal.HitObj] Frame 0
class pinbal.HitObj extends MovieClip
{
var accValue, tileMc;
function HitObj (_accValue) {
super();
accValue = _accValue;
if (isNaN(accValue)) {
accValue = 0;
}
init();
}
function init() {
tileMc.fatherMc = this;
tileMc.onContact = function (p, normal) {
this.fatherMc.play();
var _local2 = Global.game.ball.getV();
Global.game.ball.setV(_local2.x + (normal.x * this.fatherMc.accValue), _local2.y + (normal.y * this.fatherMc.accValue));
Global.game.ball.setEffect(normal);
Global.game.addScore(this.fatherMc.score);
if (this.sndName != "") {
Global.main.playSound(this.fatherMc.sndName);
}
this.fatherMc.onHit();
};
}
var sndName = "";
}
Symbol 703 MovieClip [__Packages.org.mc.TileMc] Frame 0
class org.mc.TileMc extends MovieClip
{
var _visible, __tile;
function TileMc () {
super();
_visible = false;
}
function get tile() {
return(__tile);
}
function set tile(_tile) {
__tile = _tile;
__tile.dmc = this;
__tile.onContact = function (p, normal) {
this.dmc.onContact(p, normal);
};
Global.game.engine.addSurface(__tile);
//return(tile);
}
function update() {
Global.game.engine.delSurface(__tile);
addTile();
}
function addTile() {
}
}
Symbol 704 MovieClip [__Packages.org.cove.flade.surfaces.AbstractTile] Frame 0
class org.cove.flade.surfaces.AbstractTile
{
var center, verts, normal, isVisible, isActivated, minX, maxX, minY, maxY;
function AbstractTile (cx, cy) {
center = new org.cove.flade.util.Vector(cx, cy);
verts = new Array();
normal = new org.cove.flade.util.Vector(0, 0);
isVisible = true;
isActivated = true;
}
function setVisible(v) {
isVisible = v;
}
function setActiveState(a) {
isActivated = a;
}
function getActiveState() {
return(isActivated);
}
function createBoundingRect(rw, rh) {
var _local2 = center.y - (rh / 2);
var _local3 = center.y + (rh / 2);
var _local5 = center.x - (rw / 2);
var _local4 = center.x + (rw / 2);
verts.push(new org.cove.flade.util.Vector(_local4, _local3));
verts.push(new org.cove.flade.util.Vector(_local4, _local2));
verts.push(new org.cove.flade.util.Vector(_local5, _local2));
verts.push(new org.cove.flade.util.Vector(_local5, _local3));
setCardProjections();
}
function testIntervals(boxMin, boxMax, tileMin, tileMax) {
if (boxMax < tileMin) {
return(0);
}
if (tileMax < boxMin) {
return(0);
}
var _local2 = tileMax - boxMin;
var _local1 = tileMin - boxMax;
if (Math.abs(_local2) < Math.abs(_local1)) {
return(_local2);
}
return(_local1);
}
function setCardProjections() {
getCardXProjection();
getCardYProjection();
}
function getCardXProjection() {
minX = verts[0].x;
var _local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].x < minX) {
minX = verts[_local2].x;
}
_local2++;
}
maxX = verts[0].x;
_local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].x > maxX) {
maxX = verts[_local2].x;
}
_local2++;
}
}
function getCardYProjection() {
minY = verts[0].y;
var _local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].y < minY) {
minY = verts[_local2].y;
}
_local2++;
}
maxY = verts[0].y;
_local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].y > maxY) {
maxY = verts[_local2].y;
}
_local2++;
}
}
}
Symbol 705 MovieClip [__Packages.pinbal.Board] Frame 0
class pinbal.Board extends pinbal.HitObj
{
var sndName, accValue, tileMc, body, _x, _parent;
function Board () {
super();
sndName = "SndJump";
accValue = 0;
Global.game.board = this;
Global.addGameRun(this, "run");
tileMc = body.tileMc;
tileMc.fatherMc = this;
tileMc.onContact = function (p, normal) {
Global.game.ball.setV(normal.x * this.fatherMc.accValue, normal.y * this.fatherMc.accValue);
Global.game.ball.setEffect(normal);
if (this.sndName != "") {
Global.main.playSound(this.fatherMc.sndName);
}
this.fatherMc.onHit();
};
}
function run() {
var _local2 = (_parent._xmouse - _x) * 0.6;
_x = _x + _local2;
if (_x > 373) {
_x = 373;
} else if (_x < 147) {
_x = 147;
}
tileMc.update();
}
function onMouseDown() {
if (Global.pause) {
return(undefined);
}
body.play();
}
}
Symbol 706 MovieClip [__Packages.pinbal.BtnGroup] Frame 0
class pinbal.BtnGroup extends MovieClip
{
var btnArr, onHit, id, arrow, onHitAll;
function BtnGroup () {
super();
}
function init() {
btnArr = new Array();
Common.forEachChild(this, function (child) {
if (child instanceof pinbal.HitBtn) {
child._parent.btnArr.push(child);
child.onHit = function () {
this._parent.hit();
};
}
});
reset();
}
function hit() {
onHit(++id);
if (id >= 3) {
arrow.finishOneTime();
Global.main.playSound("SndBonus");
Global.game.addScore(1000);
onHitAll();
}
}
function reset() {
id = 0;
Common.forEach(btnArr, function (btn) {
btn.gotoAndStop(1);
});
}
}
Symbol 707 MovieClip [__Packages.pinbal.Arrow] Frame 0
class pinbal.Arrow extends MovieClip
{
var _parent, gotoAndStop, _currentframe, onFinishOneTime;
function Arrow () {
super();
_parent.arrow = this;
gotoAndStop(2);
}
function finishOneTime() {
if (_currentframe != 2) {
if (onFinishOneTime()) {
gotoAndStop(2);
}
return(true);
}
return(false);
}
}
Symbol 708 MovieClip [__Packages.pinbal.HitBtn] Frame 0
class pinbal.HitBtn extends pinbal.HitObj
{
var sndName, score;
function HitBtn () {
super();
sndName = "SndBtnDown";
score = 10;
}
}
Symbol 709 MovieClip [__Packages.pinbal.HelixSystem] Frame 0
class pinbal.HelixSystem extends MovieClip
{
var g, dotArr, helixArr;
function HelixSystem () {
super();
}
function initSystem() {
g = new math.Vector(0, Global.game.g);
dotArr = new Array();
helixArr = new Array();
Common.forEachChild(this, function (child) {
if (child instanceof pinbal.Dot) {
child._parent.dotArr.push(child);
} else if (child instanceof pinbal.Helix) {
child._parent.helixArr.push(child);
}
});
Common.forEach(helixArr, function (helix) {
var p1 = (new math.Vector(helix._x, helix._y));
var p2 = p1.add(math.Vector.polar(helix._xscale, helix._rotation / Common.a2r));
var dot1;
var dot2;
Common.forEach(helix._parent.dotArr, function (dot) {
var _local2 = new math.Vector(dot._x, dot._y);
if (p1.subtract(_local2).length < 5) {
dot1 = dot;
} else if (p2.subtract(_local2).length < 5) {
dot2 = dot;
}
});
helix.join(dot1, dot2);
});
Global.addGameRun(this, "phRun");
}
function phRun() {
Common.forEach(dotArr, function (dot) {
dot.mov(dot._parent.g);
});
Common.forEach(helixArr, function (helix) {
helix.mov();
});
}
}
Symbol 710 MovieClip [__Packages.pinbal.Dot] Frame 0
class pinbal.Dot extends MovieClip
{
var v, u, m, fix, _x, _y;
function Dot () {
super();
v = new math.Vector();
u = 0.95;
m = 1;
}
function mov(a) {
if (fix) {
return(undefined);
}
v.x = v.x + a.x;
v.y = v.y + a.y;
v.x = v.x * u;
v.y = v.y * u;
_x = _x + v.x;
_y = _y + v.y;
}
function addForce(f) {
v.x = v.x + (f.x / m);
v.y = v.y + (f.y / m);
}
function snap(_m, vx, vy) {
v.x = v.x + vx;
v.y = v.y + vy;
m = m + _m;
}
function release(_m, vx, vy) {
v.x = v.x - vx;
v.y = v.y - vy;
m = m - _m;
}
}
Symbol 711 MovieClip [__Packages.pinbal.Helix] Frame 0
class pinbal.Helix extends MovieClip
{
var L0, _xscale, k, dot1, dot2, dp, _x, _y, _rotation, prevDp, f;
function Helix () {
super();
L0 = _xscale;
k = 0.1;
}
function join(_dot1, _dot2) {
dot1 = _dot1;
dot2 = _dot2;
mov();
}
function unjoin() {
dot1 = (dot2 = null);
}
function mov() {
if ((dot1 == null) || (dot2 == null)) {
return(undefined);
}
dp = new math.Vector(dot2._x - dot1._x, dot2._y - dot1._y);
_x = dot1._x;
_y = dot1._y;
_xscale = dp.length;
_rotation = Math.atan2(dp.y, dp.x) * Common.a2r;
if (dp.length < 0.1) {
dp = prevDp;
} else {
prevDp = dp;
}
dp.normalize(dp.length - L0);
f = new math.Vector(dp.x * k, dp.y * k);
dot1.addForce(f);
f.x = f.x * -1;
f.y = f.y * -1;
dot2.addForce(f);
}
}
Symbol 712 MovieClip [__Packages.pinbal.Transporter] Frame 0
class pinbal.Transporter extends pinbal.HelixSystem
{
var initSystem, dot1, isSnapAble, dot2, arrow, gotoAndStop;
function Transporter () {
super();
}
function init() {
initSystem();
dot1.fix = true;
isSnapAble = true;
dot2.ballPosObj.onPickUp = function () {
Global.game.transporterBtnGroup.reset();
return(this._parent._parent.getBall());
};
}
function getBall() {
if (isSnapAble) {
dot2.snap(Global.game.ball.m, Global.game.ball.getV().x, Global.game.ball.getV().y);
movDelay();
arrow.finishOneTime();
return(true);
}
return(false);
}
function movDelay() {
isSnapAble = false;
Global.addGameDelayRun(this, "play", 30);
}
function onMov() {
Global.addGameDelayRun(this, "putDown", 30);
}
function putDown() {
dot2.release(Global.game.ball.m, Global.game.ball.getV().x, Global.game.ball.getV().y);
dot2.ballPosObj.putDown();
Global.addGameDelayRun(this, "play", 30);
}
function onMovBack() {
isSnapAble = true;
}
function reset() {
gotoAndStop(1);
}
}
Symbol 713 MovieClip [__Packages.pinbal.HitMc] Frame 0
class pinbal.HitMc extends MovieClip
{
var hitAble, hitFlag, canHit, stop, score, hitArea, play;
function HitMc () {
super();
hitAble = true;
hitFlag = true;
canHit = true;
stop();
Global.addGameRun(this, "run");
score = 10;
if (hitArea == null) {
hitArea = this;
}
}
function run() {
if (hitAble && (Global.game.ball._visible)) {
if (hitArea.hitTest(Global.game.ball)) {
if (canHit) {
if (hitFlag) {
}
canHit = false;
hitAble = false;
if (sndName != "") {
Global.main.playSound(sndName);
}
play();
Global.game.addScore(score);
}
} else {
canHit = true;
}
}
}
var sndName = "";
}
Symbol 714 MovieClip [__Packages.pinbal.LightSystem] Frame 0
class pinbal.LightSystem extends MovieClip
{
var lightArr, totalOn, arrow, onTurnOnAll, sndId, sndArr;
function LightSystem () {
super();
lightArr = new Array();
reset();
}
function run() {
var _local4 = lightArr.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = lightArr[_local2];
if (_local3.__get__isOn()) {
} else if (_local3.hitTest(Global.game.ball)) {
if (_local3.canHit) {
_local3.turn();
_local3.canHit = false;
if (_local3.__get__isOn()) {
totalOn++;
if (allOn) {
arrow.finishOneTime();
onTurnOnAll();
sndId = 0;
Global.main.playSound(sndArr[sndArr.length - 1]);
Global.main.playSound("SndBonus");
Global.game.addScore(1000);
Global.delGameRun(this, "run");
_local2 = 0;
while (_local2 < _local4) {
lightArr[_local2].play();
_local2++;
}
Global.addGameDelayRun(this, "reset", 150);
} else {
Global.main.playSound("SndLight");
Global.main.playSound(sndArr[sndId]);
if ((++sndId) >= sndArr.length) {
sndId = 0;
}
Global.game.addScore(10);
}
} else {
totalOn--;
}
}
} else {
_local3.canHit = true;
}
_local2++;
}
}
function turnOffAll() {
var _local3 = lightArr.length;
var _local2 = 0;
while (_local2 < _local3) {
lightArr[_local2].isOn = false;
_local2++;
}
Global.delGameRun(this, "run");
Global.addGameRun(this, "run");
}
function get allOn() {
return(totalOn == lightArr.length);
}
function reset() {
totalOn = 0;
sndId = 0;
var _local3 = lightArr.length;
var _local2 = 0;
while (_local2 < _local3) {
lightArr[_local2].isOn = false;
_local2++;
}
Global.addGameRun(this, "run");
}
}
Symbol 715 MovieClip [__Packages.pinbal.Light] Frame 0
class pinbal.Light extends MovieClip
{
var canHit, _parent, __isOn, gotoAndStop;
function Light () {
super();
isOn = (false);
canHit = true;
_parent.lightArr.push(this);
}
function turn() {
isOn = (!isOn);
}
function get isOn() {
return(__isOn);
}
function set isOn(_isOn) {
__isOn = _isOn;
if (__isOn) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
//return(isOn);
}
}
Symbol 716 MovieClip [__Packages.effect.Typewriter] Frame 0
class effect.Typewriter extends MovieClip
{
var totalDelayTime, txt, msg, delayTime, currentId, onShow;
function Typewriter () {
super();
totalDelayTime = 120;
txt.text = "";
}
function show(_msg, _fix) {
if (msg == _msg) {
return(undefined);
}
delayTime = totalDelayTime;
msg = _msg;
currentId = 0;
txt.text = "";
Global.delGameRun(this, "typeRun");
Global.addGameRun(this, "typeRun");
}
function hide() {
msg = "";
txt.text = "";
Global.delGameRun(this, "typeRun");
}
function typeRun() {
if (msg == "") {
txt.text = "";
Global.delGameRun(this, "typeRun");
return(undefined);
}
if (currentId >= msg.length) {
if ((--delayTime) <= 0) {
delayTime = totalDelayTime;
onShow();
txt.text = msg;
Global.delGameRun(this, "typeRun");
return(undefined);
}
txt.text = msg + (((int(getTimer() / 500) % 2) == 0) ? "_" : "");
} else {
currentId++;
txt.text = msg.substr(0, currentId) + (((int(getTimer() / 500) % 2) == 0) ? "_" : "");
}
}
}
Symbol 717 MovieClip [__Packages.ui.NumClock] Frame 0
class ui.NumClock extends MovieClip
{
var delayTime, onTimeUp, __time, txt, __totalTime;
function NumClock () {
super();
}
function start() {
delayTime = 50;
Global.delGameRun(this, "run");
Global.addGameRun(this, "run");
}
function stop() {
Global.delGameRun(this, "run");
}
function run() {
if ((--delayTime) <= 0) {
delayTime = 50;
if (time = ((time-1)) <= 0) {
timeUp();
}
}
}
function timeUp() {
stop();
onTimeUp();
}
function get time() {
return(__time);
}
function set time(_time) {
txt.text = numToTime((__time = _time));
//return(time);
}
function get totalTime() {
return(__totalTime);
}
function set totalTime(_totalTime) {
time = ((__totalTime = _totalTime));
//return(totalTime);
}
function numToTime(num) {
var _local2 = num % 60;
var _local3 = (num - _local2) / 60;
var _local1 = "";
if (_local3 < 10) {
_local1 = _local1 + "0";
}
_local1 = _local1 + (_local3 + ":");
if (_local2 < 10) {
_local1 = _local1 + "0";
}
_local1 = _local1 + _local2;
return(_local1);
}
}
Symbol 718 MovieClip [__Packages.pinbal.AccCircle] Frame 0
class pinbal.AccCircle extends pinbal.HitObj
{
static var t, dScore;
var sndName, score, onHit;
function AccCircle () {
super(20);
sndName = "SndAccCircle";
t = 0;
dScore = 0;
score = 0;
onHit = function () {
if ((getTimer() - pinbal.AccCircle.t) < 500) {
pinbal.AccCircle.dScore = pinbal.AccCircle.dScore + 10;
} else {
pinbal.AccCircle.dScore = 10;
}
Global.game.addScore(pinbal.AccCircle.dScore);
pinbal.AccCircle.t = getTimer();
if (pinbal.AccCircle.totalHit > 0) {
pinbal.AccCircle.totalHit--;
pinbal.AccCircle.onHitOne();
}
};
}
}
Symbol 719 MovieClip [__Packages.effect.ClipMov] Frame 0
class effect.ClipMov extends MovieClip
{
var L, clipArr, id;
function ClipMov () {
super();
var _local4 = Common.getChildAt(this, 0);
L = _local4._totalframes;
var _local5 = _local4.filters;
clipArr = new Array();
initClip(_local4, 0, _local5);
var _local3 = 1;
while (_local3 < L) {
initClip(_local4.duplicateMovieClip("clip" + _local3, _local3), _local3, _local5);
_local3++;
}
id = record.Recorder.getData(random(L));
Global.addRun(this, "run");
trace("L=" + L);
}
function run() {
clipArr[id]._visible = false;
if ((++id) >= L) {
id = 0;
}
clipArr[id]._visible = true;
}
function initClip(clip, id, filters) {
clip.gotoAndStop(id);
clip.cacheAsBitmap = true;
clip.filters = filters;
clip._visible = false;
clipArr.push(clip);
}
}
Symbol 720 MovieClip [__Packages.FWG.Logo] Frame 0
class FWG.Logo extends ui.SBtn
{
var _press;
function Logo () {
super();
_press = function () {
this.getURL("http://www.freeworldgroup.com/", "_blank");
};
}
}
Symbol 721 MovieClip [__Packages.FWG.BtnCopyright] Frame 0
class FWG.BtnCopyright extends FWG.Btn
{
var __set__label;
function BtnCopyright () {
super();
__set__label("Copyright 2007 freeworldgroup.com");
}
}
Symbol 722 MovieClip [__Packages.FWG.BtnCredits] Frame 0
class FWG.BtnCredits extends FWG.Btn
{
var __set__label;
function BtnCredits () {
super();
__set__label("Credits");
}
}
Symbol 723 MovieClip [__Packages.FWG.HitRec] Frame 0
class FWG.HitRec extends MovieClip
{
var onPress, useHandCursor;
function HitRec () {
super();
onPress = function () {
};
useHandCursor = false;
}
}
Symbol 724 MovieClip [__Packages.FWG.BtnMog] Frame 0
class FWG.BtnMog extends FWG.Btn
{
var __set__label;
function BtnMog () {
super();
__set__label("More Online Games");
}
}
Symbol 725 MovieClip [__Packages.FWG.BtnDg] Frame 0
class FWG.BtnDg extends FWG.Btn
{
var __set__label;
function BtnDg () {
super();
__set__label("Download Games");
}
}
Symbol 726 MovieClip [__Packages.FWG.BtnAgtys] Frame 0
class FWG.BtnAgtys extends FWG.Btn
{
var __set__label;
function BtnAgtys () {
super();
__set__label("Add Games to Your Site");
}
}
Symbol 727 MovieClip [__Packages.FWG.BtnVh] Frame 0
class FWG.BtnVh extends FWG.Btn
{
var __set__label;
function BtnVh () {
super();
__set__label("View Highscores");
}
}
Symbol 728 MovieClip [__Packages.FWG.BtnPg] Frame 0
class FWG.BtnPg extends FWG.Btn
{
var __set__label;
function BtnPg () {
super();
__set__label("Play Game");
}
}
Symbol 729 MovieClip [__Packages.FWG.BtnInstructions] Frame 0
class FWG.BtnInstructions extends FWG.Btn
{
var __set__label;
function BtnInstructions () {
super();
__set__label("Instructions");
}
}
Symbol 730 MovieClip [__Packages.FWG.PageMenu] Frame 0
class FWG.PageMenu extends MovieClip
{
function PageMenu () {
super();
}
}
Symbol 731 MovieClip [__Packages.FWG.BtnLevel] Frame 0
class FWG.BtnLevel extends FWG.Btn
{
var __set__selectAble, __set__errorPress, scoreTxt, __get__score, __id, levelTxt, levelImg;
function BtnLevel () {
super();
}
function set score(_score) {
if (_score < 0) {
_score = 0;
__set__selectAble(false);
__set__errorPress(function () {
ui.Alt.show("Can't play yet!");
ui.Alt.hideDelay(2000);
});
}
scoreTxt.text = "Score:" + _score;
//return(__get__score());
}
function get id() {
return(__id);
}
function set id(_id) {
__id = _id;
levelTxt.text = "Level " + __id;
levelImg.gotoAndStop(_id);
//return(id);
}
}
Symbol 732 MovieClip [__Packages.FWG.StageSelecter] Frame 0
class FWG.StageSelecter extends MovieClip
{
function StageSelecter () {
super();
Global.main.stageSave = new FWG.StageSave();
}
function init() {
var _local5;
var _local3;
var _local4;
var _local2 = 1;
while (_local2 <= Global.main.totalStage) {
_local4 = Global.main.stageSave.getCurrentScore(_local2);
_local3 = this["btn" + _local2];
_local3.__set__id(_local2);
if ((_local4 < 0) && (!_local5)) {
_local5 = true;
_local3.__set__score(0);
} else {
_local3.__set__score(_local4);
}
_local3._press = function () {
Global.main.selectPlay(this.id);
};
_local2++;
}
}
}
Symbol 733 MovieClip [__Packages.FWG.PageOptions] Frame 0
class FWG.PageOptions extends MovieClip
{
function PageOptions () {
super();
}
}
Symbol 734 MovieClip [__Packages.FWG.BtnQ0] Frame 0
class FWG.BtnQ0 extends FWG.Btn
{
var __set__label;
function BtnQ0 () {
super();
__set__label("LOW");
}
}
Symbol 735 MovieClip [__Packages.FWG.BtnQ1] Frame 0
class FWG.BtnQ1 extends FWG.Btn
{
var __set__label;
function BtnQ1 () {
super();
__set__label("MEDIUM");
}
}
Symbol 736 MovieClip [__Packages.FWG.BtnQ2] Frame 0
class FWG.BtnQ2 extends FWG.Btn
{
var __set__label;
function BtnQ2 () {
super();
__set__label("HIGH");
}
}
Symbol 737 MovieClip [__Packages.FWG.BtnQ3] Frame 0
class FWG.BtnQ3 extends FWG.Btn
{
var __set__label;
function BtnQ3 () {
super();
__set__label("BEST");
}
}
Symbol 738 MovieClip [__Packages.FWG.PageInst] Frame 0
class FWG.PageInst extends MovieClip
{
function PageInst () {
super();
}
}
Symbol 739 MovieClip [__Packages.pinbal.BallPosObj] Frame 0
class pinbal.BallPosObj extends MovieClip
{
var ballV, body, _visible, startV, endV, onPickUp, __ball, score, hitTest, onPutDown;
function BallPosObj () {
super();
ballV = new math.Vector();
body.stop();
_visible = false;
Global.addGameRun(this, "run");
}
function defaultInit(startA, endA) {
if (!isNaN(startA)) {
startV = math.Vector.polar(1, startA / Common.a2r);
endV = math.Vector.polar(1, endA / Common.a2r);
}
onPickUp = function () {
this._parent.play();
this.onPickUp = null;
return(true);
};
}
function get ball() {
return(__ball);
}
function set ball(_ball) {
if (_ball) {
Global.game.addScore(score);
body.gotoAndStop(2);
body.ball_mov.gotoAndStop(_ball.ball_mov._currentframe);
body._rotation = _ball._rotation;
__ball = _ball;
__ball._visible = false;
_visible = true;
} else {
body.gotoAndStop(1);
__ball._visible = true;
__ball = null;
_visible = false;
}
//return(ball);
}
function run() {
if (__ball) {
adjustBall();
} else if (Global.game.ball._visible && (hitTest(Global.game.ball))) {
if (onPickUp()) {
ball = (Global.game.ball);
}
}
}
function putDown(vx, vy) {
onPutDown();
adjustBall();
if (!isNaN(vx)) {
__ball.setV(vx, vy);
} else {
__ball.setV(ballV.x, ballV.y);
}
__ball.setV((__ball.getV().x + Math.random()) - 0.5, (__ball.getV().y + Math.random()) - 0.5);
ball = (null);
}
function adjustBall() {
var _local2 = new math.Vector();
Common.localToLocal(_local2, this, Global.game);
ballV.x = _local2.x - __ball._x;
ballV.y = _local2.y - __ball._y;
__ball.setPos(_local2.x, _local2.y);
}
}
Symbol 740 MovieClip [__Packages.org.mc.LineMc] Frame 0
class org.mc.LineMc extends org.mc.TileMc
{
var pMc0, pMc1, __set__tile;
function LineMc () {
super();
addTile();
}
function addTile() {
var _local3 = new math.Vector();
Common.localToLocal(_local3, pMc0, Global.game);
var _local2 = new math.Vector();
Common.localToLocal(_local2, pMc1, Global.game);
__set__tile(new org.cove.flade.surfaces.LineSurface(_local3.x, _local3.y, _local2.x, _local2.y));
}
}
Symbol 741 MovieClip [__Packages.org.cove.flade.surfaces.LineSurface] Frame 0
class org.cove.flade.surfaces.LineSurface extends org.cove.flade.surfaces.AbstractTile implements org.cove.flade.surfaces.Surface
{
var p1, p2, collNormal, faceNormal, onContact, collisionDepth, testIntervals, minY, maxY, minX, maxX, sideNormal, minS, maxS, minF, maxF, rise, run, sign, slope, invB, setCardProjections, p3, p4, verts;
function LineSurface (p1x, p1y, p2x, p2y) {
super(0, 0);
p1 = new org.cove.flade.util.Vector(p1x, p1y);
p2 = new org.cove.flade.util.Vector(p2x, p2y);
calcFaceNormal();
collNormal = new org.cove.flade.util.Vector(0, 0);
setCollisionDepth(30);
}
function paint() {
return(undefined);
}
function resolveCircleCollision(p, sysObj) {
if (isCircleColliding(p)) {
p.resolveCollision(faceNormal, sysObj);
onContact(p, faceNormal);
}
}
function resolveRectangleCollision(p, sysObj) {
if (isRectangleColliding(p)) {
onContact();
p.resolveCollision(collNormal, sysObj);
}
}
function setCollisionDepth(d) {
collisionDepth = d;
precalculate();
}
function isCircleColliding(p) {
findClosestPoint(p.curr, p.closestPoint);
var _local3 = p.closestPoint.minusNew(p.curr);
_local3.normalize();
if (inequality(p.curr)) {
var _local5 = Math.abs(_local3.x);
_local3.x = ((faceNormal.x < 0) ? (_local5) : (-_local5));
_local3.y = Math.abs(_local3.y);
}
var _local4 = p.curr.plusNew(_local3.mult(p.radius));
if (segmentInequality(_local4)) {
if (_local4.distance(p.closestPoint) > collisionDepth) {
return(false);
}
var _local7 = _local4.x - p.closestPoint.x;
var _local6 = _local4.y - p.closestPoint.y;
p.mtd.setTo(-_local7, -_local6);
return(true);
}
return(false);
}
function isRectangleColliding(p) {
p.getCardYProjection();
var _local7 = testIntervals(p.bmin, p.bmax, minY, maxY);
if (_local7 == 0) {
return(false);
}
p.getCardXProjection();
var _local8 = testIntervals(p.bmin, p.bmax, minX, maxX);
if (_local8 == 0) {
return(false);
}
p.getAxisProjection(sideNormal);
var _local10 = testIntervals(p.bmin, p.bmax, minS, maxS);
if (_local10 == 0) {
return(false);
}
p.getAxisProjection(faceNormal);
var _local9 = testIntervals(p.bmin, p.bmax, minF, maxF);
if (_local9 == 0) {
return(false);
}
var _local4 = Math.abs(_local8);
var _local3 = Math.abs(_local7);
var _local6 = Math.abs(_local10);
var _local5 = Math.abs(_local9);
if (((_local4 <= _local3) && (_local4 <= _local6)) && (_local4 <= _local5)) {
p.mtd.setTo(_local8, 0);
collNormal.setTo(p.mtd.x / _local4, 0);
} else if (((_local3 <= _local4) && (_local3 <= _local6)) && (_local3 <= _local5)) {
p.mtd.setTo(0, _local7);
collNormal.setTo(0, p.mtd.y / _local3);
} else if (((_local5 <= _local4) && (_local5 <= _local3)) && (_local5 <= _local6)) {
p.mtd = faceNormal.multNew(_local9);
collNormal.copy(faceNormal);
} else if (((_local6 <= _local4) && (_local6 <= _local3)) && (_local6 <= _local5)) {
p.mtd = sideNormal.multNew(_local10);
collNormal.copy(sideNormal);
}
return(true);
}
function precalculate() {
rise = p2.y - p1.y;
run = p2.x - p1.x;
sign = ((run >= 0) ? 1 : -1);
slope = rise / run;
invB = 1 / ((run * run) + (rise * rise));
createRectangle();
calcSideNormal();
setCardProjections();
setAxisProjections();
}
function calcFaceNormal() {
faceNormal = new org.cove.flade.util.Vector(0, 0);
var _local3 = p2.x - p1.x;
var _local2 = p2.y - p1.y;
faceNormal.setTo(_local2, -_local3);
faceNormal.normalize();
}
function segmentInequality(toPoint) {
var _local2 = findU(toPoint);
var _local3 = inequality(toPoint);
return(((_local2 >= 0) && (_local2 <= 1)) && (_local3));
}
function inequality(toPoint) {
var _local2 = ((slope * (toPoint.x - p1.x)) + (p1.y - toPoint.y)) * sign;
return(_local2 <= 0);
}
function findClosestPoint(toPoint, returnVect) {
var _local2 = findU(toPoint);
if (_local2 <= 0) {
returnVect.copy(p1);
return(undefined);
}
if (_local2 >= 1) {
returnVect.copy(p2);
return(undefined);
}
var _local5 = p1.x + (_local2 * (p2.x - p1.x));
var _local4 = p1.y + (_local2 * (p2.y - p1.y));
returnVect.setTo(_local5, _local4);
}
function findU(p) {
var _local2 = ((p.x - p1.x) * run) + ((p.y - p1.y) * rise);
return(_local2 * invB);
}
function createRectangle() {
var _local5 = p2.x + ((-faceNormal.x) * collisionDepth);
var _local3 = p2.y + ((-faceNormal.y) * collisionDepth);
var _local4 = p1.x + ((-faceNormal.x) * collisionDepth);
var _local2 = p1.y + ((-faceNormal.y) * collisionDepth);
p3 = new org.cove.flade.util.Vector(_local5, _local3);
p4 = new org.cove.flade.util.Vector(_local4, _local2);
verts.push(p1);
verts.push(p2);
verts.push(p3);
verts.push(p4);
}
function setAxisProjections() {
var _local2;
minF = p2.dot(faceNormal);
maxF = p3.dot(faceNormal);
if (minF > maxF) {
_local2 = minF;
minF = maxF;
maxF = _local2;
}
minS = p1.dot(sideNormal);
maxS = p2.dot(sideNormal);
if (minS > maxS) {
_local2 = minS;
minS = maxS;
maxS = _local2;
}
}
function calcSideNormal() {
sideNormal = new org.cove.flade.util.Vector(0, 0);
var _local3 = p3.x - p2.x;
var _local2 = p3.y - p2.y;
sideNormal.setTo(_local2, -_local3);
sideNormal.normalize();
}
}
Symbol 742 MovieClip [__Packages.org.mc.CircleMc] Frame 0
class org.mc.CircleMc extends org.mc.TileMc
{
var pMc, __set__tile;
function CircleMc () {
super();
addTile();
}
function addTile() {
var _local2 = new math.Vector();
Common.localToLocal(_local2, this, Global.game);
var _local3 = new math.Vector();
Common.localToLocal(_local3, pMc, Global.game);
_local3 = _local3.subtract(_local2);
__set__tile(new org.cove.flade.surfaces.CircleTile(_local2.x, _local2.y, _local3.length));
}
}
Symbol 743 MovieClip [__Packages.org.cove.flade.surfaces.CircleTile] Frame 0
class org.cove.flade.surfaces.CircleTile extends org.cove.flade.surfaces.AbstractTile implements org.cove.flade.surfaces.Surface
{
var createBoundingRect, radius, normal, onContact, testIntervals, minX, maxX, minY, maxY, center;
function CircleTile (cx, cy, r) {
super(cx, cy);
createBoundingRect(r * 2, r * 2);
radius = r;
}
function paint() {
return(undefined);
}
function resolveCircleCollision(p, sysObj) {
if (isCircleColliding(p)) {
p.resolveCollision(normal, sysObj);
onContact(p, normal);
}
}
function resolveRectangleCollision(p, sysObj) {
if (isRectangleColliding(p)) {
onContact();
p.resolveCollision(normal, sysObj);
}
}
function isCircleColliding(p) {
p.getCardXProjection();
var _local8 = testIntervals(p.bmin, p.bmax, minX, maxX);
if (_local8 == 0) {
return(false);
}
p.getCardYProjection();
var _local7 = testIntervals(p.bmin, p.bmax, minY, maxY);
if (_local7 == 0) {
return(false);
}
var _local4 = center.x - p.curr.x;
var _local3 = center.y - p.curr.y;
var _local5 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
var _local6 = (p.radius + radius) - _local5;
if (_local6 > 0) {
_local4 = _local4 / _local5;
_local3 = _local3 / _local5;
p.mtd.setTo((-_local4) * _local6, (-_local3) * _local6);
normal.setTo(-_local4, -_local3);
return(true);
}
return(false);
}
function isRectangleColliding(p) {
p.getCardXProjection();
var _local6 = testIntervals(p.bmin, p.bmax, minX, maxX);
if (_local6 == 0) {
return(false);
}
p.getCardYProjection();
var _local5 = testIntervals(p.bmin, p.bmax, minY, maxY);
if (_local5 == 0) {
return(false);
}
var _local11 = Math.abs(_local6) < radius;
var _local12 = Math.abs(_local5) < radius;
if (_local11 && (_local12)) {
var _local10 = p.curr.x + (sign(center.x - p.curr.x) * (p.width / 2));
var _local9 = p.curr.y + (sign(center.y - p.curr.y) * (p.height / 2));
p.vertex.setTo(_local10, _local9);
var _local4 = p.vertex.x - center.x;
var _local3 = p.vertex.y - center.y;
var _local8 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
var _local7 = radius - _local8;
if (_local7 > 0) {
_local4 = _local4 / _local8;
_local3 = _local3 / _local8;
p.mtd.setTo(_local4 * _local7, _local3 * _local7);
normal.setTo(_local4, _local3);
return(true);
}
return(false);
}
p.setXYMTD(_local6, _local5);
normal.setTo(p.mtd.x / Math.abs(_local6), p.mtd.y / Math.abs(_local5));
return(true);
}
function sign(val) {
if (val < 0) {
return(-1);
}
if (val > 0) {
return(1);
}
}
}
Symbol 744 MovieClip [__Packages.pinbal.Acc] Frame 0
class pinbal.Acc extends pinbal.HitObj
{
function Acc () {
super(20);
}
}
Symbol 745 MovieClip [__Packages.pinbal.Shooter] Frame 0
class pinbal.Shooter extends pinbal.HelixSystem
{
var helix, board, initSystem, isSnapAble, dot, ctrlAble;
function Shooter () {
super();
}
function init() {
helix.k = 0.2;
board.m = 1;
board.u = 0.9;
initSystem();
isSnapAble = true;
dot.fix = true;
board.ballPosObj.score = 0;
board.ballPosObj.onPickUp = function () {
return(this._parent._parent.getBall(this._parent));
};
Global.addGameRun(this, "run");
}
function run() {
board._x = 0;
board.v.x = 0;
if (board.fix) {
board.v.y = 0;
if (board._y < -20) {
board._y = board._y + ((-board._y) * 0.02);
}
} else if (board._y > 1) {
board._y = 1;
board.v.y = board.v.y * -1;
}
}
function getBall(dot) {
if (isSnapAble) {
dot.snap(Global.game.ball.m, 0, Global.game.ball.getV().y);
ctrlAble = true;
isSnapAble = false;
return(true);
}
return(false);
}
function onMouseDown() {
if (Global.pause) {
return(undefined);
}
if (ctrlAble) {
board.fix = true;
}
}
function onMouseUp() {
if (Global.pause) {
return(undefined);
}
if (board.fix) {
Global.main.playSound("SndShoot", this);
ctrlAble = false;
board.fix = false;
Global.addGameRun(this, "checkShoot");
var _local2 = helix.L0 + board._y;
if (_local2 < 1) {
_local2 = 1;
}
Global.game.ball.maxVLen = 30;
board.ballPosObj.putDown(0, -_local2);
Global.delGameRun(this, "phRun");
Global.addGameRun(this, "checkRelease");
}
}
function checkRelease() {
if (Global.game.ball.getV().y > 0) {
isSnapAble = true;
Global.addGameRun(this, "phRun");
Global.delGameRun(this, "checkRelease");
Global.game.ball.maxVLen = 30;
}
}
}
Symbol 746 MovieClip [__Packages.org.mc.PolyLineMc] Frame 0
class org.mc.PolyLineMc extends MovieClip
{
var lineArr, pMc0;
function PolyLineMc () {
super();
lineArr = new Array();
var _local19;
var _local13;
var _local9 = 0;
var _local10;
while (_local19 = this["pMc" + _local9] , _local19) {
_local10 = _local9 + 1;
var _local3 = {x:0, y:0};
var _local4 = {x:0, y:0};
Common.localToLocal(_local3, _local19, Global.game);
_local13 = this["pMc" + _local10];
if (_local13 == undefined) {
_local13 = pMc0;
_local10 = 0;
}
Common.localToLocal(_local4, _local13, Global.game);
var _local8 = this[(("pMc_in_" + _local9) + "_") + _local10];
var _local11 = true;
if (_local8 == undefined) {
_local11 = false;
_local8 = this[(("pMc_out_" + _local9) + "_") + _local10];
}
if (_local8) {
var _local5 = {x:0, y:0};
Common.localToLocal(_local5, _local8, Global.game);
var _local12 = new org.cove.flade.surfaces.ArcTile();
var _local18 = (_local3.x * _local3.x) + (_local3.y * _local3.y);
var _local17 = (_local4.x * _local4.x) + (_local4.y * _local4.y);
var _local16 = (_local5.x * _local5.x) + (_local5.y * _local5.y);
var _local6 = {x:((((_local18 * (_local5.y - _local4.y)) + (_local17 * (_local3.y - _local5.y))) + (_local16 * (_local4.y - _local3.y))) / 2) / (((_local3.x * (_local5.y - _local4.y)) + (_local4.x * (_local3.y - _local5.y))) + (_local5.x * (_local4.y - _local3.y))), y:((((_local18 * (_local5.x - _local4.x)) + (_local17 * (_local3.x - _local5.x))) + (_local16 * (_local4.x - _local3.x))) / 2) / (((_local3.y * (_local5.x - _local4.x)) + (_local4.y * (_local3.x - _local5.x))) + (_local5.y * (_local4.x - _local3.x)))};
var _local7 = {x:_local3.x - _local6.x, y:_local3.y - _local6.y};
var _local14 = {x:_local5.x - _local6.x, y:_local5.y - _local6.y};
var _local15 = Math.sqrt((_local7.x * _local7.x) + (_local7.y * _local7.y));
if (((_local7.x * _local14.y) - (_local7.y * _local14.x)) > 0) {
_local12 = new org.cove.flade.surfaces.ArcTile(_local6.x, _local6.y, _local3.x, _local3.y, _local4.x, _local4.y, _local15, _local11);
} else {
_local12 = new org.cove.flade.surfaces.ArcTile(_local6.x, _local6.y, _local4.x, _local4.y, _local3.x, _local3.y, _local15, _local11);
}
} else {
var _local12 = new org.cove.flade.surfaces.LineSurface(_local3.x, _local3.y, _local4.x, _local4.y);
}
_local12.dmc = this;
lineArr.push(_local12);
Global.game.engine.addSurface(_local12);
_local9++;
}
}
}
Symbol 747 MovieClip [__Packages.org.cove.flade.surfaces.ArcTile] Frame 0
class org.cove.flade.surfaces.ArcTile extends org.cove.flade.surfaces.AbstractTile implements org.cove.flade.surfaces.Surface
{
var p1, p2, startV, endV, createBoundingRect, radius, inside, onContact, normal, testIntervals, minX, maxX, minY, maxY, center;
function ArcTile (x0, y0, x1, y1, x2, y2, r, _inside) {
super(x0, y0);
var _local3 = new org.cove.flade.util.Vector(x0, y0);
p1 = new org.cove.flade.util.Vector(x1, y1);
p2 = new org.cove.flade.util.Vector(x2, y2);
startV = p1.minusNew(_local3);
startV.normalize();
endV = p2.minusNew(_local3);
endV.normalize();
createBoundingRect(r * 2, r * 2);
radius = r;
inside = _inside;
}
function paint() {
return(undefined);
}
function resolveCircleCollision(p, sysObj) {
if (isCircleColliding(p)) {
onContact();
p.resolveCollision(normal, sysObj);
}
}
function isCircleColliding(p) {
p.getCardXProjection();
var _local9 = testIntervals(p.bmin, p.bmax, minX, maxX);
if (_local9 == 0) {
return(false);
}
p.getCardYProjection();
var _local8 = testIntervals(p.bmin, p.bmax, minY, maxY);
if (_local8 == 0) {
return(false);
}
var _local4 = center.x - p.curr.x;
var _local3 = center.y - p.curr.y;
var _local5 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
if (inside) {
var _local6 = (radius - p.radius) - _local5;
} else {
var _local6 = (radius + p.radius) - _local5;
}
if ((_local5 < (radius + p.radius)) && (_local5 > (radius - p.radius))) {
var _local7 = findClosestPoint(p.curr, p.closestPoint);
if ((_local7 == p1) || (_local7 == p2)) {
if (_local7.distance(p.curr) < p.radius) {
_local4 = _local4 / _local5;
_local3 = _local3 / _local5;
p.mtd.setTo((-_local4) * _local6, (-_local3) * _local6);
if (inside) {
normal.setTo(_local4, _local3);
} else {
normal.setTo(-_local4, -_local3);
}
return(true);
}
return(false);
}
_local4 = _local4 / _local5;
_local3 = _local3 / _local5;
p.mtd.setTo((-_local4) * _local6, (-_local3) * _local6);
if (inside) {
normal.setTo(_local4, _local3);
} else {
normal.setTo(-_local4, -_local3);
}
return(true);
}
return(false);
}
function findClosestPoint(toPoint, returnVect) {
var _local2 = new org.cove.flade.util.Vector(toPoint.x - center.x, toPoint.y - center.y);
_local2.normalize();
var _local5 = _local2.cross(startV);
var _local4 = _local2.cross(endV);
if ((_local5 < 0) && (_local4 > 0)) {
var _local3 = new org.cove.flade.util.Vector(_local2.x * radius, _local2.y * radius);
returnVect.copy(_local3);
return(_local3);
}
if ((_local5 > 0) && (_local4 > 0)) {
returnVect.copy(p1);
return(p1);
}
returnVect.copy(p2);
return(p2);
}
function resolveRectangleCollision(p, sysObj) {
}
function isRectangleColliding(p) {
return(false);
}
function sign(val) {
if (val < 0) {
return(-1);
}
if (val > 0) {
return(1);
}
}
}
Symbol 748 MovieClip [__Packages.org.mc.RectMc] Frame 0
class org.mc.RectMc extends org.mc.TileMc
{
var __set__tile, _x, _y, _width, _height;
function RectMc () {
super();
__set__tile(new org.cove.flade.surfaces.RectangleTile(_x, _y, _width, _height));
}
}
Symbol 749 MovieClip [__Packages.org.cove.flade.surfaces.RectangleTile] Frame 0
class org.cove.flade.surfaces.RectangleTile extends org.cove.flade.surfaces.AbstractTile implements org.cove.flade.surfaces.Surface
{
var rectWidth, rectHeight, createBoundingRect, onContact, normal, testIntervals, minX, maxX, minY, maxY, center;
function RectangleTile (cx, cy, rw, rh) {
super(cx, cy);
rectWidth = rw;
rectHeight = rh;
createBoundingRect(rw, rh);
}
function paint() {
return(undefined);
}
function resolveCircleCollision(p, sysObj) {
if (isCircleColliding(p)) {
onContact();
p.resolveCollision(normal, sysObj);
}
}
function resolveRectangleCollision(p, sysObj) {
if (isRectangleColliding(p)) {
onContact();
p.resolveCollision(normal, sysObj);
}
}
function isCircleColliding(p) {
p.getCardXProjection();
var _local6 = testIntervals(p.bmin, p.bmax, minX, maxX);
if (_local6 == 0) {
return(false);
}
p.getCardYProjection();
var _local5 = testIntervals(p.bmin, p.bmax, minY, maxY);
if (_local5 == 0) {
return(false);
}
var _local11 = Math.abs(_local6) < p.radius;
var _local12 = Math.abs(_local5) < p.radius;
if (_local11 && (_local12)) {
var _local10 = center.x + (sign(p.curr.x - center.x) * (rectWidth / 2));
var _local9 = center.y + (sign(p.curr.y - center.y) * (rectHeight / 2));
var _local4 = p.curr.x - _local10;
var _local3 = p.curr.y - _local9;
var _local8 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
var _local7 = p.radius - _local8;
if (_local7 > 0) {
_local4 = _local4 / _local8;
_local3 = _local3 / _local8;
p.mtd.setTo(_local4 * _local7, _local3 * _local7);
normal.setTo(_local4, _local3);
return(true);
}
return(false);
}
p.setXYMTD(_local6, _local5);
normal.setTo(p.mtd.x / Math.abs(_local6), p.mtd.y / Math.abs(_local5));
return(true);
}
function isRectangleColliding(p) {
p.getCardXProjection();
var _local4 = testIntervals(p.bmin, p.bmax, minX, maxX);
if (_local4 == 0) {
return(false);
}
p.getCardYProjection();
var _local3 = testIntervals(p.bmin, p.bmax, minY, maxY);
if (_local3 == 0) {
return(false);
}
p.setXYMTD(_local4, _local3);
normal.setTo(p.mtd.x / Math.abs(_local4), p.mtd.y / Math.abs(_local3));
return(true);
}
function sign(val) {
if (val < 0) {
return(-1);
}
if (val > 0) {
return(1);
}
}
}
Symbol 750 MovieClip [__Packages.pinbal.Door] Frame 0
class pinbal.Door extends MovieClip
{
var _parent, ballPosObj, gotoAndPlay, _name;
function Door () {
super();
reset();
_parent.doors.push(this);
Global.addGameRun(this, "run");
}
function onClose() {
do {
var door = _parent.doors[random(_parent.doors.length)];
} while (door == this);
ballPosObj.putDown();
door.open();
}
function open() {
ballPosObj.onPickUp = null;
gotoAndPlay("open");
var _local2 = new math.Vector();
Common.localToLocal(_local2, this, Global.game);
Global.game.ball.setPos(_local2.x, _local2.y);
ballPosObj.__set__ball(Global.game.ball);
}
function onOpen() {
ballPosObj.putDown();
}
function reset() {
ballPosObj._x = 0;
ballPosObj._y = 0;
if (_name == "door0") {
ballPosObj.onPickUp = function () {
Global.game.addScore(200);
this.ballPosObj.onPickUp = null;
this._parent.getBall();
return(true);
};
}
}
function getBall() {
_parent.arrow.finishOneTime();
gotoAndPlay(2);
}
}
Symbol 751 MovieClip [__Packages.pinbal.DoorSystem] Frame 0
class pinbal.DoorSystem extends MovieClip
{
var doors;
function DoorSystem () {
super();
doors = new Array();
}
}
Symbol 752 MovieClip [__Packages.pinbal.Helicopter] Frame 0
class pinbal.Helicopter extends MovieClip
{
var heli;
function Helicopter () {
super();
}
function putMan() {
var _local2 = new math.Vector(0, 100);
Common.localToLocal(_local2, heli, Global.game);
Global.game.addEffect("pinbal.HitMc\u4F1E\u5175", {_x:_local2.x, _y:_local2.y});
}
}
Symbol 753 MovieClip [__Packages.FWG.BtnMenu] Frame 0
class FWG.BtnMenu extends FWG.Btn
{
var __set__label;
function BtnMenu () {
super();
__set__label("Menu");
}
}
Symbol 754 MovieClip [__Packages.FWG.BtnM] Frame 0
class FWG.BtnM extends FWG.Btn
{
function BtnM () {
super();
}
}
Symbol 755 MovieClip [__Packages.FWG.BtnS] Frame 0
class FWG.BtnS extends FWG.Btn
{
function BtnS () {
super();
}
}
Symbol 756 MovieClip [__Packages.FWG._3Btn] Frame 0
class FWG._3Btn extends MovieClip
{
var btnQ, btnM, btnS;
function _3Btn () {
super();
btnQ._rollOver = function () {
ui.Alt.show("Quality");
};
btnQ._press = function () {
Global.main.showQualitySetting();
ui.Alt.hide();
};
btnQ._rollOut = function () {
ui.Alt.hide();
};
btnM._rollOver = function () {
if (Global.main.__get__musicOn()) {
ui.Alt.show("Music Off");
} else {
ui.Alt.show("Music On");
}
};
btnM._press = function () {
if (Global.main.__get__musicOn()) {
ui.Alt.show("Music On");
Global.main.__set__musicOn(false);
} else {
ui.Alt.show("Music Off");
Global.main.__set__musicOn(true);
}
this.redCircle._visible = !Global.main.__get__musicOn();
ui.Alt.hideDelay(2000);
};
btnM._rollOut = function () {
ui.Alt.hide();
};
if (Global.main.__get__musicOn()) {
btnM.redCircle._visible = false;
} else {
btnM.redCircle._visible = true;
}
btnS._rollOver = function () {
if (Global.main.__get__soundOn()) {
ui.Alt.show("Sound Off");
} else {
ui.Alt.show("Sound On");
}
};
btnS._press = function () {
if (Global.main.__get__soundOn()) {
ui.Alt.show("Sound On");
Global.main.__set__soundOn(false);
} else {
ui.Alt.show("Sound Off");
Global.main.__set__soundOn(true);
}
this.redCircle._visible = !Global.main.__get__soundOn();
ui.Alt.hideDelay(2000);
};
btnS._rollOut = function () {
ui.Alt.hide();
};
if (Global.main.__get__soundOn()) {
btnS.redCircle._visible = false;
} else {
btnS.redCircle._visible = true;
}
}
}
Symbol 757 MovieClip [__Packages.FWG.PageGame] Frame 0
class FWG.PageGame extends MovieClip
{
function PageGame () {
super();
}
}
Symbol 758 MovieClip [__Packages.FWG.BtnNs] Frame 0
class FWG.BtnNs extends FWG.Btn
{
var __set__label;
function BtnNs () {
super();
__set__label("Next Stage");
}
}
Symbol 759 MovieClip [__Packages.FWG.PageStageClear] Frame 0
class FWG.PageStageClear extends MovieClip
{
var scoreTxt;
function PageStageClear () {
super();
scoreTxt.text = Global.main.score;
}
}
Symbol 760 MovieClip [__Packages.FWG.BtnPa] Frame 0
class FWG.BtnPa extends FWG.Btn
{
var __set__label;
function BtnPa () {
super();
__set__label("Play Again");
}
}
Symbol 761 MovieClip [__Packages.FWG.PageGameOver] Frame 0
class FWG.PageGameOver extends effect.AlphaFadeSp
{
var scoreTxt, gotoAndStop;
function PageGameOver () {
super();
scoreTxt.text = Global.main.score;
if (Global.main.isWin) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
}
Symbol 762 MovieClip [__Packages.effect.ScorePopUp] Frame 0
class effect.ScorePopUp extends MovieClip
{
var score, body;
function ScorePopUp () {
super();
if (score < 100) {
body.txt.text = score;
} else if (score <= 500) {
body.txt.text = score + "!";
Common.setRGB(this, 6749952);
} else {
body.txt.text = score + "!!!";
Common.setRGB(this, 16737792);
}
}
}
Symbol 763 MovieClip [__Packages.effect.SimpleFade] Frame 0
class effect.SimpleFade extends effect.FadeEffect
{
var gotoAndPlay, gotoAndStop;
function SimpleFade () {
super();
}
function fadeShow() {
gotoAndPlay("fadeShow");
}
function fadeHide() {
gotoAndPlay("fadeHide");
}
function show() {
gotoAndStop("show");
}
function hide() {
gotoAndStop("hide");
}
}
Symbol 764 MovieClip [__Packages.pinbal.Chars] Frame 0
class pinbal.Chars extends MovieClip
{
var char1, char2, char3, char4, char5, char6, char7;
function Chars () {
super();
char1.gameName = "puzzle-freak";
char2.gameName = "pootris";
char3.gameName = "connect-it";
char4.gameName = "penguin";
char5.gameName = "mental";
char6.gameName = "island";
char7.gameName = "super-m";
showChars(Global.main.__get__stageNum());
}
function showChars(total) {
if (isNaN(total)) {
total = Global.main.totalStage;
}
var _local3 = 1;
while (_local3 <= Global.main.totalStage) {
var _local2 = this["char" + _local3];
_local2.onRollOver = function () {
ui.Alt.show(this.gameName);
};
_local2.onRollOut = function () {
ui.Alt.hide();
};
_local2.onPress = function () {
ui.Alt.hide();
this.getURL(("http://www.freeworldgroup.com/games6/gameindex/" + this.gameName) + ".htm", "_blank");
};
if (_local3 <= total) {
_local2.gotoAndStop(1);
_local2.enabled = true;
} else {
_local2.gotoAndStop(2);
_local2.enabled = false;
}
_local3++;
}
}
}
Symbol 9 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);
}
this._visible = false;
return(undefined);
Symbol 33 MovieClip Frame 1
_x = (Stage.width / 2);
_y = (Stage.height / 2);
_root.stop();
onPress = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
Symbol 33 MovieClip Frame 146
stop();
_root.play();
Symbol 68 MovieClip [pinbal.Chars] Frame 1
#initclip 224
Object.registerClass("pinbal.Chars", pinbal.Chars);
#endinitclip
Symbol 74 MovieClip [地球转_clipMov] Frame 1
#initclip 108
Object.registerClass("\u5730\u7403\u8F6C_clipMov", effect.ClipMov);
#endinitclip
Symbol 90 MovieClip [FWG.BtnPg2] Frame 1
#initclip 109
Object.registerClass("FWG.BtnPg2", FWG.Btn);
#endinitclip
Symbol 95 MovieClip [FWG.Logo] Frame 1
#initclip 110
Object.registerClass("FWG.Logo", FWG.Logo);
#endinitclip
Instance of Symbol 94 MovieClip in Symbol 95 MovieClip [FWG.Logo] Frame 1
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 99 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 100 MovieClip [FWG.BtnCopyright] Frame 1
#initclip 111
Object.registerClass("FWG.BtnCopyright", FWG.BtnCopyright);
#endinitclip
Symbol 105 MovieClip [FWG.BtnCredits] Frame 1
#initclip 112
Object.registerClass("FWG.BtnCredits", FWG.BtnCredits);
#endinitclip
Symbol 107 MovieClip [FWG.HitRec] Frame 1
#initclip 113
Object.registerClass("FWG.HitRec", FWG.HitRec);
#endinitclip
Symbol 113 MovieClip [FWG.BtnBack] Frame 1
#initclip 114
Object.registerClass("FWG.BtnBack", FWG.Btn);
#endinitclip
Symbol 117 MovieClip [FWG.MusicCredits] Frame 1
#initclip 115
Object.registerClass("FWG.MusicCredits", FWG.MusicCredits);
#endinitclip
Symbol 119 MovieClip [FWG.BtnMog] Frame 1
#initclip 116
Object.registerClass("FWG.BtnMog", FWG.BtnMog);
#endinitclip
Symbol 121 MovieClip [FWG.BtnDg] Frame 1
#initclip 117
Object.registerClass("FWG.BtnDg", FWG.BtnDg);
#endinitclip
Symbol 123 MovieClip [FWG.BtnAgtys] Frame 1
#initclip 118
Object.registerClass("FWG.BtnAgtys", FWG.BtnAgtys);
#endinitclip
Symbol 125 MovieClip [FWG.BtnVh] Frame 1
#initclip 119
Object.registerClass("FWG.BtnVh", FWG.BtnVh);
#endinitclip
Symbol 127 MovieClip [FWG.BtnPg] Frame 1
#initclip 120
Object.registerClass("FWG.BtnPg", FWG.BtnPg);
#endinitclip
Symbol 129 MovieClip [FWG.BtnInstructions] Frame 1
#initclip 121
Object.registerClass("FWG.BtnInstructions", FWG.BtnInstructions);
#endinitclip
Symbol 130 MovieClip [FWG.PageMenu] Frame 1
#initclip 122
Object.registerClass("FWG.PageMenu", FWG.PageMenu);
#endinitclip
stop();
chars.showChars();
if (Global.gameInterface.notFirstPlay) {
gotoAndStop (17);
} else {
Global.gameInterface.notFirstPlay = true;
btnPg._press = function () {
play();
};
}
Symbol 130 MovieClip [FWG.PageMenu] Frame 17
stop();
Symbol 152 MovieClip [FWG.BtnLevel] Frame 1
#initclip 123
Object.registerClass("FWG.BtnLevel", FWG.BtnLevel);
#endinitclip
Symbol 153 MovieClip [FWG.StageSelecter] Frame 1
#initclip 124
Object.registerClass("FWG.StageSelecter", FWG.StageSelecter);
#endinitclip
init();
Symbol 154 MovieClip [FWG.PageOptions] Frame 1
#initclip 125
Object.registerClass("FWG.PageOptions", FWG.PageOptions);
#endinitclip
Symbol 161 MovieClip [FWG.BtnQ0] Frame 1
#initclip 126
Object.registerClass("FWG.BtnQ0", FWG.BtnQ0);
#endinitclip
Symbol 164 MovieClip [FWG.BtnQ1] Frame 1
#initclip 127
Object.registerClass("FWG.BtnQ1", FWG.BtnQ1);
#endinitclip
Symbol 167 MovieClip [FWG.BtnQ2] Frame 1
#initclip 128
Object.registerClass("FWG.BtnQ2", FWG.BtnQ2);
#endinitclip
Symbol 170 MovieClip [FWG.BtnQ3] Frame 1
#initclip 129
Object.registerClass("FWG.BtnQ3", FWG.BtnQ3);
#endinitclip
Symbol 171 MovieClip [FWG.QualitySetting2] Frame 1
#initclip 130
Object.registerClass("FWG.QualitySetting2", FWG.QualitySetting);
#endinitclip
Symbol 173 MovieClip [FWG.BtnOK] Frame 1
#initclip 131
Object.registerClass("FWG.BtnOK", FWG.Btn);
#endinitclip
Symbol 174 MovieClip [FWG.Btn] Frame 1
#initclip 132
Object.registerClass("FWG.Btn", FWG.Btn);
#endinitclip
Symbol 178 MovieClip [FWG.PageInst] Frame 1
#initclip 133
Object.registerClass("FWG.PageInst", FWG.PageInst);
#endinitclip
btnOk._press = function () {
Global.main.gotoOptions();
};
qs.fadeShow();
yes_no_m.gotoAndStop((Global.main.__get__musicOn() ? 1 : 2));
yes_no_s.gotoAndStop((Global.main.__get__soundOn() ? 1 : 2));
btnM._press = function () {
if (yes_no_m._currentframe == 1) {
yes_no_m.gotoAndStop(2);
Global.main.__set__musicOn(false);
} else {
yes_no_m.gotoAndStop(1);
Global.main.__set__musicOn(true);
}
};
btnS._press = function () {
if (yes_no_s._currentframe == 1) {
yes_no_s.gotoAndStop(2);
Global.main.__set__soundOn(false);
} else {
yes_no_s.gotoAndStop(1);
Global.main.__set__soundOn(true);
}
};
Symbol 255 MovieClip [pinbal.BallPosObj] Frame 1
#initclip 134
Object.registerClass("pinbal.BallPosObj", pinbal.BallPosObj);
#endinitclip
Symbol 257 MovieClip [pinbal.Arrow] Frame 1
#initclip 135
Object.registerClass("pinbal.Arrow", pinbal.Arrow);
#endinitclip
Symbol 257 MovieClip [pinbal.Arrow] Frame 14
gotoAndPlay (3);
Symbol 260 MovieClip [org.mc.LineMc] Frame 1
#initclip 136
Object.registerClass("org.mc.LineMc", org.mc.LineMc);
#endinitclip
Symbol 268 MovieClip Frame 1
stop();
ballPosObj.score = 500;
ballPosObj.defaultInit(-135, -45);
Symbol 268 MovieClip Frame 2
arrow.finishOneTime();
Global.main.playSound("SndFranHead");
Symbol 268 MovieClip Frame 50
if (Global.pause) {
gotoAndPlay(this._currentframe - 1);
}
Global.main.playSound("SndFranHead2");
Symbol 268 MovieClip Frame 53
ballPosObj.putDown();
Symbol 271 MovieClip [pinbal.Light] Frame 1
#initclip 137
Object.registerClass("pinbal.Light", pinbal.Light);
#endinitclip
Symbol 272 MovieClip [pinbal.tableLights] Frame 1
#initclip 138
Object.registerClass("pinbal.tableLights", pinbal.LightSystem);
#endinitclip
Symbol 276 MovieClip [org.mc.CircleMc] Frame 1
#initclip 139
Object.registerClass("org.mc.CircleMc", org.mc.CircleMc);
#endinitclip
Symbol 279 MovieClip [pinbal.AccCircle] Frame 1
#initclip 140
Object.registerClass("pinbal.AccCircle", pinbal.AccCircle);
#endinitclip
stop();
Symbol 288 MovieClip [pinbal.HitMcScoreMachine] Frame 1
#initclip 141
Object.registerClass("pinbal.HitMcScoreMachine", pinbal.HitMc);
#endinitclip
function reset() {
gotoAndStop (1);
}
stop();
hitFlag = false;
hitAble = true;
score = 100;
Symbol 288 MovieClip [pinbal.HitMcScoreMachine] Frame 7
arrow.finishOneTime();
Global.game.scoreMachineBtnGroup.reset();
Symbol 291 MovieClip [pinbal.LightStar] Frame 1
#initclip 142
Object.registerClass("pinbal.LightStar", pinbal.Light);
#endinitclip
Symbol 292 MovieClip [pinbal.LightSystem2] Frame 1
#initclip 143
Object.registerClass("pinbal.LightSystem2", pinbal.LightSystem);
#endinitclip
Symbol 295 MovieClip [arrow_btn1] Frame 1
#initclip 144
Object.registerClass("arrow_btn1", pinbal.Light);
#endinitclip
Symbol 298 MovieClip [arrow_btn2] Frame 1
#initclip 145
Object.registerClass("arrow_btn2", pinbal.Light);
#endinitclip
Symbol 301 MovieClip [arrow_btn3] Frame 1
#initclip 146
Object.registerClass("arrow_btn3", pinbal.Light);
#endinitclip
Symbol 304 MovieClip [arrow_btn4] Frame 1
#initclip 147
Object.registerClass("arrow_btn4", pinbal.Light);
#endinitclip
Symbol 307 MovieClip [arrow_btn5] Frame 1
#initclip 148
Object.registerClass("arrow_btn5", pinbal.Light);
#endinitclip
Symbol 308 MovieClip [pinbal.LightSystem3] Frame 1
#initclip 149
Object.registerClass("pinbal.LightSystem3", pinbal.LightSystem);
#endinitclip
Symbol 313 MovieClip [pinbal.HitMcRotateCard] Frame 1
#initclip 150
Object.registerClass("pinbal.HitMcRotateCard", pinbal.HitMc);
#endinitclip
stop();
hitFlag = false;
hitAble = true;
sndName = "SndRotateCard";
Symbol 314 MovieClip [pinbal.LightSystem4] Frame 1
#initclip 151
Object.registerClass("pinbal.LightSystem4", pinbal.LightSystem);
#endinitclip
Symbol 315 MovieClip [pinbal.Ball] Frame 1
#initclip 152
Object.registerClass("pinbal.Ball", pinbal.Ball);
#endinitclip
Symbol 318 MovieClip [pinbal.AccLine] Frame 1
#initclip 153
Object.registerClass("pinbal.AccLine", pinbal.Acc);
#endinitclip
stop();
sndName = "SndJump";
Symbol 323 MovieClip [pinbal.HitBtn] Frame 1
#initclip 154
Object.registerClass("pinbal.HitBtn", pinbal.HitBtn);
#endinitclip
stop();
var delayTime = 10;
init();
Symbol 323 MovieClip [pinbal.HitBtn] Frame 5
if ((--delayTime) > 0) {
gotoAndPlay (2);
} else {
stop();
}
Symbol 324 MovieClip [pinbal.BtnGroup1] Frame 1
#initclip 155
Object.registerClass("pinbal.BtnGroup1", pinbal.BtnGroup);
#endinitclip
init();
Symbol 325 MovieClip [pinbal.BtnGroup3] Frame 1
#initclip 156
Object.registerClass("pinbal.BtnGroup3", pinbal.BtnGroup);
#endinitclip
init();
Symbol 326 MovieClip [pinbal.BtnGroup2] Frame 1
#initclip 157
Object.registerClass("pinbal.BtnGroup2", pinbal.BtnGroup);
#endinitclip
init();
Symbol 329 MovieClip [pinbal.Dot_shooter_board] Frame 1
#initclip 158
Object.registerClass("pinbal.Dot_shooter_board", pinbal.Dot);
#endinitclip
Symbol 331 MovieClip [pinbal.Dot] Frame 1
#initclip 159
Object.registerClass("pinbal.Dot", pinbal.Dot);
#endinitclip
Symbol 333 MovieClip [pinbal.Helix] Frame 1
#initclip 160
Object.registerClass("pinbal.Helix", pinbal.Helix);
#endinitclip
Symbol 334 MovieClip [pinbal.Shooter] Frame 1
#initclip 161
Object.registerClass("pinbal.Shooter", pinbal.Shooter);
#endinitclip
init();
Symbol 337 MovieClip Frame 1
stop();
_parent.accValue = 16;
Symbol 337 MovieClip Frame 2
_parent.accValue = 30;
Symbol 338 MovieClip [pinbal.Board] Frame 1
#initclip 162
Object.registerClass("pinbal.Board", pinbal.Board);
#endinitclip
stop();
Symbol 339 MovieClip [wall1] Frame 1
#initclip 163
Object.registerClass("wall1", org.mc.PolyLineMc);
#endinitclip
Symbol 341 MovieClip [org.mc.RectMc] Frame 1
#initclip 164
Object.registerClass("org.mc.RectMc", org.mc.RectMc);
#endinitclip
Symbol 342 MovieClip [wall2] Frame 1
#initclip 165
Object.registerClass("wall2", org.mc.PolyLineMc);
#endinitclip
Symbol 343 MovieClip [wall3] Frame 1
#initclip 166
Object.registerClass("wall3", org.mc.PolyLineMc);
#endinitclip
Symbol 345 MovieClip [effect.Typewriter] Frame 1
#initclip 167
Object.registerClass("effect.Typewriter", effect.Typewriter);
#endinitclip
Symbol 350 MovieClip [ui.NumClock] Frame 1
#initclip 168
Object.registerClass("ui.NumClock", ui.NumClock);
#endinitclip
Symbol 356 MovieClip [tranMachine_磁铁] Frame 1
#initclip 169
Object.registerClass("tranMachine_\u78C1\u94C1", pinbal.Dot);
#endinitclip
Symbol 357 MovieClip [pinbal.Transporter] Frame 1
#initclip 170
Object.registerClass("pinbal.Transporter", pinbal.Transporter);
#endinitclip
stop();
Symbol 357 MovieClip [pinbal.Transporter] Frame 2
init();
Symbol 357 MovieClip [pinbal.Transporter] Frame 60
stop();
onMov();
Symbol 357 MovieClip [pinbal.Transporter] Frame 120
onMovBack();
Symbol 368 MovieClip [pinbal.Acc大便] Frame 1
#initclip 171
Object.registerClass("pinbal.Acc\u5927\u4FBF", pinbal.AccCircle);
#endinitclip
stop();
Symbol 371 MovieClip Frame 1
stop();
ballPosObj.defaultInit();
Symbol 371 MovieClip Frame 2
arrow.finishOneTime();
Symbol 371 MovieClip Frame 30
ballPosObj.putDown();
Symbol 377 MovieClip [pinbal.Acc狮子] Frame 1
#initclip 172
Object.registerClass("pinbal.Acc\u72EE\u5B50", pinbal.AccCircle);
#endinitclip
stop();
Symbol 380 MovieClip [pinbal.Acc猪] Frame 1
#initclip 173
Object.registerClass("pinbal.Acc\u732A", pinbal.AccCircle);
#endinitclip
stop();
Symbol 383 MovieClip [pinbal.Acc熊猫] Frame 1
#initclip 174
Object.registerClass("pinbal.Acc\u718A\u732B", pinbal.AccCircle);
#endinitclip
stop();
Symbol 389 MovieClip [pinbal.HitMc孔雀] Frame 1
#initclip 175
Object.registerClass("pinbal.HitMc\u5B54\u96C0", pinbal.HitMc);
#endinitclip
stop();
hitFlag = false;
hitAble = true;
Symbol 389 MovieClip [pinbal.HitMc孔雀] Frame 2
arrow.finishOneTime();
Symbol 426 MovieClip [pinbal.HitObjBrick] Frame 1
#initclip 176
Object.registerClass("pinbal.HitObjBrick", pinbal.HitObj);
#endinitclip
stop();
score = 50;
m.gotoAndStop(random(m._totalframes) + 1);
Symbol 426 MovieClip [pinbal.HitObjBrick] Frame 2
_parent.arrow.finishOneTime();
Symbol 426 MovieClip [pinbal.HitObjBrick] Frame 29
Common.removeFixMc(this);
Symbol 427 MovieClip Frame 1
Symbol 432 MovieClip [pinbal.Acc气球1] Frame 1
#initclip 177
Object.registerClass("pinbal.Acc\u6C14\u74031", pinbal.AccCircle);
#endinitclip
stop();
Symbol 434 MovieClip [pinbal.Acc气球2] Frame 1
#initclip 178
Object.registerClass("pinbal.Acc\u6C14\u74032", pinbal.AccCircle);
#endinitclip
stop();
Symbol 436 MovieClip [pinbal.Acc气球3] Frame 1
#initclip 179
Object.registerClass("pinbal.Acc\u6C14\u74033", pinbal.AccCircle);
#endinitclip
stop();
Symbol 444 MovieClip [pinbal.LightCloud] Frame 1
#initclip 180
Object.registerClass("pinbal.LightCloud", pinbal.Light);
#endinitclip
Symbol 445 MovieClip [pinbal.LightSystem5] Frame 1
#initclip 181
Object.registerClass("pinbal.LightSystem5", pinbal.LightSystem);
#endinitclip
Symbol 451 MovieClip [pinbal.AccMentalFace1] Frame 1
#initclip 182
Object.registerClass("pinbal.AccMentalFace1", pinbal.AccCircle);
#endinitclip
stop();
Symbol 454 MovieClip [pinbal.AccMentalFace2] Frame 1
#initclip 183
Object.registerClass("pinbal.AccMentalFace2", pinbal.AccCircle);
#endinitclip
stop();
Symbol 457 MovieClip [pinbal.AccMentalFace3] Frame 1
#initclip 184
Object.registerClass("pinbal.AccMentalFace3", pinbal.AccCircle);
#endinitclip
stop();
Symbol 476 MovieClip [pinbal.Door] Frame 1
#initclip 185
Object.registerClass("pinbal.Door", pinbal.Door);
#endinitclip
stop();
reset();
Symbol 476 MovieClip [pinbal.Door] Frame 30
onClose();
gotoAndStop (1);
Symbol 476 MovieClip [pinbal.Door] Frame 43
onOpen();
Symbol 478 MovieClip [pinbal.DoorSystem] Frame 1
#initclip 186
Object.registerClass("pinbal.DoorSystem", pinbal.DoorSystem);
#endinitclip
Symbol 505 MovieClip [pinbal.Acc日] Frame 1
#initclip 187
Object.registerClass("pinbal.Acc\u65E5", pinbal.AccCircle);
#endinitclip
stop();
Symbol 522 MovieClip [pinbal.HitMcHelicopter] Frame 1
#initclip 188
Object.registerClass("pinbal.HitMcHelicopter", pinbal.HitMc);
#endinitclip
stop();
hitFlag = false;
hitAble = true;
Symbol 522 MovieClip [pinbal.HitMcHelicopter] Frame 2
Global.game.addScore(1000);
arrow.finishOneTime();
Symbol 522 MovieClip [pinbal.HitMcHelicopter] Frame 16
Common.removeFixMc(this._parent);
Symbol 523 MovieClip [pinbal.Helicopter] Frame 1
#initclip 189
Object.registerClass("pinbal.Helicopter", pinbal.Helicopter);
#endinitclip
stop();
Global.addGameDelayRun(this, "play", random(120) + 120);
Symbol 523 MovieClip [pinbal.Helicopter] Frame 95
putMan();
Symbol 523 MovieClip [pinbal.Helicopter] Frame 140
putMan();
Symbol 523 MovieClip [pinbal.Helicopter] Frame 175
putMan();
Symbol 523 MovieClip [pinbal.Helicopter] Frame 210
putMan();
Symbol 526 MovieClip Frame 1
stop();
ballPosObj.defaultInit();
trace(ballPosObj);
Symbol 526 MovieClip Frame 17
ballPosObj.putDown(-15, -25);
Symbol 534 MovieClip [pinbal.Acc金币] Frame 1
#initclip 190
Object.registerClass("pinbal.Acc\u91D1\u5E01", pinbal.AccCircle);
#endinitclip
stop();
Symbol 539 MovieClip [pinbal.Acc银币] Frame 1
#initclip 191
Object.registerClass("pinbal.Acc\u94F6\u5E01", pinbal.AccCircle);
#endinitclip
stop();
Symbol 544 MovieClip [pinbal.HitMcWater] Frame 1
#initclip 192
Object.registerClass("pinbal.HitMcWater", pinbal.HitMc);
#endinitclip
stop();
hitFlag = false;
hitAble = true;
score = 100;
Symbol 544 MovieClip [pinbal.HitMcWater] Frame 2
arrow.finishOneTime();
Symbol 547 MovieClip [pinbal.AccBalloon] Frame 1
#initclip 193
Object.registerClass("pinbal.AccBalloon", pinbal.Acc);
#endinitclip
accValue = 40;
score = 100;
sndName = "SndAccCircle";
nextFrame();
totalTime = 5;
Symbol 547 MovieClip [pinbal.AccBalloon] Frame 5
if ((--totalTime) > 0) {
gotoAndStop (2);
}
Symbol 547 MovieClip [pinbal.AccBalloon] Frame 6
arrow.finishOneTime();
Symbol 547 MovieClip [pinbal.AccBalloon] Frame 21
stop();
Common.removeFixMc(this);
Symbol 548 MovieClip [pinbal.Game] Frame 1
#initclip 194
Object.registerClass("pinbal.Game", pinbal.Game);
#endinitclip
Symbol 548 MovieClip [pinbal.Game] Frame 2
init();
Symbol 548 MovieClip [pinbal.Game] Frame 3
init();
Symbol 548 MovieClip [pinbal.Game] Frame 4
init();
Symbol 548 MovieClip [pinbal.Game] Frame 5
init();
Symbol 548 MovieClip [pinbal.Game] Frame 6
init();
Symbol 548 MovieClip [pinbal.Game] Frame 7
init();
Symbol 548 MovieClip [pinbal.Game] Frame 8
init();
Symbol 550 MovieClip Frame 1
if (Global.gameInterface.notFirstPlay2) {
gotoAndStop (2);
} else {
Global.pause = true;
stop();
btnOk._press = function () {
Global.pause = false;
this._parent.nextFrame();
};
Global.gameInterface.notFirstPlay2 = true;
}
Symbol 556 MovieClip [FWG.BtnMenu2] Frame 1
#initclip 195
Object.registerClass("FWG.BtnMenu2", FWG.BtnMenu);
#endinitclip
Symbol 559 MovieClip [FWG.BtnQ] Frame 1
#initclip 196
Object.registerClass("FWG.BtnQ", FWG.Btn);
#endinitclip
Symbol 564 MovieClip [FWG.BtnM] Frame 1
#initclip 197
Object.registerClass("FWG.BtnM", FWG.BtnM);
#endinitclip
Symbol 569 MovieClip [FWG.BtnS] Frame 1
#initclip 198
Object.registerClass("FWG.BtnS", FWG.BtnS);
#endinitclip
Symbol 570 MovieClip [FWG._3Btn] Frame 1
#initclip 199
Object.registerClass("FWG._3Btn", FWG._3Btn);
#endinitclip
Symbol 573 MovieClip Frame 1
stop();
Symbol 573 MovieClip Frame 40
stop();
Global.game.lose();
Symbol 574 MovieClip [FWG.GamePad] Frame 1
#initclip 200
Object.registerClass("FWG.GamePad", FWG.GamePad);
#endinitclip
init();
Symbol 575 MovieClip [FWG.QualitySetting] Frame 1
#initclip 201
Object.registerClass("FWG.QualitySetting", FWG.QualitySetting);
#endinitclip
Symbol 577 MovieClip [FWG.BtnYes] Frame 1
#initclip 202
Object.registerClass("FWG.BtnYes", FWG.Btn);
#endinitclip
Symbol 579 MovieClip [FWG.BtnNo] Frame 1
#initclip 203
Object.registerClass("FWG.BtnNo", FWG.Btn);
#endinitclip
Symbol 580 MovieClip [ui.Alert] Frame 1
#initclip 204
Object.registerClass("ui.Alert", ui.Alert);
#endinitclip
Symbol 581 MovieClip [FWG.PageGame] Frame 1
#initclip 205
Object.registerClass("FWG.PageGame", FWG.PageGame);
#endinitclip
Symbol 591 MovieClip [FWG.BtnSubmit] Frame 1
#initclip 206
Object.registerClass("FWG.BtnSubmit", FWG.Btn);
#endinitclip
Symbol 595 MovieClip [FWG.BtnX] Frame 1
#initclip 207
Object.registerClass("FWG.BtnX", FWG.Btn);
#endinitclip
Symbol 600 MovieClip [FWG.BtnVh3] Frame 1
#initclip 208
Object.registerClass("FWG.BtnVh3", FWG.BtnVh);
#endinitclip
Symbol 601 MovieClip [FWG.SubmitScore] Frame 1
#initclip 209
Object.registerClass("FWG.SubmitScore", FWG.SubmitScore);
#endinitclip
Symbol 603 MovieClip [FWG.BtnNs] Frame 1
#initclip 210
Object.registerClass("FWG.BtnNs", FWG.BtnNs);
#endinitclip
Symbol 605 MovieClip [FWG.BtnSs] Frame 1
#initclip 211
Object.registerClass("FWG.BtnSs", FWG.BtnSs);
#endinitclip
Symbol 607 MovieClip [FWG.BtnMenu3] Frame 1
#initclip 212
Object.registerClass("FWG.BtnMenu3", FWG.BtnMenu);
#endinitclip
Symbol 608 MovieClip [FWG.PageStageClear] Frame 1
#initclip 213
Object.registerClass("FWG.PageStageClear", FWG.PageStageClear);
#endinitclip
Symbol 608 MovieClip [FWG.PageStageClear] Frame 12
stop();
Symbol 610 MovieClip [FWG.BtnPa] Frame 1
#initclip 214
Object.registerClass("FWG.BtnPa", FWG.BtnPa);
#endinitclip
Symbol 612 MovieClip [FWG.BtnSs2] Frame 1
#initclip 215
Object.registerClass("FWG.BtnSs2", FWG.BtnSs);
#endinitclip
Symbol 613 MovieClip [FWG.BtnVh2] Frame 1
#initclip 216
Object.registerClass("FWG.BtnVh2", FWG.BtnVh);
#endinitclip
Symbol 614 MovieClip Frame 9
stop();
Symbol 618 MovieClip [FWG.PageGameOver] Frame 1
#initclip 217
Object.registerClass("FWG.PageGameOver", FWG.PageGameOver);
#endinitclip
Symbol 621 MovieClip [effect.ScorePopUp] Frame 1
#initclip 218
Object.registerClass("effect.ScorePopUp", effect.ScorePopUp);
#endinitclip
Symbol 621 MovieClip [effect.ScorePopUp] Frame 15
stop();
this.removeMovieClip();
Symbol 627 MovieClip [pinbal.HitMc伞兵] Frame 1
#initclip 219
Object.registerClass("pinbal.HitMc\u4F1E\u5175", pinbal.HitMc);
#endinitclip
function fall() {
if ((++this._y) > 1000) {
this.removeMovieClip();
}
}
stop();
hitFlag = false;
hitAble = true;
Global.addGameRun(this, "fall");
Symbol 627 MovieClip [pinbal.HitMc伞兵] Frame 2
Global.delGameRun(this, "fall");
Symbol 627 MovieClip [pinbal.HitMc伞兵] Frame 35
this.removeMovieClip();
Symbol 630 MovieClip [hitEffect_mc] Frame 6
this.removeMovieClip();
Symbol 633 MovieClip [extraBall_mc] Frame 1
if (total == undefined) {
total = 7;
} else if ((--total) <= 0) {
this.removeMovieClip();
}
Symbol 650 MovieClip Frame 1
stop();
Symbol 651 MovieClip [FWG.MainContainer] Frame 1
#initclip 220
Object.registerClass("FWG.MainContainer", FWG.MainContainer);
#endinitclip
Symbol 655 MovieClip [ui.Alt] Frame 1
#initclip 221
Object.registerClass("ui.Alt", ui.Alt);
#endinitclip
Symbol 656 MovieClip [effect.SimpleFade] Frame 1
#initclip 222
Object.registerClass("effect.SimpleFade", effect.SimpleFade);
#endinitclip
stop();
Symbol 656 MovieClip [effect.SimpleFade] Frame 10
onHide();
Symbol 656 MovieClip [effect.SimpleFade] Frame 20
onShow();
Symbol 657 MovieClip [FWG.Main] Frame 1
#initclip 223
Object.registerClass("FWG.Main", FWG.Main);
#endinitclip