Frame 1
Frame 2
_root.version = 0;
Frame 3
function levelMap1() {
gridInput = 9;
map = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 5, 2, 1, 1, 1, 2, 5, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 1, 2, 2, 2, 1, 1, 2, 2, 1, 1, 2, 2, 2, 1, 1, 5, 2, 2, 2, 2, 12, 2, 1, 1, 2, 2, 2, 5, 2, 11, 2, 1, 1, 1, 2, 2, 2, 2, 13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
}
function levelMap2() {
gridInput = 9;
map = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 13, 2, 2, 5, 2, 2, 2, 1, 1, 11, 2, 2, 2, 2, 1, 4, 1, 1, 12, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 5, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 1, 2, 5, 1, 1, 2, 1, 2, 2, 5, 2, 2, 1, 1, 2, 2, 4, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
}
function levelMap3() {
gridInput = 9;
map = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 13, 11, 12, 1, 2, 5, 2, 1, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 2, 4, 1, 1, 1, 4, 2, 1, 5, 2, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 5, 2, 2, 2, 5, 1, 1, 5, 2, 2, 1, 4, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
}
function levelMap4() {
gridInput = 9;
map = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 12, 11, 13, 2, 5, 1, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 5, 2, 2, 1, 5, 2, 2, 1, 1, 2, 2, 8, 1, 8, 2, 2, 1, 1, 2, 5, 2, 8, 2, 2, 4, 1, 1, 2, 2, 2, 2, 2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 1, 1, 1];
}
function levelMap8() {
gridInput = 10;
map = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 2, 2, 1, 2, 2, 2, 4, 1, 1, 2, 2, 2, 5, 2, 8, 1, 2, 1, 1, 2, 5, 2, 2, 2, 1, 8, 5, 1, 1, 1, 2, 2, 1, 2, 2, 2, 2, 1, 1, 2, 2, 5, 2, 2, 5, 2, 2, 1, 1, 5, 8, 1, 2, 2, 1, 2, 12, 1, 1, 2, 1, 8, 2, 2, 2, 2, 11, 1, 1, 4, 2, 2, 2, 5, 2, 2, 13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
}
function levelMap9() {
gridInput = 10;
map = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 2, 2, 2, 2, 5, 2, 4, 1, 1, 2, 2, 8, 5, 2, 2, 2, 2, 1, 1, 2, 5, 1, 2, 1, 1, 8, 5, 1, 1, 2, 2, 1, 7, 2, 2, 2, 2, 1, 1, 5, 2, 2, 2, 2, 1, 2, 2, 1, 1, 2, 8, 1, 1, 2, 1, 2, 13, 1, 1, 2, 2, 2, 5, 2, 8, 2, 11, 1, 1, 2, 5, 2, 2, 2, 4, 2, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
}
function levelMap10() {
gridInput = 10;
map = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 2, 2, 5, 2, 2, 2, 4, 1, 1, 2, 1, 1, 1, 2, 2, 2, 2, 1, 1, 2, 2, 5, 2, 2, 5, 2, 13, 1, 1, 5, 2, 2, 2, 8, 2, 2, 11, 1, 1, 2, 2, 2, 8, 2, 2, 2, 12, 1, 1, 1, 1, 5, 2, 2, 2, 5, 2, 1, 1, 2, 2, 2, 2, 1, 1, 1, 2, 1, 1, 4, 2, 2, 2, 5, 2, 2, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
}
function levelMap11() {
gridInput = 10;
map = [1, 1, 1, 1, 1, 1, 1, 1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 5, 8, 5, 5, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
}
function initSoundObjects() {
Flipper = new Sound(aaaa);
Flipper.setVolume(50);
FlipperDown = new Sound(bbbb);
FlipperDown.setVolume(50);
buttonRollOff = new Sound(eeee);
buttonRollOff.setVolume(50);
tileButton = new Sound(ffff);
tileButton.setVolume(50);
bonusAwardSound = new Sound(gggg);
bonusAwardSound.setVolume(50);
}
function initMusicLoop() {
fadeMax = 20;
musicLoop = new Sound(cccc);
musicLoop.setVolume(0);
endOfGame = new Sound(dddd);
endOfGame.setVolume(100);
}
function fadeInMusic() {
if (musicLoop.getVolume() <= fadeMax) {
musicLoop.setVolume(musicLoop.getVolume() + 2);
} else {
clearInterval(fadeInMusicTimer);
}
}
function fadeOutMusic() {
if (musicLoop.getVolume() > 0) {
musicLoop.setVolume(musicLoop.getVolume() - 2);
} else {
clearInterval(fadeOutMusicTimer);
}
}
function initNewGame() {
bonusV._visible = false;
bonusRoundFlag = false;
chooseloop = 2;
winMusic = 1;
bonusRoundValue = 9;
normalLevelCounter = 1;
bonusLevelCounter = 1000;
movingBonusValue = startMovingBonusValue;
farSpeed = startFarSpeed;
mediumSpeed = startMediumSpeed;
closeSpeed = startCloseSpeed;
tileValue = startTileValue;
endTileValue = startEndTileValue;
itemValue = startItemValue;
bonusValue = startBonusValue;
bonusSetValue3 = startBonusSetValue3;
_root.points = 0;
_root.itemR = 0;
inPlayMenu.gotoAndStop("hidden");
violet = 0;
blue = 0;
green = 0;
red = 0;
playerLevel = normalLevelCounter;
AIdir = 1;
}
function initLevel() {
var _local1 = _root;
endRoundCheck = false;
pause = true;
turn1 = true;
_local1.kill = false;
_local1.win = false;
inPlayMenu.gotoAndStop("showQuitButton");
_local1["levelMap" add _local1.level]();
cc = gridInput;
aa = gridInput + 1;
bb = gridInput - 1;
_local1.headGroove = new Array();
_local1.headGroove[0] = "";
_local1.tailCount = 1;
_local1.tipCount = 3;
MB = "";
}
function scrambleTheMap() {
scrambleMap = Math.random();
if (scrambleMap > 0.75) {
_root.map.reverse();
scrambleType = "reversed";
} else if (scrambleMap > 0.5) {
rowStart = 0;
scrambleType = "flipped";
row = 0;
while (row < gridInput) {
tempMap = new Array();
y = 0;
tileNum = rowStart;
while (tileNum < (gridInput + rowStart)) {
tempMap[y] = map[tileNum];
y++;
tileNum++;
}
tempMap.reverse();
y = 0;
tileNum = rowStart;
while (tileNum < (gridInput + rowStart)) {
map[tileNum] = tempMap[y];
y++;
tileNum++;
}
rowStart = rowStart + gridInput;
row++;
}
} else if (scrambleMap > 0.25) {
_root.map.reverse();
scrambleType = "reversed & flipped";
rowStart = 0;
row = 0;
while (row < gridInput) {
tempMap = new Array();
y = 0;
tileNum = rowStart;
while (tileNum < (gridInput + rowStart)) {
tempMap[y] = map[tileNum];
y++;
tileNum++;
}
tempMap.reverse();
y = 0;
tileNum = rowStart;
while (tileNum < (gridInput + rowStart)) {
map[tileNum] = tempMap[y];
y++;
tileNum++;
}
rowStart = rowStart + gridInput;
row++;
}
} else {
scrambleType = "normal";
}
}
function buildMap() {
var _local1 = _root;
if (((_local1.level == 6) or (_local1.level == 11)) or (_local1.level == 16)) {
_local1.popupad2.gotoAndStop(2);
}
scrambleTheMap();
inPlayMenu.gotoAndStop("showQuitButton");
if (_local1.gridInput == 8) {
_local1.back._xscale = 135;
_local1.back._yscale = 135;
_local1.back._x = -140;
_local1.back._y = -110;
}
if (_local1.gridInput == 9) {
_local1.back._xscale = 115;
_local1.back._yscale = 115;
_local1.back._x = -60;
_local1.back._y = -85;
}
if (_local1.gridInput == 10) {
_local1.back._xscale = 100;
_local1.back._yscale = 100;
_local1.back._x = 0;
_local1.back._y = -66;
}
if (_local1.gridInput == 11) {
_local1.back._xscale = 90;
_local1.back._yscale = 90;
_local1.back._x = 40;
_local1.back._y = -60;
}
if (_local1.gridInput == 12) {
_local1.back._xscale = 80;
_local1.back._yscale = 80;
_local1.back._x = 80;
_local1.back._y = -45;
}
if (_local1.gridInput == 13) {
_local1.back._xscale = 75;
_local1.back._yscale = 75;
_local1.back._x = 100;
_local1.back._y = -46;
}
if (_local1.gridInput == 14) {
_local1.back._xscale = 68;
_local1.back._yscale = 68;
_local1.back._x = 130;
_local1.back._y = -36;
}
_local1.back.gridx = _local1.gridInput;
_local1.back.gridy = _local1.gridInput;
_local1.back.gridsize = _local1.back.gridx * _local1.back.gridy;
_local1.back.plotxsize = 48;
_local1.back.plotysize = 32;
_local1.back.plotxoffset = 400;
_local1.back.x = 1;
_local1.back.y = 1;
i = 0;
while (i < _local1.back.gridsize) {
_local1.back.attachMovie("tile", "cell" add i, i + 1000);
_local1.back["cell" add i].gotoAndStop(_local1.map[i]);
_local1.back["cell" add i].beginVar = false;
_local1.back["cell" add i].cell = i;
ppp[i] = _local1.back["cell" add i].cell;
_local1.back.plotx = (_local1.back.plotxoffset + (_local1.back.x * _local1.back.plotxsize)) - (_local1.back.y * _local1.back.plotxsize);
_local1.back.ploty = (_local1.back.x * _local1.back.plotysize) + (_local1.back.y * _local1.back.plotysize);
_local1.back["cell" add i]._x = _local1.back.plotx;
_local1.back["cell" add i]._y = _local1.back.ploty;
_local1.back.x = _local1.back.x + 1;
if (_local1.back.x > _local1.back.gridx) {
_local1.back.x = 1;
_local1.back.y = _local1.back.y + 1;
}
i++;
}
}
function initBlinkingStartTiles() {
var _local1 = _root;
delete eval (SI());
SI = new Array();
s = 0;
delete eval (SSI());
SSI = new Array();
ss = 0;
musicLoop.stop();
musicLoop.attachSound("GrooveLoop2");
musicLoop.setVolume(0);
musicLoop.start(0, 1000);
fadeInMusicTimer = setInterval(fadeInMusic, 12);
_local1.itemsTargeted = _local1.itemR;
i = 0;
while (i < _local1.back.gridsize) {
if (_local1.back["cell" add i].tileType == "grooveTip") {
_local1.back["cell" add i].grid.gotoAndStop("down");
j = 0;
while (j < 4) {
if (j == 0) {
k = i - 1;
}
if (j == 1) {
k = i + 1;
}
if (j == 2) {
k = i + cc;
}
if (j == 3) {
k = i - cc;
}
if ((_local1.back["cell" add k].open == true) and (_local1.back["cell" add k].tileType != "grooveBack")) {
_local1.back["cell" add k].beginNow.gotoAndStop("blink");
_local1.back["cell" add k].beginVar = true;
}
j++;
}
}
if (_local1.back["cell" add i].tileType == "grooveBack") {
_local1.back["cell" add i].grid.gotoAndStop("down");
}
if (_local1.back["cell" add i].tileType == "superItem") {
_local1.back["cell" add i].spinning = true;
SI[s] = i;
s = s + 1;
}
if (_local1.back["cell" add i].tileType == "bonus2") {
_local1.back["cell" add i].open = false;
_local1.back["cell" add i]._visible = false;
SSI[ss] = i;
ss = ss + 1;
}
if (_local1.back["cell" add i].tileType == "bonus1") {
MB = i;
}
i++;
}
}
function firstTurnInitHeadGroove() {
var _local1 = _root;
if (turn1 == true) {
turn1 = false;
i = 0;
while (i < _local1.back.gridsize) {
if (_local1.back["cell" add i].tileType == "grooveBack") {
_local1.headGroove[1] = i;
_local1.tipEndPos = i;
} else if (_local1.back["cell" add i].tileType == "grooveTip") {
_local1.headGroove[2] = i;
} else if (_local1.back["cell" add i].tileType == "grooveTip2") {
_local1.headGroove[3] = i;
_local1.tipPos = i;
} else if (_local1.back["cell" add i].tileType == "downRight1") {
HP = i;
}
i++;
}
}
}
function flipperChangeDirection() {
var _local1 = _root;
Flipper.attachSound("tile1");
Flipper.start(0, 1);
if (_local1.itemsTargeted == 0) {
if (endRoundCheck == false) {
endRoundCheck = true;
i = 0;
while (i < _local1.back.gridsize) {
if (_local1.back["cell" add i].groove == "down") {
_local1.back["cell" add i].grid.gotoAndStop("bonusDown");
}
if (_local1.back["cell" add i].groove == "half") {
_local1.back["cell" add i].grid.gotoAndStop("up");
}
_local1.back["cell" add i].HGI.gotoAndStop("hide");
i++;
}
}
}
j = 0;
while (j < 4) {
if (j == 0) {
k = HP + cc;
d = "down";
e = "downLeft2";
}
if (j == 1) {
k = HP - cc;
d = "up";
e = "upRight2";
}
if (j == 2) {
k = HP - 1;
d = "left";
e = "upLeft2";
}
if (j == 3) {
k = HP + 1;
d = "right";
e = "downRight2";
}
if (_local1.tipEndPos == k) {
_local1.headDir == d;
_local1.back["cell" add HP].gotoAndStop(e);
_local1.tailCount = _local1.tailCount + 1;
}
j++;
}
}
function bonusAI() {
var _local1 = _root;
i = 0;
while (i < s) {
if ((_local1.back["cell" add SI[i]].groove == "up") or (_local1.back["cell" add SI[i]].groove == "half")) {
if (_local1.back["cell" add SI[i]].spinning == true) {
_local1.back["cell" add SI[i]].spinning = false;
_local1.back["cell" add SI[i]].itemTile._alpha = 20;
_local1.back["cell" add SI[i]].itemTile.spiral.spin.stop();
_local1.back["cell" add SI[i]].tileType = "";
} else {
_local1.back["cell" add SI[i]].spinning = true;
_local1.back["cell" add SI[i]].itemTile._alpha = 100;
_local1.back["cell" add SI[i]].itemTile.spiral.spin.play();
_local1.back["cell" add SI[i]].tileType = "superItem";
}
}
i++;
}
}
function doorAI() {
var _local1 = _root;
i = 0;
while (i < ss) {
if (_local1.back["cell" add SSI[i]].groove == "up") {
if (_local1.back["cell" add SSI[i]].open == true) {
_local1.back["cell" add SSI[i]].open = false;
_local1.back["cell" add SSI[i]]._visible = false;
} else {
_local1.back["cell" add SSI[i]].open = true;
_local1.back["cell" add SSI[i]]._visible = true;
}
}
i++;
}
}
function moveBonusAI() {
var _local1 = _root;
if (MB != "") {
if (AIdir == 1) {
BD = MB + 1;
}
if (AIdir == 2) {
BD = MB + cc;
}
if (AIdir == 3) {
BD = MB - 1;
}
if (AIdir == 4) {
BD = MB - cc;
}
if (((_local1.back["cell" add BD].tileType == "grid") and (_local1.back["cell" add BD].groove == "up")) and (_local1.back["cell" add MB].groove == "up")) {
_local1.back["cell" add MB].itemTile.bonusBall.play();
} else {
AIdir = AIdir + 1;
if (AIdir == 5) {
AIdir = 1;
}
}
}
}
function movingBonusSwitch() {
_root.back["cell" add BD].gotoAndStop("bonus1");
MB = BD;
}
function moveFlipper() {
var _local1 = _root;
_local1.back["cell" add HP].gotoAndStop("road");
j = 0;
while (j < 4) {
if (j == 0) {
k = HP + cc;
d = "down";
e = "downLeft1";
}
if (j == 1) {
k = HP - cc;
d = "up";
e = "upRight1";
}
if (j == 2) {
k = HP - 1;
d = "left";
e = "upLeft1";
}
if (j == 3) {
k = HP + 1;
d = "right";
e = "downRight1";
}
if (_local1.headDir == d) {
FlipperDown.attachSound("TileHitBlank");
FlipperDown.start(0, 1);
if (_local1.back["cell" add k].open == true) {
_local1.back["cell" add k].gotoAndStop(e);
HP = k;
_local1.headPos = k;
if (_local1.back["cell" add k].tileType == "item") {
FlipperDown.attachSound("TileHitTarget");
FlipperDown.start(0, 1);
_local1.back["cell" add k].captureItem.play();
_local1.itemR = _local1.itemR - 1;
award = "item";
awardItemPoints();
if (_local1.itemR == 0) {
_local1.win = true;
}
}
if (_local1.back["cell" add k].groove == "bonusDown") {
FlipperDown.attachSound("TileEndHitBlank");
FlipperDown.start(0, 1);
_local1.back["cell" add k].win.play();
}
if (_local1.back["cell" add k].tileType == "bonus1") {
FlipperDown.attachSound("TileHitStar");
FlipperDown.start(0, 1);
_local1.back["cell" add k].captureStar.play();
award = "starBonus";
awardItemPoints();
}
if (_local1.back["cell" add k].tileType == "superItem") {
FlipperDown.attachSound("TileHitCollection");
FlipperDown.start(0, 1);
_local1.back["cell" add k].captureSuperItem.play();
award = "spiralBonus";
awardItemPoints();
if (_local1.back["cell" add k].bonusType == "blue") {
_local1.blue = _local1.blue + 1;
_local1.spiralblue.nextFrame();
}
if (_local1.back["cell" add k].bonusType == "red") {
_local1.red = _local1.red + 1;
_local1.spiralred.nextFrame();
}
if (_local1.back["cell" add k].bonusType == "green") {
_local1.green = _local1.green + 1;
_local1.spiralgreen.nextFrame();
}
if (_local1.back["cell" add k].bonusType == "violet") {
_local1.violet = _local1.violet + 1;
_local1.spiralviolet.nextFrame();
}
}
if ((k == _local1.tipPos) and (_local1.win == false)) {
_local1.back["cell" add k].HGI.gotoAndStop("hide");
musicLoop.stop();
_local1.back["cell" add k].explosion.play();
endOfGame.attachSound("tooBad");
endOfGame.start(0, 1);
endOfGame.onSoundComplete = function () {
musicLoop.stop();
musicLoop.attachSound("GameOverMusic");
musicLoop.start(0, 100);
};
}
}
}
j++;
}
_local1.tipEndPos = _local1.headGroove[_local1.tailCount];
}
function awardCollectionBonus() {
points = points + bonusSetValue3;
bonusSetValue3 = bonusSetValue3 + bonusSetIncrement3;
_root.bonusAwardSound.attachSound("CollectionBonus");
_root.bonusAwardSound.start(0, 1);
}
function awardItemPoints() {
if (itemsTargeted == 0) {
if (award == "item") {
points = points + (2 * itemValue);
}
if (award == "spiralBonus") {
points = points + (2 * bonusValue);
}
if (award == "starBonus") {
points = points + (2 * movingBonusValue);
}
} else {
if (award == "item") {
points = points + itemValue;
}
if (award == "spiralBonus") {
points = points + bonusValue;
}
if (award == "starBonus") {
points = points + movingBonusValue;
}
}
}
function awardTilePoints() {
if (itemsTargeted == 0) {
points = points + (2 * tileValue);
} else {
points = points + tileValue;
}
}
function winDieOrLoop() {
var _local1 = _root;
if (_local1.win == true) {
_local1.gotoAndStop("win");
} else if (_local1.kill == true) {
_local1.gotoAndStop("kill");
} else {
_local1.gotoAndStop("loop");
}
}
function winLevel() {
farSpeed = farSpeed - flipperIncrement;
mediumSpeed = mediumSpeed - flipperIncrement;
closeSpeed = closeSpeed - flipperIncrement;
itemValue = itemValue + itemIncrement;
tileValue = tileValue + tileIncrement;
endTileValue = endTileValue + endTileIncrement;
bonusValue = bonusValue + bonusIncrement;
movingBonusValue = movingBonusValue + movingBonusIncrement;
musicLoop.stop();
tileButton.attachSound("ShortApplause2");
tileButton.start(0, 1);
}
function pickNextMap() {
var _local1 = _root;
if (playerLevel == 120) {
_local1.gotoAndStop("final");
} else if ((playerLevel == 20) and (_local1.version == 0)) {
_local1.gotoAndStop("winGame");
} else if (playerlevel == bonusRoundValue) {
bonusLevelCounter = bonusLevelCounter + 1;
level = bonusLevelCounter;
bonusRoundValue = bonusRoundValue + 10;
bonusRoundFlag = true;
} else {
_local1.playerLevel = _local1.playerLevel + 1;
normalLevelCounter = normalLevelCounter + 1;
level = normalLevelCounter;
bonusRoundFlag = false;
}
}
blinkSpeedInput = 1.9;
moveBonusSpeedInput = 1;
doorSpeedInput = 0.9;
tileValue = 5;
tileIncrement = 5;
itemValue = 10;
itemIncrement = 10;
bonusValue = 25;
bonusIncrement = 25;
bonusSetValue3 = 500;
bonusSetIncrement3 = 500;
movingBonusValue = 100;
movingBonusIncrement = 100;
farSpeed = 0.2;
mediumSpeed = 0.55;
closeSpeed = 0.8;
endSpeed = 0;
mediumRange = 3;
farRange = 6;
flipperIncrement = 0.015;
startEasy = 28;
startMedium = 41;
startHard = 124;
bonusRoundValue = 10;
startBonusRoundValue = bonusRoundValue;
startMovingBonusValue = movingBonusValue;
startFarSpeed = farSpeed;
startMediumSpeed = mediumSpeed;
startCloseSpeed = closeSpeed;
startTileValue = tileValue;
startEndTileValue = endTileValue;
startItemValue = itemValue;
startBonusValue = bonusValue;
startBonusSetValue3 = bonusSetValue3;
bonusV._visible = false;
bonusRoundFlag = false;
chooseloop = 2;
initSoundObjects();
initMusicLoop();
musicLoop.stop();
musicLoop.attachSound("GrooveLoop2");
musicLoop.start(0, 100);
fadeInMusicTimer = setInterval(fadeInMusic, 12);
Frame 4
initNewGame();
stop();
Frame 5
stop();
Frame 6
stop();
Frame 7
sessionTryCheck();
initLevel();
Instance of Symbol 253 MovieClip "spiralviolet" in Frame 7
onClipEvent (load) {
this.gotoAndStop(_root.violet + 1);
}
Instance of Symbol 259 MovieClip "spiralblue" in Frame 7
onClipEvent (load) {
this.gotoAndStop(_root.blue + 1);
}
Instance of Symbol 265 MovieClip "spiralgreen" in Frame 7
onClipEvent (load) {
this.gotoAndStop(_root.green + 1);
}
Instance of Symbol 271 MovieClip "spiralred" in Frame 7
onClipEvent (load) {
this.gotoAndStop(_root.red + 1);
}
Instance of Symbol 280 MovieClip "bonusV" in Frame 7
onClipEvent (load) {
this._visible = false;
}
Frame 8
buildMap();
Instance of Symbol 283 MovieClip "back" in Frame 8
/* no clip actions */
Frame 9
if (bonusRoundFlag == false) {
bonusV._visible = false;
playerLevelV._visible = true;
}
if (bonusRoundFlag == true) {
xxBonusBanner.play();
bonusV._visible = true;
playerLevelV._visible = false;
}
if (_root.level == 1) {
_root.nextTileToStartx.gotoAndStop("instruct");
} else if (_root.level == 2) {
_root.nextTileToStartx.gotoAndStop("spiralHint");
} else if (_root.level == 3) {
_root.nextTileToStartx.gotoAndStop("spiralHint2");
} else if (_root.level == 4) {
_root.nextTileToStartx.gotoAndStop("doors");
} else if (_root.level == 5) {
_root.nextTileToStartx.gotoAndStop("stars");
} else if (_root.level > 5) {
_root.nextTileToStartx.gotoAndStop("end");
}
initBlinkingStartTiles();
stop();
Instance of Symbol 309 MovieClip "Timer" in Frame 9
onClipEvent (load) {
_root.doorTimer = getTimer();
_root.doorSpeed = _root.doorSpeedInput * 1000;
}
onClipEvent (enterFrame) {
_root.currentDoorState = getTimer();
if ((_root.doorTimer + _root.doorSpeed) <= _root.currentDoorState) {
_root.doorTimer = getTimer();
_root.doorAI();
}
}
Frame 10
firstTurnInitHeadGroove();
stop();
Instance of Symbol 309 MovieClip "Timer" in Frame 10
onClipEvent (load) {
_root.bonusBlinkTimer = getTimer();
_root.blinkSpeed = _root.blinkSpeedInput * 1000;
}
onClipEvent (enterFrame) {
_root.currentBlinkState = getTimer();
if ((_root.bonusBlinkTimer + _root.blinkSpeed) <= _root.currentBlinkState) {
_root.bonusBlinkTimer = getTimer();
_root.bonusAI();
}
}
Instance of Symbol 309 MovieClip "Timer" in Frame 10
onClipEvent (load) {
_root.bonusMoveTimer = getTimer();
_root.moveBonusSpeed = _root.moveBonusSpeedInput * 1000;
}
onClipEvent (enterFrame) {
_root.currentMoveState = getTimer();
if ((_root.bonusMoveTimer + _root.moveBonusSpeed) <= _root.currentMoveState) {
_root.bonusMoveTimer = getTimer();
_root.moveBonusAI();
}
}
Instance of Symbol 309 MovieClip "Timer" in Frame 10
onClipEvent (load) {
_root.year = getTimer();
if (_root.itemsTargeted == 0) {
_root.speedInput = _root.endSpeed;
} else if ((_root.tipCount - _root.tailCount) >= _root.farRange) {
_root.speedInput = _root.farSpeed;
} else if ((_root.tipCount - _root.tailCount) >= _root.mediumRange) {
_root.speedInput = _root.mediumSpeed;
} else {
_root.speedInput = _root.closeSpeed;
}
_root.speed = _root.speedinput * 1000;
}
onClipEvent (enterFrame) {
_root.currentTime = getTimer();
_root.growPercent = ((_root.currentTime - _root.year) / _root.speed) * 100;
if ((_root.year + _root.speed) <= _root.currentTime) {
_root.gotoAndStop("switch");
}
}
Frame 11
flipperChangeDirection();
stop();
Frame 12
moveFlipper();
awardTilePoints();
winDieOrloop();
stop();
Frame 13
inPlayMenu.gotoAndStop("hidden");
stop();
Frame 14
winLevel();
stop();
Frame 16
stop();
musicLoop.stop();
if (music == "on") {
musicLoop.attachSound("GameOverMusic");
musicLoop.start(0, 100);
}
Frame 17
Frame 18
stop();
musicLoop.stop();
if (music == "on") {
musicLoop.attachSound("GameOverMusic");
musicLoop.start(0, 100);
}
Frame 19
stop();
musicLoop.stop();
if (music == "on") {
musicLoop.attachSound("GameOverMusic");
musicLoop.start(0, 100);
}
Frame 20
stop();
Instance of Symbol 18 MovieClip "sunLight" in Symbol 23 MovieClip Frame 1
onClipEvent (load) {
totalFileSize = _root.getBytesTotal();
this._xscale = 0;
}
onClipEvent (enterFrame) {
bytesLoaded = _root.getBytesLoaded();
amountLoaded = bytesLoaded / totalFileSize;
percentLoaded = int(100 * amountLoaded);
this._xscale = percentLoaded;
if (percentLoaded == 100) {
_root.play();
}
}
Symbol 32 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 7
stop();
Symbol 49 Button
on (release) {
_root.kill = true;
_root.gotoAndStop("kill");
}
on (rollOut) {
_root.buttonRollOff.attachSound("buttonRollOff");
_root.buttonRollOff.start(0, 1);
}
on (press) {
_root.buttonRollOff.attachSound("buttonClick");
_root.buttonRollOff.start(0, 1);
}
Symbol 50 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 2
_root.soundFX.attachSound("bonusItemAward");
_root.soundFX.start(0, 1);
Instance of Symbol 62 MovieClip "superDisplay" in Symbol 63 MovieClip Frame 2
onClipEvent (load) {
if (_root.itemsTargeted == 0) {
this.superDisplayD = 2 * _root.bonusValue;
} else {
this.superDisplayD = _root.bonusValue;
}
}
Symbol 63 MovieClip Frame 20
this.gotoAndStop(1);
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 2
_root.soundFX.attachSound("itemAward");
_root.soundFX.start(0, 1);
Instance of Symbol 65 MovieClip "itemDisplay" in Symbol 66 MovieClip Frame 2
onClipEvent (load) {
if (_root.itemsTargeted == 0) {
this.itemDisplayD = 2 * _root.itemValue;
} else {
this.itemDisplayD = _root.itemValue;
}
}
Symbol 66 MovieClip Frame 12
this.gotoAndStop(1);
Instance of Symbol 65 MovieClip "itemDisplay" in Symbol 66 MovieClip Frame 13
onClipEvent (load) {
this.itemDisplayD = _root.itemValue;
}
Symbol 67 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 2
_root.soundFX.attachSound("bonusItemAward");
_root.soundFX.start(0, 1);
Instance of Symbol 62 MovieClip "superDisplay" in Symbol 67 MovieClip Frame 2
onClipEvent (load) {
if (_root.itemsTargeted == 0) {
this.superDisplayD = 2 * _root.movingBonusValue;
} else {
this.superDisplayD = _root.movingBonusValue;
}
}
Symbol 67 MovieClip Frame 20
this.gotoAndStop(1);
Symbol 69 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 2
_root.back._y = _root.back._y + 15;
Symbol 71 MovieClip Frame 3
_root.back._y = _root.back._y - 15;
Symbol 71 MovieClip Frame 4
_root.back._y = _root.back._y + 25;
Symbol 71 MovieClip Frame 5
_root.back._y = _root.back._y - 25;
Symbol 71 MovieClip Frame 6
_root.back._y = _root.back._y + 17;
Symbol 71 MovieClip Frame 7
_root.back._y = _root.back._y - 17;
Symbol 71 MovieClip Frame 8
_root.back._y = _root.back._y + 7;
Symbol 71 MovieClip Frame 9
_root.back._y = _root.back._y - 7;
Symbol 71 MovieClip Frame 24
this.gotoAndPlay("repeat");
_root.gotoAndStop("kill");
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 2
stop();
Instance of Symbol 76 MovieClip in Symbol 77 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.pause == false) {
_parent.gotoAndStop(1);
}
}
Symbol 79 Button
on (press) {
if (_root.itemsTargeted > 0) {
if (_root.pause == true) {
if (this.beginVar == true) {
_root.pause = false;
_root.tileButton.attachSound("tileClick");
_root.tileButton.start(0, 1);
this.gotoAndStop("grooveTip2");
this.itemTile.gotoAndStop(3);
this.HGI.gotoAndStop("show");
_root.gotoAndStop("loop");
}
} else if (this.groove == "half") {
if (this.cell == (_root.tipPos + _root.cc)) {
_root.tileButton.attachSound("tileClick");
_root.tileButton.start(0, 1);
this.grid.gotoAndStop("down");
this.itemTile.gotoAndStop(3);
_root.back["cell" add _root.tipPos].HGI.gotoAndStop("hide");
this.HGI.gotoAndStop("show");
_root.tipPos = this.cell;
_root.tipCount = _root.tipCount + 1;
_root.headGroove[_root.tipCount] = this.cell;
} else if (this.cell == (_root.tipPos - _root.cc)) {
_root.tileButton.attachSound("tileClick");
_root.tileButton.start(0, 1);
this.grid.gotoAndStop("down");
this.itemTile.gotoAndStop(3);
_root.back["cell" add _root.tipPos].HGI.gotoAndStop("hide");
this.HGI.gotoAndStop("show");
_root.tipPos = this.cell;
_root.tipCount = _root.tipCount + 1;
_root.headGroove[_root.tipCount] = this.cell;
} else if (this.cell == (_root.tipPos + 1)) {
_root.tileButton.attachSound("tileClick");
_root.tileButton.start(0, 1);
this.grid.gotoAndStop("down");
this.itemTile.gotoAndStop(3);
_root.back["cell" add _root.tipPos].HGI.gotoAndStop("hide");
this.HGI.gotoAndStop("show");
_root.tipPos = this.cell;
_root.tipCount = _root.tipCount + 1;
_root.headGroove[_root.tipCount] = this.cell;
} else if (this.cell == (_root.tipPos - 1)) {
_root.tileButton.attachSound("tileClick");
_root.tileButton.start(0, 1);
this.grid.gotoAndStop("down");
this.itemTile.gotoAndStop(3);
_root.back["cell" add _root.tipPos].HGI.gotoAndStop("hide");
this.HGI.gotoAndStop("show");
_root.tipPos = this.cell;
_root.tipCount = _root.tipCount + 1;
_root.headGroove[_root.tipCount] = this.cell;
}
}
}
}
on (rollOver) {
if (_root.itemsTargeted > 0) {
if (_root.pause == true) {
if (this.beginVar == true) {
this.grid.gotoAndStop("half");
this.beginNow._y = this.beginNow._y + 3;
}
} else if (this.groove == "up") {
if (this.cell == (_root.tipPos + _root.cc)) {
this.grid.gotoAndStop("half");
this.itemTile.gotoAndStop(2);
} else if (this.cell == (_root.tipPos - _root.cc)) {
this.grid.gotoAndStop("half");
this.itemTile.gotoAndStop(2);
} else if (this.cell == (_root.tipPos + 1)) {
this.grid.gotoAndStop("half");
this.itemTile.gotoAndStop(2);
} else if (this.cell == (_root.tipPos - 1)) {
this.grid.gotoAndStop("half");
this.itemTile.gotoAndStop(2);
}
}
}
}
on (rollOut) {
if (_root.itemsTargeted > 0) {
if (_root.pause == true) {
if (this.beginVar == true) {
this.grid.gotoAndStop("up");
this.beginNow._y = this.beginNow._y - 3;
}
} else if (this.groove == "half") {
if (this.cell == (_root.tipPos + _root.cc)) {
this.grid.gotoAndStop("up");
this.itemTile.gotoAndStop(1);
} else if (this.cell == (_root.tipPos - _root.cc)) {
this.grid.gotoAndStop("up");
this.itemTile.gotoAndStop(1);
} else if (this.cell == (_root.tipPos + 1)) {
this.grid.gotoAndStop("up");
this.itemTile.gotoAndStop(1);
} else if (this.cell == (_root.tipPos - 1)) {
this.grid.gotoAndStop("up");
this.itemTile.gotoAndStop(1);
}
}
}
}
on (release) {
if (_root.itemsTargeted > 0) {
if ((_root.pause == false) and (this.groove == "up")) {
if (this.cell == (_root.tipPos + _root.cc)) {
this.grid.gotoAndStop("half");
this.itemTile.gotoAndStop(2);
} else if (this.cell == (_root.tipPos - _root.cc)) {
this.grid.gotoAndStop("half");
this.itemTile.gotoAndStop(2);
} else if (this.cell == (_root.tipPos + 1)) {
this.grid.gotoAndStop("half");
this.itemTile.gotoAndStop(2);
} else if (this.cell == (_root.tipPos - 1)) {
this.grid.gotoAndStop("half");
this.itemTile.gotoAndStop(2);
}
}
}
}
Symbol 84 MovieClip Frame 1
stop();
_parent.groove = "up";
Symbol 84 MovieClip Frame 2
_parent.groove = "half";
Symbol 84 MovieClip Frame 3
_parent.groove = "down";
Symbol 84 MovieClip Frame 4
_parent.groove = "bonusDown";
Symbol 108 MovieClip Frame 1
stop();
_parent._parent.bonusType = "blue";
Symbol 108 MovieClip Frame 2
_parent._parent.bonusType = "red";
Symbol 108 MovieClip Frame 3
_parent._parent.bonusType = "green";
Symbol 108 MovieClip Frame 4
_parent._parent.bonusType = "violet";
Symbol 109 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 3
_root.itemsTargeted = _root.itemsTargeted - 1;
if (_root.itemsTargeted == 0) {
_root.tileButton.attachSound("LastTarget");
_root.tileButton.start(0, 1);
_parent.win.play();
}
Symbol 115 MovieClip Frame 3
stop();
Symbol 115 MovieClip Frame 5
_root.movingBonusSwitch();
_parent._parent.gotoAndStop("grid");
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 3
this.bonusBall.gotoAndStop("full");
Symbol 122 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 4
stop();
Symbol 133 MovieClip Frame 4
stop();
Symbol 138 MovieClip Frame 4
stop();
Symbol 142 MovieClip Frame 4
stop();
Symbol 147 MovieClip Frame 4
_root.gotoAndStop("addLink");
Symbol 152 MovieClip Frame 4
_root.gotoAndStop("addLink");
Symbol 157 MovieClip Frame 4
_root.gotoAndStop("addLink");
Symbol 162 MovieClip Frame 4
_root.gotoAndStop("addLink");
Symbol 163 MovieClip [tile] Frame 1
stop();
tileType = "edge";
open = false;
Symbol 163 MovieClip [tile] Frame 2
tileType = "grid";
open = true;
Symbol 163 MovieClip [tile] Frame 4
tileType = "superItem";
open = true;
Instance of Symbol 109 MovieClip "itemTile" in Symbol 163 MovieClip [tile] Frame 4
onClipEvent (load) {
this.spiral.gotoAndStop(random(4) + 1);
}
Symbol 163 MovieClip [tile] Frame 5
tileType = "item";
open = true;
Instance of Symbol 111 MovieClip "itemTile" in Symbol 163 MovieClip [tile] Frame 5
onClipEvent (load) {
_root.itemR = _root.itemR + 1;
}
Symbol 163 MovieClip [tile] Frame 6
tileType = "wall";
open = false;
Symbol 163 MovieClip [tile] Frame 7
tileType = "bonus1";
open = true;
Symbol 163 MovieClip [tile] Frame 8
tileType = "bonus2";
open = true;
Symbol 163 MovieClip [tile] Frame 9
tileType = "bonus3";
open = true;
Symbol 163 MovieClip [tile] Frame 10
tileType = "bonus4";
open = true;
Symbol 163 MovieClip [tile] Frame 11
tileType = "grooveBack";
open = true;
Instance of Symbol 120 MovieClip in Symbol 163 MovieClip [tile] Frame 11
onClipEvent (load) {
_parent.grid.gotoAndStop("down");
}
Symbol 163 MovieClip [tile] Frame 12
tileType = "grooveTip";
open = true;
Instance of Symbol 121 MovieClip in Symbol 163 MovieClip [tile] Frame 12
onClipEvent (load) {
_parent.grid.gotoAndStop("down");
}
Instance of Symbol 122 MovieClip "beginInstruct" in Symbol 163 MovieClip [tile] Frame 12
onClipEvent (enterFrame) {
if (_root.pause == false) {
this.gotoAndStop(2);
}
}
Symbol 163 MovieClip [tile] Frame 13
tileType = "downRight1";
open = true;
Instance of Symbol 127 MovieClip in Symbol 163 MovieClip [tile] Frame 13
onClipEvent (load) {
_root.headDir = "right";
}
Symbol 163 MovieClip [tile] Frame 14
tileType = "grooveTip2";
open = true;
Instance of Symbol 128 MovieClip in Symbol 163 MovieClip [tile] Frame 14
onClipEvent (load) {
_parent.grid.gotoAndStop("down");
}
Symbol 163 MovieClip [tile] Frame 31
tileType = "upRight1";
groove = "";
Instance of Symbol 133 MovieClip in Symbol 163 MovieClip [tile] Frame 31
onClipEvent (load) {
_root.headDir = "up";
}
Symbol 163 MovieClip [tile] Frame 32
tileType = "downLeft1";
groove = "";
Instance of Symbol 138 MovieClip in Symbol 163 MovieClip [tile] Frame 32
onClipEvent (load) {
_root.headDir = "down";
}
Symbol 163 MovieClip [tile] Frame 33
tileType = "downRight1";
groove = "";
Instance of Symbol 127 MovieClip in Symbol 163 MovieClip [tile] Frame 33
onClipEvent (load) {
_root.headDir = "right";
}
Symbol 163 MovieClip [tile] Frame 34
tileType = "upLeft1";
groove = "";
Instance of Symbol 142 MovieClip in Symbol 163 MovieClip [tile] Frame 34
onClipEvent (load) {
_root.headDir = "left";
}
Symbol 163 MovieClip [tile] Frame 35
tileType = "upRight2";
Instance of Symbol 147 MovieClip in Symbol 163 MovieClip [tile] Frame 35
onClipEvent (load) {
_root.headDir = "up";
}
Symbol 163 MovieClip [tile] Frame 36
tileType = "downLeft2";
Instance of Symbol 152 MovieClip in Symbol 163 MovieClip [tile] Frame 36
onClipEvent (load) {
_root.headDir = "down";
}
Symbol 163 MovieClip [tile] Frame 37
tileType = "downRight2";
Instance of Symbol 157 MovieClip in Symbol 163 MovieClip [tile] Frame 37
onClipEvent (load) {
_root.headDir = "right";
}
Symbol 163 MovieClip [tile] Frame 38
tileType = "upLeft2";
Instance of Symbol 162 MovieClip in Symbol 163 MovieClip [tile] Frame 38
onClipEvent (load) {
_root.headDir = "left";
}
Symbol 163 MovieClip [tile] Frame 39
current = "road";
tileType = "road";
open = false;
Symbol 166 MovieClip Frame 12
this.gotoAndPlay(1);
Symbol 169 MovieClip Frame 9
stop();
Symbol 172 MovieClip Frame 10
this.gotoAndPlay(1);
Symbol 175 MovieClip Frame 12
stop();
Symbol 181 MovieClip Frame 7
stop();
Symbol 184 Button
on (release) {
_root.normalLevelCounter = (_root.playerLevel = (_root.level = 1));
_root.sessionTry = _root.sessionTry + 1;
_root.gotoAndPlay("initlevel");
}
on (rollOut) {
_root.buttonRollOff.attachSound("buttonRollOff");
_root.buttonRollOff.start(0, 1);
}
on (press) {
_root.buttonRollOff.attachSound("buttonClick");
_root.buttonRollOff.start(0, 1);
}
Symbol 186 MovieClip Frame 7
stop();
Symbol 188 Button
on (release) {
_root.gotoAndStop("instructions");
}
on (rollOut) {
_root.buttonRollOff.attachSound("buttonRollOff");
_root.buttonRollOff.start(0, 1);
}
on (press) {
_root.buttonRollOff.attachSound("buttonClick");
_root.buttonRollOff.start(0, 1);
}
Symbol 206 MovieClip Frame 7
stop();
Symbol 209 Button
on (release) {
_root.gotoAndStop("menu");
}
on (rollOut) {
_root.buttonRollOff.attachSound("buttonRollOff");
_root.buttonRollOff.start(0, 1);
}
on (press) {
_root.buttonRollOff.attachSound("buttonClick");
_root.buttonRollOff.start(0, 1);
}
Symbol 228 Button
on (release) {
getURL ("http://www.real.com/games/supergroovy/index.html", "_blank");
}
Symbol 234 Button
on (release) {
this.gotoAndStop(1);
}
Symbol 238 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 45
_parent.gotoAndStop(1);
Symbol 253 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 4
_root.violet = 0;
_root.AwardCollectionBonus();
this.gotoAndStop("yes");
Symbol 259 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 4
_root.blue = 0;
_root.AwardCollectionBonus();
this.gotoAndStop("yes");
Symbol 265 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 4
_root.green = 0;
_root.AwardCollectionBonus();
this.gotoAndStop("yes");
Symbol 271 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 4
_root.red = 0;
_root.AwardCollectionBonus();
this.gotoAndStop("yes");
Symbol 282 MovieClip Frame 1
stop();
Symbol 300 Button
on (press) {
_root.buttonRollOff.attachSound("buttonClick");
_root.buttonRollOff.start(0, 1);
}
on (release) {
this.gotoAndStop("end");
}
Symbol 307 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 2
stop();
_root.inplayMenu._visible = true;
Symbol 307 MovieClip Frame 3
_root.inplayMenu._visible = false;
Symbol 307 MovieClip Frame 4
_root.inplayMenu._visible = false;
Symbol 307 MovieClip Frame 5
_root.inplayMenu._visible = false;
Symbol 307 MovieClip Frame 6
_root.inplayMenu._visible = false;
Symbol 307 MovieClip Frame 7
_root.inplayMenu._visible = false;
Symbol 316 MovieClip Frame 10
stop();
Symbol 318 Button
on (release) {
musicLoop.stop();
_root.gotoAndPlay("loader");
}
on (press) {
_root.buttonRollOff.attachSound("buttonClick");
_root.buttonRollOff.start(0, 1);
}
on (rollOut) {
spin338.play();
}
Symbol 320 MovieClip Frame 23
_root.pickNextMap();
_root.gotoAndPlay("initLevel");
Symbol 325 Button
on (release) {
getURL ("javascript:closeWindow()");
}
Symbol 331 Button
on (release) {
_root.gotoAndPlay("loader");
}
Symbol 340 Button
on (release) {
getURL ("javascript:closeWindow()");
}
Symbol 346 Button
on (release) {
getURL ("mailto:groovysupport@insaneplay.com");
}