Frame 1
Frame 36
stop();
Frame 38
var mySound = new Sound();
var dSound = new Sound();
mySound.attachSound("theme");
mySound.start(0, 999);
Frame 324
stop();
Frame 693
function moveAll() {
var l = allStars.length;
var i = 0;
while (i < l) {
if (allStars[i]._name != "special") {
allStars[i].swapPos();
}
allStars[i].startMoving();
i++;
}
}
function moveAllSpecial() {
var l = allStars.length;
var i = 0;
while (i < l) {
allStars[i].startMoving();
i++;
}
}
function stopAll() {
var l = allStars.length;
var i = 0;
while (i < l) {
allStars[i].onEnterFrame = null;
i++;
}
clearInterval(motion);
clearInterval(opening);
clearInterval(closing);
}
function dissolveAll() {
var l = allStars.length;
var i = 0;
while (i < l) {
allStars[i].onEnterFrame = allStars[i].fadeOut;
i++;
}
}
function speedAll() {
var l = allStars.length;
var i = 0;
while (i < l) {
if (allStars[i]._name != "special") {
allStars[i].speed = allStars[i].speed * 1.2;
}
i++;
}
}
function createGateChoices() {
gateChoices = new Array(totalStars);
slots = new Array(totalStars);
var i = 0;
while (i < slots.length) {
slots[i] = i;
i++;
}
var i = 0;
while (i < 3) {
var rand = mf(mr() * slots.length);
var loc = slots[rand];
gateChoices[loc] = i + 1;
slots.splice(rand, 1);
i++;
}
var i = 0;
while (i < slots.length) {
var loc = slots[i];
gateChoices[loc] = mf(mr() * 3) + 1;
i++;
}
}
function createStars(myShape) {
myArray = eval (myShape + "Array");
if (myShape == "circle") {
circlePos = 0;
}
if (myShape == "wave") {
baseAngle = 0;
}
if (myShape == "backAndForth") {
wInc = 100;
hInc = 70;
xOffset = 160;
yOffset = 80;
outer = 0;
inner = 0;
dir = 1;
}
var i = 0;
while (i < totalStars) {
var rand = gateChoices[i];
addGates(rand);
a = this.attachMovie("star" + rand, "s" + i, i + 2, {pattern:myShape, level:i + 2, gateNumber:rand});
switch (myShape) {
case "square" :
ia = eval (myShape + "Init");
a.speed = 4;
a._x = ia[i].x;
a._y = ia[i].y;
a.posx = myArray[i].x;
a.posy = myArray[i].y;
break;
case "hex" :
ia = eval (myShape + "Init");
a.speed = 4;
a._x = ia[i].x;
a._y = ia[i].y;
a.posx = myArray[i].x;
a.posy = myArray[i].y;
break;
case "circle" :
a.cp = circlePos;
a.speed = 1;
a._x = (mc((this.cp / 180) * mp) * 90) + centerX;
a._y = (ms((this.cp / 180) * mp) * 90) + centerY;
circlePos = circlePos + 45;
break;
case "etoile" :
a.speed = 3;
a._x = centerX;
a._y = centerY;
a.posx = myArray[i].x;
a.posy = myArray[i].y;
a._xscale = (a._yscale = 10);
break;
case "wave" :
a.speed = 1;
a._x = i * 65;
baseAngle = baseAngle + 0.65;
a.angleX = baseAngle;
break;
case "backAndForth" :
a.speed = 3;
a._x = (inner * wInc) + xOffset;
a._y = (outer * hInc) + yOffset;
a.lBound = (inner * wInc) + 40;
a.rBound = (inner * wInc) + 280;
a.dir = dir;
inner++;
if (inner != 3) {
break;
}
inner = 0;
outer++;
dir = dir * (-1);
}
allStars.push(a);
a.startMoving();
i++;
}
}
function createSpecialStar(num, s, pa, name, lev) {
var b = this.attachMovie("star" + num, name, lev, {level:lev, speed:s, po:1, pattern:pa, so:num - 4});
if (pa == "fadeIn") {
b._x = mf(mr() * 450) + 20;
b._y = mf(mr() * 205) + 20;
} else if (pa == "funny") {
b.funnyFor = 1;
b._x = fPoints[0].x;
b._y = fPoints[0].y;
b.posx = fPoints[1].x;
b.posy = fPoints[1].y;
} else if (pa == "woo") {
b._x = wPoints[0].x;
b._y = wPoints[0].y;
b.posx = wPoints[1].x;
b.posy = wPoints[1].y;
} else if (pa == "robusto") {
b._x = rPoints[0].x;
b._y = rPoints[0].y;
b.posx = rPoints[1].x;
b.posy = rPoints[1].y;
} else if ((pa == "f8") || (pa == "oval")) {
b.cp = 0;
}
allStars.push(b);
b.startMoving();
}
function specialStars() {
if (specialArray.length == 0) {
specialArray = [0, 1, 2, 3, 4, 5];
}
var rand = mf(mr() * specialArray.length);
whichSpecial = specialArray[rand];
var temp = specialArray.splice(rand, 1);
switch (whichSpecial) {
case 0 :
createSpecialStar(4, 5, "fadeIn", "special", 50);
return;
case 1 :
createSpecialStar(5, 5, "f8", "special", 50);
return;
case 2 :
createSpecialStar(6, 5, "oval", "special", 50);
return;
case 3 :
createSpecialStar(7, 8, "funny", "special", 50);
return;
case 4 :
createSpecialStar(8, 5, "robusto", "special", 50);
return;
case 5 :
createSpecialStar(9, 5, "woo", "special", 50);
}
}
function specialBonus() {
totalStars = 5;
createSpecialStar(4, 5, "fadeIn", "sp1", 1);
createSpecialStar(5, 5, "f8", "sp2", 2);
createSpecialStar(6, 5, "oval", "sp3", 3);
createSpecialStar(7, 8, "funny", "sp4", 4);
createSpecialStar(8, 5, "robusto", "sp5", 5);
createSpecialStar(9, 5, "woo", "sp6", 6);
}
function createStars1() {
if (levelNumber < 4) {
if (shapeArray1.length == 0) {
shapeArray1 = [0, 1, 2];
}
levelBonus = false;
var rand = mf(mr() * shapeArray1.length);
var whichShape = shapeArray1[rand];
var temp = shapeArray1.splice(rand, 1);
switch (whichShape) {
case 0 :
totalStars = 6;
createGateChoices();
createStars("square");
break;
case 1 :
totalStars = 6;
createGateChoices();
createStars("hex");
break;
case 2 :
totalStars = 6;
createGateChoices();
createStars("backAndForth");
}
specialStars();
} else {
levelNumber = 0;
levelBonus = true;
specialBonus();
}
}
function createStars2() {
if (levelNumber < 4) {
if (shapeArray2.length == 0) {
shapeArray2 = [2, 3, 4];
}
levelBonus = false;
var rand = mf(mr() * shapeArray2.length);
var whichShape = shapeArray2[rand];
var temp = shapeArray2.splice(rand, 1);
switch (whichShape) {
case 2 :
totalStars = 8;
createGateChoices();
createStars("circle");
break;
case 3 :
totalStars = 10;
createGateChoices();
createStars("etoile");
break;
case 4 :
totalStars = 10;
createGateChoices();
createStars("wave");
}
specialStars();
} else {
levelNumber = 0;
levelBonus = true;
specialBonus();
}
}
function scoreBarValues(num) {
barw = num * 40;
switch (num) {
case 5 :
max = 5;
mid = 2;
initx = 145;
return;
case 6 :
max = 5;
mid = 2;
initx = 125;
return;
case 8 :
max = 6;
mid = 3;
initx = 84;
return;
case 10 :
max = 7;
mid = 3;
initx = 47;
}
}
function addGates(num) {
switch (num) {
case 1 :
g1++;
return;
case 2 :
g2++;
return;
case 3 :
g3++;
}
}
function reduceGates(num) {
switch (num) {
case 1 :
g1--;
if (g1 == 0) {
allGates.removeFromArray(num);
}
return;
case 2 :
g2--;
if (g2 == 0) {
allGates.removeFromArray(num);
}
return;
case 3 :
g3--;
if (g3 != 0) {
break;
}
allGates.removeFromArray(num);
}
}
function openGate() {
if (allGates.length > 0) {
clearInterval(opening);
randomGate = mf(mr() * allGates.length);
newGate = allGates[randomGate];
_level0["gate" + newGate].gotoAndStop(2);
oldGate = newGate;
gateOpen = true;
closing = setInterval(closeGate, 3000);
}
}
function closeGate() {
gateOpen = false;
_level0["gate" + oldGate].gotoAndStop(1);
_level0["gate" + oldGate].r._visible = false;
clearInterval(closing);
opening = setInterval(openGate, 1000);
}
function rainbows(state) {
var i = 1;
while (i < 4) {
_level0["gate" + i].gotoAndStop(1);
_level0["gate" + i].r._visible = state;
i++;
}
}
function testEndGame() {
if (win != (totalStars + 1)) {
speedAll();
motion = setInterval(moveAll, speedInc);
opening = setInterval(openGate, 1000);
} else {
gameEnd();
}
}
function testEndGameSpecial() {
if (win != (totalStars + 1)) {
moveAllSpecial();
} else {
gameEnd();
}
}
function wait() {
a++;
if (a > 15) {
clearInterval(pausing);
_level0.gotoAndPlay("scoring");
var i = 1;
while (i < 4) {
_level0["gate" + i].gotoAndStop(2);
i++;
}
}
}
function gameEnd() {
delete this.onMouseDown;
delete clock.onEnterFrame;
clearInterval(opening);
clearInterval(closing);
clearInterval(motion);
dissolveAll();
removeMovieClip("hand");
getURL ("lingo:setCursor(-1)");
a = 0;
pausing = setInterval(wait, 100);
}
function grabStars() {
if (cursorFree) {
z = allStars.length;
var i = 0;
while (i < z) {
clip = allStars[i];
if (clip.hitTest(this._xmouse, this._ymouse, 1)) {
if (clip._name != "special") {
if (gateOpen) {
cursorFree = false;
stopAll();
clip.caught();
break;
}
} else {
cursorFree = false;
stopAll();
clip.caught();
break;
}
}
i++;
}
} else {
dt = eval (clip._droptarget);
if ((((clip._name != "special") && (dt == _level0["gate" + clip.gateNumber])) && (oldGate == clip.gateNumber)) || ((clip._name == "special") && ((((((dt == _level0.gate1) || (dt == _level0.gate2)) || (dt == _level0.gate3)) || (dt == _level0.gate1.r)) || (dt == _level0.gate2.r)) || (dt == _level0.gate3.r)))) {
if (clip._name != "special") {
dt.gotoAndPlay("fill");
} else {
d = String(dt).substring(0, 13);
eval (d).gotoAndPlay("fillS");
}
clip.captured();
win++;
winArray.push(clip);
testEndGame();
} else {
clip.released();
}
hand._visible = true;
cursorFree = true;
}
updateAfterEvent();
}
function grabSpecialStars() {
if (cursorFree) {
z = allStars.length;
var i = 0;
while (i < z) {
clip = allStars[i];
if (clip.hitTest(this._xmouse, this._ymouse, 1)) {
cursorFree = false;
stopAll();
clip.caughtSpecial();
break;
}
i++;
}
} else {
dt = eval (clip._droptarget);
if ((((((dt == _level0.gate1) || (dt == _level0.gate2)) || (dt == _level0.gate3)) || (dt == _level0.gate1.r)) || (dt == _level0.gate2.r)) || (dt == _level0.gate3.r)) {
d = String(dt).substring(0, 13);
eval (d).gotoAndPlay("fillS");
clip.capturedSpecial();
win++;
winArray.push(clip);
testEndGameSpecial();
} else {
clip.releasedSpecial();
}
hand._visible = true;
cursorFree = true;
}
updateAfterEvent();
}
(_global.mr = Math.random);
(_global.mf = Math.floor);
(_global.ms = Math.sin);
(_global.mc = Math.cos);
(_global.mp = Math.PI);
(_global.mq = Math.sqrt);
var levelNumber = 0;
var levelBonus = false;
(centerX = 270);
(centerY = 130);
speedInc = 1500;
shapeArray1 = [0, 1, 2];
shapeArray2 = [2, 3, 4];
specialArray = [0, 1, 2, 3, 4, 5];
etoileArray = [{x:270, y:40}, {x:228, y:83}, {x:174, y:109}, {x:203, y:161}, {x:211, y:220}, {x:270, y:210}, {x:328, y:220}, {x:336, y:161}, {x:365, y:109}, {x:311, y:83}];
hexArray = [{x:270, y:40}, {x:183, y:89}, {x:183, y:189}, {x:270, y:240}, {x:356, y:189}, {x:356, y:89}];
hexInit = [{x:270, y:-200}, {x:183, y:-169}, {x:183, y:-51}, {x:270, y:0}, {x:356, y:-50}, {x:356, y:-140}];
squareArray = [{x:170, y:80}, {x:270, y:80}, {x:370, y:80}, {x:370, y:180}, {x:270, y:180}, {x:170, y:180}];
squareInit = [{x:70, y:80}, {x:270, y:-20}, {x:470, y:80}, {x:470, y:180}, {x:270, y:280}, {x:70, y:180}, {x:-41, y:-21}, {x:158, y:120}];
wPoints = [{x:-41, y:-21}, {x:158, y:120}, {x:-41, y:-21}, {x:260, y:-40}, {x:260, y:110}, {x:260, y:-40}, {x:533, y:-38}, {x:384, y:125}, {x:533, y:-38}, {x:601, y:160}, {x:391, y:160}, {x:601, y:160}, {x:466, y:340}, {x:301, y:163}, {x:466, y:340}, {x:255, y:340}, {x:255, y:196}, {x:255, y:340}, {x:30, y:341}, {x:190, y:174}, {x:30, y:341}, {x:-41, y:165}, {x:117, y:165}, {x:-41, y:165}];
rPoints = [{x:40, y:30}, {x:500, y:40}, {x:45, y:210}, {x:475, y:198}];
fPoints = [{x:35, y:41}, {x:80, y:310}, {x:110, y:49}, {x:163, y:303}, {x:183, y:37}, {x:248, y:286}, {x:263, y:27}, {x:312, y:307}, {x:351, y:36}, {x:420, y:298}, {x:441, y:47}];
Array.prototype.removeFromArray = function (element) {
var i = 0;
while (i < this.length) {
if ((this[i] == eval (element)) || (this[i] == element)) {
var temp = this.splice(i, 1);
return(i);
}
i++;
}
};
_global.Shape = function () {
};
_global.Shape.prototype = new MovieClip();
var s = _global.Shape.prototype;
s.onLoad = function () {
this.stop();
};
s.startMoving = function () {
this.onEnterFrame = eval ("this." + this.pattern);
};
s.circle = function () {
this._x = (mc((this.cp / 180) * mp) * 90) + centerX;
this._y = (ms((this.cp / 180) * mp) * 90) + centerY;
this.cp = this.cp + this.speed;
if (this.cp == 360) {
this.cp = 0;
}
};
s.oval = function () {
this._x = (mc((this.cp / 180) * mp) * 180) + centerX;
this._y = (ms((this.cp / 180) * mp) * 60) + centerY;
this._rotation = mc((this.cp / 180) * mp) * -20;
this.cp = this.cp + this.speed;
if (this.cp == 360) {
this.cp = 0;
}
};
s.f8 = function () {
this._x = (mc(this.cp / 100) * 200) + centerX;
this._y = (ms(this.cp / 50) * 50) + centerY;
this._rotation = mc((this.cp / 180) * mp) * 20;
this.cp = this.cp + this.speed;
if (this.cp <= 0) {
this.cp = 360;
}
};
s.wave = function () {
this.angleX = this.angleX + 0.05;
this._x = this._x + this.speed;
if (this._x > 620) {
this._x = -20;
}
this._y = 125 + (Math.sin(this.angleX) * 70);
};
s.backAndForth = function () {
this._x = this._x + (this.speed * this.dir);
if ((this._x >= this.rBound) || (this._x <= this.lBound)) {
this.dir = this.dir * -1;
}
};
s.etoile = function () {
if ((this._x != this.posx) || (this._y != this.posy)) {
this.dX = this._x - this.posx;
this.dY = this._y - this.posy;
this.di = math.sqrt((this.dX * this.dX) + (this.dY * this.dY));
this.mX = this.speed * (this.dX / this.di);
this.mY = this.speed * (this.dY / this.di);
if (this.speed >= this.di) {
this.onEnterFrame = null;
if (this._xscale < 100) {
this._xscale = (this._yscale = 100);
}
} else {
this._x = this._x - this.mX;
this._y = this._y - this.mY;
if (this._xscale < 100) {
this._xscale = this._xscale + this.speed;
this._yscale = this._yscale + this.speed;
}
}
}
};
s.square = function () {
if ((this._x != this.posx) || (this._y != this.posy)) {
this.dX = this._x - this.posx;
this.dY = this._y - this.posy;
this.dist = mq((this.dX * this.dX) + (this.dY * this.dY));
this.mX = this.speed * (this.dX / this.dist);
this.mY = this.speed * (this.dY / this.dist);
this._x = this._x - this.mX;
this._y = this._y - this.mY;
if (this.speed >= this.dist) {
this.onEnterFrame = null;
}
}
};
s.hex = function () {
if ((this._x != this.posx) || (this._y != this.posy)) {
this.dX = this._x - this.posx;
this.dY = this._y - this.posy;
this.dist = mq((this.dX * this.dX) + (this.dY * this.dY));
this.mX = this.speed * (this.dX / this.dist);
this.mY = this.speed * (this.dY / this.dist);
this._x = this._x - this.mX;
this._y = this._y - this.mY;
if (this.speed >= this.dist) {
this.onEnterFrame = null;
}
}
};
s.woo = function () {
if ((this._x != this.posx) || (this._y != this.posy)) {
this.deltaX = this._x - this.posx;
this.deltaY = this._y - this.posy;
this.dist = math.sqrt((this.deltaX * this.deltaX) + (this.deltaY * this.deltaY));
this.moveX = this.speed * (this.deltaX / this.dist);
this.moveY = this.speed * (this.deltaY / this.dist);
this._x = this._x - this.moveX;
this._y = this._y - this.moveY;
if (10 >= this.dist) {
this.po++;
if (this.po == 24) {
this.po = 0;
}
if ((this.po % 3) == 0) {
this._x = wPoints[this.po].x;
this._y = wPoints[this.po].y;
this.po++;
this.anim.gotoAndPlay("boo");
this.posx = wPoints[this.po].x;
this.posy = wPoints[this.po].y;
} else {
this.anim.play();
this.posx = wPoints[this.po].x;
this.posy = wPoints[this.po].y;
}
}
}
};
s.robusto = function () {
if ((this._x != this.posx) || (this._y != this.posy)) {
this.deltaX = this._x - this.posx;
this.deltaY = this._y - this.posy;
this.rdist = math.sqrt((this.deltaX * this.deltaX) + (this.deltaY * this.deltaY));
this.speed = this.speed * 1.01;
this.moveX = this.speed * (this.deltaX / this.rdist);
this.moveY = this.speed * (this.deltaY / this.rdist);
if (40 >= this.rdist) {
this.speed = 5;
this.po++;
if (this.po == 4) {
this.po = 0;
}
this.posx = rPoints[this.po].x;
this.posy = rPoints[this.po].y;
}
this._x = this._x - this.moveX;
this._y = this._y - this.moveY;
}
};
s.funny = function () {
if ((this._x != this.posx) || (this._y != this.posy)) {
this.deltaX = this._x - this.posx;
this.deltaY = this._y - this.posy;
this.fdist = math.sqrt((this.deltaX * this.deltaX) + (this.deltaY * this.deltaY));
this.moveX = this.speed * (this.deltaX / this.fdist);
this.moveY = this.speed * (this.deltaY / this.fdist);
if (10 >= this.fdist) {
this.po = this.po + this.funnyFor;
if (this.po == 11) {
this.po = 10;
this.funnyFor = this.funnyFor * -1;
} else if (this.po == -1) {
this.po = 0;
this.funnyFor = this.funnyFor * -1;
}
this.posx = fPoints[this.po].x;
this.posy = fPoints[this.po].y;
}
this._x = this._x - this.moveX;
this._y = this._y - this.moveY;
}
};
s.swapPos = function () {
if ((this._name != "special") || (levelNumber != 0)) {
myLength = myArray.length + 1;
if (this.level >= myLength) {
this.posx = myArray[0].x;
this.posy = myArray[0].y;
this.level = 2;
} else {
this.posx = myArray[this.level - 1].x;
this.posy = myArray[this.level - 1].y;
this.level++;
}
}
};
s.backToPos = function () {
if ((this._x != this.posx) || (this._y != this.posy)) {
this.deltaX = this._x - this.posx;
this.deltaY = this._y - this.posy;
this.dist = math.sqrt((this.deltaX * this.deltaX) + (this.deltaY * this.deltaY));
this.moveX = 10 * (this.deltaX / this.dist);
this.moveY = 10 * (this.deltaY / this.dist);
this._x = this._x - this.moveX;
this._y = this._y - this.moveY;
if (10 >= this.dist) {
this.onEnterFrame = null;
closeGate();
motion = setInterval(moveAll, speedInc);
}
}
};
s.backToPosSpecial = function () {
if ((this._x != this.posx) || (this._y != this.posy)) {
this.deltaX = this._x - this.posx;
this.deltaY = this._y - this.posy;
this.dist = math.sqrt((this.deltaX * this.deltaX) + (this.deltaY * this.deltaY));
this.moveX = 10 * (this.deltaX / this.dist);
this.moveY = 10 * (this.deltaY / this.dist);
this._x = this._x - this.moveX;
this._y = this._y - this.moveY;
if (10 >= this.dist) {
this.onEnterFrame = null;
moveAllSpecial();
}
}
};
s.fadeIn = function () {
this._alpha = this._alpha + this.speed;
if (this._alpha >= 100) {
this.onEnterFrame = this.fadeOutSpecial;
}
};
s.fadeOutSpecial = function () {
this._alpha = this._alpha - this.speed;
if (this._alpha <= 0) {
this._x = mf(mr() * 450) + 20;
this._y = mf(mr() * 205) + 20;
this.onEnterFrame = this.fadeIn;
}
};
s.fadeOut = function () {
this._alpha = this._alpha - 3;
if (this._alpha <= 0) {
removeMovieClip(this);
}
};
s.caught = function () {
hand._visible = false;
this.gotoAndStop(2);
this.startDrag(true);
this.swapDepths(900);
this.posx = this._x;
this.posy = this._y;
if (this._name == "special") {
rainbows(true);
dSound.attachSound("s" + whichSpecial);
dSound.start();
}
};
s.caughtSpecial = function () {
hand._visible = false;
this.gotoAndStop(2);
this.startDrag(true);
this.swapDepths(900);
this.posx = this._x;
this.posy = this._y;
rainbows(true);
dSound.attachSound("s" + this.so);
dSound.start();
};
s.released = function () {
mySound.attachSound("wrong");
mySound.start();
this.stopDrag();
this.gotoAndStop(1);
backpack.gotoAndStop(2);
this.swapDepths(this.level);
rainbows(false);
this.onEnterFrame = this.backToPos;
};
s.releasedSpecial = function () {
mySound.attachSound("wrong");
mySound.start();
this.stopDrag();
this.gotoAndStop(1);
this.swapDepths(this.level);
rainbows(false);
this.onEnterFrame = this.backToPosSpecial;
};
s.captured = function () {
stopDrag();
delete this.onEnterFrame;
this.gotoAndStop(1);
this._x = initx + (40 * win);
this._y = -100;
whichSound = mf(mr() * 3);
dSound.attachSound("w" + whichSound);
dSound.start();
if (this._name != "special") {
reduceGates(this.gateNumber);
backpack.gotoAndStop(3);
} else {
this._rotation = 0;
this._alpha = 100;
backpack.gotoAndStop(4);
}
var temp = allStars.removeFromArray((this._parent + ".") + this._name);
};
s.capturedSpecial = function () {
stopDrag();
delete this.onEnterFrame;
this.gotoAndStop(1);
this._x = initx + (40 * win);
this._y = -100;
this._rotation = 0;
this._alpha = 100;
whichSound = mf(mr() * 3);
dSound.attachSound("w" + whichSound);
dSound.start();
backpack.gotoAndStop(4);
var temp = allStars.removeFromArray((this._parent + ".") + this._name);
};
var i = 1;
while (i < 10) {
Object.registerClass("star" + i, Shape);
i++;
}
Instance of Symbol 349 MovieClip "clock" in Frame 693
//component parameters
onClipEvent (initialize) {
time = Number(levelTime);
timeOutAction = "gameEnd";
pieSize = 38;
pieColor = 16777062 /* 0xFFFF66 */;
pieAlpha = 100;
}
Frame 694
function startGame() {
if (dSound.position >= dSound.duration) {
delete this.onEnterFrame;
if (levelBonus) {
this.onMouseDown = grabSpecialStars;
moveAllSpecial();
} else {
this.onMouseDown = grabStars;
openGate();
motion = setInterval(moveAll, speedInc);
}
clock.onEnterFrame = clock.checkTime;
}
}
stop();
levelNumber++;
allGates = [1, 2, 3];
allStars = new Array();
winArray = new Array();
win = 0;
g1 = 0;
g2 = 0;
g3 = 0;
gameBegin = false;
gateOpen = false;
cursorFree = true;
this.attachMovie("hand", "hand", 1000);
getURL ("lingo:setCursor(200)");
eval ("createStars" + this.gameLevel)();
scoreBarValues(totalStars);
rainbows(false);
mySound.setVolume(100);
mySound.attachSound("gameloop");
mySound.start(0, 999);
if (levelNumber != 0) {
dSound.attachSound("canyou");
} else {
dSound.attachSound("canyouspecial");
}
dSound.start();
this.onMouseMove = function () {
hand._x = this._xmouse;
hand._y = this._ymouse;
updateAfterEvent();
};
clock.time = 45;
this.onEnterFrame = startGame;
Frame 721
dSound.attachSound("letsee");
dSound.start();
Frame 779
function growBar() {
bar.middle._width = bar.middle._width + inc;
bar.left._x = bar.middle._x - (bar.middle._width / 2);
bar.right._x = bar.middle._x + (bar.middle._width / 2);
inc = inc * 1.2;
if (bar.middle._width >= barw) {
delete this.onEnterFrame;
this.onEnterFrame = soundDone;
}
}
function soundDone() {
delete this.onEnterFrame;
for (i in winArray) {
winArray[i]._y = 44;
}
this.gotoAndStop("endScore");
}
mySound.attachSound("scoreAudio");
mySound.start();
inc = 1.5;
this.onEnterFrame = growBar;
stop();
Frame 781
function checkA() {
if (dSound.position >= dSound.duration) {
for (i in winArray) {
removeMovieClip(winArray[i]);
}
clearInterval(finishAudio);
volume = 100;
id = setInterval(fadeOutAudio, 50);
_level0.gotoAndPlay("endGame");
}
}
function waitAWhile() {
i++;
if (i > 25) {
clearInterval(pausing);
dSound.attachSound("adios");
dSound.start();
finishAudio = setInterval(checkA, 10);
}
}
function fadeOutAudio() {
volume = volume - 5;
mySound.setVolume(volume);
if (volume <= 20) {
mySound.stop();
clearInterval(id);
}
}
if (win > max) {
scoreAnim.gotoAndPlay("super");
dSound.attachSound("super");
dSound.start();
} else if (win > mid) {
scoreAnim.gotoAndPlay("great");
dSound.attachSound("great");
dSound.start();
} else {
scoreAnim.gotoAndPlay("good");
dSound.attachSound("good");
dSound.start();
}
mySound.attachSound("fanfare");
mySound.start();
i = 0;
pausing = setInterval(waitAWhile, 100);
stop();
Frame 812
if (levelNumber == 3) {
gotoAndPlay (838);
}
Frame 817
if (gameLevel == 1) {
tryLevel.gotoAndStop(2);
} else {
tryLevel.gotoAndStop(1);
}
Frame 836
stop();
same.onRelease = function () {
gotoAndPlay (694);
};
tryLevel.tryLevel.onRelease = function () {
if (gameLevel == 1) {
gameLevel = 2;
} else {
gameLevel = 1;
}
gotoAndPlay (694);
};
Frame 838
mySound.setVolume(100);
mySound.attachSound("bonus");
mySound.start();
Frame 860
stop();
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 25
stop();
Symbol 158 Button
on (release) {
gameLevel = 1;
gotoAndPlay (37);
}
Symbol 159 Button
on (release) {
gameLevel = 2;
gotoAndPlay (37);
}
Symbol 225 Button
on (release) {
gotoAndPlay (325);
mySound.stop();
}
Symbol 243 Button
on (release) {
gotoAndPlay (693);
}
Symbol 277 MovieClip Frame 36
gotoAndPlay (1);
Symbol 277 MovieClip Frame 57
gotoAndPlay (1);
Symbol 277 MovieClip Frame 80
gotoAndPlay (1);
Symbol 277 MovieClip Frame 103
gotoAndPlay (1);
Symbol 284 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 1
function checkTime() {
if ((getTimer() - now) >= 1000) {
now = getTimer();
arc = arc + (360 / time);
}
tracker.clear();
tracker.drawSlice(pieSize, -arc, pieColor, pieAlpha);
if (arc >= 360) {
eval ("_root." + this.timeOutAction)();
delete this.onEnterFrame;
}
}
MovieClip.prototype.drawSlice = function (r, arc, fcolor, falpha) {
if (falpha == undefined) {
falpha = 100;
}
startAngle = 90;
var segs = Math.ceil(Math.abs(arc) / 45);
var segAngle = (arc / segs);
var theta = ((-(segAngle / 180)) * mp);
var angle = ((-(startAngle / 180)) * mp);
this.beginFill(fcolor, falpha);
if (segs > 0) {
var ax = (mc(angle) * r);
var ay = (ms(angle) * r);
this.lineTo(ax, ay);
var i = 0;
while (i < segs) {
angle = angle + theta;
var angleMid = (angle - (theta / 2));
var bx = (mc(angle) * r);
var by = (ms(angle) * r);
var cx = (mc(angleMid) * (r / mc(theta / 2)));
var cy = (ms(angleMid) * (r / mc(theta / 2)));
this.curveTo(cx, cy, bx, by);
i++;
}
this.lineTo(0, 0);
}
this.endFill();
};
this.createEmptyMovieClip("tracker", 2);
this.moon.setMask(tracker);
var arc = 0;
now = getTimer();
var increment = ((time * 6) / 360);
Symbol 356 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 10
this.gotoAndStop(1);
r._visible = false;
Symbol 356 MovieClip Frame 18
this.gotoAndStop(1);
_level0.rainbows(false);
Symbol 360 MovieClip Frame 1
stop();
Symbol 360 MovieClip Frame 10
this.gotoAndStop(1);
r._visible = false;
Symbol 360 MovieClip Frame 18
this.gotoAndStop(1);
_level0.rainbows(false);
Symbol 363 MovieClip Frame 1
stop();
Symbol 363 MovieClip Frame 10
this.gotoAndStop(1);
r._visible = false;
Symbol 363 MovieClip Frame 18
this.gotoAndStop(1);
_level0.rainbows(false);
Symbol 374 MovieClip Frame 23
_parent.gotoAndStop(1);
Symbol 381 MovieClip Frame 23
_parent.gotoAndStop(1);
Symbol 389 MovieClip Frame 21
_parent.gotoAndStop(1);
Symbol 390 MovieClip Frame 1
stop();
Instance of Symbol 389 MovieClip in Symbol 390 MovieClip Frame 4
/* no clip actions */
Symbol 449 MovieClip Frame 15
stop();
Symbol 449 MovieClip Frame 30
stop();
Symbol 449 MovieClip Frame 46
stop();
Symbol 465 MovieClip Frame 1
stop();
Symbol 468 MovieClip Frame 1
stop();
Symbol 470 MovieClip Frame 1
stop();
Symbol 475 Button
on (release) {
getURL ("lingo:doQuit");
}
Symbol 483 Button
on (release) {
gotoAndPlay (694);
}