Frame 1
stop();
Instance of Symbol 14 MovieClip "loader" in Frame 1
onClipEvent (load) {
this._visible = 0;
loadBar._xScale = 0;
loading = function () {
var _local4 = _root.getBytesTotal();
var _local5 = _root.getBytesLoaded();
perc = (_local5 / _local4) * 100;
if (((!perc) > 0) && ((!perc) <= 100)) {
perc = 1;
}
var _local3 = perc - loadBar._xScale;
loadBar._xScale = loadBar._xScale + (_local3 / 10);
if (perc >= 100) {
_parent.play();
}
};
loading();
}
onClipEvent (enterFrame) {
this._visible = 1;
loading();
}
Frame 3
stop();
reset = function () {
leeWayPerfect = 12;
leeWayOK = 25;
scoreHolder.score = 0;
combo = 0;
perfects = 0;
almosts = 0;
comboHi = 0;
bps = 1.149;
pressed = "still";
};
reset();
danceItUp = function () {
mainDancerInit = function () {
this.glide = 4 / _root.bps;
this.moves._alpha = 0;
this.matchTheMove = function (part) {
var _local3 = this.moves[part._name];
part._x = part._x + ((_local3._x - part._x) / this.glide);
part._y = part._y + ((_local3._y - part._y) / this.glide);
part._xscale = part._xscale + ((_local3._xscale - part._xscale) / this.glide);
part._yscale = part._yscale + ((_local3._yscale - part._yscale) / this.glide);
part._rotation = part._rotation + ((_local3._rotation - part._rotation) / this.glide);
part._alpha = part._alpha + ((_local3._alpha - part._alpha) / this.glide);
};
this.bodyParts = [this.hand_l, this.hand_r, this.foot_l, this.foot_r, this.body, this.head, this.shad];
};
mainDancerInit.apply(mainDancer);
mainDancer.onEnterFrame = function () {
for (var _local3 in this.bodyParts) {
this.matchTheMove(this.bodyParts[_local3]);
}
_root.dancin();
};
};
danceItUp();
dancin = function () {
if (Key.isDown(39)) {
mainDancer.moves.gotoAndPlay("right");
_root.pressed = "right";
}
if (Key.isDown(37)) {
mainDancer.moves.gotoAndPlay("left");
_root.pressed = "left";
}
if (Key.isDown(38)) {
mainDancer.moves.gotoAndPlay("up");
_root.pressed = "up";
}
if (Key.isDown(40)) {
mainDancer.moves.gotoAndPlay("down");
_root.pressed = "down";
}
if (Key.isDown(38) && (Key.isDown(39))) {
mainDancer.moves.gotoAndPlay("upRight");
_root.pressed = "upRight";
}
if (Key.isDown(38) && (Key.isDown(37))) {
mainDancer.moves.gotoAndPlay("upLeft");
_root.pressed = "upLeft";
}
if (Key.isDown(40) && (Key.isDown(39))) {
mainDancer.moves.gotoAndPlay("downRight");
_root.pressed = "downRight";
}
if (Key.isDown(40) && (Key.isDown(37))) {
mainDancer.moves.gotoAndPlay("downLeft");
_root.pressed = "downLeft";
}
if (Key.isDown(37) && (Key.isDown(39))) {
mainDancer.moves.gotoAndPlay("leftRight");
_root.pressed = "leftRight";
}
if (Key.isDown(38) && (Key.isDown(40))) {
mainDancer.moves.gotoAndPlay("upDown");
_root.pressed = "upDown";
}
};
routine_1 = new Array("left", "right", "up", "leftUp", "down", "right", "left", "leftRight", "up", "down", "none", "none", "up", "left", "right", "down", "none", "upDown", "downUp", "upRight", "upLeft", "none", "upRight", "none", "upLeft", "none", "upRight", "none", "downLeft", "downRight", "downLeft", "downRight", "none", "leftRight", "none", "left", "right", "upRight", "downRight", "up", "none", "none", "up", "down", "upDown", "upDown", "downUp", "up", "up", "down", "down", "left", "left", "right", "right", "left", "right", "up", "leftUp", "down", "right", "left", "leftRight", "up", "down", "none", "none", "up", "left", "right", "down", "none", "upDown", "downUp", "left", "right", "up", "leftUp", "down", "right", "left", "leftRight", "up", "down", "none", "none", "up", "left", "right", "down", "none", "upDown", "downUp", "upRight", "upLeft", "none", "upRight", "none", "upLeft", "none", "upRight", "none", "downLeft", "downRight", "downLeft", "downRight", "none", "leftRight", "none", "left", "right", "upRight", "downRight", "up", "none", "none", "up", "down", "upDown", "upDown", "downUp", "up", "up", "down", "down", "left", "left", "right", "right", "left", "right", "up", "leftUp", "down", "right", "left", "leftRight", "up", "down", "none", "none", "up", "left", "right", "down", "none", "upDown", "downUp");
letsDance = function () {
stepTemplateInit = function () {
this.bps = _root.bps;
this.bpb = 4;
this.count = 2;
this.startTime = getTimer();
this.pauseTime = 500 / bps;
this.currentRoutine = _root.routine_1;
this.step.goNow = false;
this.stepCount = 0;
_root.score = 0;
this.goNow = true;
checkAlpha = function () {
if (this.goNow) {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
} else {
this._alpha = 0;
this.goNow = false;
}
}
};
var _local3 = 1;
while (_local3 < 5) {
this["glow" + _local3]._alpha = 0;
this["glow" + _local3].onEnterFrame = checkAlpha;
_local3++;
}
};
stepTemplateInit.apply(stepTemplate);
stepTemplate.onEnterFrame = function () {
if (this.goNow) {
this.timeNow = getTimer();
this.elapsed = this.timeNow - this.startTime;
if (this.elapsed >= this.pauseTime) {
var _local3 = "step" + this.count;
var _local2 = this.attachMovie("step", _local3, this.count++);
_local2._y = 100 * this.bpb;
_local2.goNow = true;
_local2._alpha = 5;
if (this.stepCount >= this.currentRoutine.length) {
this.stepCount = 0;
}
this.whatStep = this.currentRoutine[this.stepCount];
_local2.step.gotoAndStop(this.whatStep);
_local2.posi = this.whatStep;
this.stepCount++;
this.startTime = getTimer();
}
}
};
};
letsDance();
Instance of Symbol 38 MovieClip "mainDancer" in Frame 3
onClipEvent (load) {
moves.gotoAndStop("off");
}
Instance of Symbol 38 MovieClip "mainDancer" in Frame 29
onClipEvent (keyUp) {
_root.pressed = "still";
}
Instance of Symbol 86 MovieClip in Frame 29
onClipEvent (load) {
lab._visible = 0;
goNow = true;
}
onClipEvent (enterFrame) {
if (goNow) {
timeLeft._xscale = 100 / ((this._totalframes - 20) / this._currentframe);
}
}
Frame 38
reset();
letsDance();
danceItUp();
stop();
Instance of Symbol 118 MovieClip "sounds" in Frame 38
onClipEvent (load) {
noOfSounds = 5;
this._alpha = 0;
}
Frame 52
stop();
Frame 62
_root.gotoAndStop("SPLASH");
Symbol 7 MovieClip Frame 1
stop();
Instance of Symbol 7 MovieClip "step" in Symbol 8 MovieClip [step] Frame 1
onClipEvent (load) {
incScore = true;
perfect = false;
lab._visible = 0;
startTime = getTimer();
yPos = _parent._y;
turnOn = function () {
for (var _local2 in arguments) {
arguments[_local2]._alpha = 100;
arguments[_local2].goNow = true;
}
};
hitMe = function () {
switch (_parent.posi) {
case "left" :
turnOn(_parent._parent.glow1);
break;
case "right" :
turnOn(_parent._parent.glow4);
break;
case "down" :
turnOn(_parent._parent.glow2);
break;
case "up" :
turnOn(_parent._parent.glow3);
break;
case "upDown" :
turnOn(_parent._parent.glow2, _parent._parent.glow3);
break;
case "upLeft" :
turnOn(_parent._parent.glow1, _parent._parent.glow3);
break;
case "upRight" :
turnOn(_parent._parent.glow4, _parent._parent.glow3);
break;
case "downRight" :
turnOn(_parent._parent.glow2, _parent._parent.glow4);
break;
case "downLeft" :
turnOn(_parent._parent.glow2, _parent._parent.glow1);
break;
case "leftRight" :
turnOn(_parent._parent.glow1, _parent._parent.glow4);
}
};
}
onClipEvent (enterFrame) {
if (_parent.goNow) {
elapsed = getTimer() - startTime;
_parent._y = yPos - ((elapsed / 10) * _parent._parent.bps);
if (_parent._alpha < 100) {
_parent._alpha = _parent._alpha + 5;
}
if (_parent._y <= -90) {
_parent.goNow = false;
_parent.removeMovieClip();
}
if (_parent._y < 5) {
_parent._alpha = _parent._alpha - 7;
}
if ((_parent._y < _root.leeWayPerfect) && (_parent._y > (-_root.leeWayPerfect))) {
hitMe();
}
if (incScore) {
if (((_parent._y < _root.leeWayOK) && (_parent._y > _root.leeWayPerfect)) || ((_parent._y > (-_root.leeWayOK)) && (_parent._y < (-_root.leeWayPerfect)))) {
_root.moveToPull = _parent.posi;
if (_root.pressed == _root.moveToPull) {
_root.scoreHolder.score++;
_root.score++;
_root.accuracy.gotoAndPlay("ok");
_root.combo = 0;
perfect = false;
incScore = false;
}
} else if ((_parent._y < _root.leeWayPerfect) && (_parent._y > (-_root.leeWayPerfect))) {
if (_root.pressed == _root.moveToPull) {
howClose = Math.round(_parent._y);
if (howClose < 0) {
howClose = howClose * -1;
}
tempScore = (_root.leeWayPerfect - howClose) + 3;
if (_root.combo == 0) {
_root.scoreHolder.score = _root.scoreHolder.score + tempScore;
_root.score = _root.score + tempScore;
} else if (_root.combo > 0) {
_root.scoreHolder.score = _root.scoreHolder.score + (tempScore * _root.combo);
_root.score = _root.score + (tempScore * _root.combo);
}
_root.accuracy.gotoAndPlay("great");
_root.combo++;
if (_root.comboHi < _root.combo) {
_root.comboHi = _root.combo;
}
soundToPlay = Math.floor(Math.random() * _root.sounds.noOfSounds) + 1;
_root.sounds.gotoAndPlay("snd" + soundToPlay);
perfect = true;
incScore = false;
}
}
}
if (((_parent._y <= (-_root.leeWayPerfect)) && (!perfect)) && (_parent.posi != "none")) {
_root.combo = 0;
}
}
}
Symbol 33 MovieClip Frame 33
gotoAndPlay ("off");
Symbol 33 MovieClip Frame 47
gotoAndPlay ("off");
Symbol 33 MovieClip Frame 55
gotoAndPlay ("off");
Symbol 33 MovieClip Frame 63
gotoAndPlay ("off");
Symbol 33 MovieClip Frame 71
gotoAndPlay ("off");
Symbol 33 MovieClip Frame 79
gotoAndPlay ("off");
Symbol 33 MovieClip Frame 87
gotoAndPlay ("off");
Symbol 33 MovieClip Frame 95
gotoAndPlay ("off");
Symbol 33 MovieClip Frame 103
gotoAndPlay ("off");
Symbol 33 MovieClip Frame 111
gotoAndPlay ("off");
Symbol 33 MovieClip Frame 119
gotoAndPlay ("off");
Instance of Symbol 41 MovieClip "glow1" in Symbol 42 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (goNow == true) {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
} else {
goNow = false;
}
}
}
Instance of Symbol 41 MovieClip "glow2" in Symbol 42 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (goNow == true) {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
} else {
goNow = false;
}
}
}
Instance of Symbol 41 MovieClip "glow3" in Symbol 42 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (goNow == true) {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
} else {
goNow = false;
}
}
}
Instance of Symbol 41 MovieClip "glow4" in Symbol 42 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (goNow == true) {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
} else {
goNow = false;
}
}
}
Symbol 64 Button
on (release) {
_root.play();
}
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 10
_root.perfects++;
Symbol 75 MovieClip Frame 29
gotoAndStop (1);
Symbol 75 MovieClip Frame 30
_root.almosts++;
Symbol 75 MovieClip Frame 49
gotoAndStop (1);
Symbol 86 MovieClip Frame 2246
stop();
_root.play();
Symbol 86 MovieClip Frame 2247
_root.stepTemplate.goNow = false;
Symbol 86 MovieClip Frame 2271
goNow = false;
Symbol 94 Button
on (release) {
getURL ("http://www.locklegion.com", "_blank");
}
Symbol 102 Button
on (release) {
play();
}
Symbol 104 Button
on (release) {
gotoAndStop ("P2");
}
Symbol 108 Button
on (release) {
gotoAndStop ("P1");
}
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 7
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 15
stop();
Symbol 111 MovieClip Frame 29
gotoAndStop (1);
Symbol 111 MovieClip Frame 30
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 19
gotoAndStop ("off");
Symbol 118 MovieClip Frame 29
gotoAndStop ("off");
Symbol 118 MovieClip Frame 39
gotoAndStop ("off");
Symbol 118 MovieClip Frame 49
gotoAndStop ("off");
Symbol 118 MovieClip Frame 59
gotoAndStop ("off");
Symbol 123 MovieClip Frame 69
stop();
Symbol 126 Button
on (release) {
_root.play();
}