Frame 1
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
_root.menu = my_cm;
fscommand ("showmenu", "fasle");
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);
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 403 MovieClip [__Packages.Global] Frame 0
class Global
{
static var mainPause, pause, testBar, main, game;
function Global () {
}
static function runAll() {
if (mainPause) {
updateTestBar();
return(undefined);
}
var _local3 = runArr.length;
var _local2 = 0;
while (_local2 < _local3) {
var _local1 = runArr[_local2];
if (_local1.obj[_local1.runF] == undefined) {
runArr.splice(_local2, 1);
_local2--;
_local3--;
} else if (pause && (_local1.pauseAble)) {
} else if ((++_local1.intervalNum) >= _local1.interval) {
_local1.intervalNum = 0;
_local1.obj[_local1.runF](--_local1.times);
if (_local1.times <= 0) {
runArr.splice(_local2, 1);
_local2--;
_local3--;
}
}
_local2++;
}
updateTestBar();
}
static function addRun(obj, runF, interval, times, notPauseAble) {
delRun(obj, runF);
if (interval > 0) {
} else {
interval = 1;
}
if (times > 0) {
} else {
times = Infinity;
}
var _local1;
if (notPauseAble) {
_local1 = false;
} else {
_local1 = true;
}
runArr.push({obj:obj, runF:runF, intervalNum:0, interval:interval, times:times, pauseAble:_local1});
}
static function delRun(obj, runF) {
var _local3 = runArr.length;
var _local1 = 0;
while (_local1 < _local3) {
var _local2 = runArr[_local1];
if ((obj == _local2.obj) && (runF == _local2.runF)) {
runArr[_local1] = null;
return(true);
}
_local1++;
}
return(false);
}
static function updateTestBar() {
if (testBar._name == undefined) {
return(undefined);
}
var _local2 = "";
_local2 = _local2 + (("main=" + main) + newline);
_local2 = _local2 + (("game=" + game) + newline);
_local2 = _local2 + (("pause=" + pause) + newline);
_local2 = _local2 + (("runArr.length=" + runArr.length) + newline);
var _local1 = 0;
while (_local1 < runArr.length) {
_local2 = _local2 + (((runArr[_local1].obj + ",") + runArr[_local1].runF) + newline);
_local1++;
}
testBar.showMsg(_local2);
}
static function setMainEnabled(value) {
if (value) {
delete main.onPress;
} else {
main.onPress = function () {
};
main.enabled = false;
}
}
static var gameInterface = new Object();
static var runArr = new Array();
var initObj = (_root.onEnterFrame = function () {
runAll();
});
}
Symbol 404 MovieClip [__Packages.FWG.BasicMain] Frame 0
class FWG.BasicMain extends MovieClip
{
var _parent, gameName, stageWid, stageHei, totalStage, sndBg, playerInfo, keySetting, isFirstPlay, __currentScore, gamePad, __score, __stageNum, pageId, fadeEffect, stageSave, qualitySetting, snd_mc, __musicOn, __soundOn, isWin, mainContainer;
function BasicMain (_gameName, _stageWid, _stageHei, _totalStage, hasKeySetting) {
super();
Global.main = this;
_parent.stop();
gameName = _gameName;
stageWid = _stageWid;
stageHei = _stageHei;
totalStage = _totalStage;
currentScore = (0);
score = (0);
stageNum = (1);
sndBg = new Sound();
sndBg.attachSound("SndBg");
musicOn = (true);
soundOn = (true);
playerInfo = new FWG.PlayerInfo();
if (hasKeySetting) {
keySetting = new FWG.KeySetting();
}
isFirstPlay = true;
Global.addRun(this, "gotoMenu", 2, 1, true);
}
function instPlay() {
if (isFirstPlay) {
gotoInst();
} else {
gotoOptions();
}
}
function initBtn(btn) {
switch (btn.__get__label()) {
case "Play Game" :
case "Play" :
case "Skip" :
btn._release = function () {
Global.main.instPlay();
};
break;
case "Next Stage" :
btn._release = function () {
Global.main.nextStage();
};
break;
case "Play Again" :
btn._release = function () {
Global.main.playAgain();
};
break;
case "Instructions" :
btn._release = function () {
Global.main.gotoInst();
};
break;
case "Key Settings" :
btn._release = function () {
Global.main.gotoKeySetting();
};
break;
case "View Highscores" :
btn._release = function () {
this.getURL("http://www.freeworldgroup.com/score/index.asp?game=" + Global.main.gameName, "_blank");
};
break;
case "Download Games" :
btn._release = function () {
this.getURL("http://www.ifungames.com", "_blank");
};
break;
case "More Online Games" :
btn._release = function () {
this.getURL("http://www.freeworldgroup.com", "_blank");
};
break;
case "Add Games to Your Site" :
btn._release = function () {
this.getURL("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
};
break;
case "Copyright 2008 freeworldgroup.com" :
btn._release = function () {
this.getURL("http://www.freeworldgroup.com", "_blank");
};
break;
case "Credits" :
btn._release = function () {
Global.main.musicCredits.fadeShow();
};
break;
case "Menu" :
btn._release = function () {
ui.Alt.hide();
Global.main.gotoMenu();
};
break;
case "Submit Score" :
btn._release = function () {
if (Global.main.__get__score() <= 0) {
ui.Alt.show("Your score is 0 !");
ui.Alt.hideDelay(30);
} 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.putInPage(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.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) {
_local2 = (snd_mc[soundId] = new Sound(Common.addMcToTop(snd_mc)));
_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;
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);
gotoGame();
}
function playAgain() {
gotoOptions();
}
function isIllegalUserName(name) {
return(playerInfo.isIllegalName(name));
}
function MainContainer() {
Global.main.mainContainer = this;
}
function putInPage(mcId) {
mainContainer.page = mainContainer.attachMovie(mcId, "page", 0);
}
}
Symbol 405 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 406 MovieClip [__Packages.Common] Frame 0
class Common
{
static var tempArr;
function Common () {
}
static function getRGB(mc) {
return(new Color(mc).getRGB());
}
static function setRGB(mc, color) {
new Color(mc).setRGB(color);
}
static function setRGBOffset(mc, color, modeNum) {
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) {
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 getSum(arr) {
var _local2 = 0;
var _local3 = arr.length;
var _local1 = 0;
while (_local1 < _local3) {
_local2 = _local2 + arr[_local1];
_local1++;
}
return(_local2);
}
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 dumpArr(arr) {
var _local2 = arr.length;
var _local1 = 0;
while (_local1 < _local2) {
if (arr[_local1] == undefined) {
arr.splice(_local1, 1);
_local1--;
_local2--;
}
_local1++;
}
}
static function forEach(arr, obj, fName) {
var _local3 = arr.length;
var _local1 = 0;
while (_local1 < _local3) {
obj[fName](arr[_local1], _local1, arr);
_local1++;
}
}
static function sortOn(arr, varName) {
arr.sort(function (item1, item2) {
return(((item1[varName] < item2[varName]) ? -1 : 1));
});
}
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 _local3 = (_local7 + "[") + _local4;
var _local6 = arr.length;
var _local1 = 0;
while (_local1 < _local6) {
_local3 = _local3 + ((arrToStr(arr[_local1], depth + 1) + ",") + _local4);
_local1++;
}
if (_local4 == "") {
if (arr.length == 0) {
return("[]");
}
return(_local3.substr(0, _local3.length - 1) + "]");
}
return(((_local3.substr(0, _local3.length - 2) + newline) + _local7) + "]");
}
if (arr.constructor == String) {
return(("\"" + arr) + "\"");
}
return(arr);
}
static function reverseStr(str) {
var _local1 = str.split("");
_local1.reverse();
return(_local1.join(""));
}
static function arrIndexOf(arr, item) {
var _local2 = arr.length;
var _local1 = 0;
while (_local1 < _local2) {
if (arr[_local1] == item) {
return(_local1);
}
_local1++;
}
return(-1);
}
static function getMap(w, h, initValue) {
var _local3 = new Array(h);
var _local2 = 0;
while (_local2 < h) {
_local3[_local2] = new Array(w);
var _local1 = 0;
while (_local1 < w) {
_local3[_local2][_local1] = initValue;
_local1++;
}
_local2++;
}
return(_local3);
}
static function getRanByRate(valueArr, rateArr) {
var _local5 = Math.random() * getSum(rateArr);
var _local4 = rateArr.length;
var _local2 = 0;
var _local1 = 0;
while (_local1 < _local4) {
_local2 = _local2 + rateArr[_local1];
if (_local5 < _local2) {
return(valueArr[_local1]);
}
_local1++;
}
}
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, obj, fName, recursion) {
var _local2 = getAllChildren(mc, recursion);
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
obj[fName](_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) {
var _local1 = getAllChildren(mc, recursion);
sortOn(_local1, varName);
return(_local1);
}
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 searchMap(map, seed, obj, fName) {
var _local16 = map[0].length;
var _local15 = map.length;
var _local7 = new Array(_local15);
var _local1 = 0;
while (_local1 < _local15) {
_local7[_local1] = new Array(_local16);
_local1++;
}
var _local10;
var _local12 = seed.length;
var _local4 = 0;
while (_local4 < _local12) {
_local7[seed[_local4][1]][seed[_local4][0]] = true;
obj[fName](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]) && (obj[fName](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 addMcToTop(mc, id, initObj) {
var _local3 = mc.getNextHighestDepth();
var _local2 = mc.attachMovie(id, "mc" + _local3, _local3, initObj);
if (_local2) {
return(_local2);
}
_local2 = mc.createEmptyMovieClip("mc" + _local3, _local3);
for (var _local4 in initObj) {
_local2[_local4] = initObj[_local4];
}
return(_local2);
}
static function removeFixMc(mc) {
mc.swapDepths(mc._parent.getNextHighestDepth());
mc.removeMovieClip();
}
static function removeAll(mc) {
for (var _local2 in mc) {
if (typeof(mc[_local2]) == "movieclip") {
mc[_local2].removeMovieClip();
}
}
}
static function localToLocal(p, mc1, mc2) {
mc1.localToGlobal(p);
mc2.globalToLocal(p);
}
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 drawCircle(mc, x, y, r) {
var _local4 = 0.414213562373095 * r;
var _local5 = 0.707106781186547 * r;
mc.moveTo(x + r, y);
mc.curveTo(r + x, _local4 + y, _local5 + x, _local5 + y);
mc.curveTo(_local4 + x, r + y, x, r + y);
mc.curveTo((-_local4) + x, r + y, (-_local5) + x, _local5 + y);
mc.curveTo((-r) + x, _local4 + y, (-r) + x, y);
mc.curveTo((-r) + x, (-_local4) + y, (-_local5) + x, (-_local5) + y);
mc.curveTo((-_local4) + x, (-r) + y, x, (-r) + y);
mc.curveTo(_local4 + x, (-r) + y, _local5 + x, (-_local5) + y);
mc.curveTo(r + x, (-_local4) + y, r + x, y);
}
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 drawGrid(mc, w, h, d) {
var _local3 = 0;
while (_local3 <= w) {
mc.moveTo(_local3 * d, 0);
mc.lineTo(_local3 * d, h * d);
_local3++;
}
var _local2 = 0;
while (_local2 <= h) {
mc.moveTo(0, _local2 * d);
mc.lineTo(w * d, _local2 * d);
_local2++;
}
}
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]];
static var mulDirArr = [[-1, 0], [-1, -1], [0, -1], [1, -1], [1, 0], [1, 1], [0, 1], [-1, 1], [-1, 0]];
}
Symbol 407 MovieClip [__Packages.record.Recorder] Frame 0
class record.Recorder extends MovieClip
{
static var recorder, keyDownArr, keyDownArr2, ctrlMouseMove, mouseArrow, __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.addRun(record.Recorder, "run", 0, 0, true);
}
static function run() {
if (recorder._name == undefined) {
Global.delRun(record.Recorder, "run");
reset();
showMsg();
return(undefined);
}
if (Global.pause) {
showMsg();
return(undefined);
}
if ((mouseP.x != _root._xmouse) || (mouseP.y != _root._ymouse)) {
ctrlMouseMove(_root._xmouse, _root._ymouse);
}
var _local5 = ctrlObj["$" + frameId];
if (_local5) {
var _local6 = _local5.length;
var _local4 = 0;
while (_local4 < _local6) {
var _local2 = _local5[_local4];
switch (_local2.type) {
case MOUSEEFFECT :
var _local3 = mouseEffectArr[_local2.data];
if (action == "playing") {
mouseArrow.gotoAndStop(_local3.mouseF);
}
_local3.mc[_local3.fName]();
break;
case KEYDOWN :
keyDownArr[_local2.data] = true;
__keyDown(_local2.data);
break;
case KEYUP :
keyDownArr[_local2.data] = false;
__keyUp(_local2.data);
break;
case MOUSEDOWN :
__mouseDown(_local2.data);
break;
case MOUSEUP :
__mouseUp(_local2.data);
break;
case MOUSEMOVE :
mouseP.x = _local2.data[0];
mouseP.y = _local2.data[1];
if (action == "playing") {
mouseArrow._x = mouseP.x;
mouseArrow._y = mouseP.y;
}
__mouseMove(_local2.data);
}
_local4++;
}
}
frameId++;
if ((action == "playing") && (frameId > totalFrame)) {
frameId = totalFrame;
Global.pause = true;
onReplayFinish();
}
showMsg();
}
static function setMouseEffect(mc, fName, mc2, fName2) {
var _local4 = mouseEffectArr.length;
mouseEffectArr.push({mc:mc2, fName:fName2, mouseF:fName});
if (action == "playing") {
return(undefined);
}
switch (fName) {
case "onRollOver" :
mc.record_mouseEffect_onRollOver = _local4;
mc[fName] = function () {
record.Recorder.addCtrl(record.Recorder.MOUSEEFFECT, this.record_mouseEffect_onRollOver);
};
break;
case "onRollOut" :
mc.record_mouseEffect_onRollOut = _local4;
mc[fName] = function () {
record.Recorder.addCtrl(record.Recorder.MOUSEEFFECT, this.record_mouseEffect_onRollOut);
};
break;
case "onPress" :
mc.record_mouseEffect_onPress = _local4;
mc[fName] = function () {
record.Recorder.addCtrl(record.Recorder.MOUSEEFFECT, this.record_mouseEffect_onPress);
};
break;
case "onRelease" :
mc.record_mouseEffect_onRelease = _local4;
mc[fName] = function () {
record.Recorder.addCtrl(record.Recorder.MOUSEEFFECT, this.record_mouseEffect_onRelease);
};
break;
case "onReleaseOutside" :
mc.record_mouseEffect_onReleaseOutside = _local4;
mc[fName] = function () {
record.Recorder.addCtrl(record.Recorder.MOUSEEFFECT, this.record_mouseEffect_onReleaseOutside);
};
}
}
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 (action == "playing") {
return;
}
if (__mouseDown) {
recorder.onMouseDown = function () {
record.Recorder.addCtrl(record.Recorder.MOUSEDOWN, [_root._xmouse, _root._ymouse]);
};
} else {
recorder.onMouseDown = null;
}
//return(mouseDown);
}
static function get mouseUp() {
return(__mouseUp);
}
static function set mouseUp(_mouseUp) {
__mouseUp = _mouseUp;
if (action == "playing") {
return;
}
if (__mouseUp) {
recorder.onMouseUp = function () {
record.Recorder.addCtrl(record.Recorder.MOUSEUP, [_root._xmouse, _root._ymouse]);
};
} else {
recorder.onMouseUp = null;
}
//return(mouseUp);
}
static function get mouseMove() {
return(__mouseMove);
}
static function set mouseMove(_mouseMove) {
__mouseMove = _mouseMove;
if (action == "playing") {
return;
}
if (__mouseMove) {
ctrlMouseMove = function (mouseX, mouseY) {
record.Recorder.addCtrl(record.Recorder.MOUSEMOVE, [mouseX, mouseY]);
};
} else {
ctrlMouseMove = null;
}
//return(mouseMove);
}
static function keyIsDown(keyCode) {
return(keyDownArr[keyCode]);
}
static function addCtrl(type, data) {
if (Global.pause) {
return(undefined);
}
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();
mouseEffectArr = new Array();
action = "";
keyDown = (null);
keyUp = (null);
mouseDown = (null);
mouseUp = (null);
mouseMove = (null);
}
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 showMsg() {
var _local1 = "";
_local1 = _local1 + (("recorder=" + recorder) + newline);
_local1 = _local1 + (("output=" + output) + newline);
_local1 = _local1 + (("action=" + action) + newline);
_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 + (((("mouseP:(" + mouseP.x) + ",") + mouseP.y) + ")\n");
var _local2 = 0;
for (var _local3 in ctrlObj) {
_local2 = _local2 + ctrlObj[_local3].length;
}
_local1 = _local1 + (("totalCtrl=" + _local2) + newline);
_local1 = _local1 + (("totalMouseEffect=" + mouseEffectArr.length) + newline);
_local1 = _local1 + String(getTimer());
output.__set__msg(_local1);
}
static function getData(data) {
if (action == "playing") {
data = dataArr[dataId++];
} else {
dataId++;
dataArr.push(data);
}
return(data);
}
static function outputData() {
var _local2 = "{";
_local2 = _local2 + (("\ttotalFrame:" + frameId) + ",");
_local2 = _local2 + (("\ttotalData:" + dataId) + ",");
_local2 = _local2 + (("\tdataArr:" + Common.arrToStr(dataArr)) + ",");
var _local1 = "\tctrlObj:{\n";
for (var _local3 in ctrlObj) {
_local1 = _local1 + (((("\t\t" + _local3) + ":") + Common.arrToStr(ctrlObj[_local3])) + ",\n");
}
_local2 = _local2 + (_local1.substr(0, _local1.length - 2) + "\n\t}");
_local2 = _local2 + "}";
output.outputData(_local2);
}
static function showMouse() {
Mouse.show();
if (action == "playing") {
mouseArrow._visible = true;
}
}
static function hideMouse() {
if (action == "playing") {
Mouse.show();
mouseArrow._visible = false;
} else {
Mouse.hide();
}
}
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 KEYDOWN = 0;
static var KEYUP = 1;
static var MOUSEDOWN = 2;
static var MOUSEUP = 3;
static var MOUSEMOVE = 4;
static var MOUSEEFFECT = 5;
static var mouseP = new Object();
static var mouseEffectArr = new Array();
}
Symbol 408 MovieClip [__Packages.record.Output] Frame 0
class record.Output extends MovieClip
{
var onKeyDown, msgTxt, __get__msg, outputTxt;
function Output () {
super();
msg = ("");
record.Recorder.output = this;
Key.addListener(this);
onKeyDown = function () {
if (Key.getCode() == 112) {
record.Recorder.outputData();
}
};
}
function set msg(_msg) {
msgTxt.text = _msg;
//return(__get__msg());
}
function outputData(data) {
outputTxt.text = data;
Selection.setFocus(outputTxt);
}
}
Symbol 409 MovieClip [__Packages.record.MouseArrow] Frame 0
class record.MouseArrow extends MovieClip
{
var stop;
function MouseArrow () {
super();
stop();
record.Recorder.mouseArrow = this;
}
}
Symbol 410 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:") + Common.arrToStr(data)) + "}");
}
}
Symbol 411 MovieClip [__Packages.FWG.PlayerInfo] Frame 0
class FWG.PlayerInfo extends FWG.LocalSetting
{
function PlayerInfo () {
super("FWGPlayerInfo");
}
function isIllegalName(name) {
return((name == "") || (name == "MrNoName"));
}
var dataObj = {playerName:"MrNoName"};
}
Symbol 412 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 413 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 414 MovieClip [__Packages.FWG.SubmitScore] Frame 0
class FWG.SubmitScore extends MovieClip
{
var stop, _alpha, _visible, btnSubmit, btnX, nameTxt, nameTxtPos, scoreTxt, send_var, gotoAndStop;
function SubmitScore () {
super();
stop();
_alpha = 100;
_visible = false;
Global.main.submitScore = this;
btnSubmit._release = function () {
Global.main.submitScore.checkSubmit();
};
btnX._release = function () {
Global.main.submitScore.hide();
};
nameTxt.txt.type = "input";
nameTxt.txt.selectable = true;
}
function checkSubmit() {
Selection.setFocus(nameTxt);
if (Global.main.isIllegalUserName(nameTxt.text)) {
ui.Alt.show("Your Name, please", nameTxtPos);
ui.Alt.hideDelay(30);
return(undefined);
}
submit();
}
function init() {
nameTxt.text = Global.main.playerInfo.dataObj.playerName;
scoreTxt.text = String(Global.main.__get__score());
Selection.setFocus(nameTxt);
trace((("playerName=" + nameTxt.text) + ",score=") + scoreTxt.text);
send_var = new LoadVars();
send_var.game = Global.main.gameName;
}
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 415 MovieClip [__Packages.ui.SBtn] Frame 0
class ui.SBtn extends MovieClip
{
var filters0, filters, greyFilters, __selectAble, btn, rollOver, _rollOver, rollOut, _rollOut, press, _press, release, _release, __selected, gotoAndStop, onPress, useHandCursor;
function SBtn () {
super();
filters0 = filters.slice();
greyFilters = filters.concat([greyFilter]);
__selectAble = true;
init();
}
function init() {
btn.stop();
btn.sbtn = this;
btn.onRollOver = function () {
this.gotoAndStop(2);
this.sbtn._onRollOver();
};
btn.onRollOut = function () {
this.gotoAndStop(1);
this.sbtn._onRollOut();
};
btn.onPress = function () {
this.gotoAndStop(3);
this.sbtn._onPress();
};
btn.onRelease = function () {
this.gotoAndStop(2);
this.sbtn._onRelease();
};
}
function _onRollOver() {
if (selectAble) {
rollOver();
_rollOver();
}
}
function _onRollOut() {
if (selectAble) {
rollOut();
_rollOut();
}
}
function _onPress() {
if (selectAble) {
press();
_press();
}
}
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) {
delete onPress;
btn.enabled = true;
btn.useHandCursor = true;
filters = filters0;
} else {
btn.enabled = false;
onPress = function () {
this.errorPress();
};
useHandCursor = false;
filters = greyFilters;
}
//return(selectAble);
}
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 416 MovieClip [__Packages.FWG.Btn] Frame 0
class FWG.Btn extends ui.SBtn
{
var __label;
function Btn () {
super();
}
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 417 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;
}
static function show(_msg, mc) {
alt.show_(_msg, mc);
}
static function hide() {
alt.hide_();
}
function show_(_msg, mc) {
_visible = true;
msg = ((" " + _msg) + " ");
msgTxt.autoSize = "center";
bg._width = msgTxt._width + 10;
if (mc) {
var _local4 = new math.Vector();
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) {
Global.addRun(alt, "hide_", delayTime, 1, true);
}
function set msg(_msg) {
msgTxt.text = _msg;
//return(msg);
}
function get msg() {
return(msgTxt.text);
}
}
Symbol 418 MovieClip [__Packages.math.Vector] Frame 0
class math.Vector extends flash.geom.Point
{
var x, y;
function Vector (vx, vy) {
super(vx, vy);
if (isNaN(x)) {
x = 0;
}
if (isNaN(y)) {
y = 0;
}
}
function dot(v) {
return((x * v.x) + (y * v.y));
}
function cross(v) {
return((x * v.y) - (y * v.x));
}
static function dot_(v1, v2) {
return((v1.x * v2.x) + (v1.y * v2.y));
}
static function cross_(v1, v2) {
return((v1.x * v2.y) - (v2.x * v1.y));
}
function add(v) {
x = x + v.x;
y = y + v.y;
}
function subtract(v) {
x = x - v.x;
y = y - v.y;
}
function mult(s) {
x = x * s;
y = y * s;
}
static function add_(v1, v2) {
return(new math.Vector(v1.x + v2.x, v1.y + v2.y));
}
static function subtract_(v1, v2) {
return(new math.Vector(v1.x - v2.x, v1.y - v2.y));
}
static function mult_(v, s) {
return(new math.Vector(v.x * s, v.y * s));
}
function clone() {
return(new math.Vector(x, 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(cross_(this, p) < 0);
}
function isInside(pArr) {
var _local4 = pArr.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = pArr[_local2];
if (!subtract_(this, _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(cross_(p, n) / cross_(m, n));
}
static function getHorizontal(p, p0) {
var _local1 = dot_(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 * cross_(p, p0)) / _local2, (p0.x * cross_(p0, p)) / _local2));
}
static function intersects(p1, p2, p3, p4) {
var _local6 = subtract_(p3, p1);
var _local5 = subtract_(p2, p3);
var _local8 = cross_(_local6, _local5);
var _local3 = subtract_(p4, p2);
var _local4 = cross_(_local5, _local3);
if ((_local8 * _local4) < 0) {
return(false);
}
var _local1 = subtract_(p1, p4);
var _local2 = cross_(_local3, _local1);
if ((_local4 * _local2) < 0) {
return(false);
}
var _local7 = cross_(_local1, _local6);
if ((_local2 * _local7) < 0) {
return(false);
}
return(true);
}
static function intersection(p1, p2, p3, p4) {
var _local2 = cross_(p1, p3);
var _local5 = cross_(p2, p4);
var _local7 = cross_(p3, p2);
var _local1 = cross_(p4, p1);
var _local3 = cross_(p3, p4);
var _local10 = ((_local2 + _local3) + _local1) / (((_local2 + _local5) + _local7) + _local1);
return(interpolate(p2, p1, _local10));
}
static function distance(v1, v2) {
return(subtract_(v1, v2).length);
}
function get _rotation() {
return(Math.atan2(y, x) * Common.a2r);
}
}
Symbol 419 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.addRun(this, "showRun", 1, 5, true);
}
function fadeHide() {
Global.addRun(this, "hideRun", 1, 5, true);
}
function showRun(num) {
_alpha = (5 - num) * 20;
if (num == 0) {
show();
onShow();
}
}
function hideRun(num) {
_alpha = num * 20;
if (num == 0) {
hide();
onHide();
}
}
}
Symbol 420 MovieClip [__Packages.FWG.MusicCredits] Frame 0
class FWG.MusicCredits extends effect.AlphaFadeSp
{
var hide, btnBack;
function MusicCredits () {
super();
Global.main.musicCredits = this;
hide();
btnBack._release = function () {
this._parent.fadeHide();
};
}
}
Symbol 421 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]._release = function () {
Global.main.qualitySetting.__set__quality(this.label);
};
_local3++;
}
btnOk._release = function () {
Global.main.qualitySetting.fadeHide();
};
}
function show() {
super.show();
quality = (_quality);
}
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 422 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 423 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 424 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 425 MovieClip [__Packages.FWG.GamePad] Frame 0
class FWG.GamePad extends FWG.BasicGamePad
{
var hitMask, totalMissionArr, missionArr, bonusObj, bonus_itemdrop, bonus_itemchange, btnMenu, pie;
function GamePad () {
super();
hitMask.stop();
hitMask.onPress = function () {
};
hitMask.useHandCursor = false;
}
function init() {
super.init();
totalMissionArr = new Array(zoorator.Game.totalTotalColor);
missionArr = new Array(zoorator.Game.totalTotalColor);
var _local3 = 0;
while (_local3 < zoorator.Game.totalTotalColor) {
missionArr[_local3] = 0;
_local3++;
}
bonusObj = {drop:3, change:3};
bonus_itemdrop.bonus_mc.gotoAndStop(3);
bonus_itemchange.bonus_mc.gotoAndStop(4);
updateBonusItem("drop");
updateBonusItem("change");
bonus_itemdrop._rollOver = function () {
ui.Alt.show("Removes the current cog. (hotkey 1)");
};
bonus_itemchange._rollOver = function () {
ui.Alt.show("Random cog color changer. (hotkey 2)");
};
bonus_itemdrop._rollOut = (bonus_itemchange._rollOut = function () {
ui.Alt.hide();
});
bonus_itemdrop._release = function () {
Global.main.gamePad.usePowerup("drop");
ui.Alt.hide();
};
bonus_itemchange._release = function () {
Global.main.gamePad.usePowerup("change");
ui.Alt.hide();
};
bonus_itemdrop.errorPress = (bonus_itemchange.errorPress = function () {
ui.Alt.show("No More!");
ui.Alt.hideDelay(30);
});
Key.addListener(this);
btnMenu._release = function () {
Global.main.gamePad.menu_popUp.show();
};
}
function onKeyDown() {
if (Global.pause) {
return(undefined);
}
switch (Key.getCode()) {
case 49 :
usePowerup("drop");
break;
case 50 :
usePowerup("change");
}
}
function usePowerup(bonus) {
if (bonusObj[bonus] > 0) {
bonusObj[bonus]--;
updateBonusItem(bonus);
Global.game[bonus]();
}
}
function setMission(newMissionArr) {
var _local2 = 0;
while (_local2 < zoorator.Game.totalTotalColor) {
missionArr[_local2] = 0;
totalMissionArr[_local2] = newMissionArr[_local2];
_local2++;
}
pie.init(colorArr.slice(0, Global.game.totalColor));
}
function addCog(color, num) {
missionArr[color] = missionArr[color] + num;
updatePipe();
var _local2 = 0;
while (_local2 < zoorator.Game.totalTotalColor) {
if (missionArr[_local2] < totalMissionArr[_local2]) {
return(false);
}
_local2++;
}
return(true);
}
function addBonus(bonus, num) {
switch (bonus) {
case "drop" :
case "change" :
break;
default :
return(undefined);
}
bonusObj[bonus] = bonusObj[bonus] + num;
updateBonusItem(bonus);
}
function updateBonusItem(bonus) {
var _local2 = this["bonus_item" + bonus];
_local2.txt.__set__text("x" + bonusObj[bonus]);
_local2.__set__selectAble(bonusObj[bonus] > 0);
}
function updatePipe() {
var _local3 = new Array(Global.game.totalColor);
var _local2 = 0;
while (_local2 < Global.game.totalColor) {
_local3[_local2] = missionArr[_local2] / totalMissionArr[_local2];
_local2++;
}
pie.update(_local3);
}
static var colorArr = [16711680, 16776960, 255, 65280, 16711935];
}
Symbol 426 MovieClip [__Packages.zoorator.BonusBtn] Frame 0
class zoorator.BonusBtn extends FWG.Btn
{
function BonusBtn () {
super();
}
}
Symbol 427 MovieClip [__Packages.ui.Label] Frame 0
class ui.Label extends MovieClip
{
var txt, __text;
function Label () {
super();
text = (text);
}
function get text() {
if (txt.text.length > 0) {
__text = txt.text;
}
return(__text);
}
function set text(_text) {
txt.text = (__text = _text);
//return(text);
}
function get autoSize() {
return(txt.autoSize);
}
function set autoSize(_autoSize) {
txt.autoSize = _autoSize;
//return(autoSize);
}
}
Symbol 428 MovieClip [__Packages.zoorator.Pie] Frame 0
class zoorator.Pie extends MovieClip
{
var drawArea, body, r, drawList, total, partA, valueArr, partArr, isDrawing, onRotate, onRotateFinished, rotaT, u, v, dRota;
function Pie () {
super();
drawArea = body.drawArea;
r = 120;
}
function init(colorArr) {
drawList = new Array();
total = colorArr.length;
partA = (1 / total) * 360;
Common.removeAll(drawArea);
valueArr = new Array(drawArea);
partArr = new Array(total);
var _local3 = 0;
while (_local3 < total) {
var _local2 = (partArr[_local3] = Common.addMcToTop(drawArea, "", {_rotation:_local3 * partA}));
_local2.value = 0;
_local2.fillArea = Common.addMcToTop(_local2);
_local2.lineArea = Common.addMcToTop(_local2);
Common.setRGB(_local2.fillArea, colorArr[_local3]);
_local2.lineArea.clear();
_local2.lineArea.lineStyle(1, 0);
drawDelta(_local2.lineArea, 1);
_local2.fillArea.clear();
_local2.fillArea.lineStyle(1, 0, 0);
valueArr[_local3] = 0;
_local3++;
}
Global.addRun(this, "run");
}
function run() {
if (isDrawing) {
} else if (drawList.length > 0) {
var _local2 = drawList[0];
if (valueArr[_local2] == partArr[_local2].value) {
drawList.shift();
} else {
beginDraw(_local2);
}
}
}
function update(_valueArr) {
var _local4 = _valueArr.length;
var _local3 = 0;
while (_local3 < _local4) {
var _local2 = _valueArr[_local3];
if (isNaN(_local2)) {
_local2 = 0;
}
if (_local2 < 0) {
_local2 = 0;
} else if (_local2 > 1) {
_local2 = 1;
}
if (valueArr[_local3] != _local2) {
valueArr[_local3] = _local2;
drawList.push(_local3);
}
_local3++;
}
}
function beginDraw(id) {
isDrawing = true;
rotateTo(((-id) * partA) + (partArr[id].value * partA), 0.3);
onRotate = null;
onRotateFinished = function () {
this.drawPart();
};
}
function drawPart() {
var id = Number(drawList.shift());
rotateTo(((-id) * partA) + (valueArr[id] * partA), 0, 2);
partArr[id].value = valueArr[id];
onRotate = function () {
var _local3 = this.partArr[id];
var _local2 = _local3._rotation + this.body._rotation;
while (_local2 > 360) {
_local2 = _local2 - 360;
}
while (_local2 < 0) {
_local2 = _local2 + 360;
}
_local3.fillArea.clear();
_local3.fillArea.beginFill(16777215);
this.drawDelta(_local3.fillArea, _local2 / this.partA);
_local3.fillArea.endFill();
};
onRotateFinished = function () {
this.endDraw();
};
}
function endDraw() {
isDrawing = false;
}
function drawDelta(mc, value) {
mc.moveTo(0, 0);
mc.lineTo(r, 0);
var _local2 = ((-value) * partA) / Common.a2r;
mc.lineTo(r * Math.cos(_local2), r * Math.sin(_local2));
}
function rotateTo(_rotaT, _u, _v) {
rotaT = _rotaT;
if (_u > 0) {
u = _u;
v = 0;
} else {
u = 0;
v = _v;
}
dRota = rotaT - body._rotation;
while (dRota > 360) {
dRota = dRota - 360;
}
while (dRota < 0) {
dRota = dRota + 360;
}
Global.addRun(this, "rotateRun");
}
function rotateRun() {
if (dRota < 1) {
Global.delRun(this, "rotateRun");
body._rotation = rotaT;
onRotate();
onRotateFinished();
} else {
if (u > 0) {
body._rotation = body._rotation + (dRota * u);
dRota = dRota * (1 - u);
} else {
body._rotation = body._rotation + v;
dRota = dRota - v;
}
onRotate();
}
}
}
Symbol 429 MovieClip [__Packages.FWG.BasicGame] Frame 0
class FWG.BasicGame extends MovieClip
{
var effectArea;
function BasicGame () {
super();
Global.game = this;
}
function stageClear() {
Global.main.stageClear();
}
function win() {
Global.main.win();
}
function lose() {
Global.main.lose();
}
function addTxtPopUp(msg, x, y) {
var _local2 = new math.Vector();
if (x instanceof MovieClip) {
Common.localToLocal(_local2, x, this);
} else if (isNaN(x)) {
_local2.x = x.x;
_local2.y = x.y;
} else {
_local2.x = x;
_local2.y = y;
}
Common.addMcToTop(effectArea, "effect.TxtPopUp", {text:msg, _x:_local2.x, _y:_local2.y});
}
}
Symbol 430 MovieClip [__Packages.zoorator.Game] Frame 0
class zoorator.Game extends FWG.BasicGame
{
var ballArea, ballArea_bg, timeBar, bg, totalPipe, ballArr, nextBallArr, pipeArr, dScore, isStageClear, totalColor, currDirId, pipeArea, rotateTween, isKeyDown, t, addTxtPopUp, levelUp_mc, filters;
function Game () {
super();
Global.main.__set__currentScore(0);
Global.main.__set__score(0);
Global.main.__set__stageNum(1);
ballArea.followMov.obj = ballArea;
ballArea.followMov.onMov = function (x, y, rotation) {
Global.game.timeBar._x = (this.obj._x = x);
Global.game.timeBar._y = (this.obj._y = y);
this.obj._rotation = rotation;
};
ballArea_bg.followMov.obj = ballArea_bg;
ballArea_bg.followMov.onMov = function (x, y, rotation) {
this.obj._x = -x;
this.obj._y = -y;
this.obj._rotation = -rotation;
};
Global.addRun(ballArea_bg, "run");
ballArea_bg.run = function () {
this._rotation = -Global.game.ballArea._rotation;
};
}
function init() {
movBallAreaIn();
timeBar.__set__totalTime(300);
timeBar.onTimeUp = function () {
Global.game.fire();
};
bg.gotoAndStop(1);
}
function movBallAreaIn() {
Global.main.playSound("SndMov1");
ballArea.followMov.mov();
ballArea_bg.followMov.mov();
init1();
ballArea_bg.followMov.onMovFinished = function () {
Global.game.init2();
};
}
function movBallAreaOut() {
var _local2 = 0;
while (_local2 < totalPipe) {
ballArr[_local2].removeMovieClip();
nextBallArr[_local2].removeMovieClip();
pipeArr[_local2].removeMovieClip();
_local2++;
}
ballArea.followMov.mov("f");
ballArea_bg.followMov.mov("f");
ballArea_bg.followMov.onMovFinished = function () {
if (Global.main.__get__stageNum() <= Global.main.totalStage) {
Global.game.showNewBg();
} else {
Global.addRun(Global.game, "win", 90, 1);
}
};
}
function showNewBg() {
bg.gotoAndStop(Global.main.__get__stageNum());
Global.addRun(this, "movBallAreaIn", 90, 1);
}
function init1() {
dScore = 0;
isStageClear = false;
totalPipe = 2 + Global.main.__get__stageNum();
totalColor = ((totalPipe > totalTotalColor) ? (totalTotalColor) : (totalPipe));
currDirId = 0;
pipeArr = new Array();
ballArr = new Array(totalPipe);
nextBallArr = new Array(totalPipe);
var _local2 = 0;
while (_local2 < totalPipe) {
var _local3 = getCs(_local2);
pipeArr.push(Common.addMcToTop(pipeArea, "zoorator.Pipe", {_x:-1000, _rotation:_local3.__get___rotation()}));
_local2++;
}
rotateTween = new effect.RotateTween(ballArea);
rotateTween.onTween = function (ballArea) {
Global.game.rotateFinished();
};
}
function init2() {
var _local2 = 0;
while (_local2 < totalPipe) {
var _local3 = getCs(_local2);
ballArr[_local2] = Common.addMcToTop(ballArea, "zoorator.BallMov", {color:random(totalColor), type:"ball", bonus:"blank", _rotation:_local3.__get___rotation(), onGetToR:function () {
this.stop();
}});
addNextBall(_local2, _local3);
_local2++;
}
Key.addListener(this);
_local2 = 0;
while (_local2 < totalPipe) {
pipeArr[_local2].followMov.mov();
_local2++;
}
Global.main.gamePad.setMission(missionArr[Global.main.__get__stageNum() - 1]);
timeBar.start();
}
function createBalls(resetTime) {
var _local2 = 0;
while (_local2 < totalPipe) {
var _local3 = getCs(_local2);
ballArr[_local2] = nextBallArr[_local2];
ballArr[_local2].onGetToR = function () {
this.stop();
};
ballArr[_local2].movToR();
addNextBall(_local2, _local3);
_local2++;
}
if (resetTime) {
timeBar.reset();
timeBar.start();
}
}
function addNextBall(i, cs) {
var _local2 = random(totalColor);
do {
var color1 = random(totalColor);
} while (_local2 == color1);
nextBallArr[i] = Common.addMcToTop(ballArea, "zoorator.BallMov", {color:random(totalColor), mulColorArr:[_local2, color1], type:Common.getRanByRate(typeArr, typeRateArr), bonus:Common.getRanByRate(bonusArr, bonusRateArr), _rotation:cs.__get___rotation(), onGetToMidR:function () {
this.stop();
}});
}
function rotate(dir) {
currDirId = currDirId + dir;
rotateTween.movTo((currDirId / totalPipe) * 360);
Global.main.playSound("SndRotate");
}
function rotateFinished() {
}
function fire() {
Global.main.playSound("SndFire");
while (currDirId < 0) {
currDirId = currDirId + totalPipe;
}
while (currDirId > totalPipe) {
currDirId = currDirId - totalPipe;
}
rotateTween.stop();
ballArea._rotation = (currDirId / totalPipe) * 360;
var _local2 = 0;
while (_local2 < totalPipe) {
pipeArr[(_local2 + currDirId) % totalPipe].addBall(ballArr[_local2]);
_local2++;
}
createBalls(true);
}
function getCs(i) {
var _local2 = (((i / totalPipe) * Math.PI) * 2) - (Math.PI/2);
return(new math.Vector(Math.cos(_local2), Math.sin(_local2)));
}
function onKeyDown() {
if (Global.pause) {
return(undefined);
}
if (isKeyDown) {
return(undefined);
}
isKeyDown = true;
switch (Key.getCode()) {
case leftKey :
rotate(-1);
break;
case rightKey :
rotate(1);
break;
case fireKey :
case 32 :
fire();
}
}
function onKeyUp() {
if (Global.pause) {
return(undefined);
}
if (isKeyDown) {
isKeyDown = false;
}
}
function addScore(total, mc) {
if ((getTimer() - t) < 1000) {
dScore++;
} else {
dScore = 1;
}
t = getTimer();
if (dScore > 1) {
addTxtPopUp("Combo" + (dScore - 1), mc);
}
Global.main.addScore(dScore * total);
}
function stageClear() {
if (isStageClear) {
return(undefined);
}
timeBar.reset();
isStageClear = true;
Key.removeListener(this);
if (Global.main.__get__stageNum() == Global.main.totalStage) {
Global.game.stageClear2();
} else {
levelUp_mc.gotoAndPlay(2);
levelUp_mc.onFinished = function () {
Global.game.stageClear2();
};
}
}
function stageClear2() {
Global.main.__set__currentScore(0);
if (Global.main.__get__stageNum() < Global.main.totalStage) {
Global.main.gamePad.__set__stageNum(Global.main.__set__stageNum((Global.main.__get__stageNum()+1)));
} else {
Global.main.__set__stageNum(Infinity);
}
var _local3 = pipeArr.length;
var _local2 = 0;
while (_local2 < _local3) {
pipeArr[_local2].movOut();
_local2++;
}
pipeArr[_local3 - 1].onMovOut = function () {
Global.game.movBallAreaOut();
};
}
function setColor(mc, color) {
mc.gotoAndStop(color + 1);
}
function drop() {
var _local2 = 0;
while (_local2 < totalPipe) {
ballArr[_local2].gotoAndPlay("drop");
_local2++;
}
createBalls(false);
}
function change() {
var _local2 = 0;
while (_local2 < totalPipe) {
ballArr[_local2].changeColor(random(totalColor));
_local2++;
}
}
function turnPause(value) {
if (value) {
filters = [ui.SBtn.greyFilter];
} else {
filters = null;
}
}
static var totalTotalColor = 5;
var leftKey = 37;
var rightKey = 39;
var fireKey = 38;
static var typeArr = ["bomb", "bigBomb", "sameColorBomb", "mulColor", "ball"];
static var typeRateArr = [3, 1, 2, 3, 90];
static var bonusArr = ["money", "drop", "change", "blank"];
static var bonusRateArr = [1, 1, 1, 30];
static var missionArr = [[15, 15, 15, 0, 0], [15, 15, 15, 15, 0], [12, 12, 12, 12, 12], [12, 12, 12, 12, 12], [12, 12, 12, 12, 12], [12, 12, 12, 12, 12]];
}
Symbol 431 MovieClip [__Packages.effect.RotateTween] Frame 0
class effect.RotateTween
{
var mc, u, minD, rotaT, dRota, onMov, onTween;
function RotateTween (_mc, _rotaT, _u, _minD) {
mc = _mc;
if (isNaN(_u)) {
_u = 0.5;
}
u = _u;
if (isNaN(_minD)) {
_minD = 1;
}
minD = _minD;
if (isNaN(_rotaT)) {
} else {
movTo(_rotaT);
}
}
function movTo(_rotaT) {
rotaT = _rotaT;
dRota = rotaT - mc._rotation;
while (dRota < -180) {
dRota = dRota + 360;
}
while (dRota > 180) {
dRota = dRota - 360;
}
Global.addRun(this, "run");
}
function run() {
if (mc._name == undefined) {
Global.delRun(this, "run");
return(undefined);
}
if (Global.pause) {
return(undefined);
}
if (Math.abs(dRota) < minD) {
Global.delRun(this, "run");
mc._rotation = rotaT;
onMov(mc);
onTween(mc);
} else {
mc._rotation = mc._rotation + (dRota * u);
dRota = dRota * (1 - u);
onMov(mc);
}
}
function stop() {
Global.delRun(this, "run");
}
}
Symbol 432 MovieClip [__Packages.ui.TimeBar] Frame 0
class ui.TimeBar extends MovieClip
{
var onReset, time, onTimeUp, onTimer, __totalTime;
function TimeBar () {
super();
}
function start() {
Global.addRun(this, "run");
}
function stop() {
Global.delRun(this, "run");
}
function reset() {
totalTime = (totalTime);
stop();
onReset();
}
function run() {
if ((--time) <= 0) {
time = 0;
stop();
onTimeUp();
}
onTimer(time, __totalTime);
}
function get totalTime() {
return(__totalTime);
}
function set totalTime(_totalTime) {
time = (__totalTime = _totalTime);
//return(totalTime);
}
function timeUp() {
stop();
onTimeUp();
}
}
Symbol 433 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._release = function () {
ui.Alert.callBack(true);
};
btnNo._release = 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 434 MovieClip [__Packages.FWG.Main] Frame 0
class FWG.Main extends FWG.BasicMain
{
var gotoGame;
function Main () {
super("cogfactory", 700, 600, 6);
}
function gotoOptions() {
gotoGame();
}
}
Symbol 435 MovieClip [__Packages.effect.STween] Frame 0
class effect.STween
{
var mc, u, minD, xt, yt, onMov, onTween;
function STween (_mc, _xt, _yt, _u, _minD) {
mc = _mc;
if (isNaN(_u)) {
_u = 0.5;
}
u = _u;
if (isNaN(_minD)) {
_minD = 1;
}
minD = _minD;
if (isNaN(_xt) || (isNaN(_yt))) {
} else {
movTo(_xt, _yt);
}
}
function movTo(_xt, _yt) {
xt = _xt;
yt = _yt;
Global.addRun(this, "run");
}
function run() {
if (mc._name == undefined) {
Global.delRun(this, "run");
return(undefined);
}
if (Global.pause) {
return(undefined);
}
var _local2 = new math.Vector(xt - mc._x, yt - mc._y);
if (_local2.length < minD) {
Global.delRun(this, "run");
mc._x = xt;
mc._y = yt;
onMov(mc);
onTween(mc);
} else {
mc._x = mc._x + (_local2.x * u);
mc._y = mc._y + (_local2.y * u);
onMov(mc);
}
}
function stop() {
Global.delRun(this, "run");
}
}
Symbol 436 MovieClip [__Packages.FWG.BtnPa] Frame 0
class FWG.BtnPa extends FWG.Btn
{
var __set__label;
function BtnPa () {
super();
__set__label("Play Again");
}
}
Symbol 437 MovieClip [__Packages.FWG.BtnVh] Frame 0
class FWG.BtnVh extends FWG.Btn
{
var __set__label;
function BtnVh () {
super();
__set__label("View Highscores");
}
}
Symbol 438 MovieClip [__Packages.FWG.BtnMog] Frame 0
class FWG.BtnMog extends FWG.Btn
{
var __set__label;
function BtnMog () {
super();
__set__label("More Online Games");
}
}
Symbol 439 MovieClip [__Packages.FWG.BtnMenu] Frame 0
class FWG.BtnMenu extends FWG.Btn
{
var __set__label;
function BtnMenu () {
super();
__set__label("Menu");
}
}
Symbol 440 MovieClip [__Packages.FWG.PageGameOver] Frame 0
class FWG.PageGameOver extends MovieClip
{
var scoreTxt, gotoAndStop, foundTxt, missedTxt, percentTxt, mistakeTxt;
function PageGameOver () {
super();
scoreTxt.text = Global.main.score;
if (Global.main.isWin) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
foundTxt.text = Global.gameInterface.__found;
missedTxt.text = Global.gameInterface.__missed;
percentTxt.text = Global.gameInterface.__percent + "%";
mistakeTxt.text = Global.gameInterface.__mistake;
}
}
Symbol 441 MovieClip [__Packages.effect.FollowMov] Frame 0
class effect.FollowMov extends MovieClip
{
var _visible, body, gotoAndStop, _totalframes, _currentframe, nextFrame, onMov, onMovFinished;
function FollowMov () {
super();
_visible = false;
body.stop();
}
function mov(f) {
if (f == undefined) {
f = 1;
}
gotoAndStop(f);
Global.addRun(this, "movRun");
}
function movRun() {
if (_currentframe == _totalframes) {
gotoAndStop(1);
} else {
nextFrame();
}
onMov(body._x, body._y, body._rotation);
}
function movFinished() {
Global.delRun(this, "movRun");
onMovFinished();
}
}
Symbol 442 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._release = 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._release = function () {
if (Global.main.__get__musicOn()) {
ui.Alt.show("Music On");
Global.main.__set__musicOn(false);
this.gotoAndStop(2);
} else {
ui.Alt.show("Music Off");
Global.main.__set__musicOn(true);
this.gotoAndStop(1);
}
ui.Alt.hideDelay(30);
};
btnM._rollOut = function () {
ui.Alt.hide();
};
if (Global.main.__get__musicOn()) {
btnM.gotoAndStop(1);
} else {
btnM.gotoAndStop(2);
}
btnS._rollOver = function () {
if (Global.main.__get__soundOn()) {
ui.Alt.show("Sound Off");
} else {
ui.Alt.show("Sound On");
}
};
btnS._release = function () {
if (Global.main.__get__soundOn()) {
ui.Alt.show("Sound On");
Global.main.__set__soundOn(false);
this.gotoAndStop(2);
} else {
ui.Alt.show("Sound Off");
Global.main.__set__soundOn(true);
this.gotoAndStop(1);
}
ui.Alt.hideDelay(30);
};
btnS._rollOut = function () {
ui.Alt.hide();
};
if (Global.main.__get__soundOn()) {
btnS.gotoAndStop(1);
} else {
btnS.gotoAndStop(2);
}
}
}
Symbol 443 MovieClip [__Packages.FWG.QualitySetting2] Frame 0
class FWG.QualitySetting2 extends MovieClip
{
var _quality, btnQ, qId, gotoAndStop, __get__quality;
function QualitySetting2 () {
super();
quality = (_quality);
btnQ._rollOver = function () {
ui.Alt.show("Set Quality");
};
btnQ._rollOut = function () {
ui.Alt.hide();
};
btnQ._release = function () {
ui.Alt.hide();
this._parent.addQId();
};
}
function addQId() {
if ((++qId) >= 4) {
qId = 0;
}
quality = (qArr[qId]);
}
function set quality(__quality) {
_quality = __quality;
var _local2 = 0;
while (_local2 < 4) {
if (_quality == qArr[_local2]) {
qId = _local2;
break;
}
_local2++;
}
gotoAndStop(_quality);
//return(__get__quality());
}
static var qArr = ["LOW", "MEDIUM", "HIGH", "BEST"];
}
Symbol 444 MovieClip [__Packages.FWG.PageGame] Frame 0
class FWG.PageGame extends MovieClip
{
function PageGame () {
super();
}
}
Symbol 445 MovieClip [__Packages.zoorator.Pipe] Frame 0
class zoorator.Pipe extends MovieClip
{
var topId, ballArr, followMov, ballArea, light;
function Pipe () {
super();
topId = 0;
ballArr = new Array();
Global.addRun(this, "adjustLight");
followMov.obj = this;
followMov.onMov = function (x, y) {
var _local2 = new math.Vector(x, y);
_local2 = math.Vector.polar(_local2.length, this.obj._rotation / Common.a2r);
this.obj._x = _local2.x;
this.obj._y = _local2.y;
};
}
function addBall(_ballMov) {
var _local3 = Common.addMcToTop(ballArea, "zoorator.BallMov", {color:_ballMov.color, mulColorArr:_ballMov.mulColorArr, type:_ballMov.type, bonus:_ballMov.bonus});
_local3.gotoAndStop(_ballMov._currentframe);
_ballMov.removeMovieClip();
_local3.mov();
_local3.onGetToTop = function () {
this.pipe.checkHit(this);
};
}
function checkHit(ballMov) {
var _local3 = [topId];
var _local5;
ballArr.push(ballMov);
switch (ballMov.type) {
case "bomb" :
var _local4 = 1;
while (_local4 <= 2) {
var _local2 = topId - _local4;
if (_local2 < 0) {
break;
}
_local3.push(_local2);
_local4++;
}
removeBalls(_local3);
break;
case "bigBomb" :
var _local2 = topId - 1;
while (_local2 >= 0) {
_local3.push(_local2);
_local2--;
}
removeBalls(_local3);
break;
case "sameColorBomb" :
_local2 = topId - 1;
while (_local2 >= 0) {
if (ballMov.isSameColor(ballArr[_local2])) {
_local3.push(_local2);
}
_local2--;
}
removeBalls(_local3, true);
break;
default :
_local5 = 1;
_local2 = topId - 1;
while (_local2 >= 0) {
if (ballArr[_local2].isSameColor(ballArr[_local2 + 1])) {
_local5++;
_local3.push(_local2);
} else {
break;
}
_local2--;
}
if (_local5 < 3) {
break;
}
removeBalls(_local3, true);
}
topId = ballArr.length;
if (topId == (maxBall + 1)) {
Global.game.lose();
Global.pause = true;
return(undefined);
}
}
function removeBalls(idArr, addScoreFlag) {
var _local4 = idArr.length;
if (addScoreFlag) {
Global.game.addScore(_local4, ballArr[idArr[0]].ball);
if (Global.main.gamePad.addCog(ballArr[idArr[0]].color, _local4)) {
if (Global.game.isStageClear) {
} else {
Global.game.stageClear();
}
}
}
Global.main.playSound("SndGet");
var _local2 = 0;
while (_local2 < _local4) {
if (addScoreFlag) {
Global.main.gamePad.addBonus(ballArr[idArr[_local2]].bonus, 1);
}
ballArr[idArr[_local2]].ball.gotoAndPlay(2);
ballArr[idArr[_local2]] = null;
_local2++;
}
Common.dumpArr(ballArr);
_local4 = ballArr.length;
_local2 = idArr[idArr.length - 1];
while (_local2 < _local4) {
ballArr[_local2].mov();
ballArr[_local2] = null;
_local2++;
}
Common.dumpArr(ballArr);
}
function adjustLight() {
if (ballArr.length > 0) {
var _local2 = ballArr[ballArr.length - 1];
if (_local2.type == "mulColor") {
Global.game.setColor(light, _local2.mulColorArr[int(getTimer() / 500) % 2]);
} else {
Global.game.setColor(light, _local2.color);
}
} else {
Global.game.setColor(light, 5);
}
}
function movIn() {
followMov.mov(1);
}
function movOut() {
followMov.mov("f");
followMov.onMovFinished = function () {
this.obj.onMovOut();
};
}
static var maxBall = 19;
}
Symbol 446 MovieClip [__Packages.zoorator.BallMov] Frame 0
class zoorator.BallMov extends MovieClip
{
var cacheAsBitmap, pipe, _parent, type, ball, bonus, onGetToMidR, onGetToR, nextFrame, color, mulColorArr;
function BallMov () {
super();
cacheAsBitmap = true;
pipe = _parent._parent;
}
function init() {
switch (type) {
case "bomb" :
case "bigBomb" :
case "sameColorBomb" :
case "mulColor" :
break;
default :
type = "ball";
ball.body.bonus_mc.gotoAndStop(bonus);
setColor(ball.body.ball);
}
ball.body.gotoAndStop(type);
}
function movToR() {
Global.addRun(this, "getToRRun");
}
function getToMidR() {
Global.delRun(this, "getToRRun");
onGetToMidR();
}
function getToR() {
Global.delRun(this, "getToRRun");
onGetToR();
}
function getToRRun() {
nextFrame();
}
function mov() {
Global.addRun(this, "movRun");
}
function onMovTo(id) {
if (id == pipe.topId) {
Global.delRun(this, "movRun");
onGetToTop();
}
}
function movRun() {
nextFrame();
}
function onGetToTop() {
}
function changeColor(_color) {
if (type == "ball") {
color = _color;
setColor(ball.body.ball);
}
}
function setColor(mc) {
Global.game.setColor(mc, color);
}
function setMulColor(mc0, mc1) {
Global.game.setColor(mc0, mulColorArr[0]);
Global.game.setColor(mc1, mulColorArr[1]);
}
function isSameColor(ballMov) {
if (type == "mulColor") {
if (ballMov.type == "mulColor") {
var _local6 = ballMov.mulColorArr.length;
var _local4 = 0;
while (_local4 < _local6) {
var _local5 = ballMov.mulColorArr.length;
var _local3 = 0;
while (_local3 < _local5) {
if (mulColorArr[_local4] == ballMov.mulColorArr[_local3]) {
return(true);
}
_local3++;
}
_local4++;
}
} else {
var _local6 = ballMov.mulColorArr.length;
var _local4 = 0;
while (_local4 < _local6) {
if (mulColorArr[_local4] == ballMov.color) {
return(true);
}
_local4++;
}
}
} else if (ballMov.type == "mulColor") {
var _local5 = ballMov.mulColorArr.length;
var _local3 = 0;
while (_local3 < _local5) {
if (color == ballMov.mulColorArr[_local3]) {
return(true);
}
_local3++;
}
} else if (color == ballMov.color) {
return(true);
}
return(false);
}
}
Symbol 447 MovieClip [__Packages.FWG.BtnPlay] Frame 0
class FWG.BtnPlay extends FWG.Btn
{
var __set__label;
function BtnPlay () {
super();
__set__label("Play");
}
}
Symbol 448 MovieClip [__Packages.FWG.BtnSkip] Frame 0
class FWG.BtnSkip extends FWG.Btn
{
var __set__label;
function BtnSkip () {
super();
__set__label("Skip");
}
}
Symbol 449 MovieClip [__Packages.FWG.Instructions] Frame 0
class FWG.Instructions extends MovieClip
{
var stop, btnNext, btnBack, _totalframes, _currentframe, btnPlay, btnSkip;
function Instructions () {
super();
stop();
setPos();
Global.main.isFirstPlay = false;
btnNext._release = function () {
this._parent.nextFrame();
this._parent.setPos();
};
btnBack._release = function () {
this._parent.prevFrame();
this._parent.setPos();
};
}
function setPos() {
btnPlay._visible = _currentframe == _totalframes;
btnSkip._visible = (btnNext._visible = _currentframe != _totalframes);
btnBack._visible = _currentframe > 1;
}
}
Symbol 450 MovieClip [__Packages.FWG.PageInst] Frame 0
class FWG.PageInst extends MovieClip
{
function PageInst () {
super();
}
}
Symbol 451 MovieClip [__Packages.FWG.BtnPg] Frame 0
class FWG.BtnPg extends FWG.Btn
{
var __set__label;
function BtnPg () {
super();
__set__label("Play Game");
}
}
Symbol 452 MovieClip [__Packages.FWG.BtnInstructions] Frame 0
class FWG.BtnInstructions extends FWG.Btn
{
var __set__label;
function BtnInstructions () {
super();
__set__label("Instructions");
}
}
Symbol 453 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 454 MovieClip [__Packages.FWG.BtnDg] Frame 0
class FWG.BtnDg extends FWG.Btn
{
var __set__label;
function BtnDg () {
super();
__set__label("Download Games");
}
}
Symbol 455 MovieClip [__Packages.FWG.Logo] Frame 0
class FWG.Logo extends ui.SBtn
{
var _release;
function Logo () {
super();
_release = function () {
this.getURL("http://www.freeworldgroup.com/", "_blank");
};
}
}
Symbol 456 MovieClip [__Packages.FWG.BtnCopyright] Frame 0
class FWG.BtnCopyright extends FWG.Btn
{
var __set__label;
function BtnCopyright () {
super();
__set__label("Copyright 2008 freeworldgroup.com");
}
}
Symbol 457 MovieClip [__Packages.FWG.BtnCredits] Frame 0
class FWG.BtnCredits extends FWG.Btn
{
var __set__label;
function BtnCredits () {
super();
__set__label("Credits");
}
}
Symbol 458 MovieClip [__Packages.FWG.PageMenu] Frame 0
class FWG.PageMenu extends MovieClip
{
function PageMenu () {
super();
Global.main.__set__score(0);
}
}
Symbol 459 MovieClip [__Packages.FWG.BtnNs] Frame 0
class FWG.BtnNs extends FWG.Btn
{
var __set__label;
function BtnNs () {
super();
__set__label("Next Stage");
}
}
Symbol 460 MovieClip [__Packages.effect.TxtPopUp] Frame 0
class effect.TxtPopUp extends MovieClip
{
var text, body;
function TxtPopUp () {
super();
body.text = text;
}
}
Symbol 461 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 462 MovieClip [__Packages.FWG.HitRec] Frame 0
class FWG.HitRec extends MovieClip
{
var onPress, useHandCursor;
function HitRec () {
super();
onPress = function () {
};
useHandCursor = false;
}
}
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 35 MovieClip [FWG.HitRec] Frame 1
#initclip 114
Object.registerClass("FWG.HitRec", FWG.HitRec);
#endinitclip
Symbol 40 MovieClip Frame 10
gotoAndPlay (1);
Symbol 53 MovieClip [FWG.BtnPa] Frame 1
#initclip 61
Object.registerClass("FWG.BtnPa", FWG.BtnPa);
#endinitclip
Symbol 57 MovieClip [FWG.BtnVh] Frame 1
#initclip 62
Object.registerClass("FWG.BtnVh", FWG.BtnVh);
#endinitclip
Symbol 61 MovieClip [FWG.BtnMog] Frame 1
#initclip 63
Object.registerClass("FWG.BtnMog", FWG.BtnMog);
#endinitclip
Symbol 65 MovieClip [FWG.BtnSs] Frame 1
#initclip 64
Object.registerClass("FWG.BtnSs", FWG.BtnSs);
#endinitclip
Symbol 69 MovieClip [FWG.BtnMenu] Frame 1
#initclip 65
Object.registerClass("FWG.BtnMenu", FWG.BtnMenu);
#endinitclip
Symbol 77 MovieClip [ui.Label2] Frame 1
#initclip 66
Object.registerClass("ui.Label2", ui.Label);
#endinitclip
Symbol 80 MovieClip Frame 1
scoreTxt.text = Global.main.score;
Symbol 88 MovieClip [FWG.BtnX] Frame 1
#initclip 67
Object.registerClass("FWG.BtnX", FWG.Btn);
#endinitclip
Symbol 94 MovieClip [FWG.BtnSubmit] Frame 1
#initclip 68
Object.registerClass("FWG.BtnSubmit", FWG.Btn);
#endinitclip
Symbol 107 MovieClip [FWG.SubmitScore] Frame 1
#initclip 69
Object.registerClass("FWG.SubmitScore", FWG.SubmitScore);
#endinitclip
Symbol 113 MovieClip [FWG.PageGameOver] Frame 1
#initclip 70
Object.registerClass("FWG.PageGameOver", FWG.PageGameOver);
#endinitclip
Symbol 128 MovieClip Frame 1
Global.main.playSound("SndMachine1");
Symbol 128 MovieClip Frame 30
Global.main.playSound("SndMachine2");
Symbol 128 MovieClip Frame 60
stop();
Symbol 133 MovieClip Frame 1
Global.main.playSound("SndMachine3");
Symbol 133 MovieClip Frame 21
stop();
Symbol 136 MovieClip Frame 1
Global.main.playSound("SndMachine1");
Symbol 136 MovieClip Frame 21
stop();
Symbol 147 MovieClip [effect.FollowMov2] Frame 1
#initclip 71
Object.registerClass("effect.FollowMov2", effect.FollowMov);
#endinitclip
Symbol 147 MovieClip [effect.FollowMov2] Frame 15
movFinished();
Symbol 147 MovieClip [effect.FollowMov2] Frame 25
movFinished();
Symbol 160 MovieClip [ui.TimeBar] Frame 1
#initclip 72
Object.registerClass("ui.TimeBar", ui.TimeBar);
#endinitclip
onTimer = function (time, totalTime) {
this.gotoAndStop(int(2 + (((totalTime - time) / totalTime) * (this._totalframes - 2))));
};
onReset = function () {
gotoAndStop (2);
};
gotoAndStop (2);
Symbol 163 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 27
onFinished();
Symbol 164 MovieClip [zoorator.Game] Frame 1
#initclip 73
Object.registerClass("zoorator.Game", zoorator.Game);
#endinitclip
init();
Symbol 172 MovieClip [FWG.Btn1] Frame 1
#initclip 74
Object.registerClass("FWG.Btn1", FWG.Btn);
#endinitclip
init();
Symbol 172 MovieClip [FWG.Btn1] Frame 2
init();
Symbol 175 MovieClip [FWG._3Btn] Frame 1
#initclip 75
Object.registerClass("FWG._3Btn", FWG._3Btn);
#endinitclip
Symbol 182 MovieClip [FWG.BtnQuality] Frame 1
#initclip 76
Object.registerClass("FWG.BtnQuality", FWG.Btn);
#endinitclip
Symbol 183 MovieClip [FWG.QualitySetting2] Frame 1
#initclip 77
Object.registerClass("FWG.QualitySetting2", FWG.QualitySetting2);
#endinitclip
Symbol 189 MovieClip [FWG.BtnYes2] Frame 1
#initclip 78
Object.registerClass("FWG.BtnYes2", FWG.Btn);
#endinitclip
Symbol 191 MovieClip [FWG.BtnNo2] Frame 1
#initclip 79
Object.registerClass("FWG.BtnNo2", FWG.Btn);
#endinitclip
Symbol 192 MovieClip Frame 1
function show() {
Global.main.gamePad.hitMask.nextFrame();
gotoAndStop (3);
sTween.movTo(left, this._y);
sTween.onTween = function (pad) {
Global.game.turnPause(true);
Global.pause = true;
pad.onEnterFrame = function () {
if (!this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.hide();
}
};
};
}
var sTween = (new effect.STween(this));
var left = 150;
var right = this._x;
nextFrame();
Symbol 192 MovieClip Frame 3
function hide() {
Global.pause = false;
sTween.movTo(right, this._y);
sTween.onTween = function (pad) {
Global.main.gamePad.hitMask.prevFrame();
Global.game.turnPause(false);
pad.prevFrame();
};
delete this.onEnterFrame;
}
btnYes._press = function () {
Global.main.gotoMenu();
};
btnNo._press = function () {
this._parent.hide();
};
Symbol 197 MovieClip [FWG.BtnMenu2] Frame 1
#initclip 80
Object.registerClass("FWG.BtnMenu2", FWG.Btn);
#endinitclip
Symbol 205 MovieClip [zoorator.BonusBtn] Frame 1
#initclip 81
Object.registerClass("zoorator.BonusBtn", zoorator.BonusBtn);
#endinitclip
Symbol 215 MovieClip [zoorator.Pie] Frame 1
#initclip 82
Object.registerClass("zoorator.Pie", zoorator.Pie);
#endinitclip
Symbol 218 MovieClip [FWG.GamePad] Frame 1
#initclip 83
Object.registerClass("FWG.GamePad", FWG.GamePad);
#endinitclip
this.init();
Symbol 219 MovieClip [FWG.PageGame] Frame 1
#initclip 84
Object.registerClass("FWG.PageGame", FWG.PageGame);
#endinitclip
Symbol 223 MovieClip [ui.Label1] Frame 1
#initclip 85
Object.registerClass("ui.Label1", ui.Label);
#endinitclip
Symbol 224 MovieClip [ui.Alt] Frame 1
#initclip 86
Object.registerClass("ui.Alt", ui.Alt);
#endinitclip
Symbol 236 MovieClip Frame 4
this._parent._parent.setColor(ball);
Symbol 236 MovieClip Frame 5
this._parent._parent.setMulColor(circle0, circle1);
Symbol 237 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 15
this._parent.removeMovieClip();
Symbol 246 MovieClip [effect.FollowMov1] Frame 1
#initclip 87
Object.registerClass("effect.FollowMov1", effect.FollowMov);
#endinitclip
Symbol 246 MovieClip [effect.FollowMov1] Frame 15
movFinished();
Symbol 246 MovieClip [effect.FollowMov1] Frame 30
movFinished();
Symbol 247 MovieClip [zoorator.Pipe] Frame 1
#initclip 88
Object.registerClass("zoorator.Pipe", zoorator.Pipe);
#endinitclip
Symbol 248 MovieClip [zoorator.BallMov] Frame 1
#initclip 89
Object.registerClass("zoorator.BallMov", zoorator.BallMov);
#endinitclip
init();
Symbol 248 MovieClip [zoorator.BallMov] Frame 5
getToMidR();
Symbol 248 MovieClip [zoorator.BallMov] Frame 9
getToR();
Symbol 248 MovieClip [zoorator.BallMov] Frame 11
onMovTo(19);
Symbol 248 MovieClip [zoorator.BallMov] Frame 13
onMovTo(18);
Symbol 248 MovieClip [zoorator.BallMov] Frame 15
onMovTo(17);
Symbol 248 MovieClip [zoorator.BallMov] Frame 17
onMovTo(16);
Symbol 248 MovieClip [zoorator.BallMov] Frame 19
onMovTo(15);
Symbol 248 MovieClip [zoorator.BallMov] Frame 21
onMovTo(14);
Symbol 248 MovieClip [zoorator.BallMov] Frame 23
onMovTo(13);
Symbol 248 MovieClip [zoorator.BallMov] Frame 25
onMovTo(12);
Symbol 248 MovieClip [zoorator.BallMov] Frame 27
onMovTo(11);
Symbol 248 MovieClip [zoorator.BallMov] Frame 29
onMovTo(10);
Symbol 248 MovieClip [zoorator.BallMov] Frame 31
onMovTo(9);
Symbol 248 MovieClip [zoorator.BallMov] Frame 33
onMovTo(8);
Symbol 248 MovieClip [zoorator.BallMov] Frame 35
onMovTo(7);
Symbol 248 MovieClip [zoorator.BallMov] Frame 37
onMovTo(6);
Symbol 248 MovieClip [zoorator.BallMov] Frame 39
onMovTo(5);
Symbol 248 MovieClip [zoorator.BallMov] Frame 41
onMovTo(4);
Symbol 248 MovieClip [zoorator.BallMov] Frame 43
onMovTo(3);
Symbol 248 MovieClip [zoorator.BallMov] Frame 45
onMovTo(2);
Symbol 248 MovieClip [zoorator.BallMov] Frame 47
onMovTo(1);
Symbol 248 MovieClip [zoorator.BallMov] Frame 49
onMovTo(0);
Symbol 248 MovieClip [zoorator.BallMov] Frame 55
this.removeMovieClip();
Symbol 261 MovieClip [FWG.BtnNext] Frame 1
#initclip 90
Object.registerClass("FWG.BtnNext", FWG.Btn);
#endinitclip
Symbol 265 MovieClip [FWG.BtnBack] Frame 1
#initclip 91
Object.registerClass("FWG.BtnBack", FWG.Btn);
#endinitclip
Symbol 269 MovieClip [FWG.BtnPlay] Frame 1
#initclip 92
Object.registerClass("FWG.BtnPlay", FWG.BtnPlay);
#endinitclip
Symbol 273 MovieClip [FWG.BtnSkip] Frame 1
#initclip 93
Object.registerClass("FWG.BtnSkip", FWG.BtnSkip);
#endinitclip
Symbol 312 MovieClip [FWG.Instructions] Frame 1
#initclip 94
Object.registerClass("FWG.Instructions", FWG.Instructions);
#endinitclip
Symbol 312 MovieClip [FWG.Instructions] Frame 4
btn0.stop();
btn1.stop();
Symbol 313 MovieClip [FWG.PageInst] Frame 1
#initclip 95
Object.registerClass("FWG.PageInst", FWG.PageInst);
#endinitclip
Symbol 321 MovieClip [FWG.MusicCredits] Frame 1
#initclip 96
Object.registerClass("FWG.MusicCredits", FWG.MusicCredits);
#endinitclip
Symbol 337 MovieClip [FWG.BtnPg] Frame 1
#initclip 97
Object.registerClass("FWG.BtnPg", FWG.BtnPg);
#endinitclip
Symbol 341 MovieClip [FWG.BtnInstructions] Frame 1
#initclip 98
Object.registerClass("FWG.BtnInstructions", FWG.BtnInstructions);
#endinitclip
Symbol 345 MovieClip [FWG.BtnAgtys] Frame 1
#initclip 99
Object.registerClass("FWG.BtnAgtys", FWG.BtnAgtys);
#endinitclip
Symbol 349 MovieClip [FWG.BtnDg] Frame 1
#initclip 100
Object.registerClass("FWG.BtnDg", FWG.BtnDg);
#endinitclip
Symbol 353 MovieClip [FWG.Logo] Frame 1
#initclip 101
Object.registerClass("FWG.Logo", FWG.Logo);
#endinitclip
Symbol 358 MovieClip [FWG.BtnCopyright] Frame 1
#initclip 102
Object.registerClass("FWG.BtnCopyright", FWG.BtnCopyright);
#endinitclip
Symbol 362 MovieClip [FWG.BtnCredits] Frame 1
#initclip 103
Object.registerClass("FWG.BtnCredits", FWG.BtnCredits);
#endinitclip
Symbol 366 MovieClip [FWG.PageMenu] Frame 1
#initclip 104
Object.registerClass("FWG.PageMenu", FWG.PageMenu);
#endinitclip
Symbol 368 MovieClip [ui.Label3] Frame 1
#initclip 105
Object.registerClass("ui.Label3", ui.Label);
#endinitclip
Symbol 372 MovieClip [FWG.BtnNo] Frame 1
#initclip 106
Object.registerClass("FWG.BtnNo", FWG.Btn);
#endinitclip
Symbol 376 MovieClip [FWG.BtnNs] Frame 1
#initclip 107
Object.registerClass("FWG.BtnNs", FWG.BtnNs);
#endinitclip
Symbol 380 MovieClip [FWG.BtnOK] Frame 1
#initclip 108
Object.registerClass("FWG.BtnOK", FWG.Btn);
#endinitclip
Symbol 384 MovieClip [FWG.BtnReset] Frame 1
#initclip 109
Object.registerClass("FWG.BtnReset", FWG.Btn);
#endinitclip
Symbol 388 MovieClip [FWG.BtnYes] Frame 1
#initclip 110
Object.registerClass("FWG.BtnYes", FWG.Btn);
#endinitclip
Symbol 389 MovieClip [effect.TxtPopUp] Frame 1
#initclip 111
Object.registerClass("effect.TxtPopUp", effect.TxtPopUp);
#endinitclip
Symbol 389 MovieClip [effect.TxtPopUp] Frame 15
stop();
this.removeMovieClip();
Symbol 400 MovieClip Frame 1
stop();
Symbol 401 MovieClip [effect.SimpleFade] Frame 1
#initclip 112
Object.registerClass("effect.SimpleFade", effect.SimpleFade);
#endinitclip
stop();
Symbol 401 MovieClip [effect.SimpleFade] Frame 10
onHide();
Symbol 401 MovieClip [effect.SimpleFade] Frame 20
onShow();
Symbol 402 MovieClip [FWG.Main] Frame 1
#initclip 113
Object.registerClass("FWG.Main", FWG.Main);
#endinitclip