Frame 1
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
_root.menu = my_cm;
getURL ("fscommand:" + "showmenu", "fasle");
_root.DRScore = 0;
_global.ipb_get_gname = function () {
var _local4 = _root._url;
var _local5 = "";
var _local3 = "";
var _local6 = (_local4.lastIndexOf("\\") + 1);
if ((_local6 == -1) || (_local6 == 0)) {
_local6 = _local4.lastIndexOf("/") + 1;
}
var _local2 = _local6;
var _local7 = String(_local4).length;
while (_local2 < String(_local4).length) {
_local3 = _local4.charAt(_local2);
if (_local3 == ".") {
break;
}
_local5 = _local5 + _local3;
_local2++;
}
return(_local5);
};
ipb_gname = _global.ipb_get_gname();
xx = new LoadVars();
xx.onLoad = function (success) {
if (success) {
_global.ipb_scoreVar = this.scoreVar;
}
};
fname = ((("arcade/gamedata/" + ipb_gname) + "/") + ipb_gname) + ".txt";
xx.load(fname);
Frame 3
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
gotoAndStop ("Loading");
}
Frame 7
stop();
Symbol 7 MovieClip Frame 1
onPress = function () {
};
Symbol 10 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 11 MovieClip Frame 1
_x = (Stage.width / 2);
_y = ((Stage.height / 2) - 30);
Symbol 11 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 10 MovieClip in Symbol 11 MovieClip Frame 25
//component parameters
onClipEvent (construct) {
sTxt = "TXT";
sVariable = "_parent.rate";
autoSize = "center";
bBmp = false;
}
Instance of Symbol 10 MovieClip "mLoading" in Symbol 11 MovieClip Frame 25
//component parameters
onClipEvent (construct) {
sTxt = "Loading...";
sVariable = "";
autoSize = "center";
bBmp = false;
}
Symbol 868 MovieClip Frame 1
if (yy.savescore == 1) {
if (ipb_score == undefined) {
ipb_score = eval (_global.ipb_scoreVar);
}
xx = new LoadVars();
xx.arcadegid = _root.ibpro_gameid;
xx.gscore = ipb_score;
xx.gname = _global.ipb_get_gname();
xx.enscore = (ipb_score * yy.randchar) ^ yy.randchar2;
xx.send("index.php?autocom=arcade&do=savescore", "_self", "POST");
stop();
}
_global.ipbSend = function (ipb_score) {
_root._visible = false;
_root.enabled = false;
xx = new LoadVars();
yy = new LoadVars();
xx.sendAndLoad("index.php?autocom=arcade&do=verifyscore", yy, "POST");
};
Symbol 5 MovieClip [full_popUp] Frame 1
function run() {
var _local2 = star.getBounds(Global.game);
this._x = this._x + (((_local2.xMax - 30) - this._x) * u);
this._y = this._y + (((_local2.yMin + 30) - this._y) * u);
}
var u = 1;
run();
u = 0.5;
Global.addRun(this, "run");
Symbol 5 MovieClip [full_popUp] Frame 67
this.removeMovieClip();
Symbol 780 MovieClip [__Packages.Global] Frame 0
class Global
{
static var keyDownArr, keyUpArr, mainPause, pause, testBar, main, game, onKeyDown, onKeyUp;
function Global () {
}
static function init() {
trace("totalVector \u68C0\u67E5\u4E00\u5171\u6709\u591A\u5C11\u4E2AVector");
_root.onEnterFrame = function () {
Global.runAll();
};
Key.addListener(_root);
_root.onKeyDown = function () {
Global.keyDown();
};
_root.onKeyUp = function () {
Global.keyUp();
};
keyDownArr = new Array();
keyUpArr = new Array();
return(null);
}
static function runAll() {
if (mainPause) {
updateTestBar();
return(undefined);
}
var _local3 = Common.dumpArrByF(runArr, dumpRunArrF);
var _local2 = 0;
while (_local2 < _local3) {
var _local1 = runArr[_local2];
if (pause && (_local1.pauseAble)) {
} else if ((++_local1.intervalNum) >= _local1.interval) {
_local1.intervalNum = 0;
_local1.obj[_local1.runF](--_local1.times);
}
_local2++;
}
updateTestBar();
}
static function dumpRunArrF(runObj) {
return((runObj.obj[runObj.runF] == undefined) || (runObj.times <= 0));
}
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) {
updateTestBar = null;
}
var _local6;
var _local1;
var _local4 = "";
_local4 = _local4 + (("main=" + main) + newline);
_local4 = _local4 + (("game=" + game) + newline);
_local4 = _local4 + (("pause=" + pause) + newline);
_local6 = runArr.length;
_local4 = _local4 + (("runArr.length=" + _local6) + newline);
var _local3 = 0;
while (_local3 < _local6) {
_local1 = runArr[_local3];
_local4 = _local4 + (((_local1.obj + ",") + _local1.runF) + newline);
_local3++;
}
_local4 = _local4 + "--------------------\n";
_local6 = Common.dumpArrByF(checkObjArr, dumpCOAF);
_local3 = 0;
while (_local3 < _local6) {
_local1 = checkObjArr[_local3];
_local4 = _local4 + (((_local1.obj + ",") + _local1.valName) + newline);
var _local2 = _local1.obj[_local1.valName];
var _local5;
switch (Common.getObjType(_local2)) {
case "Array" :
_local5 = _local2.length;
break;
default :
_local5 = _local2;
}
_local4 = _local4 + (_local5 + newline);
_local3++;
}
testBar.showMsg(_local4);
}
static function setMainEnabled(value) {
if (value) {
delete main.onPress;
} else {
main.onPress = function () {
};
main.enabled = false;
}
}
static function addCheck(obj, valName) {
checkObjArr.push({obj:obj, valName:valName});
}
static function delCheck(obj, valName) {
var _local3 = checkObjArr.length;
var _local1 = 0;
while (_local1 < _local3) {
obj = checkObjArr[_local1];
if ((obj.obj == obj) & (obj.valName == valName)) {
checkObjArr[_local1] = null;
return(true);
}
_local1++;
}
return(false);
}
static function dumpCOAF(obj) {
if (typeof(obj.obj) == "movieclip") {
return(obj.obj._name == undefined);
}
return(obj.obj == undefined);
}
static function addKeyDown(obj, runF) {
trace("addKeyDown \u5F85\u6539\u8FDB");
keyDownArr.push({obj:obj, runF:runF});
}
static function addKeyUp(obj, runF) {
keyUpArr.push({obj:obj, runF:runF});
}
static function keyDown() {
runKeyCtrl(keyDownArr);
onKeyDown(Key.getCode());
}
static function keyUp() {
runKeyCtrl(keyUpArr);
onKeyUp(Key.getCode());
}
static function runKeyCtrl(keyCtrlArr) {
var _local2 = keyCtrlArr.length;
while (_local2-- , _local2 >= 0) {
var _local1 = keyCtrlArr[_local2];
if (_local1.obj[_local1.runF]) {
_local1.obj[_local1.runF](Key.getCode());
return(undefined);
}
keyCtrlArr.pop();
}
}
static function clearKeyCtrl() {
keyDownArr = new Array();
keyUpArr = new Array();
}
static var gameInterface = new Object();
static var runArr = new Array();
static var totalVector = 0;
static var checkObjArr = new Array();
static var initObj = init();
}
Symbol 781 MovieClip [__Packages.FWG.BasicMain] Frame 0
class FWG.BasicMain extends MovieClip
{
var _name, _parent, gameName, stageWid, stageHei, totalStage, sndBg, playerInfo, keySetting, isFirstPlay, __currentScore, gamePad, __score, __stageNum, pageId, fadeEffect, stageSave, qualitySetting, snd_mc, __musicOn, __soundOn, isWin, mainContainer, pausePad;
function BasicMain (_gameName, _stageWid, _stageHei, _totalStage, hasKeySetting) {
super();
Global.main = this;
_name = "main";
_parent.stop();
gameName = _gameName;
stageWid = _stageWid;
stageHei = _stageHei;
totalStage = _totalStage;
currentScore = (0);
score = (0);
stageNum = (1);
sndBg = new Sound();
sndBg.attachSound("SndBg1");
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 "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("" + Global.main.gameName, "_blank");
};
break;
case "Download Games" :
btn._release = function () {
this.getURL("", "_blank");
};
break;
case "More Online Games" :
btn._release = function () {
this.getURL("", "_blank");
};
break;
case "Add Games to Your Site" :
btn._release = function () {
this.2("", "_blank");
};
break;
case "" :
btn._release = function () {
this.getURL("", "_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() {
stageNum = (1);
currentScore = (0);
score = (0);
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;
Global.clearKeyCtrl();
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;
Global.clearKeyCtrl();
isWin = true;
fadeTo("FWG.PageGameOver");
}
function lose() {
Global.pause = true;
Global.clearKeyCtrl();
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);
}
function pauseEffect() {
pausePad._visible = (Global.pause = !Global.pause);
}
}
Symbol 782 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 783 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));
}
static function normalize_(v, len) {
if (v.length == 0) {
return(new math.Vector());
}
return(mult_(v, len / v.length));
}
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 _local5 = pArr.length;
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = pArr[_local2];
var _local4 = pArr[((_local2 == (_local5 - 1)) ? 0 : (_local2 + 1))];
tp1.x = x - _local3.x;
tp1.y = y - _local3.y;
tp2.x = _local4.x - _local3.x;
tp2.y = _local4.y - _local3.y;
if (tp2.isRight(tp1)) {
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) {
tp1.x = p3.x - p1.x;
tp1.y = p3.y - p1.y;
tp2.x = p2.x - p3.x;
tp2.y = p2.y - p3.y;
var _local8 = cross_(tp1, tp2);
tp3.x = p4.x - p2.x;
tp3.y = p4.y - p2.y;
var _local6 = cross_(tp2, tp3);
if ((_local8 * _local6) < 0) {
return(false);
}
tp4.x = p1.x - p4.x;
tp4.y = p1.y - p4.y;
var _local4 = cross_(tp3, tp4);
if ((_local6 * _local4) < 0) {
return(false);
}
var _local7 = cross_(tp4, tp1);
if ((_local4 * _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) {
var _local2 = v1.x - v2.x;
var _local1 = v1.y - v2.y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
}
function get _rotation() {
return((Math.atan2(y, x) * 180) / Math.PI);
}
function get _radian() {
return(Math.atan2(y, x));
}
static var tp1 = new math.Vector();
static var tp2 = new math.Vector();
static var tp3 = new math.Vector();
static var tp4 = new math.Vector();
}
Symbol 784 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++;
}
return(_local2);
}
static function dumpArrByF(arr, f) {
var _local2 = arr.length;
var _local1 = 0;
while (_local1 < _local2) {
if (f(arr[_local1])) {
arr.splice(_local1, 1);
_local1--;
_local2--;
}
_local1++;
}
return(_local2);
}
static function dumpArrOn(arr, valName) {
var _local2 = arr.length;
var _local1 = 0;
while (_local1 < _local2) {
if (arr[_local1][valName] == undefined) {
arr.splice(_local1, 1);
_local1--;
_local2--;
}
_local1++;
}
return(_local2);
}
static function forEach(arr, thisObj, fName) {
var _local4 = arr.length;
if (thisObj) {
var _local1 = 0;
while (_local1 < _local4) {
thisObj[fName](arr[_local1], _local1, arr);
_local1++;
}
} else {
var _local1 = 0;
while (_local1 < _local4) {
thisObj = arr[_local1];
thisObj[fName](thisObj, _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 getRanArrByRate(valueArr, rateArr, total) {
var _local7 = new Array(total);
var _local10 = getSum(rateArr);
var _local9 = rateArr.length;
var _local4 = 0;
var _local2 = 0;
var _local3 = 0;
var _local5;
var _local1 = 0;
while (_local1 < total) {
_local4++;
if (_local4 >= _local3) {
_local4 = 0;
_local5 = valueArr[_local2];
_local3 = Math.round((rateArr[_local2] / _local10) * total);
_local2++;
if (_local2 >= _local9) {
_local2 = 0;
}
}
_local7[_local1] = _local5;
_local1++;
}
disorder(_local7);
return(_local7);
}
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, thisObj, fName, recursion) {
var _local3 = getAllChildren(mc, recursion);
var _local4 = _local3.length;
if (thisObj) {
var _local1 = 0;
while (_local1 < _local4) {
thisObj[fName](_local3[_local1]);
_local1++;
}
} else {
var _local1 = 0;
while (_local1 < _local4) {
thisObj = _local3[_local1];
thisObj[fName](thisObj);
_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 randomLine(mc, x1, y1, x2, y2, d) {
trace("Common.randomLine \u672A\u6D4B\u8BD5");
dp.x = x2 - x1;
dp.y = y2 - y1;
var _local7 = dp.length;
var _local3 = Math.round(_local7 / d);
dp.x = dp.x / _local3;
dp.y = dp.y / _local3;
mc.moveTo(x1, y1);
var _local1 = 1;
while (_local1 < _local3) {
mc.lineTo((x1 + (dp.x * _local1)) + ((record.Recorder.getData(Math.random()) - 0.5) * d), (y1 + (dp.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 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) {
trace("obj==null\u65F6\u6307\u5411\u6BCF\u4E2A\u5BF9\u8C61");
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 isBmdHit(obj, bg) {
if (obj.hitTest(bg)) {
return(getBmdHitRect(obj, bg).width > 0);
}
return(false);
}
static function getBmdHitRect(obj, bg) {
return(getContainBmd(obj, bg, 10, 10).getColorBoundsRect(4294967295, 4278190080));
}
static function getContainBmd(obj, bg, 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 _local5 = mc.getNextHighestDepth();
var _local4 = "mc" + (++mcNameId);
var _local2 = mc.attachMovie(id, _local4, _local5, initObj);
if (_local2) {
return(_local2);
}
_local2 = mc.createEmptyMovieClip(_local4, _local5);
for (var _local3 in initObj) {
_local2[_local3] = initObj[_local3];
}
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 getHitP(p1, hitP, mc) {
var _local4 = p1.x;
var _local3 = p1.y;
var _local6 = hitP.x;
var _local5 = hitP.y;
var _local7 = 5;
while (_local7--) {
var _local1 = (_local4 + _local6) / 2;
var _local2 = (_local3 + _local5) / 2;
if (mc.hitTest(_local1, _local2, true)) {
_local6 = _local1;
_local5 = _local2;
} else {
_local4 = _local1;
_local3 = _local2;
}
}
if (mc.hitTest(_local1, _local2, true)) {
hitP.x = _local4;
hitP.y = _local3;
} else {
hitP.x = _local1;
hitP.y = _local2;
}
}
static function getHitPByCircle(p0, hitP, da, mc) {
var _local9 = p0.x;
var _local8 = p0.y;
var _local14 = hitP.x - p0.x;
var _local13 = hitP.y - p0.y;
var _local5 = Math.sqrt((_local14 * _local14) + (_local13 * _local13));
var _local11 = Math.atan2(_local13, _local14);
var _local7 = -da;
var _local6 = da;
var _local10 = 10;
while (_local10--) {
var _local1 = (_local7 + _local6) / 2;
var _local2 = _local11 + _local1;
var _local3 = _local9 + (Math.cos(_local2) * _local5);
var _local4 = _local8 + (Math.sin(_local2) * _local5);
if (mc.hitTest(_local3, _local4, true)) {
_local6 = _local1;
} else {
_local7 = _local1;
}
}
hitP.x = _local3;
hitP.y = _local4;
}
static var a2r = 57.2957795130823;
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]];
static var dp = new math.Vector();
static var tp = new math.Vector();
static var mcNameId = 0;
}
Symbol 785 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", 1, 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 786 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 787 MovieClip [__Packages.record.MouseArrow] Frame 0
class record.MouseArrow extends MovieClip
{
var stop;
function MouseArrow () {
super();
stop();
record.Recorder.mouseArrow = this;
}
}
Symbol 788 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 789 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 790 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 791 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 792 MovieClip [__Packages.FWG.SubmitScore] Frame 0
class FWG.SubmitScore extends MovieClip
{
var stop, _alpha, _visible, btnSubmit, btnX, nameTxt, scoreTxt, send_var, gotoAndStop;
function SubmitScore () {
super();
stop();
_alpha = 100;
_visible = false;
Global.main.submitScore = this;
btnSubmit._release = function () {
gname = "blobstarDR_v2";
_root.DRScore = Global.main.__get__score();
gscore = _root.DRScore;
_global.ipbSend();
};
btnX._release = function () {
Global.main.submitScore.hide();
};
nameTxt.txt.type = "input";
nameTxt.txt.selectable = true;
}
function checkSubmit() {
}
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");
trace((("send_var.name=" + send_var.name) + ",send_var.score=") + send_var.score);
gotoAndStop(2);
Global.main.btnSs._visible = false;
}
}
Symbol 793 MovieClip [__Packages.ui.SBtn] Frame 0
class ui.SBtn extends MovieClip
{
var filters0, filters, greyFilters, __selectAble, stop, btn, rollOver, _rollOver, rollOut, _rollOut, press, _press, release, _release, __selected, gotoAndStop, onRelease, useHandCursor;
function SBtn () {
super();
filters0 = filters.slice();
greyFilters = filters.concat([greyFilter]);
__selectAble = true;
init();
stop();
}
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 onRelease;
btn.enabled = true;
btn.useHandCursor = true;
filters = filters0;
} else {
btn.enabled = false;
onRelease = 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 794 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 795 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 796 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 797 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 798 MovieClip [__Packages.FWG.QualitySetting] Frame 0
class FWG.QualitySetting extends effect.AlphaFadeSp
{
var hide, btnOk, _quality, onKeyUp, __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();
Global.addKeyUp(this, "onKeyUp");
onKeyUp = function () {
trace("\u6309\u952E\u7126\u70B9\u88AB\u8F6C\u79FB\u5230:QualitySetting");
};
quality = (_quality);
}
function fadeHide() {
super.fadeHide();
onKeyUp = null;
}
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 799 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 800 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 801 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);
Global.addKeyUp(this, "onKeyUp");
}
function onKeyUp(keyCode) {
if (!(keyCode === 80)) {
} else {
Global.pause = !Global.pause;
}
}
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 802 MovieClip [__Packages.ui.NumClock] Frame 0
class ui.NumClock extends MovieClip
{
var __totalTime, onTimeUp, __time, txt;
function NumClock () {
super();
}
function start() {
Global.addRun(this, "run", 30, __totalTime);
}
function stop() {
Global.delRun(this, "run");
}
function run(num) {
time = (num);
if (time <= 0) {
timeUp();
}
}
function timeUp() {
stop();
onTimeUp();
}
function get time() {
return(__time);
}
function set time(_time) {
txt.__set__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 803 MovieClip [__Packages.ui.Label] Frame 0
class ui.Label extends MovieClip
{
var txt, __text;
function Label () {
super();
text = (text);
}
function get text() {
if (txt.selectable) {
__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 804 MovieClip [__Packages.FWG.GamePad] Frame 0
class FWG.GamePad extends FWG.BasicGamePad
{
var __totalTsNum, totalTsNumTxt, btnZoomIn, btnZoomOut;
function GamePad () {
super();
}
function get totalTsNum() {
return(__totalTsNum);
}
function set totalTsNum(_totalTsNum) {
__totalTsNum = _totalTsNum;
totalTsNumTxt.__set__text(((Global.game.totalTotalTsNum - __totalTsNum) + "/") + Global.game.totalTotalTsNum);
//return(totalTsNum);
}
function onKeyUp(keyCode) {
switch (keyCode) {
case 80 :
Global.main.pauseEffect();
break;
case 90 :
if (btnZoomIn._visible) {
btnZoomIn._release();
} else {
btnZoomOut._release();
}
}
}
function init() {
super.init();
totalTsNum = (Global.game.totalTsNum);
btnZoomIn._visible = false;
btnZoomIn._rollOver = function () {
ui.Alt.show("Zoom In. Hot Key: Z");
ui.Alt.hideDelay(30);
};
btnZoomOut._rollOver = function () {
ui.Alt.show("Zoom Out. Hot Key: Z");
ui.Alt.hideDelay(30);
};
btnZoomIn._release = function () {
this._visible = false;
this._parent.btnZoomOut._visible = true;
Global.game.zoomIn();
};
btnZoomOut._release = function () {
this._visible = false;
this._parent.btnZoomIn._visible = true;
Global.game.zoomOut();
};
}
}
Symbol 805 MovieClip [__Packages.FWG.PausePad] Frame 0
class FWG.PausePad extends MovieClip
{
var _visible, btnResume;
function PausePad () {
super();
Global.main.pausePad = this;
_visible = false;
}
function init() {
btnResume._rollOver = function () {
ui.Alt.show("Press P to resume.");
ui.Alt.hideDelay(30);
};
btnResume._release = function () {
Global.main.pauseEffect();
};
}
}
Symbol 806 MovieClip [__Packages.ui.Alert] Frame 0
class ui.Alert extends effect.AlphaFadeSp
{
static var alert;
var btnYes, btnNo, onKeyUp, 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 fadeShow() {
super.fadeShow();
Global.addKeyUp(this, "onKeyUp");
onKeyUp = function () {
trace("\u6309\u952E\u7126\u70B9\u88AB\u8F6C\u79FB\u5230:Alert");
};
}
function fadeHide() {
super.fadeHide();
onKeyUp = null;
}
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 807 MovieClip [__Packages.FWG.Main] Frame 0
class FWG.Main extends FWG.BasicMain
{
function Main () {
super("blobstar", 400, 400, 12);
ui.ColorPad.firstInit();
blobstar.EyeSelecter.firstInit();
}
}
Symbol 808 MovieClip [__Packages.ui.ColorPad] Frame 0
class ui.ColorPad extends MovieClip
{
static var cps;
var bmd, bg, dropper, stopDrag, onSelect, _xmouse, _ymouse;
function ColorPad () {
super();
bmd = new flash.display.BitmapData(bg._width, bg._height, true, 0);
bmd.draw(bg);
bg.onRollOver = function () {
this._parent.beginSelect();
};
bg.onRollOut = function () {
this._parent.endSelect();
};
bg.onRelease = function () {
this._parent.confirm();
};
dropper._visible = false;
}
static function get color() {
return(cps.dataObj.color);
}
static function firstInit() {
cps = new ui.ColorPadSave();
if (cps.dataObj.color == 0) {
cps.dataObj.color = 4284481280;
}
}
function beginSelect() {
Mouse.hide();
dropper._visible = true;
dropper.startDrag(true);
Global.addRun(this, "select", 1, 0, true);
}
function endSelect() {
Mouse.show();
dropper._visible = false;
stopDrag();
onSelect(cps.dataObj.color);
Global.delRun(this, "select");
}
function confirm() {
var _local2 = bmd.getPixel32(_xmouse, _ymouse);
if (_local2 == cps.dataObj.color) {
} else {
cps.dataObj.color = _local2;
onSelect(cps.dataObj.color);
}
}
function select() {
var _local2 = bmd.getPixel32(_xmouse, _ymouse);
if (_local2 == cps.dataObj.color) {
} else {
Common.setRGB(dropper.colorMc, _local2);
onSelect(_local2);
}
}
}
Symbol 809 MovieClip [__Packages.ui.ColorPadSave] Frame 0
class ui.ColorPadSave extends FWG.LocalSetting
{
function ColorPadSave () {
super(Global.main.gameName + "_ColorPadSave");
}
var dataObj = {color:0};
}
Symbol 810 MovieClip [__Packages.blobstar.EyeSelecter] Frame 0
class blobstar.EyeSelecter extends MovieClip
{
static var ess;
var onSelect, currBtn;
function EyeSelecter () {
super();
}
static function get id() {
return(ess.dataObj.id);
}
static function firstInit() {
ess = new blobstar.EyeSelecterSave();
}
function init() {
var _local3 = 1;
while (_local3 <= 10) {
var _local2 = this["btn" + _local3];
_local2.id = _local3;
_local2.eye.gotoAndStop(_local3);
_local2._rollOver = function () {
this._parent.select(this);
};
_local2._rollOut = function () {
this._parent.cancel();
};
_local2._release = function () {
this._parent.confirm(this);
};
_local3++;
}
confirm(this["btn" + ess.dataObj.id]);
}
function select(btn) {
onSelect(btn.id);
}
function cancel() {
onSelect(ess.dataObj.id);
}
function confirm(btn) {
ess.dataObj.id = btn.id;
currBtn.selected = false;
currBtn = btn;
currBtn.selected = true;
onSelect(ess.dataObj.id);
}
}
Symbol 811 MovieClip [__Packages.blobstar.EyeSelecterSave] Frame 0
class blobstar.EyeSelecterSave extends FWG.LocalSetting
{
function EyeSelecterSave () {
super(Global.main.gameName + "_EyeSelecterSave");
}
var dataObj = {id:7};
}
Symbol 812 MovieClip [__Packages.FWG.BasicGame] Frame 0
class FWG.BasicGame extends MovieClip
{
var effectArea;
function BasicGame () {
super();
Global.game = this;
}
function initClock(totalTime) {
Global.main.gamePad.clock.__set__totalTime(totalTime);
Global.main.gamePad.clock.start();
Global.main.gamePad.clock.onTimeUp = function () {
Global.pause = true;
Global.game.timeUp();
};
}
function stageClear() {
Global.main.stageClear();
}
function win() {
Global.main.win();
}
function timeUp() {
Global.pause = true;
Global.main.gamePad.timeUp_mc.gotoAndPlay(2);
Global.addKeyUp(Global.main.gamePad.timeUp_mc, "onKeyUp");
Global.main.gamePad.timeUp_mc.onKeyUp = function () {
trace("\u6309\u952E\u7126\u70B9\u88AB\u8F6C\u79FB\u5230:timeUp_mc");
};
Global.addRun(this, "lose", 60, 1, true);
}
function lose() {
Global.main.lose();
}
function addScore(score, x, y) {
Global.main.addScore(score);
addTxtPopUp("+" + score, x, y);
}
function addTxtPopUp(msg, x, y) {
var _local2 = new math.Vector();
if (x instanceof MovieClip) {
Common.localToLocal(_local2, x, this);
} else if (!isNaN(x.x)) {
_local2.x = x.x;
_local2.y = x.y;
} else if (isNaN(x)) {
Common.localToLocal(_local2, Global.main.gamePad.scoreTxtPos, this);
} else {
_local2.x = x;
_local2.y = y;
}
addEffect("effect.TxtPopUp", {text:msg, _x:_local2.x, _y:_local2.y});
}
function addEffect(id, initObj) {
return(Common.addMcToTop(effectArea, id, initObj));
}
}
Symbol 813 MovieClip [__Packages.blobstar.Game] Frame 0
class blobstar.Game extends FWG.BasicGame
{
var pCenter, tp, vr, av, vrMax, posArr, starArr, shmArr, totalTreasure, bg, __totalTsNum, currKeyCode, initClock, totalTotalTsNum, valueArr, world, starArea, isZooming, gravityField, isZoomingIn, rotateOffset, isZoomingOut, rotate0, isLose, _parent;
function Game () {
super();
Global.gameInterface.f1Arr = new Array();
blobstar.Treasure.removeF = "remove2";
blobstar.Star.growValue = 0;
Global.addCheck(this, "posArr");
Global.addCheck(this, "starArr");
Global.addCheck(this, "shmArr");
pCenter = new math.Vector();
tp = new math.Vector();
vr = 0;
av = 0.6;
vrMax = 2;
posArr = new Array();
starArr = new Array();
shmArr = new Array();
totalTreasure = 0;
bg.gotoAndStop(Global.main.__get__stageNum());
Global.addRun(this, "init", 2, 1);
Key.addListener(this);
}
function get totalTsNum() {
return(__totalTsNum);
}
function set totalTsNum(_totalTsNum) {
__totalTsNum = _totalTsNum;
if (__totalTsNum < 0) {
__totalTsNum = 0;
}
Global.main.gamePad.__set__totalTsNum(__totalTsNum);
if (__totalTsNum == 0) {
Global.addRun(this, "stageClear", 5, 1);
}
//return(totalTsNum);
}
function keyDown(keyCode) {
switch (keyCode) {
case 65 :
divide();
break;
case 38 :
jump(30);
break;
case 40 :
jump(-30);
break;
case 68 :
shake();
}
}
function onKeyDown() {
if (Global.pause) {
return(undefined);
}
if (currKeyCode > 0) {
} else {
var _local2 = Key.getCode();
switch (_local2) {
case 65 :
case 38 :
case 40 :
case 68 :
currKeyCode = _local2;
keyDown(currKeyCode);
}
}
}
function onKeyUp() {
if (currKeyCode > 0) {
switch (Key.getCode()) {
case 65 :
case 38 :
case 40 :
case 68 :
currKeyCode = -1;
}
}
}
function init() {
bgSndId = 3 - bgSndId;
Global.main.sndBg.stop();
Global.main.sndBg.attachSound("SndBg" + bgSndId);
Global.main.__set__musicOn(Global.main.musicOn);
if (Global.main.__get__stageNum() < 5) {
initClock(120);
} else {
initClock(180);
}
totalTsNum = ((totalTotalTsNum = posArr.length));
valueArr = Common.getRanArrByRate([1, 2, 3, 4, 5], tsRateArr[(Global.main.__get__stageNum() - 1) % 2], totalTotalTsNum);
var _local3 = 0;
while (_local3 < totalTotalTsNum) {
var _local2 = posArr[_local3];
var _local5 = valueArr[_local3];
var _local4 = {_x:_local2._x, _y:_local2._y, _rotation:_local2._rotation};
switch (_local5) {
case 1 :
case 2 :
case 3 :
case 4 :
_local4.f1 = _local5;
shmArr.push(Common.addMcToTop(world, "blobstar.Treasure", _local4));
break;
case 5 :
shmArr.push(Common.addMcToTop(world, "blobstar.Fish2", _local4));
}
Common.removeFixMc(_local2);
_local3++;
}
world.timeStep();
scrollMov(1, 1, 1);
Global.main.gamePad.init();
starArea.onMov = function (rotation) {
Global.game.rotateWorld(-rotation);
};
Global.addRun(this, "run");
}
function setTsF1(shm) {
if (shm instanceof blobstar.Treasure) {
shm.f1 = valueArr.splice(random(valueArr.length), 1)[0];
}
}
function jump(value) {
forEachStar("jump", value);
Global.main.playSound("SndJump");
}
function shake() {
forEachStar("shake");
}
function divide() {
forEachStar("divide");
}
function combine() {
var _local13 = Common.dumpArrOn(starArr, "_name") - 1;
var _local11 = 0;
while (_local11 < _local13) {
var _local6 = starArr[_local11];
var _local9 = _local11 + 1;
while (_local9 <= _local13) {
var _local5 = starArr[_local9];
if (_local6.hitTest(_local5)) {
var _local3 = _local6.getBounds(Global.game.world);
var _local2 = _local5.getBounds(Global.game.world);
var _local8 = ((_local6.level > _local5.level) ? (_local6) : (_local5));
var _local12 = addStarByStar(_local8, ((((_local3.xMin < _local2.xMin) ? (_local3.xMin) : (_local2.xMin)) + ((_local3.xMax > _local2.xMax) ? (_local3.xMax) : (_local2.xMax))) / 2) - _local8.centerP.x, ((((_local3.yMin < _local2.yMin) ? (_local3.yMin) : (_local2.yMin)) + ((_local3.yMax > _local2.yMax) ? (_local3.yMax) : (_local2.yMax))) / 2) - _local8.centerP.y, 0, _local6.level + _local5.level);
var _local7 = _local6.tsNodeArr2.concat(_local5.tsNodeArr2);
var _local10 = _local7.length;
var _local4 = 0;
while (_local4 < _local10) {
_local7[_local4] = _local7[_local4].treasure;
_local4++;
}
Common.removeFixMc(_local6);
Common.removeFixMc(_local5);
_local12.getTreasures(_local7);
return(undefined);
}
_local9++;
}
_local11++;
}
}
function addStarByStar(star, dx, dy, dRota, level1, _hurtValue) {
return(Common.addMcToTop(starArea, "blobstar.Star", {_x:star.centerP.x + dx, _y:star.centerP.y + dy, rotation:star.rotation + dRota, level:level1, hurtValue:_hurtValue}));
}
function forEachStar(fName, argument) {
var _local3 = Common.dumpArrOn(starArr, "_name");
var _local2 = 0;
while (_local2 < _local3) {
starArr[_local2][fName](argument);
_local2++;
}
}
function rotate(value) {
if (value > 0) {
vr = vr + av;
if (vr > vrMax) {
vr = vrMax;
}
} else {
vr = vr - av;
if (vr < (-vrMax)) {
vr = -vrMax;
}
}
rotateWorld(vr);
}
function slide() {
vr = vr * 0.9;
rotateWorld(vr);
}
function rotateWorld(da) {
if ((da * da) <= 0.0001) {
return(undefined);
}
pCenter.x = xCenter;
pCenter.y = yCenter;
world.globalToLocal(pCenter);
world._rotation = world._rotation + da;
world.localToGlobal(pCenter);
world._x = world._x + (xCenter - pCenter.x);
world._y = world._y + (yCenter - pCenter.y);
if (!isZooming) {
gravityField.update();
}
}
function scrollBy(x1, y1, u) {
world._x = world._x + ((xCenter - x1) * u);
world._y = world._y + ((yCenter - y1) * u);
}
function zoomIn() {
starArea.spreadIn();
starArea.onMovFinished = function () {
Global.game.world._rotation = Global.game.rotate0;
Global.game.isZoomingIn = false;
Global.game.isZooming = false;
};
isZoomingIn = true;
}
function zoomOut() {
rotateOffset = Math.round((world._rotation + 360) / 90);
starArea.spreadOut(rotateOffset);
starArea.onMovFinished = function () {
Global.game.world._rotation = Global.game.rotateOffset * 90;
Global.game.isZoomingOut = false;
};
isZoomingOut = true;
isZooming = true;
rotate0 = world._rotation;
}
function run() {
var _local5 = Common.dumpArrOn(shmArr, "_name");
if (isZooming && (!isLose)) {
} else {
world.timeStep();
if (Key.isDown(37)) {
rotate(-1);
} else if (Key.isDown(39)) {
rotate(1);
} else {
slide();
}
if (Key.isDown(83)) {
combine();
}
forEachStar("run");
var _local4 = 0;
while (_local4 < _local5) {
var _local3 = shmArr[_local4];
if (_local3 instanceof blobstar.Enemy) {
_local3.run();
}
_local4++;
}
}
scrollMov(0.1, 0.2, 0.01);
var _local4 = 0;
while (_local4 < _local5) {
var _local3 = shmArr[_local4];
var _local2 = _local3.getBounds(this);
if ((((_local2.xMin > (zoomRect.x + zoomRect.width)) || (_local2.yMin > (zoomRect.y + zoomRect.height))) || (_local2.xMax < zoomRect.x)) || (_local2.yMax < zoomRect.y)) {
_local3.hide();
} else {
_local3.show();
}
_local4++;
}
}
function addStar(star) {
starArr.push(star);
}
function addPos(posCircle) {
posArr.push(posCircle);
}
function scrollMov(u, u1, u2) {
var _local2 = starArea.getBounds(this);
_local2.width = _local2.xMax - _local2.xMin;
_local2.height = _local2.yMax - _local2.yMin;
var _local4 = Math.min(zoomWid / _local2.width, zoomHei / _local2.height);
var _local3 = world._xscale;
if (_local4 < 1) {
_local3 = _local3 + ((_local3 * (_local4 - 1)) * u1);
} else {
_local3 = _local3 + ((_local3 * (_local4 - 1)) * u2);
}
if (_local3 > 100) {
_local3 = 100;
}
pCenter.x = xCenter;
pCenter.y = yCenter;
world.globalToLocal(pCenter);
world._xscale = (world._yscale = _local3);
world.localToGlobal(pCenter);
world._x = world._x + (xCenter - pCenter.x);
world._y = world._y + (yCenter - pCenter.y);
_local2 = starArea.getBounds(this);
scrollBy((_local2.xMin + _local2.xMax) / 2, (_local2.yMin + _local2.yMax) / 2, u);
}
function stageClear() {
super.stageClear();
var _local8 = Common.dumpArrOn(starArr, "_name");
var _local7 = 0;
var _local6 = 0;
while (_local6 < _local8) {
var _local4 = starArr[_local6];
var _local5 = _local4.tsNodeArr2.length;
var _local3 = 0;
while (_local3 < _local5) {
Global.gameInterface.f1Arr.push(_local4.tsNodeArr2[_local3].treasure.f1);
_local3++;
}
_local7 = _local7 + _local4.level;
_local6++;
}
_local6 = 0;
while (_local6 < _local7) {
Global.gameInterface.f1Arr.push(5);
_local6++;
}
Global.gameInterface.time = Global.main.gamePad.clock.time;
}
function checkLose() {
var _local2 = Common.dumpArrOn(starArr, "_name");
if (_local2 > 0) {
} else {
isLose = true;
lose();
}
}
function lose() {
Global.pause = true;
run = null;
Common.addMcToTop(_parent, "FWG.PageGameOver");
}
static var zoomWid = 400;
static var zoomHei = 400;
static var xCenter = zoomWid / 2;
static var yCenter = zoomHei / 2;
static var zoomRect = new flash.geom.Rectangle(0, 0, zoomWid, zoomHei);
static var tsRateArr = [[0.1, 0.2, 0.3, 0.5, 0.3], [0.1, 0.3, 0.3, 0.6, 0.3], [0.2, 0.2, 0.3, 0.6, 0.3], [0.2, 0.3, 0.2, 0.6, 0.3], [0.3, 0.3, 0.2, 0.4, 0.3], [0.3, 0.3, 0.3, 0.2, 0.3]];
static var bgSndId = 1;
}
Symbol 814 MovieClip [__Packages.ph.PhWorld] Frame 0
class ph.PhWorld extends MovieClip
{
var gotoAndStop, ffArr, dotArr, hsArr;
function PhWorld () {
super();
Global.addCheck(this, "ffArr");
Global.addCheck(this, "dotArr");
Global.addCheck(this, "hsArr");
Global.game.world = this;
gotoAndStop(Global.main.__get__stageNum() + 1);
ffArr = new Array();
dotArr = new Array();
hsArr = new Array();
}
function addFf(ff) {
ffArr.push(ff);
}
function addDot(dot) {
dotArr.push(dot);
}
function addHs(hs) {
hsArr.push(hs);
}
function dumpF(obj) {
return(obj.mc._name == undefined);
}
function timeStep() {
var _local7 = Common;
var _local9 = _local7.dumpArrOn(ffArr, "_name");
var _local6 = _local7.dumpArrByF(dotArr, dumpF);
var _local8 = _local7.dumpArrOn(hsArr, "_name");
var _local2;
var _local4;
var _local5;
_local2 = _local9;
while (_local2--) {
_local4 = ffArr[_local2];
var _local3 = _local6;
while (_local3--) {
_local4.f(dotArr[_local3]);
}
}
_local2 = _local8;
while (_local2--) {
_local5 = hsArr[_local2];
_local5.fRun();
_local5.adjust();
}
_local2 = _local6;
while (_local2--) {
dotArr[_local2].mov();
}
}
}
Symbol 815 MovieClip [__Packages.ph.ForceField] Frame 0
class ph.ForceField extends MovieClip
{
var a, p0, p1, p2, p3, getBounds, pArr;
function ForceField () {
super();
Global.game.world.addFf(this);
a = new math.Vector();
p0 = new math.Vector();
p1 = new math.Vector();
p2 = new math.Vector();
p3 = new math.Vector();
update();
}
function update() {
trace("force field update");
var _local2 = getBounds(this);
p0.x = _local2.xMin;
p0.y = _local2.yMin;
p1.x = _local2.xMax;
p1.y = _local2.yMin;
p2.x = _local2.xMax;
p2.y = _local2.yMax;
p3.x = _local2.xMin;
p3.y = _local2.yMax;
Common.localToLocal(p0, this, Global.game.world);
Common.localToLocal(p1, this, Global.game.world);
Common.localToLocal(p2, this, Global.game.world);
Common.localToLocal(p3, this, Global.game.world);
pArr = [p0, p1, p2, p3];
a.x = p3.x - p0.x;
a.y = p3.y - p0.y;
a.normalize(aValue);
}
function f(dot) {
if (dot.o.isInside(pArr)) {
trace("\u6D88\u8017\u6BD4\u8F83\u591A");
dot.addA(a);
}
}
var aValue = 2;
}
Symbol 816 MovieClip [__Packages.ph.Dot] Frame 0
class ph.Dot
{
var adjustP, mc, o, v, a;
function Dot (_mc, x, y, _m) {
adjustP = new math.Vector();
adjustP.x = null;
Global.game.world.addDot(this);
mc = _mc;
o = new math.Vector(x, y);
v = new math.Vector();
a = new math.Vector();
}
function remove() {
mc = null;
}
function addA(_a) {
a.x = a.x + _a.x;
a.y = a.y + _a.y;
}
function getNextPos(p) {
var _local2 = v.x + (a.x / 2);
var _local3 = v.y + (a.y / 2);
var _local4 = (_local2 * _local2) + (_local3 * _local3);
if (_local4 > 400) {
var _local5 = 20 / Math.sqrt(_local4);
_local2 = _local2 * _local5;
_local3 = _local3 * _local5;
}
p.x = o.x + _local2;
p.y = o.y + _local3;
}
function mov() {
if (adjustP.x == null) {
getNextPos(o);
v.x = v.x + (a.x * 0.4);
v.y = v.y + (a.y * 0.4);
if (v.length > maxV) {
v.normalize(maxV);
}
} else {
o.x = adjustP.x;
o.y = adjustP.y;
adjustP.x = null;
v.x = (v.y = 0);
}
a.x = 0;
a.y = 0;
}
function redraw() {
Common.drawCircle(mc, o.x, o.y, 5);
}
static var maxV = 20;
}
Symbol 817 MovieClip [__Packages.ph.HelixSystem] Frame 0
class ph.HelixSystem extends MovieClip
{
var totalHelix, helixArr;
function HelixSystem () {
super();
Global.addCheck(this, "dotArr");
Global.addCheck(this, "helixArr");
Global.game.world.addHs(this);
}
function fRun() {
var _local2 = totalHelix;
while (_local2--) {
helixArr[_local2].fRun();
}
}
function adjust() {
}
}
Symbol 818 MovieClip [__Packages.ph.Ground] Frame 0
class ph.Ground extends MovieClip
{
function Ground () {
super();
Global.game.ground = this;
}
}
Symbol 819 MovieClip [__Packages.blobstar.StarArea] Frame 0
class blobstar.StarArea extends MovieClip
{
var isSpreadIn, vertexArr, mcArr, getBounds, globalToLocal, onMov, onMovFinished;
function StarArea () {
super();
Global.game.starArea = this;
}
function spreadOut(offset) {
isSpreadIn = false;
vertexArr = new Array(4);
Common.forEach(mcArr, null, "removeMovieClip");
mcArr = new Array(4);
var _local6 = getBounds(Global.game);
var _local3 = 0;
while (_local3 < 4) {
mcArr[_local3] = Common.addMcToTop(this, "");
_local3++;
}
vertexArr[0] = new math.Vector(_local6.xMin, _local6.yMin);
vertexArr[1] = new math.Vector(_local6.xMax, _local6.yMin);
vertexArr[2] = new math.Vector(_local6.xMax, _local6.yMax);
vertexArr[3] = new math.Vector(_local6.xMin, _local6.yMax);
mcArr[(0 + offset) % 4].xt = 0;
mcArr[(0 + offset) % 4].yt = 0;
mcArr[(1 + offset) % 4].xt = 1600;
mcArr[(1 + offset) % 4].yt = 0;
mcArr[(2 + offset) % 4].xt = 1600;
mcArr[(2 + offset) % 4].yt = 1600;
mcArr[(3 + offset) % 4].xt = 0;
mcArr[(3 + offset) % 4].yt = 1600;
Common.setRGB(mcArr[(0 + offset) % 4], 16711680);
Common.setRGB(mcArr[(1 + offset) % 4], 65280);
Common.setRGB(mcArr[(2 + offset) % 4], 255);
Common.setRGB(mcArr[(3 + offset) % 4], 16777215);
_local3 = 0;
while (_local3 < 4) {
var _local2 = mcArr[_local3];
_local2._alpha = 0;
_local2.moving = true;
_local2.clear();
_local2.lineStyle(1, 16711680);
_local2.beginFill(16777215);
Common.drawCircle(_local2, 0, 0, 10);
_local2.endFill();
var _local4 = vertexArr[_local3].clone();
globalToLocal(_local4);
_local2._x = (_local2.x0 = _local4.x);
_local2._y = (_local2.y0 = _local4.y);
_local3++;
}
Global.addRun(this, "spreadRun");
}
function spreadIn() {
isSpreadIn = true;
var _local3 = 0;
while (_local3 < 4) {
var _local2 = mcArr[_local3];
_local2.moving = true;
_local2.xt = _local2.x0;
_local2.yt = _local2.y0;
_local3++;
}
Global.addRun(this, "spreadRun");
}
function spreadRun() {
var _local6 = true;
var _local5 = 0;
while (_local5 < 4) {
var _local2 = mcArr[_local5];
if (_local2.moving) {
_local6 = false;
var _local4 = _local2.xt - _local2._x;
var _local3 = _local2.yt - _local2._y;
if (((_local4 * _local4) + (_local3 * _local3)) < 2) {
_local2._x = _local2.xt;
_local2._y = _local2.yt;
_local2.moving = false;
} else {
_local2._x = _local2._x + (_local4 * 0.3);
_local2._y = _local2._y + (_local3 * 0.3);
}
}
_local5++;
}
if (_local6) {
Global.delRun(this, "spreadRun");
movFinished();
}
var _local8 = new math.Vector();
var _local7 = new math.Vector();
mcArr[0].localToGlobal(_local8);
mcArr[1].localToGlobal(_local7);
onMov(Math.atan2(_local7.y - _local8.y, _local7.x - _local8.x) * Common.a2r);
}
function movFinished() {
if (isSpreadIn) {
Common.forEach(mcArr, null, "removeMovieClip");
}
onMovFinished();
}
}
Symbol 820 MovieClip [__Packages.ph.GravityField] Frame 0
class ph.GravityField extends ph.ForceField
{
var _visible, p0, p1, a, aValue;
function GravityField () {
super();
Global.game.gravityField = this;
_visible = false;
}
function update() {
p0.x = 0;
p0.y = 0;
p1.x = 0;
p1.y = 100;
Common.localToLocal(p0, this, Global.game.world);
Common.localToLocal(p1, this, Global.game.world);
a.x = p1.x - p0.x;
a.y = p1.y - p0.y;
a.normalize(aValue);
}
function f(dot) {
dot.addA(a);
}
}
Symbol 821 MovieClip [__Packages.blobstar.ShowHideMc] Frame 0
class blobstar.ShowHideMc extends MovieClip
{
var catchAble, gotoAndStop, f1, _visible;
function ShowHideMc () {
super();
catchAble = true;
hide();
}
function show() {
gotoAndStop(f1);
}
function hide() {
gotoAndStop("blank");
}
function get getAble() {
return(_visible && (catchAble));
}
function run() {
}
}
Symbol 822 MovieClip [__Packages.blobstar.Treasure] Frame 0
class blobstar.Treasure extends blobstar.ShowHideMc
{
static var removeF;
var nextP, tp, dot, _x, _y, value, f1, _xscale, _yscale, tsNode;
function Treasure () {
super();
nextP = new math.Vector();
tp = new math.Vector();
updateValue();
}
function drop(vx, vy) {
dot = new ph.Dot(Global.game.world, _x, _y);
dot.v.x = vx;
dot.v.y = vy;
Global.addRun(this, "movRun");
}
function updateValue() {
value = valueArr[f1 - 1];
}
function movRun() {
dot.getNextPos(nextP);
Global.game.world.localToGlobal(nextP);
if (Global.game.ground.hitTest(nextP.x, nextP.y, true)) {
this[removeF]();
} else {
_x = dot.o.x;
_y = dot.o.y;
}
}
function remove1() {
tp.x = dot.o.x;
tp.y = dot.o.y;
Global.game.world.localToGlobal(tp);
Common.getHitP(tp, nextP, Global.game.ground);
Global.game.world.globalToLocal(nextP);
_x = nextP.x;
_y = nextP.y;
Global.delRun(this, "movRun");
dot.remove();
}
function remove2() {
dot.remove();
Common.removeFixMc(this);
}
function toSmallDelay() {
Global.addRun(this, "toSmall", 150, 1);
}
function toSmall() {
Global.addRun(this, "toSmallRun", 1, 15);
}
function toSmallRun(runTimes) {
_xscale = _xscale * 0.8;
_yscale = _yscale * 0.8;
if (runTimes <= 0) {
tsNode.star.storeTreasure(this);
Common.removeFixMc(this);
}
}
static var valueArr = [50, 20, 10, 2];
}
Symbol 823 MovieClip [__Packages.blobstar.TsNode] Frame 0
class blobstar.TsNode
{
var star, kMid, kBottom, dp, o, o1, o2, o3, update, treasure;
function TsNode (_star, _kMid, _kBottom, _o1, _o2, _o3) {
star = _star;
kMid = _kMid;
kBottom = _kBottom;
dp = new math.Vector();
o = new math.Vector();
o1 = _o1;
o2 = _o2;
o3 = _o3;
update = update1;
}
function update1() {
var _local3 = getX() - treasure._x;
var _local2 = getY() - treasure._y;
if (((_local3 * _local3) + (_local2 * _local2)) < 2) {
update = update2;
} else {
treasure._x = treasure._x + (_local3 * 0.5);
treasure._y = treasure._y + (_local2 * 0.5);
}
}
function update2() {
var _local3 = getX();
var _local2 = getY();
dp.x = _local3 - treasure._x;
dp.y = _local2 - treasure._y;
treasure._x = _local3;
treasure._y = _local2;
}
function getX() {
return((kMid * (((kBottom * (o3.x - o2.x)) + o2.x) - o1.x)) + o1.x);
}
function getY() {
return((kMid * (((kBottom * (o3.y - o2.y)) + o2.y) - o1.y)) + o1.y);
}
function drop() {
treasure.drop(dp.x, dp.y);
treasure = null;
}
}
Symbol 824 MovieClip [__Packages.blobstar.Star] Frame 0
class blobstar.Star extends ph.HelixSystem
{
static var growValue;
var gotoAndStop, rotation, level, r, total, setColor, setEyeId, dp, tp, nextP, hitShapeV, centerP, _x, _y, dotArr, helixArr, legPartArr, tsNodeArr, tsNodeArr2, vertexArr, da, body, totalHelix, hurtValue, _alpha, eye, starArr, _visible, __color, __get__eyeId, full_popUp, isMenu, localToGlobal;
function Star () {
super();
Global.addCheck(this, "tsNodeArr");
Global.addCheck(this, "tsNodeArr2");
Global.addCheck(this, "vertexArr");
gotoAndStop(2);
if (isNaN(rotation)) {
rotation = -90;
}
if (level > 1) {
} else {
level = 1;
}
r = getRByLevel(level);
total = 5;
if (setColor > 0) {
color = (setColor);
} else {
color = (ui.ColorPad.color);
}
if (setEyeId > 0) {
eyeId = (setEyeId);
} else {
eyeId = (blobstar.EyeSelecter.id);
}
dp = new math.Vector();
tp = new math.Vector();
nextP = new math.Vector();
hitShapeV = new math.Vector();
centerP = new math.Vector();
Global.game.addStar(this);
var _local9 = _x;
var _local8 = _y;
_x = 0;
_y = 0;
dotArr = new Array();
helixArr = new Array();
legPartArr = new Array();
tsNodeArr = new Array();
tsNodeArr2 = new Array();
vertexArr = new Array();
da = (Math.PI*2) / total;
var _local3 = 0;
while (_local3 < total) {
var _local4 = (_local3 * da) + (rotation / Common.a2r);
dotArr.push(new ph.Dot(this, _local9 + (r * Math.cos(_local4)), _local8 + (r * Math.sin(_local4))));
_local3++;
}
_local3 = 0;
while (_local3 < total) {
addHelix(dotArr[_local3], dotArr[(_local3 + 1) % total]);
addHelix(dotArr[_local3], dotArr[(_local3 + 2) % total]);
legPartArr.push(Common.addMcToTop(body, "blobstar.LegPart0"));
legPartArr.push(Common.addMcToTop(body, "blobstar.LegPart1"));
vertexArr.push(new math.Vector());
vertexArr.push(new math.Vector());
_local3++;
}
updateVertexs();
totalHelix = helixArr.length;
var _local6 = level + 1;
_local3 = ((7 * (2 + _local6)) * level) / 2;
var _local7 = level * 10;
var _local5 = new Array(_local3);
while (_local3--) {
_local5[_local3] = _local3 < _local7;
}
Common.disorder(_local5);
_local3 = 0;
while (_local3 < total) {
addTsNodeByVertexs(_local3 * 2, (((_local3 + total) * 2) - 1) % (total * 2), (_local3 * 2) + 1, _local6, _local5);
_local3++;
}
addTsNodeByVertexs(7, 5, 9, _local6, _local5);
addTsNodeByVertexs(3, 1, 5, _local6, _local5);
redraw();
}
function getRByLevel(level1) {
return(40 * Math.sqrt(level1));
}
function run() {
if (hurtValue > 0) {
hurtValue--;
_alpha = (((hurtValue % 5) < 2) ? 100 : 50);
}
updateVertexs();
redraw();
Common.forEach(tsNodeArr2, null, "update");
checkHitShm();
}
function redraw() {
body.clear();
body.beginFill(16777215);
var _local4 = vertexArr[(total * 2) - 1];
body.moveTo(_local4.x, _local4.y);
var _local3 = 0;
while (_local3 < total) {
var _local2 = 0;
while (_local2 < 2) {
_local4 = vertexArr[(_local3 * 2) + _local2];
body.lineTo(_local4.x, _local4.y);
_local2++;
}
_local3++;
}
body.endFill();
dp.x = dotArr[0].o.x - centerP.x;
dp.y = dotArr[0].o.y - centerP.y;
rotation = dp._rotation;
eye._x = centerP.x + (dp.x * 0.2);
eye._y = centerP.y + (dp.y * 0.2);
eye._rotation = rotation + 90;
_local3 = 0;
while (_local3 < total) {
var _local5 = legPartArr[_local3 * 2];
var _local6 = legPartArr[(_local3 * 2) + 1];
_local5.update(vertexArr[_local3 * 2], vertexArr[(_local3 * 2) + 1]);
_local6.update(vertexArr[(_local3 * 2) + 1], vertexArr[((_local3 + 1) % total) * 2]);
_local3++;
}
}
function addTsNodeByVertexs(i1, i2, i3, totalLine, ranArr) {
var _local8 = vertexArr[i1];
var _local7 = vertexArr[i2];
var _local6 = vertexArr[i3];
var _local3 = 1;
while (_local3 < totalLine) {
var _local2 = 0;
while (_local2 <= _local3) {
if (ranArr.pop()) {
var _local4 = new blobstar.TsNode(this, (_local3 / totalLine) + ((Math.random() - 0.5) * 0.1), (_local2 / _local3) + ((Math.random() - 0.5) * 0.1), _local8, _local7, _local6);
tsNodeArr.push(_local4);
}
_local2++;
}
_local3++;
}
}
function getKk() {
switch (level) {
case 1 :
return(0.1);
case 2 :
return(0.1);
case 3 :
return(0.05);
case 4 :
return(0.06);
case 5 :
return(0.04);
case 6 :
return(0.04);
}
}
function addHelix(_dot1, _dot2) {
tp.x = _dot1.o.x - _dot2.o.x;
tp.y = _dot1.o.y - _dot2.o.y;
var _local2 = new ph.Helix(this, _dot1, _dot2, -1, Math.sqrt(tp.length) * getKk());
_local2.temp = _local2.L0;
helixArr.push(_local2);
}
function grow(value) {
growValue = growValue + value;
if (growValue >= 10) {
growValue = growValue - 10;
if ((++level) > 6) {
level = 6;
return(undefined);
}
starArr = [Global.game.addStarByStar(this, 0, 0, 0, level)];
adjustTsByStarArr();
Common.removeFixMc(this);
}
}
function hurt() {
if (hurtValue > 0) {
return(undefined);
}
Global.main.playSound("SndExp");
if ((--level) < 1) {
Common.forEach(tsNodeArr2, null, "drop");
for (var _local2 in Global.game.starArr) {
if (Global.game.starArr[_local2] == this) {
Global.game.starArr[_local2] = undefined;
}
}
Global.game.checkLose();
var _local3 = Common.addMcToTop(Global.game.world, "blobstar.DropEye");
_local3.init(eye);
if (Global.game.isLose) {
_visible = false;
} else {
Common.removeFixMc(this);
}
return(undefined);
}
starArr = [Global.game.addStarByStar(this, 0, 0, 0, level, 60)];
adjustTsByStarArr();
Common.removeFixMc(this);
}
function adjust() {
hitShapeV.x = 0;
hitShapeV.y = 0;
hitShape(Global.game.ground);
var _local4 = Global.game.starArr;
var _local3 = _local4.length;
while (_local3--) {
var _local2 = _local4[_local3];
if ((_local2 != this) && (_local2.hitTest(this))) {
hitShape(_local2);
}
}
hitShapeV.normalize(1);
}
function hitShape(shape, hitDotP) {
var _local9 = Global.game.world;
tp.x = centerP.x;
tp.y = centerP.y;
_local9.localToGlobal(tp);
if (shape.hitTest(tp.x, tp.y, true)) {
return(undefined);
}
var _local10 = total;
while (_local10--) {
var _local5 = dotArr[_local10];
_local5.getNextPos(nextP);
_local9.localToGlobal(nextP);
if (shape.hitTest(nextP.x, nextP.y, true)) {
Common.getHitP(tp, nextP, shape);
_local9.globalToLocal(nextP);
var _local7 = nextP.x;
var _local6 = nextP.y;
_local5.adjustP.x = _local7;
_local5.adjustP.y = _local6;
hitShapeV.x = hitShapeV.x + (centerP.x - _local7);
hitShapeV.y = hitShapeV.y + (centerP.y - _local6);
if (shape instanceof blobstar.Star) {
var _local3 = shape.centerP.x - _local7;
var _local2 = shape.centerP.y - _local6;
if ((_local3 != 0) || (_local2 != 0)) {
var _local8 = 5 / Math.sqrt((_local3 * _local3) + (_local2 * _local2));
_local3 = _local3 * _local8;
_local2 = _local2 * _local8;
}
shape.getHitByA(_local3, _local2);
}
}
}
}
function getHitByA(dax, day) {
var _local3 = total;
while (_local3--) {
var _local2 = dotArr[_local3].a;
_local2.x = _local2.x + dax;
_local2.y = _local2.y + day;
}
}
function get color() {
return(__color);
}
function set color(_color) {
__color = _color;
Common.setRGB(body, __color);
//return(color);
}
function set eyeId(_eyeId) {
eye.gotoAndStop(_eyeId);
//return(__get__eyeId());
}
function showFullInfo() {
if (full_popUp._name == undefined) {
full_popUp = Global.game.addEffect("full_popUp", {star:this});
}
}
function checkHitShm() {
var _local5 = Global.game.shmArr.length;
var _local4 = 0;
for (var _local3 in tsNodeArr2) {
if (tsNodeArr2[_local3].treasure.f1 == 4) {
_local4++;
}
}
var _local3 = 0;
while (_local3 < _local5) {
var _local2 = Global.game.shmArr[_local3];
if (_local2.getAble && (Common.isBmdHit(_local2, this))) {
if (_local2 instanceof blobstar.Treasure) {
if ((_local4 < (level * 5)) && (tsNodeArr.length > 0)) {
_local2.catchAble = false;
movTsToNode(_local2);
Global.game.__set__totalTsNum((Global.game.__get__totalTsNum()-1));
if (_local2.f1 <= 3) {
Global.main.playSound("SndCoin");
}
} else {
showFullInfo();
}
} else if (_local2 instanceof blobstar.Food) {
_local2.catchAble = false;
_local2.movToStar(this);
Global.game.addScore(_local2.growValue);
if (_local2 instanceof blobstar.Fish2) {
Global.game.__set__totalTsNum((Global.game.__get__totalTsNum()-1));
}
} else if (_local2 instanceof blobstar.Enemy) {
hurt();
}
}
_local3++;
}
}
function movTsToNode(treasure) {
var _local7 = Infinity;
var _local8;
var _local9 = tsNodeArr.length;
var _local2 = 0;
while (_local2 < _local9) {
var _local10 = tsNodeArr[_local2];
var _local4 = _local10.getX() - treasure._x;
var _local3 = _local10.getY() - treasure._y;
var _local5 = (_local4 * _local4) + (_local3 * _local3);
if (_local5 < _local7) {
_local8 = _local2;
_local7 = _local5;
}
_local2++;
}
var _local10 = tsNodeArr.splice(_local8, 1)[0];
_local10.treasure = treasure;
treasure.tsNode = _local10;
if (treasure.f1 <= 3) {
treasure.toSmallDelay();
}
tsNodeArr2.push(_local10);
}
function jump(value) {
trace("value=" + value);
if ((hitShapeV.x != 0) || (hitShapeV.y != 0)) {
dp.x = (hitShapeV.x - Global.game.gravityField.a.x) * value;
dp.y = (hitShapeV.y - Global.game.gravityField.a.y) * value;
var _local2 = 0;
while (_local2 < total) {
dotArr[_local2].addA(dp);
_local2++;
}
}
}
function shake() {
if (isMenu) {
Global.addRun(this, "shakeRun", 1, 30);
} else {
shake1();
Global.addRun(this, "shake1", 10, 1);
}
}
function shake1() {
Common.forEach(helixArr, this, "shakeHelix");
Global.addRun(this, "shake2", 2, 1);
}
function shake2(helix) {
Common.forEach(helixArr, this, "shakeHelix2");
var _local4 = tsNodeArr2.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = tsNodeArr2[_local2];
if (_local3.treasure.value == 2) {
_local3.drop();
tsNodeArr.push(_local3);
tsNodeArr2.splice(_local2, 1);
_local2--;
_local4--;
}
_local2++;
}
}
function shakeHelix(helix) {
helix.L0 = helix.L0 * 1.2;
}
function shakeHelix2(helix) {
helix.L0 = helix.temp;
}
function shakeRun(rotateA) {
var _local3 = 12;
var _local4 = 0.3;
rotate(_local4 * Math.sin(((rotateA * Math.PI) * 2) / _local3));
if (tsNodeArr2.length > 0) {
var _local2 = tsNodeArr2.splice(random(tsNodeArr2.length), 1)[0];
_local2.drop();
tsNodeArr.push(_local2);
}
}
function divide() {
if (level > 1) {
starArr = new Array();
divideByNum(getRByLevel(1), level);
adjustTsByStarArr();
Common.removeFixMc(this);
}
}
function adjustTsByStarArr() {
var _local6 = tsNodeArr2.length;
var _local4 = 0;
var _local5 = starArr.length;
var _local2 = 0;
while (_local2 < _local6) {
var _local3 = starArr[_local4];
if (_local3.tsNodeArr.length == 0) {
tsNodeArr2[_local2].drop();
} else {
_local3.movTsToNode(tsNodeArr2[_local2].treasure);
}
_local4++;
if (_local4 >= _local5) {
_local4 = 0;
}
_local2++;
}
}
function divideByNum(r1, num) {
var _local3 = 0;
while (_local3 < num) {
var _local2 = (rotation / Common.a2r) + (((_local3 / num) * Math.PI) * 2);
starArr.push(Global.game.addStarByStar(this, r1 * Math.cos(_local2), r1 * Math.sin(_local2), (_local2 * Common.a2r) - rotation, 1));
_local3++;
}
}
function rotate(a) {
var _local3 = 0;
while (_local3 < total) {
var _local2 = dotArr[_local3];
dp.x = _local2.o.x - centerP.x;
dp.y = _local2.o.y - centerP.y;
dp.rotate(a);
_local2.adjustP.x = centerP.x + dp.x;
_local2.adjustP.y = centerP.y + dp.y;
_local3++;
}
}
function updateVertexs() {
centerP.x = (centerP.y = 0);
var _local3 = 0;
while (_local3 < total) {
var _local4 = dotArr[_local3];
var _local2 = vertexArr[_local3 * 2];
_local2.x = _local4.o.x;
_local2.y = _local4.o.y;
centerP.x = centerP.x + _local2.x;
centerP.y = centerP.y + _local2.y;
_local3++;
}
centerP.mult(1 / total);
_local3 = 0;
while (_local3 < total) {
var _local7 = vertexArr[_local3 * 2];
var _local6 = vertexArr[((_local3 + 1) % total) * 2];
var _local5 = vertexArr[(_local3 * 2) + 1];
_local5.x = ((_local7.x + _local6.x) + centerP.x) / 3;
_local5.y = ((_local7.y + _local6.y) + centerP.y) / 3;
_local3++;
}
tp.x = centerP.x;
tp.y = centerP.y;
localToGlobal(tp);
if (Global.game.ground.hitTest(tp.x, tp.y, true)) {
trace("Ground hit center");
var _local8 = 0;
centerP.x = (centerP.y = 0);
_local3 = 0;
while (_local3 < total) {
var _local2 = dotArr[_local3].o;
tp.x = _local2.x;
tp.y = _local2.y;
localToGlobal(tp);
if (!Global.game.ground.hitTest(tp.x, tp.y, true)) {
_local8++;
centerP.x = centerP.x + _local2.x;
centerP.y = centerP.y + _local2.y;
}
_local3++;
}
if (_local8 > 0) {
centerP.mult(1 / _local8);
}
}
}
function getTreasures(_tsArr) {
var _local3 = _tsArr.length;
var _local2 = 0;
while (_local2 < _local3) {
movTsToNode(_tsArr[_local2]);
_local2++;
}
}
function storeTreasure(treasure) {
Global.gameInterface.f1Arr.push(treasure.f1);
Common.arrDel(tsNodeArr2, treasure.tsNode);
tsNodeArr.push(treasure.tsNode);
}
}
Symbol 825 MovieClip [__Packages.blobstar.LegPart] Frame 0
class blobstar.LegPart extends MovieClip
{
var dp, _x, _y, _xscale, _yscale, _rotation;
function LegPart () {
super();
dp = new math.Vector();
}
function update(p1, p2) {
_x = p1.x;
_y = p1.y;
dp.x = p2.x - p1.x;
dp.y = p2.y - p1.y;
_xscale = (_yscale = dp.length);
_rotation = dp._rotation;
}
}
Symbol 826 MovieClip [__Packages.ph.Helix] Frame 0
class ph.Helix
{
var dp, f, mc, k, L0, o2, o1, dot1, dot2, a1, a2;
function Helix (_mc, _dot1, _dot2, _L0, _k) {
dp = new math.Vector();
f = new math.Vector();
mc = _mc;
if (_k > 0) {
k = _k;
} else {
k = 0.8;
}
if ((_dot1 == null) && (_dot2 == null)) {
} else {
join(_dot1, _dot2);
}
if (_L0 > 0) {
L0 = _L0;
} else if ((_dot1 == null) && (_dot2 == null)) {
} else {
L0 = math.Vector.distance(o2, o1);
}
}
function remove() {
mc = null;
}
function join(_dot1, _dot2) {
dot1 = _dot1;
dot2 = _dot2;
o1 = dot1.o;
o2 = dot2.o;
a1 = dot1.a;
a2 = dot2.a;
if (L0 > 0) {
} else {
L0 = math.Vector.distance(o2, o1);
}
fRun();
}
function unjoin() {
dot1 = (dot2 = null);
}
function fRun() {
var _local3 = o2.x - o1.x;
var _local2 = o2.y - o1.y;
var _local4 = (1 - (L0 / Math.sqrt((_local3 * _local3) + (_local2 * _local2)))) * k;
_local3 = _local3 * _local4;
_local2 = _local2 * _local4;
a1.x = a1.x + _local3;
a1.y = a1.y + _local2;
a2.x = a2.x - _local3;
a2.y = a2.y - _local2;
}
}
Symbol 827 MovieClip [__Packages.blobstar.Food] Frame 0
class blobstar.Food extends blobstar.ShowHideMc
{
var star, _x, _y, _xscale, growValue, _yscale, _rotation;
function Food () {
super();
}
function movToStar(_star) {
star = _star;
Global.delRun(this, "run");
Global.addRun(this, "movRun");
}
function run() {
}
function movRun() {
if (Global.game.isZooming) {
return(undefined);
}
var _local3 = star.centerP.x - _x;
var _local2 = star.centerP.y - _y;
if (Math.abs(_xscale) < 30) {
Global.delRun(this, "movRun");
star.grow(growValue);
Common.removeFixMc(this);
} else {
_yscale = (_xscale = _xscale * 0.9);
_rotation = _rotation + 10;
_x = _x + (_local3 * 0.5);
_y = _y + (_local2 * 0.5);
}
}
}
Symbol 828 MovieClip [__Packages.blobstar.Fish2] Frame 0
class blobstar.Fish2 extends blobstar.Food
{
var f1, growValue;
function Fish2 () {
super();
f1 = 1;
growValue = 2;
}
}
Symbol 829 MovieClip [__Packages.blobstar.Enemy] Frame 0
class blobstar.Enemy extends blobstar.ShowHideMc
{
var f1;
function Enemy () {
super();
Global.game.shmArr.push(this);
f1 = 1;
}
}
Symbol 830 MovieClip [__Packages.blobstar.PosCircle] Frame 0
class blobstar.PosCircle extends MovieClip
{
function PosCircle () {
super();
Global.game.addPos(this);
}
}
Symbol 831 MovieClip [__Packages.FWG.BtnPa] Frame 0
class FWG.BtnPa extends FWG.Btn
{
var __set__label;
function BtnPa () {
super();
__set__label("Play Again");
}
}
Symbol 832 MovieClip [__Packages.FWG.BtnVh] Frame 0
class FWG.BtnVh extends FWG.Btn
{
var __set__label;
function BtnVh () {
super();
__set__label("View Highscores");
}
}
Symbol 833 MovieClip [__Packages.FWG.BtnMog] Frame 0
class FWG.BtnMog extends FWG.Btn
{
var __set__label;
function BtnMog () {
super();
__set__label("More Online Games");
}
}
Symbol 834 MovieClip [__Packages.FWG.BtnMenu] Frame 0
class FWG.BtnMenu extends FWG.Btn
{
var __set__label;
function BtnMenu () {
super();
__set__label("Menu");
}
}
Symbol 835 MovieClip [__Packages.FWG.ScorePad] Frame 0
class FWG.ScorePad extends MovieClip
{
var scoreTxt;
function ScorePad () {
super();
Global.addRun(this, "init", 1, 1, true);
}
function init() {
scoreTxt.__set__text(Global.main.score);
}
}
Symbol 836 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 837 MovieClip [__Packages.blobstar.Fish1] Frame 0
class blobstar.Fish1 extends blobstar.Food
{
var gotoAndStop, f1, _currentframe, growValue, x0, _x, y0, _y, x, xt, __get__getAble, _rotation, _xscale;
function Fish1 () {
super();
Global.game.shmArr.push(this);
gotoAndStop(random(4) + 1);
f1 = _currentframe;
growValue = 10;
x0 = _x;
y0 = _y;
x = 0;
xt = -xMax;
Global.addRun(this, "run");
}
function run() {
if (Global.game.isZooming) {
return(undefined);
}
if (__get__getAble()) {
if (Math.random() < 0.01) {
Common.addMcToTop(Global.game.world, "blobstar.Paopao", {_x:_x, _y:_y, _rotation:_rotation});
}
_rotation = -Global.game.world._rotation;
var _local2 = xt - x;
if ((_local2 * _local2) < 1) {
x = xt;
if (xt > 0) {
xt = -xMax;
_xscale = 100;
} else {
xt = xMax;
_xscale = -100;
}
} else {
x = x + (_local2 * 0.05);
}
var _local3 = _rotation / Common.a2r;
_x = x0 + (x * Math.cos(_local3));
_y = y0 + (x * Math.sin(_local3));
}
}
static var xMax = 150;
}
Symbol 838 MovieClip [__Packages.blobstar.Urchin] Frame 0
class blobstar.Urchin extends blobstar.Enemy
{
function Urchin () {
super();
}
}
Symbol 839 MovieClip [__Packages.blobstar.Crab] Frame 0
class blobstar.Crab extends blobstar.Enemy
{
var p0, pRight, pLeft, dp, x, kx, _visible, body, f1, gotoAndStop, delayTime, _x, _y, localToGlobal, _parent, _rotation;
function Crab () {
super();
p0 = new math.Vector();
pRight = new math.Vector();
pLeft = new math.Vector();
dp = new math.Vector();
x = 0;
kx = 1;
}
function run() {
if (!_visible) {
return(undefined);
}
if (body._currentframe == body._totalframes) {
body.gotoAndStop(1);
} else {
body.nextFrame();
}
if (x == 0) {
f1 = 2;
gotoAndStop(2);
if ((--delayTime) <= 0) {
f1 = 1;
kx = kx * -1;
x = kx * xMax;
delayTime = 30;
}
return(undefined);
}
if (x > 0) {
x--;
dp.x = 3;
} else if (x < 0) {
x++;
dp.x = -3;
}
dp.y = 0;
Common.localToLocal(dp, this, Global.game.world);
_x = dp.x;
_y = dp.y;
pRight.x = r;
pRight.y = 0;
p0.x = 0;
p0.y = 0;
localToGlobal(p0);
localToGlobal(pRight);
Common.getHitPByCircle(p0, pRight, (Math.PI/4), Global.game.ground);
Common.drawCircle(_root.test, pRight.x, pRight.y, 2);
pLeft.x = (2 * p0.x) - pRight.x;
pLeft.y = (2 * p0.y) - pRight.y;
Common.getHitPByCircle(pRight, pLeft, -0.785398163397448, Global.game.ground);
_parent.globalToLocal(pLeft);
_parent.globalToLocal(pRight);
_x = (pLeft.x + pRight.x) / 2;
_y = (pLeft.y + pRight.y) / 2;
_rotation = Math.atan2(pRight.y - pLeft.y, pRight.x - pLeft.x) * Common.a2r;
}
var r = 25;
static var xMax = 100;
}
Symbol 840 MovieClip [__Packages.blobstar.EnemyFish] Frame 0
class blobstar.EnemyFish extends blobstar.Enemy
{
var x0, _x, y0, _y, x, xt, _visible, _rotation, _xscale;
function EnemyFish () {
super();
x0 = _x;
y0 = _y;
x = 0;
xt = xMax;
}
function run() {
if (_visible) {
if (Math.random() < 0.01) {
Common.addMcToTop(Global.game.world, "blobstar.Paopao", {_x:_x, _y:_y, _rotation:_rotation});
}
_rotation = -Global.game.world._rotation;
var _local2 = xt - x;
if ((_local2 * _local2) < 1) {
x = xt;
if (xt > 0) {
xt = -xMax;
_xscale = 100;
} else {
xt = xMax;
_xscale = -100;
}
} else {
x = x + (_local2 * 0.05);
}
var _local3 = _rotation / Common.a2r;
_x = x0 + (x * Math.cos(_local3));
_y = y0 + (x * Math.sin(_local3));
}
}
static var xMax = 150;
}
Symbol 841 MovieClip [__Packages.FWG._3Btn] Frame 0
class FWG._3Btn extends MovieClip
{
var btnQ, btnM, btnS, btnP;
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);
}
btnP._rollOver = function () {
if (Global.pause) {
ui.Alt.show("Resume. Hot key: P");
} else {
ui.Alt.show("Pause. Hot key: P");
}
};
btnP._release = function () {
if (Global.pause) {
ui.Alt.show("Pause. Hot key: P");
} else {
ui.Alt.show("Resume. Hot key: P");
}
Global.main.pauseEffect();
ui.Alt.hideDelay(30);
};
btnP._rollOut = function () {
ui.Alt.hide();
};
}
}
Symbol 842 MovieClip [__Packages.FWG.BtnQ0] Frame 0
class FWG.BtnQ0 extends FWG.Btn
{
var __set__label;
function BtnQ0 () {
super();
__set__label("LOW");
}
}
Symbol 843 MovieClip [__Packages.FWG.BtnQ1] Frame 0
class FWG.BtnQ1 extends FWG.Btn
{
var __set__label;
function BtnQ1 () {
super();
__set__label("MEDIUM");
}
}
Symbol 844 MovieClip [__Packages.FWG.BtnQ2] Frame 0
class FWG.BtnQ2 extends FWG.Btn
{
var __set__label;
function BtnQ2 () {
super();
__set__label("HIGH");
}
}
Symbol 845 MovieClip [__Packages.FWG.BtnQ3] Frame 0
class FWG.BtnQ3 extends FWG.Btn
{
var __set__label;
function BtnQ3 () {
super();
__set__label("BEST");
}
}
Symbol 846 MovieClip [__Packages.blobstar.HintPad] Frame 0
class blobstar.HintPad extends MovieClip
{
var _visible, body, gotoAndPlay;
function HintPad () {
super();
_visible = false;
Global.addRun(this, "show", 5, 1, true);
}
function show() {
trace("show");
Global.pause = true;
body.gotoAndStop(Global.main.__get__stageNum());
_visible = true;
gotoAndPlay(2);
Global.addKeyUp(this, "hide");
}
function hideFinished() {
Global.pause = false;
Common.removeFixMc(this);
}
function hide() {
hide = null;
gotoAndPlay("f2");
}
}
Symbol 847 MovieClip [__Packages.FWG.PageGame] Frame 0
class FWG.PageGame extends MovieClip
{
function PageGame () {
super();
}
}
Symbol 848 MovieClip [__Packages.blobstar.SimpleGame] Frame 0
class blobstar.SimpleGame extends MovieClip
{
var starArr, shmArr, updateShm, world, gravityField, starArea, _rotation;
function SimpleGame () {
super();
Global.pause = false;
Global.game = this;
starArr = new Array();
shmArr = new Array();
updateShm = function () {
return(random(4) + 1);
};
Global.addRun(this, "init", 1, 1);
}
function init() {
Global.addRun(this, "run");
for (var _local3 in world) {
var _local2 = world[_local3];
if ((_local2 instanceof blobstar.Treasure) || (_local2 instanceof blobstar.Fish2)) {
shmArr.push(_local2);
}
}
updateShms();
}
function updateShms() {
var _local4 = shmArr.length;
var _local3 = 0;
while (_local3 < _local4) {
var _local2 = shmArr[_local3];
if (_local2 instanceof blobstar.Treasure) {
_local2._rotation = Math.random() * 360;
_local2.f1 = updateShm();
_local2.updateValue();
}
_local2.show();
_local3++;
}
}
function run() {
world.timeStep();
Common.forEach(starArr, null, "run");
}
function addStar(star) {
starArr.push(star);
}
function shiftG(a) {
gravityField._rotation = a;
gravityField.update();
}
function jump(value) {
forEachStar("jump", value);
}
function divide() {
forEachStar("divide");
}
function combine() {
var _local13 = Common.dumpArrOn(starArr, "_name") - 1;
var _local11 = 0;
while (_local11 < _local13) {
var _local6 = starArr[_local11];
var _local9 = _local11 + 1;
while (_local9 <= _local13) {
var _local5 = starArr[_local9];
if (_local6.hitTest(_local5)) {
var _local3 = _local6.getBounds(Global.game.world);
var _local2 = _local5.getBounds(Global.game.world);
var _local8 = ((_local6.level > _local5.level) ? (_local6) : (_local5));
var _local12 = addStarByStar(_local8, ((((_local3.xMin < _local2.xMin) ? (_local3.xMin) : (_local2.xMin)) + ((_local3.xMax > _local2.xMax) ? (_local3.xMax) : (_local2.xMax))) / 2) - _local8.centerP.x, ((((_local3.yMin < _local2.yMin) ? (_local3.yMin) : (_local2.yMin)) + ((_local3.yMax > _local2.yMax) ? (_local3.yMax) : (_local2.yMax))) / 2) - _local8.centerP.y, 0, _local6.level + _local5.level);
var _local7 = _local6.tsNodeArr2.concat(_local5.tsNodeArr2);
var _local10 = _local7.length;
var _local4 = 0;
while (_local4 < _local10) {
_local7[_local4] = _local7[_local4].treasure;
_local4++;
}
Common.removeFixMc(_local6);
Common.removeFixMc(_local5);
_local12.getTreasures(_local7);
return(undefined);
}
_local9++;
}
_local11++;
}
}
function shake() {
forEachStar("shake");
}
function addStarByStar(star, dx, dy, dRota, level1, _hurtValue) {
return(Common.addMcToTop(starArea, "blobstar.Star", {_x:star.centerP.x + dx, _y:star.centerP.y + dy, rotation:star.rotation + dRota, level:level1, hurtValue:_hurtValue}));
}
function forEachStar(fName, argument) {
var _local3 = Common.dumpArrOn(starArr, "_name");
var _local2 = 0;
while (_local2 < _local3) {
starArr[_local2][fName](argument);
_local2++;
}
}
function rotate1() {
_rotation = _rotation - 2;
gravityField.update();
}
function rotate2() {
_rotation = _rotation + 2;
gravityField.update();
}
}
Symbol 849 MovieClip [__Packages.FWG.PageOptions] Frame 0
class FWG.PageOptions extends MovieClip
{
function PageOptions () {
super();
}
}
Symbol 850 MovieClip [__Packages.FWG.BtnPlay] Frame 0
class FWG.BtnPlay extends FWG.Btn
{
var __set__label;
function BtnPlay () {
super();
__set__label("Play");
}
}
Symbol 851 MovieClip [__Packages.FWG.BtnSkip] Frame 0
class FWG.BtnSkip extends FWG.Btn
{
var __set__label;
function BtnSkip () {
super();
__set__label("Skip");
}
}
Symbol 852 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 853 MovieClip [__Packages.FWG.PageInst] Frame 0
class FWG.PageInst extends MovieClip
{
function PageInst () {
super();
}
}
Symbol 854 MovieClip [__Packages.FWG.BtnNs] Frame 0
class FWG.BtnNs extends FWG.Btn
{
var __set__label, _rollOver, _release;
function BtnNs () {
super();
__set__label("Next Stage");
Global.addRun(this, "initDelay", 5, 1, true);
_rollOver = function () {
ui.Alt.show("Press any key to continue.");
ui.Alt.hideDelay(30);
};
_release = function () {
Global.main.nextStage();
};
}
function initDelay() {
Global.addKeyUp(this, "onKeyUp");
}
function onKeyUp() {
Key.removeListener(this);
onKeyUp = null;
_release();
}
}
Symbol 855 MovieClip [__Packages.FWG.PageStageClear] Frame 0
class FWG.PageStageClear extends MovieClip
{
var tbTxt, currScoreTxt, scoreTxt;
function PageStageClear () {
super();
}
function init() {
var _local3 = 1;
while (_local3 <= 5) {
var _local2 = this["item" + _local3];
_local2.icon.gotoAndStop(_local3);
_local2.num = 0;
_local2.value = valueArr[_local3 - 1];
_local3++;
}
var _local5 = Global.gameInterface.f1Arr.length;
_local3 = 0;
while (_local3 < _local5) {
var _local2 = this["item" + Global.gameInterface.f1Arr[_local3]];
_local2.num++;
_local3++;
}
var _local4;
_local3 = 1;
while (_local3 <= 5) {
var _local2 = this["item" + _local3];
_local4 = _local2.num * _local2.value;
_local2.txt.text = (_local2.num + " = ") + _local4;
Global.main.currentScore = Global.main.currentScore + _local4;
Global.main.score = Global.main.score + _local4;
_local3++;
}
_local4 = Global.gameInterface.time;
tbTxt.__set__text(_local4);
Global.main.currentScore = Global.main.currentScore + _local4;
Global.main.score = Global.main.score + _local4;
currScoreTxt.__set__text(Global.main.currentScore);
scoreTxt.__set__text(Global.main.score);
}
static var valueArr = [10, 5, 2, 1, 10];
}
Symbol 856 MovieClip [__Packages.FWG.Logo] Frame 0
class FWG.Logo extends ui.SBtn
{
var _release;
function Logo () {
super();
_release = function () {
this.getURL("", "_blank");
};
}
}
Symbol 857 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 858 MovieClip [__Packages.FWG.BtnCredits] Frame 0
class FWG.BtnCredits extends FWG.Btn
{
var __set__label;
function BtnCredits () {
super();
__set__label("Credits");
}
}
Symbol 859 MovieClip [__Packages.FWG.BtnPg] Frame 0
class FWG.BtnPg extends FWG.Btn
{
var __set__label;
function BtnPg () {
super();
__set__label("Play Game");
}
}
Symbol 860 MovieClip [__Packages.FWG.BtnInstructions] Frame 0
class FWG.BtnInstructions extends FWG.Btn
{
var __set__label;
function BtnInstructions () {
super();
__set__label("Instructions");
}
}
Symbol 861 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 862 MovieClip [__Packages.FWG.BtnDg] Frame 0
class FWG.BtnDg extends FWG.Btn
{
var __set__label;
function BtnDg () {
super();
__set__label("Download Games");
}
}
Symbol 863 MovieClip [__Packages.FWG.PageMenu] Frame 0
class FWG.PageMenu extends MovieClip
{
function PageMenu () {
super();
Global.main.__set__score(0);
}
}
Symbol 864 MovieClip [__Packages.effect.TxtPopUp] Frame 0
class effect.TxtPopUp extends MovieClip
{
var text, body;
function TxtPopUp () {
super();
body.text = text;
}
}
Symbol 865 MovieClip [__Packages.blobstar.DropEye] Frame 0
class blobstar.DropEye extends MovieClip
{
var nextP, _x, _y, _rotation, eye, dot, da;
function DropEye () {
super();
nextP = new math.Vector();
}
function init(_eye) {
_x = _eye._x;
_y = _eye._y;
_rotation = _eye._rotation;
eye.gotoAndStop(_eye._currentframe);
dot = new ph.Dot(Global.game.world, _x, _y);
dot.v.x = (Math.random() - 0.5) * 10;
dot.v.y = (Math.random() - 0.5) * 10;
da = (Math.random() - 0.5) * 50;
Global.addRun(this, "movRun");
}
function movRun() {
da = da * 0.9;
eye._rotation = eye._rotation + da;
dot.getNextPos(nextP);
Global.game.world.localToGlobal(nextP);
if (Global.game.ground.hitTest(nextP.x, nextP.y, true)) {
Common.removeFixMc(this);
} else {
_x = dot.o.x;
_y = dot.o.y;
}
}
}
Symbol 866 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 867 MovieClip [__Packages.FWG.HitRec] Frame 0
class FWG.HitRec extends MovieClip
{
var onRelease, useHandCursor;
function HitRec () {
super();
onRelease = function () {
};
useHandCursor = false;
}
}
Symbol 14 MovieClip Frame 1
function isIn(domainName) {
return(((isInUrlFront(domainName) || (isInUrlFront("http://" + domainName))) || (isInUrlFront("http://www." + domainName))) || (isInUrlFront("www." + domainName)));
}
function isInUrlFront(str) {
var _loc1 = _url;
_loc1.toLowerCase();
str.toLowerCase();
return(_loc1.indexOf(str) == 0);
}
_x = (Stage.width / 2);
setProperty("", _x, Stage.width / 2);
_y = (Stage.height / 2);
setProperty("", _y, Stage.height / 2);
if (!(isIn("freeworldgroup.com") || (isIn("ifungames.com")))) {
this._visible = false;
_root.gotoAndStop("Logo");
} else {
this._visible = false;
_root.gotoAndStop("Logo");
}
Symbol 38 MovieClip Frame 1
_x = (Stage.width / 2);
setProperty("", _x, Stage.width / 2);
_y = (Stage.height / 2);
setProperty("", _y, Stage.height / 2);
_root.stop();
onPress = function () {
};
Symbol 38 MovieClip Frame 146
stop();
_root.play();
Symbol 40 MovieClip [FWG.HitRec] Frame 1
#initclip 216
Object.registerClass("FWG.HitRec", FWG.HitRec);
#endinitclip
Symbol 58 MovieClip Frame 1
Common.randomStop(this);
Symbol 60 MovieClip [blobstar.Treasure] Frame 1
#initclip 89
Object.registerClass("blobstar.Treasure", blobstar.Treasure);
#endinitclip
Symbol 83 MovieClip [FWG.BtnPa] Frame 1
#initclip 90
Object.registerClass("FWG.BtnPa", FWG.BtnPa);
#endinitclip
Symbol 96 MovieClip [FWG.BtnSs] Frame 1
#initclip 93
Object.registerClass("FWG.BtnSs", FWG.BtnSs);
#endinitclip
Symbol 100 MovieClip [FWG.BtnMenu] Frame 1
#initclip 94
Object.registerClass("FWG.BtnMenu", FWG.BtnMenu);
#endinitclip
Symbol 172 MovieClip [ui.Label2] Frame 1
#initclip 95
Object.registerClass("ui.Label2", ui.Label);
#endinitclip
Symbol 175 MovieClip [FWG.ScorePad] Frame 1
#initclip 96
Object.registerClass("FWG.ScorePad", FWG.ScorePad);
#endinitclip
Symbol 181 MovieClip [FWG.BtnX] Frame 1
#initclip 97
Object.registerClass("FWG.BtnX", FWG.Btn);
#endinitclip
Symbol 187 MovieClip [FWG.BtnSubmit] Frame 1
#initclip 98
Object.registerClass("FWG.BtnSubmit", FWG.Btn);
#endinitclip
Symbol 88 MovieClip [FWG.BtnVh] Frame 1
#initclip 91
Object.registerClass("FWG.BtnVh", FWG.BtnVh);
#endinitclip
Symbol 200 MovieClip [FWG.SubmitScore] Frame 1
#initclip 99
Object.registerClass("FWG.SubmitScore", FWG.SubmitScore);
#endinitclip
Symbol 209 MovieClip [FWG.PageGameOver] Frame 1
#initclip 101
Object.registerClass("FWG.PageGameOver", FWG.PageGameOver);
#endinitclip
Symbol 209 MovieClip [FWG.PageGameOver] Frame 2
btnPa2._rollOver = function () {
};
btnPa2._release = function () {
Global.main.__set__score(Math.round(((Global.main.__get__score() - Global.main.__get__currentScore()) * 2) / 3));
if (Global.main.__get__score() < 0) {
Global.main.__set__score(0);
trace("\u5F02\u5E38");
}
Global.main.__set__currentScore(0);
Global.main.gotoGame();
};
Common.removeFixMc(ui.Alert.alert);
Symbol 215 MovieClip [ui.Alt] Frame 1
#initclip 102
Object.registerClass("ui.Alt", ui.Alt);
#endinitclip
Symbol 217 MovieClip [ui.Label1] Frame 1
#initclip 103
Object.registerClass("ui.Label1", ui.Label);
#endinitclip
Symbol 232 MovieClip [ph.Ground1] Frame 1
#initclip 104
Object.registerClass("ph.Ground1", ph.Ground);
#endinitclip
Symbol 277 MovieClip [blobstar.Star] Frame 1
#initclip 105
Object.registerClass("blobstar.Star", blobstar.Star);
#endinitclip
Symbol 277 MovieClip [blobstar.Star] Frame 2
stop();
Symbol 278 MovieClip [blobstar.StarArea1] Frame 1
#initclip 106
Object.registerClass("blobstar.StarArea1", blobstar.StarArea);
#endinitclip
Instance of Symbol 277 MovieClip [blobstar.Star] in Symbol 278 MovieClip [blobstar.StarArea1] Frame 1
//component parameters
onClipEvent (construct) {
isMenu = false;
level = 1;
setColor = 0;
setEyeId = 0;
}
Symbol 280 MovieClip [blobstar.PosCircle] Frame 1
#initclip 107
Object.registerClass("blobstar.PosCircle", blobstar.PosCircle);
#endinitclip
Symbol 282 MovieClip [ph.Ground2] Frame 1
#initclip 108
Object.registerClass("ph.Ground2", ph.Ground);
#endinitclip
Symbol 283 MovieClip [blobstar.StarArea2] Frame 1
#initclip 109
Object.registerClass("blobstar.StarArea2", blobstar.StarArea);
#endinitclip
Instance of Symbol 277 MovieClip [blobstar.Star] in Symbol 283 MovieClip [blobstar.StarArea2] Frame 1
//component parameters
onClipEvent (construct) {
isMenu = false;
level = 1;
setColor = 0;
setEyeId = 0;
}
Symbol 340 MovieClip [blobstar.Fish1] Frame 1
#initclip 110
Object.registerClass("blobstar.Fish1", blobstar.Fish1);
#endinitclip
Symbol 342 MovieClip [ph.Ground3] Frame 1
#initclip 111
Object.registerClass("ph.Ground3", ph.Ground);
#endinitclip
Symbol 343 MovieClip [blobstar.StarArea3] Frame 1
#initclip 112
Object.registerClass("blobstar.StarArea3", blobstar.StarArea);
#endinitclip
Instance of Symbol 277 MovieClip [blobstar.Star] in Symbol 343 MovieClip [blobstar.StarArea3] Frame 1
//component parameters
onClipEvent (construct) {
isMenu = false;
level = 1;
setColor = 0;
setEyeId = 0;
}
Symbol 347 MovieClip [blobstar.Urchin] Frame 1
#initclip 113
Object.registerClass("blobstar.Urchin", blobstar.Urchin);
#endinitclip
Symbol 349 MovieClip [ph.Ground4] Frame 1
#initclip 114
Object.registerClass("ph.Ground4", ph.Ground);
#endinitclip
Symbol 350 MovieClip [blobstar.StarArea4] Frame 1
#initclip 115
Object.registerClass("blobstar.StarArea4", blobstar.StarArea);
#endinitclip
Instance of Symbol 277 MovieClip [blobstar.Star] in Symbol 350 MovieClip [blobstar.StarArea4] Frame 1
//component parameters
onClipEvent (construct) {
isMenu = false;
level = 1;
setColor = 0;
setEyeId = 0;
}
Symbol 352 MovieClip [ph.Ground5] Frame 1
#initclip 116
Object.registerClass("ph.Ground5", ph.Ground);
#endinitclip
Symbol 353 MovieClip [blobstar.StarArea5] Frame 1
#initclip 117
Object.registerClass("blobstar.StarArea5", blobstar.StarArea);
#endinitclip
Instance of Symbol 277 MovieClip [blobstar.Star] in Symbol 353 MovieClip [blobstar.StarArea5] Frame 1
//component parameters
onClipEvent (construct) {
isMenu = false;
level = 1;
setColor = 0;
setEyeId = 0;
}
Symbol 368 MovieClip [blobstar.Crab] Frame 1
#initclip 118
Object.registerClass("blobstar.Crab", blobstar.Crab);
#endinitclip
Symbol 370 MovieClip [ph.Ground6] Frame 1
#initclip 119
Object.registerClass("ph.Ground6", ph.Ground);
#endinitclip
Symbol 371 MovieClip [blobstar.StarArea6] Frame 1
#initclip 120
Object.registerClass("blobstar.StarArea6", blobstar.StarArea);
#endinitclip
Instance of Symbol 277 MovieClip [blobstar.Star] in Symbol 371 MovieClip [blobstar.StarArea6] Frame 1
//component parameters
onClipEvent (construct) {
isMenu = false;
level = 1;
setColor = 0;
setEyeId = 0;
}
Symbol 386 MovieClip [blobstar.EnemyFish] Frame 1
#initclip 121
Object.registerClass("blobstar.EnemyFish", blobstar.EnemyFish);
#endinitclip
Symbol 388 MovieClip [ph.Ground7] Frame 1
#initclip 122
Object.registerClass("ph.Ground7", ph.Ground);
#endinitclip
Symbol 389 MovieClip [blobstar.StarArea7] Frame 1
#initclip 123
Object.registerClass("blobstar.StarArea7", blobstar.StarArea);
#endinitclip
Instance of Symbol 277 MovieClip [blobstar.Star] in Symbol 389 MovieClip [blobstar.StarArea7] Frame 1
//component parameters
onClipEvent (construct) {
isMenu = false;
level = 1;
setColor = 0;
setEyeId = 0;
}
Symbol 391 MovieClip [ph.Ground8] Frame 1
#initclip 124
Object.registerClass("ph.Ground8", ph.Ground);
#endinitclip
Symbol 392 MovieClip [blobstar.StarArea8] Frame 1
#initclip 125
Object.registerClass("blobstar.StarArea8", blobstar.StarArea);
#endinitclip
Instance of Symbol 277 MovieClip [blobstar.Star] in Symbol 392 MovieClip [blobstar.StarArea8] Frame 1
//component parameters
onClipEvent (construct) {
isMenu = false;
level = 1;
setColor = 0;
setEyeId = 0;
}
Symbol 394 MovieClip [ph.Ground9] Frame 1
#initclip 126
Object.registerClass("ph.Ground9", ph.Ground);
#endinitclip
Symbol 395 MovieClip [blobstar.StarArea9] Frame 1
#initclip 127
Object.registerClass("blobstar.StarArea9", blobstar.StarArea);
#endinitclip
Instance of Symbol 277 MovieClip [blobstar.Star] in Symbol 395 MovieClip [blobstar.StarArea9] Frame 1
//component parameters
onClipEvent (construct) {
isMenu = false;
level = 1;
setColor = 0;
setEyeId = 0;
}
Symbol 397 MovieClip [ph.Ground10] Frame 1
#initclip 128
Object.registerClass("ph.Ground10", ph.Ground);
#endinitclip
Symbol 398 MovieClip [blobstar.StarArea10] Frame 1
#initclip 129
Object.registerClass("blobstar.StarArea10", blobstar.StarArea);
#endinitclip
Instance of Symbol 277 MovieClip [blobstar.Star] in Symbol 398 MovieClip [blobstar.StarArea10] Frame 1
//component parameters
onClipEvent (construct) {
isMenu = false;
level = 1;
setColor = 0;
setEyeId = 0;
}
Symbol 400 MovieClip [ph.Ground11] Frame 1
#initclip 130
Object.registerClass("ph.Ground11", ph.Ground);
#endinitclip
Symbol 401 MovieClip [blobstar.StarArea11] Frame 1
#initclip 131
Object.registerClass("blobstar.StarArea11", blobstar.StarArea);
#endinitclip
Instance of Symbol 277 MovieClip [blobstar.Star] in Symbol 401 MovieClip [blobstar.StarArea11] Frame 1
//component parameters
onClipEvent (construct) {
isMenu = false;
level = 1;
setColor = 0;
setEyeId = 0;
}
Symbol 403 MovieClip [ph.Ground12] Frame 1
#initclip 132
Object.registerClass("ph.Ground12", ph.Ground);
#endinitclip
Symbol 404 MovieClip [blobstar.StarArea12] Frame 1
#initclip 133
Object.registerClass("blobstar.StarArea12", blobstar.StarArea);
#endinitclip
Instance of Symbol 277 MovieClip [blobstar.Star] in Symbol 404 MovieClip [blobstar.StarArea12] Frame 1
//component parameters
onClipEvent (construct) {
isMenu = false;
level = 1;
setColor = 0;
setEyeId = 0;
}
Symbol 405 MovieClip [ph.PhWorld] Frame 1
#initclip 134
Object.registerClass("ph.PhWorld", ph.PhWorld);
#endinitclip
Symbol 409 MovieClip Frame 1
this.gotoAndPlay(random(100) + 1);
Symbol 409 MovieClip Frame 105
this.gotoAndPlay(2);
Symbol 412 MovieClip [ph.GravityField] Frame 1
#initclip 135
Object.registerClass("ph.GravityField", ph.GravityField);
#endinitclip
Symbol 413 MovieClip [blobstar.Game] Frame 1
#initclip 136
Object.registerClass("blobstar.Game", blobstar.Game);
#endinitclip
Symbol 417 MovieClip [FWG.BtnQ] Frame 1
#initclip 137
Object.registerClass("FWG.BtnQ", FWG.Btn);
#endinitclip
Symbol 422 MovieClip [FWG.BtnM] Frame 1
#initclip 138
Object.registerClass("FWG.BtnM", FWG.Btn);
#endinitclip
Symbol 427 MovieClip [FWG.BtnS] Frame 1
#initclip 139
Object.registerClass("FWG.BtnS", FWG.Btn);
#endinitclip
Symbol 431 MovieClip [FWG.BtnPause] Frame 1
#initclip 140
Object.registerClass("FWG.BtnPause", FWG.Btn);
#endinitclip
Symbol 432 MovieClip [FWG._3Btn] Frame 1
#initclip 141
Object.registerClass("FWG._3Btn", FWG._3Btn);
#endinitclip
Symbol 438 MovieClip [FWG.BtnZoomIn] Frame 1
#initclip 142
Object.registerClass("FWG.BtnZoomIn", FWG.Btn);
#endinitclip
Symbol 441 MovieClip [FWG.BtnZoomOut] Frame 1
#initclip 143
Object.registerClass("FWG.BtnZoomOut", FWG.Btn);
#endinitclip
Symbol 443 MovieClip [ui.NumClock] Frame 1
#initclip 144
Object.registerClass("ui.NumClock", ui.NumClock);
#endinitclip
Symbol 448 MovieClip Frame 1
stop();
Symbol 448 MovieClip Frame 28
stop();
Symbol 449 MovieClip [FWG.GamePad] Frame 1
#initclip 145
Object.registerClass("FWG.GamePad", FWG.GamePad);
#endinitclip
this.init();
Symbol 455 MovieClip [FWG.BtnOK] Frame 1
#initclip 146
Object.registerClass("FWG.BtnOK", FWG.Btn);
#endinitclip
Symbol 462 MovieClip [FWG.BtnQ0] Frame 1
#initclip 147
Object.registerClass("FWG.BtnQ0", FWG.BtnQ0);
#endinitclip
Symbol 466 MovieClip [FWG.BtnQ1] Frame 1
#initclip 148
Object.registerClass("FWG.BtnQ1", FWG.BtnQ1);
#endinitclip
Symbol 470 MovieClip [FWG.BtnQ2] Frame 1
#initclip 149
Object.registerClass("FWG.BtnQ2", FWG.BtnQ2);
#endinitclip
Symbol 474 MovieClip [FWG.BtnQ3] Frame 1
#initclip 150
Object.registerClass("FWG.BtnQ3", FWG.BtnQ3);
#endinitclip
Symbol 475 MovieClip [FWG.QualitySetting] Frame 1
#initclip 151
Object.registerClass("FWG.QualitySetting", FWG.QualitySetting);
#endinitclip
Symbol 479 MovieClip [FWG.BtnNo] Frame 1
#initclip 152
Object.registerClass("FWG.BtnNo", FWG.Btn);
#endinitclip
Symbol 483 MovieClip [FWG.BtnYes] Frame 1
#initclip 153
Object.registerClass("FWG.BtnYes", FWG.Btn);
#endinitclip
Symbol 485 MovieClip [ui.Label4] Frame 1
#initclip 154
Object.registerClass("ui.Label4", ui.Label);
#endinitclip
Symbol 486 MovieClip [ui.Alert] Frame 1
#initclip 155
Object.registerClass("ui.Alert", ui.Alert);
#endinitclip
Symbol 490 MovieClip [FWG.BtnResume] Frame 1
#initclip 156
Object.registerClass("FWG.BtnResume", FWG.Btn);
#endinitclip
Symbol 492 MovieClip [FWG.PausePad] Frame 1
#initclip 157
Object.registerClass("FWG.PausePad", FWG.PausePad);
#endinitclip
init();
Symbol 528 MovieClip [blobstar.HintPad] Frame 1
#initclip 158
Object.registerClass("blobstar.HintPad", blobstar.HintPad);
#endinitclip
stop();
Symbol 528 MovieClip [blobstar.HintPad] Frame 10
stop();
btnOk._rollOver = function () {
ui.Alt.show("Press any key to continue.");
ui.Alt.hideDelay(30);
};
btnOk._release = function () {
ui.Alt.hide();
hide();
};
Symbol 528 MovieClip [blobstar.HintPad] Frame 21
hideFinished();
Symbol 529 MovieClip [FWG.PageGame] Frame 1
#initclip 159
Object.registerClass("FWG.PageGame", FWG.PageGame);
#endinitclip
Symbol 557 MovieClip [ui.ColorPad] Frame 1
#initclip 160
Object.registerClass("ui.ColorPad", ui.ColorPad);
#endinitclip
Symbol 562 MovieClip [blobstar.eyeSelect_btn] Frame 1
#initclip 161
Object.registerClass("blobstar.eyeSelect_btn", FWG.Btn);
#endinitclip
Symbol 563 MovieClip [blobstar.EyeSelecter] Frame 1
#initclip 162
Object.registerClass("blobstar.EyeSelecter", blobstar.EyeSelecter);
#endinitclip
this.init();
Symbol 567 MovieClip [FWG.BtnOK2] Frame 1
#initclip 163
Object.registerClass("FWG.BtnOK2", FWG.Btn);
#endinitclip
Symbol 569 MovieClip [ph.Ground0] Frame 1
#initclip 164
Object.registerClass("ph.Ground0", ph.Ground);
#endinitclip
Symbol 570 MovieClip [blobstar.StarArea0] Frame 1
#initclip 165
Object.registerClass("blobstar.StarArea0", blobstar.StarArea);
#endinitclip
Instance of Symbol 277 MovieClip [blobstar.Star] in Symbol 570 MovieClip [blobstar.StarArea0] Frame 1
//component parameters
onClipEvent (construct) {
isMenu = false;
level = 1;
setColor = 0;
setEyeId = 0;
}
Symbol 571 MovieClip [ph.PhWorld0] Frame 1
#initclip 166
Object.registerClass("ph.PhWorld0", ph.PhWorld);
#endinitclip
Symbol 572 MovieClip [simpleGame_options] Frame 1
#initclip 167
Object.registerClass("simpleGame_options", blobstar.SimpleGame);
#endinitclip
Symbol 573 MovieClip [FWG.PageOptions] Frame 1
#initclip 168
Object.registerClass("FWG.PageOptions", FWG.PageOptions);
#endinitclip
btnOk._release = function () {
Global.main.gotoGame();
};
colorPad.onSelect = function (color) {
Global.game.starArr[0].color = color;
};
eyeSelecter.onSelect = function (id) {
Global.game.starArr[0].eyeId = id;
};
Symbol 604 MovieClip [FWG.BtnNext] Frame 1
#initclip 169
Object.registerClass("FWG.BtnNext", FWG.Btn);
#endinitclip
Symbol 608 MovieClip [FWG.BtnBack] Frame 1
#initclip 170
Object.registerClass("FWG.BtnBack", FWG.Btn);
#endinitclip
Symbol 609 MovieClip [FWG.BtnPlay] Frame 1
#initclip 171
Object.registerClass("FWG.BtnPlay", FWG.BtnPlay);
#endinitclip
Symbol 613 MovieClip [FWG.BtnSkip] Frame 1
#initclip 172
Object.registerClass("FWG.BtnSkip", FWG.BtnSkip);
#endinitclip
Symbol 619 MovieClip [ph.GroundInst2] Frame 1
#initclip 173
Object.registerClass("ph.GroundInst2", ph.Ground);
#endinitclip
Symbol 620 MovieClip [blobstar.StarAreaInst2] Frame 1
#initclip 174
Object.registerClass("blobstar.StarAreaInst2", blobstar.StarArea);
#endinitclip
Instance of Symbol 277 MovieClip [blobstar.Star] in Symbol 620 MovieClip [blobstar.StarAreaInst2] Frame 1
//component parameters
onClipEvent (construct) {
isMenu = false;
level = 1;
setColor = 0;
setEyeId = 0;
}
Symbol 621 MovieClip [ph.PhWorldInst2] Frame 1
#initclip 175
Object.registerClass("ph.PhWorldInst2", ph.PhWorld);
#endinitclip
Symbol 622 MovieClip [simpleGame_inst2] Frame 1
#initclip 176
Object.registerClass("simpleGame_inst2", blobstar.SimpleGame);
#endinitclip
Symbol 625 MovieClip [ph.GroundInst4] Frame 1
#initclip 177
Object.registerClass("ph.GroundInst4", ph.Ground);
#endinitclip
Symbol 626 MovieClip [blobstar.StarAreaInst4] Frame 1
#initclip 178
Object.registerClass("blobstar.StarAreaInst4", blobstar.StarArea);
#endinitclip
Instance of Symbol 277 MovieClip [blobstar.Star] in Symbol 626 MovieClip [blobstar.StarAreaInst4] Frame 1
//component parameters
onClipEvent (construct) {
isMenu = false;
level = 1;
setColor = 0;
setEyeId = 0;
}
Symbol 637 MovieClip [blobstar.Fish2] Frame 1
#initclip 179
Object.registerClass("blobstar.Fish2", blobstar.Fish2);
#endinitclip
Symbol 638 MovieClip [ph.PhWorldInst4] Frame 1
#initclip 180
Object.registerClass("ph.PhWorldInst4", ph.PhWorld);
#endinitclip
Symbol 639 MovieClip [simpleGame_inst4] Frame 1
#initclip 181
Object.registerClass("simpleGame_inst4", blobstar.SimpleGame);
#endinitclip
Symbol 645 MovieClip [ph.GroundInst3] Frame 1
#initclip 182
Object.registerClass("ph.GroundInst3", ph.Ground);
#endinitclip
Symbol 646 MovieClip [blobstar.StarAreaInst3] Frame 1
#initclip 183
Object.registerClass("blobstar.StarAreaInst3", blobstar.StarArea);
#endinitclip
Instance of Symbol 277 MovieClip [blobstar.Star] in Symbol 646 MovieClip [blobstar.StarAreaInst3] Frame 1
//component parameters
onClipEvent (construct) {
isMenu = false;
level = 2;
setColor = 0;
setEyeId = 0;
}
Symbol 647 MovieClip [ph.PhWorldInst3] Frame 1
#initclip 184
Object.registerClass("ph.PhWorldInst3", ph.PhWorld);
#endinitclip
Symbol 648 MovieClip [simpleGame_inst3] Frame 1
#initclip 185
Object.registerClass("simpleGame_inst3", blobstar.SimpleGame);
#endinitclip
function ctrlRun() {
if ((++flag) > 4) {
flag = 1;
}
switch (flag) {
case 1 :
_parent.key_l.play();
Global.addRun(this, "rotate1", 1, 30);
break;
case 2 :
_parent.key_r.play();
Global.addRun(this, "rotate2", 1, 30);
break;
case 3 :
_parent.key_u.play();
jump(30);
break;
case 4 :
_parent.key_d.play();
jump(-30);
}
}
Global.addRun(this, "ctrlRun", 90);
var flag = 0;
Symbol 653 MovieClip Frame 1
stop();
Symbol 656 MovieClip [ph.GroundInst1] Frame 1
#initclip 186
Object.registerClass("ph.GroundInst1", ph.Ground);
#endinitclip
Symbol 657 MovieClip [blobstar.StarAreaInst1] Frame 1
#initclip 187
Object.registerClass("blobstar.StarAreaInst1", blobstar.StarArea);
#endinitclip
Instance of Symbol 277 MovieClip [blobstar.Star] in Symbol 657 MovieClip [blobstar.StarAreaInst1] Frame 1
//component parameters
onClipEvent (construct) {
isMenu = false;
level = 3;
setColor = 0;
setEyeId = 0;
}
Symbol 658 MovieClip [ph.PhWorldInst1] Frame 1
#initclip 188
Object.registerClass("ph.PhWorldInst1", ph.PhWorld);
#endinitclip
Symbol 662 MovieClip [simpleGame_inst1] Frame 1
#initclip 189
Object.registerClass("simpleGame_inst1", blobstar.SimpleGame);
#endinitclip
function ctrlRun() {
if ((++flag) > 3) {
this._parent.play();
}
switch (flag) {
case 1 :
Global.delRun(this, "combine");
key_a.play();
divide();
break;
case 2 :
key_s.play();
Global.addRun(this, "combine");
break;
case 3 :
Global.delRun(this, "combine");
key_d.play();
shake();
}
}
Global.addRun(this, "ctrlRun", 60);
var flag = 0;
Symbol 663 MovieClip Frame 1
stop();
Symbol 665 MovieClip [FWG.Instructions] Frame 1
#initclip 190
Object.registerClass("FWG.Instructions", FWG.Instructions);
#endinitclip
Symbol 665 MovieClip [FWG.Instructions] Frame 3
inst2.updateShm = function () {
return(random(4) + 1);
};
Symbol 665 MovieClip [FWG.Instructions] Frame 5
inst2.updateShm = function () {
return(random(3) + 1);
};
Symbol 666 MovieClip [FWG.PageInst] Frame 1
#initclip 191
Object.registerClass("FWG.PageInst", FWG.PageInst);
#endinitclip
Instance of Symbol 277 MovieClip [blobstar.Star] in Symbol 668 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
isMenu = true;
level = 1;
setColor = 0;
setEyeId = 0;
}
Symbol 673 MovieClip [FWG.BtnNs] Frame 1
#initclip 192
Object.registerClass("FWG.BtnNs", FWG.BtnNs);
#endinitclip
Symbol 679 MovieClip [FWG.PageStageClear] Frame 1
#initclip 193
Object.registerClass("FWG.PageStageClear", FWG.PageStageClear);
#endinitclip
init();
Symbol 684 MovieClip [FWG.MusicCredits] Frame 1
#initclip 194
Object.registerClass("FWG.MusicCredits", FWG.MusicCredits);
#endinitclip
Symbol 714 MovieClip [FWG.Logo] Frame 1
#initclip 195
Object.registerClass("FWG.Logo", FWG.Logo);
#endinitclip
Symbol 719 MovieClip [FWG.BtnCopyright] Frame 1
#initclip 196
Object.registerClass("FWG.BtnCopyright", FWG.BtnCopyright);
#endinitclip
Symbol 723 MovieClip [FWG.BtnCredits] Frame 1
#initclip 197
Object.registerClass("FWG.BtnCredits", FWG.BtnCredits);
#endinitclip
Symbol 728 MovieClip [ph.GroundMenu] Frame 1
#initclip 198
Object.registerClass("ph.GroundMenu", ph.Ground);
#endinitclip
Symbol 729 MovieClip [blobstar.StarAreaMenu] Frame 1
#initclip 199
Object.registerClass("blobstar.StarAreaMenu", blobstar.StarArea);
#endinitclip
Instance of Symbol 277 MovieClip [blobstar.Star] in Symbol 729 MovieClip [blobstar.StarAreaMenu] Frame 1
//component parameters
onClipEvent (construct) {
isMenu = true;
level = 3;
setColor = 0;
setEyeId = 0;
}
Symbol 730 MovieClip [ph.PhWorldMenu] Frame 1
#initclip 200
Object.registerClass("ph.PhWorldMenu", ph.PhWorld);
#endinitclip
Symbol 731 MovieClip [simpleGame_menu] Frame 1
#initclip 201
Object.registerClass("simpleGame_menu", blobstar.SimpleGame);
#endinitclip
Symbol 735 MovieClip [FWG.BtnPg] Frame 1
#initclip 202
Object.registerClass("FWG.BtnPg", FWG.BtnPg);
#endinitclip
Symbol 739 MovieClip [FWG.BtnInstructions] Frame 1
#initclip 203
Object.registerClass("FWG.BtnInstructions", FWG.BtnInstructions);
#endinitclip
Symbol 748 MovieClip Frame 1
if (Global.gameInterface.notFirstShowMenu) {
gotoAndStop ("f");
} else {
Global.gameInterface.notFirstShowMenu = true;
}
Symbol 748 MovieClip Frame 20
stop();
Symbol 749 MovieClip [FWG.PageMenu] Frame 1
#initclip 206
Object.registerClass("FWG.PageMenu", FWG.PageMenu);
#endinitclip
if (Global.gameInterface.notFirstShowMenu) {
gotoAndStop (4);
} else {
gotoAndStop (2);
}
Instance of Symbol 277 MovieClip [blobstar.Star] in Symbol 749 MovieClip [FWG.PageMenu] Frame 1
//component parameters
onClipEvent (construct) {
isMenu = true;
level = 1;
setColor = 6291200 /* 0x5FFF00 */;
setEyeId = 7;
}
Symbol 749 MovieClip [FWG.PageMenu] Frame 2
function shiftG1() {
Global.game.shiftG(30);
}
blobstar.Treasure.removeF = "remove1";
var star = Global.game.starArr[0];
Global.addRun(this, "nextFrame", 90, 1);
Global.addRun(star, "shake", 80, 1);
Global.addRun(this, "shiftG1", 150, 1);
Global.game.updateShm = function () {
return(4);
};
Symbol 751 MovieClip [ui.Label3] Frame 1
#initclip 207
Object.registerClass("ui.Label3", ui.Label);
#endinitclip
Symbol 752 MovieClip [effect.TxtPopUp] Frame 1
#initclip 208
Object.registerClass("effect.TxtPopUp", effect.TxtPopUp);
#endinitclip
Symbol 752 MovieClip [effect.TxtPopUp] Frame 15
stop();
this.removeMovieClip();
Symbol 747 MovieClip [FWG.BtnDg] Frame 1
#initclip 205
Object.registerClass("FWG.BtnDg", FWG.BtnDg);
#endinitclip
Symbol 92 MovieClip [FWG.BtnMog] Frame 1
#initclip 92
Object.registerClass("FWG.BtnMog", FWG.BtnMog);
#endinitclip
Symbol 756 MovieClip [FWG.BtnReset] Frame 1
#initclip 209
Object.registerClass("FWG.BtnReset", FWG.Btn);
#endinitclip
Symbol 743 MovieClip [FWG.BtnAgtys] Frame 1
#initclip 204
Object.registerClass("FWG.BtnAgtys", FWG.BtnAgtys);
#endinitclip
Symbol 759 MovieClip [blobstar.LegPart0] Frame 1
#initclip 210
Object.registerClass("blobstar.LegPart0", blobstar.LegPart);
#endinitclip
Symbol 760 MovieClip [blobstar.LegPart1] Frame 1
#initclip 211
Object.registerClass("blobstar.LegPart1", blobstar.LegPart);
#endinitclip
Symbol 761 MovieClip [blobstar.DropEye] Frame 1
#initclip 212
Object.registerClass("blobstar.DropEye", blobstar.DropEye);
#endinitclip
Symbol 762 MovieClip [blobstar.Paopao] Frame 45
this.removeMovieClip();
Symbol 769 MovieClip Frame 1
stop();
Symbol 770 MovieClip [effect.SimpleFade] Frame 1
#initclip 213
Object.registerClass("effect.SimpleFade", effect.SimpleFade);
#endinitclip
stop();
Symbol 770 MovieClip [effect.SimpleFade] Frame 10
onHide();
Symbol 770 MovieClip [effect.SimpleFade] Frame 20
onShow();
Symbol 771 MovieClip [FWG.Main] Frame 1
#initclip 214
Object.registerClass("FWG.Main", FWG.Main);
#endinitclip
Symbol 774 MovieClip [testBar_BtnPause] Frame 1
#initclip 215
Object.registerClass("testBar_BtnPause", FWG.Btn);
#endinitclip
Symbol 777 MovieClip Frame 1
function clearMsg() {
txt.text = "";
}
function showMsg(msg) {
txt.text = msg;
}
Global.testBar = this;
btnPause.onPress = function () {
Global.pause = !Global.pause;
};
Symbol 204 MovieClip [FWG.BtnPa2] Frame 1
#initclip 100
Object.registerClass("FWG.BtnPa2", FWG.Btn);
#endinitclip