Frame 1
_root.KeyboardAccessibility.SetState("Active");
_root.Localizer.Loc(_root.pause_txt, "pausebutton_pause");
_root.blitzen._visible = false;
function IntRand(range) {
return(Math.floor(Math.random() * range));
}
function CloneArray(refArray, excludeObject) {
var _local2 = refArray;
var _local3 = new Array();
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1] == excludeObject) {
} else {
_local3.push(_local2[_local1]);
}
_local1++;
}
return(_local3);
}
function ArrayContains(refArray, element) {
var _local2 = refArray;
var _local3 = element;
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1] == _local3) {
return(true);
}
_local1++;
}
return(false);
}
function DoThink() {
var _local2;
var _local1;
var _local3 = _root._PA;
_local2 = 0;
while ((_local2 < _root.ThinkList.length) && (_local3 > 0)) {
_local1 = _root.ThinkList[_local2];
if (_local1.think != null) {
_local1.think(_local1);
_local3--;
}
_local2++;
}
}
function Think_Init() {
var _local1 = _root;
_local1._PA = 0;
if (_local1.ThinkList == null) {
_local1.ThinkList = new Array();
}
}
function Think_Add(o, fn, flags) {
var _local1 = o;
if (_local1._flags == 0) {
_root._PA++;
}
_local1._flags = flags;
_local1.think = fn;
_local1.onEnterFrame = null;
}
function Think_Remove(o, flags) {
var _local1 = o;
var _local2 = _root;
_local1._flags = flags;
_local1.think = null;
_local1.onEnterFrame = null;
_local2._PA--;
if (_local2._PA <= 0) {
_local2._PA = 0;
}
}
function GeneratePieceColor(piece) {
var _local1 = piece;
var _local2 = _local1.piece.lock._currentframe;
if (_local2 == undefined) {
_local2 = 1;
}
Stats.Pieces++;
_local1.fBomb = false;
_local1.fBonus = false;
if (_local1.FlowerType == 0) {
if (_GameType == GT.Survival) {
if (!_local1.hidden) {
_local1.locked = false;
_local1.Color = IntRand(_SurvivalSettings[_Level].colors) + 1;
} else {
_local1.Color = IntRand(-1000) - 1;
_local1.gotoAndStop("Hidden");
_local1.piece.lock.gotoAndStop(_local2);
return;
}
} else {
_local1.Color = IntRand(_Settings[_Level].colors) + 1;
}
_local1.gotoAndStop(_local1.Color);
_local1.piece.glow._visible = false;
_local1.piece.glow2._visible = false;
if (((_GameType != GT.Survival) && (_BombFreq <= 0)) && (_BombGrace <= 0)) {
if (_GameType == GT.Survival) {
_BombFreq = _BombFreq + _SurvivalSettings[_Level].bombfreq;
} else {
_BombFreq = _BombFreq + _Settings[_Level].bombfreq;
}
_local1.fBomb = true;
_local1.piece.gotoAndStop("Bomb");
BombList_Add(_local1, false);
} else {
if (_GameType == GT.Survival) {
_local1.fBonus = IntRand(100) < _SurvivalSettings[_Level].bonusfreq;
} else {
_local1.fBonus = IntRand(100) < _Settings[_Level].bonusfreq;
}
if (_root._Patterns) {
_local1.piece.gotoAndStop((_local1.fBonus ? "alt_Special" : "alt_Normal"));
} else {
_local1.piece.gotoAndStop((_local1.fBonus ? (_AltSpecial) : (_AltPiece)));
}
}
} else {
_local1.Color = _MaxColors + ((_local1.FlowerType == 1) ? 1 : 2);
if (_local1.FlowerType == 1) {
_local1.gotoAndStop("Flower");
} else {
_local1.gotoAndStop("Pearl");
_local1.piece.gotoAndStop(((_local1.FlowerType == 2) ? "Down" : "Up"));
}
}
_local1.piece.lock.gotoAndStop(_local2);
}
function ForceColor(piece, clr, flower, bomb, bonus) {
var _local1 = piece;
var _local2 = flower;
var _local3 = _root;
if (_local1.fBomb) {
_local3.BombList_Remove(_local1);
}
_local1.fBomb = false;
_local1.fBonus = false;
if (_local2 > 0) {
_local1.Color = _local3._MaxColors + ((_local2 == 1) ? 1 : 2);
_local1.FlowerType = _local2;
if (_local2 == 1) {
_local1.gotoAndStop("Flower");
} else {
_local1.gotoAndStop("Pearl");
_local1.piece.gotoAndStop((((_local2 - 2) == 0) ? "Down" : "Up"));
_local1.swapDepths(_local3._DepthOffset + _local1.ID);
}
} else {
_local1.FlowerType = 0;
if ((!bomb) && (!bonus)) {
_local1.Color = clr + 1;
_local1.gotoAndStop(_local1.Color);
_local1.piece.glow._visible = false;
_local1.piece.glow2._visible = false;
}
if (bomb) {
_local1.fBomb = true;
_local1.piece.gotoAndStop("Bomb");
BombList_Add(_local1, false);
_local1.piece.cnt_dec = true;
_local1.swapDepths(_local3._DepthOffset + _local1.ID);
} else {
_local1.fBonus = bonus;
_local1.piece.gotoAndStop((_local1.fBonus ? (_AltSpecial) : (_AltPiece)));
}
}
}
function Sound_Create(fExternal, name, ref) {
var _local1 = new Sound(ref);
if (fExternal) {
_local1.loadSound(("sounds/" + name) + ".mp3", false);
} else {
_local1.attachSound(name);
}
return(_local1);
}
function InitSounds() {
var _local1 = _root;
_local1._DefaultLevel_sfx = 0.4;
_local1._DefaultLevel_music = 0.25;
_local1._Level_sfx = _local1._DefaultLevel_sfx;
_local1._Level_music = _local1._DefaultLevel_music;
_local1._Muted = false;
var _local2 = false;
_local1._MusicClip = _local1.createEmptyMovieClip("_MusicClip", 1);
_local1.M_current = -1;
_local1._SoundClip = _local1.createEmptyMovieClip("_SoundClip", 0);
var _local3 = _local1;
_local3.S_Achievement = Sound_Create(_local2, "Achievement", _local1._SoundClip);
_local3.S_BombBonus = Sound_Create(_local2, "BombBonusCombo", _local1._SoundClip);
_local3.S_BombExplode = Sound_Create(_local2, "BombExplode", _local1._SoundClip);
_local3.S_BombRemove = Sound_Create(_local2, "BombRemove", _local1._SoundClip);
_local3.S_BombWarn = Sound_Create(_local2, "BombWarn", _local1._SoundClip);
_local3.S_Bonus = Sound_Create(_local2, "Bonus", _local1._SoundClip);
_local3.S_ButtonDown = Sound_Create(_local2, "ButtonDown", _local1._SoundClip);
_local3.S_ButtonUp = Sound_Create(_local2, "ButtonUp", _local1._SoundClip);
_local3.S_Flower = Sound_Create(_local2, "Flower", _local1._SoundClip);
_local3.S_FlowerCluster = Sound_Create(_local2, "FlowerCluster", _local1._SoundClip);
_local3.S_FlowerRotate = Sound_Create(_local2, "FlowerRotate", _local1._SoundClip);
_local3.S_GameOver = Sound_Create(_local2, "GameOver", _local1._SoundClip);
_local3.S_InvalidRotation = Sound_Create(_local2, "InvalidRotation", _local1._SoundClip);
_local3.S_JarDrop = Sound_Create(_local2, "JarDrop", _local1._SoundClip);
_local3.S_LogoSpark = Sound_Create(_local2, "LogoSpark", _local1._SoundClip);
_local3.S_MoveTick = Sound_Create(_local2, "MoveTick", _local1._SoundClip);
_local3.S_NewGame = Sound_Create(_local2, "NewGame", _local1._SoundClip);
_local3.S_NewLevel = Sound_Create(_local2, "NewLevel", _local1._SoundClip);
_local3.S_Pearl = Sound_Create(_local2, "Pearl", _local1._SoundClip);
_local3.S_PearlRotate = Sound_Create(_local2, "PearlRotate", _local1._SoundClip);
_local3.S_PieceLanding = Sound_Create(_local2, "PieceLanding", _local1._SoundClip);
_local3.S_Rotate = Sound_Create(_local2, "Rotate", _local1._SoundClip);
_local3.S_Slide = Sound_Create(_local2, "Slide", _local1._SoundClip);
_local3.S_SpaceEmpty = Sound_Create(_local2, "PieceLanding", _local1._SoundClip);
_local3.S_SpaceFreeze = Sound_Create(_local2, "SpaceEmpty", _local1._SoundClip);
_local3.S_SuccessfulCluster = Sound_Create(_local2, "SuccessfulCluster", _local1._SoundClip);
_local3.S_ThreeBonusCluster = Sound_Create(_local2, "ThreeBonusCluster", _local1._SoundClip);
_local3.S_TimeWarning = Sound_Create(_local2, "TimeWarning", _local1._SoundClip);
_local3.S_WinGame = Sound_Create(_local2, "WinGame", _local1._SoundClip);
}
function ExecSound(o) {
o.setVolume(_root._Level_sfx * 100);
o.start(0, 0);
}
function PlaySounds() {
var _local1 = _root;
if (_local1._Muted) {
_local1._SoundMask = 0;
} else {
if (_local1._SoundMask & _local1.SF.NewLevel) {
ExecSound(_local1.S_NewLevel);
} else if (_local1._SoundMask & _local1.SF.WinGame) {
ExecSound(_local1.S_WinGame);
} else if (_local1._SoundMask & _local1.SF.BombWarn) {
ExecSound(_local1.S_BombWarn);
} else if (_local1._SoundMask & _local1.SF.FlowerCluster) {
ExecSound(_local1.S_FlowerCluster);
} else if (_local1._SoundMask & _local1.SF.Flower) {
ExecSound(_local1.S_Flower);
} else if (_local1._SoundMask & _local1.SF.Pearl) {
ExecSound(_local1.S_Pearl);
} else if (_local1._SoundMask & _local1.SF.TimeWarning) {
ExecSound(_local1.S_TimeWarning);
} else if (_local1._SoundMask & _local1.SF.Achievement) {
ExecSound(_local1.S_Achievement);
} else if (_local1._SoundMask & _local1.SF.LogoSpark) {
ExecSound(_local1.S_LogoSpark);
} else {
if (_local1._SoundMask & _local1.SF.MoveTick) {
ExecSound(_local1.S_MoveTick);
}
if (_local1._SoundMask & _local1.SF.Rotation) {
ExecSound(_local1.S_Rotate);
}
if (_local1._SoundMask & _local1.SF.ButtonDown) {
ExecSound(_local1.S_ButtonDown);
}
if (_local1._SoundMask & _local1.SF.ButtonUp) {
ExecSound(_local1.S_ButtonUp);
}
if (_local1._SoundMask & _local1.SF.FlowerRotate) {
ExecSound(_local1.S_FlowerRotate);
}
if (_local1._SoundMask & _local1.SF.PearlRotate) {
ExecSound(_local1.S_PearlRotate);
}
if (_local1._SoundMask & _local1.SF.ThreeBonusCluster) {
ExecSound(_local1.S_ThreeBonusCluster);
} else if (_local1._SoundMask & _local1.SF.BombBonus) {
ExecSound(_local1.S_BombBonus);
} else if (_local1._SoundMask & _local1.SF.Bonus) {
ExecSound(_local1.S_Bonus);
} else if (_local1._SoundMask & _local1.SF.BombRemove) {
ExecSound(_local1.S_BombRemove);
} else if (_local1._SoundMask & _local1.SF.SuccessfulCluster) {
ExecSound(_local1.S_SuccessfulCluster);
}
if (_local1._SoundMask & _local1.SF.Landing) {
ExecSound(_local1.S_PieceLanding);
}
if (_local1._SoundMask & _local1.SF.BombExplode) {
ExecSound(_local1.S_BombExplode);
}
if (_local1._SoundMask & _local1.SF.InvalidRotation) {
ExecSound(_local1.S_InvalidRotation);
}
if (_local1._SoundMask & _local1.SF.NewGame) {
ExecSound(_local1.S_NewGame);
}
if (_local1._SoundMask & _local1.SF.GameOver) {
ExecSound(_local1.S_GameOver);
}
if (_local1._SoundMask & _local1.SF.SpaceEmpty) {
ExecSound(_local1.S_SpaceEmpty);
}
if (_local1._SoundMask & _local1.SF.SpaceFreeze) {
ExecSound(_local1.S_SpaceFreeze);
}
if (_local1._SoundMask & _local1.SF.JarDrop) {
ExecSound(_local1.S_JarDrop);
}
if (_local1._SoundMask & _local1.SF.Slide) {
ExecSound(_local1.S_Slide);
}
}
_local1._SoundMask = 0;
}
}
function InitSession() {
_SessionInit = true;
UpdateRotationElement(true, true);
InitSettings();
InitClips();
}
function InitSettings() {
var _local2 = _root;
_local2.IsPaused = false;
_local2.ResetPauseMenu = false;
_tm = getTimer();
_tt = 0;
_tcurr = 0;
_tlast = 0;
_jare = 5;
_jars = -1;
__p = new Array(6);
__pos = new Array(3);
_Rad = (Math.PI/180);
_BoardHeight = 8;
_BoardWidth = 10;
_PieceScale = 100;
_DepthOffset = (_BoardHeight * _BoardWidth) + Math.floor(_BoardWidth / 2);
_MaxRowHeight = (2 * _BoardHeight) - 1;
_MaxColors = 7;
Board = new Array();
var _local1 = 0;
while (_local1 < _BoardWidth) {
Board.push(new Array(_BoardHeight + 1));
_local1++;
}
SelectedPieces = new Array();
MatchedPieces = new Array();
BombList = new Array();
AvailMoves = new Array();
AvailFlowers = new Array();
_BoundX = 0;
_BoundY = 0;
_PieceWidth = 0;
_PieceHeight = 0;
_LegLength = 0;
_ThreeQuarterWidth = 0;
_QuarterWidth = 0;
_HalfHeight = 0;
_rotX = 0;
_rotY = 0;
_DoRotate = false;
_Hint = null;
_LevelUp = null;
_Spinner = null;
_SpinScale = 20;
_DepthOrder = _DepthOffset - 2;
PieceUpdateList = new Array();
_CollapseSpeed = 300;
_CollapseFlowerSpeed = 1000;
_DropAccel = 5E-7;
_PlumeTime = 1500;
_RotateSpeed = 200;
_JiggleLength = 1000;
_LevelUpLength = 2500;
_HintDelay = 8500;
_HintFlowerDelay = 700;
_BombExplodeLength = 3000;
PF = {Rotation:1, Drop:2, Collapse:4, Flower:8, Jiggle:16, Check:32};
SF = {Rotation:1, Landing:2, SuccessfulCluster:4, InvalidRotation:8, NewGame:16, NewLevel:32, Flower:64, BombRemove:128, BombWarn:256, Bonus:1024, BombBonus:2048, MoveTick:4096, BombExplode:8192, Pearl:16384, WinGame:32768, GameOver:65536, PearlRotate:131072, FlowerRotate:262144, FlowerCluster:524288, ThreeBonusCluster:1048576, TimeWarning:2097152, ButtonDown:4194304, ButtonUp:8388608, SpaceEmpty:16777216, SpaceFreeze:33554432, JarDrop:67108864, Slide:134217728, Achievement:268435456, LogoSpark:536870912};
Stats = {Combo:[0, 0, 0, 0], Bombs:0, Bonus:0, Bonus3:0, BombBonus:0, Flowers:0, Pearls:0, Pieces:0, Rotations:0, RotFail:0};
Think_Init();
_BombsUpdate = false;
_Level = 0;
_InitialLevel = 0;
_local2._Score = 0;
_local2._LifetimeScore = 0;
_local2._LifetimeCombos = 0;
_local2._LifetimeGames = 0;
_local2._CombosLeft = 0;
_SoundMask = 0;
_PlumeTotal = 20;
_PlumeRef = 0;
_PlumeCount = 0;
_MajestyRef = 0;
_MajestyTotal = 8;
_MadeMove = false;
_Muted = false;
_PlayerName = "Player";
_TimeMax = 50000;
_BonusInitial = 0;
_BonusMax = 5;
_BonusTime = 10000;
_CurrMax = 50000;
_BonusCount = 0;
Majesty = new Array(_MajestyTotal);
Plumes = new Array(_PlumeTotal);
_CursorCol = -1;
_CursorRow = -1;
_CursorVertex = -1;
_FlowerRotate = null;
_Settings = [{combos:50, colors:5, bombfreq:0, bombtimer:5, bonusfreq:0, mult:1, t_bonus:50000, t_good:400, t_bad:300}, {combos:60, colors:5, bombfreq:0, bombtimer:5, bonusfreq:15, mult:2, t_bonus:40000, t_good:400, t_bad:400}, {combos:70, colors:5, bombfreq:15, bombtimer:9, bonusfreq:10, mult:3, t_bonus:30000, t_good:300, t_bad:400}, {combos:80, colors:6, bombfreq:10, bombtimer:8, bonusfreq:8, mult:4, t_bonus:20000, t_good:300, t_bad:400}, {combos:90, colors:6, bombfreq:10, bombtimer:7, bonusfreq:7, mult:5, t_bonus:15000, t_good:300, t_bad:500}, {combos:100, colors:7, bombfreq:10, bombtimer:6, bonusfreq:6, mult:6, t_bonus:10000, t_good:200, t_bad:500}, {combos:0, colors:7, bombfreq:10, bombtimer:5, bonusfreq:5, mult:7, t_bonus:10000, t_good:200, t_bad:500}];
_SurvivalSettings = [{combos:5000, colors:5, bombfreq:0, bombtimer:5, bonusfreq:20, mult:1, t_bonus:50000, t_good:400, t_bad:300}, {combos:6000, colors:5, bombfreq:0, bombtimer:5, bonusfreq:15, mult:2, t_bonus:40000, t_good:400, t_bad:400}, {combos:7000, colors:5, bombfreq:0, bombtimer:9, bonusfreq:10, mult:3, t_bonus:30000, t_good:300, t_bad:400}, {combos:8000, colors:5, bombfreq:0, bombtimer:8, bonusfreq:8, mult:4, t_bonus:20000, t_good:300, t_bad:400}, {combos:9000, colors:5, bombfreq:0, bombtimer:7, bonusfreq:7, mult:5, t_bonus:15000, t_good:300, t_bad:500}, {combos:10000, colors:5, bombfreq:0, bombtimer:6, bonusfreq:6, mult:6, t_bonus:10000, t_good:200, t_bad:500}, {combos:60000, colors:5, bombfreq:0, bombtimer:7, bonusfreq:5, mult:7, t_bonus:10000, t_good:200, t_bad:500}];
GT = {Marathon:0, Timed:1, Survival:2};
DF = {Easy:0, Medium:1, Hard:2};
_GameType = GT.Marathon;
_GameTypeCache = GT.Marathon;
_Difficulty = DF.Easy;
_PiecesDropped = false;
_Resources = 0;
_ReceivedSessionStart = false;
_SurvivalLevel = 1;
_fBonusThink = false;
Fr = {Active:1, Splash:6, Menu:13, Pause:83};
_Patterns = false;
_AltPiece = "Normal";
_AltSpecial = "Special";
_LoadGame = false;
_HighScoreEntry = -1;
_HallOfFameFlags = 0;
SetUIElements();
}
function LocComplete(fState) {
var _local1 = _root;
_local1.Localizer.Loc(_LevelUp.txt.txt, "plume_levelup");
_local1.Localizer.Loc(_LevelUp.txt.txt2, "plume_levelup");
_local1.Localizer.Loc(_local1.panel_level.dyn_level, "level_title");
_local1.Localizer.Loc(_local1.panel_level.dyn_level2, "level_title");
_local1.Localizer.Loc(_local1.panel_combos.dyn_combos, "combo_title");
_local1.Localizer.Loc(_local1.panel_combos.dyn_combos2, "combo_title");
_local1.panel_combos.dyn_bonus.text = "";
_local1.panel_combos.dyn_bonus2.text = "";
_local1.Localizer.Loc(_local1.panel_timer.dyn_time, "time_title");
_local1.Localizer.Loc(_local1.panel_timer.dyn_time2, "time_title");
_local1.Localizer.Loc(_local1.Score.dyn_score, "score_title");
_GameType = 0;
SetUIElements();
if (fState) {
_local1.SessionUpdate();
}
}
function SetUIElements() {
if (_GameType == GT.Marathon) {
Background.gotoAndStop("Normal");
} else if (_GameType == GT.Timed) {
Background.gotoAndStop("Timed");
_jare = 5;
var i;
var ref;
i = 0;
while (i < 5) {
ref = eval ("Background.jar" + i);
ref.gotoAndStop("BonusInit");
i++;
}
i = 5;
while (i < 10) {
ref = eval ("Background.jar" + i);
ref.gotoAndStop("Create");
ref.clip.gotoAndPlay(1);
i++;
}
} else {
Background.gotoAndStop("Normal");
}
}
function InitClips() {
InitPieces();
}
function InitPieces() {
var _local1;
var _local2;
var pscale = (_PieceScale / 100);
var _local3 = 0;
_local1 = 0;
while (_local1 < _BoardWidth) {
_local2 = 0;
while (_local2 < (_BoardHeight + 1)) {
if ((_local2 == _BoardHeight) && ((_local1 % 2) == 0)) {
} else {
PieceBoard.attachMovie("PieceStack", _local3, _local3);
var piece = PieceBoard[_local3];
piece.stop();
if ((_local1 == 0) && (_local2 == 0)) {
_PieceWidth = 64.6;
_PieceHeight = 55.8;
_LegLength = _PieceWidth / 2;
_QuarterWidth = _LegLength / 2;
_ThreeQuarterWidth = _LegLength + _QuarterWidth;
_HalfHeight = _PieceHeight / 2;
_BoundX = 6.75 * _PieceWidth;
_BoundY = _BoardHeight * _PieceHeight;
}
piece._xscale = _PieceScale;
piece._yscale = _PieceScale;
piece._flags = 0;
piece._thinkflags = 0;
piece.FlowerType = 0;
piece.ID = _local3;
piece.hidden = false;
piece._visible = false;
piece.glow._visible = false;
piece.glow2._visible = false;
Board[_local1][_local2] = {col:_local1, row:_local2, ID:_local3, Piece:PieceBoard[_local3]};
Board[_local1][_local2].nl = new Array(6);
FindNeighbors(_local1, _local2, Board[_local1][_local2].nl);
piece._board = Board[_local1][_local2];
_root.ThinkList.push(piece);
_local3++;
}
_local2++;
}
_local1++;
}
_root.ThinkList.push(_root.panel_combos);
_root.panel_combos.OrigX = _root.panel_combos._x;
_root.ThinkList.push(_root.panel_level);
_root.panel_level.OrigX = _root.panel_level._x;
_root.ThinkList.push(_root.panel_timer);
_root.panel_timer.OrigX = _root.panel_timer._x;
PieceBoard.attachMovie("PieceStack", "bc1", (_DepthOffset * 5) + 2);
_BonusCounter = PieceBoard.bc1;
_BonusCounter._visible = false;
_BonusCounter._SurvivalBonus = 0;
_BonusCounter._EmptyPieceIndex = 0;
_BonusCounter._EmptyPieceList = new Array();
PieceBoard.attachMovie("Spinner", "spinner", _DepthOffset * 5);
_Spinner = PieceBoard.spinner;
_root._Spinner._visible = false;
_Hint = new Object();
PieceBoard.attachMovie("LevelPlume", "LevelUp", _DepthOffset * 6);
_LevelUp = PieceBoard.LevelUp;
_LevelUp.Ox = ((_PieceWidth * 7) / 2) - 6.5;
_LevelUp.Oy = (_PieceHeight * 7) / 2;
_LevelUp.Sx = _LevelUp.frame._xscale;
_LevelUp.Sy = _LevelUp.frame._yscale;
_LevelUp.doInit(_LevelUp);
_LevelUp._visible = false;
_root.Localizer.Loc(_LevelUp.txt.txt, "plume_levelup");
_root.Localizer.Loc(_LevelUp.txt.txt2, "plume_levelup");
_local1 = 0;
while (_local1 < _PlumeTotal) {
PieceBoard.attachMovie("MajestyStack", "majesty" + _local1, (_DepthOffset * 8) + _local1);
Majesty[_local1] = PieceBoard["majesty" + _local1];
Majesty[_local1]._visible = false;
_local1++;
}
_local1 = 0;
while (_local1 < _PlumeTotal) {
PieceBoard.attachMovie("ScorePlume", "plume" + _local1, (_DepthOffset * 7) + _local1);
Plumes[_local1] = PieceBoard["plume" + _local1];
Plumes[_local1]._x = 100;
Plumes[_local1]._y = 100;
Plumes[_local1]._visible = false;
_local1++;
}
}
function InitGame(fPieceReset) {
var _local1 = _root;
UpdateTime(false);
if (!_local1._LoadGame) {
_BonusCount = _BonusInitial;
_CurrMax = _TimeMax + (_BonusCount * _BonusTime);
_jars = -1;
_tcurr = _CurrMax;
_tt = 0;
}
_EndGameHeader = "";
_EndGameInfo = "";
_GameOver = false;
_GameType = _GameTypeCache;
_GameWin = false;
_HighScoreEntry = -1;
_HallOfFameFlags = 0;
_local1._Spinner._visible = false;
_local1.grid.gotoAndStop(((_GameType == GT.Survival) ? "on" : "off"));
if (_GameType == GT.Survival) {
_local1.Localizer.Loc(_local1.panel_combos.dyn_bonus, "bonus_title");
_local1.Localizer.Loc(_local1.panel_combos.dyn_bonus2, "bonus_title");
_local1.panel_combos.dyn_combos.text = "";
_local1.panel_combos.dyn_combos2.text = "";
_local1.panel_combos.ComboInfo.text = "0";
_local1.panel_combos.ComboInfo2.text = "0";
} else {
_local1.Localizer.Loc(_local1.panel_combos.dyn_combos, "combo_title");
_local1.Localizer.Loc(_local1.panel_combos.dyn_combos2, "combo_title");
_local1.panel_combos.dyn_bonus.text = "";
_local1.panel_combos.dyn_bonus2.text = "";
}
SetDifficulty(_DifficultyCache);
SetUIElements();
UpdateTimeInfo();
if (fPieceReset || (_local1._LoadGame)) {
_PiecesDropped = false;
}
UpdateRotationElement(true, true);
if (!_local1._LoadGame) {
if ((Number(_InitialLevel) > 0) && (_GameType != GT.Survival)) {
_Level = Number(_InitialLevel);
}
_MadeMove = false;
_SurvivalLevel = 1;
_local1._Score = 0;
Stats.Combo = [0, 0, 0, 0];
Stats.Bombs = 0;
Stats.Bonus = 0;
Stats.Bonus3 = 0;
Stats.BombBonus = 0;
Stats.Flowers = 0;
Stats.Pearls = 0;
Stats.Pieces = 0;
Stats.Rotations = 0;
Stats.RotFail = 0;
BombList.splice(0);
} else {
_MadeMove = true;
}
_SoundMask = SF.NewGame;
_HintTime = 0;
_local1.AchievementToast.UpdateScore(_local1._Score, false);
_local1.panel_level._alpha = 0;
_local1.panel_combos._alpha = 0;
_local1.panel_combos._visible = true;
_local1.panel_level._visible = true;
_local1.panel_timer._visible = _GameType == GT.Timed;
_local1.LeftSlideAnimate(_local1.panel_level, true, 250, 100, null, _local1.panel_level.OrigX + 100);
if (_GameType == GT.Survival) {
_local1.Score.Bonus.text = _local1._BonusCounter._SurvivalBonus;
_local1.panel_level.LevelInfo.text = _local1._SurvivalLevel;
_local1.panel_level.LevelInfo2.text = _local1._SurvivalLevel;
} else {
_local1.LeftSlideAnimate(_local1.panel_combos, true, 650, 100, null, _local1.panel_combos.OrigX + 100);
if (_GameType == GT.Timed) {
_local1.RightSlideAnimate(_local1.panel_timer, true, 1100, 100, null, _local1.panel_timer.OrigX - 100);
}
}
InitLevel(fPieceReset);
var _local3 = "";
switch (_GameType) {
case _local1.GT.Marathon :
_local3 = "Marathon";
break;
case _local1.GT.Timed :
_local3 = "Timed";
break;
case _local1.GT.Survival :
_local3 = "Survival";
}
var _local2 = "";
switch (_DifficultyCache) {
case _local1.DF.Easy :
_local2 = "Easy";
break;
case _local1.DF.Medium :
_local2 = "Medium";
break;
case _local1.DF.Hard :
_local2 = "Hard";
}
fscommand ("Presence", _local3);
fscommand ("DifficultyContext", _local2);
}
function InitLevel(fPieceReset) {
if (!_root._LoadGame) {
_jars = -1;
_tcurr = _tcurr + _Settings[_Level].t_bonus;
if (_tcurr > _CurrMax) {
_tcurr = _CurrMax;
}
}
_root._TipRef = 0;
var i;
var jar;
var d = (10 - Math.floor(_tcurr / 10000));
if (_root._LoadGame) {
_jare = d;
i = 0;
while (i < (5 - _BonusCount)) {
jar = eval ("_root.Background.jar" + i);
jar.gotoAndStop("BonusInit");
jar.jar._alpha = 0;
i++;
}
i = 5 - _BonusCount;
while (i < (d - 1)) {
jar = eval ("_root.Background.jar" + i);
jar.gotoAndStop("Expire");
jar.jar._alpha = 0;
i++;
}
i = d - 1;
while (i < 10) {
jar = eval ("_root.Background.jar" + i);
jar.gotoAndStop("Create");
jar.jar._alpha = 100;
i++;
}
} else {
i = d;
while (i < 10) {
jar = eval ("Background.jar" + i);
if (jar._currentframe != 2) {
jar._alpha = 100;
jar.jar._alpha = 100;
jar.gotoAndStop("Create");
} else {
jar._alpha = 0;
}
jar.clip.gotoAndPlay(1);
i++;
}
}
_DoRotate = false;
_Hint._Time = 0;
_Hint._visible = false;
_EndLevelReached = false;
if (!_root._LoadGame) {
_BombGrace = (((_Level != 0) && (_Settings[_Level].colors > _Settings[_Level - 1].colors)) ? 20 : 0);
_root._CombosLeft = _Settings[_Level].combos;
_BombFreq = _Settings[_Level].bombfreq;
if (_BombFreq == 0) {
_BombFreq = _Settings[_Level].combos * 1000;
}
}
if (_GameType == GT.Survival) {
panel_level.LevelInfo.text = _SurvivalLevel;
panel_level.LevelInfo2.text = _SurvivalLevel;
} else {
panel_level.LevelInfo.text = _Level + 1;
panel_level.LevelInfo2.text = _Level + 1;
panel_combos.ComboInfo.text = _root._CombosLeft;
panel_combos.ComboInfo2.text = _root._CombosLeft;
}
_PlumeRef = 0;
_PlumeCount = 0;
var x = 0;
while (x < _PlumeTotal) {
Plumes[x]._visible = false;
x++;
}
if ((!_PiecesDropped) || (_root._LoadGame)) {
}
if (_PiecesDropped) {
_root._LoadGame = false;
if (_GameType == GT.Survival) {
_root.gotoAndStop("Level_Survival");
} else if ((_GameType == GT.Timed) && ((_Level == 0) || (_Level == 3))) {
_root.gotoAndStop(("Level_" + (_Level + 1)) + "_Timed");
} else {
_root.gotoAndStop("Level_" + (_Level + 1));
}
return(undefined);
}
_PiecesDropped = false;
DropAllPieces(fPieceReset);
if (!_root._LoadGame) {
Stats.Pieces = 0;
}
_PiecesDropped = true;
_root._LoadGame = false;
if (_GameType == _root.GT.Survival) {
_root.gotoAndStop("Level_Survival");
} else if ((_GameType == GT.Timed) && ((_Level == 0) || (_Level == 3))) {
_root.gotoAndStop(("Level_" + (_Level + 1)) + "_Timed");
} else {
_root.gotoAndStop("Level_" + (_Level + 1));
}
}
function AddMajesty(piece, fname) {
Majesty[_MajestyRef]._x = piece._x;
Majesty[_MajestyRef]._y = piece._y;
Majesty[_MajestyRef].gotoAndStop(fname);
Majesty[_MajestyRef].clip.gotoAndPlay(1);
Majesty[_MajestyRef]._visible = true;
_MajestyRef = (_MajestyRef + 1) % _MajestyTotal;
}
function SessionUpdate() {
}
function SetDifficulty(d) {
var _local2 = _root;
var _local3 = d;
var _local1;
_Difficulty = _local3;
if (_local3 == DF.Easy) {
if (_GameType == GT.Survival) {
if (!_local2._LoadGame) {
_Level = 0;
}
_local1 = 0;
while (_local1 < 7) {
_SurvivalSettings[_local1].colors = 4;
_local1++;
}
} else if (!_local2._LoadGame) {
_Level = 0;
}
} else if (_local3 == DF.Medium) {
if (_GameType == GT.Survival) {
if (!_local2._LoadGame) {
_Level = 0;
}
_local1 = 0;
while (_local1 < 7) {
_SurvivalSettings[_local1].colors = 5;
_local1++;
}
} else if (!_local2._LoadGame) {
_Level = 2;
}
} else if (_GameType == GT.Survival) {
if (!_local2._LoadGame) {
_Level = 0;
}
_local1 = 0;
while (_local1 < 7) {
_SurvivalSettings[_local1].colors = 6;
_local1++;
}
} else if (!_local2._LoadGame) {
_Level = 4;
}
_local2.Localizer.Loc(_local2.panel_level.dyn_difficulty_txt, "difficulty_" + _local2._Difficulty);
}
function WriteXenonStats() {
var _local1 = _root;
var _local2 = "<stats>";
_local2 = _local2 + (("<score>" + _local1._Score) + "</score>");
_local2 = _local2 + (("<win>" + _local1._GameWin) + "</win>");
_local2 = _local2 + (("<level>" + ((_local1._GameType == _local1.GT.Survival) ? (_local1._SurvivalLevel) : (_local1._Level + 1))) + "</level>");
_local2 = _local2 + (("<time>" + (_local1._tt / 1000)) + "</time>");
_local2 = _local2 + (("<clusters>" + Number(((_local1.Stats.Combo[0] + _local1.Stats.Combo[1]) + _local1.Stats.Combo[2]) + _local1.Stats.Combo[3])) + "</clusters>");
_local2 = _local2 + (("<flowers>" + _local1.Stats.Flowers) + "</flowers>");
_local2 = _local2 + (("<pearls>" + _local1.Stats.Pearls) + "</pearls>");
_local2 = _local2 + (("<bombs>" + _local1.Stats.Bombs) + "</bombs>");
_local2 = _local2 + (("<bonuses>" + _local1.Stats.Bonus) + "</bonuses>");
_local2 = _local2 + (("<bbcombo>" + _local1.Stats.BombBonus) + "</bbcombo>");
_local2 = _local2 + (("<b3combo>" + _local1.Stats.Bonus3) + "</b3combo>");
_local2 = _local2 + "</stats>";
fscommand ("WriteStats", _local2);
}
function SaveSettings() {
var _local2 = _root;
var _local1 = "<settings>\n";
_local1 = _local1 + ((((((((((((((" <user sfx=\"" + _local2._Level_sfx) + "\" ") + "music=\"") + _local2._Level_music) + "\" ") + "mute=\"") + _local2._Muted) + "\" ") + "patterns=\"") + _local2._Patterns) + "\" ") + ">") + _local2._PlayerName) + "</user>\n");
_local1 = _local1 + "</settings>";
fscommand ("SaveSettings", _local1);
}
function ReadSettings() {
fscommand ("LoadSettings", "settings");
}
function ParseSettings() {
var _local2 = _root;
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.parseXML(_local2._SettingsXMLString);
var _local1 = _local3.firstChild.firstChild;
if (_local1) {
_local2._Level_sfx = Number(_local1.attributes.sfx);
fscommand ("SoundFX", _local2._Level_sfx);
_local2._Level_music = Number(_local1.attributes.music);
fscommand ("MusicVolume", _local2._Level_music);
_local2._Muted = _local1.attributes.mute == "true";
_local2._Patterns = _local1.attributes.patterns == "true";
_local2._PlayerName = _local1.firstChild.nodeValue;
}
}
function SaveGame() {
var _local2 = _root;
var x;
var _local3;
var _local1;
var str = "<game>";
str = str + "<params ";
str = str + (("_BF=\"" + _local2._BombFreq) + "\" ");
str = str + (("_BG=\"" + _local2._BombGrace) + "\" ");
str = str + (("_BC=\"" + _local2._BonusCount) + "\" ");
str = str + (("_CL=\"" + _local2._CombosLeft) + "\" ");
str = str + (("_CM=\"" + _local2._CurrMax) + "\" ");
str = str + (("_D=\"" + _local2._Difficulty) + "\" ");
str = str + (("_GT=\"" + _local2._GameType) + "\" ");
str = str + (("_j=\"" + _local2._jars) + "\" ");
str = str + (("_L=\"" + _local2._Level) + "\" ");
str = str + (("_S=\"" + _local2._Score) + "\" ");
str = str + (("_SL=\"" + _local2._SurvivalLevel) + "\" ");
str = str + (("_SB=\"" + _local2._BonusCounter._SurvivalBonus) + "\" ");
str = str + (("_tt=\"" + _local2._tt) + "\" ");
str = str + (("_tcurr=\"" + _local2._tcurr) + "\" ");
str = str + "/>";
str = str + "<stats ";
x = 0;
while (x < 4) {
str = str + (((("c" + x) + "=\"") + _local2.Stats.Combo[x]) + "\" ");
x++;
}
str = str + (("Bm=\"" + _local2.Stats.Bombs) + "\" ");
str = str + (("Bn=\"" + _local2.Stats.Bonus) + "\" ");
str = str + (("B3=\"" + _local2.Stats.Bonus3) + "\" ");
str = str + (("BB=\"" + _local2.Stats.BombBonus) + "\" ");
str = str + (("F=\"" + _local2.Stats.Flowers) + "\" ");
str = str + (("Pe=\"" + _local2.Stats.Pearls) + "\" ");
str = str + (("Pi=\"" + _local2.Stats.Pieces) + "\" ");
str = str + (("R=\"" + _local2.Stats.Rotations) + "\" ");
str = str + (("RF=\"" + _local2.Stats.RotFail) + "\"");
str = str + "/>";
str = str + "<board p=\"";
var x = 0;
while (x < _local2._BoardWidth) {
_local3 = 0;
while (_local3 < (_local2._BoardHeight + 1)) {
if ((_local3 == _local2._BoardHeight) && ((x % 2) == 0)) {
} else {
_local1 = _local2.Board[x][_local3].Piece;
str = str + ((((((((_local1.Color > 0) ? (String(_local1.Color)) : "0") + (_local1.locked ? "t" : "f")) + (_local1.hidden ? "t" : "f")) + String(_local1.FlowerType)) + (_local1.fBonus ? "t" : "f")) + (_local1.fBomb ? "t" : "f")) + (_local1.bombtick ? (String(_local1.bombtick)) : "u"));
}
_local3++;
}
x++;
}
str = str + "\"/>";
str = str + "</game>";
_local2._GameXMLString = str;
fscommand ("SaveGame", str);
}
function ReadGame() {
fscommand ("LoadGame");
}
function ParseGame(GameXmlBlob) {
var _local2 = _root;
var GameXML = new XML();
GameXML.ignoreWhite = true;
GameXML.parseXML(GameXmlBlob);
var node;
var mode;
var hs;
var _local3 = GameXML.firstChild.firstChild;
BombList.splice(0);
while (_local3) {
if (_local3.nodeName == "params") {
_local2._BombFreq = Number(_local3.attributes._BF);
_local2._BombGrace = Number(_local3.attributes._BG);
_local2._BonusCount = Number(_local3.attributes._BC);
_local2._CombosLeft = Number(_local3.attributes._CL);
_local2._CurrMax = Number(_local3.attributes._CM);
_local2._DifficultyCache = Number(_local3.attributes._D);
_local2._GameTypeCache = Number(_local3.attributes._GT);
_local2._jars = Number(_local3.attributes._j);
_local2._Level = Number(_local3.attributes._L);
_local2._Score = Number(_local3.attributes._S);
_local2._SurvivalLevel = Number(_local3.attributes._SL);
_local2._BonusCounter._SurvivalBonus = Number(_local3.attributes._SB);
_local2._tt = Number(_local3.attributes._tt);
_local2._tcurr = Number(_local3.attributes._tcurr);
} else if (_local3.nodeName == "stats") {
_local2.Stats.Combo[0] = Number(_local3.attributes.c0);
_local2.Stats.Combo[1] = Number(_local3.attributes.c1);
_local2.Stats.Combo[2] = Number(_local3.attributes.c2);
_local2.Stats.Combo[3] = Number(_local3.attributes.c3);
_local2.Stats.Bombs = Number(_local3.attributes.Bm);
_local2.Stats.Bonus = Number(_local3.attributes.Bn);
_local2.Stats.Bonus3 = Number(_local3.attributes.B3);
_local2.Stats.BombBonus = Number(_local3.attributes.BB);
_local2.Stats.Flowers = Number(_local3.attributes.F);
_local2.Stats.Pearls = Number(_local3.attributes.Pe);
_local2.Stats.Pieces = Number(_local3.attributes.Pi);
_local2.Stats.Rotations = Number(_local3.attributes.R);
_local2.Stats.RotFail = Number(_local3.attributes.RF);
} else if (_local3.nodeName == "board") {
var _local1;
var allattributes = _local3.attributes.p;
var x = 0;
while (x < _local2._BoardWidth) {
var y = 0;
while (y < (_local2._BoardHeight + 1)) {
if ((y == _local2._BoardHeight) && ((x % 2) == 0)) {
} else {
var attributes = allattributes.slice(0, 7);
allattributes = allattributes.slice(7);
_local1 = _local2.Board[x][y].Piece;
_local1._flags = 0;
_local1._thinkflags = 0;
_local1._visible = true;
_local1.hidden = attributes.slice(2, 3) != "f";
_local1.Color = (_local1.hidden ? (IntRand(-1000) - 1) : (Number(attributes.slice(0, 1))));
_local1.FlowerType = Number(attributes.slice(3, 4));
_local1.locked = attributes.slice(1, 2) != "f";
_local1.fBonus = attributes.slice(4, 5) != "f";
_local1.fBomb = attributes.slice(5, 6) != "f";
_local1.bombtick = ((attributes.slice(6, 7) == "u") ? undefined : (Number(attributes.slice(6, 7))));
_local1.gotoAndStop(((_local1.Color >= 0) ? (_local1.Color) : "Hidden"));
_local1.piece.glow._visible = false;
_local1.piece.glow2._visible = false;
if (_local1.fBomb) {
_local1.piece.gotoAndStop("Bomb");
_local2.BombList_Add(_local1, true);
_local1.swapDepths(_local2._DepthOffset + _local1.ID);
_local1.piece.lock.gotoAndStop("unlocked");
} else if (_local1.hidden) {
_local1._visible = false;
} else {
if (_local1.FlowerType == 0) {
if (_local2._Patterns) {
_local1.piece.gotoAndStop((_local1.fBonus ? "alt_Special" : "alt_Normal"));
} else {
_local1.piece.gotoAndStop((_local1.fBonus ? _AltSpecial : _AltPiece));
}
} else if (_local1.FlowerType > 1) {
_local1.piece.gotoAndStop(((_local1.FlowerType == 2) ? "Down" : "Up"));
_local1.swapDepths(_local2._DepthOffset + _local1.ID);
}
if (_local1.locked) {
_local1.piece.lock.gotoAndStop("locked");
} else {
_local1.piece.lock.gotoAndStop("unlocked");
}
_local1._visible = true;
}
_local1._visible = false;
}
y++;
}
x++;
}
}
_local3 = _local3.nextSibling;
}
delete ScoresXML;
_local2._LifetimeScore = _local2._LifetimeScore - _local2._Score;
_local2._LifetimeCombos = _local2._LifetimeCombos - (((_local2.Stats.Combo[0] + _local2.Stats.Combo[1]) + _local2.Stats.Combo[2]) + _local2.Stats.Combo[3]);
_local2._LoadGame = true;
_local2._GameOver = false;
_local2.InitGame(true);
_local2.gotoAndStop("Active");
}
function UpdateTimeInfo() {
var _local1 = _root;
if (_local1._GameType != _local1.GT.Timed) {
} else {
if (_local1._tcurr >= 60000) {
var _local2 = Math.floor((_local1._tcurr - 60000) / 1000);
if (_local2 >= 10) {
_local1.panel_timer.TimeInfo.text = "1:" + _local2;
} else if (_local2 >= 0) {
_local1.panel_timer.TimeInfo.text = "1:0" + _local2;
} else {
_local1.panel_timer.TimeInfo.text = "1:00";
}
} else {
var _local2 = Math.floor(_local1._tcurr / 1000);
if (_local2 >= 10) {
_local1.panel_timer.TimeInfo.text = "0:" + _local2;
} else if (_local1._tcurr < 1000) {
_local1.panel_timer.TimeInfo.text = "0:00";
} else {
_local1.panel_timer.TimeInfo.text = "0:0" + _local2;
}
}
_local1.panel_timer.TimeInfo2.text = _local1.panel_timer.TimeInfo.text;
}
}
function UpdateTime(fUpdate) {
var _local1 = _root;
_local1._tm = getTimer();
if (fUpdate) {
var _local2 = _local1._tm - _local1._tlast;
_local1._tt = _local1._tt + _local2;
if (_local1._GameType == _local1.GT.Timed) {
_local1._tcurr = _local1._tcurr - _local2;
if (_local1._tcurr < 0) {
_local1._EndGameHeader = "gameend_gameover";
_local1._EndGameInfo = "gameendinfo_time";
_local1._GameOver = true;
_local1._SoundMask = _local1._SoundMask | SF.GameOver;
}
}
}
_local1._tlast = _local1._tm;
}
function DoLoader() {
var _local1 = _root;
if (_SessionInit) {
if (_SoundMask != 0) {
PlaySounds();
}
}
if (_local1._framesloaded < _local1._totalframes) {
} else {
MAXINT = 2147483647 /* 0x7FFFFFFF */;
_CurrentSeed = Math.random() * MAXINT;
UI = {SplashTime:0, WindowAlpha:93};
_SessionInit = true;
this.onEnterFrame = _local1.DoGame;
this.gotoAndStop("Splash");
}
}
function DoGame() {
var _local2 = _root;
var _local1 = (((_PA == 0) && (_local2._currentframe == Fr.Active)) && (_MadeMove)) && (!_EndLevelReached);
UpdateTime(_local1);
if (_PA > 0) {
DoThink();
}
if ((_local2._currentframe == Fr.Active) && (_local2.ActiveInGame)) {
UpdateBoard();
}
if (_PlumeCount > 0) {
Plume_Update();
}
if (_SoundMask != 0) {
PlaySounds();
}
if (_local1 && (_GameType == GT.Timed)) {
JarUpdate();
}
}
function JarUpdate() {
var d = (10 - ((5 + _BonusCount) * (_tcurr / _CurrMax)));
var j = Math.floor(d);
var v = (d - j);
var r;
var g;
var b;
var clr = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100 * v, ab:0};
var t_jar = eval (("Background.jar" + j) + ".jar");
if (!t_jar) {
return(undefined);
}
t_jar._alpha = 100 * (1 - v);
if (j != _jare) {
var o = eval ("Background.jar" + _jare);
var t_obj;
var t_clr;
if (j > _jare) {
o.gotoAndStop("Expire");
o.jar._alpha = 0;
o.clip.gotoAndPlay(1);
if ((_jare > _jars) || (j == 9)) {
_jars = _jare;
_SoundMask = _SoundMask | SF.TimeWarning;
}
}
_jare = j;
}
_root.UpdateTimeInfo();
}
function StartBonusThink() {
_root._fBonusThink = true;
}
function InitBonusThink() {
var _local2;
_root.fFill = false;
_root._fBonusThink = false;
_root._BonusCounter._EmptyPieceIndex = 0;
_root._BonusCounter._SurvivalBonus = 0;
_root.panel_combos.ComboInfo.text = _root._BonusCounter._SurvivalBonus;
_root.panel_combos.ComboInfo2.text = _root._BonusCounter._SurvivalBonus;
_root._BonusCounter.next = _root._tm + 100;
_root._BonusCounter.gotoAndStop("Hidden");
_root._BonusCounter._visible = true;
_root._Spinner._visible = false;
if (_root._BonusCounter._EmptyPieceList.length > 0) {
_root._BonusCounter._EmptyPieceList.splice(0);
}
var _local3 = 0;
while (_local3 < (_BoardHeight + 1)) {
var _local1 = 0;
while (_local1 < _BoardWidth) {
if ((_local3 == _BoardHeight) && ((_local1 % 2) == 0)) {
} else {
_local2 = Board[_local1][_local3].Piece;
if (!_local2.locked) {
_root._BonusCounter._EmptyPieceList.push(_local2);
if (_local2.hidden) {
_root.fFill = true;
}
}
}
_local1++;
}
_local3++;
}
if (_root._BonusCounter._EmptyPieceList.length > 0) {
if (fFill) {
_root.LeftSlideAnimate(_root.panel_combos, true, 0, 100, _root.StartBonusThink, _root.panel_combos.OrigX + 100);
} else {
_root._fBonusThink = true;
}
}
}
function BonusThink() {
var _local1 = _root;
if (_local1._BonusCounter.next > _local1._tm) {
} else {
_local1._BonusCounter.next = _local1._tm + 40;
var _local2;
if (_local1._BonusCounter._EmptyPieceIndex < _local1._BonusCounter._EmptyPieceList.length) {
_local2 = _local1._BonusCounter._EmptyPieceList[_local1._BonusCounter._EmptyPieceIndex];
if (_local2.hidden) {
_local2.locked = false;
_local2.hidden = true;
_local2.gotoAndStop("Hidden");
_local1._BonusCounter._x = _local2._x;
_local1._BonusCounter._y = _local2._y;
_local1._BonusCounter.gotoAndStop("Bonus");
_local1._BonusCounter.piece.gotoAndStop("search");
_local1._BonusCounter._SurvivalBonus = _local1._BonusCounter._SurvivalBonus + (1 * _local1._SurvivalLevel);
_local1.panel_combos.ComboInfo.text = _local1._BonusCounter._SurvivalBonus;
_local1.panel_combos.ComboInfo2.text = _local1._BonusCounter._SurvivalBonus;
} else {
_local1._BonusCounter.gotoAndStop("Hidden");
_local2.piece.lock.gotoAndPlay("lock");
_local2.locked = true;
_local1._SoundMask = _local1._SoundMask | _local1.SF.SpaceFreeze;
}
_local1._BonusCounter._EmptyPieceIndex++;
} else {
_local1._fBonusThink = false;
_local1._BonusCounter._visible = false;
RefillBoard();
if (_local1.fFill) {
LeftSlideAnimate(_local1.panel_combos, false, 2550, 100, null, _local1.panel_combos.OrigX + 100);
}
}
}
}
function Hint_Init() {
if (AvailFlowers.length == 0) {
if (AvailMoves.length == 0) {
return;
}
var _local3 = AvailMoves[Math.floor(Math.random() * AvailMoves.length)];
_local3 = _local3.Piece;
_Hint._piece = _local3;
_Hint._piece.piece.glow._visible = true;
_Hint._piece.piece.glow.gotoAndPlay(1);
_Hint._Time = _tm;
_Hint._Next = null;
} else {
var _local1;
var _local2 = AvailFlowers[Math.floor(Math.random() * AvailFlowers.length)];
_local1 = 0;
while (_local1 < _local2.length) {
_local2[_local1]._Next = ((_local1 < (_local2.length - 1)) ? (_local2[_local1 + 1]) : null);
_local1++;
}
_Hint._piece = _local2[0].Piece;
_Hint._piece.piece.glow._visible = true;
_Hint._piece.piece.glow.gotoAndPlay(1);
_Hint._Time = _tm;
_Hint._Next = _local2[0];
}
}
function Hint_Think() {
if (_Hint._Time <= 0) {
_Hint._visible = false;
} else {
var _local1 = (_tm - _Hint._Time) % 22600;
if ((_local1 < 200) || ((_local1 >= 2600) && (_local1 < 2800))) {
_Hint._piece.piece.glow._visible = true;
_Hint._piece.piece.glow.gotoAndPlay(1);
} else if ((_local1 < 400) || ((_local1 >= 2800) && (_local1 < 3000))) {
if (_Hint._Next != null) {
_Hint._piece = _Hint._Next.Piece;
_Hint._Time = _tm;
_Hint._Next = _Hint._Next._Next;
return;
}
_Hint._visible = false;
} else if ((_local1 < 600) || ((_local1 >= 3000) && (_local1 < 3200))) {
_Hint._piece.piece.glow._visible = true;
_Hint._piece.piece.glow.gotoAndPlay(1);
} else {
_Hint._visible = false;
}
}
}
function FlowerHint(clr, p, x, y) {
var _local1 = x;
var _local2;
var _local3;
var len = p.length;
var nl;
var targ = -1;
_local2 = 0;
while (_local2 < len) {
if ((p[_local2].Piece.Color - 1) != clr) {
if (p[_local2].Piece.locked) {
return(false);
}
targ = _local2;
nl = p[_local2].nl;
break;
}
_local2++;
}
if (targ == -1) {
return(false);
}
var y;
_local2 = -1;
while (_local2 <= 1) {
_local1 = targ + _local2;
if (_local1 < 0) {
_local1 = len - 1;
}
if (_local1 > (len - 1)) {
_local1 = 0;
}
if (!nl[_local1].fIsNeighbor) {
} else if ((Board[nl[_local1].col][nl[_local1].row].Piece.Color - 1) == clr) {
if (Board[nl[_local1].col][nl[_local1].row].Piece.locked) {
return(false);
}
var aFlower = new Array();
targ = (targ + 1) % len;
_local3 = 0;
while (_local3 < len) {
y = (targ + _local3) % len;
if ((p[y].Piece.Color - 1) == clr) {
aFlower.push(p[y]);
}
_local3++;
}
aFlower.push(Board[nl[_local1].col][nl[_local1].row]);
AvailFlowers.push(aFlower);
delete aFlower;
return(true);
}
_local2++;
}
return(false);
}
function FindValidMoves() {
var _local1;
var sz = (_MaxColors + 1);
var nC = new Array(sz);
var aC = new Array(sz);
var cl;
var max;
var x;
var y;
var _local3;
var _local2;
var fFlChk;
var fFlwr = false;
var nl;
var last;
var lb;
if (_root.FVMx == 0) {
_root.FVMmv = new Array();
if (AvailFlowers.length > 0) {
_local1 = 0;
while (_local1 < AvailFlowers.length) {
delete AvailFlowers[_local1];
_local1++;
}
AvailFlowers.splice(0);
}
}
x = _root.FVMx;
y = 0;
while (y < (_BoardHeight + 1)) {
if ((y == _BoardHeight) && ((x % 2) == 0)) {
} else if ((_GameType == GT.Survival) && (Board[x][y].Piece.locked)) {
} else {
_local1 = 0;
while (_local1 < sz) {
delete aC[_local1];
aC[_local1] = new Array();
nC[_local1] = 0;
_local1++;
}
nl = Board[x][y].nl;
_local1 = 0;
while (_local1 < 6) {
__p[_local1] = (nl[_local1].fIsNeighbor ? (Board[nl[_local1].col][nl[_local1].row]) : null);
_local1++;
}
max = 0;
last = -1;
lb = -1;
fFlChk = true;
_local1 = 0;
while (_local1 < 6) {
if ((__p[_local1] != null) && (__p[_local1].Piece.Color > 0)) {
cl = __p[_local1].Piece.Color - 1;
nC[cl] = nC[cl] + ((cl == last) ? 2 : 1);
last = cl;
aC[cl].push(__p[_local1]);
if (max < nC[cl]) {
max = nC[cl];
}
if (__p[_local1].Piece.fBonus) {
nC[_MaxColors] = nC[_MaxColors] + ((lb != -1) ? 2 : 1);
lb = 1;
aC[_MaxColors].push(__p[_local1]);
if (max < nC[_MaxColors]) {
max = nC[_MaxColors];
}
} else {
lb = -1;
}
} else {
fFlChk = false;
last = -1;
lb = -1;
}
_local1++;
}
if (((__p[0] != null) && (__p[5] != null)) && (__p[0].Piece.Color > 0)) {
if (__p[0].Piece.Color == __p[5].Piece.Color) {
cl = __p[0].Piece.Color - 1;
nC[cl] = nC[cl] + 1;
if (max < nC[cl]) {
max = nC[cl];
}
}
if ((__p[0].Piece.fBonus && (__p[5].Piece.fBonus)) && (__p[5].Piece.Color > 0)) {
nC[_MaxColors] = nC[_MaxColors] + 1;
if (max < nC[_MaxColors]) {
max = nC[_MaxColors];
}
}
}
if (max <= 3) {
} else {
_local1 = 0;
for ( ; _local1 < sz ; _local1++) {
if (nC[_local1] <= 3) {
} else if (fFlChk || (fFlwr)) {
if (((nC[_local1] == 9) && (_local1 != _MaxColors)) && (FlowerHint(_local1, __p, x, y))) {
fFlwr = true;
}
if (fFlwr) {
continue;
}
} else if (nC[_local1] > 4) {
_local3 = 0;
while (_local3 < aC[_local1].length) {
if (_GameType != GT.Survival) {
_root.FVMmv.push(aC[_local1][_local3]);
} else if (!aC[_local1][_local3].Piece.locked) {
_local2 = 0;
while (_local2 < 6) {
if (__p[_local2] == aC[_local1][_local3]) {
var p1 = __p[((_local2 > 0) ? (_local2 - 1) : 5)];
var p2 = __p[(_local2 + 1) % 6];
if (((p1 != null) && (!p1.Piece.locked)) || ((p2 != null) && (!p2.Piece.locked))) {
_root.FVMmv.push(aC[_local1][_local3]);
}
break;
}
_local2++;
}
}
_local3++;
}
} else {
_local3 = 0;
while (_local3 < aC[_local1].length) {
_local2 = 0;
while (_local2 < 6) {
if ((__p[_local2] == aC[_local1][_local3]) && (!aC[_local1][_local3].Piece.locked)) {
if (_local1 == _MaxColors) {
if ((__p[((_local2 > 0) ? (_local2 - 1) : 5)].Piece.fBonus != __p[_local2].Piece.fBonus) && (__p[(_local2 + 1) % 6].Piece.fBonus != __p[_local2].Piece.fBonus)) {
if (_GameType == GT.Survival) {
var p1 = __p[((_local2 > 0) ? (_local2 - 1) : 5)];
var p2 = __p[(_local2 + 1) % 6];
if (((p1 == null) || p1.Piece.locked) && ((p2 == null) || p2.Piece.locked)) {
break;
}
}
_root.FVMmv.push(aC[_local1][_local3]);
break;
}
} else if ((__p[((_local2 > 0) ? (_local2 - 1) : 5)].Piece.Color != __p[_local2].Piece.Color) && (__p[(_local2 + 1) % 6].Piece.Color != __p[_local2].Piece.Color)) {
if (_GameType == GT.Survival) {
var p1 = __p[((_local2 > 0) ? (_local2 - 1) : 5)];
var p2 = __p[(_local2 + 1) % 6];
if (((p1 == null) || p1.Piece.locked) && ((p2 == null) || p2.Piece.locked)) {
break;
}
}
_root.FVMmv.push(aC[_local1][_local3]);
break;
}
}
_local2++;
}
_local3++;
}
}
}
}
}
y++;
}
delete nC;
_root.FVMx++;
if (_root.FVMx == _BoardWidth) {
delete AvailMoves;
AvailMoves = _root.FVMmv;
if ((AvailFlowers.length == 0) && (AvailMoves.length == 0)) {
if (_GameType != GT.Survival) {
_root.gotoAndStop("NoMoves");
} else {
_root.InitBonusThink();
}
}
return(true);
}
return(false);
}
function LevelUp_Init(o) {
var _local1 = o;
_local1._Time = _root._tm + _LevelUpLength;
_local1._NLevel = 0;
_local1._alpha = 100;
_local1._thinkflags = 0;
_local1._x = _local1.Ox;
_local1._y = _local1.Oy;
_local1._visible = true;
_local1.frame._yscale = 0.2 * _local1.Sy;
_local1.DonePlaying = false;
_local1.gotoAndPlay(1);
_root._SoundMask = _root._SoundMask | SF.NewLevel;
}
function LevelUp_Think(o) {
var x;
var y;
_root.Localizer.Loc(o.txt, "plume_levelup");
_root.Localizer.Loc(o.txt2, "plume_levelup");
if (o.DonePlaying && (_EndLevelReached)) {
o._visible = false;
_EndLevelReached = false;
EndLevel();
}
if (d < 0) {
o._visible = false;
} else {
var _local2 = 1;
var _local1 = 0;
while (_local1 < 4) {
if ((d < (1 - (0.25 * _local1))) && ((o._thinkflags & _local2) == 0)) {
x = _LevelUp.Ox + (140 * (Math.random() - Math.random()));
y = _LevelUp.Oy + (50 * (Math.random() - Math.random()));
var _local3 = {_x:x, _y:y};
_root.AddMajesty(_local3, "CreateFlower");
o._thinkflags = o._thinkflags | _local2;
return;
}
_local2 = _local2 * 2;
_local1++;
}
}
}
function UpdateRotationElement(fClockwise, fForce) {
var _local1 = _root;
if (!fForce) {
if (((((!_local1._Spinner._visible) || (!_local1._Spinner.enabled)) || (_local1._PA > 0)) || (_local1._currentframe != _local1.Fr.Active)) || (_local1._DoRotate)) {
return;
}
} else {
var ChangeDirection = (_local1._Rotateclockwise != fClockwise);
_local1._RotateClockwise = fClockwise;
Spinner_SetRotation();
}
}
function Spinner_SetRotation() {
var _local1 = _root;
_local1._Spinner.Spinner._visible = _local1._FlowerRotate == null;
_local1._Spinner.arrows._visible = true;
_local1._Spinner.Highlight._visible = true;
if (_local1._CursorVertex == 0) {
if (_local1._FlowerRotate == null) {
_local1._Spinner.gotoAndStop("Normal");
_local1._Spinner._xscale = 100;
} else if (_local1._FlowerRotate.Piece.FlowerType == 1) {
_local1._Spinner.gotoAndStop("Flower");
_local1._Spinner._xscale = 100;
} else if (_local1._FlowerRotate.Piece.FlowerType == 2) {
_local1._Spinner.gotoAndStop("PearlDown");
_local1._Spinner._xscale = 100;
} else {
_local1._Spinner.gotoAndStop("PearlUp");
_local1._Spinner._xscale = 100;
}
} else if (_local1._FlowerRotate == null) {
_local1._Spinner._xscale = -100;
_local1._Spinner.gotoAndStop("Normal");
} else if (_local1._FlowerRotate.Piece.FlowerType == 1) {
_local1._Spinner.gotoAndStop("Flower");
_local1._Spinner._xscale = 100;
} else if (_local1._FlowerRotate.Piece.FlowerType == 2) {
_local1._Spinner.gotoAndStop("PearlDown");
_local1._Spinner._xscale = 100;
} else {
_local1._Spinner.gotoAndStop("PearlUp");
_local1._Spinner._xscale = 100;
}
}
function Plume_Add(score, bonus, pieces) {
var _local2 = pieces;
var _local1;
var min_x = 99999;
var max_x = -99999;
var min_y = 99999;
var _local3 = -99999;
_local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1] == 1) {
} else {
if (_local2[_local1].Piece._x < min_x) {
min_x = _local2[_local1].Piece._x;
}
if (_local2[_local1].Piece._x > max_x) {
max_x = _local2[_local1].Piece._x;
}
if (_local2[_local1].Piece._y < min_y) {
min_y = _local2[_local1].Piece._y;
}
if (_local2[_local1].Piece._y > _local3) {
_local3 = _local2[_local1].Piece._y;
}
}
_local1++;
}
var plume = Plumes[(_PlumeRef + _PlumeCount) % _PlumeTotal];
plume.TStart = _tm;
plume._x = (min_x + max_x) / 2;
plume._y = (min_y + _local3) / 2;
plume.OrigY = plume._y;
plume.txt.text = score + ((bonus == 1) ? "" : ("x" + bonus));
plume.txt2.text = plume.txt.text;
plume._visible = true;
_PlumeCount++;
if (_PlumeCount >= _PlumeTotal) {
_PlumeCount = _PlumeTotal - 1;
}
}
function Plume_Update() {
var _local3;
var _local1;
var ref = _PlumeRef;
var _local2 = _PlumeCount - 1;
while (_local2 >= 0) {
_local1 = Plumes[(ref + _local2) % _PlumeTotal];
_local3 = _tm - _local1.TStart;
if (_local3 > _PlumeTime) {
_PlumeCount--;
_PlumeRef = (_PlumeRef + 1) % _PlumeTotal;
_local1._visible = false;
} else {
_local1._y = _local1.OrigY - (0.03 * _local3);
_local1._alpha = 100 * (1 - (_local3 / _PlumeTime));
}
_local2--;
}
}
function BombList_Add(piece, loading) {
var _local1 = piece;
if (!loading) {
_local1.bombtick = _root._Settings[_Level].bombtimer;
}
_local1.piece.cnt.BombTick = "B" + String(_local1.bombtick);
_local1.piece.cnt.gotoAndPlay(_local1.piece.cnt.BombTick);
_local1.piece.cnt_dec = loading;
_root.BombList.push(_local1);
}
function BombList_Update() {
var _local1 = _root;
var _local2 = 0;
while (_local2 < _local1.BombList.length) {
if (!_local1.BombList[_local2].piece.cnt_dec) {
_local1.BombList[_local2].piece.cnt_dec = true;
} else {
_local1.BombList[_local2].bombtick--;
}
_local1.BombList[_local2].piece.cnt.BombTick = "B" + String(_local1.BombList[_local2].bombtick);
_local1.BombList[_local2].piece.cnt.gotoAndPlay("B" + String(_local1.BombList[_local2].bombtick));
if (_local1.BombList[_local2].bombtick <= 0) {
_local1.BombExplode(BombList[_local2]);
return;
}
_local1.BombList[_local2].piece._flags = 0;
_local1.JigglePiece(_local1.BombList[_local2], _local1._JiggleLength);
_local1._SoundMask = _local1._SoundMask | _local1.SF.BombWarn;
_local2++;
}
}
function BombList_Remove(piece) {
var _local1 = piece;
var _local2 = CloneArray(BombList, _local1);
delete BombList;
BombList = _local2;
_local1.fBomb = false;
_local1.swapDepths(_local1.ID);
}
function BombExplode(bomb) {
var _local2 = _root;
if (bomb == null) {
} else {
var _local1 = bomb.piece;
_local1.onEnterFrame = _local2.BombExplodeThink;
if ((_local1._flags == 0) || (_local1._flags == undefined)) {
_local2._PA++;
}
_local1.OrigX = _local1._x;
_local1.OrigY = _local1._y;
_local1.TStart = _local2._tm;
_local1.TLength = _local2._BombExplodeLength;
_local1.Exploded = false;
}
}
function BombExplodeThink() {
var _local1 = _root;
var _local2 = this;
if (_local2.cnt.ExplosionDone == true) {
_local2._flags = 0;
_local2.onEnterFrame = null;
_local1._PA--;
_local1._EndGameHeader = "gameend_gameover";
_local1._EndGameInfo = "gameendinfo_bomb";
_local1._SoundMask = _local1._SoundMask | _local1.SF.GameOver;
_local1._GameOver = true;
} else if (!_local2.Exploded) {
_local2.Exploded = true;
_local2.cnt.gotoAndPlay("B0");
_local1._SoundMask = _local1._SoundMask | _local1.SF.BombExplode;
}
}
function LookForMatches(fBombUpdate) {
if ((MatchedPieces != null) && (MatchedPieces.length > 0)) {
MatchedPieces.splice(0);
}
var i;
var oldScore = _root._Score;
var Combos = new Array();
i = 0;
while (i < SelectedPieces.length) {
CheckMatch(SelectedPieces[i], Combos, true);
if (_GameOver) {
delete Combos;
delete _root.SelectedPieces;
return;
}
i++;
}
if ((Combos.length > 0) || (_root._Score != oldScore)) {
_DoRotate = false;
if (Combos.length > 0) {
UpdateScoreboard(Combos, fBombUpdate);
}
if (fBombUpdate) {
_BombsUpdate = true;
_BombFreq--;
}
if (!_MadeMove) {
_MadeMove = true;
_tlast = _tm;
}
} else if (fBombUpdate && (MatchedPieces.length == 0)) {
_RotationTry++;
if ((_FlowerRotate == null) && (_RotationTry <= 3)) {
PieceBoard.doRotate();
return;
}
_HintTime = -1;
_BombsUpdate = true;
_DoRotate = false;
_RotationTry = 1;
if (_FlowerRotate == null) {
Stats.RotFail++;
_SoundMask = _SoundMask | SF.InvalidRotation;
if (_GameType == GT.Timed) {
_tcurr = _tcurr - _Settings[_Level].t_bad;
}
}
}
_DoRotate = false;
delete Combos;
if ((_root._GameType == _root.GT.Survival) && (MatchedPieces.length > 0)) {
var invisArray = new Array();
var _local2 = 0;
while (_local2 < _root._BoardWidth) {
var _local3 = _root._BoardHeight;
while (_local3 >= 0) {
if ((_local3 == _root._BoardHeight) && ((_local2 % 2) == 0)) {
} else if (!Board[_local2][_local3].Piece.hidden) {
var _local1 = _root._BoardHeight;
while (_local1 > _local3) {
if ((_local1 == _root._BoardHeight) && ((_local2 % 2) == 0)) {
} else if (Board[_local2][_local1].Piece.hidden) {
if (ArrayContains(invisArray, Board[_local2][_local1]) == false) {
invisArray.push(Board[_local2][_local1]);
}
}
_local1--;
}
}
_local3--;
}
_local2++;
}
if (invisArray.length > 0) {
CollapsePieces(invisArray);
}
delete invisArray;
}
if (MatchedPieces.length > 0) {
_Spinner._visible = false;
if (_GameType == GT.Timed) {
_tcurr = _tcurr + (_Settings[_Level].t_good * MatchedPieces.length);
if (_tcurr > _CurrMax) {
_tcurr = _CurrMax;
}
JarUpdate();
}
CollapsePieces(MatchedPieces);
}
_CursorCol = -1;
delete _root.SelectedPieces;
}
function CheckMatch(boardLoc, Group, fUpdate) {
var i;
var j;
var _local3;
var fFound = false;
var currPiece = boardLoc.Piece;
var clr = currPiece.Color;
var _local2 = boardLoc.nl;
if ((_GameType == GT.Survival) && (currPiece.hidden)) {
return(false);
}
var d = ((currPiece._flags != PF.Drop) ? 0 : (currPiece.Piece.Ty - currPiece.Piece._y));
var _local1;
i = 0;
while (i < 6) {
_local1 = Board[_local2[i].col][_local2[i].row];
__p[i] = ((_local2[i].fIsNeighbor && ((((_local1.Piece._flags == 0) || ((_local1.Piece._flags == PF.Drop) && (_local1.Piece._y > ((_local1.Piece.Ty - 11) - d)))) || ((_local1.Piece._flags == PF.Collapse) && (_local1.Piece.TStart >= (_tm - 500)))) || (!fUpdate))) ? (_local1) : null);
i++;
}
var nFlowers = Flower_Match(__p, fUpdate);
if (fUpdate && (boardLoc.Piece.Flowered != _tm)) {
nFlowers = nFlowers + Flower_Ring(boardLoc, __p, fUpdate);
}
if (nFlowers > 0) {
CheckForLevelEnd(nFlowers);
return(true);
}
var ref1;
var ref2;
if (_root._GameType != _root.GT.Survival) {
i = 0;
while (i < 6) {
ref1 = (i + 5) % 6;
ref2 = i % 6;
if ((__p[ref1].Piece.fBonus && (__p[ref2].Piece.fBonus)) && (currPiece.fBonus)) {
if (!fUpdate) {
return(true);
}
_root.AchievementToast.EarnAchievement("BonusCluster");
fFound = true;
_SoundMask = _SoundMask | SF.ThreeBonusCluster;
GetClusterList(boardLoc, ref1, ref2, __pos);
if (Group != null) {
AddMatch(Group, __pos, true);
}
var pc = new Array(6);
var j = 0;
while (j < 3) {
AddMajesty(__pos[j].Piece, "BonusEffect");
_local2 = __pos[j].nl;
_local3 = 0;
while (_local3 < 6) {
_local1 = Board[_local2[_local3].col][_local2[_local3].row];
pc[_local3] = ((_local2[_local3].fIsNeighbor && ((((_local1.Piece._flags == 0) || ((_local1.Piece._flags == PF.Drop) && (_local1.Piece._y > ((_local1.Piece.Ty - 11) - d)))) || ((_local1.Piece._flags == PF.Collapse) && (_local1.Piece.TStart >= (_tm - 500)))) || (!fUpdate))) ? (_local1) : null);
if (((pc[_local3] != null) && (pc[_local3].Piece.FlowerType == 0)) && (pc[_local3].Piece._thinkflags != 1)) {
if (!ArrayContains(MatchedPieces, pc[_local3])) {
MatchedPieces.push(pc[_local3]);
}
}
_local3++;
}
j++;
}
delete pc;
} else if ((__p[ref1].Piece.Color == clr) && (__p[ref2].Piece.Color == clr)) {
if (!fUpdate) {
return(true);
}
if (currPiece.FlowerType >= 2) {
_root.AchievementToast.EarnAchievement("PearlCluster");
}
fFound = true;
GetClusterList(boardLoc, ref1, ref2, __pos);
if (Group != null) {
AddMatch(Group, __pos, false);
}
j = 0;
while (j < 3) {
if (__pos[j].Piece.fBonus) {
AddMajesty(__pos[j].Piece, "BonusEffect");
}
if (!ArrayContains(MatchedPieces, __pos[j])) {
if (((__pos[j].Piece.FlowerType < 2) && (__pos[j].Piece._thinkflags != 1)) && (__pos[j].Piece.Flowered != _tm)) {
MatchedPieces.push(__pos[j]);
}
}
j++;
}
var types = SpecialPieceCount(__pos);
if ((types.cBombs > 0) && (types.cBonus < 1)) {
_SoundMask = _SoundMask | SF.BombRemove;
} else if ((types.cBombs > 0) && (types.cBonus > 0)) {
_SoundMask = _SoundMask | SF.BombBonus;
var pc;
var x = 0;
while (x < _BoardWidth) {
var y = 0;
while (y < (_BoardHeight + 1)) {
if ((y == _BoardHeight) && ((x % 2) == 0)) {
} else {
pc = Board[x][y];
if ((pc.Piece.Color == clr) && (pc.Piece._flags == 0)) {
if (!ArrayContains(MatchedPieces, pc)) {
MatchedPieces.push(pc);
}
}
}
y++;
}
x++;
}
}
}
i++;
}
} else {
i = 0;
while (i < 6) {
ref1 = (i + 5) % 6;
ref2 = i % 6;
if (((((!__p[ref1].Piece.hidden) && (__p[ref1].Piece.fBonus)) && (!__p[ref2].Piece.hidden)) && (__p[ref2].Piece.fBonus)) && (currPiece.fBonus)) {
if (!fUpdate) {
return(true);
}
_root.AchievementToast.EarnAchievement("BonusCluster");
fFound = true;
_SoundMask = _SoundMask | SF.ThreeBonusCluster;
GetClusterList(boardLoc, ref1, ref2, __pos);
if (Group != null) {
AddMatch(Group, __pos, true);
}
var pc = new Array(6);
var j = 0;
while (j < 3) {
AddMajesty(__pos[j].Piece, "BonusEffect");
_local2 = __pos[j].nl;
_local3 = 0;
while (_local3 < 6) {
_local1 = Board[_local2[_local3].col][_local2[_local3].row];
pc[_local3] = (((_local2[_local3].fIsNeighbor && (!_local1.Piece.hidden)) && ((((_local1.Piece._flags == 0) || ((_local1.Piece._flags == PF.Drop) && (_local1.Piece._y > ((_local1.Piece.Ty - 11) - d)))) || ((_local1.Piece._flags == PF.Collapse) && (_local1.Piece.TStart >= (_tm - 500)))) || (!fUpdate))) ? (_local1) : null);
if (((pc[_local3] != null) && (pc[_local3].Piece.FlowerType == 0)) && (pc[_local3].Piece._thinkflags != 1)) {
if (!ArrayContains(MatchedPieces, pc[_local3])) {
MatchedPieces.push(pc[_local3]);
}
}
if ((_root._GameType == _root.GT.Survival) && (fUpdate)) {
if ((pc[_local3] != null) && (pc[_local3].Piece.locked)) {
pc[_local3].Piece._alpha = 100;
pc[_local3].Piece.locked = false;
pc[_local3].Piece.piece.lock.gotoAndStop("unlocked");
}
}
_local3++;
}
j++;
}
delete pc;
} else if ((((!__p[ref1].Piece.hidden) && (__p[ref1].Piece.Color == clr)) && (!__p[ref2].Piece.hidden)) && (__p[ref2].Piece.Color == clr)) {
if (!fUpdate) {
return(true);
}
if (currPiece.FlowerType >= 2) {
_root.AchievementToast.EarnAchievement("PearlCluster");
}
fFound = true;
GetClusterList(boardLoc, ref1, ref2, __pos);
if (Group != null) {
AddMatch(Group, __pos, false);
}
j = 0;
while (j < 3) {
if (__pos[j].Piece.fBonus) {
AddMajesty(__pos[j].Piece, "BonusEffect");
}
if (!ArrayContains(MatchedPieces, __pos[j])) {
if (((__pos[j].Piece.FlowerType < 2) && (__pos[j].Piece._thinkflags != 1)) && (__pos[j].Piece.Flowered != _tm)) {
MatchedPieces.push(__pos[j]);
}
}
j++;
}
if (fUpdate) {
if ((((!__p[ref1].Piece.hidden) && (__p[ref1].Piece.fBonus)) || ((!__p[ref2].Piece.hidden) && (__p[ref2].Piece.fBonus))) || (currPiece.fBonus)) {
var pc = new Array(6);
var j = 0;
while (j < 3) {
_local2 = __pos[j].nl;
_local3 = 0;
while (_local3 < pc.length) {
_local1 = Board[_local2[_local3].col][_local2[_local3].row];
pc[_local3] = (((_local2[_local3].fIsNeighbor && (!_local1.hidden)) && ((((_local1.Piece._flags == 0) || ((_local1.Piece._flags == PF.Drop) && (_local1.Piece._y > ((_local1.Piece.Ty - 11) - d)))) || ((_local1.Piece._flags == PF.Collapse) && (_local1.Piece.TStart >= (_tm - 500)))) || (!fUpdate))) ? _local1 : null);
if (pc[_local3] != null) {
pc[_local3].Piece.locked = false;
pc[_local3].Piece._alpha = 100;
pc[_local3].Piece.piece.lock.gotoAndStop("unlocked");
}
_local3++;
}
j++;
}
delete pc;
}
}
var types = SpecialPieceCount(__pos);
if ((types.cBombs > 0) && (types.cBonus < 1)) {
_SoundMask = _SoundMask | SF.BombRemove;
} else if ((types.cBombs > 0) && (types.cBonus > 0)) {
_SoundMask = _SoundMask | SF.BombBonus;
var pc;
var x = 0;
while (x < _BoardWidth) {
var y = 0;
while (y < (_BoardHeight + 1)) {
if ((y == _BoardHeight) && ((x % 2) == 0)) {
} else {
pc = Board[x][y];
if ((pc.Piece.Color == clr) && (pc.Piece._flags == 0)) {
if (!ArrayContains(MatchedPieces, pc)) {
MatchedPieces.push(pc);
}
}
}
y++;
}
x++;
}
}
}
i++;
}
}
return(fFound);
}
function AddMatch(Group, combo, fBonusCluster) {
var _local2 = Group;
var _local3 = combo;
if (!fBonusCluster) {
var i = 0;
while (i < _local2.length) {
var _local1 = 0;
while (_local1 < _local3.length) {
if (ArrayContains(_local2[i], _local3[_local1])) {
AddCombo(_local2[i], _local3);
return;
}
_local1++;
}
i++;
}
var ref = new Array();
AddCombo(ref, _local3);
_local2.push(ref);
} else {
var ref = new Array();
ref.push(1);
AddCombo(ref, _local3);
var fFound = false;
var i = 0;
while ((i < _local2.length) && (!fFound)) {
var _local1 = 0;
while (_local1 < ref.length) {
if (!ArrayContains(_local2[i], ref[_local1])) {
fFound = false;
break;
}
fFound = true;
_local1++;
}
i++;
}
if (!fFound) {
_local2.push(ref);
}
}
}
function AddCombo(targ, combo) {
var _local2 = combo;
var _local3 = targ;
var _local1 = 0;
while (_local1 < _local2.length) {
if (!ArrayContains(_local3, _local2[_local1])) {
_local3.push(_local2[_local1]);
}
_local1++;
}
}
function GetClusterList(boardLoc, ref1, ref2, pos) {
var _local2 = ref1;
var _local3 = ref2;
var col = boardLoc.col;
var row = boardLoc.row;
var _local1 = boardLoc.nl;
if ((col != _local1[_local2].col) && (col != _local1[_local3].col)) {
pos[0] = Board[col][row];
pos[1] = Board[_local1[_local2].col][((_local1[_local2].row < _local1[_local3].row) ? (_local1[_local2].row) : (_local1[_local3].row))];
pos[2] = Board[_local1[_local2].col][((_local1[_local2].row < _local1[_local3].row) ? (_local1[_local3].row) : (_local1[_local2].row))];
} else if ((_local1[_local2].col != col) && (_local1[_local2].col != _local1[_local3].col)) {
pos[0] = Board[_local1[_local2].col][_local1[_local2].row];
pos[1] = Board[col][((row < _local1[_local3].row) ? (row) : (_local1[_local3].row))];
pos[2] = Board[col][((row < _local1[_local3].row) ? (_local1[_local3].row) : (row))];
} else if ((_local1[_local3].col != col) && (_local1[_local3].col != _local1[_local2].col)) {
pos[0] = Board[_local1[_local3].col][_local1[_local3].row];
pos[1] = Board[col][((row < _local1[_local2].row) ? (row) : (_local1[_local2].row))];
pos[2] = Board[col][((row < _local1[_local2].row) ? (_local1[_local2].row) : (row))];
}
}
function FindNeighbors(col, row, nl) {
var _local2 = nl;
var _local1 = col % 2;
_local2[0] = {fIsNeighbor:row > 0, col:col, row:row - 1};
_local2[1] = {fIsNeighbor:(col > 0) && (row > (_local1 - 1)), col:col - 1, row:row - _local1};
_local2[2] = {fIsNeighbor:(col > 0) && (row < _BoardHeight), col:col - 1, row:row + (1 - _local1)};
_local2[3] = {fIsNeighbor:row < (_BoardHeight - (1 - _local1)), col:col, row:row + 1};
_local2[4] = {fIsNeighbor:(col < (_BoardWidth - 1)) && (row < _BoardHeight), col:col + 1, row:row + (1 - _local1)};
_local2[5] = {fIsNeighbor:(col < (_BoardWidth - 1)) && (row > (_local1 - 1)), col:col + 1, row:row - _local1};
}
function RefillBoard() {
_root._Score = _root._Score + _root._BonusCounter._SurvivalBonus;
_root.AchievementToast.UpdateScore(_root._Score, false);
if (_root._SurvivalLevel >= 50) {
_root.AchievementToast.EarnAchievement("Survival");
_SoundMask = _SoundMask | SF.WinGame;
_root._EndGameHeader = "gameend_youwin";
_root._EndGameInfo = "gameendinfo_survived";
_root._GameWin = true;
_root._GameOver = true;
} else {
var _local3;
var _local2;
var tmp;
var _local1;
var colHeight;
var currTime = (200 + _tm);
var cnt = 0;
var pscale = (_PieceScale / 100);
var oldColor = -1;
var oldBonus = false;
_local3 = 0;
while (_local3 < _BoardWidth) {
colHeight = (((1.25 * pscale) * _PieceHeight) * ((_BoardHeight + 1) + (((_local3 % 2) == 0) ? 1 : 0))) + 100;
_local2 = _BoardHeight;
while (_local2 >= 0) {
if ((_local2 == _BoardHeight) && ((_local3 % 2) == 0)) {
} else {
_local1 = Board[_local3][_local2].Piece;
if (_local1.hidden) {
cnt++;
currTime = currTime + Math.floor(Math.random() * 100);
_local1._board = Board[_local3][_local2];
_local1._x = ((pscale * _local3) * 3) * _QuarterWidth;
_local1._y = ((pscale * _PieceHeight) * (_local2 + (((_local3 % 2) == 0) ? 0.5 : 0))) - colHeight;
_local1.FlowerType = (fPieceReset ? 0 : (_local1.FlowerType));
_local1.Oy = _local1._y;
_local1._visible = true;
_local1.updated = false;
_local1.locked = false;
_local1.piece.lock.gotoAndStop("unlocked");
_local1._alpha = 100;
_local1.hidden = false;
GeneratePieceColor(_local1);
_local1._thinkflags = 0;
_local1.Ty = _local1._y + colHeight;
_local1.TStart = currTime;
_root.Think_Add(_local1, _root.DropThink, _root.PF.Drop);
tmp = Stats.Pieces + 1;
if (_Settings[_Level].colors > 2) {
while ((_local1.Color == oldColor) || (CheckMatch(Board[_local3][_local2], null, false))) {
GeneratePieceColor(_local1);
}
oldColor = _local1.Color;
oldBonus = _local1.fBonus;
}
Stats.Pieces = tmp;
}
}
_local2--;
}
_local3++;
}
if (cnt > 0) {
_root._SurvivalLevel++;
_root.panel_level.LevelInfo.text = _root._SurvivalLevel;
_root.panel_level.LevelInfo2.text = _root._SurvivalLevel;
}
_root._HintTime = -1;
if (cnt == 0) {
_SoundMask = _SoundMask | SF.GameOver;
_root._EndGameHeader = "gameend_gameover";
_root._EndGameInfo = "gameendinfo_nomoves";
_root._GameOver = true;
}
}
}
function DropThink(o) {
var d = (_root._tm - o.TStart);
if (d <= 0) {
} else {
var y = (o.Oy + (((_root._DropAccel * d) * d) * d));
var b = _root.Board[o._board.col][o._board.row + 1];
if ((b != null) && (((y + _root._PieceHeight) - 0.1) > b.Piece._y)) {
y = (b.Piece._y - _root._PieceHeight) + 0.1;
if (y < o._y) {
y = o._y;
o.Oy = y;
o.TStart = o.TStart + (d / 4);
}
}
if (y >= o.Ty) {
o._y = o.Ty;
o._x = (o._board.col * 1.5) * _root._LegLength;
if (!o.locked) {
o._alpha = 100;
}
o._xscale = 100;
o._yscale = 100;
o._visible = true;
_root.Think_Remove(o, _root.PF.Check);
if ((!o.fBomb) && (o.FlowerType == 0)) {
o.swapDepths(o.ID);
} else {
o.swapDepths(_root._DepthOffset + o.ID);
}
if ((_root._GameType != _root.GT.Survival) || (!o.hidden)) {
_root._SoundMask = _root._SoundMask | _root.SF.Landing;
}
if (o.FlowerType > 0) {
var StartRow = o._board.row;
var _local3 = o._board.col;
var row = (StartRow + 1);
while (row <= _root._BoardHeight) {
var RowDiff = (row - StartRow);
var ColDiff = ((2 * RowDiff) - (((_local3 % 2) == 1) ? 1 : 2));
var _local1 = _local3 - ColDiff;
while (_local1 <= (_local3 + ColDiff)) {
var _local2 = _root.Board[_local1][row];
if (!_local2) {
} else {
_local2.Piece.piece.glow2._visible = true;
var SlowUp = (((RowDiff - 1) * 20) + ((_local1 - _local3) * 3));
if ((((16 + _local1) - _local3) % 2) == 1) {
SlowUp = SlowUp + (((_local3 % 2) == 1) ? 10 : -10);
}
_local2.Piece.piece.glow2.slowup = SlowUp;
_local2.Piece.piece.glow2.gotoAndPlay(1);
}
_local1++;
}
row++;
}
}
_root.PieceUpdateList.push(o._board);
} else {
o._x = (o._board.col * 1.5) * _root._LegLength;
o._y = y;
if (!o.updated) {
if (!o.locked) {
o._alpha = 100;
}
o._xscale = 100;
o._yscale = 100;
o._visible = true;
o.updated = true;
}
}
}
}
function DropPieces(piece) {
var _local3 = _root;
var _local1;
var col = piece.col;
var row = piece.row;
var _local2 = new Array();
_local2.push(piece);
var i = (row - 1);
while (i >= 0) {
_local1 = _local3.Board[col][i];
_local2.push(_local1);
i--;
}
var tmp = piece.Piece;
tmp._y = (_local2[_local2.length - 1].Piece._y - (_local3._PieceHeight * 2)) - 100;
if (_local3._GameType == _local3.GT.Survival) {
if (!tmp.hidden) {
tmp.hidden = true;
tmp.locked = false;
tmp.piece._alpha = 100;
tmp.gotoAndStop("Hidden");
}
}
GeneratePieceColor(tmp);
var i = 0;
while (i < (_local2.length - 1)) {
_local2[i].Piece = _local2[i + 1].Piece;
i++;
}
_local2[_local2.length - 1].Piece = tmp;
var fSkip = false;
var pscale = ((_PieceHeight * _PieceScale) / 100);
var i = 0;
while (i < _local2.length) {
_local1 = _local2[i].Piece;
_local1._board = _local2[i];
_local1._thinkflags = 0;
_local1.updated = false;
_local1._x = (_local2[i].col * 1.5) * _LegLength;
_local1.Ty = pscale * (_local2[i].row + (((_local2[i].col % 2) == 0) ? 0.5 : 0));
if (fSkip || ((_local1._flags != 0) && (_local1._flags != _local3.PF.Drop))) {
fSkip = true;
} else if ((_local1._flags == 0) || (_local1._flags == _local3.PF.Drop)) {
_local3.Think_Add(_local1, _local3.DropThink, _local3.PF.Drop);
_local1.Oy = _local1._y;
_local1.TStart = _local3._tm;
_local1.swapDepths(((2 + (((!_local1.fBomb) && (_local1.FlowerType < 2)) ? 0 : 1)) * _local3._DepthOffset) + _local1.ID);
}
i++;
}
if ((_local3._GameType == GT.Survival) && (_local3.CheckGameWin())) {
_SoundMask = _SoundMask | SF.WinGame;
_local3._EndGameHeader = "gameend_youwin";
_local3._EndGameInfo = "gameendinfo_allremoved";
_local3._GameOver = true;
_local3._GameWin = true;
_local3._Score = _local3._Score + 250000;
_local3.AchievementToast.EarnAchievement("Survival");
_local3.AchievementToast.UpdateScore(_local3._Score, false);
}
}
function DropAllPieces(fPieceReset) {
var _local3;
var _local2;
var tmp;
var _local1;
var colHeight;
var currTime = (200 + _tm);
var pscale = (_PieceScale / 100);
var oldColor = -1;
var oldBonus = false;
var colHeightMultiplier = ((1.5 * pscale) * _PieceHeight);
var pscale3quarterwidth = ((pscale * 3) * _QuarterWidth);
var RootDropThink = _root.DropThink;
var RootPFDrop = _root.PF.Drop;
_local3 = 0;
while (_local3 < _BoardWidth) {
colHeight = (colHeightMultiplier * ((_BoardHeight + 1) + (((_local3 % 2) == 0) ? 1 : 0))) + 100;
var pscale3quarterwidthx = (pscale3quarterwidth * _local3);
var pscalepieceheightmult = (pscale * _PieceHeight);
var pieceyoffset = (_root._LoadGame ? 0 : (colHeight + 10));
_local2 = _BoardHeight;
while (_local2 >= 0) {
if ((_local2 == _BoardHeight) && ((_local3 % 2) == 0)) {
} else {
_local1 = Board[_local3][_local2].Piece;
currTime = currTime + Math.floor(Math.random() * 100);
_local1._board = Board[_local3][_local2];
_local1._x = pscale3quarterwidthx;
var PieceY = ((pscalepieceheightmult * (_local2 + (((_local3 % 2) == 0) ? 0.5 : 0))) - pieceyoffset);
_local1._y = PieceY;
_local1.Oy = PieceY;
_local1.updated = false;
if (!_root._LoadGame) {
GeneratePieceColor(_local1);
if (fPieceReset) {
_local1.FlowerType = 0;
}
_local1.hidden = false;
_local1.locked = false;
_local1.piece.lock.gotoAndStop("unlocked");
} else {
_local1._visible = true;
}
_local1._alpha = 100;
if (!_root._LoadGame) {
_local1._thinkflags = 0;
_local1.Ty = (PieceY + colHeight) + 10;
_local1.TStart = currTime;
_root.Think_Add(_local1, RootDropThink, RootPFDrop);
tmp = Stats.Pieces + 1;
if (_Settings[_Level].colors > 2) {
if (_GameType == GT.Survival) {
do {
GeneratePieceColor(_local1);
} while ((_local1.Color == oldColor) || (CheckMatch(Board[_local3][_local2], null, false)));
} else {
do {
GeneratePieceColor(_local1);
} while ((_local1.Color == oldColor) || (_local1.fBonus && (oldBonus)));
}
oldColor = _local1.Color;
oldBonus = _local1.fBonus;
}
Stats.Pieces = tmp;
}
}
_local2--;
}
_local3++;
}
}
function Flower_Match(ref, fUpdate) {
var _local2 = ref;
var _local1;
var _local3 = new Array(6);
var nFlowerFound = 0;
_local1 = 0;
while (_local1 < _local2.length) {
if ((((((((_local2[_local1] == null) || ((_local2[_local1].FlCheck == _tm) && (_PiecesDropped))) || (_local2[_local1].row < 1)) || (_local2[_local1].row > (_BoardHeight - (((_local2[_local1].col % 2) == 0) ? 2 : 1)))) || (_local2[_local1].col < 1)) || (_local2[_local1].col > (_BoardWidth - 2))) || (_local2[_local1].Piece.Flowered == _tm)) || ((_GameType == GT.Survival) && (_local2[_local1].piece.hidden))) {
} else {
_local2[_local1].FlCheck = _tm;
nFlowerFound = nFlowerFound + Flower_Ring(_local2[_local1], _local3, fUpdate);
}
_local1++;
}
return(nFlowerFound);
}
function Flower_Ring(r, p, fUpdate) {
var i;
var _local2;
var nl = r.nl;
var d = ((r.Piece._flags != PF.Drop) ? 0 : (r.Piece.Ty - r.Piece._y));
if (_GameType == GT.Survival) {
var flowerArray = new Array();
}
i = 0;
while (i < nl.length) {
_local2 = Board[nl[i].col][nl[i].row];
p[i] = (((nl[i].fIsNeighbor && ((_GameType != GT.Survival) || (!_local2.Piece.hidden))) && ((((_local2.Piece._flags == 0) || ((_local2.Piece._flags == PF.Drop) && (_local2.Piece._y > ((_local2.Piece.Ty - 11) - d)))) || ((_local2.Piece._flags == PF.Collapse) && (_local2.Piece.TStart >= (_tm - 500)))) || (!fUpdate))) ? (_local2) : null);
if ((p[i] == null) || (p[i].Piece.Color != p[0].Piece.Color)) {
return(0);
}
i++;
}
if (!fUpdate) {
return(1);
}
if (_GameType == GT.Timed) {
if (_BonusCount < _BonusMax) {
_BonusCount++;
_CurrMax = _CurrMax + _BonusTime;
}
JarRefill();
}
if (!r.Piece.fBonus) {
var j = 0;
while (j < p.length) {
Flower_PieceAnim(p[j], r.Piece, j == 0);
j++;
}
} else {
Stats.Bonus++;
AddMajesty(r.Piece, "BonusEffect");
var j;
var _local1;
var nl;
var pc = new Array(6);
var j = 0;
while (j < p.length) {
nl = p[j].nl;
Flower_PieceAnim(p[j], r.Piece, j == 0);
_local1 = 0;
while (_local1 < pc.length) {
_local2 = Board[nl[_local1].col][nl[_local1].row];
pc[_local1] = ((nl[_local1].fIsNeighbor && ((_local2.Piece._flags == 0) || ((_local2.Piece._flags == PF.Collapse) && (_tm == _local2.Piece.TStart)))) ? (_local2) : null);
if (((pc[_local1] != null) && (pc[_local1] != r)) && (pc[_local1].Piece.FlowerType == 0)) {
Flower_PieceAnim(pc[_local1], r.Piece, false);
}
_local1++;
}
j++;
}
delete pc;
}
var types = SpecialPieceCount(p);
var mult = Number(_Level + 1);
var ft = r.Piece.FlowerType;
var newScore;
if (r.Piece.fBomb) {
BombList_Remove(r.Piece);
}
if (_GameType == GT.Survival) {
if (ft == 0) {
if (!ArrayContains(flowerArray, r)) {
flowerArray.push(r);
var x = 0;
while (x < _root._BoardWidth) {
var _local3 = _root._BoardHeight;
while (_local3 >= 0) {
if ((_local3 == _root._BoardHeight) && ((x % 2) == 0)) {
} else {
_local2 = Board[x][_local3].Piece;
if (!_local2.hidden) {
if (_local2.Color == r.Piece.Color) {
if (!ArrayContains(flowerArray, Board[x][_local3])) {
flowerArray.push(Board[x][_local3]);
}
}
_local2.locked = false;
_local2.piece.lock.gotoAndStop("unlocked");
_local2._alpha = 100;
}
}
_local3--;
}
x++;
}
}
}
} else {
r.Piece.Flowered = _tm;
if (ft < 2) {
r.Piece.FlowerType = ((p[0].Piece.Color <= _MaxColors) ? 1 : (2 + Math.floor(Math.random() * 2)));
GeneratePieceColor(r.Piece);
}
}
if (p[0].Piece.Color <= _MaxColors) {
Stats.Flowers++;
_SoundMask = _SoundMask | SF.Flower;
newScore = ((ft == 0) ? 1000 : (((ft == 1) ? 1500 : 2500)));
AddMajesty(r.Piece, "CreateFlower");
_root.AchievementToast.EarnAchievement("Flower");
} else {
Stats.Pearls++;
_SoundMask = _SoundMask | SF.Pearl;
newScore = ((ft < 2) ? 10000 : 15000);
AddMajesty(r.Piece, ((r.Piece.FlowerType == 2) ? "CreatePearlDown" : "CreatePearlUp"));
if ((p[0].Piece.Color > (_MaxColors + 1)) && (!_GameOver)) {
newScore = ((ft < 1) ? 200000 : 250000);
_EndGameHeader = "gameend_youwin";
_EndGameInfo = "gameendinfo_pearlflower";
_GameOver = true;
_GameWin = true;
_root.AchievementToast.EarnAchievement("PearlFlower");
CollapseWin();
} else {
_root.AchievementToast.EarnAchievement("BlackPearl");
_root.blitzen.gotoAndPlay(1);
_root.blitzen._visible = true;
}
}
Plume_Add(newScore * mult, types.bonusMult, p);
_root._Score = _root._Score + ((newScore * mult) * types.bonusMult);
if (ArrayContains(MatchedPieces, r)) {
var tmp = CloneArray(MatchedPieces, r);
delete MatchedPieces;
MatchedPieces = tmp;
}
if (r.Piece.fBomb) {
BombList_Remove(r.Piece);
}
if ((_GameType == GT.Survival) && (flowerArray.length > 0)) {
CollapsePieces(flowerArray);
}
return(1);
}
function Flower_PieceAnim(pos, ref, fRecycle) {
var _local2 = ref;
var _local3 = pos;
var _local1 = _local3.Piece;
if (_local1.Color < (_MaxColors + 2)) {
_local1.FlowerType = ((fRecycle && (_local2.FlowerType > 0)) ? (((_local1.Color == (_MaxColors + 1)) ? (_local2.FlowerType) : 1)) : 0);
_local1._thinkflags = 1;
_local1.Bx = _local2._x;
_local1.By = _local2._y;
_local1.Ox = _local1._x;
_local1.Oy = _local1._y;
_local1.Dx = _local2._x - _local1._x;
_local1.Dy = _local2._y - _local1._y;
_local1.swapDepths((2 * _root._DepthOffset) + _local1.ID);
}
if (!ArrayContains(MatchedPieces, _local3)) {
MatchedPieces.push(_local3);
}
}
function Flower_RotateCheck() {
var _local2 = _root;
var i;
var _local3;
var _local1;
var sp = _local2.SelectedPieces;
_local2._FlowerRotate = null;
if ((_local2.NewCursorFlowerCol == -1) || (_local2.NewCursorFlowerRow == -1)) {
} else {
i = 0;
while (i < 3) {
if (sp[i] == _local2.Board[_local2.NewCursorFlowerCol][_local2.NewCursorFlowerRow]) {
if (sp[i].Piece.FlowerType > 0) {
_local1 = sp[i].nl;
if (sp[i].Piece.FlowerType == 1) {
_local3 = 0;
while (_local3 < _local1.length) {
if (!_local1[_local3].fIsNeighbor) {
return;
}
_local3++;
}
} else {
var up = (sp[i].Piece.FlowerType == 3);
if (((!_local1[(up ? 0 : 1)].fIsNeighbor) || (!_local1[(up ? 2 : 3)].fIsNeighbor)) || (!_local1[(up ? 4 : 5)].fIsNeighbor)) {
} else {
_local2._FlowerRotate = sp[i];
_local2._Spinner._x = sp[i].Piece._x;
_local2._Spinner._y = sp[i].Piece._y;
if (_local2._FlowerRotate.Piece.FlowerType == 1) {
delete _local2.SelectedPieces;
_local2.SelectedPieces = new Array(6);
_local3 = 0;
while (_local3 < _local1.length) {
_local2.SelectedPieces[5 - _local3] = _local2.Board[_local1[_local3].col][_local1[_local3].row];
_local3++;
}
} else {
var up = (_local2._FlowerRotate.Piece.FlowerType == 3);
_local2.SelectedPieces[2] = _local2.Board[_local1[(up ? 0 : 1)].col][_local1[(up ? 0 : 1)].row];
_local2.SelectedPieces[1] = _local2.Board[_local1[(up ? 2 : 3)].col][_local1[(up ? 2 : 3)].row];
_local2.SelectedPieces[0] = _local2.Board[_local1[(up ? 4 : 5)].col][_local1[(up ? 4 : 5)].row];
}
return;
i++;
continue;
}
}
_local2._FlowerRotate = sp[i];
_local2._Spinner._x = sp[i].Piece._x;
_local2._Spinner._y = sp[i].Piece._y;
if (_local2._FlowerRotate.Piece.FlowerType == 1) {
delete _local2.SelectedPieces;
_local2.SelectedPieces = new Array(6);
_local3 = 0;
while (_local3 < _local1.length) {
_local2.SelectedPieces[5 - _local3] = _local2.Board[_local1[_local3].col][_local1[_local3].row];
_local3++;
}
} else {
var up = (_local2._FlowerRotate.Piece.FlowerType == 3);
_local2.SelectedPieces[2] = _local2.Board[_local1[(up ? 0 : 1)].col][_local1[(up ? 0 : 1)].row];
_local2.SelectedPieces[1] = _local2.Board[_local1[(up ? 2 : 3)].col][_local1[(up ? 2 : 3)].row];
_local2.SelectedPieces[0] = _local2.Board[_local1[(up ? 4 : 5)].col][_local1[(up ? 4 : 5)].row];
}
return;
}
}
i++;
}
}
}
function Flower_RotatePieces() {
var _local2 = _root;
var _local1 = _local2._FlowerRotate.Piece;
_local2.AddMajesty(_local1, ((_local1.FlowerType == 1) ? "RotateFlower" : "RotatePearl"));
if (_local1.FlowerType == 1) {
RotateSingle(_local1._x, _local1._y, _local1, null, 60, _local2.SelectedPieces.length);
} else {
_local2.SelectedPieces[0].Piece.RotPearl = true;
_local2.SelectedPieces[1].Piece.RotPearl = true;
_local2.SelectedPieces[2].Piece.RotPearl = true;
RotateSingle(_local1._x, _local1._y, _local1, null, 120, _local2.SelectedPieces.length);
}
}
function CollapseThink(o) {
var _local1 = o;
var _local2 = _root;
var _local3 = 1 - ((_local2._tm - _local1.TStart) / _local1.TLength);
if (_local3 > 1) {
} else if (_local3 <= 0) {
_local2.Think_Remove(_local1, 0);
if (_local1._thinkflags == 0) {
_local2.PieceUpdateList.push(_local1._board);
} else if (_local2._PA < 1) {
_local2._GameWin = true;
_local2._SoundMask = _local2._SoundMask | _local2.SF.WinGame;
}
_local1.locked = false;
_local1._visible = false;
_local1._thinkflags = 0;
_local1.FlowerType = 0;
} else {
if ((_local1._thinkflags > 0) && ((_local1._thinkflags & 2) == 0)) {
_local1._thinkflags = _local1._thinkflags | 2;
_local2._SoundMask = _local2._SoundMask | _local2.SF.SuccessfulCluster;
}
_local1._xscale = 100 * _local3;
_local1._yscale = 100 * _local3;
}
}
function CollapseFlowerThink(o) {
var _local1 = o;
var _local2 = (_root._tm - _local1.TStart) / _local1.TLength;
if (_local2 < 0) {
} else if (_local2 >= 1) {
_local1.locked = false;
_local1._visible = false;
_local1._x = _local1.Ox;
_local1._y = _local1.Oy;
_local1._thinkflags = 0;
_root.Think_Remove(_local1, 0);
_root.PieceUpdateList.push(_local1._board);
} else {
var _local3 = 1 + _local2;
_local1._x = _local1.Bx - (_local1.Dx * _local3);
_local1._y = _local1.By - (_local1.Dy * _local3);
_local1._xscale = 100 * _local3;
_local1._yscale = 100 * _local3;
_local1._alpha = 100 * (1 - _local2);
}
}
function CollapseWinThink(o) {
var _local1 = o;
var _local2 = _root;
var _local3 = (_local2._tm - _local1.TStart) / _local1.TLength;
if (_local3 < 0) {
} else if (_local3 > 1) {
_local1.locked = false;
_local1._visible = false;
_local1._alpha = 100;
_local1._thinkflags = 0;
_local1._x = _local1.Ox;
_local1._y = _local1.Oy;
_local1._xscale = 100;
_local1._yscale = 100;
_local2.Think_Remove(_local1, 0);
if (_local2._PA < 1) {
_local2._GameWin = true;
_local2._SoundMask = _local2._SoundMask | _local2.SF.WinGame;
}
} else {
if ((_local1._thinkflags & 1) == 0) {
_local1._thinkflags = _local1._thinkflags | 1;
_local2._SoundMask = _local2._SoundMask | _local2.SF.SuccessfulCluster;
}
var inc = (1 + _local3);
_local1._xscale = 100 * inc;
_local1._yscale = 100 * inc;
_local1._alpha = 100 * (1 - _local3);
}
}
function CollapsePieces(pieces) {
var _local2 = _root;
if (((pieces == null) || (pieces.length < 1)) || (_local2._GameOver)) {
} else {
var _local3;
var _local1;
var fDrop;
_local3 = 0;
while (_local3 < pieces.length) {
_local1 = pieces[_local3].Piece;
_local1._board = pieces[_local3];
if (_local1._flags != _local2.PF.Collapse) {
_local1.TStart = _local2._tm;
}
fDrop = _local1._flags == _local2.PF.Drop;
_local2.Think_Add(_local1, ((_local1._thinkflags == 0) ? (_local2.CollapseThink) : (_local2.CollapseFlowerThink)), _local2.PF.Collapse);
if (_local1.fBomb) {
BombList_Remove(_local1);
}
if ((_local1.FlowerType > 0) && (_local1._thinkflags == 0)) {
_local1.TLength = _local2._CollapseFlowerSpeed;
_local1.think = _local2.CollapseFlowerThink;
_local1.Bx = _local1._x;
_local1.By = _local1._y;
_local1.Dx = 0;
_local1.Dy = 0;
_local1.FlowerType = 0;
_local2._SoundMask = _local2._SoundMask | _local2.SF.FlowerCluster;
if (!fDrop) {
_local1.swapDepths((2 * _local2._DepthOffset) + _local1.ID);
}
} else {
_local1.TLength = ((_local1._thinkflags == 0) ? (_local2._CollapseSpeed) : (_local2._CollapseFlowerSpeed));
_local2._SoundMask = _local2._SoundMask | (_local1.fBonus ? (_local2.SF.Bonus) : (_local2.SF.SuccessfulCluster));
_local1._thinkflags = 0;
}
_local3++;
}
}
}
function CollapseWin() {
var _local2 = _root;
var x;
var _local3;
var _local1;
x = 0;
while (x < _local2._BoardWidth) {
_local3 = _local2._BoardHeight;
while (_local3 >= 0) {
if ((_local3 == _local2._BoardHeight) && ((x % 2) == 0)) {
} else {
_local1 = _local2.Board[x][_local3].Piece;
if (_local1.FlowerType > 1) {
_local1._flags = 0;
JigglePiece(_local2.Board[x][_local3], 10000);
_local1._thinkflags = 2;
} else {
if (_local1.fBomb) {
BombList_Remove(_local1);
}
_local2.Think_Add(_local1, _local2.CollapseThink, _local2.PF.Collapse);
_local1.TLength = _local2._CollapseSpeed;
_local1.TStart = _local2._tm + Math.floor(Math.random() * 8000);
_local1._thinkflags = 1;
}
}
_local3--;
}
x++;
}
}
function RotateThink() {
var _local1 = this;
var _local2 = (_root._tm - _local1.TStart) / _local1.TLength;
if (_local2 > 1) {
_local1._flags = 0;
_local1._rotation = 0;
if (!_local1.fCenter) {
_local1._x = _local1.TargX;
_local1._y = _local1.TargY;
}
_local1.fCenter = false;
_local1._xscale = _local1.ScaleSignX * 100;
_local1._yscale = _local1.ScaleSignY * 100;
_local1.RotPearl = false;
_local1.onEnterFrame = null;
if (_local1.ID != undefined) {
if ((!_local1.fBomb) && (_local1.FlowerType < 2)) {
_local1.swapDepths(_local1.ID);
} else {
_local1.swapDepths(_root._DepthOffset + _local1.ID);
}
}
_root._PA--;
} else {
var _local3 = _local1.AStart + ((_local1.ALength * _local2) * _local1.RMod);
var s = (_root._SpinScale * Math.sin((180 * _local2) * _Rad));
_local1._xscale = (_local1.ScaleSignX * _local1.ScaleSignY) * (100 + s);
_local1._yscale = (_local1.ScaleSignX * _local1.ScaleSignY) * (100 + s);
if (_local1.ALength == 120) {
if (_local1.fCenter) {
_local1._rotation = _local3;
} else {
_local1._rotation = _local3 + (((_local1.RMod * 240) - _local1.AStart) + (_local1.RMod * ((_local2 >= 0.6) ? 0 : (((_local2 < 0.35) ? 120 : 60)))));
}
} else {
_local1._rotation = _local3 + (((_local1.RMod * 300) - _local1.AStart) + (_local1.RMod * ((_local2 >= 0.5) ? 0 : 60)));
}
if (!_local1.fCenter) {
_local3 = _local3 * _Rad;
_local1._x = _local1.Rx + (((_local1._xscale * (((_local1.ALength == 120) && (!_local1.RotPearl)) ? (_LegLength) : (_PieceHeight))) * Math.cos(_local3)) / 100);
_local1._y = _local1.Ry + (((_local1._yscale * (((_local1.ALength == 120) && (!_local1.RotPearl)) ? (_LegLength) : (_PieceHeight))) * Math.sin(_local3)) / 100);
}
}
}
function RotateAngle(refX, refY, x, y, cnt, fPearl) {
var _local1 = refY;
var _local2 = refX;
var _local3 = y;
if (cnt == 3) {
if ((x == _local2) && (_local3 == _local1)) {
return(0);
}
if (!fPearl) {
if ((x < _local2) && (_local3 < _local1)) {
return(240);
}
if ((x < _local2) && (_local3 > _local1)) {
return(120);
}
if ((x > _local2) && (_local3 == _local1)) {
return(0);
}
if ((x > _local2) && (_local3 < _local1)) {
return(300);
}
if ((x > _local2) && (_local3 > _local1)) {
return(60);
}
if ((x < _local2) && (_local3 == _local1)) {
return(180);
}
} else {
if ((x == _local2) && (_local3 < _local1)) {
return(270);
}
if ((x < _local2) && (_local3 > _local1)) {
return(150);
}
if ((x > _local2) && (_local3 > _local1)) {
return(30);
}
if ((x < _local2) && (_local3 < _local1)) {
return(210);
}
if ((x > _local2) && (_local3 < _local1)) {
return(330);
}
if ((x == _local2) && (_local3 > _local1)) {
return(90);
}
}
} else {
if ((x == _local2) && (_local3 == _local1)) {
return(0);
}
if ((x == _local2) && (_local3 < _local1)) {
return(270);
}
if ((x > _local2) && (_local3 < _local1)) {
return(330);
}
if ((x > _local2) && (_local3 > _local1)) {
return(30);
}
if ((x == _local2) && (_local3 > _local1)) {
return(90);
}
if ((x < _local2) && (_local3 > _local1)) {
return(150);
}
if ((x < _local2) && (_local3 < _local1)) {
return(210);
}
}
return(undefined);
}
function RotateSingle(rotX, rotY, ref, next, angle, comboSize) {
var _local1 = ref;
var _local2 = _root;
var _local3 = rotX;
_local1._flags = _local2.PF.Rotation;
_local1.fCenter = (_local1._x == _local3) && (_local1._y == rotY);
_local1.TStart = _tm;
_local1.TLength = _local2._RotateSpeed;
_local1.RMod = (_local2._RotateClockwise ? 1 : -1);
_local1.Rx = _local3;
_local1.Ry = rotY;
_local1.TargX = next._x;
_local1.TargY = next._y;
_local1.AStart = _local2.RotateAngle(_local3, rotY, _local1._x, _local1._y, comboSize, _local1.RotPearl);
_local1.ALength = angle;
_local1.ScaleSignX = ((_local1._xscale >= 0) ? 1 : -1);
_local1.ScaleSignY = ((_local1._yscale >= 0) ? 1 : -1);
_local1.onEnterFrame = _local2.RotateThink;
_local2._PA++;
if (_local1.ID != undefined) {
_local1.swapDepths(((2 + (((!_local1.fBomb) && (_local1.FlowerType < 2)) ? 0 : 1)) * _local2._DepthOffset) + _local1.ID);
}
}
function RotatePieces(rotX, rotY, pieces) {
var _local1 = pieces.slice(0);
if (!_RotateClockwise) {
var _local2 = 0;
while (_local2 < ((_local1.length - 1) / 2)) {
var _local3 = _local1[_local2 + 1];
_local1[_local2 + 1] = _local1[(_local1.length - 1) - _local2];
_local1[(_local1.length - 1) - _local2] = _local3;
_local2++;
}
}
var ref;
var next;
var _local2 = 0;
while (_local2 < _local1.length) {
ref = _local1[_local2].Piece;
next = _local1[(((_local2 + 1) == _local1.length) ? 0 : (_local2 + 1))].Piece;
RotateSingle(rotX, rotY, ref, next, ((_local1.length == 3) ? 120 : 60), _local1.length);
_local2++;
}
RotateSingle(_root._Spinner._x, _root._Spinner._y, _root._Spinner, _root._Spinner, ((_local1.length == 3) ? 120 : 60), _local1.length);
var temp = _local1[_local1.length - 1].Piece;
_local2 = _local1.length - 1;
while (_local2 > 0) {
_local1[_local2].Piece = _local1[((_local2 > 0) ? (_local2 - 1) : (_local1.length - 1))].Piece;
_local2--;
}
_local1[0].Piece = temp;
}
function JiggleThink() {
var _local1 = this;
var _local3 = _root;
if (_local1.TLength > 0) {
var _local2 = (_local3._tm - _local1.TStart) / _local1.TLength;
if (_local2 > 1) {
_local1._x = _local1.Ox;
_local1._y = _local1.Oy;
_local1._xscale = 100;
_local1._yscale = 100;
_local1.onEnterFrame = null;
_local3._PA--;
if ((_local1._thinkflags > 1) && (_local3._PA < 1)) {
_local3._SoundMask = _local3._SoundMask | _local3.SF.WinGame;
}
_local1._thinkflags = 0;
return;
}
if (_local1._thinkflags == 1) {
_local1._xscale = 100 + (20 * _local2);
_local1._yscale = 100 + (20 * _local2);
}
}
_local1._x = _local1.Ox + Math.floor((Math.random() * -4) + (Math.random() * 4));
_local1._y = _local1.Oy + Math.floor((Math.random() * -4) + (Math.random() * 4));
}
function JigglePiece(piece, nJiggleLength) {
var _local2 = _root;
if (piece == null) {
} else {
var _local1 = piece.piece;
_local1.onEnterFrame = _local2.JiggleThink;
if (_local1._flags == 0) {
_local2._PA++;
}
_local1._thinkflags = ((nJiggleLength > 0) ? 1 : 0);
_local1.Ox = _local1._x;
_local1.Oy = _local1._y;
_local1.TStart = _local2._tm;
_local1.TLength = nJiggleLength;
}
}
function ColorJiggleThink() {
var _local1 = this;
var _local2 = _root;
if (_local1.TStart > _local2._tm) {
} else {
var _local3 = (_local2._tm - _local1.TStart) / _local1.TLength;
if (_local3 > 1) {
_local1._x = _local1.Ox;
_local1._y = _local1.Oy;
_local1._flags = 0;
_local1._thinkflags = 0;
_local1.onEnterFrame = null;
_local2._PA--;
if (_local2._PA == 0) {
_local2._HintTime = -1;
_local2.gotoAndStop("Active");
}
} else {
if ((_local3 > 0.5) && (_local1._thinkflags == 0)) {
_local1._thinkflags = 1;
_local2.GeneratePieceColor(_local1);
while (_local2.CheckMatch(_local1._board, null, false)) {
_local2.GeneratePieceColor(_local1);
}
}
_local1._x = _local1.Ox + Math.floor((Math.random() * -4) + (Math.random() * 4));
_local1._y = _local1.Oy + Math.floor((Math.random() * -4) + (Math.random() * 4));
}
}
}
function PiecesColorJiggle() {
var _local2 = _root;
var x;
var _local3;
var _local1;
var ct = _local2._tm;
x = 0;
while (x < _local2._BoardWidth) {
ct = ct + 500;
_local3 = _local2._BoardHeight;
while (_local3 >= 0) {
if ((_local3 == _local2._BoardHeight) && ((x % 2) == 0)) {
} else {
_local1 = _local2.Board[x][_local3].Piece;
if (_local1._flags == 0) {
_local2._PA++;
}
_local1._flags = _local2.PF.Jiggle;
_local1._thinkflags = 0;
_local1._board = _local2.Board[x][_local3];
if (_local1.fBomb) {
_local2.BombList_Remove(_local1);
}
_local1.Ox = _local1._x;
_local1.Oy = _local1._y;
_local1.TStart = ct + Math.floor(Math.random() * 100);
_local1.TLength = 700;
_local1.onEnterFrame = _local2.ColorJiggleThink;
}
_local3--;
}
x++;
}
_local2._HintTime = -1;
}
function RowSort(a, b) {
var _local1 = b;
var _local2 = a;
if (_local2.col < _local1.col) {
return(-1);
}
if (_local2.col > _local1.col) {
return(1);
}
if (_local2.row < _local1.row) {
return(-1);
}
if (_local2.row > _local1.row) {
return(1);
}
return(0);
}
function UpdateBoard() {
var _local2 = _root;
if ((_local2._GameType == _local2.GT.Survival) && (_local2._fBonusThink)) {
BonusThink();
} else {
if ((_PA == 0) && (_DoRotate)) {
LookForMatches(true);
} else if (PieceUpdateList.length > 0) {
_HintTime = -1;
PieceUpdateList.sort(RowSort);
var _local1 = 0;
while (_local1 < PieceUpdateList.length) {
if (PieceUpdateList[_local1].Piece._flags == _local2.PF.Check) {
if (SelectedPieces == null) {
SelectedPieces = new Array();
}
SelectedPieces.push(PieceUpdateList[_local1]);
PieceUpdateList[_local1].Piece._flags = 0;
} else {
DropPieces(PieceUpdateList[_local1]);
}
_local1++;
}
PieceUpdateList.splice(0);
if (SelectedPieces.length > 0) {
LookForMatches(false);
}
} else {
if ((_PA == 0) && (_BombsUpdate)) {
_BombsUpdate = false;
BombList_Update();
}
if ((_PA > 0) && (SelectedPieces == null)) {
_local2._Spinner._visible = false;
} else {
if (_GameOver) {
_LevelUp._visible = false;
_local2._Spinner._visible = false;
_LoadGame = false;
SendScore(true);
_local2.WriteXenonStats();
if (_local2.GameOverDisplay == "continue") {
_local2.gotoAndStop("GameOver");
} else {
_local2.gotoAndStop("NameInput");
}
return;
}
if (_LevelUp._visible) {
LevelUp_Think(_LevelUp);
} else if (_EndLevelReached) {
_local2._Spinner._visible = false;
SendScore(false);
LevelUp_Init(_LevelUp);
} else {
if (_PA == 0) {
if (!_DoRotate) {
PieceBoard.doMouseMove();
}
if (_HintTime < 0) {
_HintFlower = (Stats.Flowers == 0) || (_GameType == GT.Survival);
_HintTime = _tm + (_HintFlower ? _HintFlowerDelay : Number(_HintDelay));
_local2.FVMx = 0;
_local2.FVMy = 0;
_Hint._Time = 0;
} else if ((_HintTime == 0) && (_Hint._Time != 0)) {
Hint_Think(_tm);
} else if (_HintTime < _tm) {
if (FindValidMoves()) {
if (_HintFlower && (AvailFlowers.length == 0)) {
_HintFlower = false;
_HintTime = (_tm + Number(_HintDelay)) - _HintFlowerDelay;
_local2.FVMx = 0;
_local2.FVMy = 0;
} else {
_HintTime = 0;
UpdateTime(false);
Hint_Init(_tm);
}
}
}
} else {
_Hint._Time = 0;
_Hint._visible = false;
}
if ((((((_local2._Spinner._visible && (_local2._PA == 0)) && (_local2._currentframe == _local2.Fr.Active)) && (!_local2._DoRotate)) && (!_GameOver)) && (!_BombsUpdate)) && (_local2.pausebutton.PausePending)) {
_local2.pausebutton.Pause(true);
}
}
}
}
if ((((((_local2._Spinner._visible && (_local2._PA == 0)) && (_local2._currentframe == _local2.Fr.Active)) && (!_local2._DoRotate)) && (!_GameOver)) && (!_BombsUpdate)) && (_local2.pausebutton.PausePending)) {
_local2.pausebutton.Pause(true);
}
}
}
function SendScore(fSubmit) {
}
function SpecialPieceCount(Combo) {
var _local2 = Combo;
var bonusMult = 1;
var cBombs = 0;
var cBonus = 0;
var _local1 = 0;
while (_local1 < _local2.length) {
cBombs = cBombs + (_local2[_local1].Piece.fBomb ? 1 : 0);
cBonus = cBonus + (_local2[_local1].Piece.fBonus ? 1 : 0);
bonusMult = bonusMult * (_local2[_local1].Piece.fBonus ? 2 : 1);
_local1++;
}
return({cBombs:cBombs, cBonus:cBonus, bonusMult:bonusMult});
}
function UpdateScoreboard(Combos, fBonus) {
var _local2 = Combos;
var mult = Number(_Level + 1);
var _local3 = 0;
var bonusMult = 1;
var len;
var types;
var _local1 = 0;
while (_local1 < _local2.length) {
len = _local2[_local1].length;
if ((_local2[_local1][0] == null) || ((_local2[_local1][0] != 1) && (_local2[_local1][0].Piece == null))) {
} else {
if (_local2[_local1][0] == 1) {
len--;
_local3 = 100;
Stats.Bonus3++;
Stats.Bonus = Stats.Bonus + 3;
} else if ((_local2[_local1][0].Piece.FlowerType == 0) || (_local2[_local1][0].Piece.Flowered == _tm)) {
types = SpecialPieceCount(_local2[_local1]);
_local3 = 5;
bonusMult = types.bonusMult;
Stats.Combo[len - 3]++;
Stats.Bonus = Stats.Bonus + types.cBonus;
Stats.Bombs = Stats.Bombs + types.cBombs;
if ((types.cBombs > 0) && (types.cBonus > 0)) {
Stats.BombBonus++;
}
} else if (_local2[_local1][0].Piece.FlowerType == 1) {
_local3 = 2500;
Stats.Combo[len - 3]++;
JarRefill();
} else if (_local2[_local1][0].Piece.FlowerType > 1) {
_EndGameHeader = "gameend_youwin";
_EndGameInfo = "gameendinfo_pearlcluster";
_GameOver = true;
_GameWin = true;
CollapseWin();
_local3 = 25000;
Stats.Combo[len - 3]++;
}
_local3 = _local3 * ((len - 2) * mult);
if (_local2[_local1][0] != 1) {
_local3 = _local3 + (mult * ((fBonus && ((_local2.length - 1) > 0)) ? 10 : 0));
}
Plume_Add(Math.floor(_local3), bonusMult, _local2[_local1]);
_root._Score = _root._Score + (_local3 * bonusMult);
delete _local2[_local1];
}
_local1++;
}
if (_BombGrace > 0) {
_BombGrace = _BombGrace - _local2.length;
if (_BombGrace <= 0) {
_BombFreq = 0;
}
}
CheckForLevelEnd(_local2.length);
}
function CheckForLevelEnd(cCombos) {
var _local1 = _root;
if (_GameType != GT.Survival) {
if ((_local1._CombosLeft > 0) && (cCombos > 0)) {
_local1._CombosLeft = _local1._CombosLeft - cCombos;
panel_combos.ComboInfo.text = ((_local1._CombosLeft > 0) ? (_local1._CombosLeft) : 0);
panel_combos.ComboInfo2.text = ((_local1._CombosLeft > 0) ? (_local1._CombosLeft) : 0);
}
_local1.AchievementToast.UpdateScore(_local1._Score, false);
if ((_Settings[_Level].combos > 0) && (_local1._CombosLeft <= 0)) {
_EndLevelReached = true;
}
} else {
_local1.AchievementToast.UpdateScore(_local1._Score, false);
}
}
function EndLevel(fBombUpdate) {
_Level++;
InitLevel();
}
function JarRefill() {
var i;
var jar;
i = 5 - _BonusCount;
while (i < 10) {
jar = eval ("Background.jar" + i);
if (jar._currentframe != 2) {
jar._alpha = 100;
jar.jar._alpha = 100;
jar.gotoAndStop("Create");
} else {
jar._alpha = 100;
jar.jar._alpha = 100;
}
jar.clip.gotoAndPlay(1);
i++;
}
_tcurr = _CurrMax;
_jars = -1;
}
function CheckGameWin() {
var _local3 = _root;
var _local2 = 0;
while (_local2 < _local3._BoardWidth) {
var _local1 = 0;
while (_local1 < (_local3._BoardHeight + 1)) {
if ((_local1 == _local3._BoardHeight) && ((_local2 % 2) == 0)) {
} else if (!Board[_local2][_local1].Piece.hidden) {
return(false);
}
_local1++;
}
_local2++;
}
return(true);
}
function ScaleThink(o) {
var _local1 = o;
var _local3 = _root;
if (_local3._tm < _local1.To) {
} else {
var _local2 = (_local1.Te - _local3._tm) / _local1.P;
if (_local2 <= 0) {
_local1._xscale = _local1.St;
_local1._yscale = _local1.St;
_local3.Think_Remove(_local1, 0);
} else {
_local1._xscale = (_local1.So * _local2) + (_local1.St * (1 - _local2));
_local1._yscale = _local1._xscale;
}
}
}
function ScaleAnimate(o, offset, fShow) {
var _local1 = o;
var _local2 = _root;
_local1._flags = 0;
_local1.So = (fShow ? 0 : 100);
_local1.St = (fShow ? 100 : 0);
_local1.P = 500;
_local1.Te = (_local2._tm + _local1.P) + offset;
_local1.To = _local2._tm + offset;
_local2.Think_Add(_local1, _local2.ScaleThink, 0);
}
function LeftSlideThink(o) {
var _local1 = o;
var _local3 = _root;
if (_local3._tm < _local1.To) {
} else {
if (_local1.thinkflags == 0) {
_local3._SoundMask = _local3._SoundMask | _local3.SF.Slide;
_local1.thinkflags = 1;
}
var _local2 = (_local1.Te - _local3._tm) / _local1.P;
if (_local2 <= 0) {
_local3.Think_Remove(_local1, 0);
_local1._alpha = (_local1.fLeft ? 100 : 0);
_local1._visible = _local1.fLeft;
_local1.fn(_local1);
} else if (_local1.fLeft) {
_local1._alpha = 100 * (1 - _local2);
} else {
_local1._alpha = 100 * _local2;
}
}
}
function LeftSlideAnimate(o, fLeft, offset, cLength, afterthink, Ox) {
var _local1 = o;
var _local2 = _root;
if ((!fLeft) && (_local1._alpha == 0)) {
} else {
if (_local1.think != null) {
_local2.Think_Remove(_local1, 0);
}
_local1._flags = 0;
_local1.thinkflags = 0;
_local1.fLeft = fLeft;
_local1.Ox = Ox;
_local1.Lx = cLength;
_local1.P = 1000;
_local1.Te = (_local2._tm + offset) + _local1.P;
_local1.To = _local2._tm + offset;
_local1.R = 90 * _local2._Rad;
_local1.fn = afterthink;
_local2.Think_Add(_local1, _local2.LeftSlideThink, 0);
}
}
function RightSlideThink(o) {
var _local1 = o;
var _local3 = _root;
if (_local3._tm < _local1.To) {
} else {
if (_local1.thinkflags == 0) {
_local3._SoundMask = _local3._SoundMask | _local3.SF.Slide;
_local1.thinkflags = 1;
}
var _local2 = (_local1.Te - _local3._tm) / _local1.P;
if (_local2 <= 0) {
_local3.Think_Remove(_local1, 0);
_local1._alpha = (_local1.fRight ? 100 : 0);
_local1._visible = _local1.fRight;
_local1.fn(_local1);
} else if (_local1.fRight) {
_local1._alpha = 100 * (1 - _local2);
} else {
_local1._alpha = 100 * _local2;
}
}
}
function RightSlideAnimate(o, fRight, offset, cLength, afterthink, Ox) {
var _local1 = o;
var _local2 = _root;
if (_local1.think != null) {
_local2.Think_Remove(_local1, 0);
}
_local1._flags = 0;
_local1.thinkflags = 0;
_local1.fRight = fRight;
_local1.Ox = Ox;
_local1.Lx = cLength;
_local1.P = 1000;
_local1.Te = (_local2._tm + offset) + _local1.P;
_local1.To = _local2._tm + offset;
_local1.R = 90 * _local2._Rad;
_local1.fn = afterthink;
_local2.Think_Add(_local1, _local2.RightSlideThink, 0);
}
function ElementJiggleThink(o) {
var _local1 = o;
var _local2 = (_root._tm - _local1.Ts) / _local1.Tl;
if (_local2 > 1) {
_local1._x = _local1.Ox;
_local1._y = _local1.Oy;
} else {
_local1._x = _local1.Ox + Math.floor((Math.random() * -2) + (Math.random() * 2));
_local1._y = _local1.Oy + Math.floor((Math.random() * -2) + (Math.random() * 2));
}
}
function JiggleAnimate(o, cLength) {
var _local1 = o;
var _local2 = _root;
_local1._flags = ((_local1.think != null) ? 1 : 0);
if (_local1._flags == 0) {
_local1.Ox = _local1._x;
_local1.Oy = _local1._y;
}
_local1.Ts = _local2._tm;
_local1.Tl = cLength;
_local2._SoundMask = _local2._SoundMask | _local2.SF.SpaceEmpty;
_local2.Think_Add(_local1, _local2.ElementJiggleThink, 0);
}
_root.LocalizationXml = "g.xml";
if (_root.bgcolor != null) {
var newColor = new Color(_root.piecemask);
newColor.setRGB(Number(_root.bgcolor));
_root.bgcolor = null;
}
if (_SessionInit == null) {
_root.SavedGameListSize = 0;
Background.gotoAndStop("Normal");
_root.panel_combos._visible = false;
_root.panel_level._visible = false;
_root.panel_timer._visible = false;
this.onEnterFrame = DoLoader;
} else {
this.onEnterFrame = DoGame;
}
if ((_DoGameParse != null) && (_DoGameParse)) {
_DoGameParse = false;
delete _SplashPlayed;
_root.gotoAndStop("LoadSavedGame");
} else if (_SplashPlayed != null) {
InitGame(true);
delete _SplashPlayed;
}
stop();
_root.FVMx = 0;
Instance of Symbol 442 MovieClip [Pieces] "PieceBoard" in Frame 1
onClipEvent (load) {
this.doRotate = function () {
var _local1 = _root;
_local1._Spinner.arrows._visible = false;
_local1._Spinner.Highlight._visible = false;
if (_local1._FlowerRotate != null) {
_local1._SoundMask = _local1._SoundMask | ((_local1.SelectedPieces.length == 3) ? (_local1.SF.PearlRotate) : (_local1.SF.FlowerRotate));
_local1.Flower_RotatePieces();
_local1.rotX = _local1._FlowerRotate.Piece._x;
_local1.rotY = _local1._FlowerRotate.Piece._y;
} else {
_local1._SoundMask = _local1._SoundMask | _local1.SF.Rotation;
}
_local1.UpdateTime(false);
_local1.RotatePieces(_local1.rotX, _local1.rotY, _local1.SelectedPieces);
};
this.doMouseMove = function () {
var _local1 = _root;
if (((_local1._PA > 0) || (_local1._currentframe != _local1.Fr.Active)) || (_local1._DoRotate)) {
} else {
var origCol = _local1._CursorCol;
var origRow = _local1._CursorRow;
var origVertex = _local1._CursorVertex;
_local1._CursorCol = _local1.NewCursorCol;
_local1._CursorRow = _local1.NewCursorRow;
_local1._CursorVertex = _local1.NewCursorVertex;
var evenColumn = ((_local1._CursorCol % 2) == 0);
var evenRow = ((_local1._CursorRow % 2) == 0);
var _local3 = Math.floor(_local1._CursorRow / 2);
var rowAdjust = (((_local1._CursorCol % 2) == 1) ? -1 : 0);
delete _local1.SelectedPieces;
_local1.SelectedPieces = new Array(3);
if (_local1._CursorVertex == 0) {
_local1.SelectedPieces[0] = _local1.Board[_local1._CursorCol][_local3];
_local1.SelectedPieces[1] = _local1.Board[_local1._CursorCol + 1][_local3 + rowAdjust];
_local1.SelectedPieces[2] = _local1.Board[_local1._CursorCol + 1][(_local3 + 1) + rowAdjust];
} else if (_local1._CursorVertex == 1) {
_local1.SelectedPieces[0] = _local1.Board[_local1._CursorCol][_local3 - 1];
_local1.SelectedPieces[2] = _local1.Board[_local1._CursorCol][_local3];
_local1.SelectedPieces[1] = _local1.Board[_local1._CursorCol + 1][_local3 + rowAdjust];
} else {
_local1.SelectedPieces[0] = _local1.Board[_local1._CursorCol][_local3];
_local1.SelectedPieces[2] = _local1.Board[_local1._CursorCol][_local3 + 1];
_local1.SelectedPieces[1] = _local1.Board[_local1._CursorCol + 1][(_local3 + 1) + rowAdjust];
}
_local1._Spinner.enabled = true;
_local1._Spinner.selector.gotoAndStop("enable");
if (_local1._GameType == _local1.GT.Survival) {
var count = 0;
var _local2 = 0;
while (_local2 < 3) {
if (_local1.SelectedPieces[_local2].Piece.locked) {
_local1._Spinner.enabled = false;
_local1._Spinner.selector.gotoAndStop("disable");
}
if (_local1.SelectedPieces[_local2].Piece.hidden) {
count++;
}
_local2++;
}
if (count >= 3) {
_local1._Spinner.enabled = false;
_local1._Spinner.selector.gotoAndStop("disable");
}
}
_local1.Flower_RotateCheck();
var refX = _local1._Spinner._x;
var refY = _local1._Spinner._y;
if (_local1._FlowerRotate == null) {
_local1._Spinner._x = (_local1._CursorCol * _local1._ThreeQuarterWidth) + _local1._QuarterWidth;
_local1._Spinner._y = (_local1._CursorRow * _local1._HalfHeight) - ((!evenColumn) ? (_local1._HalfHeight) : 0);
if (_local1._CursorVertex == 0) {
if (evenRow) {
_local1._Spinner._y = _local1._Spinner._y + _local1._HalfHeight;
}
_local1._Spinner._x = _local1._Spinner._x + _local1._QuarterWidth;
var refPiece = _local1.SelectedPieces[0].Piece;
_local1.rotX = refPiece._x + ((_local1._LegLength * refPiece._xscale) / 100);
_local1.rotY = refPiece._y;
} else if (_local1._CursorVertex == 2) {
_local1._Spinner._y = _local1._Spinner._y + _local1._HalfHeight;
var refPiece = _local1.SelectedPieces[1].Piece;
_local1.rotX = refPiece._x - ((_local1._LegLength * refPiece._xscale) / 100);
_local1.rotY = refPiece._y;
} else {
var refPiece = _local1.SelectedPieces[1].Piece;
_local1.rotX = refPiece._x - ((_local1._LegLength * refPiece._xscale) / 100);
_local1.rotY = refPiece._y;
}
}
if ((refX != _local1._Spinner._x) || (refY != _local1._Spinner._y)) {
_local1._SoundMask = _local1._SoundMask | _local1.SF.MoveTick;
}
_local1.Spinner_SetRotation();
_local1._Spinner._visible = true;
}
};
this.onMouseUp = function () {
var _local1 = _root;
this.doMouseMove();
if (((((!_local1._Spinner._visible) || (!_local1._Spinner.enabled)) || (_local1._PA > 0)) || (_local1._currentframe != _local1.Fr.Active)) || (_local1._DoRotate)) {
} else {
if (_local1._KeyHack) {
var i = 0;
while (i < (_local1.KeyStates.length - 1)) {
if (_local1.KeyStates[i]) {
var sp = _local1.SelectedPieces;
var closest = 999999;
var _local2 = null;
var _local3 = 0;
while (_local3 < _local1.SelectedPieces.length) {
var dx = (sp[_local3].Piece._x - _xmouse);
var dy = (sp[_local3].Piece._y - _ymouse);
var dist = Math.sqrt((dx * dx) + (dy * dy));
if (closest > dist) {
closest = dist;
_local2 = sp[_local3];
}
_local3++;
}
if (_local1._FlowerRotate != null) {
var dx = (_local1._FlowerRotate.Piece._x - _xmouse);
var dy = (_local1._FlowerRotate.Piece._y - _ymouse);
var dist = Math.sqrt((dx * dx) + (dy * dy));
if (closest > dist) {
closest = dist;
_local2 = _local1._FlowerRotate;
}
}
if (((_local1._GameType == _local1.GT.Survival) && (_local1.KeyStates[15])) && (i == 5)) {
_local2.Piece.hidden = true;
_local2.Piece.locked = false;
_local2.Piece.Color = -100;
_local2.Piece.piece.lock.gotoAndStop("unlocked");
_local2.Piece.gotoAndStop("hidden");
} else if (((_local1._GameType == _local1.GT.Survival) && (_local1.KeyStates[15])) && (i == 6)) {
_local2.Piece.locked = !_local2.Piece.locked;
_local2.Piece.piece.lock.gotoAndStop((_local2.Piece.locked ? "locked" : "unlocked"));
} else {
_local1.ForceColor(_local2.Piece, i, (((_local1.KeyStates[15] && (i > 1)) && (i < 5)) ? (i - 1) : 0), _local1.KeyStates[15] && (i == 0), _local1.KeyStates[15] && (i == 1));
_local2.Piece.hidden = false;
}
if (_local2 == _local1._FlowerRotate) {
_local1._FlowerRotate = null;
_local1._CursorCol = -1;
this.doMouseMove();
}
return;
}
i++;
}
}
_local1._RotationTry = 1;
_local1._DoRotate = true;
_local1.Stats.Rotations++;
doRotate();
}
};
}
Instance of Symbol 576 MovieClip "Localizer" in Frame 1
onClipEvent (load) {
this.LocXML = new XML();
this.LocXML.ignoreWhite = true;
_root.Localizer.Failed = false;
_root.Localizer.Loaded = false;
this.Loc = function (o, name) {
if (_root.Localizer.Failed) {
o.text = " ";
return(undefined);
}
var Text = eval (("_root.Localizer." + name) + ".text");
if (Text == null) {
Text = " ";
}
o.text = Text;
var fmt = new TextFormat();
var Size = eval (("_root.Localizer." + name) + ".size");
if (Size != null) {
fmt.size = Size;
}
var Font = eval (("_root.Localizer." + name) + ".font");
if (Font != null) {
fmt.font = Font;
}
o.setTextFormat(fmt);
delete fmt;
};
this.LocXML.onLoad = function (fSuccess) {
var _local1 = _root;
if (!fSuccess) {
if (_local1.Localizer.Failed) {
_local1.LocComplete(false);
} else {
_local1.Localizer.LocXML.load(_local1.LocalizationXml);
}
_local1.Localizer.Failed = true;
} else {
_local1.Localizer.ParseLocXML();
}
};
this.ParseLocXML = function () {
var _local3;
var Size;
var Font;
var _local1;
var _local2 = _root.Localizer.LocXML.firstChild.firstChild;
while (_local2) {
_local3 = null;
Size = null;
Font = null;
_local1 = _local2.firstChild;
while (_local1) {
if (_local1.nodeName == "text") {
_local3 = _local1.firstChild.nodeValue;
} else if (_local1.nodeName == "size") {
Size = _local1.firstChild.nodeValue;
} else if (_local1.nodeName == "font") {
Font = _local1.firstChild.nodeValue;
}
_local1 = _local1.nextSibling;
}
Set("_root.Localizer." + _local2.nodeName, {text:_local3, size:Size, font:Font});
_local2 = _local2.nextSibling;
}
_root.Localizer.Loaded = true;
fscommand ("FileIOReadHeader", _root.Localizer.fileio_read_hdr_text.text);
fscommand ("FileIOReadBody", _root.Localizer.fileio_read_body_text.text);
fscommand ("FileIOWriteHeader", _root.Localizer.fileio_write_hdr_text.text);
fscommand ("FileIOWriteBody", _root.Localizer.fileio_write_body_text.text);
fscommand ("FileIOButton", _root.Localizer.fileio_button_text.text);
_root.LocComplete(true);
};
this.LocXML.load(_root.LocalizationXml);
}
Frame 7
function onEnterFrame() {
var _local1 = _root;
_local1.splash_txt.valign = "center";
if (_local1.StartupMode == "SignedOut") {
_local1.Localizer.Loc(_local1.splash_txt, "startup_signedout_text");
} else if (_local1.StartupMode == "NoProfile") {
_local1.Localizer.Loc(_local1.splash_txt, "startup_profile_text");
} else {
_local1.Localizer.Loc(_local1.splash_txt, "startup_text");
}
if (_local1._SplashPlayed == null) {
_local1._SessReady = false;
_local1._SplashPlayed = getTimer();
_local1.InitSounds();
}
if ((!RegisteredAccessibility) && (_local1.KeyboardAccessibility.RegisterActionableItem)) {
RegisteredAccessibility = true;
_local1.KeyboardAccessibility.RegisterActionableItem("OK", function () {
}, function () {
PressedSplashButton = true;
}, function () {
}, function () {
}, function () {
return(true);
});
_local1.KeyboardAccessibility.SetState("Splash", "OK");
}
var _local2 = getTimer();
var _local3 = _local2 - _local1._SplashPlayed;
if (((PressedSplashButton && (_local3 > _local1.UI.SplashTime)) && (_local1.Localizer.Loaded)) && (_local1.S_WinGame.getBytesLoaded() >= _local1.S_WinGame.getBytesTotal())) {
_local1.StartupMode = "";
_local1.SessionUpdate();
_local1._ReceivedSessionStart = true;
_local1.InitSession();
this.onEnterFrame = _local1.DoGame;
_local1.ReadSettings();
_local1.ReadGame();
fscommand ("SessionReady", "true");
_local1.gotoAndStop("Menu");
}
}
var RegisteredAccessibility = false;
var PressedSplashButton = false;
stop();
Instance of Symbol 607 MovieClip in Frame 14
onClipEvent (load) {
fscommand ("Presence", "Menu");
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver == true)) ? (_root.UI.WindowAlpha) : 100);
}
Instance of Symbol 615 MovieClip "btn_mode_timed" in Frame 14
onClipEvent (load) {
ButtonText = "modeButton_timed";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Timed", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myRollOver = function () {
var _local1 = _root;
_local1.ToolTip.tip_txt.valign = "center";
_local1.Localizer.Loc(_local1.ToolTip.tip_txt, "main_timedtooltip_text");
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.PlaySounds();
_local1._GameTypeCache = _local1.GT.Timed;
if (_local1.SavedGame2 != "") {
_local1._ResumingSavedGame = true;
_local1.SavedGame = _local1.SavedGame2;
_local1.gotoAndStop("Confirm");
} else {
_local1.gotoAndStop("DifficultySelection");
}
};
}
Instance of Symbol 615 MovieClip "btn_mode_normal" in Frame 14
onClipEvent (load) {
ButtonText = "modeButton_normal";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Normal", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.onEnterFrame = function () {
_root.KeyboardAccessibility.SetState("Menu");
this.onEnterFrame = null;
};
this.myRollOver = function () {
var _local1 = _root;
_local1.ToolTip.tip_txt.valign = "center";
_local1.Localizer.Loc(_local1.ToolTip.tip_txt, "main_standardtooltip_text");
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.PlaySounds();
_local1._GameTypeCache = _local1.GT.Marathon;
if (_local1.SavedGame1 != "") {
_local1._ResumingSavedGame = true;
_local1.SavedGame = _local1.SavedGame1;
_local1.gotoAndStop("Confirm");
} else {
_local1.gotoAndStop("DifficultySelection");
}
};
}
Instance of Symbol 615 MovieClip "btn_mode_survival" in Frame 14
onClipEvent (load) {
ButtonText = "modeButton_survival";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Survival", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myRollOver = function () {
var _local1 = _root;
_local1.ToolTip.tip_txt.valign = "center";
_local1.Localizer.Loc(_local1.ToolTip.tip_txt, "main_survivaltooltip_text");
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.PlaySounds();
_local1._GameTypeCache = _local1.GT.Survival;
if (_local1.SavedGame3 != "") {
_local1._ResumingSavedGame = true;
_local1.SavedGame = _local1.SavedGame3;
_local1.gotoAndStop("Confirm");
} else {
_local1.gotoAndStop("DifficultySelection");
}
};
}
Instance of Symbol 615 MovieClip "btn_options" in Frame 14
onClipEvent (load) {
ButtonText = "menuButton_options";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Options", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myRollOver = function () {
var _local1 = _root;
_local1.ToolTip.tip_txt.valign = "center";
_local1.Localizer.Loc(_local1.ToolTip.tip_txt, "main_optionstooltip_text");
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Options");
};
}
Instance of Symbol 615 MovieClip "btn_highscores" in Frame 14
onClipEvent (load) {
ButtonText = "menuButton_leaderboard";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("HighScores", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myRollOver = function () {
var _local1 = _root;
_local1.ToolTip.tip_txt.valign = "center";
_local1.Localizer.Loc(_local1.ToolTip.tip_txt, "main_leaderboardtooltip_text");
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Leaderboard");
};
}
Instance of Symbol 615 MovieClip "btn_tutorial" in Frame 14
onClipEvent (load) {
ButtonText = "menuButton_tutorial";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Tutorial", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myRollOver = function () {
var _local1 = _root;
_local1.ToolTip.tip_txt.valign = "center";
_local1.Localizer.Loc(_local1.ToolTip.tip_txt, "main_tutorialtooltip_text");
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Tutorial");
};
}
Instance of Symbol 615 MovieClip "btn_exit" in Frame 14
onClipEvent (load) {
ButtonText = "menuButton_exittodash";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Exit", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myRollOver = function () {
var _local1 = _root;
_local1.ToolTip.tip_txt.valign = "center";
_local1.Localizer.Loc(_local1.ToolTip.tip_txt, "main_exittodashtooltip_text");
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonUp;
fscommand ("ReturnToArcade");
};
}
Instance of Symbol 615 MovieClip "btn_achievements" in Frame 14
onClipEvent (load) {
ButtonText = "menuButton_achievements";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Achievements", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myRollOver = function () {
var _local1 = _root;
_local1.ToolTip.tip_txt.valign = "center";
_local1.Localizer.Loc(_local1.ToolTip.tip_txt, "main_achievementstip_text");
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonUp;
fscommand ("AchievementsUI");
};
}
Instance of Symbol 625 MovieClip in Frame 21
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver == true)) ? (_root.UI.WindowAlpha) : 100);
if (_root._TipRef > 0) {
_root.Localizer.Loc(_root.levelup_txt, ("Tip_" + (_root._TipRef - 1)) + "_Text");
} else {
_root.Localizer.Loc(_root.levelup_txt, ("Tip_" + _root._Level) + "_Text");
}
_root.btn_left._visible = _root._TipRef > 0;
_root.btn_right._visible = _root._TipRef > 0;
}
Instance of Symbol 615 MovieClip "btn" in Frame 21
onClipEvent (load) {
ButtonText = "popup_continueButton";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("OK", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.onEnterFrame = function () {
_root.KeyboardAccessibility.SetState("LevelUp", "OK");
this.onEnterFrame = null;
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
if (_local1._TipRef < 1) {
var newTrack = Math.floor(Math.random() * 3);
}
_local1._TipRef = 0;
_local1.ActiveInGame = true;
_local1.gotoAndStop("Active");
};
}
Instance of Symbol 631 MovieClip "btn_right" in Frame 21
onClipEvent (load) {
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1._TipRef++;
if ((_local1._GameType == _local1.GT.Timed) && ((_local1._TipRef == 1) || (_local1._TipRef == 4))) {
_local1.gotoAndStop(("Level_" + _local1._TipRef) + "_Timed");
} else {
_local1.gotoAndStop("Level_" + _local1._TipRef);
}
};
}
Instance of Symbol 625 MovieClip in Frame 28
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver == true)) ? (_root.UI.WindowAlpha) : 100);
if (_root._TipRef > 0) {
_root.Localizer.Loc(_root.levelup_txt, ("Tip_" + (_root._TipRef - 1)) + "_Text");
} else {
_root.Localizer.Loc(_root.levelup_txt, ("Tip_" + _root._Level) + "_Text");
}
_root.btn_left._visible = _root._TipRef > 0;
_root.btn_right._visible = _root._TipRef > 0;
}
Instance of Symbol 631 MovieClip "btn_right" in Frame 28
onClipEvent (load) {
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1._TipRef++;
if ((_local1._GameType == _local1.GT.Timed) && ((_local1._TipRef == 1) || (_local1._TipRef == 4))) {
_local1.gotoAndStop(("Level_" + _local1._TipRef) + "_Timed");
} else {
_local1.gotoAndStop("Level_" + _local1._TipRef);
}
};
}
Instance of Symbol 615 MovieClip "btn" in Frame 28
onClipEvent (load) {
ButtonText = "popup_continueButton";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("OK", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.onEnterFrame = function () {
_root.KeyboardAccessibility.SetState("LevelUp", "OK");
this.onEnterFrame = null;
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
if (_local1._TipRef < 1) {
var newTrack = Math.floor(Math.random() * 3);
}
_local1._TipRef = 0;
_local1.ActiveInGame = true;
_local1.gotoAndStop("Active");
};
}
Instance of Symbol 625 MovieClip in Frame 35
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver == true)) ? (_root.UI.WindowAlpha) : 100);
if (_root._TipRef > 0) {
_root.Localizer.Loc(_root.levelup_txt, ("Tip_" + (_root._TipRef - 1)) + "_Text");
} else {
_root.Localizer.Loc(_root.levelup_txt, ("Tip_" + _root._Level) + "_Text");
}
_root.btn_left._visible = _root._TipRef > 0;
_root.btn_right._visible = _root._TipRef > 0;
}
Instance of Symbol 631 MovieClip "btn_right" in Frame 35
onClipEvent (load) {
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1._TipRef++;
if ((_local1._GameType == _local1.GT.Timed) && ((_local1._TipRef == 1) || (_local1._TipRef == 4))) {
_local1.gotoAndStop(("Level_" + _local1._TipRef) + "_Timed");
} else {
_local1.gotoAndStop("Level_" + _local1._TipRef);
}
};
}
Instance of Symbol 668 MovieClip "btn_left" in Frame 35
onClipEvent (load) {
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1._TipRef--;
if ((_local1._GameType == _local1.GT.Timed) && ((_local1._TipRef == 1) || (_local1._TipRef == 4))) {
_local1.gotoAndStop(("Level_" + _local1._TipRef) + "_Timed");
} else {
_local1.gotoAndStop("Level_" + _local1._TipRef);
}
};
}
Instance of Symbol 615 MovieClip "btn" in Frame 35
onClipEvent (load) {
ButtonText = "popup_continueButton";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("OK", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.onEnterFrame = function () {
_root.KeyboardAccessibility.SetState("LevelUp", "OK");
this.onEnterFrame = null;
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
if (_local1._TipRef < 1) {
var newTrack = Math.floor(Math.random() * 3);
}
_local1._TipRef = 0;
_local1.ActiveInGame = true;
_local1.gotoAndStop("Active");
};
}
Instance of Symbol 625 MovieClip "window_level_3" in Frame 42
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver == true)) ? (_root.UI.WindowAlpha) : 100);
if (_root._TipRef > 0) {
_root.Localizer.Loc(_root.levelup_txt, ("Tip_" + (_root._TipRef - 1)) + "_Text");
} else {
_root.Localizer.Loc(_root.levelup_txt, ("Tip_" + _root._Level) + "_Text");
}
_root.btn_left._visible = _root._TipRef > 0;
_root.btn_right._visible = _root._TipRef > 0;
}
Instance of Symbol 631 MovieClip "btn_right" in Frame 42
onClipEvent (load) {
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1._TipRef++;
if ((_local1._GameType == _local1.GT.Timed) && ((_local1._TipRef == 1) || (_local1._TipRef == 4))) {
_local1.gotoAndStop(("Level_" + _local1._TipRef) + "_Timed");
} else {
_local1.gotoAndStop("Level_" + _local1._TipRef);
}
};
}
Instance of Symbol 668 MovieClip "btn_left" in Frame 42
onClipEvent (load) {
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1._TipRef--;
if ((_local1._GameType == _local1.GT.Timed) && ((_local1._TipRef == 1) || (_local1._TipRef == 4))) {
_local1.gotoAndStop(("Level_" + _local1._TipRef) + "_Timed");
} else {
_local1.gotoAndStop("Level_" + _local1._TipRef);
}
};
}
Instance of Symbol 615 MovieClip "btn" in Frame 42
onClipEvent (load) {
ButtonText = "popup_continueButton";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("OK", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.onEnterFrame = function () {
_root.KeyboardAccessibility.SetState("LevelUp", "OK");
this.onEnterFrame = null;
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
if (_local1._TipRef < 1) {
var newTrack = Math.floor(Math.random() * 3);
}
_local1._TipRef = 0;
_local1.ActiveInGame = true;
_local1.gotoAndStop("Active");
};
}
Instance of Symbol 625 MovieClip in Frame 49
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver == true)) ? (_root.UI.WindowAlpha) : 100);
if (_root._TipRef > 0) {
_root.Localizer.Loc(_root.levelup_txt, ("Tip_" + (_root._TipRef - 1)) + "_Text");
} else {
_root.Localizer.Loc(_root.levelup_txt, ("Tip_" + _root._Level) + "_Text");
}
_root.btn_left._visible = _root._TipRef > 0;
_root.btn_right._visible = _root._TipRef > 0;
}
Instance of Symbol 631 MovieClip "btn_right" in Frame 49
onClipEvent (load) {
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1._TipRef++;
if ((_local1._GameType == _local1.GT.Timed) && ((_local1._TipRef == 1) || (_local1._TipRef == 4))) {
_local1.gotoAndStop(("Level_" + _local1._TipRef) + "_Timed");
} else {
_local1.gotoAndStop("Level_" + _local1._TipRef);
}
};
}
Instance of Symbol 668 MovieClip "btn_left" in Frame 49
onClipEvent (load) {
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1._TipRef--;
if ((_local1._GameType == _local1.GT.Timed) && ((_local1._TipRef == 1) || (_local1._TipRef == 4))) {
_local1.gotoAndStop(("Level_" + _local1._TipRef) + "_Timed");
} else {
_local1.gotoAndStop("Level_" + _local1._TipRef);
}
};
}
Instance of Symbol 615 MovieClip "btn" in Frame 49
onClipEvent (load) {
ButtonText = "popup_continueButton";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("OK", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.onEnterFrame = function () {
_root.KeyboardAccessibility.SetState("LevelUp", "OK");
this.onEnterFrame = null;
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
if (_local1._TipRef < 1) {
var newTrack = Math.floor(Math.random() * 3);
}
_local1._TipRef = 0;
_local1.ActiveInGame = true;
_local1.gotoAndStop("Active");
};
}
Instance of Symbol 625 MovieClip in Frame 56
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver == true)) ? (_root.UI.WindowAlpha) : 100);
if (_root._TipRef > 0) {
_root.Localizer.Loc(_root.levelup_txt, ("Tip_" + (_root._TipRef - 1)) + "_Text");
} else {
_root.Localizer.Loc(_root.levelup_txt, ("Tip_" + _root._Level) + "_Text");
}
_root.btn_left._visible = _root._TipRef > 0;
_root.btn_right._visible = _root._TipRef > 0;
}
Instance of Symbol 631 MovieClip "btn_right" in Frame 56
onClipEvent (load) {
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1._TipRef++;
if ((_local1._GameType == _local1.GT.Timed) && ((_local1._TipRef == 1) || (_local1._TipRef == 4))) {
_local1.gotoAndStop(("Level_" + _local1._TipRef) + "_Timed");
} else {
_local1.gotoAndStop("Level_" + _local1._TipRef);
}
};
}
Instance of Symbol 668 MovieClip "btn_left" in Frame 56
onClipEvent (load) {
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1._TipRef--;
if ((_local1._GameType == _local1.GT.Timed) && ((_local1._TipRef == 1) || (_local1._TipRef == 4))) {
_local1.gotoAndStop(("Level_" + _local1._TipRef) + "_Timed");
} else {
_local1.gotoAndStop("Level_" + _local1._TipRef);
}
};
}
Instance of Symbol 615 MovieClip "btn" in Frame 56
onClipEvent (load) {
ButtonText = "popup_continueButton";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("OK", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.onEnterFrame = function () {
_root.KeyboardAccessibility.SetState("LevelUp", "OK");
this.onEnterFrame = null;
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
if (_local1._TipRef < 1) {
var newTrack = Math.floor(Math.random() * 3);
}
_local1._TipRef = 0;
_local1.ActiveInGame = true;
_local1.gotoAndStop("Active");
};
}
Instance of Symbol 625 MovieClip in Frame 63
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver == true)) ? (_root.UI.WindowAlpha) : 100);
if (_root._TipRef > 0) {
_root.Localizer.Loc(_root.levelup_txt, ("Tip_" + (_root._TipRef - 1)) + "_Text");
} else {
_root.Localizer.Loc(_root.levelup_txt, ("Tip_" + _root._Level) + "_Text");
}
_root.btn_left._visible = _root._TipRef > 0;
_root.btn_right._visible = _root._TipRef > 0;
}
Instance of Symbol 631 MovieClip "btn_right" in Frame 63
onClipEvent (load) {
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1._TipRef++;
if ((_local1._GameType == _local1.GT.Timed) && ((_local1._TipRef == 1) || (_local1._TipRef == 4))) {
_local1.gotoAndStop(("Level_" + _local1._TipRef) + "_Timed");
} else {
_local1.gotoAndStop("Level_" + _local1._TipRef);
}
};
}
Instance of Symbol 668 MovieClip "btn_left" in Frame 63
onClipEvent (load) {
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1._TipRef--;
if ((_local1._GameType == _local1.GT.Timed) && ((_local1._TipRef == 1) || (_local1._TipRef == 4))) {
_local1.gotoAndStop(("Level_" + _local1._TipRef) + "_Timed");
} else {
_local1.gotoAndStop("Level_" + _local1._TipRef);
}
};
}
Instance of Symbol 615 MovieClip "btn" in Frame 63
onClipEvent (load) {
ButtonText = "popup_continueButton";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("OK", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.onEnterFrame = function () {
_root.KeyboardAccessibility.SetState("LevelUp", "OK");
this.onEnterFrame = null;
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
if (_local1._TipRef < 1) {
var newTrack = Math.floor(Math.random() * 3);
}
_local1._TipRef = 0;
_local1.ActiveInGame = true;
_local1.gotoAndStop("Active");
};
}
Instance of Symbol 625 MovieClip in Frame 70
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver == true)) ? (_root.UI.WindowAlpha) : 100);
if (_root._TipRef > 0) {
_root.Localizer.Loc(_root.levelup_txt, ("Tip_" + (_root._TipRef - 1)) + "_Text");
} else {
_root.Localizer.Loc(_root.levelup_txt, ("Tip_" + _root._Level) + "_Text");
}
_root.btn_left._visible = _root._TipRef > 0;
_root.btn_right._visible = _root._TipRef > 0;
}
Instance of Symbol 631 MovieClip "btn_right" in Frame 70
onClipEvent (load) {
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1._TipRef++;
if ((_local1._GameType == _local1.GT.Timed) && ((_local1._TipRef == 1) || (_local1._TipRef == 4))) {
_local1.gotoAndStop(("Level_" + _local1._TipRef) + "_Timed");
} else {
_local1.gotoAndStop("Level_" + _local1._TipRef);
}
};
}
Instance of Symbol 668 MovieClip "btn_left" in Frame 70
onClipEvent (load) {
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1._TipRef--;
if ((_local1._GameType == _local1.GT.Timed) && ((_local1._TipRef == 1) || (_local1._TipRef == 4))) {
_local1.gotoAndStop(("Level_" + _local1._TipRef) + "_Timed");
} else {
_local1.gotoAndStop("Level_" + _local1._TipRef);
}
};
}
Instance of Symbol 615 MovieClip "btn" in Frame 70
onClipEvent (load) {
ButtonText = "popup_continueButton";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("OK", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.onEnterFrame = function () {
_root.KeyboardAccessibility.SetState("LevelUp", "OK");
this.onEnterFrame = null;
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
if (_local1._TipRef < 1) {
var newTrack = Math.floor(Math.random() * 3);
}
_local1._TipRef = 0;
_local1.ActiveInGame = true;
_local1.gotoAndStop("Active");
};
}
Instance of Symbol 625 MovieClip in Frame 77
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver == true)) ? (_root.UI.WindowAlpha) : 100);
if (_root._TipRef > 0) {
_root.Localizer.Loc(_root.levelup_txt, ("Tip_" + (_root._TipRef - 1)) + "_Text");
} else {
_root.Localizer.Loc(_root.levelup_txt, ("Tip_" + _root._Level) + "_Text");
}
_root.btn_left._visible = _root._TipRef > 0;
_root.btn_right._visible = _root._TipRef > 0;
}
Instance of Symbol 668 MovieClip "btn_left" in Frame 77
onClipEvent (load) {
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1._TipRef--;
if ((_local1._GameType == _local1.GT.Timed) && ((_local1._TipRef == 1) || (_local1._TipRef == 4))) {
_local1.gotoAndStop(("Level_" + _local1._TipRef) + "_Timed");
} else {
_local1.gotoAndStop("Level_" + _local1._TipRef);
}
};
}
Instance of Symbol 615 MovieClip "btn" in Frame 77
onClipEvent (load) {
ButtonText = "popup_continueButton";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("OK", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.onEnterFrame = function () {
_root.KeyboardAccessibility.SetState("LevelUp", "OK");
this.onEnterFrame = null;
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
if (_local1._TipRef < 1) {
var newTrack = Math.floor(Math.random() * 3);
}
_local1._TipRef = 0;
_local1.ActiveInGame = true;
_local1.gotoAndStop("Active");
};
}
Instance of Symbol 625 MovieClip in Frame 84
onClipEvent (load) {
this._alpha = 100;
_root.Localizer.Loc(_root.pause_hdr, "pause_header");
this.onRelease = function () {
var _local1 = _root;
_local1.M_current.setVolume(_local1._Level_music * 100);
fscommand ("Pause", "0");
_local1.gotoAndStop("Active");
};
}
Instance of Symbol 615 MovieClip "btn_resume" in Frame 84
onClipEvent (load) {
ButtonText = "menuButton_resume";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Resume", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(button.enabled != false);
});
this.onEnterFrame = function () {
var _local1 = _root;
if (_local1.ResetPauseMenu) {
_local1.KeyboardAccessibility.SetState("Pause", "Resume");
_local1.ResetPauseMenu = false;
} else {
_local1.KeyboardAccessibility.SetState("Pause");
}
this.onEnterFrame = null;
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.IsPaused = false;
fscommand ("Pause", "off");
_local1.gotoAndStop("Active");
};
}
Instance of Symbol 615 MovieClip "btn_options" in Frame 84
onClipEvent (load) {
ButtonText = "menuButton_options";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Options", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Options");
};
}
Instance of Symbol 615 MovieClip "btn_highscores" in Frame 84
onClipEvent (load) {
ButtonText = "menuButton_leaderboard";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("HighScores", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Leaderboard");
};
}
Instance of Symbol 615 MovieClip "btn_tutorial" in Frame 84
onClipEvent (load) {
ButtonText = "menuButton_tutorial";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Tutorial", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Tutorial");
};
}
Instance of Symbol 615 MovieClip "btn_exit" in Frame 84
onClipEvent (load) {
ButtonText = "menuButton_exitpause";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Exit", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.LeftSlideAnimate(_local1.panel_combos, false, 100, 100, null, _local1.panel_combos.OrigX + 100);
_local1.LeftSlideAnimate(_local1.panel_level, false, 650, 100, null, _local1.panel_level.OrigX + 100);
if (_local1._GameType == _local1.GT.Timed) {
_local1.RightSlideAnimate(_local1.panel_timer, false, 280, 100, null, _local1.panel_timer.OrigX - 100);
}
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.SaveGame();
_local1.AchievementToast.UpdateScore(_local1._Score, true, false);
fscommand ("TerminateGame", "<data><exit v=\"UserButton\"/></data>");
_local1.IsPaused = false;
fscommand ("Pause", "off");
_local1.gotoAndStop("Menu");
};
}
Frame 91
Instance of Symbol 749 MovieClip "window" in Frame 91
onClipEvent (load) {
this._alpha = _root.UI.WindowAlpha;
_root.Localizer.Loc(_root.gameover_hdr, _root._EndGameHeader);
_root.Localizer.Loc(_root.gameover_body, _root._EndGameInfo);
_root.Localizer.Loc(_root.totalpieces_txt, "gameend_piececount");
_root.Localizer.Loc(_root.score_txt, "gameend_score");
_root.score_txt.valign = "center";
_root.Localizer.Loc(_root.time_txt, "gameend_time");
_root.combo_cnt.text = "x" + (((Number(_root.Stats.Combo[0]) + Number(_root.Stats.Combo[1])) + Number(_root.Stats.Combo[2])) + Number(_root.Stats.Combo[3]));
_root.bonus_cnt.text = "x" + _root.Stats.Bonus;
_root.bomb_cnt.text = "x" + _root.Stats.Bombs;
_root.bbcombo_cnt.text = "x" + _root.Stats.BombBonus;
_root.b3combo_cnt.text = "x" + _root.Stats.Bonus3;
_root.flower_cnt.text = "x" + _root.Stats.Flowers;
_root.pearl_cnt.text = "x" + _root.Stats.Pearls;
_root.pieces_cnt.text = _root.Stats.Pieces;
_root.score_cnt.text = _root._Score;
var min = Math.floor(_root._tt / 60000);
var sec = Math.floor((_root._tt / 1000) - (min * 60));
if (sec < 10) {
sec = "0" + sec;
}
_root.time_cnt.text = (min + ":") + sec;
_root.Trophy.gotoAndStop((_root._GameWin ? 2 : 1));
_root.AchievementToast.UpdateScore(_root._Score, true, true);
}
Instance of Symbol 615 MovieClip "gameover_btn" in Frame 91
onClipEvent (load) {
ButtonText = "playagain_button";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("GameOver", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.onEnterFrame = function () {
_root.KeyboardAccessibility.SetState("GameOver");
this.onEnterFrame = null;
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.Trophy.gotoAndStop(1);
_local1.LeftSlideAnimate(_local1.panel_combos, false, 100, 100, null, _local1.panel_combos.OrigX + 100);
_local1.LeftSlideAnimate(_local1.panel_level, false, 650, 100, null, _local1.panel_level.OrigX + 100);
if (_local1._GameType == _local1.GT.Timed) {
_local1.RightSlideAnimate(_local1.panel_timer, false, 280, 100, null, _local1.panel_timer.OrigX - 100);
}
_local1.gotoAndStop("Menu");
};
}
Instance of Symbol 374 MovieClip in Frame 91
onClipEvent (load) {
stop();
}
Instance of Symbol 328 MovieClip in Frame 91
onClipEvent (load) {
stop();
}
Instance of Symbol 625 MovieClip in Frame 100
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver)) ? (_root.UI.WindowAlpha) : 100);
_root.KeyboardAccessibility.RegisterActionableItem("Cancel", function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Menu");
}, eval("NULL"), eval("NULL"), eval("NULL"), function () {
return(true);
});
_root.Localizer.Loc(_root.back_txt, "about_back");
_root.Localizer.Loc(_root.hdr_confirm, (_root._GameShutdown ? "header_exitsave" : ((_root._ResumingSavedGame ? "resumegame_hdr" : "confirm_header"))));
_root.Localizer.Loc(_root.body_confirm, (_root._GameShutdown ? "shutdown_body" : ((_root._ResumingSavedGame ? (((_root._GameTypeCache == _root.GT.Marathon) ? "resumegame_marathon_body" : (((_root._GameTypeCache == _root.GT.Timed) ? "resumegame_timed_body" : "resumegame_survival_body")))) : "confirm_body"))));
}
Instance of Symbol 615 MovieClip "confirm_no" in Frame 100
onClipEvent (load) {
ButtonText = (_root._ResumingSavedGame ? "resumegame_no_text" : "confirmbutton_no");
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("No", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.onEnterFrame = function () {
_root.KeyboardAccessibility.SetState("Confirm", "Yes");
this.onEnterFrame = null;
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
if (_local1._GameShutdown) {
_local1._GameShutdown = false;
_local1.gotoAndStop("Menu");
} else if (_local1._ResumingSavedGame) {
_local1._ResumingSavedGame = false;
_local1.gotoAndStop("DifficultySelection");
} else {
_local1.gotoAndStop("Menu");
}
};
}
Instance of Symbol 615 MovieClip "confirm_yes" in Frame 100
onClipEvent (load) {
ButtonText = (_root._ResumingSavedGame ? "resumegame_yes_text" : "confirmbutton_yes");
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Yes", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
if (_local1._GameShutdown) {
_local1._GameShutdown = false;
fscommand ("TerminateGame", "<data><exit v=\"UserButton\"/></data>");
_local1.gotoAndStop("Menu");
} else if (_local1._ResumingSavedGame) {
_local1._ResumingSavedGame = false;
delete _local1._SplashPlayed;
_local1.ActiveInGame = true;
_local1.ParseGame(_local1.SavedGame);
return;
}
_local1.gotoAndStop("DifficultySelection");
};
}
Frame 108
_root.Localizer.Loc(_root.txt_nomoves, "nomoves_text");
_Hint._visible = false;
_root._Spinner._visible = false;
_root.PiecesColorJiggle();
stop();
Instance of Symbol 625 MovieClip in Frame 116
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver)) ? (_root.UI.WindowAlpha) : 100);
_root.Localizer.Loc(_root.back_txt, "about_back");
_root.Localizer.Loc(_root.hdr_difficulty, ((_root._GameTypeCache == _root.GT.Marathon) ? "header_difficulty_marathon" : (((_root._GameTypeCache == _root.GT.Timed) ? "header_difficulty_timed" : "header_difficulty_survival"))));
}
Instance of Symbol 615 MovieClip in Frame 116
onClipEvent (load) {
ButtonText = "difficultyButton_easy";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Easy", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.onEnterFrame = function () {
var _local2 = _root;
var _local1 = "Medium";
if (_local2.DefaultDifficulty == "Easy") {
_local1 = "Easy";
}
if (_local2.DefaultDifficulty == "Hard") {
_local1 = "Hard";
}
_local2.KeyboardAccessibility.SetState("Difficulty", _local1);
this.onEnterFrame = null;
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.PlaySounds();
_local1._DifficultyCache = _local1.DF.Easy;
if (_local1._PiecesDropped) {
_local1.InitGame(true);
}
_local1.ActiveInGame = false;
_local1.gotoAndStop("Active");
};
}
Instance of Symbol 615 MovieClip in Frame 116
onClipEvent (load) {
ButtonText = "difficultyButton_medium";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Medium", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.PlaySounds();
_local1._DifficultyCache = _local1.DF.Medium;
if (_local1._PiecesDropped) {
_local1.InitGame(true);
}
_local1.ActiveInGame = false;
_local1.gotoAndStop("Active");
};
}
Instance of Symbol 615 MovieClip in Frame 116
onClipEvent (load) {
ButtonText = "difficultyButton_hard";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Hard", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.PlaySounds();
_local1._DifficultyCache = _local1.DF.Hard;
if (_local1._PiecesDropped) {
_local1.InitGame(true);
}
_local1.ActiveInGame = false;
_local1.gotoAndStop("Active");
};
}
Instance of Symbol 615 MovieClip in Frame 116
onClipEvent (load) {
ButtonText = "difficultyButton_cancel";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Cancel", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Menu");
};
}
Instance of Symbol 625 MovieClip in Frame 123
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver == true)) ? (_root.UI.WindowAlpha) : 100);
_root.Localizer.Loc(_root.hdr_exitsave, "header_exitsave");
_root.Localizer.Loc(_root.body_exitsave, "body_exitsave");
}
Instance of Symbol 795 MovieClip "btn_exitsaveno" in Frame 123
onClipEvent (load) {
ButtonText = "confirmbutton_no";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("No", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.AchievementToast.UpdateScore(_local1._Score, true, false);
fscommand ("TerminateGame", "<data><exit v=\"UserButton\"/></data>");
_local1.gotoAndStop("Menu");
};
}
Instance of Symbol 795 MovieClip "btn_exitsaveyes" in Frame 123
onClipEvent (load) {
ButtonText = "confirmbutton_yes";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Yes", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.SaveGame();
_local1.AchievementToast.UpdateScore(_local1._Score, true, false);
fscommand ("TerminateGame", "<data><exit v=\"UserButton\"/></data>");
_local1.gotoAndStop("Menu");
};
}
Instance of Symbol 795 MovieClip "btn_exitsavecancel" in Frame 123
onClipEvent (load) {
ButtonText = "confirmbutton_cancel";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Cancel", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.onEnterFrame = function () {
_root.KeyboardAccessibility.SetState("ExitSave", "Cancel");
this.onEnterFrame = null;
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Pause");
};
}
Instance of Symbol 625 MovieClip in Frame 137
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver)) ? (_root.UI.WindowAlpha) : 100);
_root.Localizer.Loc(_root.options_hdr, "options_header");
_root.Localizer.Loc(_root.patterns_txt, "optionsText_patterns");
_root.Localizer.Loc(_root.music_txt, "optionsText_music");
_root.Localizer.Loc(_root.sfx_txt, "optionsText_sfx");
_root.level_sfx.level = "_root._Level_sfx";
_root.level_music.level = "_root._Level_music";
_root.ref_piece.gotoAndStop((_root._Patterns ? "alt_Normal" : (_root._AltPiece)));
_root.ref_piece.lock.gotoAndStop("unlocked");
_root.ref_piece.glow._visible = false;
_root.ref_piece.glow2._visible = false;
_root.KeyboardAccessibility.RegisterActionableItem("Pattern", null, null, function () {
_root.btn_pattern_up.button.onRollOver();
_root.btn_pattern_down.button.onRollOver();
}, function () {
_root.btn_pattern_up.button.onRollOut();
_root.btn_pattern_down.button.onRollOut();
}, function () {
return(true);
});
_root.KeyboardAccessibility.RegisterActionableItem("Sfx", null, null, function () {
_root.btn_sfx_up.button.onRollOver();
_root.btn_sfx_down.button.onRollOver();
}, function () {
_root.btn_sfx_up.button.onRollOut();
_root.btn_sfx_down.button.onRollOut();
}, function () {
return(true);
});
_root.KeyboardAccessibility.RegisterActionableItem("Music", null, null, function () {
_root.btn_music_up.button.onRollOver();
_root.btn_music_down.button.onRollOver();
}, function () {
_root.btn_music_up.button.onRollOut();
_root.btn_music_down.button.onRollOut();
}, function () {
return(true);
});
}
Instance of Symbol 631 MovieClip "btn_sfx_up" in Frame 137
onClipEvent (load) {
_root.KeyboardAccessibility.RegisterActionableItem("SfxUp", null, null, null, null, function () {
button.onPress();
button.onRelease();
return(false);
});
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
if (_local1._Level_sfx < 1) {
_local1._Level_sfx = _local1._Level_sfx + 0.05;
if (_local1._Level_sfx > 1) {
_local1._Level_sfx = 1;
}
_local1.level_sfx.gotoAndStop(Math.round(20 * _local1._Level_sfx) + 1);
fscommand ("SoundFX", _local1._Level_sfx);
}
};
}
Instance of Symbol 668 MovieClip "btn_sfx_down" in Frame 137
onClipEvent (load) {
_root.KeyboardAccessibility.RegisterActionableItem("SfxDown", null, null, null, null, function () {
button.onPress();
button.onRelease();
return(false);
});
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
if (_local1._Level_sfx > 0) {
_local1._Level_sfx = _local1._Level_sfx - 0.05;
if (_local1._Level_sfx < 0) {
_local1._Level_sfx = 0;
}
_local1.level_sfx.gotoAndStop(Math.round(20 * _local1._Level_sfx) + 1);
fscommand ("SoundFX", _local1._Level_sfx);
}
};
}
Instance of Symbol 631 MovieClip "btn_music_up" in Frame 137
onClipEvent (load) {
_root.KeyboardAccessibility.RegisterActionableItem("MusicUp", null, null, null, null, function () {
button.onPress();
button.onRelease();
return(false);
});
this.myPress = function () {
};
this.myRelease = function () {
var _local1 = _root;
if (_local1._Level_music < 1) {
_local1._Level_music = _local1._Level_music + 0.05;
if (_local1._Level_music > 1) {
_local1._Level_music = 1;
}
_local1.M_current.setVolume(_local1._Level_music * 100);
_local1.level_music.gotoAndStop(Math.round(20 * _local1._Level_music) + 1);
fscommand ("MusicVolume", _local1._Level_music);
}
};
}
Instance of Symbol 668 MovieClip "btn_music_down" in Frame 137
onClipEvent (load) {
_root.KeyboardAccessibility.RegisterActionableItem("MusicDown", null, null, null, null, function () {
button.onPress();
button.onRelease();
return(false);
});
this.myPress = function () {
};
this.myRelease = function () {
var _local1 = _root;
if (_local1._Level_music > 0) {
_local1._Level_music = _local1._Level_music - 0.05;
if (_local1._Level_music < 0) {
_local1._Level_music = 0;
}
_local1.M_current.setVolume(_local1._Level_music * 100);
_local1.level_music.gotoAndStop(Math.round(20 * _local1._Level_music) + 1);
fscommand ("MusicVolume", _local1._Level_music);
}
};
}
Instance of Symbol 615 MovieClip "defaults_btn" in Frame 137
onClipEvent (load) {
ButtonText = "optionsButton_defaults";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Defaults", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1._Level_sfx = _local1._DefaultLevel_sfx;
_local1._Level_music = _local1._DefaultLevel_music;
_local1.level_sfx.gotoAndPlay(Math.round(20 * _local1._Level_sfx) + 1);
_local1.level_music.gotoAndPlay(Math.round(20 * _local1._Level_music) + 1);
fscommand ("SoundFX", _local1._Level_sfx);
fscommand ("MusicVolume", _local1._Level_music);
_local1._Patterns = false;
_local1.check_pattern.check.gotoAndStop("clear");
_local1.ref_piece.gotoAndStop(_local1._AltPiece);
x = 0;
while (x < _local1._BoardWidth) {
y = _local1._BoardHeight;
while (y >= 0) {
if ((y == _local1._BoardHeight) && ((x % 2) == 0)) {
} else {
piece = _local1.Board[x][y].Piece;
if ((piece.FlowerType < 1) && (!piece.fBomb)) {
if (_local1._Patterns) {
piece.piece.gotoAndStop((piece.fBonus ? "alt_Special" : "alt_Normal"));
} else {
piece.piece.gotoAndStop((piece.fBonus ? (_local1._AltSpecial) : (_local1._AltPiece)));
}
}
}
y--;
}
x++;
}
};
}
Instance of Symbol 615 MovieClip "credits_btn" in Frame 137
onClipEvent (load) {
ButtonText = "optionsButton_credits";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Credits", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Credits");
};
}
Instance of Symbol 615 MovieClip "return_btn" in Frame 137
onClipEvent (load) {
ButtonText = "optionsButton_return";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Return", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.onEnterFrame = function () {
_root.KeyboardAccessibility.SetState("Options");
this.onEnterFrame = null;
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.SaveSettings();
if (!_local1.IsPaused) {
_local1.gotoAndStop("Menu");
} else {
_local1.gotoAndStop("Pause");
}
};
}
Instance of Symbol 668 MovieClip "btn_pattern_down" in Frame 137
onClipEvent (load) {
_root.KeyboardAccessibility.RegisterActionableItem("PatternDown", null, null, null, null, function () {
button.onPress();
button.onRelease();
return(false);
});
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1._Patterns = !_local1._Patterns;
_local1.ref_piece.gotoAndStop((_local1._Patterns ? "alt_Normal" : (_local1._AltPiece)));
var x;
var _local3;
var _local2;
x = 0;
while (x < _local1._BoardWidth) {
_local3 = _local1._BoardHeight;
while (_local3 >= 0) {
if ((_local3 == _local1._BoardHeight) && ((x % 2) == 0)) {
} else {
_local2 = _local1.Board[x][_local3].Piece;
if ((_local2.FlowerType < 1) && (!_local2.fBomb)) {
if (_local1._Patterns) {
_local2.piece.gotoAndStop((_local2.fBonus ? "alt_Special" : "alt_Normal"));
} else {
_local2.piece.gotoAndStop((_local2.fBonus ? (_local1._AltSpecial) : (_local1._AltPiece)));
}
}
}
_local3--;
}
x++;
}
};
}
Instance of Symbol 631 MovieClip "btn_pattern_up" in Frame 137
onClipEvent (load) {
_root.KeyboardAccessibility.RegisterActionableItem("PatternUp", null, null, null, null, function () {
button.onPress();
button.onRelease();
return(false);
});
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1._Patterns = !_local1._Patterns;
_local1.ref_piece.gotoAndStop((_local1._Patterns ? "alt_Normal" : (_local1._AltPiece)));
var x;
var _local3;
var _local2;
x = 0;
while (x < _local1._BoardWidth) {
_local3 = _local1._BoardHeight;
while (_local3 >= 0) {
if ((_local3 == _local1._BoardHeight) && ((x % 2) == 0)) {
} else {
_local2 = _local1.Board[x][_local3].Piece;
if ((_local2.FlowerType < 1) && (!_local2.fBomb)) {
if (_local1._Patterns) {
_local2.piece.gotoAndStop((_local2.fBonus ? "alt_Special" : "alt_Normal"));
} else {
_local2.piece.gotoAndStop((_local2.fBonus ? (_local1._AltSpecial) : (_local1._AltPiece)));
}
}
}
_local3--;
}
x++;
}
};
}
Instance of Symbol 615 MovieClip "controls_btn" in Frame 137
onClipEvent (load) {
ButtonText = "optionsButton_controls";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Controls", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Controls");
};
}
Instance of Symbol 615 MovieClip "about_btn" in Frame 137
onClipEvent (load) {
ButtonText = "optionsButton_about";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("About", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("About");
};
}
Instance of Symbol 615 MovieClip "return_btn" in Frame 144
onClipEvent (load) {
ButtonText = "optionsButton_return";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Return", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.onEnterFrame = function () {
_root.KeyboardAccessibility.SetState("Credits");
this.onEnterFrame = null;
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Options");
};
}
Instance of Symbol 887 MovieClip "credits" in Frame 144
onClipEvent (load) {
_root.Localizer.Loc(_root.credits.credits_hdr, "credits_header");
this.StartTime = getTimer();
this.onEnterFrame = function () {
var _local2 = this;
var _local1 = getTimer() - _local2.StartTime;
_local1 = _local1 % 90000;
if (_local1 < 5000) {
_local2._y = 0;
} else if (_local1 <= 85000) {
_local2._y = (2040 * (5000 - _local1)) / 80000;
} else if (_local1 <= 90000) {
_local2._y = -2040;
}
};
}
Instance of Symbol 625 MovieClip "highscores_window" in Frame 151
/* no clip actions */
Instance of Symbol 615 MovieClip "return_btn" in Frame 151
onClipEvent (load) {
ButtonText = "optionsButton_return";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
if (_local1._GotoStats) {
_local1._GotoStats = false;
_local1.gotoAndStop("GameOver");
} else {
_local1.gotoAndStop("Menu");
}
};
}
Instance of Symbol 908 MovieClip "marathon_btn" in Frame 151
onClipEvent (load) {
ButtonText = "highscores_marathon";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Marathon", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonUp;
};
}
Instance of Symbol 908 MovieClip "timed_btn" in Frame 151
onClipEvent (load) {
ButtonText = "highscores_timed";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Timed", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonUp;
};
}
Instance of Symbol 908 MovieClip "survival_btn" in Frame 151
onClipEvent (load) {
ButtonText = "highscores_survival";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Survival", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonUp;
};
}
Instance of Symbol 938 MovieClip "line_1" in Frame 151
onClipEvent (load) {
this.DoMyUpdate = function () {
_root.highscores_window.UpdateScores(_root._GameType);
};
}
Instance of Symbol 945 MovieClip "btn_reset" in Frame 151
onClipEvent (load) {
ButtonText = "highscores_reset";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Reset", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Confirm");
};
}
Instance of Symbol 625 MovieClip "input_name" in Frame 158
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver)) ? (_root.UI.WindowAlpha) : 100);
_root.Localizer.Loc(_root.nameEntry_hdr, "nameEntry_header");
if (_root.GameOverDisplay == "signin") {
_root.Localizer.Loc(_root.nameEntry_body1, "nameEntry_signin");
} else {
_root.Localizer.Loc(_root.nameEntry_body1, "nameEntry_newscore");
}
_root.name_entry.entry.text = _root._PlayerName;
}
Instance of Symbol 615 MovieClip "return_btn" in Frame 158
onClipEvent (load) {
ButtonText = "optionsButton_return";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Return", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.onEnterFrame = function () {
_root.KeyboardAccessibility.SetState("NameInput");
this.onEnterFrame = null;
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1._PlayerName = _local1.name_entry.entry.text;
_local1._HighScoreEntry = -1;
_local1._HallOfFameFlags = 0;
var i;
var j;
var d = ((Number(15 * _local1._GameType) + Number(5 * _local1._Difficulty)) + 5);
fscommand ("EndWriteStats");
_local1.gotoAndStop("GameOver");
};
}
Instance of Symbol 625 MovieClip in Frame 165
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver)) ? (_root.UI.WindowAlpha) : 100);
_root.Localizer.Loc(_root.tutorial_hdr, "tutorial_header");
_root.Localizer.Loc(_root.back_txt, "tutorial_back_text");
}
Instance of Symbol 615 MovieClip "marathon_btn" in Frame 165
onClipEvent (load) {
ButtonText = "tutorial_marathon_button";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Marathon", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myRollOver = function () {
var _local1 = _root;
_local1.tooltip.tip_txt.valign = "center";
_local1.Localizer.Loc(_local1.tooltip.tip_txt, "tutorial_marathon_text");
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1._TutPrefix = "mara_";
_local1._TutID = 1;
_local1.gotoAndStop("mara_1_howto");
};
}
Instance of Symbol 615 MovieClip "timed_btn" in Frame 165
onClipEvent (load) {
ButtonText = "tutorial_timed_button";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Timed", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myRollOver = function () {
var _local1 = _root;
_local1.tooltip.tip_txt.valign = "center";
_local1.Localizer.Loc(_local1.tooltip.tip_txt, "tutorial_timed_text");
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1._TutPrefix = "time_";
_local1._TutID = 1;
_local1.gotoAndStop("time_1_howto");
};
}
Instance of Symbol 615 MovieClip "survival_btn" in Frame 165
onClipEvent (load) {
ButtonText = "tutorial_survival_button";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Survival", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.myRollOver = function () {
var _local1 = _root;
_local1.tooltip.tip_txt.valign = "center";
_local1.Localizer.Loc(_local1.tooltip.tip_txt, "tutorial_survival_text");
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1._TutPrefix = "surv_";
_local1._TutID = 1;
_local1.gotoAndStop("surv_1_howto");
};
}
Instance of Symbol 615 MovieClip "tips_btn" in Frame 165
onClipEvent (load) {
ButtonText = "tutorial_tips_button";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Tips", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.onEnterFrame = function () {
_root.KeyboardAccessibility.SetState("Tutorial");
this.onEnterFrame = null;
};
_root.KeyboardAccessibility.RegisterActionableItem("Return", function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
}, function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
if (!_local1.IsPaused) {
_local1.gotoAndStop("Menu");
} else {
_local1.gotoAndStop("Pause");
}
}, null, null, function () {
return(false);
});
this.myRollOver = function () {
var _local1 = _root;
_local1.tooltip.tip_txt.valign = "center";
_local1.Localizer.Loc(_local1.tooltip.tip_txt, "tutorial_tips_text");
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1._TutPrefix = "tip_";
_local1._TutID = 1;
_local1.gotoAndStop("tip_1_howto");
};
}
Instance of Symbol 625 MovieClip in Frame 170
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver)) ? (_root.UI.WindowAlpha) : 100);
var prefix = (_root._TutPrefix + _root._TutID);
_root.Localizer.Loc(_root.tip_hdr, _root._TutPrefix + "hdr");
_root.Localizer.Loc(_root.body1_txt, prefix + "_body1");
_root.Localizer.Loc(_root.body2_txt, prefix + "_body2");
_root.Localizer.Loc(_root.body3_txt, prefix + "_body3");
_root.Localizer.Loc(_root.body4_txt, prefix + "_body4");
_root.Localizer.Loc(_root.body5_txt, prefix + "_body5");
_root.Localizer.Loc(_root.body6_txt, prefix + "_body6");
_root.Localizer.Loc(_root.body7_txt, prefix + "_body7");
_root.Localizer.Loc(_root.body8_txt, prefix + "_body8");
_root.Localizer.Loc(_root.next_txt, "tutorial_next_text");
_root.Localizer.Loc(_root.back_txt, "tutorial_backmenu_text");
}
Instance of Symbol 615 MovieClip "return_btn" in Frame 170
onClipEvent (load) {
var NextTutorial = _root._TutID;
_root.KeyboardAccessibility.RegisterActionableItem("Return", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(true);
});
_root.KeyboardAccessibility.RegisterActionableItem("Default", null, null, null, null, function () {
return(true);
});
if (_root._TutID == 1) {
_root.KeyboardAccessibility.RegisterActionableItem("Prev", null, null, null, null, function () {
return(false);
});
} else {
var Prev = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID - 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Prev", Prev, null, null, null, function () {
Prev();
return(false);
});
}
if (((_root._TutPrefix == "tip_") && (_root._TutID == 5)) || ((_root._TutPrefix != "tip_") && (_root._TutID == 3))) {
_root.KeyboardAccessibility.RegisterActionableItem("Next", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(false);
});
} else {
var Next = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID + 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Next", null, Next, null, null, function () {
Next();
return(false);
});
}
this.onEnterFrame = function () {
var _local1 = _root;
_local1.KeyboardAccessibility.SetState("Tutorial_Info");
this.onEnterFrame = function () {
var _local1 = _root;
if (NextTutorial != _local1._TutID) {
_local1._TutID = NextTutorial;
_local1.gotoAndStop((_local1._TutPrefix + _local1._TutID) + "_howto");
}
};
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Tutorial");
};
}
Instance of Symbol 631 MovieClip "next_btn" in Frame 170
/* no clip actions */
Instance of Symbol 625 MovieClip in Frame 177
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver)) ? (_root.UI.WindowAlpha) : 100);
var prefix = (_root._TutPrefix + _root._TutID);
_root.Localizer.Loc(_root.tip_hdr, _root._TutPrefix + "hdr");
_root.Localizer.Loc(_root.body1_txt, prefix + "_body1");
_root.Localizer.Loc(_root.body2_txt, prefix + "_body2");
_root.Localizer.Loc(_root.body3_txt, prefix + "_body3");
_root.Localizer.Loc(_root.body4_txt, prefix + "_body4");
_root.Localizer.Loc(_root.body5_txt, prefix + "_body5");
_root.Localizer.Loc(_root.body6_txt, prefix + "_body6");
_root.Localizer.Loc(_root.body7_txt, prefix + "_body7");
_root.Localizer.Loc(_root.body8_txt, prefix + "_body8");
_root.Localizer.Loc(_root.next_txt, "tutorial_next_text");
_root.Localizer.Loc(_root.back_txt, "tutorial_backmenu_text");
}
Instance of Symbol 615 MovieClip "return_btn" in Frame 177
onClipEvent (load) {
var NextTutorial = _root._TutID;
_root.KeyboardAccessibility.RegisterActionableItem("Return", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(true);
});
_root.KeyboardAccessibility.RegisterActionableItem("Default", null, null, null, null, function () {
return(true);
});
if (_root._TutID == 1) {
_root.KeyboardAccessibility.RegisterActionableItem("Prev", null, null, null, null, function () {
return(false);
});
} else {
var Prev = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID - 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Prev", Prev, null, null, null, function () {
Prev();
return(false);
});
}
if (((_root._TutPrefix == "tip_") && (_root._TutID == 5)) || ((_root._TutPrefix != "tip_") && (_root._TutID == 3))) {
_root.KeyboardAccessibility.RegisterActionableItem("Next", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(false);
});
} else {
var Next = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID + 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Next", null, Next, null, null, function () {
Next();
return(false);
});
}
this.onEnterFrame = function () {
var _local1 = _root;
_local1.KeyboardAccessibility.SetState("Tutorial_Info");
this.onEnterFrame = function () {
var _local1 = _root;
if (NextTutorial != _local1._TutID) {
_local1._TutID = NextTutorial;
_local1.gotoAndStop((_local1._TutPrefix + _local1._TutID) + "_howto");
}
};
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Tutorial");
};
}
Instance of Symbol 631 MovieClip "next_btn" in Frame 177
/* no clip actions */
Instance of Symbol 668 MovieClip "prev_btn" in Frame 177
/* no clip actions */
Instance of Symbol 625 MovieClip in Frame 184
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver)) ? (_root.UI.WindowAlpha) : 100);
var prefix = (_root._TutPrefix + _root._TutID);
_root.Localizer.Loc(_root.tip_hdr, _root._TutPrefix + "hdr");
_root.Localizer.Loc(_root.body1_txt, prefix + "_body1");
_root.Localizer.Loc(_root.body2_txt, prefix + "_body2");
_root.Localizer.Loc(_root.body3_txt, prefix + "_body3");
_root.Localizer.Loc(_root.body4_txt, prefix + "_body4");
_root.Localizer.Loc(_root.body5_txt, prefix + "_body5");
_root.Localizer.Loc(_root.body6_txt, prefix + "_body6");
_root.Localizer.Loc(_root.body7_txt, prefix + "_body7");
_root.Localizer.Loc(_root.body8_txt, prefix + "_body8");
_root.Localizer.Loc(_root.next_txt, "tutorial_next_text");
_root.Localizer.Loc(_root.back_txt, "tutorial_backmenu_text");
}
Instance of Symbol 615 MovieClip "return_btn" in Frame 184
onClipEvent (load) {
var NextTutorial = _root._TutID;
_root.KeyboardAccessibility.RegisterActionableItem("Return", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(true);
});
_root.KeyboardAccessibility.RegisterActionableItem("Default", null, null, null, null, function () {
return(true);
});
if (_root._TutID == 1) {
_root.KeyboardAccessibility.RegisterActionableItem("Prev", null, null, null, null, function () {
return(false);
});
} else {
var Prev = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID - 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Prev", Prev, null, null, null, function () {
Prev();
return(false);
});
}
if (((_root._TutPrefix == "tip_") && (_root._TutID == 5)) || ((_root._TutPrefix != "tip_") && (_root._TutID == 3))) {
_root.KeyboardAccessibility.RegisterActionableItem("Next", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(false);
});
} else {
var Next = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID + 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Next", null, Next, null, null, function () {
Next();
return(false);
});
}
this.onEnterFrame = function () {
var _local1 = _root;
_local1.KeyboardAccessibility.SetState("Tutorial_Info");
this.onEnterFrame = function () {
var _local1 = _root;
if (NextTutorial != _local1._TutID) {
_local1._TutID = NextTutorial;
_local1.gotoAndStop((_local1._TutPrefix + _local1._TutID) + "_howto");
}
};
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Tutorial");
};
}
Instance of Symbol 668 MovieClip "prev_btn" in Frame 184
/* no clip actions */
Instance of Symbol 625 MovieClip in Frame 191
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver)) ? (_root.UI.WindowAlpha) : 100);
var prefix = (_root._TutPrefix + _root._TutID);
_root.Localizer.Loc(_root.tip_hdr, _root._TutPrefix + "hdr");
_root.Localizer.Loc(_root.body1_txt, prefix + "_body1");
_root.Localizer.Loc(_root.body2_txt, prefix + "_body2");
_root.Localizer.Loc(_root.body3_txt, prefix + "_body3");
_root.Localizer.Loc(_root.body4_txt, prefix + "_body4");
_root.Localizer.Loc(_root.body5_txt, prefix + "_body5");
_root.Localizer.Loc(_root.body6_txt, prefix + "_body6");
_root.Localizer.Loc(_root.body7_txt, prefix + "_body7");
_root.Localizer.Loc(_root.body8_txt, prefix + "_body8");
_root.Localizer.Loc(_root.next_txt, "tutorial_next_text");
_root.Localizer.Loc(_root.back_txt, "tutorial_backmenu_text");
}
Instance of Symbol 615 MovieClip "return_btn" in Frame 191
onClipEvent (load) {
var NextTutorial = _root._TutID;
_root.KeyboardAccessibility.RegisterActionableItem("Return", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(true);
});
_root.KeyboardAccessibility.RegisterActionableItem("Default", null, null, null, null, function () {
return(true);
});
if (_root._TutID == 1) {
_root.KeyboardAccessibility.RegisterActionableItem("Prev", null, null, null, null, function () {
return(false);
});
} else {
var Prev = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID - 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Prev", Prev, null, null, null, function () {
Prev();
return(false);
});
}
if (((_root._TutPrefix == "tip_") && (_root._TutID == 5)) || ((_root._TutPrefix != "tip_") && (_root._TutID == 3))) {
_root.KeyboardAccessibility.RegisterActionableItem("Next", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(false);
});
} else {
var Next = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID + 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Next", null, Next, null, null, function () {
Next();
return(false);
});
}
this.onEnterFrame = function () {
var _local1 = _root;
_local1.KeyboardAccessibility.SetState("Tutorial_Info");
this.onEnterFrame = function () {
var _local1 = _root;
if (NextTutorial != _local1._TutID) {
_local1._TutID = NextTutorial;
_local1.gotoAndStop((_local1._TutPrefix + _local1._TutID) + "_howto");
}
};
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Tutorial");
};
}
Instance of Symbol 631 MovieClip "next_btn" in Frame 191
/* no clip actions */
Instance of Symbol 625 MovieClip in Frame 198
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver)) ? (_root.UI.WindowAlpha) : 100);
var prefix = (_root._TutPrefix + _root._TutID);
_root.Localizer.Loc(_root.tip_hdr, _root._TutPrefix + "hdr");
_root.Localizer.Loc(_root.body1_txt, prefix + "_body1");
_root.Localizer.Loc(_root.body2_txt, prefix + "_body2");
_root.Localizer.Loc(_root.body3_txt, prefix + "_body3");
_root.Localizer.Loc(_root.body4_txt, prefix + "_body4");
_root.Localizer.Loc(_root.body5_txt, prefix + "_body5");
_root.Localizer.Loc(_root.body6_txt, prefix + "_body6");
_root.Localizer.Loc(_root.body7_txt, prefix + "_body7");
_root.Localizer.Loc(_root.body8_txt, prefix + "_body8");
_root.Localizer.Loc(_root.next_txt, "tutorial_next_text");
_root.Localizer.Loc(_root.back_txt, "tutorial_backmenu_text");
}
Instance of Symbol 615 MovieClip "return_btn" in Frame 198
onClipEvent (load) {
var NextTutorial = _root._TutID;
_root.KeyboardAccessibility.RegisterActionableItem("Return", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(true);
});
_root.KeyboardAccessibility.RegisterActionableItem("Default", null, null, null, null, function () {
return(true);
});
if (_root._TutID == 1) {
_root.KeyboardAccessibility.RegisterActionableItem("Prev", null, null, null, null, function () {
return(false);
});
} else {
var Prev = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID - 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Prev", Prev, null, null, null, function () {
Prev();
return(false);
});
}
if (((_root._TutPrefix == "tip_") && (_root._TutID == 5)) || ((_root._TutPrefix != "tip_") && (_root._TutID == 3))) {
_root.KeyboardAccessibility.RegisterActionableItem("Next", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(false);
});
} else {
var Next = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID + 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Next", null, Next, null, null, function () {
Next();
return(false);
});
}
this.onEnterFrame = function () {
var _local1 = _root;
_local1.KeyboardAccessibility.SetState("Tutorial_Info");
this.onEnterFrame = function () {
var _local1 = _root;
if (NextTutorial != _local1._TutID) {
_local1._TutID = NextTutorial;
_local1.gotoAndStop((_local1._TutPrefix + _local1._TutID) + "_howto");
}
};
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Tutorial");
};
}
Instance of Symbol 631 MovieClip "next_btn" in Frame 198
/* no clip actions */
Instance of Symbol 668 MovieClip "prev_btn" in Frame 198
/* no clip actions */
Instance of Symbol 625 MovieClip in Frame 205
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver)) ? (_root.UI.WindowAlpha) : 100);
var prefix = (_root._TutPrefix + _root._TutID);
_root.Localizer.Loc(_root.tip_hdr, _root._TutPrefix + "hdr");
_root.Localizer.Loc(_root.body1_txt, prefix + "_body1");
_root.Localizer.Loc(_root.body2_txt, prefix + "_body2");
_root.Localizer.Loc(_root.body3_txt, prefix + "_body3");
_root.Localizer.Loc(_root.body4_txt, prefix + "_body4");
_root.Localizer.Loc(_root.body5_txt, prefix + "_body5");
_root.Localizer.Loc(_root.body6_txt, prefix + "_body6");
_root.Localizer.Loc(_root.body7_txt, prefix + "_body7");
_root.Localizer.Loc(_root.body8_txt, prefix + "_body8");
_root.Localizer.Loc(_root.next_txt, "tutorial_next_text");
_root.Localizer.Loc(_root.back_txt, "tutorial_backmenu_text");
}
Instance of Symbol 615 MovieClip "return_btn" in Frame 205
onClipEvent (load) {
var NextTutorial = _root._TutID;
_root.KeyboardAccessibility.RegisterActionableItem("Return", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(true);
});
_root.KeyboardAccessibility.RegisterActionableItem("Default", null, null, null, null, function () {
return(true);
});
if (_root._TutID == 1) {
_root.KeyboardAccessibility.RegisterActionableItem("Prev", null, null, null, null, function () {
return(false);
});
} else {
var Prev = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID - 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Prev", Prev, null, null, null, function () {
Prev();
return(false);
});
}
if (((_root._TutPrefix == "tip_") && (_root._TutID == 5)) || ((_root._TutPrefix != "tip_") && (_root._TutID == 3))) {
_root.KeyboardAccessibility.RegisterActionableItem("Next", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(false);
});
} else {
var Next = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID + 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Next", null, Next, null, null, function () {
Next();
return(false);
});
}
this.onEnterFrame = function () {
var _local1 = _root;
_local1.KeyboardAccessibility.SetState("Tutorial_Info");
this.onEnterFrame = function () {
var _local1 = _root;
if (NextTutorial != _local1._TutID) {
_local1._TutID = NextTutorial;
_local1.gotoAndStop((_local1._TutPrefix + _local1._TutID) + "_howto");
}
};
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Tutorial");
};
}
Instance of Symbol 668 MovieClip "prev_btn" in Frame 205
/* no clip actions */
Instance of Symbol 625 MovieClip in Frame 212
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver)) ? (_root.UI.WindowAlpha) : 100);
var prefix = (_root._TutPrefix + _root._TutID);
_root.Localizer.Loc(_root.tip_hdr, _root._TutPrefix + "hdr");
_root.Localizer.Loc(_root.body1_txt, prefix + "_body1");
_root.Localizer.Loc(_root.body2_txt, prefix + "_body2");
_root.Localizer.Loc(_root.body3_txt, prefix + "_body3");
_root.Localizer.Loc(_root.body4_txt, prefix + "_body4");
_root.Localizer.Loc(_root.body5_txt, prefix + "_body5");
_root.Localizer.Loc(_root.body6_txt, prefix + "_body6");
_root.Localizer.Loc(_root.body7_txt, prefix + "_body7");
_root.Localizer.Loc(_root.body8_txt, prefix + "_body8");
_root.Localizer.Loc(_root.next_txt, "tutorial_next_text");
_root.Localizer.Loc(_root.back_txt, "tutorial_backmenu_text");
}
Instance of Symbol 615 MovieClip "return_btn" in Frame 212
onClipEvent (load) {
var NextTutorial = _root._TutID;
_root.KeyboardAccessibility.RegisterActionableItem("Return", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(true);
});
_root.KeyboardAccessibility.RegisterActionableItem("Default", null, null, null, null, function () {
return(true);
});
if (_root._TutID == 1) {
_root.KeyboardAccessibility.RegisterActionableItem("Prev", null, null, null, null, function () {
return(false);
});
} else {
var Prev = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID - 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Prev", Prev, null, null, null, function () {
Prev();
return(false);
});
}
if (((_root._TutPrefix == "tip_") && (_root._TutID == 5)) || ((_root._TutPrefix != "tip_") && (_root._TutID == 3))) {
_root.KeyboardAccessibility.RegisterActionableItem("Next", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(false);
});
} else {
var Next = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID + 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Next", null, Next, null, null, function () {
Next();
return(false);
});
}
this.onEnterFrame = function () {
var _local1 = _root;
_local1.KeyboardAccessibility.SetState("Tutorial_Info");
this.onEnterFrame = function () {
var _local1 = _root;
if (NextTutorial != _local1._TutID) {
_local1._TutID = NextTutorial;
_local1.gotoAndStop((_local1._TutPrefix + _local1._TutID) + "_howto");
}
};
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Tutorial");
};
}
Instance of Symbol 631 MovieClip "next_btn" in Frame 212
/* no clip actions */
Instance of Symbol 625 MovieClip in Frame 219
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver)) ? (_root.UI.WindowAlpha) : 100);
var prefix = (_root._TutPrefix + _root._TutID);
_root.Localizer.Loc(_root.tip_hdr, _root._TutPrefix + "hdr");
_root.Localizer.Loc(_root.body1_txt, prefix + "_body1");
_root.Localizer.Loc(_root.body2_txt, prefix + "_body2");
_root.Localizer.Loc(_root.body3_txt, prefix + "_body3");
_root.Localizer.Loc(_root.body4_txt, prefix + "_body4");
_root.Localizer.Loc(_root.body5_txt, prefix + "_body5");
_root.Localizer.Loc(_root.body6_txt, prefix + "_body6");
_root.Localizer.Loc(_root.body7_txt, prefix + "_body7");
_root.Localizer.Loc(_root.body8_txt, prefix + "_body8");
_root.Localizer.Loc(_root.next_txt, "tutorial_next_text");
_root.Localizer.Loc(_root.back_txt, "tutorial_backmenu_text");
}
Instance of Symbol 615 MovieClip "return_btn" in Frame 219
onClipEvent (load) {
var NextTutorial = _root._TutID;
_root.KeyboardAccessibility.RegisterActionableItem("Return", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(true);
});
_root.KeyboardAccessibility.RegisterActionableItem("Default", null, null, null, null, function () {
return(true);
});
if (_root._TutID == 1) {
_root.KeyboardAccessibility.RegisterActionableItem("Prev", null, null, null, null, function () {
return(false);
});
} else {
var Prev = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID - 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Prev", Prev, null, null, null, function () {
Prev();
return(false);
});
}
if (((_root._TutPrefix == "tip_") && (_root._TutID == 5)) || ((_root._TutPrefix != "tip_") && (_root._TutID == 3))) {
_root.KeyboardAccessibility.RegisterActionableItem("Next", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(false);
});
} else {
var Next = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID + 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Next", null, Next, null, null, function () {
Next();
return(false);
});
}
this.onEnterFrame = function () {
var _local1 = _root;
_local1.KeyboardAccessibility.SetState("Tutorial_Info");
this.onEnterFrame = function () {
var _local1 = _root;
if (NextTutorial != _local1._TutID) {
_local1._TutID = NextTutorial;
_local1.gotoAndStop((_local1._TutPrefix + _local1._TutID) + "_howto");
}
};
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Tutorial");
};
}
Instance of Symbol 631 MovieClip "next_btn" in Frame 219
/* no clip actions */
Instance of Symbol 668 MovieClip "prev_btn" in Frame 219
/* no clip actions */
Instance of Symbol 625 MovieClip in Frame 226
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver)) ? (_root.UI.WindowAlpha) : 100);
var prefix = (_root._TutPrefix + _root._TutID);
_root.Localizer.Loc(_root.tip_hdr, _root._TutPrefix + "hdr");
_root.Localizer.Loc(_root.body1_txt, prefix + "_body1");
_root.Localizer.Loc(_root.body2_txt, prefix + "_body2");
_root.Localizer.Loc(_root.body3_txt, prefix + "_body3");
_root.Localizer.Loc(_root.body4_txt, prefix + "_body4");
_root.Localizer.Loc(_root.body5_txt, prefix + "_body5");
_root.Localizer.Loc(_root.body6_txt, prefix + "_body6");
_root.Localizer.Loc(_root.body7_txt, prefix + "_body7");
_root.Localizer.Loc(_root.body8_txt, prefix + "_body8");
_root.Localizer.Loc(_root.next_txt, "tutorial_next_text");
_root.Localizer.Loc(_root.back_txt, "tutorial_backmenu_text");
}
Instance of Symbol 615 MovieClip "return_btn" in Frame 226
onClipEvent (load) {
var NextTutorial = _root._TutID;
_root.KeyboardAccessibility.RegisterActionableItem("Return", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(true);
});
_root.KeyboardAccessibility.RegisterActionableItem("Default", null, null, null, null, function () {
return(true);
});
if (_root._TutID == 1) {
_root.KeyboardAccessibility.RegisterActionableItem("Prev", null, null, null, null, function () {
return(false);
});
} else {
var Prev = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID - 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Prev", Prev, null, null, null, function () {
Prev();
return(false);
});
}
if (((_root._TutPrefix == "tip_") && (_root._TutID == 5)) || ((_root._TutPrefix != "tip_") && (_root._TutID == 3))) {
_root.KeyboardAccessibility.RegisterActionableItem("Next", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(false);
});
} else {
var Next = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID + 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Next", null, Next, null, null, function () {
Next();
return(false);
});
}
this.onEnterFrame = function () {
var _local1 = _root;
_local1.KeyboardAccessibility.SetState("Tutorial_Info");
this.onEnterFrame = function () {
var _local1 = _root;
if (NextTutorial != _local1._TutID) {
_local1._TutID = NextTutorial;
_local1.gotoAndStop((_local1._TutPrefix + _local1._TutID) + "_howto");
}
};
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Tutorial");
};
}
Instance of Symbol 668 MovieClip "prev_btn" in Frame 226
/* no clip actions */
Instance of Symbol 625 MovieClip in Frame 233
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver)) ? (_root.UI.WindowAlpha) : 100);
var prefix = (_root._TutPrefix + _root._TutID);
_root.Localizer.Loc(_root.tip_hdr, _root._TutPrefix + "hdr");
_root.Localizer.Loc(_root.body1_txt, prefix + "_body1");
_root.Localizer.Loc(_root.body2_txt, prefix + "_body2");
_root.Localizer.Loc(_root.body3_txt, prefix + "_body3");
_root.Localizer.Loc(_root.body4_txt, prefix + "_body4");
_root.Localizer.Loc(_root.body5_txt, prefix + "_body5");
_root.Localizer.Loc(_root.body6_txt, prefix + "_body6");
_root.Localizer.Loc(_root.body7_txt, prefix + "_body7");
_root.Localizer.Loc(_root.body8_txt, prefix + "_body8");
_root.Localizer.Loc(_root.next_txt, "tutorial_next_text");
_root.Localizer.Loc(_root.back_txt, "tutorial_backmenu_text");
}
Instance of Symbol 615 MovieClip "return_btn" in Frame 233
onClipEvent (load) {
var NextTutorial = _root._TutID;
_root.KeyboardAccessibility.RegisterActionableItem("Return", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(true);
});
_root.KeyboardAccessibility.RegisterActionableItem("Default", null, null, null, null, function () {
return(true);
});
if (_root._TutID == 1) {
_root.KeyboardAccessibility.RegisterActionableItem("Prev", null, null, null, null, function () {
return(false);
});
} else {
var Prev = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID - 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Prev", Prev, null, null, null, function () {
Prev();
return(false);
});
}
if (((_root._TutPrefix == "tip_") && (_root._TutID == 5)) || ((_root._TutPrefix != "tip_") && (_root._TutID == 3))) {
_root.KeyboardAccessibility.RegisterActionableItem("Next", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(false);
});
} else {
var Next = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID + 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Next", null, Next, null, null, function () {
Next();
return(false);
});
}
this.onEnterFrame = function () {
var _local1 = _root;
_local1.KeyboardAccessibility.SetState("Tutorial_Info");
this.onEnterFrame = function () {
var _local1 = _root;
if (NextTutorial != _local1._TutID) {
_local1._TutID = NextTutorial;
_local1.gotoAndStop((_local1._TutPrefix + _local1._TutID) + "_howto");
}
};
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Tutorial");
};
}
Instance of Symbol 631 MovieClip "next_btn" in Frame 233
/* no clip actions */
Instance of Symbol 625 MovieClip in Frame 239
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver)) ? (_root.UI.WindowAlpha) : 100);
var prefix = (_root._TutPrefix + _root._TutID);
_root.Localizer.Loc(_root.tip_hdr, _root._TutPrefix + "hdr");
_root.Localizer.Loc(_root.body1_txt, prefix + "_body1");
_root.Localizer.Loc(_root.body2_txt, prefix + "_body2");
_root.Localizer.Loc(_root.body3_txt, prefix + "_body3");
_root.Localizer.Loc(_root.body4_txt, prefix + "_body4");
_root.Localizer.Loc(_root.body5_txt, prefix + "_body5");
_root.Localizer.Loc(_root.body6_txt, prefix + "_body6");
_root.Localizer.Loc(_root.body7_txt, prefix + "_body7");
_root.Localizer.Loc(_root.body8_txt, prefix + "_body8");
_root.Localizer.Loc(_root.next_txt, "tutorial_next_text");
_root.Localizer.Loc(_root.back_txt, "tutorial_backmenu_text");
}
Instance of Symbol 615 MovieClip "return_btn" in Frame 239
onClipEvent (load) {
var NextTutorial = _root._TutID;
_root.KeyboardAccessibility.RegisterActionableItem("Return", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(true);
});
_root.KeyboardAccessibility.RegisterActionableItem("Default", null, null, null, null, function () {
return(true);
});
if (_root._TutID == 1) {
_root.KeyboardAccessibility.RegisterActionableItem("Prev", null, null, null, null, function () {
return(false);
});
} else {
var Prev = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID - 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Prev", Prev, null, null, null, function () {
Prev();
return(false);
});
}
if (((_root._TutPrefix == "tip_") && (_root._TutID == 5)) || ((_root._TutPrefix != "tip_") && (_root._TutID == 3))) {
_root.KeyboardAccessibility.RegisterActionableItem("Next", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(false);
});
} else {
var Next = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID + 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Next", null, Next, null, null, function () {
Next();
return(false);
});
}
this.onEnterFrame = function () {
var _local1 = _root;
_local1.KeyboardAccessibility.SetState("Tutorial_Info");
this.onEnterFrame = function () {
var _local1 = _root;
if (NextTutorial != _local1._TutID) {
_local1._TutID = NextTutorial;
_local1.gotoAndStop((_local1._TutPrefix + _local1._TutID) + "_howto");
}
};
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Tutorial");
};
}
Instance of Symbol 631 MovieClip "next_btn" in Frame 239
/* no clip actions */
Instance of Symbol 668 MovieClip "prev_btn" in Frame 239
/* no clip actions */
Instance of Symbol 625 MovieClip in Frame 245
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver)) ? (_root.UI.WindowAlpha) : 100);
var prefix = (_root._TutPrefix + _root._TutID);
_root.Localizer.Loc(_root.tip_hdr, _root._TutPrefix + "hdr");
_root.Localizer.Loc(_root.body1_txt, prefix + "_body1");
_root.Localizer.Loc(_root.body2_txt, prefix + "_body2");
_root.Localizer.Loc(_root.body3_txt, prefix + "_body3");
_root.Localizer.Loc(_root.body4_txt, prefix + "_body4");
_root.Localizer.Loc(_root.body5_txt, prefix + "_body5");
_root.Localizer.Loc(_root.body6_txt, prefix + "_body6");
_root.Localizer.Loc(_root.body7_txt, prefix + "_body7");
_root.Localizer.Loc(_root.body8_txt, prefix + "_body8");
_root.Localizer.Loc(_root.next_txt, "tutorial_next_text");
_root.Localizer.Loc(_root.back_txt, "tutorial_backmenu_text");
}
Instance of Symbol 615 MovieClip "return_btn" in Frame 245
onClipEvent (load) {
var NextTutorial = _root._TutID;
_root.KeyboardAccessibility.RegisterActionableItem("Return", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(true);
});
_root.KeyboardAccessibility.RegisterActionableItem("Default", null, null, null, null, function () {
return(true);
});
if (_root._TutID == 1) {
_root.KeyboardAccessibility.RegisterActionableItem("Prev", null, null, null, null, function () {
return(false);
});
} else {
var Prev = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID - 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Prev", Prev, null, null, null, function () {
Prev();
return(false);
});
}
if (((_root._TutPrefix == "tip_") && (_root._TutID == 5)) || ((_root._TutPrefix != "tip_") && (_root._TutID == 3))) {
_root.KeyboardAccessibility.RegisterActionableItem("Next", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(false);
});
} else {
var Next = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID + 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Next", null, Next, null, null, function () {
Next();
return(false);
});
}
this.onEnterFrame = function () {
var _local1 = _root;
_local1.KeyboardAccessibility.SetState("Tutorial_Info");
this.onEnterFrame = function () {
var _local1 = _root;
if (NextTutorial != _local1._TutID) {
_local1._TutID = NextTutorial;
_local1.gotoAndStop((_local1._TutPrefix + _local1._TutID) + "_howto");
}
};
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Tutorial");
};
}
Instance of Symbol 631 MovieClip "next_btn" in Frame 245
/* no clip actions */
Instance of Symbol 668 MovieClip "prev_btn" in Frame 245
/* no clip actions */
Instance of Symbol 625 MovieClip in Frame 251
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver)) ? (_root.UI.WindowAlpha) : 100);
var prefix = (_root._TutPrefix + _root._TutID);
_root.Localizer.Loc(_root.tip_hdr, _root._TutPrefix + "hdr");
_root.Localizer.Loc(_root.body1_txt, prefix + "_body1");
_root.Localizer.Loc(_root.body2_txt, prefix + "_body2");
_root.Localizer.Loc(_root.body3_txt, prefix + "_body3");
_root.Localizer.Loc(_root.body4_txt, prefix + "_body4");
_root.Localizer.Loc(_root.body5_txt, prefix + "_body5");
_root.Localizer.Loc(_root.body6_txt, prefix + "_body6");
_root.Localizer.Loc(_root.body7_txt, prefix + "_body7");
_root.Localizer.Loc(_root.body8_txt, prefix + "_body8");
_root.Localizer.Loc(_root.next_txt, "tutorial_next_text");
_root.Localizer.Loc(_root.back_txt, "tutorial_backmenu_text");
}
Instance of Symbol 615 MovieClip "return_btn" in Frame 251
onClipEvent (load) {
var NextTutorial = _root._TutID;
_root.KeyboardAccessibility.RegisterActionableItem("Return", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(true);
});
_root.KeyboardAccessibility.RegisterActionableItem("Default", null, null, null, null, function () {
return(true);
});
if (_root._TutID == 1) {
_root.KeyboardAccessibility.RegisterActionableItem("Prev", null, null, null, null, function () {
return(false);
});
} else {
var Prev = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID - 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Prev", Prev, null, null, null, function () {
Prev();
return(false);
});
}
if (((_root._TutPrefix == "tip_") && (_root._TutID == 5)) || ((_root._TutPrefix != "tip_") && (_root._TutID == 3))) {
_root.KeyboardAccessibility.RegisterActionableItem("Next", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(false);
});
} else {
var Next = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID + 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Next", null, Next, null, null, function () {
Next();
return(false);
});
}
this.onEnterFrame = function () {
var _local1 = _root;
_local1.KeyboardAccessibility.SetState("Tutorial_Info");
this.onEnterFrame = function () {
var _local1 = _root;
if (NextTutorial != _local1._TutID) {
_local1._TutID = NextTutorial;
_local1.gotoAndStop((_local1._TutPrefix + _local1._TutID) + "_howto");
}
};
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Tutorial");
};
}
Instance of Symbol 668 MovieClip "prev_btn" in Frame 251
/* no clip actions */
Instance of Symbol 631 MovieClip "next_btn" in Frame 251
/* no clip actions */
Instance of Symbol 625 MovieClip in Frame 257
onClipEvent (load) {
this._alpha = (((_root._GameType != _root.GT.Timed) || (_root._GameOver)) ? (_root.UI.WindowAlpha) : 100);
var prefix = (_root._TutPrefix + _root._TutID);
_root.Localizer.Loc(_root.tip_hdr, _root._TutPrefix + "hdr");
_root.Localizer.Loc(_root.body1_txt, prefix + "_body1");
_root.Localizer.Loc(_root.body2_txt, prefix + "_body2");
_root.Localizer.Loc(_root.body3_txt, prefix + "_body3");
_root.Localizer.Loc(_root.body4_txt, prefix + "_body4");
_root.Localizer.Loc(_root.body5_txt, prefix + "_body5");
_root.Localizer.Loc(_root.body6_txt, prefix + "_body6");
_root.Localizer.Loc(_root.body7_txt, prefix + "_body7");
_root.Localizer.Loc(_root.body8_txt, prefix + "_body8");
_root.Localizer.Loc(_root.next_txt, "tutorial_next_text");
_root.Localizer.Loc(_root.back_txt, "tutorial_backmenu_text");
}
Instance of Symbol 615 MovieClip "return_btn" in Frame 257
onClipEvent (load) {
var NextTutorial = _root._TutID;
_root.KeyboardAccessibility.RegisterActionableItem("Return", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(true);
});
_root.KeyboardAccessibility.RegisterActionableItem("Default", null, null, null, null, function () {
return(true);
});
if (_root._TutID == 1) {
_root.KeyboardAccessibility.RegisterActionableItem("Prev", null, null, null, null, function () {
return(false);
});
} else {
var Prev = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID - 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Prev", Prev, null, null, null, function () {
Prev();
return(false);
});
}
if (((_root._TutPrefix == "tip_") && (_root._TutID == 5)) || ((_root._TutPrefix != "tip_") && (_root._TutID == 3))) {
_root.KeyboardAccessibility.RegisterActionableItem("Next", function () {
button.onPress();
}, function () {
button.onRelease();
}, null, null, function () {
return(false);
});
} else {
var Next = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonDown;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
NextTutorial = _local1._TutID + 1;
};
_root.KeyboardAccessibility.RegisterActionableItem("Next", null, Next, null, null, function () {
Next();
return(false);
});
}
this.onEnterFrame = function () {
var _local1 = _root;
_local1.KeyboardAccessibility.SetState("Tutorial_Info");
this.onEnterFrame = function () {
var _local1 = _root;
if (NextTutorial != _local1._TutID) {
_local1._TutID = NextTutorial;
_local1.gotoAndStop((_local1._TutPrefix + _local1._TutID) + "_howto");
}
};
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Tutorial");
};
}
Instance of Symbol 668 MovieClip "prev_btn" in Frame 257
/* no clip actions */
Instance of Symbol 625 MovieClip in Frame 266
onClipEvent (load) {
this._alpha = _root.UI.WindowAlpha;
_root.Localizer.Loc(_root.levelup_txt, "Tip_Survival_Text");
}
Instance of Symbol 615 MovieClip "btn" in Frame 266
onClipEvent (load) {
ButtonText = "popup_continueButton";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("OK", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.onEnterFrame = function () {
_root.KeyboardAccessibility.SetState("LevelUp", "OK");
this.onEnterFrame = null;
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
if (_local1._TipRef < 1) {
var newTrack = Math.floor(Math.random() * 3);
}
_local1._TipRef = 0;
_local1.ActiveInGame = true;
_local1.gotoAndStop("Active");
};
}
Instance of Symbol 1062 MovieClip "LeaderboardTabs" in Frame 273
onClipEvent (load) {
if (!_root._SignedInToLive) {
_root.gotoAndStop("NoLive");
return(undefined);
}
this._alpha = 100;
_root.Localizer.Loc(_root.LeaderboardTabs.marathon_hdr, "Leaderboard_Marathon_Text");
_root.Localizer.Loc(_root.LeaderboardTabs.timed_hdr, "Leaderboard_Timed_Text");
_root.Localizer.Loc(_root.LeaderboardTabs.survival_hdr, "Leaderboard_Survival_Text");
_root.Localizer.Loc(_root.sortmode_hdr, "Leaderboard_FriendScores_Text");
_root.Localizer.Loc(_root.changesortmode_hdr, "Leaderboard_Sort_Text");
_root.Localizer.Loc(_root.back_txt, "credits_back");
_root.Localizer.Loc(_root.signedin_hdr, "Leaderboard_SignedIn_Text");
_root.signedin_txt.text = _root.GamerTag;
_root.Localizer.Loc(_root.BreakoutScoreHeader, "leaderboard_score");
_root.Localizer.Loc(_root.rank_txt, "rank_text");
_root.Localizer.Loc(_root.gamertag_txt, "gamertag_text");
_root.Localizer.Loc(_root.score_txt, "score_text");
_root.Localizer.Loc(_root.difficulty_txt, "difficulty_text");
var GM_Marathon = 0;
var GM_Timed = 1;
var GM_Survival = 2;
var SO_Friends = 0;
var SO_MyScores = 1;
var SO_Overall = 2;
var GameMode = GM_Marathon;
var SortOrder = SO_Friends;
var LeaderBoardSelected = 1;
var LeaderBoardHighlighted = 0;
var LeaderBoardTotalSize = 0;
fscommand ("LeaderBoardGameMode", GameMode);
fscommand ("LeaderBoardSortOrder", SortOrder);
var UpdateLeaderBoard = function () {
var _local1 = _root;
_local1.breakoutcover._visible = true;
_local1.uparrow.gotoAndStop("no");
_local1.downarrow.gotoAndStop("no");
_local1.BreakoutClusters.text = "";
_local1.BreakoutFlowers.text = "";
_local1.BreakoutPearls.text = "";
_local1.BreakoutBombs.text = "";
_local1.BreakoutBonuses.text = "";
_local1.BreakoutBBCombos.text = "";
_local1.BreakoutB3Combos.text = "";
_local1.BreakoutScore.text = "";
_local1.BreakoutDifficulty.text = "";
fscommand ("LeaderBoardQuery", LeaderBoardSelected);
};
var RedrawLeaderboard = function () {
switch (GameMode) {
case GM_Marathon :
_root.LeaderboardTabs.gotoAndStop("Marathon");
break;
case GM_Timed :
_root.LeaderboardTabs.gotoAndStop("Timed");
break;
case GM_Survival :
_root.LeaderboardTabs.gotoAndStop("Survival");
}
switch (SortOrder) {
case SO_Friends :
_root.Localizer.Loc(_root.sortmode_hdr, "Leaderboard_FriendScores_Text");
break;
case SO_MyScores :
_root.Localizer.Loc(_root.sortmode_hdr, "Leaderboard_MyScores_Text");
break;
case SO_Overall :
_root.Localizer.Loc(_root.sortmode_hdr, "Leaderboard_TopScores_Text");
}
var i = 0;
while (i < 10) {
eval ("_parent.leaderboardline" + i).FillInfo(null);
i++;
}
_root.NobodyBox._visible = false;
UpdateLeaderBoard();
};
var GoBack = function () {
var _local1 = _root;
if (!_local1.IsPaused) {
_local1.gotoAndStop("Menu");
} else {
_local1.gotoAndStop("Pause");
}
};
var Righter = function () {
if (GameMode < 2) {
GameMode++;
LeaderBoardSelected = ((SortOrder == SO_MyScores) ? 0 : 1);
LeaderBoardHighlighted = 0;
fscommand ("LeaderBoardGameMode", GameMode);
RedrawLeaderboard();
}
};
var Lefter = function () {
if (GameMode > 0) {
GameMode--;
LeaderBoardSelected = ((SortOrder == SO_MyScores) ? 0 : 1);
LeaderBoardHighlighted = 0;
fscommand ("LeaderBoardGameMode", GameMode);
RedrawLeaderboard();
}
};
var ChangeSortOrder = function () {
SortOrder = (SortOrder + 1) % 3;
LeaderBoardSelected = ((SortOrder == SO_MyScores) ? 0 : 1);
LeaderBoardHighlighted = 0;
fscommand ("LeaderBoardSortOrder", SortOrder);
RedrawLeaderboard();
};
var LessInfo = function () {
if (_root.uparrow._currentframe == 1) {
return(undefined);
}
if (LeaderBoardSelected == 1) {
return(undefined);
}
LeaderBoardSelected = LeaderBoardSelected - 10;
LeaderBoardHighlighted = 9;
if (LeaderBoardSelected < 1) {
LeaderBoardHighlighted = LeaderBoardHighlighted + (LeaderBoardSelected - 1);
LeaderBoardSelected = 1;
}
RedrawLeaderboard();
};
var MoreInfo = function () {
if (_root.downarrow._currentframe == 1) {
} else {
var _local1 = Number(LeaderBoardSelected) + 10;
if (_local1 > LeaderBoardTotalSize) {
} else {
LeaderBoardSelected = _local1;
LeaderBoardHighlighted = 0;
RedrawLeaderboard();
}
}
};
_root.KeyboardAccessibility.RegisterActionableItem("Back", GoBack, null, null, null, function () {
return(false);
});
_root.KeyboardAccessibility.RegisterActionableItem("Lefter", Lefter, null, null, null, function () {
return(false);
});
_root.KeyboardAccessibility.RegisterActionableItem("Righter", Righter, null, null, null, function () {
return(false);
});
_root.KeyboardAccessibility.RegisterActionableItem("SortOrder", ChangeSortOrder, null, null, null, function () {
return(false);
});
_root.KeyboardAccessibility.RegisterActionableItem("LessScores", null, null, null, null, function () {
_root.LeaderboardTabs.LessInfo();
return(false);
});
_root.KeyboardAccessibility.RegisterActionableItem("MoreScores", null, null, null, null, function () {
_root.LeaderboardTabs.MoreInfo();
return(false);
});
this.onEnterFrame = function () {
this.onEnterFrame = function () {
if (!_root._SignedInToLive) {
_root.gotoAndStop("NoLive");
}
};
var RegisterInfoLine = function (line, index) {
var _local2 = function () {
fscommand ("ShowGamercard", index);
};
var _local1 = function () {
line.myRollOver();
};
var _local3 = function () {
line.myRollOut();
};
var Valid = function () {
return(line.fValid);
};
_root.KeyboardAccessibility.RegisterActionableItem("Score" + index, _local2, null, _local1, _local3, Valid);
};
var i = 0;
while (i < 10) {
RegisterInfoLine(eval ("_parent.leaderboardline" + i), i);
i++;
}
_root.KeyboardAccessibility.SetState("LeaderBoard");
RedrawLeaderboard();
};
}
Instance of Symbol 420 MovieClip in Frame 273
onClipEvent (load) {
stop();
}
Instance of Symbol 328 MovieClip in Frame 273
onClipEvent (load) {
stop();
}
Instance of Symbol 625 MovieClip in Frame 277
onClipEvent (load) {
_root.Localizer.Loc(_root.back_txt, "controls_back");
_root.Localizer.Loc(_root.controls.header, "controls_hdr_text");
_root.Localizer.Loc(_root.controls.ccw1, "controls_rotateccw_text");
_root.Localizer.Loc(_root.controls.cw1, "controls_rotatecw_text");
_root.Localizer.Loc(_root.controls.guide, "controls_guide_text");
_root.Localizer.Loc(_root.controls.pause, "controls_pause_text");
_root.Localizer.Loc(_root.controls.nav, "controls_navigate_text");
}
Instance of Symbol 795 MovieClip "confirm" in Frame 277
onClipEvent (load) {
_root.KeyboardAccessibility.RegisterActionableItem("Continue", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.onEnterFrame = function () {
_root.KeyboardAccessibility.SetState("Controls");
this.onEnterFrame = null;
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Options");
};
}
Instance of Symbol 1114 MovieClip "about" in Frame 282
onClipEvent (load) {
this.StartTime = getTimer();
this.onEnterFrame = function () {
var _local2 = this;
var _local1 = getTimer() - _local2.StartTime;
_local1 = _local1 % 60000;
if (_local1 < 5000) {
_local2._y = 0;
} else if (_local1 <= 50000) {
_local2._y = (475 * (5000 - _local1)) / 45000;
} else if (_local1 <= 60000) {
_local2._y = -475;
}
};
}
Instance of Symbol 795 MovieClip "confirm" in Frame 282
onClipEvent (load) {
_root.KeyboardAccessibility.RegisterActionableItem("Continue", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.onEnterFrame = function () {
_root.KeyboardAccessibility.SetState("About");
this.onEnterFrame = null;
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
_local1.gotoAndStop("Options");
};
}
Instance of Symbol 625 MovieClip in Frame 287
onClipEvent (load) {
this._alpha = _root.UI.WindowAlpha;
_root.Localizer.Loc(_root.body_nolive, "notsignedintolive_text");
this.onEnterFrame = function () {
if (_root._SignedInToLive) {
_root.gotoAndStop("Leaderboard");
}
};
}
Instance of Symbol 615 MovieClip "confirm" in Frame 287
onClipEvent (load) {
ButtonText = "notsignedintolive_back_text";
this.text.valign = "center";
_root.Localizer.Loc(this.text, ButtonText);
_root.KeyboardAccessibility.RegisterActionableItem("Continue", function () {
button.onPress();
}, function () {
button.onRelease();
}, function () {
button.onRollOver();
}, function () {
button.onRollOut();
}, function () {
return(true);
});
this.onEnterFrame = function () {
_root.KeyboardAccessibility.SetState("NoLive");
this.onEnterFrame = null;
};
this.myPress = function () {
_root._SoundMask = _root._SoundMask | _root.SF.ButtonDown;
};
this.myRelease = function () {
var _local1 = _root;
_local1._SoundMask = _local1._SoundMask | _local1.SF.ButtonUp;
if (!_local1.IsPaused) {
_local1.gotoAndStop("Menu");
} else {
_local1.gotoAndStop("Pause");
}
};
}
Frame 299
function SetBoard(str) {
var _local2 = _root;
var i;
var oy;
var x = 0;
var _local1 = 0;
var _local3;
i = 0;
while (i < str.length) {
_local3 = str.charCodeAt(i) - 97;
if ((_local3 < 0) || (_local3 > 23)) {
} else {
if (_local3 < 21) {
_local2.ForceColor(_local2.Board[x][_local1].Piece, Math.floor(_local3 / 3), 0, false, false);
_local2.ForceColor(_local2.Board[x][_local1].Piece, Math.floor(_local3 / 3), 0, (_local3 % 3) == 1, (_local3 % 3) == 2);
} else {
_local2.ForceColor(_local2.Board[x][_local1].Piece, 0, _local3 - 20, false, false);
}
oy = _local1;
if (_local1 < _local2._BoardHeight) {
_local1++;
}
_local1 = _local1 % _local2._BoardHeight;
if (_local1 == 0) {
if (((x % 2) == 0) || (oy >= _local2._BoardHeight)) {
x++;
} else {
_local1 = _local2._BoardHeight;
}
}
}
i++;
}
}
SetBoard(_root._BoardSet);
_root.gotoAndStop("Active");
Frame 306
_root._ReceivedSessionStart = true;
stop();
Frame 314
if (_root._currentframe != _root.Fr.Splash) {
_root.gotoAndStop("Menu");
}
Frame 321
if (_root._PiecesDropped) {
if ((_root._GameType == _root.GT.Timed) && ((_root._Level == 0) || (_root._Level == 3))) {
_root.gotoAndStop(("Level_" + (_root._Level + 1)) + "_Timed");
} else {
_root.gotoAndStop("Level_" + (_root._Level + 1));
}
} else {
_root.gotoAndStop("Active");
}
Frame 328
_root._LevelUp._Time = -1;
_root.LevelUp_Think(_root._LevelUp);
if ((_root._GameType == _root.GT.Timed) && ((_root._Level == 0) || (_root._Level == 3))) {
_root.gotoAndStop(("Level_" + (_root._Level + 1)) + "_Timed");
} else {
_root.gotoAndStop("Level_" + (_root._Level + 1));
}
Frame 335
_root._Muted = true;
_root.M_current.stop();
Frame 342
_root._Muted = false;
Frame 349
if (_root._currentframe == _root.Fr.Active) {
_root.gotoAndStop("Pause");
}
_root.M_current.setVolume(0);
Frame 356
if (_root._currentframe == _root.Fr.Active) {
_root.gotoAndStop("Pause");
}
if (!_root._Muted) {
_root.M_current.setVolume(_root._Level_music * 20);
}
Frame 363
var newColor = new Color(_root.piecemask);
newColor.setRGB(Number(_root.bgcolor));
Frame 370
_root.ParseHighScores();
Frame 377
_root.ParseSettings();
Frame 384
if ((!_root._PiecesDropped) || (_root._GameOver)) {
_root._GameShutdown = true;
_root.gotoAndStop("Confirm");
} else {
_root.gotoAndStop("ExitSaveGame");
}
Frame 390
Frame 397
getURL (_root.BuyItURL, "_blank");
stop();
Frame 404
if (_root._LocXML != null) {
_root.Localizer.LocXML.parseXML(_root._LocXML);
_root.Localizer.ParseLocXML();
}
Frame 414
Frame 422
if (_root.LeaderBoardResults0 == "Error") {
_root.NobodyBox._visible = true;
_root.Localizer.Loc(_root.NobodyBox.NoLeaderBoard, "Leaderboard_Error_Text");
} else if (_root.LeaderBoardResults0 == "") {
_root.NobodyBox._visible = true;
if (_root.LeaderboardTabs.SortOrder == _root.LeaderboardTabs.SO_Friends) {
_root.Localizer.Loc(_root.NobodyBox.NoLeaderBoard, "Leaderboard_NoScoreFriends_Text");
} else if (_root.LeaderboardTabs.SortOrder == _root.LeaderboardTabs.SO_MyScores) {
_root.Localizer.Loc(_root.NobodyBox.NoLeaderBoard, "Leaderboard_NoScoreYou_Text");
} else {
_root.Localizer.Loc(_root.NobodyBox.NoLeaderBoard, "Leaderboard_NoScores_Text");
}
} else {
var i = 0;
while (i < 10) {
var foo = eval ("_root.LeaderBoardResults" + i).split(",");
var leaderboard = {rank:foo[0], gamertag:foo[1], score:foo[2], difficulty:((foo[3] == "Hard") ? "highscores_expert" : (((foo[3] == "Medium") ? "highscores_intermediate" : "highscores_beginner"))), won:foo[4] == "true", clusters:foo[5], flowers:foo[6], pearls:foo[7], bombs:foo[8], bonuses:foo[9], bbcombo:foo[10], b3combo:foo[11]};
eval ("_root.leaderboardline" + i).FillInfo(leaderboard, 16777215);
i++;
}
eval ("_root.leaderboardline" + _root.LeaderboardTabs.LeaderBoardHighlighted).myRollOver();
if (_root.KeyboardAccessibility.CurrentState.ID == "LeaderBoard") {
_root.KeyboardAccessibility.CurrentlyActiveID = "Score" + _root.LeaderboardTabs.LeaderBoardHighlighted;
}
_root.uparrow.gotoAndStop(((_root.LeaderboardTabs.LeaderBoardSelected != 1) ? "yes" : "no"));
_root.downarrow.gotoAndStop((((Number(_root.LeaderboardTabs.LeaderBoardSelected) + 10) <= _root.LeaderboardTabs.LeaderBoardTotalSize) ? "yes" : "no"));
}
Symbol 36 MovieClip Frame 1
stop();
Symbol 61 MovieClip [LevelPlume] Frame 248
stop();
this.DonePlaying = true;
Symbol 65 MovieClip Frame 49
stop();
Symbol 67 MovieClip Frame 49
stop();
Symbol 68 MovieClip Frame 49
stop();
Symbol 70 MovieClip Frame 19
stop();
Symbol 71 MovieClip Frame 19
stop();
Symbol 73 MovieClip Frame 25
stop();
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 2
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 2
stop();
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 2
stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 2
stop();
Symbol 98 MovieClip Frame 2
if (this.slowup > 0) {
this.slowup--;
this.gotoAndPlay(1);
}
Symbol 98 MovieClip Frame 55
this._visible = false;
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 2
stop();
Symbol 106 MovieClip Frame 32
stop();
Symbol 113 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (Math.random() < 0.001) {
play();
}
};
Symbol 146 MovieClip Frame 60
gotoAndPlay(BombTick);
Symbol 146 MovieClip Frame 120
gotoAndPlay(BombTick);
Symbol 146 MovieClip Frame 180
gotoAndPlay(BombTick);
Symbol 146 MovieClip Frame 241
gotoAndPlay(BombTick);
Symbol 146 MovieClip Frame 301
gotoAndPlay(BombTick);
Symbol 146 MovieClip Frame 361
gotoAndPlay(BombTick);
Symbol 146 MovieClip Frame 420
gotoAndPlay(BombTick);
Symbol 146 MovieClip Frame 480
gotoAndPlay(BombTick);
Symbol 146 MovieClip Frame 540
gotoAndPlay(BombTick);
Symbol 146 MovieClip Frame 630
stop();
this.ExplosionDone = true;
Symbol 147 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 2
if (this.slowup > 0) {
this.slowup--;
this.gotoAndPlay(1);
}
Symbol 154 MovieClip Frame 55
this._visible = false;
stop();
Symbol 160 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (Math.random() < 0.001) {
play();
}
};
Symbol 192 MovieClip Frame 60
gotoAndPlay(BombTick);
Symbol 192 MovieClip Frame 120
gotoAndPlay(BombTick);
Symbol 192 MovieClip Frame 180
gotoAndPlay(BombTick);
Symbol 192 MovieClip Frame 241
gotoAndPlay(BombTick);
Symbol 192 MovieClip Frame 301
gotoAndPlay(BombTick);
Symbol 192 MovieClip Frame 361
gotoAndPlay(BombTick);
Symbol 192 MovieClip Frame 420
gotoAndPlay(BombTick);
Symbol 192 MovieClip Frame 480
gotoAndPlay(BombTick);
Symbol 192 MovieClip Frame 540
gotoAndPlay(BombTick);
Symbol 192 MovieClip Frame 630
stop();
this.ExplosionDone = true;
Symbol 200 MovieClip Frame 2
if (this.slowup > 0) {
this.slowup--;
this.gotoAndPlay(1);
}
Symbol 200 MovieClip Frame 55
this._visible = false;
stop();
Symbol 206 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (Math.random() < 0.001) {
play();
}
};
Symbol 237 MovieClip Frame 60
gotoAndPlay(BombTick);
Symbol 237 MovieClip Frame 120
gotoAndPlay(BombTick);
Symbol 237 MovieClip Frame 180
gotoAndPlay(BombTick);
Symbol 237 MovieClip Frame 241
gotoAndPlay(BombTick);
Symbol 237 MovieClip Frame 301
gotoAndPlay(BombTick);
Symbol 237 MovieClip Frame 361
gotoAndPlay(BombTick);
Symbol 237 MovieClip Frame 420
gotoAndPlay(BombTick);
Symbol 237 MovieClip Frame 480
gotoAndPlay(BombTick);
Symbol 237 MovieClip Frame 540
gotoAndPlay(BombTick);
Symbol 237 MovieClip Frame 630
stop();
this.ExplosionDone = true;
Symbol 245 MovieClip Frame 2
if (this.slowup > 0) {
this.slowup--;
this.gotoAndPlay(1);
}
Symbol 245 MovieClip Frame 55
this._visible = false;
stop();
Symbol 251 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (Math.random() < 0.001) {
play();
}
};
Symbol 283 MovieClip Frame 60
gotoAndPlay(BombTick);
Symbol 283 MovieClip Frame 120
gotoAndPlay(BombTick);
Symbol 283 MovieClip Frame 180
gotoAndPlay(BombTick);
Symbol 283 MovieClip Frame 241
gotoAndPlay(BombTick);
Symbol 283 MovieClip Frame 301
gotoAndPlay(BombTick);
Symbol 283 MovieClip Frame 361
gotoAndPlay(BombTick);
Symbol 283 MovieClip Frame 420
gotoAndPlay(BombTick);
Symbol 283 MovieClip Frame 480
gotoAndPlay(BombTick);
Symbol 283 MovieClip Frame 540
gotoAndPlay(BombTick);
Symbol 283 MovieClip Frame 630
stop();
this.ExplosionDone = true;
Symbol 284 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 2
if (this.slowup > 0) {
this.slowup--;
this.gotoAndPlay(1);
}
Symbol 291 MovieClip Frame 55
this._visible = false;
stop();
Symbol 297 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (Math.random() < 0.001) {
play();
}
};
Symbol 328 MovieClip Frame 60
gotoAndPlay(BombTick);
Symbol 328 MovieClip Frame 120
gotoAndPlay(BombTick);
Symbol 328 MovieClip Frame 180
gotoAndPlay(BombTick);
Symbol 328 MovieClip Frame 241
gotoAndPlay(BombTick);
Symbol 328 MovieClip Frame 301
gotoAndPlay(BombTick);
Symbol 328 MovieClip Frame 361
gotoAndPlay(BombTick);
Symbol 328 MovieClip Frame 420
gotoAndPlay(BombTick);
Symbol 328 MovieClip Frame 480
gotoAndPlay(BombTick);
Symbol 328 MovieClip Frame 540
gotoAndPlay(BombTick);
Symbol 328 MovieClip Frame 630
stop();
this.ExplosionDone = true;
Symbol 336 MovieClip Frame 2
if (this.slowup > 0) {
this.slowup--;
this.gotoAndPlay(1);
}
Symbol 336 MovieClip Frame 55
this._visible = false;
stop();
Symbol 342 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (Math.random() < 0.001) {
play();
}
};
Symbol 374 MovieClip Frame 60
gotoAndPlay(BombTick);
Symbol 374 MovieClip Frame 120
gotoAndPlay(BombTick);
Symbol 374 MovieClip Frame 180
gotoAndPlay(BombTick);
Symbol 374 MovieClip Frame 241
gotoAndPlay(BombTick);
Symbol 374 MovieClip Frame 301
gotoAndPlay(BombTick);
Symbol 374 MovieClip Frame 361
gotoAndPlay(BombTick);
Symbol 374 MovieClip Frame 420
gotoAndPlay(BombTick);
Symbol 374 MovieClip Frame 480
gotoAndPlay(BombTick);
Symbol 374 MovieClip Frame 540
gotoAndPlay(BombTick);
Symbol 374 MovieClip Frame 630
stop();
this.ExplosionDone = true;
Symbol 382 MovieClip Frame 2
if (this.slowup > 0) {
this.slowup--;
this.gotoAndPlay(1);
}
Symbol 382 MovieClip Frame 55
this._visible = false;
stop();
Symbol 388 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (Math.random() < 0.001) {
play();
}
};
Symbol 420 MovieClip Frame 60
gotoAndPlay(BombTick);
Symbol 420 MovieClip Frame 120
gotoAndPlay(BombTick);
Symbol 420 MovieClip Frame 180
gotoAndPlay(BombTick);
Symbol 420 MovieClip Frame 241
gotoAndPlay(BombTick);
Symbol 420 MovieClip Frame 301
gotoAndPlay(BombTick);
Symbol 420 MovieClip Frame 361
gotoAndPlay(BombTick);
Symbol 420 MovieClip Frame 420
gotoAndPlay(BombTick);
Symbol 420 MovieClip Frame 480
gotoAndPlay(BombTick);
Symbol 420 MovieClip Frame 540
gotoAndPlay(BombTick);
Symbol 420 MovieClip Frame 630
stop();
this.ExplosionDone = true;
Symbol 436 MovieClip Frame 30
stop();
Symbol 439 MovieClip Frame 30
stop();
Symbol 443 MovieClip [PieceStack] Frame 1
stop();
Symbol 458 MovieClip Frame 36
stop();
Symbol 459 MovieClip Frame 61
stop();
Symbol 460 MovieClip [TimerStack] Frame 1
this.jar._alpha = 0;
stop();
Symbol 460 MovieClip [TimerStack] Frame 3
this._alpha = 100;
this.jar._alpha = 100;
stop();
Symbol 460 MovieClip [TimerStack] Frame 4
this._alpha = 50;
this.jar._alpha = 0;
stop();
Symbol 478 MovieClip Frame 1
stop();
Symbol 483 MovieClip Frame 1
stop();
Symbol 489 MovieClip Frame 1
i = 0;
while (i < 0) {
dot.duplicateMovieClip("dot" + i, i);
i++;
}
Instance of Symbol 488 MovieClip "dot" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
width = 125;
height = 225;
speed = 0.15;
x = (this._x = Math.random() * width);
y = (this._y = Math.random() * height);
x_new = Math.random() * width;
y_new = Math.random() * height;
}
onClipEvent (enterFrame) {
if (x_new > this._x) {
sign_x = 1;
} else {
sign_x = -1;
}
dx = Math.abs(x_new - this._x);
if ((dx > speed) || (dx < (-speed))) {
this._x = this._x + (sign_x * speed);
} else {
x_new = Math.random() * width;
}
if (y_new > this._y) {
sign_y = 1;
} else {
sign_y = -1;
}
dy = Math.abs(y_new - this._y);
if ((dy > speed) || (dy < (-speed))) {
this._y = this._y + (sign_y * speed);
} else {
y_new = Math.random() * height;
}
}
Symbol 490 MovieClip Frame 1000
gotoAndPlay (1);
Symbol 520 MovieClip Frame 1
stop();
var ToastQueue = new Array(0);
var EarnAchievement = function (name) {
if (eval ("_root.AchievementToast." + name) == true) {
return(undefined);
}
fscommand ("Achievement", name);
_root.AchievementToast[name] = true;
if (ToastQueue.length == 0) {
CurrentlyDisplayingToast = name;
gotoAndPlay ("toasty");
}
ToastQueue.push(name);
};
var UpdateScore = function (score, final, finishedgame) {
var _local2 = _root;
score = Math.floor(score);
_local2.Score.ScoreInfo.text = score;
if ((Number(_local2._LifetimeScore) + Number(score)) > 1000000) {
EarnAchievement("LifetimeScore");
}
if ((score > 150000) && (_local2._GameType == _local2.GT.Marathon)) {
EarnAchievement("MarathonScore");
}
if ((score > 75000) && (_local2._GameType == _local2.GT.Timed)) {
EarnAchievement("TimedScore");
}
var _local3 = Number(_local2._LifetimeCombos);
var _local1 = 0;
while (_local1 <= 3) {
_local3 = _local3 + Number(_local2.Stats.Combo[_local1]);
_local1++;
}
if (_local3 >= 5000) {
EarnAchievement("LifetimeCombos");
} else if (_local3 >= 25) {
EarnAchievement("Beginner");
}
if (final) {
_local2._LifetimeScore = Number(_local2._LifetimeScore) + Number(score);
_local2._LifetimeCombos = _local3;
if (finishedgame) {
_local2._LifetimeGames = Number(_local2._LifetimeGames) + 1;
if (_local2._LifetimeGames >= 100) {
EarnAchievement("Veteran");
}
}
fscommand ("Lifetime", (((_local2._LifetimeScore + ";") + _local2._LifetimeCombos) + ";") + _local2._LifetimeGames);
}
fscommand ("ScoreProperty", score);
};
Symbol 520 MovieClip Frame 40
MrToasty.gotoAndStop(CurrentlyDisplayingToast);
Symbol 520 MovieClip Frame 370
var i = 1;
while (i < ToastQueue.length) {
ToastQueue[i - 1] = ToastQueue[i];
i++;
}
ToastQueue.pop();
if (ToastQueue.length > 0) {
CurrentlyDisplayingToast = ToastQueue[0];
gotoAndPlay ("toasty");
}
Symbol 554 MovieClip Frame 57
stop();
Symbol 574 MovieClip Frame 1
function Pause(immediate) {
var _local1 = this;
var _local2 = _root;
if (immediate) {
_local2.IsPaused = true;
_local2.ResetPauseMenu = true;
fscommand ("Pause", "on");
_local2.gotoAndStop("Pause");
} else if (_local1._currentframe < 3) {
_local1.gotoAndPlay(2);
_local1.PausePending = true;
}
}
stop();
this.PausePending = false;
Symbol 574 MovieClip Frame 60
stop();
Symbol 579 MovieClip Frame 1
this._visible = false;
Symbol 580 MovieClip Frame 1
function GenerateKeyMap(KeyXml) {
var KeyMap = [];
var myNode = KeyXml.firstChild;
while (myNode != null) {
var _local2 = "";
var _local3 = "";
var _local1 = myNode.firstChild;
while (_local1 != null) {
if (_local1.nodeName == "Key") {
_local2 = _local1.firstChild.nodeValue;
} else if (_local1.nodeName == "Object") {
_local3 = _local1.firstChild.nodeValue;
}
_local1 = _local1.nextSibling;
}
KeyMap.push({Code:_local2, ObjectID:_local3});
myNode = myNode.nextSibling;
}
return(KeyMap);
}
function GenerateObjectMap(MapXml) {
var ObjectMap = [];
var myNode = MapXml.firstChild;
while (myNode != null) {
var ObjectID = "";
var _local3 = "";
var _local2 = "";
var RightObjectID = "";
var LeftObjectID = "";
var _local1 = myNode.firstChild;
while (_local1 != null) {
switch (_local1.nodeName) {
case "ID" :
ObjectID = _local1.firstChild.nodeValue;
break;
case "Up" :
_local3 = _local1.firstChild.nodeValue;
break;
case "Down" :
_local2 = _local1.firstChild.nodeValue;
break;
case "Left" :
LeftObjectID = _local1.firstChild.nodeValue;
break;
case "Right" :
RightObjectID = _local1.firstChild.nodeValue;
}
_local1 = _local1.nextSibling;
}
ObjectMap.push({ID:ObjectID, Up:_local3, Left:LeftObjectID, Down:_local2, Right:RightObjectID});
myNode = myNode.nextSibling;
}
return(ObjectMap);
}
function AddState(StateID, DefaultControl, ObjectXml, KeyXml) {
var _local2 = KeyXml;
var _local3 = StateID;
var _local1 = 0;
while (_local1 < StateMap.length) {
if (StateMap[_local1].ID == _local3) {
StateMap[_local1].DefaultID = DefaultControl;
StateMap[_local1].CurrentlySelectedID = "";
StateMap[_local1].ObjectMap = GenerateObjectMap(ObjectXml);
StateMap[_local1].KeyMap = GenerateKeyMap(_local2);
return;
}
_local1++;
}
StateMap.push({ID:_local3, DefaultID:DefaultControl, CurrentlySelectedID:"", ObjectMap:GenerateObjectMap(ObjectXml), KeyMap:GenerateKeyMap(_local2)});
}
function RegisterActionableItem(Identifier, PressEvent, ReleaseEvent, HighlightEvent, UnHighlightEvent, IsSelectable) {
var _local2 = Identifier;
var _local3 = UnHighlightEvent;
_root.OSP.mDebug("Register: " + _local2);
var _local1 = 0;
while (_local1 < RegisteredItems.length) {
if (_local2 == RegisteredItems[_local1].ID) {
RegisteredItems[_local1].Press = PressEvent;
RegisteredItems[_local1].Release = ReleaseEvent;
RegisteredItems[_local1].Highlight = HighlightEvent;
RegisteredItems[_local1].UnHighlight = _local3;
RegisteredItems[_local1].IsSelectable = IsSelectable;
return;
}
_local1++;
}
RegisteredItems.push({ID:_local2, Press:PressEvent, Release:ReleaseEvent, Highlight:HighlightEvent, UnHighlight:_local3, IsSelectable:IsSelectable});
}
function SetState(NewState, CurrentObject) {
var _local2 = CurrentObject;
var _local3 = NewState;
if (_local3 == "Active") {
InActiveScreen = true;
} else {
InActiveScreen = false;
_root.OSP.mDebug("SetKeyboardState - " + _local3);
var _local1 = 0;
while (_local1 < StateMap.length) {
if (StateMap[_local1].ID == _local3) {
CurrentState.CurrentlySelectedID = CurrentlyActiveID;
CurrentState = StateMap[_local1];
CurrentlyActiveID = StateMap[_local1].CurrentlySelectedID;
if (CurrentlyActiveID == "") {
CurrentlyActiveID = CurrentState.DefaultID;
}
if (_local2 != null) {
CurrentlyActiveID = _local2;
}
GetObject(CurrentlyActiveID).Highlight();
return;
}
_local1++;
}
CurrentState = null;
CurrentlyActiveID = "";
}
}
function GetCurrentlyFocused() {
if (CurrentlyActiveID == "") {
if (CurrentState != null) {
CurrentlyActiveID = CurrentState.DefaultID;
} else {
return(null);
}
}
var _local1 = 0;
while (_local1 < RegisteredItems.length) {
if (RegisteredItems[_local1].ID == CurrentlyActiveID) {
return(RegisteredItems[_local1]);
}
_local1++;
}
return(null);
}
function GetObject(ID) {
var _local2 = ID;
_root.OSP.mDebug("ID - " + _local2);
if (_local2 == "CurrentFocused") {
return(GetCurrentlyFocused());
}
_root.OSP.mDebug("Registered - " + RegisteredItems.length);
var _local1 = 0;
while (_local1 < RegisteredItems.length) {
if (RegisteredItems[_local1].ID == _local2) {
return(RegisteredItems[_local1]);
}
_local1++;
}
return(null);
}
function PerformNavigation(KeyCode) {
if (PerformNavigationOriginalSelection == "") {
PerformNavigationOriginalSelection = CurrentlyActiveID;
}
if ((PerformNavigationDepth < 50) && (PerformActualNavigation(KeyCode))) {
PerformNavigationDepth++;
var _local2 = GetObject(CurrentlyActiveID);
var _local1 = _local2.IsSelectable();
if (((_local2.IsSelectable == null) || (_local1 == false)) || (_local1 == undefined)) {
PerformNavigation(KeyCode);
}
PerformNavigationDepth--;
} else {
GetObject(CurrentlyActiveID).UnHighlight();
CurrentlyActiveID = PerformNavigationOriginalSelection;
GetObject(CurrentlyActiveID).Highlight();
}
if (CurrentlyActiveID != PerformNavigationOriginalSelection) {
_root._SoundMask = _root._SoundMask | _root.SF.MoveTick;
}
PerformNavigationOriginalSelection = "";
}
function PerformActualNavigation(KeyCode) {
var _local2 = KeyCode;
_root.OSP.mDebug("PAN - " + _local2);
if (CurrentlyActiveID != "") {
GetObject(CurrentlyActiveID).UnHighlight();
var _local1 = 0;
while (_local1 < CurrentState.ObjectMap.length) {
if (CurrentState.ObjectMap[_local1].ID == CurrentlyActiveID) {
switch (_local2) {
case KeyNavigationMap.Right :
if (CurrentState.ObjectMap[_local1].Right == "") {
return(false);
}
CurrentlyActiveID = CurrentState.ObjectMap[_local1].Right;
GetObject(CurrentlyActiveID).Highlight();
return(true);
case KeyNavigationMap.Left :
if (CurrentState.ObjectMap[_local1].Left == "") {
return(false);
}
CurrentlyActiveID = CurrentState.ObjectMap[_local1].Left;
GetObject(CurrentlyActiveID).Highlight();
return(true);
case KeyNavigationMap.Up :
if (CurrentState.ObjectMap[_local1].Up == "") {
return(false);
}
CurrentlyActiveID = CurrentState.ObjectMap[_local1].Up;
GetObject(CurrentlyActiveID).Highlight();
return(true);
case KeyNavigationMap.Down :
if (CurrentState.ObjectMap[_local1].Down == "") {
return(false);
}
CurrentlyActiveID = CurrentState.ObjectMap[_local1].Down;
GetObject(CurrentlyActiveID).Highlight();
return(true);
}
GetObject(CurrentlyActiveID).Highlight();
return(false);
}
_local1++;
}
} else {
switch (_local2) {
case KeyNavigationMap.Right :
CurrentlyActiveID = CurrentState.DefaultID;
GetObject(CurrentlyActiveID).Highlight();
return(true);
case KeyNavigationMap.Left :
CurrentlyActiveID = CurrentState.DefaultID;
GetObject(CurrentlyActiveID).Highlight();
return(true);
case KeyNavigationMap.Up :
CurrentlyActiveID = CurrentState.DefaultID;
GetObject(CurrentlyActiveID).Highlight();
return(true);
case KeyNavigationMap.Down :
CurrentlyActiveID = CurrentState.DefaultID;
GetObject(CurrentlyActiveID).Highlight();
return(true);
}
}
return(false);
}
function PerformAction(KeyCode, ActionType) {
var _local2 = ActionType;
var _local3 = KeyCode;
var _local1 = 0;
while (_local1 < CurrentState.KeyMap.length) {
if (CurrentState.KeyMap[_local1].Code == _local3) {
var CurrentObject = GetObject(CurrentState.KeyMap[_local1].ObjectID);
if (CurrentObject[_local2]) {
CurrentObject[_local2]();
}
}
_local1++;
}
_root.OSP.mDebug((("PA - " + _local3) + " ") + _local2);
if ((_local3 == 65) || (_local3 == 83)) {
var CurrentObject = GetObject(CurrentlyActiveID);
if (CurrentObject[_local2]) {
CurrentObject[_local2]();
}
if ((_local2 == "Release") && (CurrentObject.Highlight)) {
CurrentObject.Highlight();
}
return(true);
}
return(false);
}
function ActiveNavigateToFlower(col, row) {
var _local1 = col;
var _local3 = _root;
var _local2 = _local3.Board[_local1][row].Piece.FlowerType;
if (_local2 > 0) {
if (_local1 == 0) {
return(false);
}
if (row == 0) {
if ((_local2 != 2) || ((_local1 % 2) == 1)) {
return(false);
}
}
if (_local1 == (_local3._BoardWidth - 1)) {
return(false);
}
if ((row + (((_local1 % 2) == 0) ? 1 : 0)) == _local3._BoardHeight) {
if ((_local2 != 3) || ((_local1 % 2) == 1)) {
return(false);
}
}
_local3.NewCursorFlowerCol = _local1;
_local3.NewCursorFlowerRow = row;
return(true);
}
return(false);
}
function ActiveNavigateOffFlower(KeyCode) {
var _local1 = _root;
switch (KeyCode) {
case KeyNavigationMap.Right :
_local1.NewCursorCol = _local1.NewCursorFlowerCol;
_local1.NewCursorRow = (2 * _local1.NewCursorFlowerRow) + (((_local1.NewCursorCol % 2) == 0) ? 0 : 1);
_local1.NewCursorVertex = 0;
break;
case KeyNavigationMap.Left :
_local1.NewCursorCol = _local1.NewCursorFlowerCol - 1;
_local1.NewCursorRow = (2 * _local1.NewCursorFlowerRow) + (((_local1.NewCursorCol % 2) == 0) ? -1 : 2);
_local1.NewCursorVertex = (((_local1.NewCursorCol % 2) == 0) ? 2 : 1);
break;
case KeyNavigationMap.Up :
case KeyNavigationMap.Down :
if (_local1.NewCursorCol == _local1.NewCursorFlowerCol) {
_local1.NewCursorRow = (2 * _local1.NewCursorFlowerRow) + (((_local1.NewCursorCol % 2) == 0) ? 0 : 1);
_local1.NewCursorVertex = 0;
} else {
_local1.NewCursorRow = (2 * _local1.NewCursorFlowerRow) + (((_local1.NewCursorCol % 2) == 0) ? -1 : 2);
_local1.NewCursorVertex = (((_local1.NewCursorCol % 2) == 0) ? 2 : 1);
}
}
_local1.NewCursorFlowerCol = -1;
_local1.NewCursorFlowerRow = -1;
}
function ActiveNavigateToNonFlower(KeyCode) {
var _local1 = _root;
switch (KeyCode) {
case KeyNavigationMap.Right :
if (_local1.NewCursorCol < 8) {
_local1.NewCursorCol++;
_local1.NewCursorRow = _local1.NewCursorRow + (((_local1.NewCursorCol % 2) == 0) ? -2 : 2);
if (_local1.NewCursorVertex == 0) {
_local1.NewCursorVertex = (((_local1.NewCursorCol % 2) == 0) ? 2 : 1);
} else {
_local1.NewCursorVertex = 0;
}
}
return;
case KeyNavigationMap.Left :
if (_local1.NewCursorCol > 0) {
_local1.NewCursorCol--;
_local1.NewCursorRow = _local1.NewCursorRow + (((_local1.NewCursorCol % 2) == 0) ? -2 : 2);
if (_local1.NewCursorVertex == 0) {
_local1.NewCursorVertex = (((_local1.NewCursorCol % 2) == 0) ? 2 : 1);
} else {
_local1.NewCursorVertex = 0;
}
}
return;
case KeyNavigationMap.Up :
if (((_local1.NewCursorRow > 0) && ((_local1.NewCursorCol % 2) == 0)) || ((_local1.NewCursorRow > 2) && ((_local1.NewCursorCol % 2) == 1))) {
_local1.NewCursorRow--;
if ((_local1.NewCursorCol % 2) == 0) {
_local1.NewCursorVertex = 2 - _local1.NewCursorVertex;
} else {
_local1.NewCursorVertex = 1 - _local1.NewCursorVertex;
}
}
return;
case KeyNavigationMap.Down :
if (!(((_local1.NewCursorRow < 14) && ((_local1.NewCursorCol % 2) == 0)) || ((_local1.NewCursorRow < 16) && ((_local1.NewCursorCol % 2) == 1)))) {
break;
}
_local1.NewCursorRow++;
if ((_local1.NewCursorCol % 2) == 0) {
_local1.NewCursorVertex = 2 - _local1.NewCursorVertex;
} else {
_local1.NewCursorVertex = 1 - _local1.NewCursorVertex;
}
}
}
function ActiveNavigate(KeyCode) {
var _local1 = _root;
var _local2 = KeyCode;
if ((((!_local1._Spinner._visible) || (_local1._PA > 0)) || (_local1._currentframe != _local1.Fr.Active)) || (_local1._DoRotate)) {
if (_local2 == 83) {
_local1.pausebutton.Pause(false);
}
} else {
switch (_local2) {
case 76 :
case 88 :
_local1.UpdateRotationElement(false);
_local1.PieceBoard.onMouseUp();
return;
case 82 :
case 65 :
_local1.UpdateRotationElement(true);
_local1.PieceBoard.onMouseUp();
return;
case 83 :
_local1.pausebutton.Pause(true);
return;
default :
if (_local2 == 41) {
_local2 = 37;
}
if (_local2 == 42) {
_local2 = 38;
}
if (_local2 == 43) {
_local2 = 39;
}
if (_local2 == 44) {
_local2 = 40;
}
if ((((_local2 != KeyNavigationMap.Down) && (_local2 != KeyNavigationMap.Up)) && (_local2 != KeyNavigationMap.Left)) && (_local2 != KeyNavigationMap.Right)) {
} else if ((_local1.NewCursorFlowerCol != -1) || (_local1.NewCursorFlowerRow != -1)) {
ActiveNavigateOffFlower(_local2);
} else {
var _local3 = -1;
var OntoRow = -1;
switch (_local2) {
case KeyNavigationMap.Right :
if (_local1.NewCursorVertex == 1) {
_local3 = _local1.NewCursorCol + 1;
OntoRow = Math.floor(_local1.NewCursorRow / 2) - 1;
} else if (_local1.NewCursorVertex == 2) {
_local3 = _local1.NewCursorCol + 1;
OntoRow = Math.floor(_local1.NewCursorRow / 2) + 1;
}
break;
case KeyNavigationMap.Left :
if (_local1.NewCursorVertex == 0) {
_local3 = _local1.NewCursorCol;
OntoRow = Math.floor(_local1.NewCursorRow / 2);
}
break;
case KeyNavigationMap.Up :
if (_local1.NewCursorVertex == 0) {
_local3 = _local1.NewCursorCol + 1;
OntoRow = Math.floor(_local1.NewCursorRow / 2) + (((_local1.NewCursorCol % 2) == 0) ? 0 : -1);
} else if (_local1.NewCursorVertex == 1) {
_local3 = _local1.NewCursorCol;
OntoRow = Math.floor(_local1.NewCursorRow / 2) - 1;
} else if (_local1.NewCursorVertex == 2) {
_local3 = _local1.NewCursorCol;
OntoRow = Math.floor(_local1.NewCursorRow / 2);
}
break;
case KeyNavigationMap.Down :
if (_local1.NewCursorVertex == 0) {
_local3 = _local1.NewCursorCol + 1;
OntoRow = Math.floor(_local1.NewCursorRow / 2) + (((_local1.NewCursorCol % 2) == 0) ? 1 : 0);
} else if (_local1.NewCursorVertex == 1) {
_local3 = _local1.NewCursorCol;
OntoRow = Math.floor(_local1.NewCursorRow / 2);
} else {
if (_local1.NewCursorVertex != 2) {
break;
}
_local3 = _local1.NewCursorCol;
OntoRow = Math.floor(_local1.NewCursorRow / 2) + 1;
}
}
if ((OntoRow != -1) || (_local3 != -1)) {
if (ActiveNavigateToFlower(_local3, OntoRow)) {
return;
}
} else {
ActiveNavigateToNonFlower(_local2);
}
}
}
}
}
function Initialize(InitXml) {
var myNode = InitXml.firstChild.firstChild;
while (myNode != null) {
var _local3 = null;
var ObjectMapXml = null;
var StateID = "";
var _local2 = "";
var _local1 = myNode.firstChild;
while (_local1 != null) {
switch (_local1.nodeName) {
case "ID" :
StateID = _local1.firstChild.nodeValue;
break;
case "DefaultObject" :
_local2 = _local1.firstChild.nodeValue;
break;
case "Keys" :
_local3 = _local1;
break;
case "Objects" :
ObjectMapXml = _local1;
}
_local1 = _local1.nextSibling;
}
AddState(StateID, _local2, ObjectMapXml, _local3);
myNode = myNode.nextSibling;
}
}
var RegisteredItems = [];
var CurrentlyActiveID = "";
var CurrentState = null;
var StateMap = [];
var InActiveScreen = false;
_root.NewCursorCol = 4;
_root.NewCursorRow = 8;
_root.NewCursorVertex = 0;
_root.NewCursorFlowerCol = -1;
_root.NewCursorFlowerRow = -1;
var KeyNavigationMap = {Left:37, Right:39, Up:38, Down:40};
var keyListener = [];
var PerformNavigationOriginalSelection = "";
var PerformNavigationDepth = 0;
keyListener.onKeyUp = function () {
var _local1 = Key.getCode();
_root.OSP.mDebug(_local1);
if (InActiveScreen) {
} else if (PerformNavigation(_local1)) {
} else if (PerformAction(_local1, "Release")) {
}
};
keyListener.onKeyDown = function () {
var _local1 = Key.getCode();
if (InActiveScreen) {
ActiveNavigate(_local1);
} else if (PerformAction(_local1, "Press")) {
}
};
Key.addListener(keyListener);
this.KeyXML = new XML();
this.KeyXML.ignoreWhite = true;
XMLLoaded = false;
this.KeyXML.onLoad = function (Success) {
if (Success) {
XMLLoaded = true;
}
};
this.KeyXML.load("KeyMap_HXIC.xml");
onEnterFrame = function () {
if (XMLLoaded && (Initialize != null)) {
Initialize(KeyXML);
onEnterFrame = null;
SetState("Default");
}
};
Symbol 591 MovieClip Frame 31
_root.ExecSound(_root.S_LogoSpark);
Symbol 615 MovieClip Frame 1
onLoad();
this.button.onDragOut = function () {
var _local1 = this;
_local1._parent.gotoAndStop("over");
_local1._parent.myDragOut();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onDragOver = function () {
var _local1 = this;
_local1._parent.gotoAndStop("down");
_local1._parent.myDragOut();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onRollOver = function () {
var _local1 = this;
_local1._parent.gotoAndStop("over");
_local1._parent.myRollOver();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onRollOut = function () {
var _local1 = this;
_local1._parent.gotoAndStop("up");
_local1._parent.myRollOut();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onPress = function () {
var _local1 = this;
_local1._parent.gotoAndStop("down");
_local1._parent.myPress();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onReleaseOutside = function () {
var _local1 = this;
_local1._parent.gotoAndStop("up");
_local1._parent.myReleaseOutside();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onRelease = function () {
var _local1 = this;
_local1._parent.gotoAndStop("over");
_local1._parent.myRelease();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
stop();
Symbol 631 MovieClip Frame 1
onLoad();
this.button.onDragOut = function () {
var _local1 = this;
_local1._parent.gotoAndStop("over");
_local1._parent.myDragOut();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onDragOver = function () {
var _local1 = this;
_local1._parent.gotoAndStop("down");
_local1._parent.myDragOut();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onRollOver = function () {
var _local1 = this;
_local1._parent.gotoAndStop("over");
_local1._parent.myRollOver();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onRollOut = function () {
var _local1 = this;
_local1._parent.gotoAndStop("up");
_local1._parent.myRollOut();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onPress = function () {
var _local1 = this;
_local1._parent.gotoAndStop("down");
_local1._parent.myPress();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onReleaseOutside = function () {
var _local1 = this;
_local1._parent.gotoAndStop("up");
_local1._parent.myReleaseOutside();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onRelease = function () {
var _local1 = this;
_local1._parent.gotoAndStop("over");
_local1._parent.myRelease();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
stop();
Symbol 668 MovieClip Frame 1
onLoad();
this.button.onDragOut = function () {
var _local1 = this;
_local1._parent.gotoAndStop("over");
_local1._parent.myDragOut();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onDragOver = function () {
var _local1 = this;
_local1._parent.gotoAndStop("down");
_local1._parent.myDragOut();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onRollOver = function () {
var _local1 = this;
_local1._parent.gotoAndStop("over");
_local1._parent.myRollOver();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onRollOut = function () {
var _local1 = this;
_local1._parent.gotoAndStop("up");
_local1._parent.myRollOut();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onPress = function () {
var _local1 = this;
_local1._parent.gotoAndStop("down");
_local1._parent.myPress();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onReleaseOutside = function () {
var _local1 = this;
_local1._parent.gotoAndStop("up");
_local1._parent.myReleaseOutside();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onRelease = function () {
var _local1 = this;
_local1._parent.gotoAndStop("over");
_local1._parent.myRelease();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
stop();
Symbol 774 MovieClip Frame 30
stop();
Symbol 795 MovieClip Frame 1
onLoad();
this.button.onDragOut = function () {
var _local1 = this;
_local1._parent.gotoAndStop("over");
_local1._parent.myDragOut();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onDragOver = function () {
var _local1 = this;
_local1._parent.gotoAndStop("down");
_local1._parent.myDragOut();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onRollOver = function () {
var _local1 = this;
_local1._parent.gotoAndStop("over");
_local1._parent.myRollOver();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onRollOut = function () {
var _local1 = this;
_local1._parent.gotoAndStop("up");
_local1._parent.myRollOut();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onPress = function () {
var _local1 = this;
_local1._parent.gotoAndStop("down");
_local1._parent.myPress();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onReleaseOutside = function () {
var _local1 = this;
_local1._parent.gotoAndStop("up");
_local1._parent.myReleaseOutside();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onRelease = function () {
var _local1 = this;
_local1._parent.gotoAndStop("over");
_local1._parent.myRelease();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
stop();
Symbol 825 MovieClip Frame 1
if ((Math.round(20 * eval (this.level)) + 1) == this._currentframe) {
stop();
}
Symbol 825 MovieClip Frame 2
if ((Math.round(20 * eval (this.level)) + 1) == this._currentframe) {
stop();
}
Symbol 825 MovieClip Frame 3
if ((Math.round(20 * eval (this.level)) + 1) == this._currentframe) {
stop();
}
Symbol 825 MovieClip Frame 4
if ((Math.round(20 * eval (this.level)) + 1) == this._currentframe) {
stop();
}
Symbol 825 MovieClip Frame 5
if ((Math.round(20 * eval (this.level)) + 1) == this._currentframe) {
stop();
}
Symbol 825 MovieClip Frame 6
if ((Math.round(20 * eval (this.level)) + 1) == this._currentframe) {
stop();
}
Symbol 825 MovieClip Frame 7
if ((Math.round(20 * eval (this.level)) + 1) == this._currentframe) {
stop();
}
Symbol 825 MovieClip Frame 8
if ((Math.round(20 * eval (this.level)) + 1) == this._currentframe) {
stop();
}
Symbol 825 MovieClip Frame 9
if ((Math.round(20 * eval (this.level)) + 1) == this._currentframe) {
stop();
}
Symbol 825 MovieClip Frame 10
if ((Math.round(20 * eval (this.level)) + 1) == this._currentframe) {
stop();
}
Symbol 825 MovieClip Frame 11
if ((Math.round(20 * eval (this.level)) + 1) == this._currentframe) {
stop();
}
Symbol 825 MovieClip Frame 12
if ((Math.round(20 * eval (this.level)) + 1) == this._currentframe) {
stop();
}
Symbol 825 MovieClip Frame 13
if ((Math.round(20 * eval (this.level)) + 1) == this._currentframe) {
stop();
}
Symbol 825 MovieClip Frame 14
if ((Math.round(20 * eval (this.level)) + 1) == this._currentframe) {
stop();
}
Symbol 825 MovieClip Frame 15
if ((Math.round(20 * eval (this.level)) + 1) == this._currentframe) {
stop();
}
Symbol 825 MovieClip Frame 16
if ((Math.round(20 * eval (this.level)) + 1) == this._currentframe) {
stop();
}
Symbol 825 MovieClip Frame 17
if ((Math.round(20 * eval (this.level)) + 1) == this._currentframe) {
stop();
}
Symbol 825 MovieClip Frame 18
if ((Math.round(20 * eval (this.level)) + 1) == this._currentframe) {
stop();
}
Symbol 825 MovieClip Frame 19
if ((Math.round(20 * eval (this.level)) + 1) == this._currentframe) {
stop();
}
Symbol 825 MovieClip Frame 20
if ((Math.round(20 * eval (this.level)) + 1) == this._currentframe) {
stop();
}
Symbol 825 MovieClip Frame 21
if ((Math.round(20 * eval (this.level)) + 1) == this._currentframe) {
stop();
}
Symbol 838 MovieClip Frame 30
stop();
Symbol 903 MovieClip Frame 1
onLoad();
this.button.onDragOut = function () {
var _local1 = this;
_local1._parent.gotoAndStop("over");
_local1._parent.myDragOut();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onDragOver = function () {
var _local1 = this;
_local1._parent.gotoAndStop("down");
_local1._parent.myDragOut();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onRollOver = function () {
var _local1 = this;
_local1._parent.gotoAndStop("over");
_local1._parent.myRollOver();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onRollOut = function () {
var _local1 = this;
_local1._parent.gotoAndStop("up");
_local1._parent.myRollOut();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onPress = function () {
var _local1 = this;
_local1._parent.gotoAndStop("down");
_local1._parent.myPress();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onReleaseOutside = function () {
var _local1 = this;
_local1._parent.gotoAndStop("up");
_local1._parent.myReleaseOutside();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onRelease = function () {
var _local1 = this;
_local1._parent.gotoAndStop("over");
_local1._parent.myRelease();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
stop();
Symbol 908 MovieClip Frame 1
onLoad();
this.button.onDragOut = function () {
var _local1 = this;
_local1._parent.gotoAndStop("over");
_local1._parent.myDragOut();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onDragOver = function () {
var _local1 = this;
_local1._parent.gotoAndStop("down");
_local1._parent.myDragOut();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onRollOver = function () {
var _local1 = this;
_local1._parent.gotoAndStop("over");
_local1._parent.myRollOver();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onRollOut = function () {
var _local1 = this;
_local1._parent.gotoAndStop("up");
_local1._parent.myRollOut();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onPress = function () {
var _local1 = this;
_local1._parent.gotoAndStop("down");
_local1._parent.myPress();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onReleaseOutside = function () {
var _local1 = this;
_local1._parent.gotoAndStop("up");
_local1._parent.myReleaseOutside();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onRelease = function () {
var _local1 = this;
_local1._parent.gotoAndStop("over");
_local1._parent.myRelease();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
stop();
Symbol 938 MovieClip Frame 1
onLoad();
this.tooltip._xscale = 0;
this.tooltip._yscale = 0;
this.antitooltip._xscale = 100;
this.antitooltip._yscale = 100;
this.fValid = false;
this.myRollOver = function () {
var _local1 = this;
if (_local1.fValid) {
_local1.tooltip._xscale = 100;
_local1.tooltip._yscale = 100;
_local1.antitooltip._xscale = 0;
_local1.antitooltip._yscale = 0;
}
};
this.myRollOut = function () {
var _local1 = this;
_local1.tooltip._xscale = 0;
_local1.tooltip._yscale = 0;
_local1.antitooltip._xscale = 100;
_local1.antitooltip._yscale = 100;
};
this.FillInfo = function (highscore, clr) {
var _local1 = this;
var _local2 = highscore;
var _local3 = clr;
if (_local2.score > 0) {
_local1.fValid = true;
_local1.name.text = _local2.name;
_local1.level.text = _local2.level;
_local1.score.text = _local2.score;
_local1.star.gotoAndStop((_local2.won ? "win" : "none"));
_local1.tooltip.time.text = _local2.time;
_local1.tooltip.date.text = _local2.date;
_local1.tooltip.clusters.text = _local2.clusters;
_local1.tooltip.flowers.text = _local2.flowers;
_local1.tooltip.pearls.text = _local2.pearls;
_local1.tooltip.bombs.text = _local2.bombs;
_local1.tooltip.bonuses.text = _local2.bonuses;
_local1.tooltip.bbcombo.text = _local2.bbcombo;
_local1.tooltip.b3combo.text = _local2.b3combo;
_local1.onRollOver = _local1.myRollOver;
_local1.onRollOut = _local1.myRollOut;
_local1.useHandCursor = true;
} else {
_local1.fValid = false;
_local1.name.text = "---";
_local1.level.text = "---";
_local1.score.text = "---";
_local1.star.gotoAndStop("none");
_local1.onRollOver = null;
_local1.onRollOut = null;
_local1.useHandCursor = false;
}
_local1.level.textColor = _local3;
_local1.name.textColor = _local3;
_local1.score.textColor = _local3;
};
this.DoMyUpdate();
Symbol 945 MovieClip Frame 1
onLoad();
this.button.onDragOut = function () {
var _local1 = this;
_local1._parent.gotoAndStop("over");
_local1._parent.myDragOut();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onDragOver = function () {
var _local1 = this;
_local1._parent.gotoAndStop("down");
_local1._parent.myDragOut();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onRollOver = function () {
var _local1 = this;
_local1._parent.gotoAndStop("over");
_local1._parent.myRollOver();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onRollOut = function () {
var _local1 = this;
_local1._parent.gotoAndStop("up");
_local1._parent.myRollOut();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onPress = function () {
var _local1 = this;
_local1._parent.gotoAndStop("down");
_local1._parent.myPress();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onReleaseOutside = function () {
var _local1 = this;
_local1._parent.gotoAndStop("up");
_local1._parent.myReleaseOutside();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
this.button.onRelease = function () {
var _local1 = this;
_local1._parent.gotoAndStop("over");
_local1._parent.myRelease();
_local1._parent.text.valign = "center";
if (_local1._parent.ButtonText != "UNLOCALIZED") {
_root.Localizer.Loc(_local1._parent.text, _local1._parent.ButtonText);
} else {
_local1._parent.text.text = _local1._parent.UnlocalizedButtonText;
}
};
stop();
Symbol 1084 MovieClip Frame 1
onLoad();
this.tooltip._xscale = 0;
this.tooltip._yscale = 0;
this.antitooltip._xscale = 100;
this.antitooltip._yscale = 100;
this.fValid = false;
this.myRollOver = function (n) {
var _local1 = this;
var _local2 = _root;
if (_local1.fValid) {
_local1.tooltip._xscale = 100;
_local1.tooltip._yscale = 100;
_local1.antitooltip._xscale = 0;
_local1.antitooltip._yscale = 0;
_local2.breakoutcover._visible = false;
_local2.BreakoutClusters.text = _local1.tooltip_clusters;
_local2.BreakoutFlowers.text = _local1.tooltip_flowers;
_local2.BreakoutPearls.text = _local1.tooltip_pearls;
_local2.BreakoutBombs.text = _local1.tooltip_bombs;
_local2.BreakoutBonuses.text = _local1.tooltip_bonuses;
_local2.BreakoutBBCombos.text = _local1.tooltip_bbcombo;
_local2.BreakoutB3Combos.text = _local1.tooltip_b3combo;
_local2.BreakoutScore.text = _local1.score_txt.text;
_local2.Localizer.Loc(_local2.BreakoutDifficulty, _local1.difficulty);
}
};
this.myRollOut = function (n) {
var _local1 = this;
_local1.tooltip._xscale = 0;
_local1.tooltip._yscale = 0;
_local1.antitooltip._xscale = 100;
_local1.antitooltip._yscale = 100;
};
this.FillInfo = function (leaderboard, clr) {
var _local1 = this;
var _local2 = leaderboard;
var _local3 = clr;
_local1.tooltip._xscale = 0;
_local1.tooltip._yscale = 0;
_local1.antitooltip._xscale = 100;
_local1.antitooltip._yscale = 100;
if (_local2.score > 0) {
_local1.fValid = true;
_local1.rank_txt.text = _local2.rank;
_local1.gamertag_txt.text = _local2.gamertag;
_local1.score_txt.text = _local2.score;
_local1.tooltip_clusters = _local2.clusters;
_local1.tooltip_flowers = _local2.flowers;
_local1.tooltip_pearls = _local2.pearls;
_local1.tooltip_bombs = _local2.bombs;
_local1.tooltip_bonuses = _local2.bonuses;
_local1.tooltip_bbcombo = _local2.bbcombo;
_local1.tooltip_b3combo = _local2.b3combo;
_local1.difficulty = _local2.difficulty;
_local1.onRollOver = _local1.myRollOver;
_local1.onRollOut = _local1.myRollOut;
} else {
_local1.fValid = false;
_local1.rank_txt.text = "";
_local1.gamertag_txt.text = "";
_local1.score_txt.text = "";
_local1.tooltip_clusters = "";
_local1.tooltip_flowers = "";
_local1.tooltip_pearls = "";
_local1.tooltip_bombs = "";
_local1.tooltip_bonuses = "";
_local1.tooltip_bbcombo = "";
_local1.tooltip_b3combo = "";
_local1.onRollOver = null;
_local1.onRollOut = null;
}
_local1.level.textColor = _local3;
_local1.name.textColor = _local3;
_local1.score.textColor = _local3;
};
this.DoMyUpdate();