routine_1 = new Array("left","left","left","none","right","right","right","none","up","down","none","none","up","left","right","down","none","upDown","none","none","upLeft","none","upRight","none","upLeft","none","upRight","none","downLeft","downRight","downLeft","downRight","none","leftRight","none","none");
letsDance = function()
{
stepTemplateInit = function()
{
this.bps = _root.bps;
this.bpb = 3;
this.count = 1;
this.startTime = getTimer();
this.pauseTime = 1000 / 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 -= 5;
}
else
{
this._alpha = 0;
this.goNow = false;
}
}
};
var _loc3_ = 1;
while(_loc3_ < 5)
{
this["glow" + _loc3_]._alpha = 0;
this["glow" + _loc3_].onEnterFrame = checkAlpha;
_loc3_ = _loc3_ + 1;
}
};
stepTemplateInit.apply(stepTemplate);
stepTemplate.onEnterFrame = function()
{
if(this.goNow)
{
this.timeNow = getTimer();
this.elapsed = this.timeNow - this.startTime;
if(this.elapsed >= this.pauseTime)
{
var _loc3_ = "step" + this.count;
var _loc2_ = this.attachMovie("step",_loc3_,this.count++);