Frame 1
function load(url) {
var _local3 = createEmptyMovieClip("loader_mc", getNextHighestDepth());
var _local2 = new MovieClipLoader();
_local2.addListener(this);
_local2.loadClip(url, _local3);
}
function onLoadInit(mc) {
_root.g_loaded = true;
_root.gotoAndStop(2);
}
stop();
Player.initStateMachine();
ShootObject.initStateMachine();
g_isDev = System.capabilities.isDebugger;
g_mtvnGSPath = "gs1.swf";
gs_sendToFriend = null;
gs_gameTracking = null;
gs_scoreSubmit = null;
_root.g_loaded = false;
if (!g_loaded) {
var pathToGSSwf = "";
if (!g_isDev) {
pathToGSSwf = "/modules/";
}
pathToGSSwf = pathToGSSwf + g_mtvnGSPath;
load(pathToGSSwf);
}
Frame 3
mTransition.gotoAndPlay(2);
Frame 14
mTransition.gotoAndPlay(2);
Frame 23
mTransition.gotoAndPlay(2);
Frame 35
mTransition.gotoAndPlay(2);
Symbol 42 MovieClip Frame 1
stop();
Symbol 219 MovieClip [__Packages.tinymantis.GameObject] Frame 0
class tinymantis.GameObject
{
function GameObject (className) {
mClassName = className;
}
function gotoState(inState) {
if (mStateMachineMap == null) {
mStateMachineMap = new Array();
}
var _local2 = sStateMap[mClassName][inState];
if (!mStateMachineMap[_local2]) {
mStateMachineMap[_local2] = new tinymantis.StateMachine(this);
}
mStateMachineMap[_local2].setState(inState);
}
function isInState(inState) {
var _local2 = 0;
var _local3 = mStateMachineMap.length;
while (_local2 < _local3) {
if (mStateMachineMap[_local2].mCurrState == inState) {
return(true);
}
_local2++;
}
return(false);
}
function update() {
var _local2 = 0;
var _local3 = mStateMachineMap.length;
while (_local2 < _local3) {
if (mStateMachineMap[_local2]) {
mStateMachineMap[_local2].update();
}
_local2++;
}
}
static function buildStateGroup(inClassName, inStateGroup, inGroupIndex) {
if (typeof(sStateMap[inClassName]) == "undefined") {
sStateMap[inClassName] = new Object();
}
var _local1 = 0;
while (_local1 < inStateGroup.length) {
sStateMap[inClassName][inStateGroup[_local1]] = inGroupIndex;
_local1++;
}
}
var mStateMachineMap = null;
var mClassName = "";
var mStateParam = null;
static var sStateMap = new Object();
}
Symbol 220 MovieClip [__Packages.tinymantis.StateMachine] Frame 0
class tinymantis.StateMachine
{
function StateMachine (inParent) {
mParent = inParent;
}
function resetState() {
mParent[mCurrState + "_exit"]();
mCurrState = (mNextState = null);
}
function setState(inState) {
mNextState = inState;
}
function update() {
if (mNextState) {
mParent[mCurrState + "_exit"]();
mCurrState = mNextState;
mNextState = null;
mParent[mCurrState + "_enter"]();
}
if (mCurrState != null) {
mParent[mCurrState + "_update"]();
}
}
var mParent = null;
var mNextState = null;
var mCurrState = null;
}
Symbol 221 MovieClip [__Packages.Player] Frame 0
class Player extends tinymantis.GameObject
{
var pMovieClip, pBandClip, pAngleInterval, pNumGuitars, pMouseDown, gotoState, pSpinSoundChannel, isInState, pTimer;
function Player (clip) {
super("Player");
pMovieClip = clip;
pBandClip = pMovieClip.mBand;
pAngleInterval = 0.392699081698724;
pNumGuitars = 2;
pMouseDown = false;
pMovieClip.onMouseDown = tinymantis.Delegate.create(this, onMouseDown);
pMovieClip.onMouseUp = tinymantis.Delegate.create(this, onMouseUp);
showGuitar(0, true);
showGuitar(1, true);
gotoState("spin");
}
function destroy() {
if (pSpinSoundChannel >= 0) {
pSpinSoundChannel = tinymantis.SoundManager.__get__sSingleton().stopSound(pSpinSoundChannel);
}
pMovieClip.onMouseDown = null;
pMovieClip.onMouseUp = null;
delete pMovieClip.onMouseDown;
delete pMovieClip.onMouseUp;
}
function getNumGuitars() {
return(pNumGuitars);
}
function getGuitarPlayer(index) {
return(pBandClip["mP" + index]);
}
function getMouseAngle() {
var _local4 = pMovieClip._xmouse - 80;
var _local3 = pMovieClip._ymouse - 35;
var _local2 = Math.atan2(-_local3, _local4);
if (_local2 < 0) {
_local2 = _local2 + (Math.PI*2);
}
return(_local2);
}
function onMouseDown() {
pMouseDown = true;
}
function onMouseUp() {
pMouseDown = false;
}
function showGuitar(playIndex, show) {
var _local2 = getGuitarPlayer(playIndex);
_local2.mBeard._visible = show;
_local2.mGuitar._visible = show;
}
function updateNumGuitars() {
if (pNumGuitars < 2) {
showGuitar(0, false);
if (pNumGuitars < 1) {
showGuitar(1, false);
}
}
}
function checkAngleFrame(target, mine) {
var _local1 = Math.abs(target - mine);
if ((_local1 <= 1) || (_local1 == 15)) {
return(true);
}
return(false);
}
function spinhit(obj) {
if (isInState("hit") || (pNumGuitars == 0)) {
return("");
}
var _local2 = checkAngleFrame(obj.getDirectionFrame(), pBandClip._currentframe);
if ((!_local2) && (pNumGuitars == 2)) {
var _local3 = pBandClip._currentframe + 8;
if (_local3 > 16) {
_local3 = _local3 - 16;
}
if (checkAngleFrame(obj.getDirectionFrame(), _local3)) {
_local2 = true;
}
}
if (_local2) {
if (isInState("guitar")) {
return("away");
}
}
return("");
}
function spin_mouse_control() {
var _local4 = getMouseAngle();
var _local2 = Math.round(_local4 / pAngleInterval) + 1;
if (_local2 > 16) {
_local2 = _local2 - 16;
}
var _local3 = _local2 - pBandClip._currentframe;
var _local5 = Math.abs(_local3);
if (_local3) {
if (_local5 > 8) {
_local3 = -_local3;
}
_local2 = pBandClip._currentframe + ((_local3 > 0) ? 1 : -1);
if (_local2 < 1) {
_local2 = _local2 + 16;
} else if (_local2 > 16) {
_local2 = _local2 - 16;
}
pBandClip.gotoAndStop(_local2);
updateNumGuitars();
if ((pSpinSoundChannel < 0) && (getNumGuitars())) {
pSpinSoundChannel = tinymantis.SoundManager.__get__sSingleton().playSound("G_walk", true);
}
} else if (pSpinSoundChannel >= 0) {
pSpinSoundChannel = tinymantis.SoundManager.__get__sSingleton().stopSound(pSpinSoundChannel);
}
}
function spin_enter() {
spin_mouse_control();
pMovieClip.gotoAndStop("normal");
getGuitarPlayer(0).gotoAndStop("stand");
getGuitarPlayer(1).gotoAndStop("stand");
if (pSpinSoundChannel >= 0) {
pSpinSoundChannel = tinymantis.SoundManager.__get__sSingleton().stopSound(pSpinSoundChannel);
}
Game.singleton.setMeter(0);
updateNumGuitars();
}
function spin_update() {
spin_mouse_control();
getGuitarPlayer(0).gotoAndStop("stand");
getGuitarPlayer(1).gotoAndStop("stand");
if (pMouseDown) {
gotoState("charge");
}
}
function spin_exit() {
if (pSpinSoundChannel >= 0) {
pSpinSoundChannel = tinymantis.SoundManager.__get__sSingleton().stopSound(pSpinSoundChannel);
}
}
function hit_enter() {
pMovieClip.gotoAndStop("hit");
getGuitarPlayer(0).gotoAndStop("stand");
getGuitarPlayer(1).gotoAndStop("stand");
pTimer = 0;
updateNumGuitars();
Game.singleton.setMeter(0);
tinymantis.SoundManager.__get__sSingleton().playSound("G_loselife", false);
}
function hit_update() {
pTimer++;
if (pTimer > 3) {
if (pNumGuitars == 0) {
if (Game.singleton.loseLive()) {
gotoState("lostlife");
} else {
gotoState("gameover");
}
} else {
pNumGuitars = Math.max(0, pNumGuitars - 1);
gotoState("spin");
}
}
}
function charge_enter() {
pMovieClip.gotoAndPlay("charge");
updateNumGuitars();
pTimer = 0;
}
function charge_update() {
pTimer = Math.min(pTimer + 1, pChargeMax);
Game.singleton.setMeter(pTimer / pChargeMax);
if (pTimer == pChargeMax) {
gotoState("superspin");
}
if (!pMouseDown) {
gotoState("guitar");
}
}
function superspin_enter() {
pMovieClip.gotoAndStop("superspin");
pTimer = pChargeMax + 30;
Game.singleton.getRoot().mTopClip.gotoAndPlay("flashing");
}
function superspin_update() {
pTimer--;
Game.singleton.setMeter(pTimer / pChargeMax);
if (pTimer <= 0) {
Game.singleton.getRoot().mTopClip.gotoAndStop("still");
gotoState("spin");
}
var _local3 = Game.singleton.getObjectManager().getObjectsInDistance(200);
var _local2 = 0;
while (_local2 < _local3.length) {
_local3[_local2].gotoState("away");
_local2++;
}
}
function guitar_enter() {
pMovieClip.gotoAndStop("normal");
updateNumGuitars();
if (pNumGuitars > 1) {
getGuitarPlayer(0).gotoAndPlay("guitarspin");
}
if (pNumGuitars > 0) {
getGuitarPlayer(1).gotoAndPlay("guitarspin");
}
if (pTimer > 20) {
tinymantis.SoundManager.__get__sSingleton().playSound("ZZ_spinguitar_big", false);
} else {
tinymantis.SoundManager.__get__sSingleton().playSound("ZZ_spinguitar", false);
}
}
function guitar_update() {
if ((--pTimer) <= 0) {
gotoState("spin");
}
Game.singleton.setMeter(pTimer / pChargeMax);
spin_mouse_control();
}
function lostlife_enter() {
Game.singleton.getRoot().mLostBeardMsg.gotoAndPlay(2);
}
function lostlife_update() {
if (Game.singleton.getRoot().mLostBeardMsg._currentframe == 1) {
_root.mTransition.play();
gotoState("spin");
Game.singleton.getObjectManager().__set__running(true);
}
}
function lostlife_exit() {
pNumGuitars = 2;
showGuitar(0, true);
showGuitar(1, true);
}
function gameover_enter() {
Game.singleton.getRoot().mGameOverMsg.gotoAndPlay(2);
}
function gameover_update() {
if (Game.singleton.getRoot().mGameOverMsg._currentframe == 1) {
Game.singleton.gameover();
}
}
static function initStateMachine() {
tinymantis.GameObject.buildStateGroup("Player", new Array("spin", "guitar", "charge", "superspin", "hit", "lostlife", "gameover"), 0);
}
var pChargeMax = 100;
}
Symbol 222 MovieClip [__Packages.tinymantis.Delegate] Frame 0
class tinymantis.Delegate
{
function Delegate () {
}
static function create(target, handler) {
var extraArgs = arguments.slice(2);
var delegate;
delegate = function () {
var _local2 = arguments.concat(extraArgs, [delegate]);
return(handler.apply(target, _local2));
};
return(delegate);
}
}
Symbol 223 MovieClip [__Packages.tinymantis.SoundManager] Frame 0
class tinymantis.SoundManager
{
static var _sSingleton;
function SoundManager (inNumChannels) {
var _local2 = 0;
while (_local2 < inNumChannels) {
addSound();
_local2++;
}
}
static function get sSingleton() {
if (_sSingleton == undefined) {
_sSingleton = new tinymantis.SoundManager(20);
}
return(_sSingleton);
}
function isChannelPlaying(index) {
if ((index >= 0) && (index < mSoundIsPlaying.length)) {
return(mSoundIsPlaying[index]);
}
return(false);
}
function playSound(inSoundName, loop) {
var _local3 = -1;
var _local2 = 0;
while (_local2 < mSoundIsPlaying.length) {
if (!mSoundIsPlaying[_local2]) {
mSoundIsPlaying[_local2] = true;
_local3 = _local2;
break;
}
_local2++;
}
if (_local3 != -1) {
var _local4 = mSoundPool[_local3];
_local4.attachSound(inSoundName);
if (_local4 == undefined) {
throw new Error("there is no sound at index" + _local3);
}
if (loop) {
_local4.start(0, 100000);
} else {
_local4.start();
}
_local4.setVolume(100);
} else {
throw new Error("Not enough sound channels!!! Increase the number of channels");
}
return(_local3);
}
function stopSound(inIndex) {
var _local2 = mSoundPool[inIndex];
if (_local2 == undefined) {
} else {
_local2.stop();
freeSound(inIndex);
}
return(-1);
}
function freeSound(inIndex) {
mSoundIsPlaying[inIndex] = false;
}
function setVolume(inIndex, inVolume) {
var _local2 = mSoundPool[inIndex];
if (_local2 == undefined) {
throw new Error("there is no sound at index" + inIndex);
}
_local2.setVolume(inVolume);
}
function addSound() {
var _local4 = _root.createEmptyMovieClip("sm" + mCounter, _root.getNextHighestDepth());
var _local3 = new Sound(_local4);
_local3.index = mSoundPool.length;
_local3.onSoundComplete = function () {
tinymantis.SoundManager.__get__sSingleton().freeSound(this.index);
};
mSoundPool.push(_local3);
mSoundParentPool.push(_local4);
mSoundIsPlaying.push(false);
mCounter++;
}
var mSoundPool = new Array();
var mSoundParentPool = new Array();
var mSoundIsPlaying = new Array();
var mCounter = 100000;
}
Symbol 224 MovieClip [__Packages.ShootObject] Frame 0
class ShootObject extends tinymantis.GameObject
{
var pMovieClip, gotoState, pDirectionFrame, pSpeed, pDistance, pDirection, mAlive;
function ShootObject (parent) {
super("ShootObject");
pMovieClip = parent.attachMovie("lib_object", "obj" + sIndex, parent.getNextHighestDepth());
sIndex++;
gotoState("fly");
pDirectionFrame = Math.floor(Math.random() * 16) + 1;
var _local3 = (pDirectionFrame * Math.PI) / 8;
pDirectionFrame = 17 - pDirectionFrame;
pSpeed = 2 + Math.floor(Math.random() * 2);
pDistance = 352;
pDirection = new flash.geom.Point(-Math.cos(_local3), -Math.sin(_local3));
pMovieClip._x = (-pDistance) * pDirection.x;
pMovieClip._y = (-pDistance) * pDirection.y;
pMovieClip.gotoAndStop(Math.floor(Math.random() * pMovieClip._totalframes) + 1);
mAlive = true;
}
function getDistance() {
return(pDistance);
}
function getDirectionFrame() {
return(pDirectionFrame);
}
function getClip() {
return(pMovieClip);
}
function fly_enter() {
}
function fly_update() {
pDistance = pDistance - pSpeed;
pMovieClip._x = pMovieClip._x + (pDirection.x * pSpeed);
pMovieClip._y = pMovieClip._y + (pDirection.y * pSpeed);
if (pDistance < 45) {
if (mAlive) {
Game.singleton.getPlayer().gotoState("hit");
}
gotoState("disappear");
} else if (pDistance < 100) {
if (!(Game.singleton.getPlayer().spinhit(this) === "away")) {
} else {
tinymantis.SoundManager.__get__sSingleton().playSound("G_hitbyenemy_alt", false);
gotoState("away");
}
}
}
function disappear_enter() {
mAlive = false;
pMovieClip.removeMovieClip();
}
function away_enter() {
Game.singleton.getRoot().mScoreUp.gotoAndPlay(2);
Game.singleton.setScore(Game.singleton.getScore() + 500);
var _local2 = Math.atan2(-pDirection.y, -pDirection.x);
_local2 = _local2 + ((Math.random() * 0.2) * ((Math.random() > 0.5) ? 1 : -1));
pDirection.x = Math.cos(_local2);
pDirection.y = Math.sin(_local2);
pSpeed = 6;
}
function away_update() {
pDistance = pDistance + pSpeed;
pMovieClip._x = pMovieClip._x + (pDirection.x * pSpeed);
pMovieClip._y = pMovieClip._y + (pDirection.y * pSpeed);
if (pDistance > 360) {
gotoState("disappear");
}
}
static function initStateMachine() {
tinymantis.GameObject.buildStateGroup("ShootObject", new Array("fly", "away", "disappear"), 0);
}
static var sIndex = 0;
}
Symbol 225 MovieClip [__Packages.Game] Frame 0
class Game
{
static var singleton;
var pRoot, pObjectManager, pPlayer, pDelayTimer, pLives, pMusicChannel, pScore;
function Game (root) {
singleton = this;
pRoot = root;
pRoot.onEnterFrame = tinymantis.Delegate.create(this, update);
restart();
}
function getRoot() {
return(pRoot);
}
function getObjectManager() {
return(pObjectManager);
}
function setMeter(percent) {
if (percent > 1) {
percent = 1;
}
var _local2 = pRoot.mMeter;
_local2.gotoAndStop(1 + Math.round((_local2._totalframes - 1) * (1 - percent)));
}
function restart() {
if (pObjectManager) {
pObjectManager.destroy();
}
if (pPlayer) {
pPlayer.destroy();
}
pPlayer = new Player(pRoot.mPlayer);
pObjectManager = new ObjectManager(pRoot);
setScore(0);
pDelayTimer = 0;
pLives = 3;
pObjectManager.__set__running(true);
updateNumLives();
pMusicChannel = tinymantis.SoundManager.__get__sSingleton().playSound("zztopmusic", true);
}
function getPlayer() {
return(pPlayer);
}
function update() {
if (pLives > 0) {
pObjectManager.update();
}
pPlayer.update();
}
function loseLive() {
pObjectManager.__set__running(false);
pLives--;
updateNumLives();
pObjectManager.emptyObjects();
return(pLives > 0);
}
function gameover() {
if (pMusicChannel >= 0) {
pMusicChannel = tinymantis.SoundManager.__get__sSingleton().stopSound(pMusicChannel);
}
pObjectManager.destroy();
pPlayer.destroy();
pRoot.onEnterFrame = null;
delete pRoot.onEnterFrame;
_root.gScore = pScore;
_root.gotoAndStop("scores");
singleton = null;
}
function updateNumLives() {
pRoot.mNumGuitars.text = "X" + pLives;
}
function getScore() {
return(pScore);
}
function setScore(score) {
var _local8 = pScore;
pScore = score;
var _local4 = 0;
while (_local4 < p1upScores.length) {
var _local6 = p1upScores[_local4];
if ((_local8 < _local6) && (pScore >= _local6)) {
if (pLives < 9) {
pLives++;
updateNumLives();
}
}
_local4++;
}
var _local5 = "0";
if (pScore > 0) {
_local5 = "";
while (score > 0) {
var _local7 = score % 1000;
score = Math.floor(score / 1000);
var _local2 = _local7.toString();
if (score > 0) {
while (_local2.length < 3) {
_local2 = _local2 + "0";
}
_local5 = ("," + _local2) + _local5;
} else {
_local5 = _local2 + _local5;
}
}
}
pRoot.mScore.text = _local5;
}
var p1upScores = [10000, 50000, 100000];
}
Symbol 226 MovieClip [__Packages.ObjectManager] Frame 0
class ObjectManager
{
var pObjectRoot, pObjects, pShootInterval, pShootTimer, pLevelInterval, pLevelTimer, pRunning, __get__running;
function ObjectManager (root) {
pObjectRoot = root.mObjectRoot;
pObjects = new Array();
pShootInterval = 60;
pShootTimer = 0;
pLevelInterval = 300;
pLevelTimer = 0;
pRunning = false;
}
function getObjectsInDistance(distance) {
var _local4 = new Array();
var _local3 = 0;
while (_local3 < pObjects.length) {
var _local2 = pObjects[_local3];
if (_local2.isInState("fly") && (_local2.getDistance() < distance)) {
_local4.push(_local2);
}
_local3++;
}
return(_local4);
}
function emptyObjects() {
var _local4 = pObjects.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = pObjects[_local2];
_local3.disappear_enter();
_local2++;
}
return(_local4);
}
function set running(run) {
pRunning = run;
//return(__get__running());
}
function destroy() {
var _local2 = 0;
while (_local2 < pObjects.length) {
var _local3 = pObjects[_local2];
_local3.disappear_enter();
_local2++;
}
pObjects = null;
}
function update() {
if (pRunning) {
pShootTimer++;
if (pShootTimer >= pShootInterval) {
pShootTimer = 0;
pObjects.push(new ShootObject(pObjectRoot));
}
var _local2 = 0;
while (_local2 < pObjects.length) {
var _local3 = pObjects[_local2];
_local3.update();
if (!_local3.mAlive) {
pObjects[_local2] = pObjects[pObjects.length - 1];
pObjects.pop();
_local2--;
}
_local2++;
}
pLevelTimer++;
if (pLevelTimer >= pLevelInterval) {
pLevelTimer = 0;
pShootInterval = Math.max(30, pShootInterval - 5);
}
}
}
}
Symbol 227 MovieClip [__Packages.ScoreBoard] Frame 0
class ScoreBoard
{
static var singleton;
var pMovieClip, pMyName, pMyScore;
function ScoreBoard (clip) {
singleton = this;
pMovieClip = clip;
pMovieClip.mInputs.maxChars = 3;
pMovieClip.mInputs.restrict = "A-Z";
pMyName = "";
pMyScore = 0;
Key.addListener(this);
}
function onKeyDown() {
var _local2 = Key.getCode();
var _local3 = pMovieClip.mInputs;
if (((_local2 == 8) || (_local2 == 46)) || (_local2 == 37)) {
if (_local3.text.length > 0) {
_local3.text = _local3.text.substr(0, _local3.text.length - 1);
}
} else if (_local3.text.length < 3) {
var _local4 = "AZ";
if ((_local2 >= _local4.charCodeAt(0)) && (_local2 <= _local4.charCodeAt(1))) {
_local3.text = _local3.text + String.fromCharCode(_local2);
}
}
}
function showLeaderboard() {
var _local3 = 0;
while (_local3 < 10) {
var _local4 = pMovieClip["mItem" + _local3];
_local4._visible = false;
_local3++;
}
var _local5 = new GSScoreSubmit(tinymantis.Delegate.create(this, scoreSubmitCallback));
submitAndGetScores(_root.gScore, _root.gName, 10);
}
function submitAndGetScores(score, pname, numScores) {
pMyName = pname;
pMyScore = score;
var _local3 = _root.game_id;
if (_local3 > 0) {
var _local4 = GSScoreSubmit.setGameId(_local3);
if (!_local4) {
}
}
GSScoreSubmit.unauthSubmitScoreGetScores(score, score, "", pname, 1, numScores);
}
function scoreSubmitCallback(gsResponseInfo, whichCommand) {
if (gsResponseInfo.isError()) {
}
if (gsResponseInfo.isError()) {
} else {
var _local9 = gsResponseInfo.success;
if (whichCommand.indexOf("SetUserScore") != -1) {
if (_local9) {
var _local10 = gsResponseInfo.message;
if (_local10 == "UNCHANGED") {
}
}
}
if (_local9 && ((whichCommand.indexOf("GetScore") != -1) || (whichCommand.indexOf("ScoreRanks") != -1))) {
var _local6 = gsResponseInfo.results;
var _local2 = 0;
while (_local2 < 10) {
if (_local2 < _local6.length) {
var _local5 = 0;
var _local4 = _local6[_local2].user_name;
var _local3 = parseInt(_local6[_local2].score);
if ((_local4 == pMyName) && (_local3 == pMyScore)) {
_local5 = 4778556 /* 0x48EA3C */;
}
setScoreItem(_local2, _local4, _local3, _local5);
} else {
setScoreItem(_local2, "", 0, 0);
}
_local2++;
}
}
}
}
function setScoreItem(index, pname, pscore, pcolor) {
var _local2 = pMovieClip["mItem" + index];
if (pname.length > 0) {
_local2.mName.text = pname.substr(0, 3).toUpperCase();
_local2.mScore.text = getScoreString(pscore);
_local2.mName.textColor = (_local2.mStars.textColor = (_local2.mScore.textColor = pcolor));
_local2._y = pMovieClip.mItem0._y + (index * 16.6);
_local2._visible = true;
} else {
_local2._visible = false;
}
}
function getScoreString(score) {
var _local3 = "";
while (score > 0) {
var _local4 = score % 1000;
score = Math.floor(score / 1000);
var _local1 = _local4.toString();
if (score > 0) {
while (_local1.length < 3) {
_local1 = _local1 + "0";
}
_local3 = ("," + _local1) + _local3;
} else {
_local3 = _local1 + _local3;
}
}
if (_local3.length == 0) {
_local3 = "0";
}
return(_local3);
}
}
Symbol 49 Button
on (release) {
gotoAndStop ("help");
}
Symbol 51 MovieClip Frame 1
stop();
Symbol 59 Button
on (release) {
gotoAndStop ("game");
}
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 18
stop();
Symbol 92 MovieClip Frame 1
stop();
if (Game.singleton) {
var player = Game.singleton.getPlayer();
if (player.getNumGuitars() < 1) {
mGuitar._visible = false;
} else {
mGuitar._visible = true;
if (player.isInState("guitar")) {
gotoAndPlay ("guitarspin");
}
}
} else {
mGuitar._visible = true;
}
Symbol 92 MovieClip Frame 5
var player = Game.singleton.getPlayer();
if (player.getNumGuitars() < 1) {
mGuitar._visible = false;
} else {
mGuitar._visible = true;
if (player.isInState("guitar")) {
gotoAndPlay ("guitarspin");
}
}
Symbol 92 MovieClip Frame 23
gotoAndPlay ("guitarspin");
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 18
stop();
Symbol 101 MovieClip Frame 1
stop();
if (Game.singleton) {
var player = Game.singleton.getPlayer();
if (player.getNumGuitars() < 2) {
mGuitar._visible = false;
} else {
mGuitar._visible = true;
if (player.isInState("guitar")) {
gotoAndPlay ("guitarspin");
}
}
} else {
mGuitar._visible = true;
}
Symbol 101 MovieClip Frame 5
var player = Game.singleton.getPlayer();
if (player.getNumGuitars() < 2) {
mGuitar._visible = false;
} else {
mGuitar._visible = true;
if (player.isInState("guitar")) {
gotoAndPlay ("guitarspin");
}
}
Symbol 101 MovieClip Frame 23
gotoAndPlay ("guitarspin");
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 18
stop();
Symbol 109 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 1
if (Game.singleton.getPlayer().getNumGuitars() < 1) {
mGuitar._visible = false;
mBeard._visible = false;
stop();
}
Symbol 116 MovieClip Frame 23
gotoAndPlay ("guitarspin");
Symbol 119 MovieClip Frame 1
if (Game.singleton.getPlayer().getNumGuitars() < 2) {
mGuitar._visible = false;
mBeard._visible = false;
stop();
}
Symbol 119 MovieClip Frame 23
gotoAndPlay ("guitarspin");
Symbol 128 MovieClip Frame 49
gotoAndPlay ("superspin");
Symbol 129 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 28
gotoAndPlay ("charge");
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 21
gotoAndPlay ("flashing");
Symbol 160 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 1
mPlayer.gotoAndStop("normal");
Symbol 171 MovieClip Frame 2
mPlayer.mBand.gotoAndStop(1);
Symbol 171 MovieClip Frame 3
mPlayer.mBand.mP0.gotoAndStop("stand");
mPlayer.mBand.mP1.gotoAndStop("stand");
mPlayer.mBand.mMidGuy.mBeard._visible = true;
Symbol 171 MovieClip Frame 80
stop();
var game = new Game(this);
Symbol 202 Button
on (release) {
if (mInputs.text.length == 3) {
_root.gName = mInputs.text;
play();
}
}
Symbol 210 Button
on (release) {
_root.gotoAndStop("restart");
}
Symbol 218 MovieClip Frame 1
stop();
var scoreboard = new ScoreBoard(this);
Instance of Symbol 204 MovieClip in Symbol 218 MovieClip Frame 1
onClipEvent (enterFrame) {
var len = _parent.mInputs.text.length;
if (len >= 3) {
this._visible = false;
} else {
this._visible = true;
this._x = -40 + (28 * len);
}
}
Symbol 218 MovieClip Frame 8
stop();
ScoreBoard.singleton.showLeaderboard();