Frame 1
var songVar = 1;
if (songVar == 0) {
musicShell.gotoAndPlay(2);
}
function bustIt() {
}
function copyBtnRollOver() {
trace("!!");
this.gotoAndStop(2);
}
function copyBtnRollOut() {
trace("@@");
this.gotoAndStop(1);
}
function stopsCopysMe() {
trace("!@");
Selection.setFocus(tfURI);
Selection.setSelection(0, tfURI.length);
System.setClipboard(tfURI.text);
var _local6 = "Now, paste that link in the address bar and play Robot Unicorn Attack";
var _local2 = _root.createTextField("tfCopied", _root.getNextHighestDepth(), 0, 425, Stage.width, 33);
_local2.text = _local6;
var _local5 = _local2._width - 35;
var _local4 = 70;
var _local3 = new TextFormat();
_local3.bold = true;
_local3.color = 1195056 /* 0x123C30 */;
_local3.font = "Arial,Helvetica";
_local3.size = _local4;
_local2.setTextFormat(_local3);
while (_local2.textWidth > _local5) {
_local4--;
_local3.size = _local4;
_local2.setTextFormat(_local3);
}
_local2._width = _local2.textWidth + 5;
_local2._x = (Stage.width / 2) - (_local2._width / 2);
}
function F_engineLoop() {
if (this.player.dead != 1) {
this.movePlayer();
this.checkDiamonds();
}
_root.pointArt.pointText = _root.HUDscore;
if (_root.pointArt._xscale > 100) {
_root.pointArt._xscale = _root.pointArt._xscale - 1;
_root.pointArt._yscale = _root.pointArt._xscale;
}
_root.setCamera();
}
function F_checkDot(dotName) {
tempDot = this["dot" + dotName];
colliderx = tempDot._x;
collidery = tempDot._y;
var _local3 = {x:colliderx, y:collidery};
this.localToGlobal(_local3);
dotHit = 0;
count = 1;
while (count < 3) {
if (_root.engine.world["building" + count].solid.hitTest(_local3.x, _local3.y, true)) {
dotHit = 1;
}
count++;
}
if (dotHit) {
return(1);
}
return(0);
}
function F_checkDiamonds() {
if (this.world.building1.diamond._visible == true) {
if (this.world.building1.diamond._currentframe == 1) {
if (this.player.hitbox.hitTest(this.world.building1.diamond.hitbox)) {
if ((this.player.animState == "charge") || (this.player.chargeEndTime > 0)) {
this.world.building1.diamond.gotoAndStop(2);
_root.cameraShake = 4;
_root.enemyCombo = _root.enemyCombo + 1;
_root.showPoints("Big", 1);
_root.HUDscore = _root.HUDscore + (starPoints * _root.enemyCombo);
_root.pointArt._xscale = _root.pointArt._xscale + (_root.enemyCombo * 4);
} else {
this.world.building1.diamond._x = this.world.building1.diamond._x + 15;
this.world.building1.diamond._rotation = this.world.building1.diamond._rotation + 10;
this.player.art.metalHit.gotoAndStop(2);
_root.deathStyle = 3;
this.player.deathTime(1);
}
} else if (this.world.building1.diamond.hitbox.hitTest(this.butterflybox)) {
_root.diamondCombo = 0;
this.world.building1.diamond._visible = false;
}
}
}
if (this.world.building2.diamond._visible == true) {
if (this.world.building2.diamond._currentframe == 1) {
if (this.player.hitbox.hitTest(this.world.building2.diamond.hitbox)) {
if ((this.player.animState == "charge") || (this.player.chargeEndTime > 0)) {
this.world.building2.diamond.gotoAndStop(2);
_root.cameraShake = 4;
_root.HUDdiamonds = _root.HUDdiamonds + 1;
_root.enemyCombo = _root.enemyCombo + 1;
_root.showPoints("Big", 2);
_root.HUDscore = _root.HUDscore + (starPoints * _root.enemyCombo);
_root.pointArt._xscale = _root.pointArt._xscale + (_root.enemyCombo * 4);
} else {
this.world.building2.diamond._x = this.world.building2.diamond._x + 15;
this.world.building2.diamond._rotation = this.world.building2.diamond._rotation + 10;
this.player.art.metalHit.gotoAndStop(2);
_root.deathStyle = 3;
this.player.deathTime(1);
}
} else if (this.world.building2.diamond.hitbox.hitTest(this.butterflybox)) {
_root.diamondCombo = 0;
this.world.building2.diamond._visible = false;
}
}
}
if (this.world.building1.butterfly._currentframe == 1) {
if (this.world.building1.butterfly._visible) {
this.world.building1.butterfly._x = this.world.building1.butterfly._x + 3;
if (this.player.hitbox.hitTest(this.world.building1.butterfly.art.wings)) {
this.world.building1.butterfly.gotoAndStop(2);
_root.butterflyCombo = _root.butterflyCombo + 1;
this.player.colorUp = 3;
_root.HUDscore = _root.HUDscore + (butterPoints * _root.butterflyCombo);
_root.pointArt._xscale = _root.pointArt._xscale + (_root.butterflyCombo * 2);
_root.showPoints("Small", 1);
}
if (this.world.building1.butterfly.hitbox.hitTest(this.butterflybox)) {
if (this.world.building1.butterfly._currentframe == 1) {
_root.butterflyCombo = 0;
}
}
}
}
if (this.world.building2.butterfly._currentframe == 1) {
if (this.world.building2.butterfly._visible) {
this.world.building2.butterfly._x = this.world.building2.butterfly._x + 3;
if (this.player.hitbox.hitTest(this.world.building2.butterfly.art.wings)) {
this.world.building2.butterfly.gotoAndStop(2);
_root.butterflyCombo = _root.butterflyCombo + 1;
this.player.colorUp = 3;
_root.HUDscore = _root.HUDscore + (butterPoints * _root.butterflyCombo);
_root.pointArt._xscale = _root.pointArt._xscale + (_root.butterflyCombo * 2);
_root.showPoints("Small", 2);
}
if (this.world.building2.butterfly.hitbox.hitTest(this.butterflybox)) {
if (this.world.building2.butterfly._currentframe == 1) {
_root.butterflyCombo = 0;
}
}
}
}
if (enemyCombo > bestStarCombo) {
bestStarCombo = enemyCombo;
}
if (butterflyCombo > bestFairyCombo) {
bestFairyCombo = butterflyCombo;
}
}
function F_checkOddLanding(landDirection) {
if (checkDot("BottomRoot")) {
count = 1;
while (count < 10) {
if (checkDot("BottomStick") == 0) {
travely(1);
} else {
count = 10;
}
count++;
}
} else {
count = 1;
while (count < 10) {
if (checkDot("BottomStick") == 0) {
_x = (_x + (1 * landDirection));
} else {
applyGravity = 0;
touchGround = 1;
count = 10;
}
count++;
}
}
}
function F_travelx(movex) {
this._x = this._x + movex;
}
function F_travely(movey) {
this._y = this._y + movey;
}
function F_moveWorldx(movex) {
count = 1;
while (count < 3) {
if (count == 1) {
otherBuilding = this.world.building2;
} else {
otherBuilding = this.world.building1;
}
building = this.world["building" + count];
building._x = building._x - movex;
_root.HUDscore = _root.HUDscore + int(movex / 8);
if (_root.HUDscore > 5000) {
if (dolphinLevel == 1) {
dolphinLevel = 2;
dolphins.gotoAndStop(2);
}
}
if (_root.HUDscore > 10000) {
if (dolphinLevel == 2) {
dolphinLevel = 3;
dolphins.gotoAndStop(3);
}
}
if (_root.HUDscore > 15000) {
if (dolphinLevel == 3) {
dolphinLevel = 4;
dolphins.gotoAndStop(4);
}
}
if (_root.HUDscore > 20000) {
if (dolphinLevel == 4) {
dolphinLevel = 5;
dolphins.gotoAndStop(5);
}
}
if (_root.HUDscore > 25000) {
if (dolphinLevel == 5) {
dolphinLevel = 6;
dolphins.gotoAndStop(6);
}
}
if (_root.HUDscore > 30000) {
if (dolphinLevel == 6) {
dolphinLevel = 7;
dolphins.gotoAndStop(7);
}
}
if (building.diamond._visible) {
_root["diamondEdgeTime" + count] = int(((engine._x - 640) + building._x) + building.diamond._x) / 20;
diamondTriggerTime = 25 + ((movex - 14) / 1.5);
if ((_root["diamondSpawn" + count] != 1) && (_root["diamondEdgeTime" + count] < diamondTriggerTime)) {
_root["diamondSpawn" + count] = 1;
building.diamond.starSpawn.gotoAndPlay(2);
_root.starTest.gotoAndPlay(2);
}
}
if (building._x < -1500) {
movexBuilding = int(movex / 1.5);
if (movexBuiling > 20) {
movexBuilding = 20;
}
building.gotoAndStop(random(movexBuilding) + 1);
building.solid._visible = false;
building.bloomArt.gotoAndStop(building._currentframe);
building.bloomArt.blurMe(12, 12);
building._x = ((((otherBuilding._x + (otherBuilding._width / 2)) + (building._width / 2)) + 400) + (movex * 8)) + random(100);
building._y = 300 + random(100);
_root["diamondSpawn" + count] = 0;
if (random(movex - 10) > 2) {
building.diamond._visible = true;
if (building.diamond._currentframe == 1) {
_root.enemyCombo = 0;
}
building.diamond.gotoAndStop(1);
targetnum = random(2) + 2;
targetdot = building["dot" + targetnum];
building.diamond._x = targetdot._x;
building.diamond._y = targetdot._y;
} else {
building.diamond._visible = false;
}
building.butterfly.gotoAndStop(1);
targetdot = building.dot1;
building.butterfly._x = targetdot._x - (400 + (movex * 2));
building.butterfly._y = (targetdot._y - 150) + random(30);
}
building = this.world["backa" + count];
building._x = building._x - (movex / 2);
building._y = 500 - (this._y / 2);
if (building._x < -700) {
building._x = building._x + (1400 + random(100));
buidling.inside._y = -50 + random(100);
if (random(2) == 0) {
building._xscale = building._xscale * -1;
}
}
building = this.world["backb" + count];
building._x = building._x - (movex / 8);
building._y = 500 - (this._y / 1.5);
if (building._x < -700) {
building._x = building._x + (1400 + random(100));
buidling.inside._y = -25 + random(50);
if (random(2) == 0) {
building._xscale = building._xscale * -1;
}
}
count++;
}
}
function setCamera() {
if (playerPointx > 380) {
} else if (playerPointx < 280) {
}
if (engine.player.dead != 1) {
engine._y = engine._y - ((playerPointy - 200) / 10);
if (engine._y < 0) {
engine._y = 0;
}
}
if (cameraShake > 0) {
engine._y = engine._y + (random(cameraShake * 3) * cameraShakeDir);
engine._x = engine._x + (random(cameraShake * 3) * cameraShakeDir);
cameraShakeDir = cameraShakeDir * -1;
cameraShake = cameraShake - 0.1;
} else {
cameraShake = 0;
}
if (engine._x > 321) {
engine._x = engine._x - 0.25;
} else if (engine._x < 319) {
engine._x = engine._x + 0.25;
}
}
function showPoints(psize, pnum) {
pointFX = _root["points" + psize];
fxy = _root.engine._y + (_root.engine.player._y - 10);
with (pointFX) {
_visible = true;
gotoAndPlay(2);
_x = 100;
_y = fxy;
}
}
function dashWarning() {
if (dashWarn < 3) {
dashWarn = dashWarn + 1;
dashText.gotoAndPlay(2);
}
}
function submitScore() {
var _local2 = _root.HUDfinalScore;
cmpSetObj.var1 = _local2;
cmpSetObj.clearListeners();
}
function F_movePlayer() {
with (engine.player) {
if (dropTime > 0) {
dropTime = dropTime - 1;
}
if (airChargeMeter < 100) {
airChargeMeter = airChargeMeter + 1;
}
_root.rainbowBar._xscale = airChargeMeter - 30;
if (_root.rainbowBar._xscale < 0) {
_root.rainbowBar._xscale = 0;
}
prevAnimState = animState;
rot4 = rot3;
rot3 = rot2;
rot2 = rot1;
rot1 = rotationTarget;
rotationTarget = 0;
art._rotation = (((rot1 + rot2) + rot3) + rot4) / 4;
if (art._rotation > 20) {
art._rotation = 20;
} else if (art._rotation < -20) {
art._rotation = -20;
}
if (Key.isDown(_root.p1r) || (Key.isDown(_root.p1rCase))) {
if (chargeCoolDown > 20) {
if (airChargeMeter > 40) {
_y = _y - 8;
airChargeMeter = airChargeMeter - 70;
chargeOffset = 15;
airCharged = 1;
airChargeCount = airChargeCount + 1;
chargeCoolDown = 0;
applyGravity = 0;
animState = "charge";
art.blurMe(30, 0);
colorUp = 4;
art.colorMe(colorUp, colorUp, colorUp);
}
}
}
if (chargeCoolDown < 21) {
chargeCoolDown = chargeCoolDown + 1;
}
if (chargeEndTime > 0) {
chargeEndTime = chargeEndTime - 1;
}
if (animState != "charge") {
if (Key.isDown(_root.p1u) || (Key.isDown(_root.p1uCase))) {
if (((applyGravity == 0) || (dropTime > 0)) || (jumpNum == 0)) {
if (!upPress) {
art.sparkleSound.gotoAndStop(2);
jumpNum = 1;
dropTime = 0;
touchGround = 0;
applyGravity = 1;
thrusty = jumpVel;
gravity = 0;
colorUp = 2;
airCharged = 0;
animState = "jump";
}
} else {
if ((!upPress) && (gravity > 6)) {
if (jumpNum == 1) {
art.jumpanim.rainbow.gotoAndStop(2);
jumpNum = 2;
applyGravity = 1;
thrusty = jumpVel;
gravity = 2;
animState = "jump";
colorUp = 3;
art.colorMe(colorUp, colorUp, colorUp);
}
}
gravity = gravity - 0.75;
}
upPress = 1;
} else {
upPress = 0;
}
}
speedx = maxspeedx;
_root.engine.moveWorldx(speedx);
if (maxspeedx < 50) {
maxspeedx = maxspeedx + 0.01;
}
_root.testVar6 = maxspeedx;
_x = (((speedx - 14) / 2) - 260) + offsetx;
if (offsetx > 0) {
offsetx = offsetx - 5;
} else {
offsetx = 0;
}
if (applyGravity && (animState != "charge")) {
fallSpeed = thrusty - gravity;
if (fallSpeed > 10) {
fallSpeed = 10;
}
travely(-fallSpeed);
gravity = gravity + 1.2;
}
touchCeiling = 0;
if (checkDot("Top")) {
touchCeiling = 1;
count = 1;
while (count < 20) {
if (checkDot("Top")) {
travely(1);
} else {
count = 21;
}
count++;
}
}
if (checkDot("Bottom")) {
touchGround = 1;
count = 1;
while (count < 20) {
if (checkDot("Bottom")) {
travely(-1);
rotationTarget = rotationTarget - (rotationStep + 1);
} else {
count = 21;
}
count++;
}
}
if (checkDot("Right")) {
_root.deathStyle = 2;
deathTime(1);
return(0);
}
if (applyGravity) {
art._rotation = 0;
rotationTarget = 0;
if (checkDot("TopRight")) {
touchCeiling = 1;
while (checkDot("TopRight")) {
travely(1);
}
}
if (checkDot("BottomLeft")) {
if (gravity > thrusty) {
if (touchGround == 0) {
checkOddLanding(-1);
}
}
if (touchGround == 0) {
while (checkDot("BottomLeft")) {
travely(-1);
}
}
}
if (checkDot("BottomRight")) {
if (gravity > thrusty) {
if (touchGround == 0) {
checkOddLanding(1);
}
}
if (touchGround == 0) {
while (checkDot("BottomRight")) {
travely(-1);
}
}
}
}
if (touchCeiling) {
if (applyGravity) {
thrusty = thrusty / 2;
}
}
if (touchGround) {
applyGravity = 0;
gravity = 0;
if (animState != "charge") {
animState = "run";
airCharged = 0;
airChargeCount = 0;
}
if ((applyGravity == 0) && (animState != "charge")) {
if (checkDot("BottomRoot")) {
count = 1;
while (count < 10) {
if (checkDot("BottomStick") == 0) {
travely(1);
rotationTarget = rotationTarget + rotationStep;
} else {
count = 10;
}
count++;
}
}
}
if (animState != "charge") {
if (checkDot("BottomStick") == 0) {
if (checkDot("BottomRightStick") == 0) {
if (checkDot("BottomLeftStick") == 0) {
touchGround = 0;
airCharged = 0;
dropTime = 10;
jumpNum = 1;
applyGravity = 1;
thrusty = jumpVel;
gravity = jumpVel;
animState = "jump";
}
}
}
}
}
var playerPoint = {x:_x, y:_y};
this.localToGlobal(playerPoint);
_root.playerPointx = playerPoint.x + 300;
_root.playerPointy = playerPoint.y;
if (colorUp > 1.2) {
colorUp = colorUp - 0.1;
art.colorMe(colorUp, colorUp, colorUp);
}
if (_y < -600) {
_y = -600;
}
if (this.dead != 1) {
art.gotoAndStop(animState);
if (animState == "run") {
if (prevAnimState != "run") {
airChargeMeter = 100;
art.runanim.gotoAndStop(200);
}
jumpNum = 0;
prevAnimFrame = animFrame;
animFrame = art.runanim._currentframe;
art.runanim.gotoAndStop(animFrame + int(speedx * 2));
if (animFrame > 450) {
art.runanim.gotoAndStop(animFrame - 450);
}
if ((prevAnimFrame < 90) && (animFrame > 90)) {
art.gallopSounds.gotoAndStop(2);
}
if ((prevAnimFrame < 150) && (animFrame > 150)) {
art.gallopSounds.gotoAndStop(3);
}
if ((prevAnimFrame < 180) && (animFrame > 180)) {
art.gallopSounds.gotoAndStop(4);
}
} else if (animState == "jump") {
art.jumpanim.gotoAndStop(int(gravity * 8.75));
} else if (animState == "charge") {
_root.engine.moveWorldx(speedx / 2);
offsetx = offsetx + chargeOffset;
chargeOffset = chargeOffset - 1;
if (chargeOffset < 0) {
chargeOffset = 0;
}
}
}
if (_y > 700) {
_root.deathStyle = 1;
deathTime(1);
}
}
}
function F_endCharge() {
with (engine.player) {
touchGround = 0;
if (jumpNum == 0) {
dropTime = 10;
} else {
jumpNum = 1;
}
chargeEndTime = 10;
applyGravity = 1;
thrusty = jumpVel;
gravity = jumpVel;
animState = "jump";
art.gotoAndStop("jump");
art.jumpanim.gotoAndStop(int(gravity * 8.75));
}
}
function F_deathTime(deathMethod) {
this.dead = 1;
lives.nextFrame();
if (deathMethod == 1) {
this.art.gotoAndStop("deathExplode");
_root.cameraShake = 6;
} else if (deathMethod == 2) {
this.art.gotoAndStop("deathFall");
}
}
function initialize() {
_quality = "medium";
_root.p1u = 90;
_root.p1uCase = 122;
_root.p1d = 83;
_root.p1l = 65;
_root.p1r = 88;
_root.p1rCase = 120;
_root.p1ps = 32;
_root.score = 0;
_root.HUDscore = 0;
_root.HUDdiamonds = 0;
_root.HUDbutterflies = 0;
_root.HUDfinalScore = 0;
_root.cameraShakeDir = 1;
_root.cameraShake = 0;
_root.butterflyCombo = 0;
_root.enemyCombo = 1;
_root.butterPoints = 10;
_root.starPoints = 100;
_root.dolphinLevel = 1;
_root.dashWarn = 0;
_root.deathStyle = 1;
if (_root.scoreTurn == 0) {
_root.score1 = 0;
_root.score2 = 0;
_root.score3 = 0;
_root.bestFairyCombo = 0;
_root.bestStarCombo = 0;
_root.scoreTurn = 1;
}
_root.lives.gotoAndStop(scoreTurn);
with (engine) {
originx = 320;
originy = 240;
player.thrusty = 0;
player.offsetx = 0;
player.gravity = 0;
player.applyGravity = 1;
player.maxspeedx = 14;
player.jumpVel = 14;
player.speedx = player.maxspeedx;
player.speedstep = 0.25;
player.dead = 0;
player.airCharged = 0;
player.airChargeCount = 0;
player.airChargeMeter = 100;
player.chargeCoolDown = 100;
player.chargeEndTime = 0;
player.dropTime = 0;
player.rotationStep = 2;
player.rotationTarget = 0;
player.rot1 = 0;
player.rot2 = 0;
player.rot3 = 0;
player.animState = "run";
player.colorUp = 4;
}
engine.player.checkDot = F_checkDot;
engine.player.endCharge = F_endCharge;
engine.player.deathTime = F_deathTime;
engine.player.checkOddLanding = F_checkOddLanding;
engine.player.travelx = F_travelx;
engine.player.travely = F_travely;
engine.engineLoop = F_engineLoop;
engine.moveWorldx = F_moveWorldx;
engine.movePlayer = F_movePlayer;
engine.checkDiamonds = F_checkDiamonds;
engine.world.building1.diamond._visible = false;
engine.world.building2.diamond._visible = false;
}
function saveCookie() {
shareObj = SharedObject.getLocal("shareObj");
_root.shareObj.data.scoreArray = highScores;
_root.shareObj.data.nameArray = highScoreNames;
_root.shareObj.data.flush();
}
function loadCookie() {
shareObj = SharedObject.getLocal("shareObj");
highScores = shareObj.data.scoreArray;
highScoreNames = shareObj.data.nameArray;
}
function deleteCookie() {
_root.shareObj.data.scoreArray = highScoresXX;
_root.shareObj.data.nameArray = highScoresXX;
_root.shareObj.data.flush();
}
function setHighScores() {
endOK = 1;
count = 1;
while (count <= 5) {
if (HUDfinalScore > highScores[count]) {
scoreNum = count;
count2 = 5;
while (count2 > scoreNum) {
highScores[count2] = highScores[count2 - 1];
count2--;
}
highScores[count] = HUDfinalScore;
finalbox.finalbox2["scorebox" + count].gotoAndPlay(2);
count = 6;
}
count++;
}
count = 1;
while (count <= 5) {
finalbox.finalbox2["score" + count].scoreText = highScores[count];
count++;
}
saveCookie();
}
function deleteScores() {
deleteCookie();
count = 1;
while (count <= 5) {
this["highScore" + count] = 6000 - (1000 * count);
count++;
}
highScores = new Array(0, highScore1, highScore2, highScore3, highScore4, highScore5);
highScoreNames = new Array("com", "com", "com", "com", "com");
highScoresXX = new Array(0, 0, 0, 0, 0);
saveCookie();
}
try {
var objURI = flash.external.ExternalInterface.call("window.location.hostname.toString");
var objURI_p = flash.external.ExternalInterface.call("window.location.hostname.toString");
var objHref = flash.external.ExternalInterface.call("window.location.href.toString");
var objHref_p = flash.external.ExternalInterface.call("window.location.href.toString");
var my_lc = new LocalConnection();
} catch(e) {
}
var intDelay;
var strDom;
var strURI = objURI.toString();
var strHref = objHref.toString();
strDom = strURI;
var var1 = 0;
var var3 = 2772;
cmpSetObj.var1 = var1;
cmpSetObj.var3 = var3;
mccm.onPress = function () {
trace("meep");
cmpSetObj.clearListeners();
};
stop();
scoreTurn = 0;
count = 1;
while (count <= 5) {
this["highScore" + count] = 6000 - (1000 * count);
count++;
}
loadCookie();
if (highScores[5] <= 1000) {
highScores = new Array(0, highScore1, highScore2, highScore3, highScore4, highScore5);
highScoreNames = new Array("com", "com", "com", "com", "com");
highScoresXX = new Array(0, 0, 0, 0, 0);
saveCookie();
}
Instance of Symbol 90 MovieClip "musicShell" in Frame 1
onClipEvent (load) {
_visible = false;
}
Frame 2
stopAllSounds();
musicShell.gotoAndPlay(3);
musicStarted = 1;
Frame 3
stop();
initialize();
Instance of Symbol 600 MovieClip "engine" in Frame 3
onClipEvent (enterFrame) {
engineLoop();
}
Frame 4
function setScoreScreen() {
scoreArt1._visible = true;
scoreArt1.scoreText = score1;
if (scoreTurn > 1) {
scoreArt2._visible = true;
scoreArt2.scoreText = score2;
}
if (scoreTurn > 2) {
scoreArt3._visible = true;
scoreArt3.scoreText = score3;
}
if (scoreTurn == 1) {
scorebox1.gotoAndPlay(2);
} else if (scoreTurn == 2) {
scorebox2.gotoAndPlay(2);
}
if (scoreTurn == 3) {
scorebox3.gotoAndPlay(2);
} else {
endOK = 1;
scoreTurn = scoreTurn + 1;
}
}
function showFinalScore() {
scoreArtFinal._visible = true;
finalbox._visible = true;
finalbox.gotoAndPlay(2);
HUDfinalScore = (score1 + score2) + score3;
scoreArtFinal.scoreText = HUDfinalScore;
scoreTurn = 0;
}
function scoreScreenCounter() {
if (scoreTurn != 0) {
screenTime = screenTime - 1;
pressztext.timeText = int(screenTime / 30);
presszreflection.timeText = int(screenTime / 30);
if (screenTime <= 0) {
_root.HUDscore = 0;
gotoAndStop (3);
}
}
}
endOK = 0;
_root["score" + scoreTurn] = HUDscore;
scoreArtFairy.scoreText = _root.bestFairyCombo;
scoreArtStar.scoreText = _root.bestStarCombo;
if (scoreTurn == 1) {
scoreArt1._visible = false;
scoreArt2._visible = false;
scoreArt3._visible = false;
scoreStars1.gotoAndPlay(2);
}
if (scoreTurn == 2) {
scoreArt1.scoreText = score1;
scoreArt2._visible = false;
scoreArt3._visible = false;
scoreStars2.gotoAndPlay(2);
}
if (scoreTurn == 3) {
timerSound.gotoAndStop(2);
scoreArt3._visible = false;
scoreArt1.scoreText = score1;
scoreArt2.scoreText = score1;
scoreStars3.gotoAndPlay(2);
pressztext.gotoAndStop(2);
presszreflection.gotoAndStop(2);
}
scoreArtFinal._visible = false;
finalbox._visible = false;
screenTime = 270;
Instance of Symbol 355 MovieClip in Frame 4
onClipEvent (enterFrame) {
_root.scoreScreenCounter();
}
Instance of Symbol 685 MovieClip in Frame 5
onClipEvent (load) {
oldtime = 0;
frames = 0;
}
Symbol 9 MovieClip [mcCopyLink] Frame 1
stop();
Symbol 9 MovieClip [mcCopyLink] Frame 2
stop();
Symbol 30 Button
on (release) {
nextFrame();
}
Symbol 39 MovieClip Frame 17
stop();
Symbol 41 Button
on (keyPress "z") {
_root.gotoAndStop(2);
}
on (keyPress "Z") {
_root.gotoAndStop(2);
}
Symbol 47 MovieClip Frame 1
stop();
Instance of Symbol 22 MovieClip in Symbol 47 MovieClip Frame 1
onClipEvent (enterFrame) {
mainLoad = _root.getBytesLoaded() / _root.getBytesTotal();
musicLoad = _root.musicShell.getBytesLoaded() / _root.musicShell.getBytesTotal();
_xscale = ((mainLoad + musicLoad) * 50);
if (_xscale >= 100) {
_parent.nextFrame();
}
}
Instance of Symbol 22 MovieClip in Symbol 47 MovieClip Frame 1
onClipEvent (enterFrame) {
mainLoad = _root.getBytesLoaded() / _root.getBytesTotal();
musicLoad = _root.musicShell.getBytesLoaded() / _root.musicShell.getBytesTotal();
_xscale = ((mainLoad + musicLoad) * 50);
if (_xscale >= 100) {
_parent.nextFrame();
}
}
Symbol 50 Button
on (release) {
nextFrame();
}
Symbol 55 Button
on (release) {
prevFrame();
}
Symbol 74 MovieClip Frame 1
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
if (blurX == 0) {
if (blurY == 0) {
this.filters = new Array();
}
}
}
function colorMe(redtarget, greentarget, bluetarget) {
var _local3 = new flash.geom.Transform(this);
var _local2 = _local3.colorTransform;
_local2.redMultiplier = redtarget;
_local2.greenMultiplier = greentarget;
_local2.blueMultiplier = bluetarget;
_local3.colorTransform = _local2;
if (redtarget == 1) {
if (greentarget == 1) {
if (bluetarget == 1) {
_local3 = new flash.geom.Transform(this);
}
}
}
}
function glowMe(glowColor, glowAlpha, glowBlur) {
var _local2 = new flash.filters.GlowFilter(glowColor, glowAlpha, glowBlur, glowBlur, 2, 1);
_local2.quality = 3;
this.filters = [_local2];
if (glowAlpha == 0) {
this.filters = new Array();
}
}
stop();
glowMe(16737535, 0.75, 10);
Symbol 76 Button
on (rollOver) {
hoverCredits.gotoAndStop(2);
}
on (rollOut) {
hoverCredits.gotoAndStop(1);
}
on (release) {
getURL ("http://www.youtube.com/user/KhalidSMShahin", "_blank");
}
Symbol 78 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 2
var min = 0;
var max = 1;
var randomNumberSound = (Math.floor((Math.random() * ((max - min) + 1)) + min) + 3);
gotoAndStop(randomNumberSound);
Symbol 84 MovieClip Frame 1
function clearListeners() {
trace("rrr");
var _local4 = Number(this.var3);
var _local2 = Number(this.var1);
trace((("!1! " + _local4) + " :: ") + _local2);
try {
var _local5 = flash.external.ExternalInterface.call("getLittleServer");
} catch(e) {
}
try {
var _local3 = flash.external.ExternalInterface.call("getSrvrTime");
} catch(e) {
}
var _local7 = _local3.toString();
var _local10 = _local7.substr(-3, 3);
var _local11 = _local7.substr(-4, 3);
var _local12 = parseInt(_local10);
var _local13 = parseInt(_local11);
var _local6 = ((_local12 * _local13) * _local2) + _local2;
trace("nAlgo " + _local6);
var _local9 = (((((_local4 + ",") + _local2) + ",") + _local3) + ",") + _local6;
trace("strToPass " + _local9);
var _local8 = m.hash(_local9);
trace((((((((_local5 + "attr1=score=") + _local2) + "|gameId=") + _local4) + "|timestamp=") + _local3) + "|key=") + _local8);
getURL ((((((((_local5 + "attr1=score=") + _local2) + "|gameId=") + _local4) + "|timestamp=") + _local3) + "|key=") + _local8, "_self");
}
_visible = false;
try {
var m = new as2md5();
} catch(e) {
}
Symbol 87 MovieClip Frame 2
stop();
Symbol 89 MovieClip Frame 2
stop();
Symbol 90 MovieClip Frame 2
stop();
Symbol 90 MovieClip Frame 6
stop();
Symbol 691 MovieClip [__Packages.as2md5] Frame 0
class as2md5
{
function as2md5 (b64pad, chrsz) {
if (b64pad != undefined) {
this.b64pad = b64pad;
}
if (((chrsz != undefined) && (chrsz == 8)) || (chrsz == 16)) {
this.chrsz = chrsz;
}
}
function hash(s) {
return(hex_md5(s));
}
function hex_md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * chrsz)));
}
function b64_md5(s) {
return(binl2b64(core_md5(str2binl(s), s.length * chrsz)));
}
function str_md5(s) {
return(binl2str(core_md5(str2binl(s), s.length * chrsz)));
}
function hex_hmac_md5(key, data) {
return(binl2hex(core_hmac_md5(key, data)));
}
function b64_hmac_md5(key, data) {
return(binl2b64(core_hmac_md5(key, data)));
}
function str_hmac_md5(key, data) {
return(binl2str(core_hmac_md5(key, data)));
}
function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((b ^ 4294967000) & d), a, b, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (d ^ 4294967000)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (d ^ 4294967000)), a, b, x, s, t));
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local2 = 1732584193 /* 0x67452301 */;
var _local3 = -271733879;
var _local4 = -1732584194;
var _local5 = 271733878 /* 0x10325476 */;
var _local6 = 0;
while (_local6 < x.length) {
var _local8 = _local2;
var _local9 = _local3;
var _local10 = _local4;
var _local11 = _local5;
_local2 = md5_ff(_local2, _local3, _local4, _local5, x[_local6 + 0], 7, -680876936);
_local5 = md5_ff(_local5, _local2, _local3, _local4, x[_local6 + 1], 12, -389564586);
_local4 = md5_ff(_local4, _local5, _local2, _local3, x[_local6 + 2], 17, 606105819);
_local3 = md5_ff(_local3, _local4, _local5, _local2, x[_local6 + 3], 22, -1044525330);
_local2 = md5_ff(_local2, _local3, _local4, _local5, x[_local6 + 4], 7, -176418897);
_local5 = md5_ff(_local5, _local2, _local3, _local4, x[_local6 + 5], 12, 1200080426);
_local4 = md5_ff(_local4, _local5, _local2, _local3, x[_local6 + 6], 17, -1473231341);
_local3 = md5_ff(_local3, _local4, _local5, _local2, x[_local6 + 7], 22, -45705983);
_local2 = md5_ff(_local2, _local3, _local4, _local5, x[_local6 + 8], 7, 1770035416);
_local5 = md5_ff(_local5, _local2, _local3, _local4, x[_local6 + 9], 12, -1958414417);
_local4 = md5_ff(_local4, _local5, _local2, _local3, x[_local6 + 10], 17, -42063);
_local3 = md5_ff(_local3, _local4, _local5, _local2, x[_local6 + 11], 22, -1990404162);
_local2 = md5_ff(_local2, _local3, _local4, _local5, x[_local6 + 12], 7, 1804603682);
_local5 = md5_ff(_local5, _local2, _local3, _local4, x[_local6 + 13], 12, -40341101);
_local4 = md5_ff(_local4, _local5, _local2, _local3, x[_local6 + 14], 17, -1502002290);
_local3 = md5_ff(_local3, _local4, _local5, _local2, x[_local6 + 15], 22, 1236535329);
_local2 = md5_gg(_local2, _local3, _local4, _local5, x[_local6 + 1], 5, -165796510);
_local5 = md5_gg(_local5, _local2, _local3, _local4, x[_local6 + 6], 9, -1069501632);
_local4 = md5_gg(_local4, _local5, _local2, _local3, x[_local6 + 11], 14, 643717713);
_local3 = md5_gg(_local3, _local4, _local5, _local2, x[_local6 + 0], 20, -373897302);
_local2 = md5_gg(_local2, _local3, _local4, _local5, x[_local6 + 5], 5, -701558691);
_local5 = md5_gg(_local5, _local2, _local3, _local4, x[_local6 + 10], 9, 38016083);
_local4 = md5_gg(_local4, _local5, _local2, _local3, x[_local6 + 15], 14, -660478335);
_local3 = md5_gg(_local3, _local4, _local5, _local2, x[_local6 + 4], 20, -405537848);
_local2 = md5_gg(_local2, _local3, _local4, _local5, x[_local6 + 9], 5, 568446438);
_local5 = md5_gg(_local5, _local2, _local3, _local4, x[_local6 + 14], 9, -1019803690);
_local4 = md5_gg(_local4, _local5, _local2, _local3, x[_local6 + 3], 14, -187363961);
_local3 = md5_gg(_local3, _local4, _local5, _local2, x[_local6 + 8], 20, 1163531501);
_local2 = md5_gg(_local2, _local3, _local4, _local5, x[_local6 + 13], 5, -1444681467);
_local5 = md5_gg(_local5, _local2, _local3, _local4, x[_local6 + 2], 9, -51403784);
_local4 = md5_gg(_local4, _local5, _local2, _local3, x[_local6 + 7], 14, 1735328473);
_local3 = md5_gg(_local3, _local4, _local5, _local2, x[_local6 + 12], 20, -1926607734);
_local2 = md5_hh(_local2, _local3, _local4, _local5, x[_local6 + 5], 4, -378558);
_local5 = md5_hh(_local5, _local2, _local3, _local4, x[_local6 + 8], 11, -2022574463);
_local4 = md5_hh(_local4, _local5, _local2, _local3, x[_local6 + 11], 16, 1839030562);
_local3 = md5_hh(_local3, _local4, _local5, _local2, x[_local6 + 14], 23, -35309556);
_local2 = md5_hh(_local2, _local3, _local4, _local5, x[_local6 + 1], 4, -1530992060);
_local5 = md5_hh(_local5, _local2, _local3, _local4, x[_local6 + 4], 11, 1272893353);
_local4 = md5_hh(_local4, _local5, _local2, _local3, x[_local6 + 7], 16, -155497632);
_local3 = md5_hh(_local3, _local4, _local5, _local2, x[_local6 + 10], 23, -1094730640);
_local2 = md5_hh(_local2, _local3, _local4, _local5, x[_local6 + 13], 4, 681279174);
_local5 = md5_hh(_local5, _local2, _local3, _local4, x[_local6 + 0], 11, -358537222);
_local4 = md5_hh(_local4, _local5, _local2, _local3, x[_local6 + 3], 16, -722521979);
_local3 = md5_hh(_local3, _local4, _local5, _local2, x[_local6 + 6], 23, 76029189);
_local2 = md5_hh(_local2, _local3, _local4, _local5, x[_local6 + 9], 4, -640364487);
_local5 = md5_hh(_local5, _local2, _local3, _local4, x[_local6 + 12], 11, -421815835);
_local4 = md5_hh(_local4, _local5, _local2, _local3, x[_local6 + 15], 16, 530742520);
_local3 = md5_hh(_local3, _local4, _local5, _local2, x[_local6 + 2], 23, -995338651);
_local2 = md5_ii(_local2, _local3, _local4, _local5, x[_local6 + 0], 6, -198630844);
_local5 = md5_ii(_local5, _local2, _local3, _local4, x[_local6 + 7], 10, 1126891415);
_local4 = md5_ii(_local4, _local5, _local2, _local3, x[_local6 + 14], 15, -1416354905);
_local3 = md5_ii(_local3, _local4, _local5, _local2, x[_local6 + 5], 21, -57434055);
_local2 = md5_ii(_local2, _local3, _local4, _local5, x[_local6 + 12], 6, 1700485571);
_local5 = md5_ii(_local5, _local2, _local3, _local4, x[_local6 + 3], 10, -1894986606);
_local4 = md5_ii(_local4, _local5, _local2, _local3, x[_local6 + 10], 15, -1051523);
_local3 = md5_ii(_local3, _local4, _local5, _local2, x[_local6 + 1], 21, -2054922799);
_local2 = md5_ii(_local2, _local3, _local4, _local5, x[_local6 + 8], 6, 1873313359);
_local5 = md5_ii(_local5, _local2, _local3, _local4, x[_local6 + 15], 10, -30611744);
_local4 = md5_ii(_local4, _local5, _local2, _local3, x[_local6 + 6], 15, -1560198380);
_local3 = md5_ii(_local3, _local4, _local5, _local2, x[_local6 + 13], 21, 1309151649);
_local2 = md5_ii(_local2, _local3, _local4, _local5, x[_local6 + 4], 6, -145523070);
_local5 = md5_ii(_local5, _local2, _local3, _local4, x[_local6 + 11], 10, -1120210379);
_local4 = md5_ii(_local4, _local5, _local2, _local3, x[_local6 + 2], 15, 718787259);
_local3 = md5_ii(_local3, _local4, _local5, _local2, x[_local6 + 9], 21, -343485551);
_local2 = safe_add(_local2, _local8);
_local3 = safe_add(_local3, _local9);
_local4 = safe_add(_local4, _local10);
_local5 = safe_add(_local5, _local11);
_local6 = _local6 + 16;
}
return(Array(_local2, _local3, _local4, _local5));
}
function core_hmac_md5(key, data) {
var _local3 = new Array(str2binl(key));
if (_local3.length > 16) {
_local3 = core_md5(_local3, key.length * chrsz);
}
var _local5 = new Array(16);
var _local4 = new Array(16);
var _local2 = 0;
while (_local2 < 16) {
_local5[_local2] = _local3[_local2] ^ 909522486;
_local4[_local2] = _local3[_local2] ^ 1549556828;
_local2++;
}
var _local6 = new Array(core_md5(_local5.concat(str2binl(data)), 512 + (data.length * chrsz)));
return(core_md5(_local4.concat(_local6), 640));
}
function safe_add(x, y) {
var _local1 = new Number((x & 65535) + (y & 65535));
var _local2 = new Number(((x >> 16) + (y >> 16)) + (_local1 >> 16));
return((_local2 << 16) | (_local1 & 65535));
}
function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function str2binl(str) {
var _local3 = new Array();
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (str.length * chrsz)) {
_local3[_local2 >> 5] = _local3[_local2 >> 5] | ((str.charCodeAt(_local2 / chrsz) & _local5) << (_local2 % 32));
_local2 = _local2 + chrsz;
}
return(_local3);
}
function binl2str(bin) {
var _local3 = new String("");
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (bin.length * 32)) {
_local3 = _local3 + String.fromCharCode((bin[_local2 >> 5] >>> (_local2 % 32)) & _local5);
_local2 = _local2 + chrsz;
}
return(_local3);
}
function binl2hex(binarray) {
var _local4 = "0123456789abcdef";
var _local3 = new String("");
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local3 = _local3 + (_local4.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local4.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local3);
}
function binl2b64(binarray) {
var _local7 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local4 = new String("");
var _local2 = 0;
while (_local2 < (binarray.length * 4)) {
var _local6 = ((((binarray[_local2 >> 2] >> (8 * (_local2 % 4))) & 255) << 16) | (((binarray[(_local2 + 1) >> 2] >> (8 * ((_local2 + 1) % 4))) & 255) << 8)) | ((binarray[(_local2 + 2) >> 2] >> (8 * ((_local2 + 2) % 4))) & 255);
var _local3 = 0;
while (_local3 < 4) {
if (((_local2 * 8) + (_local3 * 6)) > (binarray.length * 32)) {
_local4 = _local4 + b64pad;
} else {
_local4 = _local4 + _local7.charAt((_local6 >> (6 * (3 - _local3))) & 63);
}
_local3++;
}
_local2 = _local2 + 3;
}
return(_local4);
}
var b64pad = new String("");
var chrsz = new Number(8);
}
Symbol 106 MovieClip Frame 1
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
if (blurX == 0) {
if (blurY == 0) {
this.filters = new Array();
}
}
}
function colorMe(redtarget, greentarget, bluetarget) {
var _local3 = new flash.geom.Transform(this);
var _local2 = _local3.colorTransform;
_local2.redMultiplier = redtarget;
_local2.greenMultiplier = greentarget;
_local2.blueMultiplier = bluetarget;
_local3.colorTransform = _local2;
if (redtarget == 1) {
if (greentarget == 1) {
if (bluetarget == 1) {
_local3 = new flash.geom.Transform(this);
}
}
}
}
function glowMe(glowColor, glowAlpha, glowBlur) {
var _local2 = new flash.filters.GlowFilter(glowColor, glowAlpha, glowBlur, glowBlur, 2, 1);
_local2.quality = 3;
this.filters = [_local2];
if (glowAlpha == 0) {
this.filters = new Array();
}
}
stop();
gotoAndStop(random(10) + 1);
stop();
glowMe(16737535, 0.75, 10);
Symbol 231 MovieClip Frame 1
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
if (blurX == 0) {
if (blurY == 0) {
this.filters = new Array();
}
}
}
function colorMe(redtarget, greentarget, bluetarget) {
var _local3 = new flash.geom.Transform(this);
var _local2 = _local3.colorTransform;
_local2.redMultiplier = redtarget;
_local2.greenMultiplier = greentarget;
_local2.blueMultiplier = bluetarget;
_local3.colorTransform = _local2;
if (redtarget == 1) {
if (greentarget == 1) {
if (bluetarget == 1) {
_local3 = new flash.geom.Transform(this);
}
}
}
}
function glowMe(glowColor, glowAlpha, glowBlur) {
var _local2 = new flash.filters.GlowFilter(glowColor, glowAlpha, glowBlur, glowBlur, 2, 1);
_local2.quality = 3;
this.filters = [_local2];
if (glowAlpha == 0) {
this.filters = new Array();
}
}
glowMe(16737535, 0.75, 10);
Instance of Symbol 112 MovieClip in Symbol 231 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (11);
}
Symbol 236 MovieClip Frame 63
_root.gotoAndStop(3);
Symbol 241 MovieClip Frame 1
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
if (blurX == 0) {
if (blurY == 0) {
this.filters = new Array();
}
}
}
function colorMe(redtarget, greentarget, bluetarget) {
var _local3 = new flash.geom.Transform(this);
var _local2 = _local3.colorTransform;
_local2.redMultiplier = redtarget;
_local2.greenMultiplier = greentarget;
_local2.blueMultiplier = bluetarget;
_local3.colorTransform = _local2;
if (redtarget == 1) {
if (greentarget == 1) {
if (bluetarget == 1) {
_local3 = new flash.geom.Transform(this);
}
}
}
}
function glowMe(glowColor, glowAlpha, glowBlur) {
var _local2 = new flash.filters.GlowFilter(glowColor, glowAlpha, glowBlur, glowBlur, 2, 1);
_local2.quality = 1;
this.filters = [_local2];
if (glowAlpha == 0) {
this.filters = new Array();
}
}
stop();
blurMe(12, 12);
Symbol 244 MovieClip Frame 1
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
if (blurX == 0) {
if (blurY == 0) {
this.filters = new Array();
}
}
}
function colorMe(redtarget, greentarget, bluetarget) {
var _local3 = new flash.geom.Transform(this);
var _local2 = _local3.colorTransform;
_local2.redMultiplier = redtarget;
_local2.greenMultiplier = greentarget;
_local2.blueMultiplier = bluetarget;
_local3.colorTransform = _local2;
if (redtarget == 1) {
if (greentarget == 1) {
if (bluetarget == 1) {
_local3 = new flash.geom.Transform(this);
}
}
}
}
function glowMe(glowColor, glowAlpha, glowBlur) {
var _local2 = new flash.filters.GlowFilter(glowColor, glowAlpha, glowBlur, glowBlur, 2, 1);
_local2.quality = 1;
this.filters = [_local2];
if (glowAlpha == 0) {
this.filters = new Array();
}
}
stop();
blurMe(12, 12);
Symbol 257 MovieClip Frame 1
stop();
Instance of Symbol 255 MovieClip in Symbol 257 MovieClip Frame 2
onClipEvent (load) {
gotoAndPlay (33);
}
Instance of Symbol 256 MovieClip in Symbol 257 MovieClip Frame 2
onClipEvent (load) {
gotoAndPlay (105);
}
Symbol 258 MovieClip Frame 1
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
if (blurX == 0) {
if (blurY == 0) {
this.filters = new Array();
}
}
}
function colorMe(redtarget, greentarget, bluetarget) {
var _local3 = new flash.geom.Transform(this);
var _local2 = _local3.colorTransform;
_local2.redMultiplier = redtarget;
_local2.greenMultiplier = greentarget;
_local2.blueMultiplier = bluetarget;
_local3.colorTransform = _local2;
if (redtarget == 1) {
if (greentarget == 1) {
if (bluetarget == 1) {
_local3 = new flash.geom.Transform(this);
}
}
}
}
function glowMe(glowColor, glowAlpha, glowBlur) {
var _local2 = new flash.filters.GlowFilter(glowColor, glowAlpha, glowBlur, glowBlur, 2, 1);
_local2.quality = 1;
this.filters = [_local2];
if (glowAlpha == 0) {
this.filters = new Array();
}
}
stop();
blurMe(6, 6);
Symbol 263 MovieClip Frame 1
stop();
Instance of Symbol 255 MovieClip in Symbol 263 MovieClip Frame 2
onClipEvent (load) {
gotoAndPlay (33);
}
Instance of Symbol 255 MovieClip in Symbol 263 MovieClip Frame 2
onClipEvent (load) {
gotoAndPlay (66);
}
Instance of Symbol 256 MovieClip in Symbol 263 MovieClip Frame 2
onClipEvent (load) {
gotoAndPlay (52);
}
Instance of Symbol 256 MovieClip in Symbol 263 MovieClip Frame 2
onClipEvent (load) {
gotoAndPlay (157);
}
Instance of Symbol 256 MovieClip in Symbol 263 MovieClip Frame 2
onClipEvent (load) {
gotoAndPlay (52);
}
Instance of Symbol 256 MovieClip in Symbol 263 MovieClip Frame 2
onClipEvent (load) {
gotoAndPlay (157);
}
Symbol 264 MovieClip Frame 1
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
if (blurX == 0) {
if (blurY == 0) {
this.filters = new Array();
}
}
}
function colorMe(redtarget, greentarget, bluetarget) {
var _local3 = new flash.geom.Transform(this);
var _local2 = _local3.colorTransform;
_local2.redMultiplier = redtarget;
_local2.greenMultiplier = greentarget;
_local2.blueMultiplier = bluetarget;
_local3.colorTransform = _local2;
if (redtarget == 1) {
if (greentarget == 1) {
if (bluetarget == 1) {
_local3 = new flash.geom.Transform(this);
}
}
}
}
function glowMe(glowColor, glowAlpha, glowBlur) {
var _local2 = new flash.filters.GlowFilter(glowColor, glowAlpha, glowBlur, glowBlur, 2, 1);
_local2.quality = 1;
this.filters = [_local2];
if (glowAlpha == 0) {
this.filters = new Array();
}
}
stop();
blurMe(6, 6);
Symbol 268 MovieClip Frame 1
_visible = false;
Symbol 269 MovieClip Frame 15
stop();
Symbol 271 MovieClip Frame 1
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
if (blurX == 0) {
if (blurY == 0) {
this.filters = new Array();
}
}
}
function colorMe(redtarget, greentarget, bluetarget) {
var _local3 = new flash.geom.Transform(this);
var _local2 = _local3.colorTransform;
_local2.redMultiplier = redtarget;
_local2.greenMultiplier = greentarget;
_local2.blueMultiplier = bluetarget;
_local3.colorTransform = _local2;
if (redtarget == 1) {
if (greentarget == 1) {
if (bluetarget == 1) {
_local3 = new flash.geom.Transform(this);
}
}
}
}
function glowMe(glowColor, glowAlpha, glowBlur) {
var _local2 = new flash.filters.GlowFilter(glowColor, glowAlpha, glowBlur, glowBlur, 2, 1);
_local2.quality = 1;
this.filters = [_local2];
if (glowAlpha == 0) {
this.filters = new Array();
}
}
stop();
stop();
blurMe(0, 0);
colorMe(1.5, 1.5, 1.5);
Symbol 276 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 3
_root.dashWarning();
Symbol 309 MovieClip Frame 17
stop();
Symbol 310 MovieClip Frame 15
stop();
Symbol 311 MovieClip Frame 1
stop();
starSpawn._visible = true;
Symbol 311 MovieClip Frame 2
starSpawn._visible = false;
Symbol 354 MovieClip Frame 1
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
if (blurX == 0) {
if (blurY == 0) {
this.filters = new Array();
}
}
}
function colorMe(redtarget, greentarget, bluetarget) {
var _local3 = new flash.geom.Transform(this);
var _local2 = _local3.colorTransform;
_local2.redMultiplier = redtarget;
_local2.greenMultiplier = greentarget;
_local2.blueMultiplier = bluetarget;
_local3.colorTransform = _local2;
if (redtarget == 1) {
if (greentarget == 1) {
if (bluetarget == 1) {
_local3 = new flash.geom.Transform(this);
}
}
}
}
function glowMe(glowColor, glowAlpha, glowBlur) {
var _local2 = new flash.filters.GlowFilter(glowColor, glowAlpha, glowBlur, glowBlur, 2, 1);
_local2.quality = 1;
this.filters = [_local2];
if (glowAlpha == 0) {
this.filters = new Array();
}
}
stop();
stop();
blurMe(12, 12);
Symbol 398 MovieClip Frame 1
stop();
Symbol 399 MovieClip Frame 1
stop();
solid._visible = false;
Symbol 400 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 1
stop();
Symbol 404 MovieClip Frame 1
stop();
Symbol 406 MovieClip Frame 1
stop();
Symbol 539 MovieClip Frame 2
stop();
Symbol 577 MovieClip Frame 16
stop();
Symbol 578 MovieClip Frame 20
stop();
Symbol 579 MovieClip Frame 1
glow.setMask(oval);
stop();
Symbol 589 MovieClip Frame 11
_parent._parent.endCharge();
stop();
Symbol 595 MovieClip Frame 30
_root.gotoAndStop("fail");
Symbol 596 MovieClip Frame 1
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
if (blurX == 0) {
if (blurY == 0) {
this.filters = new Array();
}
}
}
function colorMe(redtarget, greentarget, bluetarget) {
var _local3 = new flash.geom.Transform(this);
var _local2 = _local3.colorTransform;
_local2.redMultiplier = redtarget;
_local2.greenMultiplier = greentarget;
_local2.blueMultiplier = bluetarget;
_local3.colorTransform = _local2;
if (redtarget == 1) {
if (greentarget == 1) {
if (bluetarget == 1) {
_local3 = new flash.geom.Transform(this);
}
}
}
}
function glowMe(glowColor, glowAlpha, glowBlur) {
var _local2 = new flash.filters.GlowFilter(glowColor, glowAlpha, glowBlur, glowBlur, 2, 1);
_local2.quality = 1;
this.filters = [_local2];
if (glowAlpha == 0) {
this.filters = new Array();
}
}
stop();
blurMe(0, 0);
colorMe(1.5, 1.5, 1.5);
Symbol 596 MovieClip Frame 2
blurMe(0, 0);
Symbol 598 MovieClip Frame 1
stop();
_visible = false;
Symbol 602 MovieClip Frame 1
pointText = _root.starPoints * _root.enemyCombo;
Symbol 603 MovieClip Frame 1
stop();
Symbol 603 MovieClip Frame 50
stop();
_visible = false;
Symbol 605 MovieClip Frame 1
pointText = _root.butterPoints * _root.butterflyCombo;
Symbol 606 MovieClip Frame 1
stop();
Symbol 606 MovieClip Frame 50
stop();
_visible = false;
Symbol 608 MovieClip Frame 1
_visible = false;
Symbol 612 MovieClip Frame 151
stop();
Symbol 614 MovieClip Frame 22
stop();
Symbol 616 MovieClip Frame 35
stop();
Symbol 617 MovieClip Frame 55
stop();
Symbol 618 MovieClip Frame 65
stop();
Symbol 619 MovieClip Frame 80
stop();
Symbol 620 MovieClip Frame 1
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
if (blurX == 0) {
if (blurY == 0) {
this.filters = new Array();
}
}
}
function colorMe(redtarget, greentarget, bluetarget) {
var _local3 = new flash.geom.Transform(this);
var _local2 = _local3.colorTransform;
_local2.redMultiplier = redtarget;
_local2.greenMultiplier = greentarget;
_local2.blueMultiplier = bluetarget;
_local3.colorTransform = _local2;
if (redtarget == 1) {
if (greentarget == 1) {
if (bluetarget == 1) {
_local3 = new flash.geom.Transform(this);
}
}
}
}
function glowMe(glowColor, glowAlpha, glowBlur) {
var _local2 = new flash.filters.GlowFilter(glowColor, glowAlpha, glowBlur, glowBlur, 2, 1);
_local2.quality = 1;
this.filters = [_local2];
if (glowAlpha == 0) {
this.filters = new Array();
}
}
stop();
blurMe(0, 0);
colorMe(1.5, 1.5, 1.5);
stop();
Symbol 622 MovieClip Frame 61
_parent.gotoAndStop(4);
Symbol 622 MovieClip Frame 76
stop();
_parent._visible = false;
Symbol 625 MovieClip Frame 1
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
if (blurX == 0) {
if (blurY == 0) {
this.filters = new Array();
}
}
}
function colorMe(redtarget, greentarget, bluetarget) {
var _local3 = new flash.geom.Transform(this);
var _local2 = _local3.colorTransform;
_local2.redMultiplier = redtarget;
_local2.greenMultiplier = greentarget;
_local2.blueMultiplier = bluetarget;
_local3.colorTransform = _local2;
if (redtarget == 1) {
if (greentarget == 1) {
if (bluetarget == 1) {
_local3 = new flash.geom.Transform(this);
}
}
}
}
function glowMe(glowColor, glowAlpha, glowBlur) {
var _local2 = new flash.filters.GlowFilter(glowColor, glowAlpha, glowBlur, glowBlur, 2, 1);
_local2.quality = 3;
this.filters = [_local2];
if (glowAlpha == 0) {
this.filters = new Array();
}
}
gotoAndStop(_root.scoreTurn);
stop();
glowMe(16737535, 0.75, 10);
Symbol 629 MovieClip Frame 1
stop();
Symbol 630 Button
on (keyPress "r") {
_root.HUDscore = 0;
gotoAndStop (2);
}
on (keyPress "R") {
_root.HUDscore = 0;
gotoAndStop (2);
}
Symbol 632 MovieClip Frame 1
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
if (blurX == 0) {
if (blurY == 0) {
this.filters = new Array();
}
}
}
function colorMe(redtarget, greentarget, bluetarget) {
var _local3 = new flash.geom.Transform(this);
var _local2 = _local3.colorTransform;
_local2.redMultiplier = redtarget;
_local2.greenMultiplier = greentarget;
_local2.blueMultiplier = bluetarget;
_local3.colorTransform = _local2;
if (redtarget == 1) {
if (greentarget == 1) {
if (bluetarget == 1) {
_local3 = new flash.geom.Transform(this);
}
}
}
}
function glowMe(glowColor, glowAlpha, glowBlur) {
var _local2 = new flash.filters.GlowFilter(glowColor, glowAlpha, glowBlur, glowBlur, 2, 1);
_local2.quality = 1;
this.filters = [_local2];
if (glowAlpha == 0) {
this.filters = new Array();
}
}
stop();
glowMe(16744627, 0.75, 10);
Symbol 636 MovieClip Frame 1
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
if (blurX == 0) {
if (blurY == 0) {
this.filters = new Array();
}
}
}
function colorMe(redtarget, greentarget, bluetarget) {
var _local3 = new flash.geom.Transform(this);
var _local2 = _local3.colorTransform;
_local2.redMultiplier = redtarget;
_local2.greenMultiplier = greentarget;
_local2.blueMultiplier = bluetarget;
_local3.colorTransform = _local2;
if (redtarget == 1) {
if (greentarget == 1) {
if (bluetarget == 1) {
_local3 = new flash.geom.Transform(this);
}
}
}
}
function glowMe(glowColor, glowAlpha, glowBlur) {
var _local2 = new flash.filters.GlowFilter(glowColor, glowAlpha, glowBlur, glowBlur, 2, 1);
_local2.quality = 1;
this.filters = [_local2];
if (glowAlpha == 0) {
this.filters = new Array();
}
}
stop();
glowMe(16744627, 0.75, 10);
Symbol 638 MovieClip Frame 1
stop();
Symbol 640 MovieClip Frame 31
stop();
Symbol 643 Button
on (keyPress "z") {
if (endOK) {
_root.HUDscore = 0;
if (scoreTurn != 0) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
}
on (keyPress "Z") {
if (endOK) {
_root.HUDscore = 0;
if (scoreTurn != 0) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
}
Symbol 650 MovieClip Frame 1
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
if (blurX == 0) {
if (blurY == 0) {
this.filters = new Array();
}
}
}
function colorMe(redtarget, greentarget, bluetarget) {
var _local3 = new flash.geom.Transform(this);
var _local2 = _local3.colorTransform;
_local2.redMultiplier = redtarget;
_local2.greenMultiplier = greentarget;
_local2.blueMultiplier = bluetarget;
_local3.colorTransform = _local2;
if (redtarget == 1) {
if (greentarget == 1) {
if (bluetarget == 1) {
_local3 = new flash.geom.Transform(this);
}
}
}
}
function glowMe(glowColor, glowAlpha, glowBlur) {
var _local2 = new flash.filters.GlowFilter(glowColor, glowAlpha, glowBlur, glowBlur, 2, 1);
_local2.quality = 3;
this.filters = [_local2];
if (glowAlpha == 0) {
this.filters = new Array();
}
}
stop();
stop();
glowMe(16737535, 0.75, 10);
gotoAndStop(_root.deathStyle);
Symbol 655 MovieClip Frame 1
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
if (blurX == 0) {
if (blurY == 0) {
this.filters = new Array();
}
}
}
function colorMe(redtarget, greentarget, bluetarget) {
var _local3 = new flash.geom.Transform(this);
var _local2 = _local3.colorTransform;
_local2.redMultiplier = redtarget;
_local2.greenMultiplier = greentarget;
_local2.blueMultiplier = bluetarget;
_local3.colorTransform = _local2;
if (redtarget == 1) {
if (greentarget == 1) {
if (bluetarget == 1) {
_local3 = new flash.geom.Transform(this);
}
}
}
}
function glowMe(glowColor, glowAlpha, glowBlur) {
var _local2 = new flash.filters.GlowFilter(glowColor, glowAlpha, glowBlur, glowBlur, 2, 1);
_local2.quality = 3;
this.filters = [_local2];
if (glowAlpha == 0) {
this.filters = new Array();
}
}
stop();
stop();
blurMe(blurStart, blurStart);
glowMe(16737535, 0.75, 10);
Symbol 663 MovieClip Frame 1
stop();
Symbol 663 MovieClip Frame 45
gotoAndPlay (15);
Symbol 665 MovieClip Frame 1
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
if (blurX == 0) {
if (blurY == 0) {
this.filters = new Array();
}
}
}
function colorMe(redtarget, greentarget, bluetarget) {
var _local3 = new flash.geom.Transform(this);
var _local2 = _local3.colorTransform;
_local2.redMultiplier = redtarget;
_local2.greenMultiplier = greentarget;
_local2.blueMultiplier = bluetarget;
_local3.colorTransform = _local2;
if (redtarget == 1) {
if (greentarget == 1) {
if (bluetarget == 1) {
_local3 = new flash.geom.Transform(this);
}
}
}
}
function glowMe(glowColor, glowAlpha, glowBlur) {
var _local2 = new flash.filters.GlowFilter(glowColor, glowAlpha, glowBlur, glowBlur, 2, 1);
_local2.quality = 3;
this.filters = [_local2];
if (glowAlpha == 0) {
this.filters = new Array();
}
}
stop();
glowMe(9510144, 0.75, 30);
Symbol 666 MovieClip Frame 2
_root.loseSound.gotoAndStop(2);
Symbol 666 MovieClip Frame 3
_root.loseSound.gotoAndStop(1);
Symbol 666 MovieClip Frame 47
stop();
Symbol 668 Button
on (release) {
_root.deleteScores();
}
Symbol 669 MovieClip Frame 1
stop();
Symbol 669 MovieClip Frame 41
_root.setHighScores();
Symbol 669 MovieClip Frame 80
stop();
Symbol 671 MovieClip Frame 1
stop();
Symbol 671 MovieClip Frame 30
_root.showFinalScore();
stop();
Symbol 673 MovieClip Frame 1
stop();
Symbol 673 MovieClip Frame 45
gotoAndPlay (15);
Symbol 675 MovieClip Frame 1
stop();
Symbol 675 MovieClip Frame 45
gotoAndPlay (15);
Symbol 677 MovieClip Frame 1
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
if (blurX == 0) {
if (blurY == 0) {
this.filters = new Array();
}
}
}
function colorMe(redtarget, greentarget, bluetarget) {
var _local3 = new flash.geom.Transform(this);
var _local2 = _local3.colorTransform;
_local2.redMultiplier = redtarget;
_local2.greenMultiplier = greentarget;
_local2.blueMultiplier = bluetarget;
_local3.colorTransform = _local2;
if (redtarget == 1) {
if (greentarget == 1) {
if (bluetarget == 1) {
_local3 = new flash.geom.Transform(this);
}
}
}
}
function glowMe(glowColor, glowAlpha, glowBlur) {
var _local2 = new flash.filters.GlowFilter(glowColor, glowAlpha, glowBlur, glowBlur, 2, 1);
_local2.quality = 3;
this.filters = [_local2];
if (glowAlpha == 0) {
this.filters = new Array();
}
}
stop();
glowMe(9510144, 0.75, 30);
Symbol 678 MovieClip Frame 1
stop();
Symbol 678 MovieClip Frame 2
play();
Symbol 678 MovieClip Frame 20
_parent.setScoreScreen();
Symbol 678 MovieClip Frame 35
stop();
_visible = false;
Symbol 682 MovieClip Frame 30
stop();
Symbol 685 MovieClip Frame 1
time = getTimer() / 1000;
thistime = time - oldtime;
if (thistime >= 1) {
fps = frames;
frames = 0;
oldtime++;
} else {
frames++;
}
Symbol 685 MovieClip Frame 2
gotoAndPlay (1);
Symbol 690 MovieClip Frame 1
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
if (blurX == 0) {
if (blurY == 0) {
this.filters = new Array();
}
}
}
function colorMe(redtarget, greentarget, bluetarget) {
var _local3 = new flash.geom.Transform(this);
var _local2 = _local3.colorTransform;
_local2.redMultiplier = redtarget;
_local2.greenMultiplier = greentarget;
_local2.blueMultiplier = bluetarget;
_local3.colorTransform = _local2;
if (redtarget == 1) {
if (greentarget == 1) {
if (bluetarget == 1) {
_local3 = new flash.geom.Transform(this);
}
}
}
}
function glowMe(glowColor, glowAlpha, glowBlur) {
var _local2 = new flash.filters.GlowFilter(glowColor, glowAlpha, glowBlur, glowBlur, 2, 1);
_local2.quality = 3;
this.filters = [_local2];
if (glowAlpha == 0) {
this.filters = new Array();
}
}
stop();
glowMe(9510144, 0.75, 30);