Frame 1
stop();
Stage.scaleMode = "noScale";
Stage.showMenu = false;
_quality = "BEST";
Frame 2
fileOption2 = "option.dat";
var sequenceControlGame = new FSequence();
optionBtn._visible = false;
helpBtn._visible = false;
topScoreBtn._visible = false;
quitBtn._visible = false;
pauseBtn._visible = false;
lockButtons = function (how) {
how = !how;
optionBtn.btn.enabled = how;
optionBtn.btn.onRollOut();
helpBtn.btn.enabled = how;
helpBtn.btn.onRollOut();
topScoreBtn.btn.enabled = how;
topScoreBtn.btn.onRollOut();
quitBtn.btn.enabled = how;
quitBtn.btn.onRollOut();
pauseBtn.btn.enabled = how;
pauseBtn.btn.onRollOut();
};
saveTopScore = function (fileName, cont) {
newFileName = fileName;
contentFile = cont;
fscommand ("flashstudio.savetofile", "newFileName,contentFile");
};
cript = function (st) {
st = String(st);
st2 = "";
i = 0;
while (i < st.length) {
st2 = st2 + String.fromCharCode(st.charCodeAt(i) + Number(st.length - i));
i++;
}
return(st2);
};
uncript = function (st) {
st = String(st);
st2 = "";
i = 0;
while (i < st.length) {
st2 = st2 + String.fromCharCode(st.charCodeAt(i) - Number(st.length - i));
i++;
}
return(st2);
};
ini = function () {
_global.effectValue = 50;
_global.musicValue = 50;
_global.levelGame = 3;
_global.speedGame = 0;
};
saveIni = function () {
lv = new LoadVars();
lv.effectValue = _global.effectValue;
lv.musicValue = _global.musicValue;
lv.levelGame = _global.levelGame;
lv.speedGame = _global.speedGame;
saveContent = lv.toString();
trace("SAVE INI " + saveContent);
fscommand ("flashstudio.savetofile", "fileOption2,saveContent");
};
loadIni = function (lv) {
_global.effectValue = Number(lv.effectValue);
_global.musicValue = Number(lv.musicValue);
_global.levelGame = Number(lv.levelGame);
_global.speedGame = Number(lv.speedGame);
cc = true;
tt1.text = tt1.text + (_global.effectValue + newline);
tt1.text = tt1.text + (_global.musicValue + newline);
tt1.text = tt1.text + (_global.levelGame + newline);
tt1.text = tt1.text + (_global.speedGame + newline);
if ((((_global.effectValue == undefined) || (_global.effectValue > 100)) || (_global.effectValue < 0)) || (_global.effectValue == null)) {
_global.effectValue = 50;
cc = false;
}
if ((((_global.musicValue == undefined) || (_global.musicValue > 100)) || (_global.musicValue < 0)) || (_global.musicValue == null)) {
_global.musicValue = 50;
cc = false;
}
if ((((_global.levelGame == undefined) || (_global.levelGame > 5)) || (_global.levelGame < 1)) || (_global.levelGame == null)) {
_global.levelGame = 0;
cc = false;
}
if ((((_global.speedGame == undefined) || (_global.speedGame > 30)) || (_global.speedGame < 0)) || (_global.speedGame == null)) {
_global.speedGame = 0;
cc = false;
}
if (!cc) {
ini();
saveIni();
}
_root.musicArc.setValume(_global.musicValue);
_root.soundArc.setValume(_global.effectValue);
};
fscommand ("flashstudio.fileexists", "fileOption2,existFile");
lcount = 0;
loadData = function () {
tt1.text = tt1.text + ("file exist: " + existFile);
if (existFile == "true") {
tt1.text = tt1.text + "EXIST ";
lv = new LoadVars();
lv._parent = this;
lv.load(fileOption2);
lv.onLoad = function (success) {
if (success) {
tt1.text = tt1.text + "LOAD SUCSESS ";
this=this._parent;//parameter overwritten
this._parent;
loadIni(lv);
} else {
tt1.text = tt1.text + "NO LOAD SUCSESS ";
lcont++;
if (lcont > 3) {
ini();
saveIni();
} else {
loadData();
}
}
};
} else {
tt1.text = tt1.text + "NO EXIST ";
ini();
saveIni();
}
skillGameForm.setSkill(_global.levelGame);
};
selectGame = function () {
if (this.gameTypeForm == undefined) {
index = this.getNextHighestDepth();
this.attachMovie("gameType", "gameTypeForm", index);
}
optionBtn._visible = true;
helpBtn._visible = true;
topScoreBtn._visible = true;
topScoreBtn._visible = true;
quitBtn._visible = true;
};
questionGame = function (how) {
if (this.questionForm == undefined) {
index = this.getNextHighestDepth();
this.attachMovie("FQuestion", "questionForm", index, {option:how});
}
};
optionGame = function (how) {
if (this.optionGameForm == undefined) {
index = this.getNextHighestDepth();
this.attachMovie("FOptionControl", "optionGameForm", index, {option:how});
}
};
helpGame = function (how) {
if (this.helpForm == undefined) {
index = this.getNextHighestDepth();
this.attachMovie("FHelp", "helpForm", index, {option:how});
}
};
topScoreGame = function (typeGame, level, newResult, how) {
if (this.topScoreForm == undefined) {
var _local3 = this.getNextHighestDepth();
var _local2 = new Object();
_local2.typeGame = typeGame;
_local2.level = level;
_local2.newResult = newResult;
_local2.option = how;
trace("NEW RES = " + _local2.newResult);
this.attachMovie("FTopScore", "topScoreForm", _local3, _local2);
}
};
purchaseGame = function (how) {
if (this.purchaseForm == undefined) {
index = this.getNextHighestDepth();
this.attachMovie("FBuy", "purchaseForm", index, {option:how});
}
};
sequenceControlGame.addAction(this, "loadData", 1000);
sequenceControlGame.addAction(this, "selectGame", 1500);
stop();
_global.getTimeFormat = function (ttime) {
sec = Math.floor(ttime);
minutes = Math.floor(sec / 60);
hours = Math.floor(minutes / 60);
minutes = minutes - (Math.floor(minutes / 60) * 60);
sec = sec - (Math.floor(sec / 60) * 60);
if (hours.toString().length < 2) {
hours = "0" + hours;
}
if (minutes.toString().length < 2) {
minutes = "0" + minutes;
}
if (sec.toString().length < 2) {
sec = "0" + sec;
}
return((minutes + ":") + sec);
};
_level0.levels = new Array();
_level0.levels[0] = "";
_level0.levels[1] = "block,12,5,4,0;block,13,4,3,0;block,13,5,2,0;block,13,6,3,0;block,14,3,4,0;block,14,4,1,0;key1,14,5,0,0;block,14,6,1,0;block,14,7,4,0";
_level0.levels[2] = "block,10,0,6,0;block,10,10,6,0;block,11,0,6,0;block,11,10,6,0;block,12,0,6,0;block,12,10,6,0;block,13,0,6,0;block,13,3,4,0;block,13,5,4,0;block,13,7,4,0;block,13,10,6,0;block,14,0,6,0;block,14,1,4,0;block,14,2,3,0;key1,14,3,0,0;block,14,4,3,0;key2,14,5,1,0;block,14,6,3,0;key3,14,7,2,0;block,14,8,3,0;block,14,9,4,0;block,14,10,6,0";
_level0.levels[3] = "block,11,0,6,0;block,11,10,6,0;key2,12,0,1,0;key4,12,10,3,0;block,13,0,6,0;block,13,1,6,0;block,13,5,6,0;block,13,9,6,0;block,13,10,6,0;key1,14,0,0,0;bomba,14,1,2,0;block,14,4,6,0;key5,14,5,4,0;block,14,6,6,0;bomba,14,9,3,0;key3,14,10,2,0";
_level0.levels[4] = "block,11,0,2,0;block,11,1,2,0;block,11,2,2,0;block,11,3,2,0;block,11,4,2,0;block,11,5,2,0;block,11,6,2,0;block,11,7,2,0;block,11,8,2,0;block,11,9,2,0;block,11,10,2,0;block,13,0,6,0;block,13,1,6,0;block,13,2,3,0;block,13,3,0,0;block,13,4,3,0;block,13,5,1,0;block,13,6,3,0;block,13,7,0,0;block,13,8,3,0;block,13,9,6,0;block,13,10,6,0;key1,14,0,0,0;block,14,1,6,0;bomba,14,2,2,0;block,14,3,1,0;block,14,4,4,0;block,14,5,2,0;block,14,6,4,0;block,14,7,1,0;bomba,14,8,2,0;block,14,9,6,0;key1,14,10,0,0";
_level0.levels[5] = "block,9,5,4,0;block,10,5,0,0;block,11,4,4,0;block,11,5,1,0;block,11,6,4,0;block,12,1,6,0;block,12,2,6,0;block,12,3,6,0;block,12,4,6,0;block,12,5,2,0;block,12,6,6,0;block,12,7,6,0;block,12,8,6,0;block,12,9,6,0;block,13,0,6,0;block,13,1,6,0;bomba,13,2,2,0;block,13,3,6,0;bomba,13,4,1,0;block,13,5,3,0;bomba,13,6,1,0;block,13,7,6,0;bomba,13,8,2,0;block,13,9,6,0;block,13,10,6,0;key1,14,0,0,0;bomba,14,1,2,0;key3,14,2,2,0;bomba,14,3,0,0;key5,14,4,4,0;bomba,14,5,1,0;key1,14,6,0,0;bomba,14,7,0,0;key3,14,8,2,0;bomba,14,9,2,0;key5,14,10,4,0";
_global.availableLevel = _level0.levels.length - 1;
fscommand ("flashstudio.setwindowtitle", "\"Speedy Blocks\"");
Button.prototype.tabEnabled = false;
MovieClip.prototype.tabEnabled = false;
checkFocus = function (target) {
this=target;//parameter overwritten
fscommand ("flashstudio.getwindowlist", "focus1");
if (focus1.split(";")[1].split(",")[0] == "Speedy Blocks") {
_level0.appFocus = true;
} else {
if ((_global.action == "game") && (_level0.appFocus)) {
this.speedyBlocks.pauseGameFunc(true);
}
_level0.appFocus = false;
}
};
_level0.appFocus = true;
focusInterval = setInterval(checkFocus, 250, this);
Symbol 32 MovieClip Frame 1
btn.onRelease = function () {
_root.soundArc.playSound("click", 0);
getURL ("http://www.speedygames.com/download-speedy-blocks.php", "_top", "GET");
};
Symbol 35 MovieClip Frame 1
btn.onRelease = function () {
_root.soundArc.playSound("click", 0);
this._parent._parent.remove();
if (((_level0.regNow == "") || (_level0.regNow == undefined)) || (_level0.regNow == "speedyGames")) {
getURL ("http://www.speedygames.com/speedyBlocksPurchase.php?url=" + _url, "_top", "GET");
} else {
getURL ("https://www.regnow.com/softsell/nph-softsell.cgi?item=10976-3&affiliate=" + _level0.regNow, "_top", "GET");
}
};
Symbol 42 MovieClip Frame 1
btn.onRelease = function () {
_root.soundArc.playSound("click", 0);
this._parent._parent.remove();
};
Symbol 46 Button
on (release) {
getURL ("http://www.SpeedyGames.com/index.php?from_game", "SpeedyGames");
}
Symbol 49 MovieClip [FBuy] Frame 1
#initclip 14
function FBuyClass() {
this._x = 120;
this._y = 105;
this._xscale = 86.5;
this._yscale = 86.5;
this.bg.useHandCursor = false;
trace(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> " + _global.action);
this._parent.gameTypeForm.enabledTypeGame(false);
if ((_global.action == "game") || (_global.action == "pause")) {
this._parent.speedyBlocks.pauseGameFunc(true);
this._parent.pauseBtn._visible = false;
} else {
this.ncmc._visible = false;
this.endBtn._visible = false;
}
this._parent.lockButtons(true);
this.posGol = 60;
}
FBuyClass.prototype = new MovieClip();
FBuyClass.prototype.remove = function () {
this._parent.lockButtons(false);
this._parent.gameTypeForm.enabledTypeGame(true);
trace(((">>>> " + this.option) + " ") + _global.action);
if ((this.option == "game") && (_global.action == "pause")) {
this._parent.speedyBlocks.pauseGameFunc(false);
this._parent.pauseBtn._visible = true;
}
trace(((">>>> " + this.option) + " ") + _global.action);
if (this.option == "gameover") {
this._parent.selectGame();
}
this.onEnterFrame = function () {
this._alpha = this._alpha - 100;
if (this._alpha <= 0) {
this.onEnterFrame = null;
this.removeMovieClip();
}
};
};
Object.registerClass("FBuy", FBuyClass);
#endinitclip
Symbol 55 MovieClip Frame 1
stop();
Symbol 56 MovieClip [FBonus] Frame 1
#initclip 5
function FBonusClass() {
this.stop();
this._visible = false;
}
FBonusClass.prototype = new MovieClip();
Object.registerClass("FBonus", FBonusClass);
FBonusClass.prototype.activate = function (x, y, bonus) {
if (x < 70) {
x = 70;
}
this._x = x;
this._y = y;
this.play();
trace("COOL");
this._visible = true;
this.bon.gotoAndStop("b" + String(bonus));
};
#endinitclip
Symbol 56 MovieClip [FBonus] Frame 25
removeMovieClip(this);
Symbol 57 MovieClip [musicClass] Frame 1
#initclip 6
Object.registerClass("musicClass", FMusic2);
#endinitclip
Symbol 58 MovieClip [soundClass] Frame 1
#initclip 7
Object.registerClass("soundClass", FSound);
#endinitclip
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 2
play();
Symbol 68 MovieClip Frame 5
gotoAndPlay (2);
Symbol 70 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 2
stop();
fire.gotoAndPlay(2);
Symbol 77 MovieClip Frame 1
btn.onRelease = function () {
_root.soundArc.playSound("click", 0);
this._parent._parent.remove();
};
Symbol 82 MovieClip Frame 1
selectGameFunc = function (what, Lvalue) {
item1_btn.setAction(false);
item2_btn.setAction(false);
item3_btn.setAction(false);
item4_btn.setAction(false);
item5_btn.setAction(false);
this=what;//parameter overwritten
this.setAction(1);
_global.levelGame = Lvalue;
};
Symbol 92 MovieClip [FOptionControl] Frame 1
#initclip 13
function FOptionControlClass() {
this.bg.useHandCursor = false;
this.x1 = 80;
this.x2 = 275;
this._alpha = 0;
this._x = 133;
this._y = 60;
this._xscale = 86.5;
this._yscale = 86.5;
this._alpha = 100;
this.onEnterFrame = function () {
this.iniOption();
this.onEnterFrame = null;
};
this._parent.lockButtons(true);
trace("GAME AGAIN 1 " + this.option);
if (_global.action == "game") {
this._parent.speedyBlocks.pauseGameFunc(true);
this._parent.pauseBtn._visible = false;
}
this._parent.gameTypeForm.enabledTypeGame(false);
this.setSpeedPos();
this.setSoundPos();
this.setMusicPos();
this.speedBegun_mc.onRollOver = function () {
this.gotoAndStop(2);
};
this.speedBegun_mc.onRollOut = (this.speedBegun_mc.onReleaseOutside = function () {
this.gotoAndStop(1);
this.onRelease();
});
this.speedBegun_mc.onPress = function () {
this.startDrag(false, this._parent.x1, this._y, this._parent.x2, this._y);
obj = new Object();
obj._parent = this;
obj.onMouseMove = function () {
this=this._parent;//parameter overwritten
this._parent;
_global.speedGame = Math.round(30 - ((30 * (this._x - this._parent.x1)) / (this._parent.x2 - this._parent.x1)));
};
Mouse.addListener(obj);
};
this.speedBegun_mc.onRelease = function () {
this.stopDrag();
Mouse.removeListener(obj);
};
this.soundBegun_mc.onRollOver = function () {
this.gotoAndStop(2);
};
this.soundBegun_mc.onRollOut = (this.soundBegun_mc.onReleaseOutside = function () {
this.gotoAndStop(1);
this.onRelease();
});
this.soundBegun_mc.onPress = function () {
this._parent.soundArc.playMusic();
this._parent.sound.start();
this.startDrag(false, this._parent.x1, this._y, this._parent.x2, this._y);
obj = new Object();
obj._parent = this;
obj.onMouseMove = function () {
this=this._parent;//parameter overwritten
this._parent;
_global.effectValue = Math.round((100 * (this._x - this._parent.x1)) / (this._parent.x2 - this._parent.x1));
trace((_global.effectValue + " ") + _root.soundArc);
_root.soundArc.setValume(_global.effectValue);
this._parent.sound.setVolume(_global.effectValue);
};
Mouse.addListener(obj);
};
this.soundBegun_mc.onRelease = function () {
this._parent.sound.stop();
this.stopDrag();
Mouse.removeListener(obj);
};
this.musicBegun_mc.onRollOver = function () {
this.gotoAndStop(2);
};
this.musicBegun_mc.onRollOut = (this.soundBegun_mc.onReleaseOutside = function () {
this.gotoAndStop(1);
this.onRelease();
});
this.musicBegun_mc.onPress = function () {
this._parent.music.start();
this.startDrag(false, this._parent.x1, this._y, this._parent.x2, this._y);
obj = new Object();
obj._parent = this;
obj.onMouseMove = function () {
this=this._parent;//parameter overwritten
this._parent;
_global.musicValue = Math.round((100 * (this._x - this._parent.x1)) / (this._parent.x2 - this._parent.x1));
_root.musicArc.setValume(_global.musicValue);
this._parent.music.setVolume(_global.musicValue);
};
Mouse.addListener(obj);
};
this.musicBegun_mc.onRelease = function () {
this._parent.music.stop();
this.stopDrag();
Mouse.removeListener(obj);
};
this.createEmptyMovieClip("snd", this.getNextHighestDepth());
this.sound = new Sound(this.snd);
this.sound.setVolume(_global.effectValue);
this.sound.attachSound("bonus");
this.sound.onSoundComplete = function () {
this.start();
};
}
FOptionControlClass.prototype = new MovieClip();
FOptionControlClass.prototype.remove = function () {
this._parent.saveIni();
this._parent.lockButtons(false);
this._parent.gameTypeForm.enabledTypeGame(true);
trace("GAME AGAIN 2 " + this.option);
if ((this.option == "game") && (_global.action == "pause")) {
this._parent.speedyBlocks.pauseGameFunc(false);
this._parent.pauseBtn._visible = true;
}
this.onEnterFrame = function () {
this._alpha = this._alpha - 100;
if (this._alpha <= 0) {
this.onEnterFrame = null;
this.removeMovieClip();
}
};
};
FOptionControlClass.prototype.iniOption = function () {
this.skillForm[("item" + _global.levelGame) + "_btn"].setAction(true);
};
FOptionControlClass.prototype.setSoundPos = function () {
this.soundBegun_mc._x = this.x1 + Number((_global.effectValue * (this.x2 - this.x1)) / 100);
};
FOptionControlClass.prototype.setMusicPos = function () {
this.musicBegun_mc._x = this.x1 + Number((_global.musicValue * (this.x2 - this.x1)) / 100);
};
FOptionControlClass.prototype.setSpeedPos = function () {
this.speedBegun_mc._x = this.x2 - Number((_global.speedGame * (this.x2 - this.x1)) / 30);
};
Object.registerClass("FOptionControl", FOptionControlClass);
#endinitclip
Symbol 105 MovieClip Frame 1
if (mogno != true) {
stop();
}
Symbol 109 MovieClip Frame 1
playGame.onRollOver = function () {
this._parent.demo.mogno = true;
this._parent.demo.play();
this._parent._parent.allDemoUpdate();
};
playGame.onRollOut = function () {
this._parent.demo.mogno = false;
};
playGame.onRelease = function () {
_root.soundArc.playSound("click", 0);
this.enabled = false;
this._parent._parent.gameTipeNum = 1;
this._parent._parent.gameLevelNum = 0;
this._parent._parent.gotoAndPlay(22);
};
Symbol 112 MovieClip Frame 1
if (mogno != true) {
stop();
}
Symbol 122 MovieClip Frame 1
btn.useHandCursor = false;
Symbol 124 MovieClip Frame 1
level._visible = false;
playGame.onRollOver = function () {
this._parent.demo.mogno = true;
this._parent.demo.play();
this._parent._parent.allDemoUpdate();
};
playGame.onRollOut = function () {
this._parent.demo.mogno = false;
};
playGame.onRelease = function () {
_root.soundArc.playSound("click", 0);
this._parent.demo._visible = false;
this._parent.level._visible = true;
};
level.l0.onRelease = function () {
_root.soundArc.playSound("click", 0);
this=this._parent;//parameter overwritten
this._parent;
this._parent._parent.gameTipeNum = 3;
this._parent._parent.gameLevelNum = 0;
this._parent._parent.gotoAndPlay(22);
};
level.l1.onRelease = function () {
_root.soundArc.playSound("click", 0);
this=this._parent;//parameter overwritten
this._parent;
this._parent._parent._parent.purchaseGame(_global.action);
};
level.l2.onRelease = function () {
_root.soundArc.playSound("click", 0);
this=this._parent;//parameter overwritten
this._parent;
this._parent._parent._parent.purchaseGame(_global.action);
};
level.l3.onRelease = function () {
_root.soundArc.playSound("click", 0);
this=this._parent;//parameter overwritten
this._parent;
this._parent._parent._parent.purchaseGame(_global.action);
};
Symbol 136 MovieClip Frame 1
if (mogno != true) {
stop();
}
Symbol 145 MovieClip Frame 1
btn.useHandCursor = false;
Symbol 146 MovieClip Frame 1
level._visible = false;
this.level.levelGame = 1;
playGame.onRollOver = function () {
this._parent.demo.mogno = true;
this._parent.demo.play();
this._parent._parent.allDemoUpdate();
};
playGame.onRollOut = function () {
this._parent.demo.mogno = false;
};
playGame.onRelease = function () {
_root.soundArc.playSound("click", 0);
this._parent.demo._visible = false;
this._parent.level._visible = true;
};
level.l0.onRelease = function () {
_root.soundArc.playSound("click", 0);
this=this._parent;//parameter overwritten
this._parent;
this.levelGame--;
if (this.levelGame < 1) {
this.levelGame = 1;
}
};
level.l1.onRelease = function () {
_root.soundArc.playSound("click", 0);
this=this._parent;//parameter overwritten
this._parent;
this.levelGame++;
if (this.levelGame > _global.availableLevel) {
this.levelGame = _global.availableLevel;
this._parent._parent.allDemoUpdate();
this._parent._parent._parent.purchaseGame(_global.action);
}
};
this.level.bt.bt.onRelease = function () {
_root.soundArc.playSound("click", 0);
this=this._parent._parent;//parameter overwritten
this._parent._parent;
this._parent._parent.gameTipeNum = 4;
this._parent._parent.gameLevelNum = 0;
this._parent._parent.gameLevel2Num = this.levelGame;
trace("LEVEL GAME " + this.levelGame);
this._parent._parent.gotoAndPlay(22);
};
Symbol 148 MovieClip Frame 1
if (mogno != true) {
stop();
}
Symbol 154 MovieClip Frame 1
btn.useHandCursor = false;
Symbol 155 MovieClip Frame 1
level._visible = false;
playGame.onRollOver = function () {
this._parent.demo.mogno = true;
this._parent.demo.play();
this._parent._parent.allDemoUpdate();
};
playGame.onRollOut = function () {
this._parent.demo.mogno = false;
};
playGame.onRelease = function () {
_root.soundArc.playSound("click", 0);
this._parent.demo._visible = false;
this._parent.level._visible = true;
};
level.l0.onRelease = function () {
_root.soundArc.playSound("click", 0);
this=this._parent;//parameter overwritten
this._parent;
this._parent._parent.gameTipeNum = 2;
this._parent._parent.gameLevelNum = 0;
this._parent._parent.gotoAndPlay(22);
};
level.l1.onRelease = function () {
_root.soundArc.playSound("click", 0);
this=this._parent;//parameter overwritten
this._parent;
this._parent._parent._parent.purchaseGame(_global.action);
};
level.l2.onRelease = function () {
_root.soundArc.playSound("click", 0);
this=this._parent;//parameter overwritten
this._parent;
this._parent._parent.gameTipeNum = 2;
this._parent._parent.gameLevelNum = 2;
this._parent._parent.gotoAndPlay(22);
};
level.l3.onRelease = function () {
_root.soundArc.playSound("click", 0);
this=this._parent;//parameter overwritten
this._parent;
this._parent._parent._parent.purchaseGame(_global.action);
};
Symbol 156 MovieClip [gameType] Frame 1
_alpha = 0;
_x = 133;
_y = 12;
this._xscale = 86.5;
this._yscale = 86.5;
stop();
this.onEnterFrame = function () {
_alpha = 100;
this.onEnterFrame = null;
play();
};
enabledTypeGame = function (how) {
this.how = how;
g1.playGame.enabled = how;
g2.playGame.enabled = how;
g3.playGame.enabled = how;
g4.playGame.enabled = how;
};
Symbol 156 MovieClip [gameType] Frame 21
stop();
if (!how) {
enabledTypeGame(how);
}
allDemoUpdate = function () {
g1.demo._visible = true;
g2.demo._visible = true;
g3.demo._visible = true;
g4.demo._visible = true;
g1.level._visible = false;
g2.level._visible = false;
g3.level._visible = false;
g4.level._visible = false;
};
Symbol 156 MovieClip [gameType] Frame 23
this._parent.speedyBlocks.newGame(gameTipeNum, gameLevelNum, gameLevel2Num);
this.removeMovieClip();
Symbol 168 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 1
str = "nova design 2004";
getCode = function (st) {
st = String(st);
index = 0;
st3 = "";
sum = 0;
i = 0;
while (i < st.length) {
st2 = Number(Number(st.charCodeAt(i)) + Number(str.charCodeAt(index)));
sum = sum + Number(st.charCodeAt(i));
if (String(st2).length == 2) {
st2 = "0" + String(st2);
}
if (String(st2).length == 1) {
st2 = "00" + String(st2);
}
trace((((((st.charAt(i) + " ") + Number(st.charCodeAt(i))) + " + ") + Number(str.charCodeAt(index))) + " = ") + st2);
index++;
if (index > (str.length - 1)) {
index = 0;
}
st3 = st3 + String(st2);
i++;
}
i = 0;
while (i < String(sum).length) {
st2 = Number(Number(String(sum).charCodeAt(i)) + Number(str.charCodeAt(index)));
if (String(st2).length == 2) {
st2 = "0" + String(st2);
}
if (String(st2).length == 1) {
st2 = "00" + String(st2);
}
index++;
if (index > (str.length - 1)) {
index = 0;
}
st3 = st3 + String(st2);
i++;
}
trace(st3);
return(st3);
};
btn.onRelease = function () {
this._parent._parent["item" + Number(this._parent.i + 1)].gotoAndStop(1);
this._parent._parent["item" + Number(this._parent.i + 1)].player.selectable = false;
lv = new LoadVars();
if (this._parent._parent.typeGame == 1) {
gameType = "classic blocks";
} else if (this._parent._parent.typeGame == 2) {
gameType = "speedy blocks";
} else if (this._parent._parent.typeGame == 3) {
gameType = "tournament blocks";
} else if (this._parent._parent.typeGame == 4) {
gameType = "adventure blocks";
}
if (this._parent._parent.level == 0) {
gameDifficulty = "0";
} else if (this._parent._parent.level == 1) {
gameDifficulty = "1";
} else if (this._parent._parent.level == 2) {
gameDifficulty = "2";
} else if (this._parent._parent.level == 3) {
gameDifficulty = "3";
} else if (this._parent._parent.level == 4) {
gameDifficulty = "4";
} else if (this._parent._parent.level == 5) {
gameDifficulty = "5";
}
userName = this._parent._parent["item" + Number(this._parent.i + 1)].player.text;
score = this._parent._parent["item" + Number(this._parent.i + 1)].score.text;
lv.SCORE = getCode(((((((score + "&") + userName) + "&") + gameType) + "&") + gameDifficulty) + "&");
lv.gameDifficulty = gameDifficulty;
trace(lv.SCORE);
lv.send("http://www.speedyGames.com/speedyBlocks/topScore.php", "_top", "GET");
this._parent._visible = false;
_root.soundArc.playSound("click", 0);
fscommand ("flashstudio.minimize");
};
Symbol 171 MovieClip Frame 1
stop();
Symbol 172 Button
on (release) {
getURL ("http://www.SpeedyGames.com", "SpeedyGames");
}
Symbol 173 MovieClip Frame 1
stop();
Symbol 178 MovieClip [FButtonControl] Frame 1
#initclip 8
function FButtonControlClass() {
this.mainBg.onRollOver = function () {
if (this._parent.action != -1) {
newCol = new Color(this._parent.mainBg);
newCol.setRGB(this._parent.overColor);
}
};
this.mainBg.onRollOut = function () {
this._parent.update();
};
this.mainBg.onPress = function () {
if (this._parent.action != -1) {
newCol = new Color(this._parent.mainBg);
newCol.setRGB(this._parent.activeColor);
if (this._parent.type == "check") {
this._parent.action = !this._parent.action;
}
}
};
this.mainBg.onRelease = function () {
if (this._parent.action != -1) {
eval ("this._parent._parent." + this._parent.handler).call(this._parent._parent, this._parent, this._parent.value);
this._parent.update();
}
};
this.update();
}
FButtonControlClass.prototype = new MovieClip();
FButtonControlClass.prototype.setAction = function (action) {
this.action = action;
this.update();
};
FButtonControlClass.prototype.getAction = function () {
return(this.action);
};
FButtonControlClass.prototype.update = function () {
newCol = new Color(this.mainBg);
if (this.action == 0) {
newCol.setRGB(this.enabledColor);
this._parent[this.goal].gotoAndStop(2);
}
if (this.action == -1) {
newCol.setRGB(this.disabledColor);
this.mainBg.useHandCursor = false;
this._parent[this.goal].gotoAndStop(3);
}
if (this.action == 1) {
newCol.setRGB(this.activeColor);
this.mainBg.useHandCursor = true;
this._parent[this.goal].gotoAndStop(1);
}
};
Object.registerClass("FButtonControl", FButtonControlClass);
#endinitclip
Symbol 184 MovieClip Frame 1
stop();
player.onSetFocus = function (newFocus) {
obj = new Object();
obj._parent = this._parent;
obj.onKeyDown = function () {
this._parent.goal = this._parent.player.text;
trace("13");
if (Key.isDown(13)) {
Key.removeListener(this);
this._parent.player.selectable = false;
this._parent.gotoAndStop(1);
}
this._parent._parent.publishBtn._visible = true;
};
Key.addListener(obj);
};
Symbol 188 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 1
btn.onRelease = function () {
_root.soundArc.playSound("click", 0);
this._parent._parent.clearResult();
};
Symbol 194 MovieClip [FTopScore] Frame 1
#initclip 10
function FTopScoreClass() {
this._x = 155;
this._y = 25;
this.oldResult = null;
this.bg.useHandCursor = false;
this._parent.gameTypeForm.enabledTypeGame(false);
if (_global.action == "game") {
this._parent.speedyBlocks.pauseGameFunc(true);
this._parent.pauseBtn._visible = false;
}
this.sequenceTopScoreGame = new FSequence();
this.myNewLine = String.fromCharCode(13) + String.fromCharCode(10);
trace((((("TOP SCORE IN1 : " + this.typeGame) + " ") + this.level) + " :") + this.newResult);
this.typeGame = ((this.typeGame == undefined) ? 1 : (this.typeGame));
this.level = ((this.level == undefined) ? 1 : (this.level + 1));
this.newResult = ((this.newResult == undefined) ? null : (this.newResult));
trace((((("TOP SCORE IN1 : " + this.typeGame) + " ") + this.level) + " :") + this.newResult);
this.prevGame_mc.onRollOver = (this.nextGame_mc.onRollOver = function () {
this.gotoAndStop(2);
});
this.prevGame_mc.onRollOut = (this.prevGame_mc.onReleaseOutside = (this.nextGame_mc.onRollOut = (this.nextGame_mc.onReleaseOutside = function () {
this.gotoAndStop(1);
})));
this.nextGame_mc.onRelease = function () {
_root.soundArc.playSound("click", 0);
this=this._parent;//parameter overwritten
this._parent;
this.typeGame++;
if (this.typeGame > 4) {
this.typeGame = 1;
}
this.playInGame.gotoAndStop(this.typeGame + 1);
this.selectGame(this.typeGame, this.level);
};
this.prevGame_mc.onRelease = function () {
_root.soundArc.playSound("click", 0);
this=this._parent;//parameter overwritten
this._parent;
this.typeGame--;
if (this.typeGame < 1) {
this.typeGame = 4;
}
this.playInGame.gotoAndStop(this.typeGame + 1);
this.selectGame(this.typeGame, this.level);
};
this.playInGame.gotoAndStop(this.typeGame + 1);
this.onEnterFrame = function () {
this.selectGameFunc(this[("item" + this.level) + "_btn"], this.level);
this.onEnterFrame = null;
};
this.publishBtn._visible = false;
this._parent.lockButtons(true);
this.allEnabled(false);
}
FTopScoreClass.prototype = new MovieClip();
FTopScoreClass.prototype.allEnabled = function (how) {
this.item1_btn.mainBg.enabled = how;
this.item2_btn.mainBg.enabled = how;
this.item3_btn.mainBg.enabled = how;
this.item4_btn.mainBg.enabled = how;
clearBtn.btn.enabled = how;
continueBtn.btn.enabled = how;
trace("TYPE GAME " + this.typeGame);
this.icon21._visible = false;
this.icon21.gotoAndStop(1);
this.icon22._visible = false;
this.icon22.gotoAndStop(2);
this.icon23._visible = false;
this.icon23.gotoAndStop(3);
this.icon24._visible = false;
this.icon24.gotoAndStop(4);
this.icon31._visible = false;
this.icon32._visible = false;
this.icon33._visible = false;
this.icon34._visible = false;
if (this.typeGame == 2) {
this.icon21._visible = true;
this.icon22._visible = true;
this.icon23._visible = true;
this.icon24._visible = true;
} else if (this.typeGame == 3) {
this.icon31._visible = true;
this.icon32._visible = true;
this.icon33._visible = true;
this.icon34._visible = true;
} else {
this.item1_btn.mainBg.enabled = false;
this.item2_btn.mainBg.enabled = false;
this.item3_btn.mainBg.enabled = false;
this.item4_btn.mainBg.enabled = false;
}
};
FTopScoreClass.prototype.updateButtons = function () {
this.item1_btn.setAction(0);
this.item2_btn.setAction(0);
this.item3_btn.setAction(0);
this.item4_btn.setAction(0);
if ((this.typeGame == 2) || (this.typeGame == 3)) {
this[("item" + Number(this.level)) + "_btn"].setAction(1);
}
};
FTopScoreClass.prototype.selectGame = function (typeGame, level) {
trace("TOP SELECT GAME ");
this.allEnabled(false);
this.publishBtn._visible = false;
if (this.oldResult != null) {
this.saveCurrent();
}
this.typeGame = typeGame;
this.level = level;
this.updateButtons();
if (this.typeGame == 1) {
this.typeNameGame = "scrCB";
} else if (this.typeGame == 2) {
this.typeNameGame = "scrSB" + this.level;
} else if (this.typeGame == 3) {
this.typeNameGame = "scrTB" + this.level;
} else {
this.typeNameGame = "scrAB";
}
this.fileName = "data/" + this.typeNameGame;
trace("FILE NAME>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" + this.fileName);
this[this.typeNameGame] = new Array();
this.existFile = "true";
this.loadData();
};
FTopScoreClass.prototype.loadData = function () {
trace("TOP LOAD DATA " + this.fileName);
cont = new XML();
cont.ignoreWhite = true;
cont._parent = this;
cont.load(this.fileName);
cont.onLoad = function (sucs) {
trace("ON LOAD " + sucs);
if (sucs) {
trace((this._parent.fileName + " load = ") + cont);
this._parent.dataFromFile = cont;
} else {
trace((this._parent.fileName + " NO load = ") + cont);
this._parent.dataFromFile = "";
}
this=this._parent;//parameter overwritten
this._parent;
this.updateData(this.dataFromFile);
};
};
FTopScoreClass.prototype.updateData = function (dataFromFile) {
trace("UPDATE DATA" + this[this.typeNameGame]);
iter1 = new Array();
iter1 = String(dataFromFile).split(this.myNewLine);
var _local2 = 0;
while (_local2 < (iter1.length - 1)) {
trace(">> i" + _local2);
iter2 = new Array();
iter2 = this._parent.uncript(unescape(iter1[_local2])).split("@");
obj = new Object();
obj.player = iter2[0];
obj.score = Number(iter2[1]);
obj.sum = Number(iter2[2]);
obj.howScore = false;
trace((((("add = " + obj.player) + " ") + obj.score) + " ") + obj.sum);
this[this.typeNameGame].push(obj);
_local2++;
}
trace("length loaded arr:" + this[this.typeNameGame]);
this.updateTopScore(this[this.typeNameGame]);
};
FTopScoreClass.prototype.updateTopScore = function (topScoreArr) {
trace("TOP updateTopScore" + topScoreArr.length);
trace("NEW RESULT " + this.newResult);
if (this.newResult != null) {
obj = new Object();
obj.player = "";
obj.score = Number(this.newResult);
obj.sum = 0;
obj.howScore = true;
topScoreArr.push(obj);
this.oldResult = this.newResult;
this.newResult = null;
} else {
this.oldResult = null;
}
topScoreArr.sortOn(["score"], 18);
trace("LOADET DATA " + topScoreArr);
err = -1;
var _local2 = 0;
while (_local2 < 10) {
if (_local2 < topScoreArr.length) {
st = String(topScoreArr[_local2].player) + String(topScoreArr[_local2].score);
sum = this.sumChar(st);
if ((sum != Number(topScoreArr[_local2].sum)) && (topScoreArr[_local2].howScore == false)) {
err = 0;
}
trace((((("SUMM " + sum) + " ") + topScoreArr[_local2].sum) + " ") + err);
this["item" + Number(_local2 + 1)].gotoAndStop(1);
this["item" + Number(_local2 + 1)].num.text = Number(_local2 + 1);
this["item" + Number(_local2 + 1)].player.text = topScoreArr[_local2].player;
this["item" + Number(_local2 + 1)].score.text = topScoreArr[_local2].score;
this["item" + Number(_local2 + 1)].player.selectable = false;
trace("new score " + topScoreArr[_local2].howScore);
if (topScoreArr[_local2].howScore == true) {
this.publishBtn.i = _local2;
this.publishBtn._y = this["item" + Number(_local2 + 1)]._y - 20;
topScoreArr[_local2].howScore = false;
this["item" + Number(_local2 + 1)].gotoAndStop(2);
this["item" + Number(_local2 + 1)].player.selectable = true;
this["item" + Number(_local2 + 1)].goal = topScoreArr[_local2].howScore;
Selection.setFocus(this["item" + Number(_local2 + 1)].player);
}
} else {
this["item" + Number(_local2 + 1)].gotoAndStop(1);
this["item" + Number(_local2 + 1)].num.text = "";
this["item" + Number(_local2 + 1)].player.text = "";
this["item" + Number(_local2 + 1)].score.text = "";
this["item" + Number(_local2 + 1)].player.selectable = false;
}
_local2++;
}
this.allEnabled(true);
if (err == 0) {
this.clearResult();
}
};
FTopScoreClass.prototype.sumChar = function (st) {
sum = 0;
i = 0;
while (i < st.length) {
sum = sum + st.charCodeAt(i);
i++;
}
trace("RETURN SUM=" + sum);
return(sum);
};
FTopScoreClass.prototype.saveCurrent = function () {
newCont = "";
var _local2 = 0;
while (_local2 < 10) {
if (this["item" + Number(_local2 + 1)].score.text != "") {
sum = this.sumChar(this["item" + Number(_local2 + 1)].player.text + this["item" + Number(_local2 + 1)].score.text);
trace((((("save = " + this["item" + Number(_local2 + 1)].player.text) + "@") + this["item" + Number(_local2 + 1)].score.text) + "@") + String(sum));
trace("save cript = " + escape(this._parent.cript((((this["item" + Number(_local2 + 1)].player.text + "@") + this["item" + Number(_local2 + 1)].score.text) + "@") + String(sum))));
newCont = newCont + (escape(this._parent.cript((((this["item" + Number(_local2 + 1)].player.text + "@") + this["item" + Number(_local2 + 1)].score.text) + "@") + String(sum))) + this.myNewLine);
}
_local2++;
}
trace("SAVE " + newCont);
this._parent.saveTopScore.apply(this, [this.fileName, newCont]);
};
FTopScoreClass.prototype.selectGameFunc = function (what, Lvalue) {
this.item1_btn.setAction(0);
this.item2_btn.setAction(0);
this.item3_btn.setAction(0);
this.item4_btn.setAction(0);
if ((this.typeGame == 2) || (this.typeGame == 3)) {
what.setAction(1);
}
this.level = Lvalue;
this.selectGame(this.typeGame, this.level);
};
FTopScoreClass.prototype.clearResult = function () {
var _local2 = 0;
while (_local2 < 10) {
this["item" + Number(_local2 + 1)].gotoAndStop(1);
this["item" + Number(_local2 + 1)].num.text = "";
this["item" + Number(_local2 + 1)].player.text = "";
this["item" + Number(_local2 + 1)].score.text = "";
this["item" + Number(_local2 + 1)].player.selectable = false;
_local2++;
}
newCont = "";
this._parent.saveTopScore.apply(this, [this.fileName, newCont]);
};
FTopScoreClass.prototype.remove = function () {
this.saveCurrent();
this._parent.lockButtons(false);
this._parent.gameTypeForm.enabledTypeGame(true);
trace(((">>>> " + this.option) + " ") + _global.action);
if ((this.option == "game") && (_global.action == "pause")) {
this._parent.speedyBlocks.pauseGameFunc(false);
this._parent.pauseBtn._visible = true;
}
trace(((">>>> " + this.option) + " ") + _global.action);
if (this.option == "gameover") {
this._parent.selectGame();
}
this.onEnterFrame = function () {
this._alpha = this._alpha - 100;
if (this._alpha <= 0) {
this.onEnterFrame = null;
this.removeMovieClip();
}
};
};
Object.registerClass("FTopScore", FTopScoreClass);
#endinitclip
Instance of Symbol 178 MovieClip [FButtonControl] "item4_btn" in Symbol 194 MovieClip [FTopScore] Frame 1
//component parameters
onClipEvent (construct) {
goal = "icon4";
action = 0;
disabledColor = 10066329 /* 0x999999 */;
enabledColor = 13421772 /* 0xCCCCCC */;
activeColor = 7508427 /* 0x7291CB */;
overColor = 10795229 /* 0xA4B8DD */;
handler = "selectGameFunc";
type = "button";
value = 4;
}
Instance of Symbol 178 MovieClip [FButtonControl] "item3_btn" in Symbol 194 MovieClip [FTopScore] Frame 1
//component parameters
onClipEvent (construct) {
goal = "icon3";
action = 0;
disabledColor = 10066329 /* 0x999999 */;
enabledColor = 13421772 /* 0xCCCCCC */;
activeColor = 7508427 /* 0x7291CB */;
overColor = 10795229 /* 0xA4B8DD */;
handler = "selectGameFunc";
type = "button";
value = 3;
}
Instance of Symbol 178 MovieClip [FButtonControl] "item2_btn" in Symbol 194 MovieClip [FTopScore] Frame 1
//component parameters
onClipEvent (construct) {
goal = "icon2";
action = 0;
disabledColor = 10066329 /* 0x999999 */;
enabledColor = 13421772 /* 0xCCCCCC */;
activeColor = 7508427 /* 0x7291CB */;
overColor = 10795229 /* 0xA4B8DD */;
handler = "selectGameFunc";
type = "button";
value = 2;
}
Instance of Symbol 178 MovieClip [FButtonControl] "item1_btn" in Symbol 194 MovieClip [FTopScore] Frame 1
//component parameters
onClipEvent (construct) {
goal = "icon1";
action = 0;
disabledColor = 10066329 /* 0x999999 */;
enabledColor = 13421772 /* 0xCCCCCC */;
activeColor = 7508427 /* 0x7291CB */;
overColor = 10795229 /* 0xA4B8DD */;
handler = "selectGameFunc";
type = "button";
value = 1;
}
Symbol 196 MovieClip [pauseMsg] Frame 1
_alpha = 0;
_x = 85;
_y = 180;
b1.gotoAndPlay(random(10));
b2.gotoAndPlay(random(10));
b3.gotoAndPlay(random(10));
this.onEnterFrame = function () {
_alpha = (_alpha + 20);
if (_alpha >= 100) {
this.onEnterFrame = null;
}
};
this.onPress = function () {
this._parent.pauseGameFunc(false);
};
remove = function () {
this.onEnterFrame = function () {
_alpha = (_alpha - 20);
if (_alpha <= 0) {
this.onEnterFrame = null;
this.removeMovieClip();
}
};
};
Symbol 208 MovieClip [nextLevel] Frame 1
_alpha = 0;
_x = 30;
_y = 180;
this.numLevel2._visible = false;
this.nextLevel._visible = false;
this.onEnterFrame = function () {
_alpha = (_alpha + 20);
if (_alpha >= 100) {
this.onEnterFrame = null;
}
};
remove = function () {
this.onEnterFrame = function () {
_alpha = (_alpha - 10);
if (_alpha <= 0) {
this.onEnterFrame = null;
this.removeMovieClip();
}
};
this._parent.nextLevelStart();
};
this.countSec = 5;
nextFunc = function (g) {
this=g;//parameter overwritten
this.countSec--;
if (this.countSec <= 0) {
remove();
clearInterval(this.nextInterval);
} else if (this.countSec <= 3) {
this.comlieteLevel._visible = false;
this.numLevel._visible = false;
this.textLevel._visible = true;
this.textLevel._x = 30;
this.nextLevel._x = 30;
this.nextLevel._visible = true;
this.numLevel2._visible = true;
}
};
numLevel.num = _global.currentLevel;
if (_global.availableLevel < (_global.currentLevel + 1)) {
numLevel2.num = 1;
} else {
numLevel2.num = _global.currentLevel + 1;
}
this.nextInterval = setInterval(nextFunc, 1000, this);
Symbol 210 MovieClip [gameOver] Frame 1
_alpha = 0;
_x = 20;
_y = 180;
this.onEnterFrame = function () {
_alpha = (_alpha + 20);
if (_alpha >= 100) {
this.onEnterFrame = null;
}
};
remove = function () {
this.onEnterFrame = function () {
_alpha = (_alpha - 10);
if (_alpha <= 0) {
this.onEnterFrame = null;
this.removeMovieClip();
}
};
};
Symbol 214 MovieClip Frame 1
btn.onRelease = function () {
_root.soundArc.playSound("click", 0);
this._parent._parent.remove();
this._parent._parent._parent.speedyBlocks.gameOverFastFunc();
};
Symbol 216 MovieClip Frame 1
btn.onRelease = function () {
_root.soundArc.playSound("click", 0);
this._parent._parent.remove();
fscommand ("flashstudio.exit");
};
Symbol 218 MovieClip Frame 1
btn.onRelease = function () {
_root.soundArc.playSound("click", 0);
this._parent._parent.remove();
};
Symbol 219 MovieClip [FQuestion] Frame 1
#initclip 11
function FQuestionClass() {
this._x = 132;
this._y = 90;
this._xscale = 86.5;
this._yscale = 86.5;
this.bg.useHandCursor = false;
this._parent.gameTypeForm.enabledTypeGame(false);
if (_global.action == "game") {
this._parent.speedyBlocks.pauseGameFunc(true);
this._parent.pauseBtn._visible = false;
}
this._parent.lockButtons(true);
this.posGol = 60;
this.up_mc.onRelease = function () {
this._parent.posGol = this._parent.posGol + 60;
this._parent.onEnterFrame = this._parent.moveCont;
};
this.down_mc.onRelease = function () {
this._parent.posGol = this._parent.posGol - 60;
this._parent.onEnterFrame = this._parent.moveCont;
};
this.up_mc.onRollOver = (this.down_mc.onRollOver = function () {
this.gotoAndStop(2);
});
this.up_mc.onReleaseOutside = (this.up_mc.onRollOut = (this.down_mc.onReleaseOutside = (this.down_mc.onRollOut = function () {
this.gotoAndStop(1);
})));
}
FQuestionClass.prototype = new MovieClip();
FQuestionClass.prototype.moveCont = function () {
if (this.posGol > 60) {
this.posGol = 60;
}
if (this.posGol < (60 - (this.helpCont._height - 352))) {
this.posGol = 60 - (this.helpCont._height - 352);
}
if (Math.abs(this.posGol - this.helpCont._y) < 1) {
this.helpCont._y = this.posGol;
this.onEnterFrame = null;
} else {
this.helpCont._y = this.helpCont._y + ((this.posGol - this.helpCont._y) / 7);
}
};
FQuestionClass.prototype.remove = function () {
this._parent.lockButtons(false);
this._parent.gameTypeForm.enabledTypeGame(true);
trace(((">>>> " + this.option) + " ") + _global.action);
if ((this.option == "game") && (_global.action == "pause")) {
this._parent.speedyBlocks.pauseGameFunc(false);
this._parent.pauseBtn._visible = true;
}
trace(((">>>> " + this.option) + " ") + _global.action);
if (this.option == "gameover") {
this._parent.selectGame();
}
this.onEnterFrame = function () {
this._alpha = this._alpha - 100;
if (this._alpha <= 0) {
this.onEnterFrame = null;
this.removeMovieClip();
}
};
};
Object.registerClass("FQuestion", FQuestionClass);
#endinitclip
Symbol 261 MovieClip Frame 1
stop();
Symbol 264 MovieClip [FHelp] Frame 1
#initclip 12
function FHelpClass() {
this._x = 122;
this._y = 3;
this._xscale = 90;
this._yscale = 90;
this.bg.useHandCursor = false;
this._parent.gameTypeForm.enabledTypeGame(false);
if (_global.action == "game") {
this._parent.speedyBlocks.pauseGameFunc(true);
this._parent.pauseBtn._visible = false;
}
this._parent.lockButtons(true);
this.posGol = 60;
this.up_mc.onRelease = function () {
this._parent.posGol = this._parent.posGol + 60;
this._parent.onEnterFrame = this._parent.moveCont;
};
this.down_mc.onRelease = function () {
this._parent.posGol = this._parent.posGol - 60;
this._parent.onEnterFrame = this._parent.moveCont;
};
this.up_mc.onRollOver = (this.down_mc.onRollOver = function () {
this.gotoAndStop(2);
});
this.up_mc.onReleaseOutside = (this.up_mc.onRollOut = (this.down_mc.onReleaseOutside = (this.down_mc.onRollOut = function () {
this.gotoAndStop(1);
})));
}
FHelpClass.prototype = new MovieClip();
FHelpClass.prototype.moveCont = function () {
if (this.posGol > 60) {
this.posGol = 60;
}
if (this.posGol < (60 - (this.helpCont._height - 352))) {
this.posGol = 60 - (this.helpCont._height - 352);
}
if (Math.abs(this.posGol - this.helpCont._y) < 1) {
this.helpCont._y = Math.round(this.posGol);
this.onEnterFrame = null;
} else {
this.helpCont._y = this.helpCont._y + Math.round((this.posGol - this.helpCont._y) / 7);
}
};
FHelpClass.prototype.remove = function () {
this._parent.lockButtons(false);
this._parent.gameTypeForm.enabledTypeGame(true);
trace(((">>>> " + this.option) + " ") + _global.action);
if ((this.option == "game") && (_global.action == "pause")) {
this._parent.speedyBlocks.pauseGameFunc(false);
this._parent.pauseBtn._visible = true;
}
trace(((">>>> " + this.option) + " ") + _global.action);
if (this.option == "gameover") {
this._parent.selectGame();
}
this.onEnterFrame = function () {
this._alpha = this._alpha - 100;
if (this._alpha <= 0) {
this.onEnterFrame = null;
this.removeMovieClip();
}
};
};
Object.registerClass("FHelp", FHelpClass);
#endinitclip
Symbol 267 MovieClip [blockType2] Frame 1
stop();
Symbol 275 MovieClip [blockType] Frame 1
stop();
Symbol 276 MovieClip [FBlockLevel] Frame 1
#initclip 9
function FBlockLevelClass() {
this.colorType = new Array();
this.colorType[0] = "0xFF0000";
this.colorType[1] = "0x0000FF";
this.colorType[2] = "0xFF9900";
this.colorType[3] = "0x339900";
this.colorType[4] = "0x999999";
}
FBlockLevelClass.prototype = new MovieClip();
Object.registerClass("FBlockLevel", FBlockLevelClass);
FBlockLevelClass.prototype.setLevel = function (levelBlock, typeBlock) {
trace("SET LEVEL " + levelBlock);
switch (Number(levelBlock)) {
case 1 :
this.gotoAndStop(1);
break;
case 2 :
this.gotoAndStop(2);
break;
case 3 :
this.gotoAndStop(3);
break;
default :
this.removeMovieClip();
}
var _local2 = new Color(this.level);
_local2.setRGB(this.colorType[typeBlock]);
};
#endinitclip
Symbol 277 MovieClip [blickItem] Frame 1
stop();
Symbol 281 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 1
this._parent.stop();
Stage.showMenu = false;
Symbol 282 MovieClip Frame 2
p = Math.round(100 * (_root.getBytesLoaded() / _root.getBytesTotal()));
proc.gotoAndStop(p);
trace(p);
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
this._parent.play();
stop();
}
Symbol 282 MovieClip Frame 3
gotoAndPlay (2);
Symbol 355 MovieClip [__Packages.FMusic2] Frame 0
class FMusic2 extends MovieClip
{
var music_arr, activeMusic, valume, indexSound, musicSequence, durationInterval, action;
function FMusic2 () {
super();
music_arr = new Array();
activeMusic = 0;
valume = 50;
indexSound = 0;
musicSequence = new FSequence();
fscommand ("flashstudio.activexinsert", "\"0\",\"0\",\"0\",\"0\",\"mediaPlayer.mediaPlayer.1\"");
fscommand ("flashstudio.activex_doverb_show");
}
function addMusic(links) {
var _local2 = 0;
while (_local2 < links.length) {
music_arr.push(links[_local2]);
_local2++;
}
}
function chackDuration(goal) {
this=goal;//parameter overwritten
fscommand ("flashstudio.activex_getproperty", "\"CurrentPosition\",_level0.musicPos");
fscommand ("flashstudio.activex_getproperty", "\"Duration\",_level0.musicDuration");
if ((_level0.musicDuration == 0) && (_level0.musicPos == -1)) {
clearInterval(durationInterval);
music_arr.splice(activeMusic, 1);
musicSequence.addAction(this, "playMusic", 2000, [activeMusic]);
playMusic(activeMusic);
} else if ((_level0.musicPos == _level0.musicDuration) && (_level0.musicDuration != undefined)) {
clearInterval(durationInterval);
musicSequence.addAction(this, "stopMusic", 2000, [activeMusic + 1]);
musicSequence.addAction(this, "playMusic", 2000, [activeMusic + 1]);
} else if (action == "pause") {
pauseMusic(true);
}
}
function setValume(val) {
valume = val;
_level0.musicValue = String(Math.round(-45 * (100 - valume)));
fscommand ("flashstudio.activex_setproperty", "\"Volume\",\"string\",_level0.musicValue");
}
function playMusic(index) {
if (((index >= music_arr.length) || (index < 0)) || (index == undefined)) {
index = 0;
}
activeMusic = index;
if (valume > 0) {
if (action != "play") {
_level0.musicMidFile = String(music_arr[activeMusic]);
action = "stop";
fscommand ("flashstudio.activex_setproperty", "\"FileName\",\"string\",_level0.musicMidFile");
clearInterval(durationInterval);
durationInterval = setInterval(chackDuration, 500, this);
action = "play";
}
} else {
stopMusic();
}
}
function stopMusic() {
_level0.musicPos = 0;
fscommand ("flashstudio.activex_runmethod", "\"Stop\",\"0\"");
fscommand ("flashstudio.activex_setproperty", "\"CurrentPosition\",\"string\",_level0.musicPos");
_level0.musicDuration = undefined;
action = "stop";
}
function pauseMusic(how) {
if (how) {
clearInterval(durationInterval);
if (action != "stop") {
fscommand ("flashstudio.activex_runmethod", "\"Pause\",\"0\"");
}
action = "pause";
} else if (valume > 0) {
if (action != "stop") {
_level0.musicMidFile = String(music_arr[activeMusic]);
fscommand ("flashstudio.activex_runmethod", "\"Play\",\"0\"");
clearInterval(durationInterval);
durationInterval = setInterval(chackDuration, 500, this);
action = "play";
} else {
playMusic(activeMusic);
}
} else {
stopMusic();
}
}
}
Symbol 356 MovieClip [__Packages.FSequence] Frame 0
class FSequence
{
var actions_arr, value, startInterval;
function FSequence () {
actions_arr = new Array();
}
function addAction(goal, action, delay, param) {
var _local2 = new Object();
_local2.goal = goal;
_local2.action = action;
_local2.delay = delay;
_local2.param = new Array();
_local2.param = param;
actions_arr.push(_local2);
if (actions_arr.length == 1) {
startActions();
}
}
function setValue(val) {
value = val;
}
function getValue() {
return(actions_arr.length);
}
function pauseSequence(how) {
if (how) {
clearInterval(startInterval);
delete startInterval;
} else {
startActions();
}
}
function clearSequence() {
clearInterval(startInterval);
delete startInterval;
while (actions_arr.length > 0) {
actions_arr.shift();
}
}
function deleteItem(who) {
this = who;
eval ((actions_arr[0].goal + ".") + actions_arr[0].action).apply(actions_arr[0].goal, actions_arr[0].param);
actions_arr.shift();
startActions();
}
function startActions() {
clearInterval(startInterval);
delete startInterval;
if (actions_arr.length != 0) {
if (startInterval == undefined) {
startInterval = setInterval(deleteItem, Number(actions_arr[0].delay), this);
}
}
}
}
Symbol 357 MovieClip [__Packages.FSound] Frame 0
class FSound extends MovieClip
{
var valume, indexSound, createEmptyMovieClip, getNextHighestDepth;
function FSound () {
super();
valume = 50;
indexSound = 0;
}
function setValume(val) {
valume = val;
}
function playSound(sound, pan) {
pan = ((pan == undefined) ? 50 : (pan));
if (valume > 0) {
indexSound++;
var _local2 = createEmptyMovieClip("mc" + indexSound, getNextHighestDepth());
_local2.sn = new Sound(_local2);
_local2.sn.attachSound(sound);
_local2.sn.setVolume(valume);
_local2.sn.setPan(pan);
_local2.sn._parent = this;
_local2.sn.mc = _local2;
_local2.sn.indexSound = indexSound;
_local2.sn.onSoundComplete = function () {
this.mc.removeMovieClip();
};
_local2.sn.start();
if (((_local2.sn.duration == 0) || (_local2.sn.duration == undefined)) || (_local2.sn.duration == _local2.sn.position)) {
_local2.removeMovieClip();
}
delete this["mc" + (indexSound - 50)].sn;
this["mc" + (indexSound - 50)].removeMovieClip();
}
}
}
Symbol 358 MovieClip [__Packages.FInterval] Frame 0
class FInterval
{
var funcInterval, msecInterval, intervalArr, properyArr;
function FInterval () {
funcInterval = undefined;
msecInterval = undefined;
intervalArr = new Array();
properyArr = new Array();
}
function interval(nameInterval, goal, func, msec) {
clearInterval(intervalArr[nameInterval]);
properyArr[nameInterval] = new Object();
properyArr[nameInterval].funcInterval = func;
properyArr[nameInterval].msecInterval = msec;
properyArr[nameInterval].goal = goal;
properyArr[nameInterval].how = true;
intervalArr[nameInterval] = setInterval(properyArr[nameInterval].goal[properyArr[nameInterval].funcInterval], properyArr[nameInterval].msecInterval, properyArr[nameInterval].goal);
}
function pauseInterval(how, msec) {
for (var _local4 in intervalArr) {
if (how) {
clearInterval(intervalArr[_local4]);
} else if (properyArr[_local4].how) {
clearInterval(intervalArr[_local4]);
if (msec != undefined) {
properyArr[_local4].msecInterval = msec;
}
intervalArr[_local4] = setInterval(properyArr[_local4].goal[properyArr[_local4].funcInterval], properyArr[_local4].msecInterval, properyArr[_local4].goal);
}
}
}
function stopInterval(nameInterval) {
properyArr[nameInterval].how = false;
clearInterval(intervalArr[nameInterval]);
}
function stopAllInterval() {
for (var _local2 in intervalArr) {
clearInterval(intervalArr[_local2]);
}
}
}
Symbol 286 MovieClip [FBlock] Frame 1
#initclip 18
function FBlockClass() {
this.bonusFlag = new Array();
}
FBlockClass.prototype = new MovieClip();
Object.registerClass("FBlock", FBlockClass);
FBlockClass.prototype.getPanFunc = function () {
dx = 334;
p = -100 + Math.round((this._x * 200) / dx);
return(p);
};
FBlockClass.prototype.setPos2 = function (xPos, yPos) {
this._x = 30 * xPos;
this._y = 30 * yPos;
this.jPosCurent = xPos;
this.iPosCurent = yPos;
};
FBlockClass.prototype.moveBlock = function (how) {
if (how == 0) {
var _local2 = this.jPosCurent + 1;
} else {
var _local2 = this.jPosCurent - 1;
}
this.jPosCurent = _local2;
this._x = 30 * _local2;
};
FBlockClass.prototype.checkMove = function (how) {
if (how == 0) {
var _local3 = Number(this.jPosCurent + 1);
if (_local3 > 10) {
return(0);
}
} else {
var _local3 = Number(this.jPosCurent - 1);
if (_local3 < 0) {
return(0);
}
}
i1 = Math.ceil(this._y / 30);
i2 = Math.round((this._y / 30) - 0.3);
if ((_global.allObject[i1][_local3].name == undefined) && (_global.allObject[i2][_local3].name == undefined)) {
return(1);
}
return(0);
};
FBlockClass.prototype.checkStop = function (i, j) {
this.tt.text = i;
if (i == 15) {
return(1);
}
if (_global.allObject[i][j].name != undefined) {
return(1);
}
return(0);
};
FBlockClass.prototype.updateBlock = function (itemArr, how) {
var _local7 = Math.round((4 - ((4 * _global.speedGame) / 30)) + 2);
var _local8 = 1 - ((0.8 * _global.speedGame) / 30);
var _local6 = this._y + (how ? (_local7) : (_local8));
var _local4 = Math.ceil(_local6 / 30);
var _local5 = Math.ceil(this._x / 30);
this.iPosCurent = _local4;
this.jPosCurent = _local5;
if (this.checkStop(_local4, _local5)) {
_local4--;
this.iPosCurent = _local4;
this.setPos(_local4, _local5, itemArr);
_root.soundArc.playSound("blockDown", this.getPanFunc());
if (_local4 == -1) {
itemArr.fly = false;
if (_global.action != "gameover") {
this._parent.gameOverFunc();
}
}
} else {
this._y = _local6;
}
};
FBlockClass.prototype.setBonus = function (typeBonus) {
this.bonusFlag.push(typeBonus);
};
FBlockClass.prototype.setPause = function (how) {
if (how) {
this.block.gotoAndStop((("sk" + String(this.blockSkin)) + "_") + String(5));
} else {
this.block.gotoAndStop((("sk" + String(this.blockSkin)) + "_") + String(this.blockColor));
}
};
FBlockClass.prototype.bonus = function () {
var _local3 = 0;
while (_local3 < this.bonusFlag.length) {
index = this._parent.getNextHighestDepth();
this._parent.attachMovie("FBonus", "bonus" + index, index);
this._parent["bonus" + index].activate(this._x + random(20), this._y + random(20), this.bonusFlag[_local3]);
this._parent._parent.topScoreArea.addToScore(this.bonusFlag[_local3]);
_root.soundArc.playSound("bonus", this.getPanFunc());
_local3++;
}
this.bonusFlag = new Array();
};
FBlockClass.prototype.getType = function () {
var _local2 = new Object();
_local2.blockType = this.blockType;
_local2.blockColor = this.blockColor;
_local2.blockLevel = this.blockLevel;
return(_local2);
};
FBlockClass.prototype.refreshBlock = function () {
this.block.removeMovieClip();
if (this.blockType == "bomba") {
this.attachMovie("blockType2", "block", this.getNextHighestDepth());
} else {
this.attachMovie("blockType", "block", this.getNextHighestDepth());
if (this.blockType.substring(0, 3) == "key") {
this.attachMovie(this.blockType, "key", this.getNextHighestDepth());
this.key._x = 5;
this.key._y = 3;
}
}
this.block.gotoAndStop((("sk" + String(this.blockSkin)) + "_") + String(this.blockColor));
if ((Number(this.blockLevel) > 0) && (Number(this.blockLevel) < 10)) {
if (this.levelMc == undefined) {
this.attachMovie("FBlockLevel", "levelMc", this.getNextHighestDepth());
this.levelMc._x = 15;
this.levelMc._y = 15;
}
this.levelMc.setLevel(Number(this.blockLevel), Number(this.blockColor));
this.levelMc.swapDepths(this.getNextHighestDepth());
} else {
this.levelMc.removeMovieClip();
obj.blockColor = 0;
}
};
FBlockClass.prototype.changeType = function (obj) {
this.blockType = obj.blockType;
this.blockColor = obj.blockColor;
this.blockLevel = obj.blockLevel;
this.refreshBlock();
};
FBlockClass.prototype.changeLevel = function (level) {
};
FBlockClass.prototype.setType = function (id, skin, type, color, level) {
this.blockType = type;
this.blockSkin = skin;
this.blockID = id;
this.blockLevel = ((level == undefined) ? 0 : (level));
this.blockColor = color;
this.refreshBlock();
};
FBlockClass.prototype.setPos = function (i, j, itemArr) {
itemArr.fly = false;
this.iPos = i;
this.jPos = j;
this.x = 30 * j;
this.y = 30 * i;
this._x = this.x;
this._y = this.y;
this.x = this._x;
this.y = this._y;
if (_global.allObject[this.iPos][this.jPos] == undefined) {
_global.allObject[this.iPos][this.jPos] = new Object();
}
_global.allObject[this.iPos][this.jPos].name = this._name;
_global.allObject[this.iPos][this.jPos].deleteID = -1;
};
FBlockClass.prototype.addAroundToDelete = function () {
var _local8 = new Array(1, 1, 1, 0, -1, -1, -1, 0);
var _local7 = new Array(-1, 0, 1, 1, 1, 0, -1, -1);
var _local3 = 0;
while (_local3 <= 8) {
var _local6 = Number(Number(this.iPos) + _local8[_local3]);
var _local5 = Number(Number(this.jPos) + _local7[_local3]);
if (this._parent[_global.allObject[_local6][_local5].name] != undefined) {
this._parent[_global.allObject[_local6][_local5].name].blockLevel = 0;
var _local4 = new Object();
_local4.name = _global.allObject[_local6][_local5].name;
_local4.del = true;
_global.deleteObjects2.push(_local4);
}
_local3++;
}
};
FBlockClass.prototype.addColonToFly = function () {
var _local3 = this.iPos - 1;
while (_local3 >= 0) {
if (_global.allObject[_local3][this.jPos].name != undefined) {
if (this.blockType == "bomba") {
}
if (this._parent[_global.allObject[_local3][this.jPos].name].blockColor != 6) {
var _local4 = new Object();
_local4.name = _global.allObject[_local3][this.jPos].name;
_global.allObject[_local3][this.jPos].name = undefined;
_global.allObject[_local3][this.jPos].deleteID = 0;
_local4.fly = true;
_global.flyObjects.push(_local4);
} else {
break;
}
}
_local3--;
}
};
FBlockClass.prototype.boomBlock = function (arrItem) {
if (this.boomDepth == undefined) {
this.boomDepth = 0;
this.onEnterFrame = null;
this.block.removeMovieClip();
this.attachMovie("boom", "boomMc", this.getNextHighestDepth());
this.swapDepths(this._parent.getNextHighestDepth());
_global.allObject[this.iPos][this.jPos].name = undefined;
_global.allObject[this.iPos][this.jPos].deleteID = 0;
_root.soundArc.playSound("boomBomba", this.getPanFunc());
}
this._xscale = this._xscale + 40;
this._yscale = this._yscale + 40;
this._x = this._x - 6;
this._y = this._y - 6;
if (this._xscale >= 300) {
this.addAroundToDelete();
this.addColonToFly();
arrItem.boom = false;
this._parent._parent.topScoreArea.addToScore(20);
this.bonus();
this.removeMovieClip();
}
};
FBlockClass.prototype.deleteBlock = function (arrItem) {
if ((this.blockType == "block") || (this.blockType.substring(0, 3) == "key")) {
if (this.blickItem == undefined) {
this.attachMovie("blickItem", "blickItem", this.getNextHighestDepth());
_root.soundArc.playSound("out", this.getPanFunc());
this.blickItem._x = 2;
this.blickItem._y = 2;
this.swapDepths(this._parent.getNextHighestDepth());
}
if (this.blickItem._currentframe == this.blickItem._totalframes) {
if (this.blockLevel == 0) {
var _local5 = 7 - ((6 * _global.speedGame) / 30);
this._xscale = this._xscale - _local5;
this._yscale = this._yscale - _local5;
var _local6 = (30 / (100 / _local5)) / 2;
this._x = this._x + _local6;
this._y = this._y + _local6;
if (this._xscale <= 0) {
arrItem.del = false;
_global.allObject[this.iPos][this.jPos].name = undefined;
_global.allObject[this.iPos][this.jPos].deleteID = 0;
this.addColonToFly();
if (this.blockType.substring(0, 3) == "key") {
_global.keys--;
this._parent._parent.keyArea.minusKey(this.blockType);
this._parent._parent.topScoreArea.addToScore(10);
}
this._parent._parent.topScoreArea.addToScore(10);
this.bonus();
this.removeMovieClip();
}
} else {
arrItem.del = false;
this.blockLevel = Number(this.blockLevel) - 1;
this.refreshBlock();
this.blickItem.removeMovieClip();
this.bonus();
}
} else {
this.blickItem.gotoAndStop(this.blickItem._currentframe + 1);
}
} else {
arrItem.del = false;
var _local4 = new Object();
_local4.name = this._name;
_local4.boom = true;
_global.boomObjects.push(_local4);
this.zapal = true;
this.mandrage();
}
};
FBlockClass.prototype.mandrage = function () {
this.block.fire.gotoAndPlay(2);
this.onEnterFrame = function () {
this.block._x = random(2) - 1;
this.block._y = random(2) - 1;
};
};
FBlockClass.prototype.removeBlock = function (arrItem) {
this._alpha = this._alpha - 20;
this._y = this._y + 10;
if (this._alpha <= 0) {
arrItem.del = false;
_global.allObject[this.iPos][this.jPos].name = undefined;
_global.allObject[this.iPos][this.jPos].deleteID = 0;
delete this.gameOverInterval;
this.removeMovieClip();
}
};
#endinitclip
Symbol 289 MovieClip Frame 1
item._visible = false;
z = 0;
_global.scoreForBoom = 10;
_global.speedGame = 10;
_global.action = "stop";
_global.pauseGameVar = false;
var sequence = new FSequence();
var sequenceGameOver = new FSequence();
var intervalGame = new FInterval();
_root.attachMovie("musicClass", "musicArc", _root.getNextHighestDepth());
_root.attachMovie("soundClass", "soundArc", _root.getNextHighestDepth());
_global.musicValue = 50;
_global.effectValue = 50;
_root.musicArc.setValume(_global.musicValue);
_root.soundArc.setValume(_global.effectValue);
_root.musicArc.addMusic(["music/m1.mid", "music/m2.mid", "music/m3.mid", "music/m4.mid"]);
pauseAllSequence = function (how) {
sequence.pauseSequence(how);
sequenceGameOver.pauseSequence(how);
};
clearAllSequence = function (how) {
sequence.clearSequence();
sequenceGameOver.clearSequence();
};
deleteAllObj = function () {
for (var _local2 in this) {
if ((_local2 != "item") && (this[_local2].blockType != undefined)) {
this[_local2].removeMovieClip();
}
}
this.gameOver.removeMovieClip();
this.pauseMsg.removeMovieClip();
};
deleteAllMc = function () {
for (var _local2 in this) {
if (_local2 != "item") {
this[_local2].removeMovieClip();
}
}
};
pauseBlocksFunc = function (how) {
for (var _local3 in this) {
this[_local3].setPause(how);
}
};
pauseGameFunc = function (how) {
this._parent.timerMc.pause(how);
_root.musicArc.pauseMusic(how);
_global.pauseGameVar = how;
pauseBlocksFunc(how);
pauseAllSequence(how);
intervalGame.pauseInterval(how, 0);
this._parent.pauseBtn.gotoAndStop((how ? 2 : 1));
if (how) {
_global.action = "pause";
if (this.pauseMsg == undefined) {
var _local5 = this.getNextHighestDepth();
this.attachMovie("pauseMsg", "pauseMsg", _local5);
this.pauseMsg._alpha = 0;
}
} else {
_global.action = "game";
this.pauseMsg.remove();
}
};
removeBlocks = function (target) {
this=target;//parameter overwritten
var _local3 = true;
for (var _local4 in _global.removeObjects) {
if (_global.removeObjects[_local4].del && (this[_global.removeObjects[_local4].name] != undefined)) {
_local3 = false;
this[_global.removeObjects[_local4].name].removeBlock(_global.removeObjects[_local4]);
}
}
if (_local3) {
intervalGame.stopInterval("remove");
}
};
addToRemove = function (mcName) {
var _local2 = new Object();
_local2.name = mcName;
_local2.del = true;
_global.removeObjects.push(_local2);
};
clearGameArea = function () {
var _local2 = true;
for (var _local3 in this) {
if ((_local3 != "item") && (this[_local3].blockType != undefined)) {
if (_local2) {
sequenceGameOver.addAction(this, "addToRemove", 0, [this[_local3]._name]);
_local2 = false;
} else {
sequenceGameOver.addAction(this, "addToRemove", 30, [this[_local3]._name]);
}
}
}
intervalGame.interval("remove", this, "removeBlocks", 30);
sequenceGameOver.addAction(this, "deleteAllObj", 100);
};
gameOverFastFunc = function () {
_root.musicArc.stopMusic();
_root.soundArc.playSound("gover", 0);
clearAllSequence();
this._parent.playInGame.gotoAndStop(1);
this._parent.pauseBtn._visible = false;
_global.action = "gameover";
intervalGame.stopAllInterval();
var _local4 = this._parent.topScoreArea.getScore();
if (_local4 == 0) {
_local4 = undefined;
}
if (_global.currentTypeGame == 3) {
this._parent.timerMc.stopTimer();
}
this.deleteAllObj();
sequenceGameOver.addAction(this._parent, "selectGame", 200);
};
gameOverFunc = function () {
_root.musicArc.stopMusic();
_root.soundArc.playSound("gover", 0);
clearAllSequence();
this._parent.playInGame.gotoAndStop(1);
this._parent.pauseBtn._visible = false;
intervalGame.stopAllInterval();
var _local5 = this.getNextHighestDepth();
this.gameOver.removeMovieClip();
this.attachMovie("gameOver", "gameOver", _local5);
this.gameOver._alpha = 0;
if (_global.action != "gameover") {
_global.action = "gameover";
}
var _local4 = this._parent.topScoreArea.getScore();
if (_local4 == 0) {
_local4 = undefined;
}
if (_global.currentTypeGame == 3) {
this._parent.timerMc.stopTimer();
}
this.clearGameArea();
sequenceGameOver.addAction(this._parent, "selectGame", 200);
};
newBlock = function (posi, posj, newIndex) {
var _local2 = this.getNextHighestDepth();
this.item.duplicateMovieClip("item" + _local2, _local2);
var _local3 = this._parent.nextBlocksMc.getBlock(newIndex);
this["item" + _local2].setType(_local2, 1, _local3.type, _local3.color, _local3.level);
this["item" + _local2].setPos2(posi, posj);
_local3 = new Object();
_local3.name = this["item" + _local2]._name;
_local3.fly = true;
return(_local3);
};
recurseBoom1 = function (i, j, blockColor, delID, arr) {
arr.push(_global.allObject[i][j].name);
this[_global.allObject[i][j].name].deleteID = delID;
var _local6 = Number(i + 1);
var _local7 = Number(j + 1);
var _local3 = this[_global.allObject[_local6][_local7].name];
if ((((_local3 != undefined) && (_local3.blockColor == blockColor)) && (delID != _local3.deleteID)) && (_local3.zapal != true)) {
recurseBoom1(_local6, _local7, blockColor, delID, arr);
}
_local6 = Number(i - 1);
_local7 = Number(j - 1);
_local3 = this[_global.allObject[_local6][_local7].name];
if ((((_local3 != undefined) && (_local3.blockColor == blockColor)) && (delID != _local3.deleteID)) && (_local3.zapal != true)) {
recurseBoom1(_local6, _local7, blockColor, delID, arr);
}
};
recurseBoom2 = function (i, j, blockColor, delID, arr) {
arr.push(_global.allObject[i][j].name);
this[_global.allObject[i][j].name].deleteID = delID;
var _local6 = Number(i - 1);
var _local7 = Number(j + 1);
var _local3 = this[_global.allObject[_local6][_local7].name];
if ((((_local3 != undefined) && (_local3.blockColor == blockColor)) && (delID != _local3.deleteID)) && (_local3.zapal != true)) {
recurseBoom2(_local6, _local7, blockColor, delID, arr);
}
_local6 = Number(i + 1);
_local7 = Number(j - 1);
_local3 = this[_global.allObject[_local6][_local7].name];
if ((((_local3 != undefined) && (_local3.blockColor == blockColor)) && (delID != _local3.deleteID)) && (_local3.zapal != true)) {
recurseBoom2(_local6, _local7, blockColor, delID, arr);
}
};
recurseBoom3 = function (i, j, blockColor, delID, arr) {
arr.push(_global.allObject[i][j].name);
this[_global.allObject[i][j].name].deleteID = delID;
var _local6 = Number(i);
var _local7 = Number(j + 1);
var _local3 = this[_global.allObject[_local6][_local7].name];
if ((((_local3 != undefined) && (_local3.blockColor == blockColor)) && (delID != _local3.deleteID)) && (_local3.zapal != true)) {
recurseBoom3(_local6, _local7, blockColor, delID, arr);
}
_local6 = Number(i);
_local7 = Number(j - 1);
_local3 = this[_global.allObject[_local6][_local7].name];
if ((((_local3 != undefined) && (_local3.blockColor == blockColor)) && (delID != _local3.deleteID)) && (_local3.zapal != true)) {
recurseBoom3(_local6, _local7, blockColor, delID, arr);
}
};
recurseBoom4 = function (i, j, blockColor, delID, arr) {
arr.push(_global.allObject[i][j].name);
this[_global.allObject[i][j].name].deleteID = delID;
var _local6 = Number(i - 1);
var _local7 = Number(j);
var _local3 = this[_global.allObject[_local6][_local7].name];
if ((((_local3 != undefined) && (_local3.blockColor == blockColor)) && (delID != _local3.deleteID)) && (_local3.zapal != true)) {
recurseBoom4(_local6, _local7, blockColor, delID, arr);
}
_local6 = Number(i + 1);
_local7 = Number(j);
_local3 = this[_global.allObject[_local6][_local7].name];
if ((((_local3 != undefined) && (_local3.blockColor == blockColor)) && (delID != _local3.deleteID)) && (_local3.zapal != true)) {
recurseBoom4(_local6, _local7, blockColor, delID, arr);
}
};
deleteBlocks = function (target) {
this=target;//parameter overwritten
var _local3 = true;
for (var _local4 in _global.deleteObjects) {
if (_global.deleteObjects[_local4].del && (this[_global.deleteObjects[_local4].name] != undefined)) {
_local3 = false;
this[_global.deleteObjects[_local4].name].deleteBlock(_global.deleteObjects[_local4]);
}
}
if (_local3) {
intervalGame.stopInterval("delete");
if (_global.flyObjects.length > 0) {
_global.fastFly = 1;
intervalGame.interval("fly", this, "flyBlocks", 0);
} else {
beginBoom();
}
}
updateAfterEvent();
};
boomBlocks = function (target) {
this=target;//parameter overwritten
var _local4 = true;
for (var _local6 in _global.boomObjects) {
if (_global.boomObjects[_local6].boom && (this[_global.boomObjects[_local6].name] != undefined)) {
_local4 = false;
this[_global.boomObjects[_local6].name].boomBlock(_global.boomObjects[_local6]);
}
}
if (_local4) {
intervalGame.stopInterval("boom");
_global.boomObjects = new Array();
if (_global.deleteObjects2.length > 0) {
for (var _local5 in _global.deleteObjects2) {
var _local3 = new Object();
_local3.name = _global.deleteObjects2[_local5].name;
_local3.del = true;
_global.deleteObjects[_local3.name] = _local3;
}
intervalGame.interval("delete", this, "deleteBlocks", 0);
} else if ((_global.keys == 0) && (_global.currentTypeGame == 4)) {
this.nextLevel();
} else {
newLineBlocks();
}
}
updateAfterEvent();
};
recursDelete = function () {
boomArr = new Array();
for (var _local7 in _global.flyObjects) {
if (this[_global.flyObjects[_local7].name].zapal != true) {
deleteID++;
var _local4 = new Array();
recurseBoom1(this[_global.flyObjects[_local7].name].iPos, this[_global.flyObjects[_local7].name].jPos, this[_global.flyObjects[_local7].name].blockColor, deleteID, _local4);
boomArr.push(_local4);
deleteID++;
_local4 = new Array();
recurseBoom2(this[_global.flyObjects[_local7].name].iPos, this[_global.flyObjects[_local7].name].jPos, this[_global.flyObjects[_local7].name].blockColor, deleteID, _local4);
boomArr.push(_local4);
deleteID++;
_local4 = new Array();
recurseBoom3(this[_global.flyObjects[_local7].name].iPos, this[_global.flyObjects[_local7].name].jPos, this[_global.flyObjects[_local7].name].blockColor, deleteID, _local4);
boomArr.push(_local4);
deleteID++;
_local4 = new Array();
recurseBoom4(this[_global.flyObjects[_local7].name].iPos, this[_global.flyObjects[_local7].name].jPos, this[_global.flyObjects[_local7].name].blockColor, deleteID, _local4);
boomArr.push(_local4);
}
}
_global.deleteObjects = new Array();
_global.deleteObjects2 = new Array();
var _local6 = false;
for (var _local7 in boomArr) {
if (boomArr[_local7].length >= 3) {
_local6 = true;
for (var _local5 in boomArr[_local7]) {
var _local3 = new Object();
_local3.name = this[boomArr[_local7][_local5]]._name;
_local3.del = true;
_global.deleteObjects[_local3.name] = _local3;
}
}
}
if (_local6) {
this.goBonus(_global.deleteObjects);
intervalGame.interval("delete", this, "deleteBlocks", 0);
} else {
_global.flyObjects = new Array();
beginBoom();
}
};
flyBlocks = function (goal) {
this=goal;//parameter overwritten
if (_global.fastFly == 1) {
_global.fastFly = 2;
intervalGame.stopInterval("delete");
intervalGame.interval("fly2", this, "flyBlocks", 0);
}
if (_global.fastFly == 0) {
intervalGame.stopInterval("fly2");
}
ff = false;
if (_global.flyObjects.length > 0) {
var _local4 = true;
var ff = _global.fastFly;
var _local3 = 0;
while (_local3 < _global.flyObjects.length) {
if (_global.flyObjects[_local3].fly && (this[_global.flyObjects[_local3].name] != undefined)) {
_local4 = false;
this[_global.flyObjects[_local3].name].updateBlock(_global.flyObjects[_local3], ff);
}
_local3++;
}
updateAfterEvent();
if (_local4) {
intervalGame.stopInterval("fly");
intervalGame.stopInterval("fly2");
_global.flyBlocks = false;
recursDelete();
}
} else {
intervalGame.stopInterval("fly");
_global.flyBlocks = false;
}
};
newLineBlocks = function () {
if (_global.action == "pause") {
pauseGameFunc(true);
} else {
_global.action = "game";
}
_global.flyObjects = new Array();
_global.flyObjects.push(this.newBlock(4, -1, 0));
_global.flyObjects.push(this.newBlock(5, -1, 1));
_global.flyObjects.push(this.newBlock(6, -1, 2));
boomArr = new Array();
bonusNum = 0;
_global.flyBlocks = true;
_global.fastFly = 0;
intervalGame.interval("fly", this, "flyBlocks", 0);
};
beginBoom = function () {
if (_global.boomObjects.length > 0) {
intervalGame.interval("boom", this, "boomBlocks", 0);
} else if ((_global.keys == 0) && (_global.currentTypeGame == 4)) {
this.nextLevel();
} else {
newLineBlocks();
}
};
nextLevelStart = function () {
if (_global.availableLevel < (_global.currentLevel + 1)) {
this.newGame(_global.currentTypeGame, _global.currentDifficultGame, 1, "continue");
} else {
this.newGame(_global.currentTypeGame, _global.currentDifficultGame, _global.currentLevel + 1, "continue");
}
this._parent.lockButtons(false);
};
nextLevel = function () {
_root.soundArc.playSound("endlevel", 0);
clearGameArea();
if (this.nextMsg == undefined) {
var _local4 = this.getNextHighestDepth();
this.attachMovie("nextLevel", "nextMsg", _local4);
this.nextMsg._alpha = 0;
}
this._parent.lockButtons(true);
_global.action == "nextlevel";
};
newGame = function (typeGame, difficultGame, adventureLevel, how) {
_global.currentTypeGame = typeGame;
_global.currentDifficultGame = difficultGame;
_global.currentLevel = adventureLevel;
if (how != "continue") {
_level0.demoTime = 1;
_level0.continueNumber = 4;
this._parent.topScoreArea.clearScore();
}
this._parent.typeMc.setType(_global.currentTypeGame);
_global.keys = 0;
this._parent.playInGame.gotoAndStop(typeg + 1);
this._parent.skillGameForm.setSkill(_global.levelGame);
this._parent.nextBlocksMc.beginGame();
this._parent.pauseBtn._visible = true;
_global.action = "game";
deleteID = 1;
_global.allObject = new Array();
var _local3 = 0;
while (_local3 < 15) {
_global.allObject[_local3] = new Array();
_local3++;
}
_global.flyObjects = new Array();
_global.deleteObjects = new Array();
_global.boomObjects = new Array();
_global.removeObjects = new Array();
this.createLevel(_global.currentLevel);
this._parent.nextBlocksMc.beginGame(_global.currentTypeGame, _global.currentDifficultGame);
if (_global.currentTypeGame == 3) {
sequence.addAction(this._parent.timerMc, "startTimer", 50, [_global.currentDifficultGame]);
}
};
addBlockToLevel = function (skin, type, color, level, i, j) {
var _local2 = this.getNextHighestDepth();
this.item.duplicateMovieClip("item" + _local2, _local2);
this["item" + _local2].setType(_local2, 1, type, color, level);
this["item" + _local2].setPos(i, j);
};
createLevel = function (adventureLevel) {
var _local5 = new Array();
_local5 = _level0.levels[adventureLevel].split(";");
this._parent.keyArea.clearAllKey();
var _local4 = 0;
while (_local4 < _local5.length) {
var _local3 = new Array();
_local3 = _local5[_local4].split(",");
sequence.addAction(this, "addBlockToLevel", 50, [1, _local3[0], _local3[3], _local3[4], _local3[1], _local3[2]]);
if (_local3[0].substring(0, 3) == "key") {
this._parent.keyArea.addKey(_local3[0]);
_global.keys++;
}
_local4++;
}
sequence.addAction(this, "newLineBlocks", 50);
};
gameLock = function (how) {
gameBg.enabled = !how;
if (how) {
_global.gameAction = "lock";
} else {
_global.gameAction = "unlock";
}
};
moveBlocks = function (how) {
var _local4 = true;
var _local3 = 1;
var _local6 = 0;
for (var _local7 in _global.flyObjects) {
if (_global.flyObjects[_local7].fly) {
_local6 = _local6 + (_local3 * _local3);
_local4 = this[_global.flyObjects[_local7].name].checkMove(how);
if (_local4 == false) {
break;
}
}
_local3++;
}
if (_local4) {
if (_local6 != 10) {
for (var _local7 in _global.flyObjects) {
if (_global.flyObjects[_local7].fly) {
this[_global.flyObjects[_local7].name].moveBlock(how);
}
}
}
}
};
changeBlocks = function () {
var _local4 = new Array();
for (var _local5 in _global.flyObjects) {
if (_global.flyObjects[_local5].fly) {
_local4.push(this[_global.flyObjects[_local5].name].getType());
}
}
var _local3 = 0;
if (_local4.length > 1) {
for (var _local5 in _global.flyObjects) {
if (_global.flyObjects[_local5].fly) {
_local3++;
if (_local3 >= _local4.length) {
_local3 = 0;
}
this[_global.flyObjects[_local5].name].changeType(_local4[_local3]);
}
}
}
};
keyDownObj = new Object();
keyDownObj.onKeyDown = function () {
if ((_global.action == "game") && (_global.flyBlocks)) {
if (Key.getCode() == 39) {
moveBlocks(0);
} else if (Key.getCode() == 37) {
moveBlocks(1);
} else if (Key.getCode() == 40) {
_global.fastFly = true;
} else if (Key.getCode() == 38) {
changeBlocks();
}
}
if ((_global.action == "game") || (_global.action == "pause")) {
if (Key.getCode() == 80) {
_global.pauseGameVar = !_global.pauseGameVar;
pauseGameFunc(_global.pauseGameVar);
}
}
if (Key.getCode() == 27) {
fscommand ("flashstudio.minimize");
}
};
keyDownObj.onKeyUp = function () {
_global.fastFly = false;
};
Key.removeListener(keyDownObj);
Key.addListener(keyDownObj);
gameBg._focusrect = false;
gameBg.useHandCursor = false;
goBonus = function (arr) {
var _local3 = 0;
var _local2 = new Array();
for (var _local5 in arr) {
_local2.push(this[String(_local5)]);
_local3++;
}
bonusNum = bonusNum + _local3;
_local3 = bonusNum;
if (_local3 >= 45) {
_local2[0].setBonus(50000);
} else if (_local3 >= 40) {
_local2[2].setBonus(2500);
_local2[1].setBonus(2500);
_local2[0].setBonus(25000);
} else if (_local3 >= 35) {
g.setBonus(25000);
} else if (_local3 >= 30) {
_local2[2].setBonus(2500);
_local2[1].setBonus(2500);
_local2[0].setBonus(2500);
} else if (_local3 >= 25) {
g.setBonus(2500);
} else if (_local3 >= 20) {
_local2[2].setBonus(250);
_local2[1].setBonus(250);
_local2[0].setBonus(250);
} else if (_local3 >= 15) {
_local2[0].setBonus(250);
} else if (_local3 >= 12) {
_local2[2].setBonus(25);
_local2[1].setBonus(25);
_local2[0].setBonus(25);
} else if (_local3 >= 6) {
_local2[0].setBonus(25);
}
};
updateFlash = function (goal) {
this=goal;//parameter overwritten
updateAfterEvent();
_level0.t2 = new Date().getTime();
var _local2 = _level0.t2 - _level0.t1;
if (_local2 != 0) {
fps.text = Math.round(1000 / _local2);
}
_level0.t1 = _level0.t2;
};
updateInterval = setInterval(updateFlash, 0, this);
demoFunc = function (t) {
this=t;//parameter overwritten
if ((_global.action == "game") || (_global.action == "pause")) {
this._parent.purchaseGame(_global.action);
trace("INTRVAL " + this);
}
_level0.demoTime--;
if (_level0.demoTime < 1) {
_level0.demoTime = 1;
} else {
clearInterval(demoInterval);
demoInterval = setInterval(demoFunc, (_level0.demoTime * 60) * 1000, this);
}
};
_level0.demoTime = 2;
clearInterval(demoInterval);
demoInterval = setInterval(demoFunc, (_level0.demoTime * 60) * 1000, this);
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 16
if (mogno) {
gotoAndPlay (2);
}
Symbol 310 MovieClip Frame 1
b.stop();
b.gotoAndStop(3);
btn.onRollOver = function () {
this._parent.blik.play();
this._parent.blik.mogno = true;
};
btn.onRollOut = (btn.onReleaseOutside = function () {
this._parent.blik.mogno = false;
});
btn.onRelease = function () {
_root.soundArc.playSound("click", 0);
trace("RELEASE" + _global.action);
this._parent._parent.purchaseGame(_global.action);
trace((((((undefined + " ") + _global.levelGame) + " ") + undefined) + " ") + _global.action);
};
Symbol 312 MovieClip Frame 1
b.stop();
b.gotoAndStop(5);
btn.onRollOver = function () {
this._parent.blik.mogno = true;
this._parent.blik.play();
};
btn.onRollOut = (btn.onReleaseOutside = function () {
this._parent.blik.mogno = false;
});
btn.onRelease = function () {
_root.soundArc.playSound("click", 0);
if ((_global.action == "game") || (_global.action == "pause")) {
this._parent._parent.questionGame(_global.action);
} else {
fscommand ("flashstudio.exit");
}
};
Symbol 314 MovieClip Frame 1
b.stop();
b.gotoAndStop(4);
btn.onRollOver = function () {
this._parent.blik.mogno = true;
this._parent.blik.play();
};
btn.onRollOut = (btn.onReleaseOutside = function () {
this._parent.blik.mogno = false;
});
btn.onRelease = function () {
_root.soundArc.playSound("click", 0);
this._parent._parent.helpGame(_global.action);
};
Symbol 316 MovieClip Frame 1
b.stop();
b.gotoAndStop(2);
btn.onRollOver = function () {
this._parent.blik.play();
this._parent.blik.mogno = true;
};
btn.onRollOut = (btn.onReleaseOutside = function () {
this._parent.blik.mogno = false;
});
btn.onRelease = function () {
_root.soundArc.playSound("click", 0);
trace("RELEASE" + _global.action);
this._parent._parent.optionGame(_global.action);
};
Symbol 319 MovieClip Frame 1
b.stop();
stop();
b.gotoAndStop(1);
btn.onRollOver = function () {
this._parent.blik.mogno = true;
this._parent.blik.play();
};
btn.onRollOut = (btn.onReleaseOutside = function () {
this._parent.blik.mogno = false;
});
btn.onRelease = function () {
_root.soundArc.playSound("click", 0);
if (_global.action == "game") {
this._parent._parent.speedyBlocks.pauseGameFunc(true);
this._parent.gotoAndStop(2);
} else if (_global.action == "pause") {
this._parent._parent.speedyBlocks.pauseGameFunc(false);
this._parent.gotoAndStop(1);
}
};
Symbol 325 MovieClip [FNextBlock] Frame 1
#initclip 15
function FNextBlockClass() {
this.newBloks = new Array();
this.newBloks[0] = new Object();
this.newBloks[1] = new Object();
this.newBloks[2] = new Object();
this.nextBlocks();
}
FNextBlockClass.prototype = new MovieClip();
FNextBlockClass.prototype.clearAll = function () {
this.item0.gotoAndStop(6);
this.item1.gotoAndStop(6);
this.item2.gotoAndStop(6);
};
FNextBlockClass.prototype.pause = function (how) {
var _local2 = 0;
while (_local2 < 3) {
if (how) {
this["item" + _local2].gotoAndStop(6);
} else {
this["item" + _local2].gotoAndStop(this.newBloks[_local2] + 1);
}
_local2++;
}
};
FNextBlockClass.prototype.getNewBlock = function () {
var _local2 = new Object();
if ((this.typeGame == 1) || (this.typeGame == 3)) {
_local2.type = "block";
_local2.color = random(5);
_local2.level = 0;
} else {
_local2.type = ((random(15) == 0) ? "bomba" : "block");
_local2.color = random(5);
if (_local2.type == "bomba") {
_local2.level = 0;
} else {
_local2.level = ((random(5) == 0) ? (random(this.levelGame + 1)) : 0);
}
}
return(_local2);
};
FNextBlockClass.prototype.refreshNewBlocks = function () {
var _local2 = 0;
while (_local2 < 3) {
if (this.newBloks[_local2].type == "block") {
this["item" + _local2].gotoAndStop(this.newBloks[_local2].color + 1);
} else {
this["item" + _local2].gotoAndStop(this.newBloks[_local2].color + 7);
}
_local2++;
}
};
FNextBlockClass.prototype.nextBlocks = function () {
var _local2 = 0;
while (_local2 < 3) {
this.newBloks[_local2] = this.getNewBlock();
_local2++;
}
this.refreshNewBlocks();
};
FNextBlockClass.prototype.getBlock = function (index) {
var _local2 = new Object();
_local2 = this.newBloks[index];
if (index == 2) {
this.nextBlocks();
}
return(_local2);
};
FNextBlockClass.prototype.beginGame = function (type, level) {
this.typeGame = type;
this.levelGame = level;
this.nextBlocks();
};
Object.registerClass("FNextBlock", FNextBlockClass);
#endinitclip
Symbol 330 MovieClip Frame 1
setType = function (type) {
type_txt.text = "";
if (type == 1) {
type_txt.text = "Classic";
} else if (type == 2) {
type_txt.text = "Speedy";
} else if (type == 3) {
type_txt.text = "Tournament";
} else if (type == 4) {
type_txt.text = "Adventure";
}
};
Symbol 334 MovieClip [FTimer] Frame 1
#initclip 16
function FTimerClass() {
this.timerFlag = false;
this.timeGame = 0;
}
FTimerClass.prototype = new MovieClip();
FTimerClass.prototype.setTimer = function (target) {
this=target;//parameter overwritten
this.timeGame--;
this.timer_txt.text = _global.getTimeFormat(this.timeGame);
if (this.timeGame == 0) {
this.stopTimer();
this._parent.speedyBlocks.gameOverFunc();
}
if (this.timeGame <= 20) {
_root.soundArc.playSound("ticTac", 0);
}
};
FTimerClass.prototype.startTimer = function (type) {
trace("START TIMER");
this.timerFlag = true;
this.timerInterval = setInterval(this.setTimer, 1000, this);
if (type == 0) {
this.timeGame = 300;
} else if (type == 1) {
this.timeGame = 600;
} else if (type == 2) {
this.timeGame = 1200;
} else if (type == 3) {
this.timeGame = 1800;
}
this.setTimer(this);
};
FTimerClass.prototype.stopTimer = function () {
clearInterval(this.timerInterval);
this.timerFlag = false;
};
FTimerClass.prototype.pause = function (how) {
if (this.timerFlag) {
if (how) {
clearInterval(this.timerInterval);
} else {
this.timerInterval = setInterval(this.setTimer, 1000, this);
}
}
};
Object.registerClass("FTimer", FTimerClass);
#endinitclip
Symbol 338 MovieClip [FScore] Frame 1
#initclip 17
function FScoreClass() {
this.clearScore();
}
FScoreClass.prototype = new MovieClip();
FScoreClass.prototype.getScore = function () {
trace("SCORE " + Number(this.topScore_txt.text));
return(Number(this.topScore_txt.text));
};
FScoreClass.prototype.clearScore = function () {
this.score = 0;
this.topScore_txt.text = this.score;
};
FScoreClass.prototype.addToScore = function (num) {
this.score = this.score + num;
this.topScore_txt.text = this.score;
};
Object.registerClass("FScore", FScoreClass);
#endinitclip
Symbol 349 MovieClip Frame 1
clearAllKey = function () {
key1 = 0;
key2 = 0;
key3 = 0;
key4 = 0;
key5 = 0;
};
clearAllKey();
addKey = function (key) {
switch (key) {
case "key1" :
key1++;
break;
case "key2" :
key2++;
break;
case "key3" :
key3++;
break;
case "key4" :
key4++;
break;
case "key5" :
key5++;
}
};
minusKey = function (key) {
switch (key) {
case "key1" :
key1--;
break;
case "key2" :
key2--;
break;
case "key3" :
key3--;
break;
case "key4" :
key4--;
break;
case "key5" :
key5--;
}
};
Symbol 352 MovieClip Frame 1
this.onPress = function () {
getURL ("http://www.speedygames.com/index.php?more_games_at_speedygames");
};