Frame 1
stop();
Stage.showMenu = false;
_global.stage_w = 800;
_global.stage_h = 600;
_global.playNext = function () {
_root.play();
};
this.promoKeyListener = new Object();
promoKeyListener.onKeyDown = function () {
if (_root.promo_mc.allowSkip) {
_global.playNext();
}
};
Key.addListener(promoKeyListener);
_global.company = "Youda";
_global.youdagames = "http://www.youdagames.com";
_global.moregamelink = "http://www.gamesgames.com/moregames/?utm_source=brandedgames&utm_medium=youda_conqueror";
_global.companylogo = "GamesGames";
Stage.scaleMode = "showAll";
_global.gameName = "YoudaConqueror";
_global.aName = "GamesGames";
_global.affiliateId = "95287";
_global.highscorelink = "http://www.youdagames.com/highscore.php?type=game&game=59";
_global.buygamelink = ("https://www.regnow.com/softsell/nph-softsell.cgi?items=16153-15&action=add_to_cart&affiliate=" + _global.affiliateId) + "";
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("c9d5237f", this, 10301, true);
Frame 2
stop();
Frame 3
stop();
Frame 4
delete this.promoKeyListener;
Frame 11
function Entry() {
_global.root = _level0;
}
Entry();
topBorder.swapDepths(52000);
bottomBorder.swapDepths(53000);
rightBorder.swapDepths(54000);
leftBorder.swapDepths(55000);
stop();
Symbol 11 MovieClip [GamesGames] Frame 1
this.allowSkip = true;
Instance of Symbol 2 MovieClip in Symbol 11 MovieClip [GamesGames] Frame 1
onClipEvent (load) {
this.onRelease = function () {
if ((_global.moregamelink != "") && (_global.moregamelink != undefined)) {
getURL (_global.moregamelink, "_blank");
}
};
this._width = _global.stage_w;
this._height = _global.stage_h;
var point = {x:0, y:0};
this._parent.globalToLocal(point);
this._x = point.x;
this._y = point.y;
}
Symbol 11 MovieClip [GamesGames] Frame 90
_global.playNext();
stop();
Symbol 1088 MovieClip [__Packages.ss.Game] Frame 0
class ss.Game extends MovieClip
{
var level, sndCtrl, currentMusic, interface_, keyboard, cursor, Language, depth, levelStats, zavesa, fasterAssult, fasterMorph, fasterTime, LoastLife, itemsInPella, itemsInAlex, itemsInBabilon, BonusInPella, BonusInAlex, BonusInBabilon, Life, LiveScore, AllScore, MoralProcent, frstTime, TransmutationProcent, DoubleProcent, MorphProcent, TimeProcent, ShieldProcent, AssaultProcent, SpyProcent, unlockedItems, boughtItems, bonusItems, bonusPopUp, HelpHints, unlockedBubbles, unlockedBubbles2, primaryResources, luxuryResources, weaponResources, armiResources, levelID, GameSpeed, soundClip, createEmptyMovieClip, fxVolume, musicVolume, fxVolumeTemp, musicVolumeTemp, fadingOutSound, fadingInSound, fadeOutFinish, fadeOutFinishTime, fadeOutFX, fadeOutMusic, fadeOut, fading, displayBonus, catapultSpell, fadingCatapultSound, buyScreenBackground, buyScreenInterfejs, endGameSoundsOff, getNextHighestDepth, intID;
function Game () {
super();
init();
}
function NewGame() {
trace("NewGame<<Game");
level.game.game_backround.removeMovieClip();
sndCtrl.stopSound(currentMusic);
delete interface_;
delete keyboard;
delete cursor;
delete Language;
delete depth;
delete levelStats;
delete sndCtrl;
init();
}
function init() {
trace("init<<Game");
delete interface_;
zavesa = 1;
fasterAssult = false;
fasterMorph = false;
fasterTime = false;
LoastLife = false;
interface_ = new ss.Interface(this);
keyboard = new ss.Keyboard(this);
cursor = new ss.Cursor(this);
Language = new config.LanguageSettings();
depth = new ctrl.DepthOption();
itemsInPella = [];
itemsInAlex = [];
itemsInBabilon = [];
BonusInPella = [];
BonusInAlex = [];
BonusInBabilon = [];
Life = 3;
LiveScore = 20000;
AllScore = 0;
MoralProcent = 0;
frstTime = false;
TransmutationProcent = 0;
DoubleProcent = 0;
MorphProcent = 0;
TimeProcent = 0;
ShieldProcent = 0;
AssaultProcent = 0;
SpyProcent = 0;
unlockedItems = [];
boughtItems = [];
bonusItems = [];
bonusPopUp = [];
HelpHints = [];
var _local5 = new screens.HelpHints(this, 50);
HelpHints.push(_local5);
levelStats = new Array();
unlockedBubbles = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 20, 41, 45, 50, 51, 52, 53, 61, 62, 63, 64, 65, 66, 67, 68, 43];
unlockedBubbles2 = [1, 2, 3, 50, 51, 52, 53];
primaryResources = 0;
luxuryResources = 0;
weaponResources = 0;
armiResources = 0;
levelID = 1;
GameSpeed = 20;
soundClip = createEmptyMovieClip("soundClip", -11000);
fxVolume = 100;
musicVolume = 50;
fxVolumeTemp = 100;
musicVolumeTemp = 50;
fadingOutSound = false;
fadingInSound = false;
sndCtrl = new ctrl.Sounds(this);
var _local4 = [["ingame", 100], ["pressButton", 100], ["India_ingame", 100], ["Arabic_ingame", 100], ["ingame_3", 100], ["Main_theme", 100], ["bonus_powerUp", 100], ["bounce_walls", 100], ["Buildin_is_built", 100], ["congratulations", 100], ["earthquake", 100], ["fire_melting", 100], ["heartbeat", 100], ["ice_break", 100], ["ice_freez", 100], ["katapult_off_spell", 100], ["katapult_under_spell", 100], ["Lightning_sound", 100], ["luxury_sound", 100], ["magic_sound", 100], ["pauseMenu", 100], ["popUp_sound", 100], ["primary_sound", 100], ["ready_for_battle", 100], ["single_arrow", 100], ["SoldiersAttention", 100], ["spellSound", 100], ["spikes_in", 100], ["spikes_out", 100], ["spy_action", 100], ["spy_ready", 100], ["time_rise", 100], ["Transmutation", 100], ["weapon_enemy", 100], ["yuris", 100], ["Battel_prepare2", 100], ["catapult", 100], ["Moral_prepare2", 100], ["whisper", 100], ["ATG_complete_palace_theme3", 100], ["ATG_congratulations_sound", 100], ["ATG_complete_palace_theme1and2", 100], ["magical_stars2", 100], ["Jazhe", 100], ["topnje", 100], ["numbersRolling", 100], ["numbersAppear", 100], ["battle_in_map", 100], ["heartbeat_end_of_time", 100], ["curtain_end_level1", 100], ["curtain_start_level", 100], ["accArrow", 100], ["game_over", 100], ["looseLife", 100], ["newLife", 100]];
attachSounds(_local4);
fadeOutFinish = false;
fadeOutFinishTime = 0;
fadeOutFX = 0;
fadeOutMusic = 0;
fadeOut = false;
fading = false;
displayBonus = false;
catapultSpell = false;
fadingCatapultSound = false;
buyScreenBackground = "";
buyScreenInterfejs = "";
currentMusic = "";
_global.startBattle = false;
_global.endBattle = false;
endGameSoundsOff = false;
_global.sound = fxVolume;
_global.music = musicVolume;
_global._resumed = false;
_global.focusMc = _root.createEmptyMovieClip("fmc", getNextHighestDepth());
_global.focusMc.onRelease = function () {
};
Selection.addListener(_global.focusMc);
initItems();
startGame();
}
function attachSounds(sounds) {
var _local2 = 0;
while (_local2 < sounds.length) {
var _local5 = soundClip.createEmptyMovieClip(utils.StringUtils.getUniqueName(), soundClip.getNextHighestDepth());
var _local3 = new utils.SoundImpl(_local5);
_local3.attachSoundImpl(sounds[_local2][0], sounds[_local2][1]);
sndCtrl.addSound(_local3);
_local2++;
}
}
function startGame() {
clearInterval(intID);
trace("startGame");
sndCtrl.stopSound(currentMusic);
sndCtrl.playSound("Main_theme", 32000);
currentMusic = "Main_theme";
interface_.showMenu();
}
function endLevel() {
var _local3 = 3;
trace("this.level.bubbleGame.LightBubble" + level.bubbleGame.LightBubble);
if (level.bubbleGame.LightBubble) {
_local3 = 6;
}
clearInterval(intID);
if (zavesa >= _local3) {
endGameSoundsOff = true;
if (fading == true) {
trace("vo endGame fading");
fxVolume = fxVolumeTemp;
musicVolume = musicVolumeTemp;
fading = false;
for (var _local2 in sndCtrl.sounds) {
if (sndCtrl.sounds[_local2].isLoop == true) {
sndCtrl.setSoundVolume(sndCtrl.sounds[_local2].linkId, sndCtrl.sounds[_local2].initialVolume * (musicVolume / 100));
} else {
sndCtrl.setSoundVolume(sndCtrl.sounds[_local2].linkId, sndCtrl.sounds[_local2].initialVolume * (fxVolume / 100));
}
}
}
trace("this.fxVolume " + fxVolume);
trace("this.musicVolume " + musicVolume);
sndCtrl.stopAllSounds();
interface_.showSummaryScreen();
} else {
zavesa++;
utils.Delegate.callDelayed(this, endLevel, 1000);
}
}
function lostLevel() {
clearInterval(intID);
sndCtrl.stopSound(currentMusic);
sndCtrl.playSound("looseLife");
currentMusic = "looseLife";
endGameSoundsOff = true;
if ((fading == true) || (fadingInSound == true)) {
trace("vo endGame fading");
fxVolume = fxVolumeTemp;
musicVolume = musicVolumeTemp;
for (var _local2 in sndCtrl.sounds) {
if (sndCtrl.sounds[_local2].isLoop == true) {
sndCtrl.setSoundVolume(sndCtrl.sounds[_local2].linkId, sndCtrl.sounds[_local2].initialVolume * (musicVolume / 100));
} else {
sndCtrl.setSoundVolume(sndCtrl.sounds[_local2].linkId, sndCtrl.sounds[_local2].initialVolume * (fxVolume / 100));
}
}
}
trace("this.fxVolume " + fxVolume);
trace("this.musicVolume " + musicVolume);
sndCtrl.stopAllSounds();
interface_.showEndGameScreen();
}
function endGame() {
}
function startLevel() {
level = new ss.Level(this);
startCheckingFocus();
}
function startCheckingFocus() {
trace("startCheckingFocus");
Selection.setFocus(_global.focusMc);
clearInterval(intID);
intID = setInterval(this, "loop", 40);
}
function loop() {
if (Selection.getFocus() == null) {
if (!level.bubbleGame.pauseInGame) {
keyboard.pauseGame();
}
clearInterval(intID);
}
}
function insertLevelStats() {
}
function initItems() {
var _local2;
_local2 = new ss.Items(this, "ThePalaceAtThebes", 100, 0, 0, 336.2, 118.7, 14, 100);
_local2.lockFlag = true;
unlockedItems.push(_local2);
_local2 = new ss.Items(this, "ASmallVillage", 170, 0, 0, 336.4, 398.3, 18, 100);
_local2.lockFlag = false;
unlockedItems.push(_local2);
_local2 = new ss.Items(this, "AGraintField", 280, 0, 0, 483.1, 453.6, 78, 100);
_local2.lockFlag = false;
unlockedItems.push(_local2);
_local2 = new ss.Items(this, "TheHarbor", 400, 0, 0, 27, 379.9, 16, 100);
_local2.lockFlag = false;
unlockedItems.push(_local2);
_local2 = new ss.Items(this, "TheMarket", 520, 0, 0, 608.9, 371.4, 25, 100);
_local2.lockFlag = false;
unlockedItems.push(_local2);
_local2 = new ss.Items(this, "theNewPalaceWing", 700, 100, 0, 211.7, 195.6, 26, 100);
_local2.lockFlag = false;
unlockedItems.push(_local2);
}
}
Symbol 1089 MovieClip [__Packages.utils.SoundController] Frame 0
class utils.SoundController
{
var game, volume, i, sounds, curVol;
function SoundController (_game) {
game = _game;
volume = game.fxVolume;
i = 0;
sounds = new Array();
}
function addSound(s) {
sounds[s.linkId] = s;
sounds[s.linkId].plaing = false;
setSoundVolume(s.linkId, volume);
s.musicVolume = game.musicVolume;
s.fxVolume = game.fxVolume;
}
function removeSound(linkId) {
delete sounds[linkId];
}
function playSound(linkId, loop) {
sounds[linkId].musicVolume = game.musicVolume;
sounds[linkId].fxVolume = game.fxVolume;
sounds[linkId].plaing = true;
if (arguments.length == 1) {
sounds[linkId].isLoop = false;
sounds[linkId].startImpl();
} else if (arguments.length == 2) {
sounds[linkId].isLoop = false;
sounds[linkId].startImpl(0, loop);
}
}
function stopSound(linkId) {
sounds[linkId].plaing = false;
sounds[linkId].stopImpl();
}
function pauseSound(linkId) {
if (sounds[linkId].plaing) {
sounds[linkId].sPaused = true;
}
sounds[linkId].pauseImpl();
}
function resumeSound(linkId) {
sounds[linkId].resumeImpl();
}
function setSoundVolume(linkId, vol) {
sounds[linkId].setVolumeImpl(vol);
}
function getSoundVolume(linkId) {
return(sounds[linkId].getVolumeImpl());
}
function playAllSounds() {
for (var _local2 in sounds) {
if (!sounds[_local2].isLoop) {
playSound(sounds[_local2].linkId);
} else {
playSound(sounds[_local2].linkId, 32000);
}
}
}
function stopAllSounds() {
if (game.endGameSoundsOff == true) {
for (var _local2 in sounds) {
if (((((((((sounds[_local2].linkId != "ingame_3") && (sounds[_local2].linkId != "Arabic_ingame")) && (sounds[_local2].linkId != "India_ingame")) && (sounds[_local2].linkId != "curtain_end_level1")) && (sounds[_local2].linkId != "Main_theme")) && (sounds[_local2].linkId != "ingame")) && (sounds[_local2].linkId != "curtain_start_level")) && (sounds[_local2].linkId != "looseLife")) && (sounds[_local2].linkId != "game_over")) {
stopSound(sounds[_local2].linkId);
}
}
} else {
for (var _local2 in sounds) {
stopSound(sounds[_local2].linkId);
}
}
}
function pauseAllSounds() {
for (var _local2 in sounds) {
if (((((((sounds[_local2].linkId != "ingame_3") && (sounds[_local2].linkId != "Arabic_ingame")) && (sounds[_local2].linkId != "India_ingame")) && (sounds[_local2].linkId != "Main_theme")) && (sounds[_local2].linkId != "ingame")) && (sounds[_local2].linkId != "curtain_start_level")) && (sounds[_local2].linkId != "looseLife")) {
pauseSound(sounds[_local2].linkId);
}
}
}
function resumeAllSounds() {
_global.sound = game.fxVolume;
_global.music = game.musicVolume;
for (var _local3 in sounds) {
if ((((((sounds[_local3].linkId != "ingame_3") && (sounds[_local3].linkId != "Arabic_ingame")) && (sounds[_local3].linkId != "India_ingame")) && (sounds[_local3].linkId != "Main_theme")) && (sounds[_local3].linkId != "ingame")) && (sounds[_local3].linkId != "curtain_start_level")) {
resumeSound(sounds[_local3].linkId);
_global._resumed = true;
}
}
}
function setOverallVolume(vol) {
volume = vol;
for (var _local3 in sounds) {
setSoundVolume(sounds[_local3].linkId, vol);
}
}
function fadeOutSounds() {
if (game.fadeOut == false) {
game.fxVolumeTemp = game.fxVolume;
game.musicVolumeTemp = game.musicVolume;
game.fadeOutFX = game.fxVolume / 50;
game.fadeOutMusic = game.musicVolume / 50;
game.fadeOut = true;
i = 0;
}
game.fxVolume = 0;
game.musicVolume = 0;
for (var _local2 in sounds) {
if ((sounds[_local2].linkId != "Lightning_sound") && (sounds[_local2].linkId != "heartbeat")) {
setSoundVolume(sounds[_local2].linkId, 0);
}
}
i = 50;
game.fadeOutFinishTime = getTimer();
game.fadeOutFinish = true;
game.fadingOutSound = false;
}
function fadeInSounds() {
game.fadeOutFinish = false;
game.fxVolume = game.fxVolume + game.fadeOutFX;
game.musicVolume = game.musicVolume + game.fadeOutMusic;
for (var _local2 in sounds) {
if (sounds[_local2].isLoop == true) {
if (sounds[_local2].linkId == "katapult_under_spell") {
setSoundVolume(sounds[_local2].linkId, sounds[_local2].initialVolume * (game.fxVolume / 100));
} else {
setSoundVolume(sounds[_local2].linkId, sounds[_local2].initialVolume * (game.musicVolume / 100));
}
} else {
setSoundVolume(sounds[_local2].linkId, sounds[_local2].initialVolume * (game.fxVolume / 100));
}
}
i = i - 1;
if (i == 0) {
game.fadeOut = false;
game.fadingInSound = false;
game.fading = false;
}
}
function fadeOutCatapultSound() {
if (game.fading == false) {
if (game.fadingCatapultSound == false) {
var _local2 = sounds.katapult_under_spell.initialVolume;
game.fadeOutFX = (sounds.katapult_under_spell.initialVolume * (game.fxVolume / 100)) / 100;
game.fadingCatapultSound = true;
curVol = sounds.katapult_under_spell.initialVolume * (game.fxVolume / 100);
}
curVol = curVol - game.fadeOutFX;
setSoundVolume("katapult_under_spell", curVol);
if (curVol <= 0) {
game.catapultSpell = false;
game.fadingCatapultSound = false;
}
} else {
game.catapultSpell = false;
sounds.katapult_under_spell.playing = false;
curVol = 0;
}
}
function getOverallVolume() {
return(volume);
}
}
Symbol 1090 MovieClip [__Packages.ctrl.Sounds] Frame 0
class ctrl.Sounds extends utils.SoundController
{
var game, musicVolume, fxVolume, sounds, lastFxVolume, lastMusicVolume;
function Sounds (_game) {
super(_game);
game = _game;
musicVolume = game.musicVolume;
fxVolume = game.fxVolume;
}
function setSoundFXVolume(vol) {
for (var _local3 in sounds) {
if (sounds[_local3].isLoop == false) {
fxVolume = vol;
sounds[_local3].setVolumeImpl(fxVolume);
}
}
}
function getSoundFXVolume() {
return(int(fxVolume));
}
function setMusicVolume(vol) {
for (var _local3 in sounds) {
if (sounds[_local3].isLoop) {
musicVolume = vol;
sounds[_local3].setVolumeImpl(musicVolume);
}
}
}
function getMusicVolume() {
return(int(musicVolume));
}
function fxOff() {
if (fxVolume > 0) {
lastFxVolume = fxVolume;
setSoundFXVolume(0);
fxVolume = 0;
}
}
function fxOn() {
if (fxVolume == 0) {
setSoundFXVolume(lastFxVolume);
fxVolume = lastFxVolume;
}
}
function musicOff() {
if (musicVolume > 0) {
lastMusicVolume = musicVolume;
setMusicVolume(0);
musicVolume = 0;
}
}
function musicOn() {
if (musicVolume == 0) {
setMusicVolume(lastMusicVolume);
musicVolume = lastMusicVolume;
}
}
}
Symbol 1091 MovieClip [__Packages.ss.Interface] Frame 0
class ss.Interface
{
var game, num, saveLoadObject, tempName, BuyBuildScreen, tempBarMusic, tempBarSound, EndGameScreen, SummaryScreen, MapScreen, _num, CongratulationScreen;
function Interface (Game) {
game = Game;
num = 123;
saveLoadObject = new ss.SaveLoad(game);
tempName = " ";
init();
}
function init() {
}
function YesNo() {
game.game_backround.attachMovie("exitScreen_mc", "exitScreen_mc", 3003, {_x:-49, _y:-50});
game.level.bubbleGame.addEvents();
}
function YesNoBuy() {
trace(" YesNoBuy");
game.attachMovie("exitScreen_mc", "exitScreen_mc", 3003, {_x:-49, _y:-50});
BuyBuildScreen.addEvents();
}
function NewGame() {
trace("NewGame()");
saveLoadObject.saveGame(game.userName);
game.game_backround.removeMovieClip();
game.sndCtrl.stopSound(game.currentMusic);
delete game.level.timer;
trace("this.game.keyboard " + game.keyboard);
delete game.level.bubbleGame;
delete game.level;
delete game.cursor;
game.keyboard.removeKeyboardListener();
delete game.keyboard.keyboardListener;
delete game.keyboard;
trace("22this.game.keyboard " + game.keyboard);
game.init();
game.level.bubbleGame.pauseInGame = false;
playIntro();
}
function playIntro() {
if (saveLoadObject.chekForUser()) {
showLastUser();
game.userName = saveLoadObject.getLastUser();
game.loginPage_MC.userName.text = saveLoadObject.getLastUser() + ",";
} else {
showNewUserScreen();
}
}
function showNewUserScreen() {
game.attachMovie("newUserPage_MC", "newUserPage_MC", 12);
game.attachMovie("loginPage_MC", "loginPage_MC", 2);
addEvents();
}
function showUserSelectioncreen() {
if (!game.options_screen_mc) {
game.attachMovie("chooseProfileScreen", "chooseProfileScreen", 11);
saveLoadObject.ShowUsers(game);
addEvents();
}
}
function showLastUser() {
game.attachMovie("loginPage_MC", "loginPage_MC", 2);
saveLoadObject.ShowLastUsers(game);
addEvents();
}
function addEvents() {
game.options_screen_mc.mainMain.holder = this;
game.options_screen_mc.mainMain.onRelease = function () {
this.holder.showMeni();
};
tempBarMusic = game.musicVolume;
tempBarSound = game.fxVolume;
trace("tempBarMusic " + tempBarMusic);
trace("tempBarSound " + tempBarSound);
game.options_screen_mc.slider.sliderFX._xscale = tempBarSound;
game.options_screen_mc.sliderMusic.sliderM._xscale = tempBarMusic;
game.options_screen_mc.soundDown.holder = this;
game.options_screen_mc.soundDown.onPress = function () {
trace("this.game.options_screen_mc.soundDown");
this.holder.game.options_screen_mc.onEnterFrame = function () {
this.soundDown.holder.tempBarMusic = this.soundDown.holder.game.musicVolume;
this.soundDown.holder.tempBarSound = this.soundDown.holder.game.fxVolume;
trace("onEnterFrame");
if (this.soundDown.holder.tempBarSound > 0) {
trace("this.game.options_screen_mc.soundDown##########");
this.soundDown.holder.tempBarSound = this.soundDown.holder.tempBarSound - 5;
this.soundDown.holder.game.options_screen_mc.slider.sliderFX._xscale = this.soundDown.holder.game.options_screen_mc.slider.sliderFX._xscale - 5;
this.soundDown.holder.game.fxVolume = this.soundDown.holder.tempBarSound;
this.soundDown.holder.game.sndCtrl.setSoundFXVolume(this.soundDown.holder.tempBarSound);
}
};
};
game.options_screen_mc.soundDown.onRelease = function () {
delete this.holder.game.options_screen_mc.onEnterFrame;
};
game.options_screen_mc.soundDown.onReleaseOutside = function () {
delete this.holder.game.options_screen_mc.onEnterFrame;
};
game.options_screen_mc.soundUp.holder = this;
game.options_screen_mc.soundUp.onPress = function () {
trace("this.game.options_screen_mc.soundUp");
this.holder.game.options_screen_mc.onEnterFrame = function () {
this.soundUp.holder.tempBarMusic = this.soundUp.holder.game.musicVolume;
this.soundUp.holder.tempBarSound = this.soundUp.holder.game.fxVolume;
trace("onEnterFrame");
if (this.soundUp.holder.tempBarSound < 100) {
trace("this.game.options_screen_mc.soundUp##################");
this.soundUp.holder.tempBarSound = this.soundUp.holder.tempBarSound + 5;
this.soundUp.holder.game.options_screen_mc.slider.sliderFX._xscale = this.soundUp.holder.game.options_screen_mc.slider.sliderFX._xscale + 5;
this.soundUp.holder.game.fxVolume = this.soundUp.holder.tempBarSound;
this.soundDown.holder.game.sndCtrl.setSoundFXVolume(this.soundUp.holder.tempBarSound);
}
};
};
game.options_screen_mc.soundUp.onRelease = function () {
delete this.holder.game.options_screen_mc.onEnterFrame;
};
game.options_screen_mc.soundUp.onReleaseOutside = function () {
delete this.holder.game.options_screen_mc.onEnterFrame;
};
game.options_screen_mc.musicDown.holder = this;
game.options_screen_mc.musicDown.onPress = function () {
trace("this.game.options_screen_mc.musicDown");
this.holder.game.options_screen_mc.onEnterFrame = function () {
this.musicDown.holder.tempBarMusic = this.musicDown.holder.game.musicVolume;
this.musicDown.holder.tempBarSound = this.musicDown.holder.game.fxVolume;
trace("onEnterFrame");
if (this.musicDown.holder.tempBarMusic > 0) {
trace("this.game.options_screen_mc.musicDown##############");
this.musicDown.holder.tempBarMusic = this.musicDown.holder.tempBarMusic - 5;
this.musicDown.holder.game.options_screen_mc.sliderMusic.sliderM._xscale = this.musicDown.holder.game.options_screen_mc.sliderMusic.sliderM._xscale - 5;
this.musicDown.holder.game.musicVolume = this.musicDown.holder.tempBarMusic;
this.soundDown.holder.game.sndCtrl.setMusicVolume(this.musicDown.holder.tempBarMusic);
}
};
};
game.options_screen_mc.musicDown.onRelease = function () {
delete this.holder.game.options_screen_mc.onEnterFrame;
};
game.options_screen_mc.musicDown.onReleaseOutside = function () {
delete this.holder.game.options_screen_mc.onEnterFrame;
};
game.options_screen_mc.musicUp.holder = this;
game.options_screen_mc.musicUp.onPress = function () {
trace("this.game.options_screen_mc.musicUp");
this.holder.game.options_screen_mc.onEnterFrame = function () {
this.musicUp.holder.tempBarMusic = this.musicUp.holder.game.musicVolume;
this.musicUp.holder.tempBarSound = this.musicUp.holder.game.fxVolume;
trace("onEnterFrame");
if (this.musicUp.holder.tempBarMusic < 100) {
trace("this.game.options_screen_mc.musicUp#############################");
this.musicUp.holder.tempBarMusic = this.musicUp.holder.tempBarMusic + 5;
this.musicUp.holder.game.options_screen_mc.sliderMusic.sliderM._xscale = this.musicUp.holder.game.options_screen_mc.sliderMusic.sliderM._xscale + 5;
this.musicUp.holder.game.musicVolume = this.musicUp.holder.tempBarMusic;
this.soundDown.holder.game.sndCtrl.setMusicVolume(this.musicUp.holder.tempBarMusic);
}
};
};
game.options_screen_mc.musicUp.onRelease = function () {
delete this.holder.game.options_screen_mc.onEnterFrame;
};
game.options_screen_mc.musicUp.onReleaseOutside = function () {
delete this.holder.game.options_screen_mc.onEnterFrame;
};
game.cover_screen_mc.nextBtn.holder = this;
game.cover_screen_mc.nextBtn.onRelease = function () {
var _local2 = this.holder;
this.holder.game.cover_screen_mc.nextFrame();
_local2.addEvents();
};
game.cover_screen_mc.nextBtn.onRelease = function () {
var _local2 = this.holder;
this.holder.game.cover_screen_mc.nextFrame();
_local2.addEvents();
};
game.cover_screen_mc.nextBtn.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
game.cover_screen_mc.nextBtn.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.cover_screen_mc.nextBtn.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.cover_screen_mc.prevBtn.holder = this;
game.cover_screen_mc.prevBtn.onRelease = function () {
var _local2 = this.holder;
this.holder.game.cover_screen_mc.prevFrame();
_local2.addEvents();
};
game.cover_screen_mc.prevBtn.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
game.cover_screen_mc.prevBtn.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.cover_screen_mc.prevBtn.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.cover_screen_mc.playBtn.holder = this;
game.cover_screen_mc.playBtn.onRelease = function () {
this.holder.showMap();
this.holder.deleteScreen();
this.holder.game.chooseProfileScreen.removeMovieClip();
};
game.cover_screen_mc.playBtn.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
game.cover_screen_mc.playBtn.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.cover_screen_mc.playBtn.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.loginPage_MC.options.holder = this;
game.loginPage_MC.options.onRelease = function () {
if (this.holder.game.newUserPage_MC == undefined) {
this.holder.showOptions();
}
};
game.loginPage_MC.options.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
game.loginPage_MC.options.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.loginPage_MC.options.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.loginPage_MC.exitGame.holder = this;
game.loginPage_MC.exitGame.onRelease = function () {
if (this.holder.game.newUserPage_MC == undefined) {
fscommand ("quit");
}
};
game.loginPage_MC.exitGame.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
game.loginPage_MC.exitGame.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.loginPage_MC.exitGame.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.loginPage_MC.newPlayer.holder = this;
game.loginPage_MC.newPlayer.onRelease = function () {
if (this.holder.game.newUserPage_MC == undefined) {
this.holder.showUserSelectioncreen();
}
};
game.loginPage_MC.newPlayer.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
game.loginPage_MC.newPlayer.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.loginPage_MC.newPlayer.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.loginPage_MC.playGame.holder = this;
game.loginPage_MC.playGame.onRelease = function () {
if (((this.holder.game.newUserPage_MC == undefined) && (this.holder.game.loginPage_MC.userName.text != " ")) && (this.holder.game.loginPage_MC.userName.text != " ,")) {
this.holder.saveLoadObject.setLastUser(this.holder.game.userName);
if (this.holder.saveLoadObject.getLevelId(this.holder.game.userName) > 1) {
this.holder.saveLoadObject.loadGame(this.holder.game.userName);
this.holder.showGame();
this.holder.game.chooseProfileScreen.removeMovieClip();
} else if (this.holder.game.frstTime) {
trace("da ova e prv pat");
this.holder.showCover();
this.holder.deleteScreen();
this.holder.game.chooseProfileScreen.removeMovieClip();
} else {
trace("ne ova ne prv pat");
this.holder.showMap();
this.holder.deleteScreen();
this.holder.game.chooseProfileScreen.removeMovieClip();
}
}
};
game.loginPage_MC.playGame.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
game.loginPage_MC.playGame.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.loginPage_MC.playGame.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.chooseProfileScreen.button1.holder = this;
game.chooseProfileScreen.button1.onRelease = function () {
this.holder.showNewUserScreen();
this.holder.game.chooseProfileScreen.removeMovieClip();
};
game.chooseProfileScreen.button1.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
game.chooseProfileScreen.button1.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.chooseProfileScreen.button1.onRelease = function () {
if (this.holder.tempName != " ") {
this.holder.game.loginPage_MC.userName.text = this.holder.tempName + ",";
this.holder.game.userName = this.holder.tempName;
this.holder.tempName = " ";
}
this.holder.userName = this.holder.game.loginPage_MC.userName;
this.holder.game.chooseProfileScreen["Save_button" + i].removeMovieClip();
if ((this.holder.game.loginPage_MC.userName.text != "") && (this.holder.game.loginPage_MC.userName.text != " ")) {
i = 0;
while (i < this.holder.saveLoadObject.NumOfUser()) {
i++;
}
if (this.holder.saveLoadObject.getLevelId(this.holder.game.userName) > 1) {
this.holder.saveLoadObject.loadGame(this.holder.userName);
this.holder.showGame();
this.holder.game.chooseProfileScreen.removeMovieClip();
} else {
this.holder.showCover();
this.holder.game.chooseProfileScreen.removeMovieClip();
}
}
};
game.chooseProfileScreen.button2.holder = this;
game.chooseProfileScreen.button2.onRelease = function () {
this.holder.showNewUserScreen();
this.holder.game.chooseProfileScreen.removeMovieClip();
};
game.chooseProfileScreen.button2.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
game.chooseProfileScreen.button2.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.chooseProfileScreen.button2.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.chooseProfileScreen.cancel.holder = this;
game.chooseProfileScreen.cancel.onRelease = function () {
this.holder.game.chooseProfileScreen.removeMovieClip();
};
game.chooseProfileScreen.cancel.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
game.chooseProfileScreen.cancel.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.chooseProfileScreen.cancel.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.newUserPage_MC.button3.holder = this;
game.newUserPage_MC.button3.onRelease = function () {
this.holder.game.userName = this.holder.game.loginPage_MC.userName;
if (this.holder.saveLoadObject.addName(this.holder.game.newUserPage_MC.userName.text) == "ok") {
this.holder.game.userName = this.holder.game.newUserPage_MC.userName.text;
this.holder.game.frstTime = true;
this.holder.game.loginPage_MC.userName.text = this.holder.game.newUserPage_MC.userName.text + ",";
if (!this.holder.game.loginPage_MC) {
this.holder.game.interface_.showLastUser();
this.holder.game.loginPage_MC.userName.text = this.holder.game.newUserPage_MC.userName.text + ",";
}
this.holder.game.newUserPage_MC.removeMovieClip();
}
};
game.newUserPage_MC.button3.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
game.newUserPage_MC.button3.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.newUserPage_MC.button3.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.chooseProfileScreen.button4.holder = this;
game.chooseProfileScreen.button4.onRelease = function () {
if (this.holder.tempName != " ") {
this.holder.saveLoadObject.deleteAllUsers(this.holder.tempName);
if (this.holder.tempName == this.holder.saveLoadObject.getLastUser()) {
trace("!!!!!!!!!!#############!!!!!!!!!!");
this.holder.saveLoadObject.setLastUser(" ");
}
}
this.holder.game.userName = " ";
this.holder.game.loginPage_MC.userName.text = " ";
this.holder.showUserSelectioncreen();
};
game.chooseProfileScreen.button4.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
game.chooseProfileScreen.button4.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.chooseProfileScreen.button4.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
var i;
i = 0;
while (i < saveLoadObject.NumOfUser()) {
game.chooseProfileScreen["Save_button" + i].holder = this;
game.chooseProfileScreen["Save_button" + i].onPress = function () {
if (this.btn_interface._currentframe != 4) {
this.btn_interface.gotoAndStop(3);
this.dinamikText._x = this.dinamikText._x + 1;
this.dinamikText._y = this.dinamikText._y + 1;
}
};
game.chooseProfileScreen["Save_button" + i].onRelease = function () {
this.holder.tempName = this.dinamikText.text;
this.holder.game.chooseProfileScreen.Save_button0.btn_interface.gotoAndStop(1);
this.holder.game.chooseProfileScreen.Save_button1.btn_interface.gotoAndStop(1);
this.holder.game.chooseProfileScreen.Save_button2.btn_interface.gotoAndStop(1);
this.holder.game.chooseProfileScreen.Save_button3.btn_interface.gotoAndStop(1);
this.holder.game.chooseProfileScreen.Save_button4.btn_interface.gotoAndStop(1);
this.btn_interface.gotoAndStop(4);
};
game.chooseProfileScreen["Save_button" + i].onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
if (this.btn_interface._currentframe != 4) {
this.btn_interface.gotoAndStop(2);
}
};
game.chooseProfileScreen["Save_button" + i].onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
if (this.btn_interface._currentframe != 4) {
this.btn_interface.gotoAndStop(1);
}
};
game.chooseProfileScreen["Save_button" + i].onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
if (this.btn_interface._currentframe != 4) {
this.btn_interface.gotoAndStop(1);
}
};
i++;
}
}
function textColorChange() {
var _local2 = 0;
while (_local2 < saveLoadObject.NumOfUser()) {
game.chooseProfileScreen["Save_button" + _local2].dinamikText.textColor = 16509855 /* 0xFBEB9F */;
_local2++;
}
}
function showGame() {
if ((!game.options_screen_mc) && (!game.chooseProfileScreen)) {
game.userNam = game.newUserPage_MC.userName.text;
game.startLevel();
deleteScreen();
}
}
function deleteScreen() {
game.loginPage_MC.removeMovieClip();
game.newUserPage_MC.removeMovieClip();
game.button4.removeMovieClip();
game.button3.removeMovieClip();
game.button1.removeMovieClip();
game.button2.removeMovieClip();
var _local2;
_local2 = 0;
while (_local2 < saveLoadObject.NumOfUser()) {
game["Save_button" + _local2].removeMovieClip();
_local2++;
}
return(true);
}
function showMenu() {
game.attachMovie("mainMenu_screen", "mainMenu_screen", -1);
playIntro();
addEvents();
}
function showGameOverScreen() {
}
function showEndGameScreen() {
EndGameScreen = new screens.EndGameScreen(game);
}
function showLevelStatistics() {
}
function showSummaryScreen() {
SummaryScreen = new screens.SummaryScreen(game);
}
function showBuyingScreen() {
BuyBuildScreen = new screens.BuyBuildScreen(game);
}
function showOptions() {
if (!game.chooseProfileScreen) {
game.attachMovie("options_screen_mc", "options_screen_mc", 4);
tempBarMusic = game.musicVolume;
tempBarSound = game.fxVolume;
trace("tempBarMusic " + tempBarMusic);
trace("tempBarSound " + tempBarSound);
game.options_screen_mc.slider.sliderFX._xscale = tempBarSound;
game.options_screen_mc.sliderMusic.sliderM._xscale = tempBarMusic;
addEvents();
}
}
function showMeni() {
game.options_screen_mc.removeMovieClip();
}
function showCover() {
if ((!game.options_screen_mc) && (!game.chooseProfileScreen)) {
deleteScreen();
game.attachMovie("cover_screen_mc", "cover_screen_mc", 1);
addEvents();
}
}
function showMap() {
MapScreen = new screens.MapScreen(game);
game.sndCtrl.stopSound(game.currentMusic);
game.sndCtrl.playSound("Main_theme", 32000);
game.currentMusic = "Main_theme";
}
function showCongratulationScreen(num_) {
_num = num_;
CongratulationScreen = new screens.CongratulationsScreen(game, _num);
}
function showPauseScreen() {
}
function hidePauseScreen() {
}
}
Symbol 1092 MovieClip [__Packages.ss.SaveLoad] Frame 0
class ss.SaveLoad
{
var game, so;
function SaveLoad (game_) {
trace("napraven e share objekt");
game = game_;
}
function NumOfUser() {
trace("NumOfUser");
so = SharedObject.getLocal("save_load_ATG");
return(so.data.SaveGame.length);
}
function ShowUsers(game_) {
trace("ShowUsers");
so = SharedObject.getLocal("save_load_ATG");
var _local2;
_local2 = 0;
while (_local2 < so.data.SaveGame.length) {
game.chooseProfileScreen["Save_button" + _local2].dinamikText.text = so.data.SaveGame[_local2].name_.toString();
_local2++;
}
}
function ShowLastUsers(game_) {
trace("ShowLastUsers");
so = SharedObject.getLocal("save_load_ATG");
}
function chekForUser() {
so = SharedObject.getLocal("save_load_ATG");
trace("chekForUser " + so.data.SaveGame.length);
if (so.data.SaveGame.length == undefined) {
return(false);
}
return(true);
}
function saveGame(name_) {
trace("@@@@saveGame name_ " + name_);
var _local22 = [];
var _local53 = [];
var _local27 = [];
var _local38 = [];
var _local37 = [];
var _local8 = [];
var _local58 = [];
var _local59 = [];
var _local39 = [];
var _local11 = [];
var _local26 = [];
var _local40 = [];
var _local60 = [];
var _local9 = [];
var _local14 = [];
var _local47 = [];
var _local50 = [];
var _local15 = [];
var _local16 = [];
var _local51 = [];
var _local44 = [];
var _local23 = [];
var _local46 = [];
var _local17 = [];
var _local54 = [];
var _local61 = [];
var _local18 = [];
var _local55 = [];
var _local56 = [];
var _local6 = new Array();
var _local3 = 0;
while (_local3 < game.HelpHints.length) {
trace("this.game.HelpHints[j].bubbleNum" + game.HelpHints[_local3].bubbleNum);
_local22.push(game.HelpHints[_local3].bubbleNum);
trace("popHintsNum" + _local22);
_local3++;
}
_local3 = 0;
while (_local3 < game.unlockedItems.length) {
_local53.push(game.unlockedItems[_local3].itemsName);
_local27.push(game.unlockedItems[_local3].primaryResources);
_local38.push(game.unlockedItems[_local3].luxuryResources);
_local37.push(game.unlockedItems[_local3].weaponResources);
_local8.push(game.unlockedItems[_local3].X);
_local58.push(game.unlockedItems[_local3].Y);
_local59.push(game.unlockedItems[_local3].unlockedBubble);
_local39.push(game.unlockedItems[_local3].expireDate);
_local11.push(game.unlockedItems[_local3].buyFlag);
_local26.push(game.unlockedItems[_local3].lockFlag);
_local3++;
}
_local3 = 0;
while (_local3 < game.boughtItems.length) {
_local40.push(game.boughtItems[_local3].itemsName);
_local60.push(game.boughtItems[_local3].primaryResources);
_local9.push(game.boughtItems[_local3].luxuryResources);
_local14.push(game.boughtItems[_local3].weaponResources);
_local47.push(game.boughtItems[_local3].X);
_local50.push(game.boughtItems[_local3].Y);
_local15.push(game.boughtItems[_local3].unlockedBubble);
_local16.push(game.boughtItems[_local3].expireDate);
_local51.push(game.boughtItems[_local3].buyFlag);
_local3++;
}
_local3 = 0;
while (_local3 < game.bonusItems.length) {
_local44.push(game.bonusItems[_local3].itemsName);
_local23.push(game.bonusItems[_local3].primaryResources);
_local46.push(game.bonusItems[_local3].luxuryResources);
_local17.push(game.bonusItems[_local3].weaponResources);
_local54.push(game.bonusItems[_local3].X);
_local61.push(game.bonusItems[_local3].Y);
_local18.push(game.bonusItems[_local3].unlockedBubble);
_local55.push(game.bonusItems[_local3].expireDate);
_local56.push(game.bonusItems[_local3].buyFlag);
_local3++;
}
_local3 = 0;
while (_local3 < game.unlockedBubbles.length) {
_local6[_local3] = game.unlockedBubbles[_local3];
_local3++;
}
trace("bonusItemsNames " + _local44);
trace("vo save this.game.levelID" + game.levelID);
trace("vo save this.game" + game);
trace(" vo save unlockedItemsBuyFlag" + _local11);
trace("popHintsNum" + _local22);
var _local7 = {name_:name_, game_:game, Life_:game.Life, LiveScore:game.LiveScore, armiResources:game.armiResources, AllScore:game.AllScore, MoralProcent:game.MoralProcent, TransmutationProcent:game.TransmutationProcent, DoubleProcent:game.DoubleProcent, MorphProcent:game.MorphProcent, TimeProcent:game.TimeProcent, ShieldProcent:game.ShieldProcent, AssaultProcent:game.AssaultProcent, SpyProcent:game.SpyProcent, unlockedBubbles_:_local6, weaponResources_:game.primaryResources, luxuryResources_:game.luxuryResources, weaponResources_:game.weaponResources, levelID_:game.levelID, GameSpeed_:game.GameSpeed, itemsInPella:game.itemsInPella, itemsInBabilon:game.itemsInBabilon, BonusInPella:game.BonusInPella, BonusInBabilon:game.BonusInBabilon, fasterAssult:game.fasterAssult, fasterMorph:game.fasterMorph, fasterTime:game.fasterTime, unlockedItemsNames:_local53, unlockedItemsprimaryResources:_local27, unlockedItemsluxuryResources:_local38, unlockedItemsweaponResources:_local37, unlockedItemskor_x:_local8, unlockedItemskor_y:_local58, unlockedItemsunlockedBubble:_local59, unlockedItemsexpireDate:_local39, boughtItemsNames:_local40, boughtItemsprimaryResources:_local60, boughtItemsluxuryResources:_local9, boughtItemsweaponResources:_local14, boughtItemskor_x:_local47, boughtItemskor_y:_local50, boughtItemsunlockedBubble:_local15, boughtItemsexpireDate:_local16, bonusItemsNames:_local44, bonusItemsprimaryResources:_local23, bonusItemsluxuryResources:_local46, bonusItemsweaponResources:_local17, bonusItemskor_x:_local54, bonusItemskor_y:_local61, bonusItemsunlockedBubble:_local18, bonusItemsexpireDate:_local55, bonusItemsBuyFlag:_local56, boughtItemsBuyFlag:_local51, popHintsNum:_local22, unlockedItemslockFlag:_local26, unlockedItemsBuyFlag:_local11};
trace("save game ok");
so = SharedObject.getLocal("save_load_ATG");
if (so.data.SaveGame.length == undefined) {
so.data.SaveGame = [];
}
var _local5;
_local5 = -1;
var _local2 = 0;
while (_local2 < so.data.SaveGame.length) {
trace((("so.data.SaveGame[" + _local2) + "].name_ ") + so.data.SaveGame[_local2].name_);
trace("name_ " + name_);
if (so.data.SaveGame[_local2].name_ == name_) {
_local5 = _local2;
}
_local2++;
}
trace("namePlace " + _local5);
if (_local5 > -1) {
so.data.SaveGame[_local5] = _local7;
} else {
so.data.SaveGame.push(_local7);
}
trace("so.data.SaveGame.length " + so.data.SaveGame.length);
so.flush();
trace("GameParametar.unlockedItemsNames " + _local7.unlockedItemsNames);
trace("GameParametar.boughtItemsNames " + _local7.boughtItemsNames);
trace("GameParametar.bonusItemsNames " + _local7.bonusItemsNames);
}
function setLastUser(name_) {
trace("setLastUser " + name_);
var _local1 = SharedObject.getLocal("LAST_PLAY");
_local1.data.nameOfPlayer = name_;
trace("sow.data.nameOfPlayer " + _local1.data.nameOfPlayer);
}
function getLastUser() {
so = SharedObject.getLocal("save_load_ATG");
var _local2 = SharedObject.getLocal("LAST_PLAY");
trace("sow.data.nameOfPlayer " + _local2.data.nameOfPlayer);
return(_local2.data.nameOfPlayer);
}
function addName(name_) {
trace(" addName(name_ ):" + name_);
var _local4 = {name_:name_, game_:game};
so = SharedObject.getLocal("save_load_ATG");
if (so.data.SaveGame.length == undefined) {
trace(" ??:" + name_);
so.data.SaveGame = [];
so.data.SaveGame.push(_local4);
setLastUser(name_);
so.flush();
return("ok");
}
var _local2;
_local2 = 0;
while (_local2 <= so.data.SaveGame.length) {
if ((name_ == " ") || (name_ == "")) {
trace("prazno");
return("prazno");
}
if (so.data.SaveGame[_local2].name_ == name_) {
trace("GO IMA OVOJ USER");
return("GO IMA OVOJ USER");
}
_local2++;
}
if (so.data.SaveGame.length < 5) {
so.data.SaveGame.push(_local4);
setLastUser(name_);
so.flush();
trace("ok");
return("ok");
}
setLastUser(name_);
so.data.SaveGame[0] = _local4;
return("ok");
}
function getLevelId(name_) {
trace("getLevelId " + name_);
so = SharedObject.getLocal("save_load_ATG");
var _local4;
_local4 = -1;
var _local2 = 0;
while (_local2 < so.data.SaveGame.length) {
trace((("so.data.SaveGame[" + _local2) + "].name_ ") + so.data.SaveGame[_local2].name_);
trace("name_ " + name_);
if (so.data.SaveGame[_local2].name_ == name_) {
_local4 = _local2;
}
_local2++;
}
trace("namePlace " + _local4);
var _local5 = so.data.SaveGame[_local4].levelID_;
trace("id " + _local5);
return(_local5);
}
function loadGame(name_) {
trace("@@@LoadGame name_" + name_);
so = SharedObject.getLocal("save_load_ATG");
var _local3;
var _local2;
_local2 = -1;
_local3 = 0;
while (_local3 < so.data.SaveGame.length) {
trace((("so.data.SaveGame[" + _local3) + "].name_ ") + so.data.SaveGame[_local3].name_);
trace("name_ " + name_);
if (so.data.SaveGame[_local3].name_ == name_) {
_local2 = _local3;
}
_local3++;
}
game.boughtItems = [];
game.unlockedItems = [];
game.bonusItems = [];
var _local5;
var _local4 = 0;
while (_local4 < so.data.SaveGame[_local2].boughtItemsNames.length) {
var _local10 = so.data.SaveGame[_local2].boughtItemsNames[_local4];
var _local8 = so.data.SaveGame[_local2].boughtItemsprimaryResources[_local4];
var _local9 = so.data.SaveGame[_local2].boughtItemsluxuryResources[_local4];
var _local6 = so.data.SaveGame[_local2].boughtItemsweaponResources[_local4];
var _local14 = so.data.SaveGame[_local2].boughtItemskor_x[_local4];
var _local11 = so.data.SaveGame[_local2].boughtItemskor_y[_local4];
var _local7 = so.data.SaveGame[_local2].boughtItemsunlockedBubble[_local4];
var _local13 = so.data.SaveGame[_local2].boughtItemsexpireDate[_local4];
_local5 = new ss.Items(game, _local10, _local8, _local9, _local6, _local14, _local11, _local7, _local13);
_local5.buyFlag = so.data.SaveGame[_local2].boughtItemsBuyFlag[_local4];
game.boughtItems.push(_local5);
_local4++;
}
_local4 = 0;
while (_local4 < so.data.SaveGame[_local2].unlockedItemsNames.length) {
var _local10 = so.data.SaveGame[_local2].unlockedItemsNames[_local4];
var _local8 = so.data.SaveGame[_local2].unlockedItemsprimaryResources[_local4];
var _local9 = so.data.SaveGame[_local2].unlockedItemsluxuryResources[_local4];
var _local6 = so.data.SaveGame[_local2].unlockedItemsweaponResources[_local4];
var _local14 = so.data.SaveGame[_local2].unlockedItemskor_x[_local4];
var _local11 = so.data.SaveGame[_local2].unlockedItemskor_y[_local4];
var _local7 = so.data.SaveGame[_local2].unlockedItemsunlockedBubble[_local4];
var _local13 = so.data.SaveGame[_local2].unlockedItemsexpireDate[_local4];
_local5 = new ss.Items(game, _local10, _local8, _local9, _local6, _local14, _local11, _local7, _local13);
_local5.buyFlag = so.data.SaveGame[_local2].unlockedItemsBuyFlag[_local4];
_local5.lockFlag = so.data.SaveGame[_local2].unlockedItemslockFlag[_local4];
game.unlockedItems.push(_local5);
_local4++;
}
_local4 = 0;
while (_local4 < so.data.SaveGame[_local2].bonusItemsNames.length) {
var _local10 = so.data.SaveGame[_local2].bonusItemsNames[_local4];
var _local8 = so.data.SaveGame[_local2].bonusItemsprimaryResources[_local4];
var _local9 = so.data.SaveGame[_local2].bonusItemsluxuryResources[_local4];
var _local6 = so.data.SaveGame[_local2].bonusItemsweaponResources[_local4];
var _local14 = so.data.SaveGame[_local2].bonusItemskor_x[_local4];
var _local11 = so.data.SaveGame[_local2].bonusItemskor_y[_local4];
var _local7 = so.data.SaveGame[_local2].bonusItemsunlockedBubble[_local4];
var _local13 = so.data.SaveGame[_local2].bonusItemsexpireDate[_local4];
_local5 = new ss.Items(game, _local10, _local8, _local9, _local6, _local14, _local11, _local7, _local13);
_local5.buyFlag = so.data.SaveGame[_local2].bonusItemsBuyFlag[_local4];
game.bonusItems.push(_local5);
_local4++;
}
var _local16 = [];
trace("so.data.SaveGame[namePlace].popHintsNum " + so.data.SaveGame[_local2].popHintsNum);
_local4 = 0;
while (_local4 < so.data.SaveGame[_local2].popHintsNum.length) {
trace("hintovi vo save" + so.data.SaveGame[_local2].popHintsNum[_local4]);
var _local12 = new screens.HelpHints(game, so.data.SaveGame[_local2].popHintsNum[_local4]);
game.HelpHints.push(_local12);
_local4++;
}
_local4 = 0;
while (_local4 < so.data.SaveGame[_local2].unlockedBubbles_.length) {
game.unlockedBubbles[_local4] = so.data.SaveGame[_local2].unlockedBubbles_[_local4];
_local4++;
}
game.Life = so.data.SaveGame[_local2].Life_;
game.fasterAssult = so.data.SaveGame[_local2].fasterAssult;
game.fasterMorph = so.data.SaveGame[_local2].fasterMorph;
game.fasterMorph = so.data.SaveGame[_local2].fasterTime;
game.LiveScore = so.data.SaveGame[_local2].LiveScore;
game.armiResources = so.data.SaveGame[_local2].armiResources;
game.AllScore = so.data.SaveGame[_local2].AllScore;
game.armiResources = so.data.SaveGame[_local2].armiResources;
game.AllScore = so.data.SaveGame[_local2].AllScore;
game.MoralProcent = so.data.SaveGame[_local2].MoralProcent;
game.TransmutationProcent = so.data.SaveGame[_local2].TransmutationProcent;
game.DoubleProcent = so.data.SaveGame[_local2].DoubleProcent;
game.MorphProcent = so.data.SaveGame[_local2].MorphProcent;
game.TimeProcent = so.data.SaveGame[_local2].TimeProcent;
game.ShieldProcent = so.data.SaveGame[_local2].ShieldProcent;
game.AssaultProcent = so.data.SaveGame[_local2].AssaultProcent;
game.SpyProcent = so.data.SaveGame[_local2].SpyProcent;
game.primaryResources = so.data.SaveGame[_local2].weaponResources_;
game.luxuryResources = so.data.SaveGame[_local2].luxuryResources_;
game.weaponResources = so.data.SaveGame[_local2].weaponResources_;
game.levelID = so.data.SaveGame[_local2].levelID_;
game.itemsInPella = so.data.SaveGame[_local2].itemsInPella;
game.itemsInBabilon = so.data.SaveGame[_local2].itemsInBabilon;
game.BonusInPella = so.data.SaveGame[_local2].BonusInPella;
game.BonusInBabilon = so.data.SaveGame[_local2].BonusInBabilon;
game.levelStats = [];
_local3 = 1;
while (_local3 < (game.levelID + 1)) {
game.levelStats.push(new ss.LevelState());
_local3++;
}
_local3 = 1;
while (_local3 < game.levelID) {
game.levelStats[_local3].score = int(game.AllScore / game.levelID);
game.levelStats[_local3].primaryResources = int(game.primaryResources / game.levelID);
game.levelStats[_local3].luxuryResources = int(game.luxuryResources / game.levelID);
game.levelStats[_local3].weaponResources = int(game.weaponResources / game.levelID);
game.levelStats[_local3].armi = game.armiResources / game.levelID;
game.levelStats[_local3].bangScore = [];
game.levelStats[_local3].bangScore.push(0);
game.levelStats[_local3].dropScore = [];
game.levelStats[_local3].dropScore.push(0);
game.levelStats[_local3].BangColor = [];
game.levelStats[_local3].BangColor.push(0);
trace((("!!!this.game.levelStats[" + _local3) + "].score ") + game.levelStats[_local3].score);
trace((("!!!this.game.levelStats[" + _local3) + "].primaryResources ") + game.levelStats[_local3].primaryResources);
trace((("!!!this.game.levelStats[" + _local3) + "].luxuryResources ") + game.levelStats[_local3].luxuryResources);
trace((("!!!this.game.levelStats[" + _local3) + "].weaponResources ") + game.levelStats[_local3].weaponResources);
trace((("!!!this.game.levelStats[" + _local3) + "].armi ") + game.levelStats[_local3].armi);
_local3++;
}
trace("LOAD this.game.boughtItems[0].itemsName " + game.boughtItems[0].itemsName);
trace("LOAD this.game.unlockedItems " + game.unlockedItems);
trace("LOAD this.game.boughtItems " + game.boughtItems);
}
function deleteAllUsers(name_) {
so = SharedObject.getLocal("save_load_ATG");
var _local4;
_local4 = -1;
var _local2 = 0;
while (_local2 < so.data.SaveGame.length) {
trace((("so.data.SaveGame[" + _local2) + "].name_ ") + so.data.SaveGame[_local2].name_);
trace("name_ " + name_);
if (so.data.SaveGame[_local2].name_ == name_) {
_local4 = _local2;
so.data.SaveGame.splice(_local2, 1);
break;
}
_local2++;
}
}
}
Symbol 1093 MovieClip [__Packages.ss.Items] Frame 0
class ss.Items
{
var game, itemsName, primaryResources, luxuryResources, weaponResources, unlockedBubble, expireDate, buyFlag, X, Y;
function Items (game_, itemName_, primaryResources_, luxuryResources_, weaponResources_, kor_x, kor_y, unlockedBubble_, expireDate_) {
game = game_;
itemsName = itemName_;
primaryResources = primaryResources_;
luxuryResources = luxuryResources_;
weaponResources = weaponResources_;
unlockedBubble = unlockedBubble_;
expireDate = expireDate_;
buyFlag = false;
X = kor_x;
Y = kor_y;
init();
}
function init() {
}
}
Symbol 1094 MovieClip [__Packages.screens.HelpHints] Frame 0
class screens.HelpHints
{
var game, bubbleNum, clip;
function HelpHints (game_, bubbleNum_) {
trace("HelpHints ");
game = game_;
bubbleNum = bubbleNum_;
}
function init() {
trace("init popHints()");
game.level.bubbleGame.pauseInGame = true;
game.keyboard.pauseTime = getTimer();
clip = game.game_backround.attachMovie("fadeHint4_mc", "fadeHint4_mc", 3008, {_x:64.8, _y:285});
clip.all.intro.text = game.Language.getLangText("bubbleNum" + bubbleNum);
addEvents();
}
function addEvents() {
clip.all.ok_btn.holder = this;
clip.all.ok_btn.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
clip.all.ok_btn.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
clip.all.ok_btn.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
clip.all.ok_btn.onRelease = function () {
trace("pritisna");
this.holder.game.cursor.clip.gotoAndStop("arrow");
this.holder.game.level.bubbleGame.pauseInGame = false;
var _local2 = getTimer();
var _local3 = this.holder.game.keyboard.pauseTime;
this.holder.game.level.bubbleGame.oldRowTime = this.holder.game.level.bubbleGame.oldRowTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.startTime = this.holder.game.level.bubbleGame.startTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.OldTime = this.holder.game.level.bubbleGame.OldTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.GameTime = this.holder.game.level.bubbleGame.GameTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.LightBubbleTime = this.holder.game.level.bubbleGame.LightBubbleTime + (_local2 - _local3);
this.holder.game.level.bubbleGame.IceBubbleTime = this.holder.game.level.bubbleGame.IceBubbleTime + (_local2 - _local3);
this.holder.game.level.bubbleGame.MirrorBubbleTime = this.holder.game.level.bubbleGame.MirrorBubbleTime + (_local2 - _local3);
this.holder.game.level.bubbleGame.HeatBubbleTime = this.holder.game.level.bubbleGame.HeatBubbleTime + (_local2 - _local3);
this.holder.game.level.bubbleGame.SpikeBubbleTime = this.holder.game.level.bubbleGame.SpikeBubbleTime + (_local2 - _local3);
this.holder.game.level.bubbleGame.RoughBubbleTime = this.holder.game.level.bubbleGame.RoughBubbleTime + (_local2 - _local3);
this.holder.game.level.bubbleGame.AccelerationBubbleTime = this.holder.game.level.bubbleGame.AccelerationBubbleTime + (_local2 - _local3);
this.holder.game.startCheckingFocus();
this.holder.clip.removeMovieClip();
};
}
}
Symbol 1095 MovieClip [__Packages.ss.LevelState] Frame 0
class ss.LevelState
{
var level, score, game, primaryResources, luxuryResources, weaponResources, armi, bangScore, dropScore, BangColor;
function LevelState (level_) {
trace("LevelState");
level = level_;
score = 0;
game = level.game;
init();
}
function init() {
primaryResources = 0;
luxuryResources = 0;
weaponResources = 0;
armi = 0;
bangScore = [];
dropScore = [];
BangColor = [];
}
function calculate(bubbleId) {
score = score + 10;
switch (bubbleId) {
case 1 :
armi = armi + 3;
break;
case 2 :
armi = armi + 3;
break;
case 3 :
armi = armi + 3;
break;
case 4 :
armi = armi + 3;
break;
case 5 :
armi = armi + 3;
break;
case 6 :
armi = armi + 3;
break;
case 7 :
armi = armi + 3;
break;
case 8 :
armi = armi + 3;
break;
case 9 :
armi = armi + 4;
break;
case 10 :
armi = armi + 3;
break;
case 11 :
armi = armi + 3;
break;
case 12 :
armi = armi + 3;
break;
case 13 :
armi = armi + 3;
break;
case 14 :
primaryResources = primaryResources + 3;
break;
case 15 :
primaryResources = primaryResources + 4;
break;
case 16 :
primaryResources = primaryResources + 5;
break;
case 17 :
primaryResources = primaryResources + 6;
break;
case 18 :
primaryResources = primaryResources + 7;
break;
case 19 :
primaryResources = primaryResources + 8;
break;
case 20 :
primaryResources = primaryResources + 9;
break;
case 21 :
primaryResources = primaryResources + 10;
break;
case 22 :
primaryResources = primaryResources + 11;
break;
case 23 :
primaryResources = primaryResources + 12;
break;
case 24 :
primaryResources = primaryResources + 13;
break;
case 25 :
luxuryResources = luxuryResources + 3;
break;
case 26 :
luxuryResources = luxuryResources + 4;
break;
case 27 :
luxuryResources = luxuryResources + 5;
break;
case 28 :
luxuryResources = luxuryResources + 6;
break;
case 29 :
luxuryResources = luxuryResources + 7;
break;
case 30 :
luxuryResources = luxuryResources + 9;
break;
case 31 :
luxuryResources = luxuryResources + 10;
break;
case 32 :
luxuryResources = luxuryResources + 11;
break;
case 33 :
luxuryResources = luxuryResources + 12;
break;
case 34 :
luxuryResources = luxuryResources + 13;
break;
case 35 :
luxuryResources = luxuryResources + 14;
break;
case 36 :
luxuryResources = luxuryResources + 15;
break;
case 37 :
luxuryResources = luxuryResources + 16;
break;
case 38 :
luxuryResources = luxuryResources + 17;
break;
case 39 :
weaponResources = weaponResources + 3;
break;
case 40 :
weaponResources = weaponResources + 4;
break;
case 41 :
weaponResources = weaponResources + 5;
break;
case 42 :
weaponResources = weaponResources + 6;
break;
case 43 :
weaponResources = weaponResources + 7;
break;
case 44 :
weaponResources = weaponResources + 8;
break;
case 45 :
weaponResources = weaponResources + 9;
break;
case 46 :
weaponResources = weaponResources + 10;
break;
case 47 :
weaponResources = weaponResources + 11;
break;
case 48 :
weaponResources = weaponResources + 12;
break;
case 49 :
weaponResources = weaponResources + 13;
break;
case 54 :
luxuryResources = luxuryResources + 8;
break;
case 50 :
primaryResources = primaryResources + 2;
break;
case 51 :
primaryResources = primaryResources + 2;
break;
case 52 :
primaryResources = primaryResources + 2;
break;
case 53 :
primaryResources = primaryResources + 2;
}
}
}
Symbol 1096 MovieClip [__Packages.IScreen] Frame 0
interface IScreen
{
}
Symbol 1097 MovieClip [__Packages.screens.EndGameScreen] Frame 0
class screens.EndGameScreen implements IScreen
{
var game, clip;
function EndGameScreen (game_) {
game = game_;
game.cursor.clip.gotoAndStop("arrow");
attachScreen();
}
function attachScreen() {
clip = game.attachMovie("loseGame", "loseGame", 12);
if ((game.level.levelAssets.timeForPlay - game.level.bubbleGame.GameTime) <= 0) {
clip.info.text = "Time up! \n";
} else {
clip.info.text = "";
}
if (game.Life == 1) {
clip.info.text = clip.info.text + "Last life";
} else {
clip.info.text = clip.info.text + ((" You have " + game.Life.toString()) + " lives left");
}
addEvents();
return(clip);
}
function removeScreen() {
clip.removeMovieClip();
}
function addEvents() {
clip.ok_btn.holder = this;
clip.ok_btn.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
clip.ok_btn.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
clip.ok_btn.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
clip.ok_btn.onRelease = function () {
trace("jeee");
this.holder.game.game_backround.removeMovieClip();
this.holder.game.interface_.showMap();
this.holder.removeScreen();
};
}
}
Symbol 1098 MovieClip [__Packages.screens.SummaryScreen] Frame 0
class screens.SummaryScreen implements IScreen
{
var game, holder, remainingTime, dodatok, okPressed, bonusi, clip, time_bonus;
function SummaryScreen (game_) {
game = game_;
holder = this;
remainingTime = 0;
dodatok = 0;
okPressed = false;
init();
}
function init() {
game.cursor.clip.gotoAndStop("arrow");
game.armiResources = game.armiResources + game.level.curentlevelAsset.armi;
game.AllScore = game.AllScore + game.level.curentlevelAsset.score;
bonusi = 0;
attachScreen();
}
function attachScreen() {
game.levelStats.push(game.level.curentlevelAsset);
clip = game.attachMovie("win_screen", "win_screen", 1000);
mcFadeIn(clip, 500);
clip.you_time.text = game.Language.getLangText("you_time");
clip.remainingTime.text = game.Language.getLangText("remainingTime");
clip.defeatedEnemy.text = game.Language.getLangText("defeatedEnemy");
clip.primaryResources.text = game.Language.getLangText("primaryResources");
clip.weaponResources.text = game.Language.getLangText("weaponResources");
clip.timeBonus.text = game.Language.getLangText("timeBonus");
clip.remainingTime_num.text = "";
clip.defeatedEnemy_num.text = "";
clip.primaryResources_num.text = "";
clip.weaponResources_num.text = "";
clip.luxResources_num.text = "";
holder.game.sndCtrl.stopSound("numbersAppear");
holder.game.sndCtrl.playSound("numbersAppear");
clip.you_time_num.text = int(game.level.bubbleGame.GameTime / 1000);
utils.Delegate.callDelayed(this, holder.displayRemainingTime, 1200);
clip.timeBonus_num.text = "";
time_bonus = int((game.level.levelAssets.timeForPlay - game.level.bubbleGame.GameTime) / 1000);
remainingTime = int((holder.game.level.levelAssets.timeForPlay - holder.game.level.bubbleGame.GameTime) / 1000);
dodatok = 1 + int(((time_bonus * 1000) / (100 + (((remainingTime * 1000) * 4900) / holder.game.level.levelAssets.timeForPlay))) / 1000);
var _local2 = 100 + (((remainingTime * 1000) * 4900) / holder.game.level.levelAssets.timeForPlay);
trace("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa " + _local2);
trace("this.dodatok " + dodatok);
switch (game.level.levelAssets.resorses) {
case "prim" :
trace("DAVAM PRIMARI BONUS");
game.AllScore = game.AllScore + time_bonus;
game.primaryResources = game.primaryResources + time_bonus;
break;
case "lux" :
trace("DAVAM LUX BONUS");
game.AllScore = game.AllScore + time_bonus;
game.luxuryResources = game.luxuryResources + time_bonus;
break;
case "wea" :
trace("DAVAM score BONUS");
game.AllScore = game.AllScore + time_bonus;
if (holder.game.levelID > 6) {
if (holder.game.level.curentlevelAsset.luxuryResources < holder.game.level.curentlevelAsset.primaryResources) {
game.luxuryResources = game.luxuryResources + time_bonus;
trace("DAVAM LUX BONUS zasto e pomalku");
} else {
game.primaryResources = game.primaryResources + time_bonus;
trace("DAVAM PRIMARI BONUS zasto e pomalku");
}
}
break;
case "weap" :
trace("DAVAM WEA BONUS");
game.AllScore = game.AllScore + time_bonus;
game.weaponResources = game.weaponResources + time_bonus;
break;
default :
game.AllScore = game.AllScore + time_bonus;
}
addEvents();
return(clip);
}
function removeScreen() {
game.game_backround.removeMovieClip();
game.interface_.saveLoadObject.saveGame(game.userName);
clip.removeMovieClip();
}
function addEvents() {
clip.ok_btn.holder = this;
clip.ok_btn.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
clip.ok_btn.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
clip.ok_btn.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
clip.ok_btn.onRelease = function () {
if (this.holder.okPressed == false) {
this.holder.okPressed = true;
trace("DISPLAY ALL " + this.holder.okPressed);
this.holder.game.sndCtrl.stopSound("numbersRolling");
this.holder.game.sndCtrl.stopSound("numbersAppear");
this.holder.game.sndCtrl.playSound("numbersAppear");
this.holder.clip.remainingTime_num.text = int((this.holder.game.level.levelAssets.timeForPlay - this.holder.game.level.bubbleGame.GameTime) / 1000);
this.holder.clip.timeBonus_num.text = int((this.holder.game.level.levelAssets.timeForPlay - this.holder.game.level.bubbleGame.GameTime) / 1000);
this.holder.clip.defeatedEnemy_num.text = this.holder.game.level.curentlevelAsset.armi.toString();
this.holder.clip.primaryResources_num.text = this.holder.game.level.curentlevelAsset.primaryResources.toString();
this.holder.clip.weaponResources_num.text = this.holder.game.level.curentlevelAsset.weaponResources.toString();
this.holder.clip.luxResources_num.text = this.holder.game.level.curentlevelAsset.luxuryResources.toString();
delete this.holder.game.level.bubbleGame;
this.holder.game.weaponResources = this.holder.game.weaponResources + this.holder.game.level.curentlevelAsset.weaponResources;
this.holder.game.primaryResources = this.holder.game.primaryResources + this.holder.game.level.curentlevelAsset.primaryResources;
this.holder.game.luxuryResources = this.holder.game.luxuryResources + this.holder.game.level.curentlevelAsset.luxuryResources;
this.holder.game.displayBonus = false;
} else {
trace("this.holder.game.weaponResources " + this.holder.game.weaponResources);
trace("this.holder.game.primaryResources " + this.holder.game.primaryResources);
trace("this.holder.game.luxuryResources " + this.holder.game.luxuryResources);
this.holder.game.sndCtrl.stopSound("pressButton");
this.holder.game.sndCtrl.playSound("pressButton");
this.holder.game.interface_.showBuyingScreen();
this.holder.game.sndCtrl.stopSound(this.holder.game.currentMusic);
this.holder.game.sndCtrl.playSound("ingame", 32000);
this.holder.game.currentMusic = "ingame";
this.holder.game.level.timer.stop();
this.holder.game.interface_.SummaryScreen.removeScreen();
}
};
}
function displayBonus() {
if (holder.okPressed == false) {
trace("displayBonus()$$$$$$$$$$$$$$$$$$$$$$$$$$$$ " + holder.okPressed);
holder.clip.timeBonus_num.text = holder.bonusi.toString();
holder.bonusi = holder.bonusi + holder.dodatok;
if (holder.bonusi > holder.time_bonus) {
holder.game.sndCtrl.stopSound("numbersRolling");
holder.game.displayBonus = false;
holder.game.sndCtrl.stopSound("numbersAppear");
holder.game.sndCtrl.playSound("numbersAppear");
holder.clip.defeatedEnemy_num.text = holder.game.level.curentlevelAsset.armi.toString();
utils.Delegate.callDelayed(holder, holder.displayPrimaryResourses, 1200);
}
}
}
function displayRemainingTime() {
if (holder.okPressed == false) {
trace("displayRemainingTime()$$$$$$$$$$$$$$$$$$$$$$$$$$$$ " + holder.okPressed);
holder.game.sndCtrl.stopSound("numbersAppear");
holder.game.sndCtrl.playSound("numbersAppear");
holder.clip.remainingTime_num.text = int((holder.game.level.levelAssets.timeForPlay - holder.game.level.bubbleGame.GameTime) / 1000);
utils.Delegate.callDelayed(holder, holder.setFlag, 1200);
}
}
function setFlag() {
if (holder.okPressed == false) {
trace("setFlag()$$$$$$$$$$$$$$$$$$$$$$$$$$$$ " + holder.okPressed);
holder.game.sndCtrl.stopSound("numbersRolling");
holder.game.sndCtrl.playSound("numbersRolling", 32000);
holder.game.displayBonus = true;
}
}
function displayPrimaryResourses() {
if (holder.okPressed == false) {
trace("displayPrimaryResourses()$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
holder.game.sndCtrl.stopSound("numbersAppear");
holder.game.sndCtrl.playSound("numbersAppear");
holder.clip.primaryResources_num.text = holder.game.level.curentlevelAsset.primaryResources.toString();
utils.Delegate.callDelayed(holder, holder.displayWeaponResourses, 1200);
}
}
function displayWeaponResourses() {
if (holder.okPressed == false) {
trace("displayWeaponResourses()$$$$$$$$$$$$$$$$$$$$$$$$$$$$ " + holder.okPressed);
holder.game.sndCtrl.stopSound("numbersAppear");
holder.game.sndCtrl.playSound("numbersAppear");
holder.clip.weaponResources_num.text = holder.game.level.curentlevelAsset.weaponResources.toString();
utils.Delegate.callDelayed(holder, holder.displayLuxuryResourses, 1200);
}
}
function displayLuxuryResourses() {
if (holder.okPressed == false) {
trace("displayLuxuryResourses()$$$$$$$$$$$$$$$$$$$$$$$$$$$$ " + holder.okPressed);
holder.game.sndCtrl.stopSound("numbersAppear");
holder.game.sndCtrl.playSound("numbersAppear");
holder.clip.luxResources_num.text = holder.game.level.curentlevelAsset.luxuryResources.toString();
delete holder.game.level.bubbleGame;
holder.game.weaponResources = holder.game.weaponResources + holder.game.level.curentlevelAsset.weaponResources;
holder.game.primaryResources = holder.game.primaryResources + holder.game.level.curentlevelAsset.primaryResources;
holder.game.luxuryResources = holder.game.luxuryResources + holder.game.level.curentlevelAsset.luxuryResources;
holder.okPressed = true;
}
}
function mcFadeIn(mc, time) {
var _local3 = time * 0.025;
mc.oeftime = _local3;
mc.step = 100 / _local3;
mc._alpha = 0;
trace("mc.show_object" + mc.show_object);
mc.show_object._alpha = 100;
mc.onEnterFrame = function () {
this.oeftime--;
if (this.oeftime > 0) {
this._alpha = this._alpha + this.step;
mc.show_object._alpha = 100;
} else {
this._alpha = 100;
delete this.onEnterFrame;
}
_root.fadein.text = int(this._alpha);
};
}
}
Symbol 1099 MovieClip [__Packages.utils.Delegate] Frame 0
class utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
arguments=arguments.callee.arguments;//parameter overwritten
arguments.callee.arguments;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
arguments.splice(0, 2);
_local2.arguments = arguments;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
static function callDelayed(obj, func, ival) {
arguments.splice(0, 3);
var _local3 = new Object();
_local3.f = function () {
clearInterval(this.i);
var _local3 = arguments.callee.target;
var _local4 = arguments.callee.func;
arguments=arguments.callee.arguments;//parameter overwritten
arguments.callee.arguments;
return(this.func.apply(this.target, this.arguments));
};
_local3.target = obj;
_local3.func = func;
_local3.arguments = arguments;
_local3.i = setInterval(_local3, "f", ival);
}
}
Symbol 1100 MovieClip [__Packages.screens.BuyBuildScreen] Frame 0
class screens.BuyBuildScreen implements IScreen
{
var game, itemsForBuing, overviewPress, flag, BuyScreenBackName, BuyScreenName, BuyScreenBack, BuyScreen, overview, clip, lastItem, tempBarMusic, tempBarSound;
function BuyBuildScreen (game_) {
game = game_;
itemsForBuing = 0;
overviewPress = false;
flag = false;
init();
if (game.levelID == 6) {
if (game.boughtItems.length >= 6) {
game.itemsInAlex = game.boughtItems.slice();
game.BonusInAlex = game.bonusItems.slice();
game.interface_.showCongratulationScreen(1);
game.sndCtrl.stopSound(game.currentMusic);
game.sndCtrl.playSound("ATG_complete_palace_theme3");
game.currentMusic = "ATG_complete_palace_theme3";
}
}
}
function init() {
var _local3 = 0;
while (_local3 < (game.bonusItems.length - 1)) {
var _local2 = _local3 + 1;
while (_local2 < game.bonusItems.length) {
if (game.bonusItems[_local3].itemsName == game.bonusItems[_local2].itemsName) {
game.bonusItems.splice(_local3, 1);
_local3++;
break;
}
_local2++;
}
_local3++;
}
_local3 = 0;
while (_local3 < game.bonusItems.length) {
game.primaryResources = game.primaryResources + game.bonusItems[_local3].primaryResources;
game.luxuryResources = game.luxuryResources + game.bonusItems[_local3].luxuryResources;
game.weaponResources = game.weaponResources + game.bonusItems[_local3].weaponResources;
name_ = game.bonusItems[_local3].itemsName;
_local3++;
}
game.interface_.saveLoadObject.saveGame(game.userName);
BuyScreenBackName = game.buyScreenBackground;
BuyScreenName = game.buyScreenInterfejs;
BuyScreenBack = game.attachMovie(BuyScreenBackName, "BuyScreenBack", 1, {_x:0, _y:0});
BuyScreen = game.attachMovie(BuyScreenName, "BuyScreen", 99, {_x:0, _y:0});
overview = BuyScreen.attachMovie("8skreen", "8skreen", 107, {_x:732.8, _y:14.9});
overview._x = 732;
overview._y = 15;
setResourses();
if (((((game.unlockedItems.length > 4) && (game.unlockedItems[0].buyFlag)) && (game.unlockedItems[1].buyFlag)) && (game.unlockedItems[2].buyFlag)) && (game.unlockedItems[3].buyFlag)) {
game.unlockedItems.shift();
game.unlockedItems.shift();
game.unlockedItems.shift();
game.unlockedItems.shift();
}
var _local2 = 0;
while (_local2 < game.boughtItems.length) {
var _local5;
var _local4;
var name_;
name_ = game.boughtItems[_local2].itemsName;
_local5 = game.boughtItems[_local2].X;
_local4 = game.boughtItems[_local2].Y;
if (game.boughtItems[_local2].buyFlag) {
game.boughtItems[_local2].clip = BuyScreenBack.attachMovie(name_, name_, game.depth.getDepth(name_), {_x:_local5, _y:_local4});
var _local7 = game.depth.getDepth(name_);
game.boughtItems[_local2].clip.item = game.boughtItems[_local2];
}
_local2++;
}
_local3 = 0;
while (_local3 < game.bonusItems.length) {
var name_;
var _local5 = game.bonusItems[_local3].X;
var _local4 = game.bonusItems[_local3].Y;
name_ = game.bonusItems[_local3].itemsName;
trace("##name_ " + name_);
BuyScreenBack.attachMovie(name_, name_, game.depth.getDepth(name_), {_x:_local5, _y:_local4});
var _local7 = game.depth.getDepth(name_);
_local3++;
}
var _local6 = 0;
if (game.unlockedItems.length >= 4) {
_local6 = 4;
} else {
_local6 = game.unlockedItems.length;
}
_local2 = 0;
while (_local2 < _local6) {
if ((!game.unlockedItems[_local2].buyFlag) && (itemsForBuing < 4)) {
itemsForBuing++;
BuyScreen.attachMovie("buyBtn", "buyBtn" + _local2, 102 + (10 * _local2), {_x:153 + (165 * _local2), _y:542});
BuyScreen["buyBtn" + _local2].pic = BuyScreen.attachMovie("allObjects_mc", "allObjects_mc" + _local2, 103 + (10 * _local2), {_x:81.5 + (165 * _local2), _y:550.8});
BuyScreen["allObjects_mc" + _local2].gotoAndStop(game.unlockedItems[_local2].itemsName);
BuyScreen["buyBtn" + _local2].item = game.unlockedItems[_local2];
if ((game.unlockedItems[_local2].lockFlag == false) || (game.unlockedItems[_local2].lockFlag == undefined)) {
BuyScreen["buyBtn" + _local2].gotoAndStop("lock");
BuyScreen["allObjects_mc" + _local2].mark._visible = true;
} else if (((game.unlockedItems[_local2].primaryResources <= game.primaryResources) && (game.unlockedItems[_local2].weaponResources <= game.weaponResources)) && (game.unlockedItems[_local2].luxuryResources <= game.luxuryResources)) {
BuyScreen["buyBtn" + _local2].gotoAndStop("buy");
BuyScreen["allObjects_mc" + _local2].mark._visible = false;
} else {
BuyScreen["buyBtn" + _local2].gotoAndStop("NotMoney");
BuyScreen["allObjects_mc" + _local2].mark._visible = true;
}
BuyScreen["buyBtn" + _local2].itemsName.text = game.unlockedItems[_local2].itemsName;
addEvents();
}
_local2++;
}
_local2 = _local6;
while (_local2 < 4) {
BuyScreen.attachMovie("buyBtn", "buyBtn" + _local2, 102 + (10 * _local2), {_x:153 + (165 * _local2), _y:542});
BuyScreen["buyBtn" + _local2].gotoAndStop("clean");
BuyScreen["buyBtn" + _local2].nopres = true;
_local2++;
}
BuyScreen.attachMovie("menuBuyScreen", "menuBuyScreen_btn", 106, {_x:-17.6, _y:489.4});
BuyScreen.attachMovie("nextLevel", "NextLevel", 105, {_x:724.3, _y:489.4});
BuyScreen.NextLevel._x = 726.3;
BuyScreen.NextLevel._y = 490;
BuyScreen.menuBuyScreen_btn._x = -16.7;
BuyScreen.menuBuyScreen_btn._y = 490;
BuyScreen.NextLevel.itemsName.text = game.Language.getLangText("nextLevel");
addEvents();
_local2 = 0;
while (_local2 < 4) {
if (game.unlockedItems[_local2].buyFlag && (itemsForBuing < 4)) {
itemsForBuing++;
BuyScreen.attachMovie("buyBtn", "buyBtn" + _local2, 101 + (10 * _local2), {_x:153 + (165 * _local2), _y:539.6});
BuyScreen["buyBtn" + _local2].item = game.unlockedItems[_local2];
BuyScreen["buyBtn" + _local2].gotoAndStop("Bought");
BuyScreen["buyBtn" + _local2].itemsName.text = game.unlockedItems[_local2].itemsName;
BuyScreen.attachMovie("allObjects_mc", "allObjects_mc" + _local2, 103 + (10 * _local2), {_x:81.5 + (165 * _local2), _y:550.8});
BuyScreen["allObjects_mc" + _local2].gotoAndStop(game.unlockedItems[_local2].itemsName);
addEvents();
}
_local2++;
}
}
function attachScreen() {
return(clip);
}
function removeScreen() {
BuyScreenBack.removeMovieClip();
BuyScreen.removeMovieClip();
}
function MoveTilles() {
if (BuyScreen.topFlor._y > -131) {
BuyScreen.topFlor._y--;
BuyScreen.nubers._y--;
overview._y--;
BuyScreen.downFlor._y++;
var _local2 = 0;
while (_local2 < 4) {
BuyScreen["buyBtn" + _local2]._y++;
BuyScreen["allObjects_mc" + _local2]._y++;
_local2++;
}
var _local3 = 1;
while (_local3 <= 8) {
BuyScreen[_local3]._y--;
_local3++;
}
BuyScreen.menuBuyScreen_btn._y++;
BuyScreen.NextLevel._y++;
utils.Delegate.callDelayed(this, MoveTilles, 1);
} else {
overviewPress = true;
addEvents2();
return(undefined);
}
}
function MoveTillesUp() {
if (BuyScreen.topFlor._y < 0) {
BuyScreen.topFlor._y++;
BuyScreen.nubers._y++;
BuyScreen.downFlor._y--;
overview._y++;
var _local2 = 0;
while (_local2 < 4) {
BuyScreen["buyBtn" + _local2]._y--;
BuyScreen["allObjects_mc" + _local2]._y--;
_local2++;
}
var _local3 = 1;
while (_local3 <= 8) {
BuyScreen[_local3]._y++;
_local3++;
}
BuyScreen.menuBuyScreen_btn._y--;
BuyScreen.NextLevel._y--;
utils.Delegate.callDelayed(this, MoveTillesUp, 1);
} else {
overviewPress = false;
addEvents();
return(undefined);
}
}
function showPopUp(BuyScreenBack, item, thisIs) {
trace("sega ke povikam POPup " + item.popUpFlaf);
if (item.popUpFlaf && (lastItem != item)) {
lastItem = item;
thisIs.popUp = new ss.PopUp(BuyScreenBack, item);
}
}
function addEvents() {
var _local4;
trace("!!!!this.game.boughtItems.length " + game.boughtItems.length);
_local4 = 0;
while (_local4 < game.boughtItems.length) {
game.boughtItems[_local4].clip.holder = this;
game.boughtItems[_local4].clip.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
this.delley = false;
var _local2;
_local2 = this.item.itemsName;
trace((("name_ " + _local2) + " this.holder.flag ") + this.holder.flag);
if (!this.holder.flag) {
trace("lepam");
this.item.popUpFlaf = true;
this.holder.flag = true;
utils.Delegate.callDelayed(this.holder, this.holder.showPopUp, 2000, this.holder.BuyScreenBack, this.item, this.holder);
}
};
game.boughtItems[_local4].clip.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
this.holder.popUp.clip.removeMovieClip();
};
game.boughtItems[_local4].clip.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
if ((this.holder.popUp.clip != undefined) && (this.holder.flag)) {
this.holder.popUp.clip.removeMovieClip();
this.holder.popUp.clip = undefined;
this.holder.flag = false;
this.holder.lastItem = undefined;
}
if (this.item.popUpFlaf) {
this.holder.flag = false;
this.item.popUpFlaf = false;
}
};
_local4++;
}
BuyScreen.menuBuyScreen_btn.holder = this;
BuyScreen.menuBuyScreen_btn.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
BuyScreen.menuBuyScreen_btn.onRelease = function () {
this.holder.game.sndCtrl.stopSound("Buildin_is_built");
this.holder.game.cursor.clip.gotoAndStop("arrow");
this.holder.BuyScreen.attachMovie("pause_screen_mc", "pause_screen_mc", this.holder.game_backround.getNextHighestDepth());
this.holder.BuyScreen.pause_screen_mc.slider.sliderFX._xscale = this.holder.game.musicVolume;
this.holder.BuyScreen.pause_screen_mc.sliderMusic.sliderM._xscale = this.holder.game.musicVolume;
this.holder.game.sndCtrl.pauseAllSounds();
this.holder.addEvents();
};
BuyScreen.menuBuyScreen_btn.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
BuyScreen.menuBuyScreen_btn.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.exitScreen_mc.yes.holder = this;
game.exitScreen_mc.yes.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
game.exitScreen_mc.yes.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.exitScreen_mc.yes.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.exitScreen_mc.yes.onRelease = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
this.holder.BuyScreenBack.removeMovieClip();
this.holder.BuyScreen.removeMovieClip();
this.holder.game.interface_.NewGame();
this.holder.game.exitScreen_mc.removeMovieClip();
};
game.exitScreen_mc.no.holder = this;
game.exitScreen_mc.no.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
game.exitScreen_mc.no.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
game.exitScreen_mc.no.onRelease = function () {
this.holder.game.exitScreen_mc.removeMovieClip();
this.holder.game.exitScreen_mc.removeMovieClip();
};
game.exitScreen_mc.no.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
BuyScreen.pause_screen_mc.mainMain.holder = this;
BuyScreen.pause_screen_mc.mainMain.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
BuyScreen.pause_screen_mc.mainMain.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
BuyScreen.pause_screen_mc.mainMain.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
BuyScreen.pause_screen_mc.mainMain.onRelease = function () {
this.holder.game.attachMovie("exitScreen_mc", "exitScreen_mc", 3003);
this.holder.addEvents();
this.holder.BuyScreen.pause_screen_mc.removeMovieClip();
};
BuyScreen.pause_screen_mc.back_to_game.holder = this;
BuyScreen.pause_screen_mc.back_to_game.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
BuyScreen.pause_screen_mc.back_to_game.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
BuyScreen.pause_screen_mc.back_to_game.onRelease = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
this.holder.game.sndCtrl.resumeAllSounds();
this.holder.BuyScreen.pause_screen_mc.removeMovieClip();
};
tempBarMusic = game.musicVolume;
tempBarSound = game.fxVolume;
BuyScreen.pause_screen_mc.slider.sliderFX._xscale = tempBarSound;
BuyScreen.pause_screen_mc.sliderMusic.sliderM._xscale = tempBarMusic;
BuyScreen.pause_screen_mc.soundDown.holder = this;
BuyScreen.pause_screen_mc.soundDown.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
BuyScreen.pause_screen_mc.soundDown.onPress = function () {
this.holder.BuyScreen.pause_screen_mc.onEnterFrame = function () {
this.soundDown.holder.tempBarMusic = this.soundDown.holder.game.musicVolume;
this.soundDown.holder.tempBarSound = this.soundDown.holder.game.fxVolume;
if (this.soundDown.holder.tempBarSound > 0) {
this.soundDown.holder.tempBarSound = this.soundDown.holder.tempBarSound - 5;
this.soundDown.holder.BuyScreen.pause_screen_mc.slider.sliderFX._xscale = this.soundDown.holder.BuyScreen.pause_screen_mc.slider.sliderFX._xscale - 5;
this.soundDown.holder.game.fxVolume = this.soundDown.holder.tempBarSound;
this.soundDown.holder.game.sndCtrl.setSoundFXVolume(this.soundDown.holder.tempBarSound);
}
};
};
BuyScreen.pause_screen_mc.soundDown.onRelease = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
delete this.holder.BuyScreen.pause_screen_mc.onEnterFrame;
};
BuyScreen.pause_screen_mc.soundDown.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
delete this.holder.BuyScreen.pause_screen_mc.onEnterFrame;
};
BuyScreen.pause_screen_mc.soundUp.holder = this;
BuyScreen.pause_screen_mc.soundUp.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
BuyScreen.pause_screen_mc.soundUp.onPress = function () {
this.holder.BuyScreen.pause_screen_mc.onEnterFrame = function () {
this.soundUp.holder.tempBarMusic = this.soundUp.holder.game.musicVolume;
this.soundUp.holder.tempBarSound = this.soundUp.holder.game.fxVolume;
if (this.soundUp.holder.tempBarSound < 100) {
this.soundUp.holder.tempBarSound = this.soundUp.holder.tempBarSound + 5;
this.soundUp.holder.BuyScreen.pause_screen_mc.slider.sliderFX._xscale = this.soundUp.holder.BuyScreen.pause_screen_mc.slider.sliderFX._xscale + 5;
this.soundUp.holder.game.fxVolume = this.soundUp.holder.tempBarSound;
this.soundUp.holder.game.sndCtrl.setSoundFXVolume(this.soundUp.holder.tempBarSound);
}
};
};
BuyScreen.pause_screen_mc.soundUp.onRelease = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
delete this.holder.BuyScreen.pause_screen_mc.onEnterFrame;
};
BuyScreen.pause_screen_mc.soundUp.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
delete this.holder.BuyScreen.pause_screen_mc.onEnterFrame;
};
BuyScreen.pause_screen_mc.musicDown.holder = this;
BuyScreen.pause_screen_mc.musicDown.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
BuyScreen.pause_screen_mc.musicDown.onPress = function () {
this.holder.BuyScreen.pause_screen_mc.onEnterFrame = function () {
this.musicDown.holder.tempBarMusic = this.musicDown.holder.game.musicVolume;
this.musicDown.holder.tempBarSound = this.musicDown.holder.game.fxVolume;
if (this.musicDown.holder.tempBarMusic > 0) {
this.musicDown.holder.tempBarMusic = this.musicDown.holder.tempBarMusic - 5;
this.musicDown.holder.BuyScreen.pause_screen_mc.sliderMusic.sliderM._xscale = this.musicDown.holder.BuyScreen.pause_screen_mc.sliderMusic.sliderM._xscale - 5;
this.musicDown.holder.game.musicVolume = this.musicDown.holder.tempBarMusic;
this.musicDown.holder.game.sndCtrl.setMusicVolume(this.musicDown.holder.tempBarMusic);
}
};
};
BuyScreen.pause_screen_mc.musicDown.onRelease = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
delete this.holder.BuyScreen.pause_screen_mc.onEnterFrame;
};
BuyScreen.pause_screen_mc.musicDown.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
delete this.holder.BuyScreen.pause_screen_mc.onEnterFrame;
};
BuyScreen.pause_screen_mc.musicUp.holder = this;
BuyScreen.pause_screen_mc.musicUp.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
BuyScreen.pause_screen_mc.musicUp.onPress = function () {
this.holder.BuyScreen.pause_screen_mc.onEnterFrame = function () {
this.musicUp.holder.tempBarMusic = this.musicUp.holder.game.musicVolume;
this.musicUp.holder.tempBarSound = this.musicUp.holder.game.fxVolume;
if (this.musicUp.holder.tempBarMusic < 100) {
this.musicUp.holder.tempBarMusic = this.musicUp.holder.tempBarMusic + 5;
this.musicUp.holder.BuyScreen.pause_screen_mc.sliderMusic.sliderM._xscale = this.musicUp.holder.BuyScreen.pause_screen_mc.sliderMusic.sliderM._xscale + 5;
this.musicUp.holder.game.musicVolume = this.musicUp.holder.tempBarMusic;
this.musicUp.holder.game.sndCtrl.setMusicVolume(this.musicUp.holder.tempBarMusic);
}
};
};
BuyScreen.pause_screen_mc.musicUp.onRelease = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
delete this.holder.BuyScreen.pause_screen_mc.onEnterFrame;
};
BuyScreen.pause_screen_mc.musicUp.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
delete this.holder.BuyScreen.pause_screen_mc.onEnterFrame;
};
overview.holder = this;
overview.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
overview.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
overview.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
overview.onRelease = function () {
this.holder.game.sndCtrl.stopSound("Buildin_is_built");
this.holder.game.cursor.clip.gotoAndStop("arrow");
if (!this.holder.overviewPress) {
this.holder.MoveTilles();
} else {
this.holder.MoveTillesUp();
}
};
BuyScreen.NextLevel.holder = this;
BuyScreen.NextLevel.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
BuyScreen.NextLevel.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
BuyScreen.NextLevel.onRelease = function () {
this.holder.game.sndCtrl.stopSound("Buildin_is_built");
this.holder.game.cursor.clip.gotoAndStop("arrow");
this.holder.game.sndCtrl.stopSound("pressButton");
this.holder.game.sndCtrl.playSound("pressButton");
if (this.holder.game.levelID == 6) {
if (this.holder.game.boughtItems.length >= 6) {
var _local2 = 0;
while (_local2 < (this.holder.game.boughtItems.length - 1)) {
this.holder.game.itemsInPella.push(this.holder.game.boughtItems[_local2].itemsName);
_local2++;
}
_local2 = 0;
while (_local2 < (this.holder.game.bonusItems.length - 1)) {
this.holder.game.BonusInPella.push(this.holder.game.bonusItems[_local2].itemsName);
_local2++;
}
this.holder.game.interface_.showCongratulationScreen(1);
this.holder.game.sndCtrl.stopSound(this.holder.game.currentMusic);
this.holder.game.sndCtrl.playSound("ATG_complete_palace_theme1and2");
this.holder.game.currentMusic = "ATG_complete_palace_theme1and2";
this.holder.game.interface_.saveLoadObject.saveGame(this.holder.game.userName);
} else {
this.holder.game.interface_.showMap();
this.holder.game.sndCtrl.stopSound(this.holder.game.currentMusic);
this.holder.game.sndCtrl.playSound("Main_theme", 32000);
this.holder.game.currentMusic = "Main_theme";
this.holder.game.interface_.saveLoadObject.saveGame(this.holder.game.userName);
this.holder.game.interface_.BuyBuildScreen.removeScreen();
}
} else if (this.holder.game.levelID == 25) {
if (this.holder.game.boughtItems.length >= 16) {
this.holder.game.levelID++;
var _local2 = 0;
while (_local2 < (this.holder.game.boughtItems.length - 1)) {
this.holder.game.itemsInBabilon.push(this.holder.game.boughtItems[_local2].itemsName);
_local2++;
}
_local2 = 0;
while (_local2 < (this.holder.game.bonusItems.length - 1)) {
this.holder.game.BonusInBabilon.push(this.holder.game.bonusItems[_local2].itemsName);
_local2++;
}
this.holder.game.boughtItems = [];
this.holder.game.unlockedItems = [];
this.holder.game.bonusItems = [];
this.holder.game.interface_.showCongratulationScreen(2);
this.holder.game.sndCtrl.stopSound(this.holder.game.currentMusic);
this.holder.game.sndCtrl.playSound("ATG_complete_palace_theme1and2");
this.holder.game.currentMusic = "ATG_complete_palace_theme1and2";
this.holder.game.interface_.saveLoadObject.saveGame(this.holder.game.userName);
} else {
this.holder.game.interface_.showMap();
this.holder.game.sndCtrl.stopSound(this.holder.game.currentMusic);
this.holder.game.sndCtrl.playSound("Main_theme", 32000);
this.holder.game.currentMusic = "Main_theme";
this.holder.game.interface_.saveLoadObject.saveGame(this.holder.game.userName);
this.holder.game.interface_.BuyBuildScreen.removeScreen();
}
} else if (this.holder.game.levelID == 61) {
if (this.holder.game.boughtItems.length >= 23) {
this.holder.game.itemsInAlex = this.holder.game.boughtItems.slice();
this.holder.game.BonusInAlex = this.holder.game.bonusItems.slice();
this.holder.game.interface_.showCongratulationScreen(3);
this.holder.game.sndCtrl.stopSound(this.holder.game.currentMusic);
this.holder.game.sndCtrl.playSound("ATG_complete_palace_theme3");
this.holder.game.currentMusic = "ATG_complete_palace_theme3";
} else {
this.holder.game.levelID++;
this.holder.game.interface_.showMap();
this.holder.game.sndCtrl.stopSound(this.holder.game.currentMusic);
this.holder.game.sndCtrl.playSound("Main_theme", 32000);
this.holder.game.currentMusic = "Main_theme";
this.holder.game.interface_.saveLoadObject.saveGame(this.holder.game.userName);
this.holder.game.interface_.BuyBuildScreen.removeScreen();
}
} else {
this.holder.game.levelID++;
this.holder.game.interface_.showMap();
this.holder.game.sndCtrl.stopSound(this.holder.game.currentMusic);
this.holder.game.sndCtrl.playSound("Main_theme", 32000);
this.holder.game.currentMusic = "Main_theme";
this.holder.game.interface_.saveLoadObject.saveGame(this.holder.game.userName);
this.holder.game.interface_.BuyBuildScreen.removeScreen();
}
};
BuyScreen.NextLevel.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
var _local3;
_local3 = 0;
while (_local3 < 4) {
game.BuyScreen["buyBtn" + _local3].holder = this;
BuyScreen["buyBtn" + _local3].onPress = function () {
if (!this.nopres) {
this.popUp.clip.removeMovieClip();
this.btn.gotoAndStop(3);
}
};
BuyScreen["buyBtn" + _local3].onRelease = function () {
if (!this.nopres) {
this.btn.gotoAndStop(1);
this.popUp.clip.removeMovieClip();
this.holder.game.sndCtrl.stopSound("pressButton");
this.holder.game.sndCtrl.playSound("pressButton");
if ((((this.item.lockFlag && (this.holder.game.primaryResources >= this.item.primaryResources)) && (this.holder.game.weaponResources >= this.item.weaponResources)) && (this.holder.game.luxuryResources >= this.item.luxuryResources)) && (!this.item.buyFlag)) {
this.item.buyFlag = true;
if (this.item.unlockedBubble < 100) {
this.holder.game.unlockedBubbles.push(this.item.unlockedBubble);
} else if (this.item.unlockedBubble == 772) {
this.holder.game.fasterAssult = true;
} else if (this.item.unlockedBubble == 742) {
this.holder.game.fasterMorph = true;
} else if (this.item.unlockedBubble == 752) {
this.holder.game.fasterTime = true;
}
if (this.item.unlockedBubble < 60) {
this.holder.game.unlockedBubbles2.push(this.item.unlockedBubble);
}
var _local3 = new screens.HelpHints(this.holder.game, this.item.unlockedBubble);
this.holder.game.HelpHints.push(_local3);
this.holder.game.primaryResources = this.holder.game.primaryResources - this.item.primaryResources;
this.holder.game.weaponResources = this.holder.game.weaponResources - this.item.weaponResources;
this.holder.game.luxuryResources = this.holder.game.luxuryResources - this.item.luxuryResources;
this.holder.game.boughtItems.push(this.item);
this.holder.game.sndCtrl.stopSound("Buildin_is_built");
this.holder.game.sndCtrl.playSound("Buildin_is_built");
var _local2;
_local2 = this.item.itemsName;
this.item.clip = this.holder.BuyScreenBack.attachMovie(_local2, _local2, this.holder.game.depth.getDepth(_local2), {_x:this.item.X, _y:this.item.Y});
this.item.clip.item = this.item;
if (_local2 == "ThePalaceAtThebes") {
this.holder.BuyScreenBack.attachMovie("show_object_palace", "show_object", this.item.clip.getDepth() + 100, {_x:this.item.clip._x + (this.item.clip._width / 4), _y:this.item.clip._y + (this.item.clip._height / 3)});
} else if (((_local2 == "theNewPalaceWing") || (_local2 == "theNewAlexandriaPalace")) || (_local2 == "PalaceInBabylon")) {
trace("palata");
this.holder.BuyScreenBack.attachMovie("show_object_palace", "show_object", this.item.clip.getDepth() + 100, {_x:this.item.clip._x + (this.item.clip._width / 2), _y:this.item.clip._y + (this.item.clip._height / 2)});
} else if (_local2 == "Fortress") {
trace("show_object_fortress");
this.holder.BuyScreenBack.attachMovie("show_object_fortress", "show_object", this.item.clip.getDepth() + 100, {_x:this.item.clip._x, _y:this.item.clip._y});
} else {
this.holder.BuyScreenBack.attachMovie("show_object", "show_object", this.item.clip.getDepth() + 100, {_x:this.item.clip._x + (this.item.clip._width / 2), _y:this.item.clip._y + (this.item.clip._height / 2)});
}
this.holder.mcFadeIn(this.item.clip, 500);
this.gotoAndStop("Bought");
this.holder.game.interface_.BuyBuildScreen.chekButtoms();
this.holder.setResourses();
this.holder.chekButtoms();
this.pic.mark._visible = true;
this.holder.game.interface_.saveLoadObject.saveGame(this.holder.game.userName);
this.holder.addEvents();
}
}
};
BuyScreen["buyBtn" + _local3].onReleaseOutside = function () {
if (!this.nopres) {
this.holder.game.cursor.clip.gotoAndStop("arrow");
this.btn.gotoAndStop(1);
this.popUp.clip.removeMovieClip();
}
};
BuyScreen["buyBtn" + _local3].onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
if (!this.nopres) {
if (!this.item.buyFlag) {
this.btn.gotoAndStop(2);
this.popUp = new ss.PopUp(this.holder.BuyScreenBack, this.item);
} else {
this.popUp = new ss.PopUp(this.holder.BuyScreenBack, this.item);
}
}
};
BuyScreen["buyBtn" + _local3].onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
this.btn.gotoAndStop(1);
this.popUp.clip.removeMovieClip();
};
_local3++;
}
}
function addEvents2() {
BuyScreenBack.holder = this;
BuyScreenBack.onRelease = function () {
this.holder.game.sndCtrl.stopSound("Buildin_is_built");
this.holder.MoveTillesUp();
};
}
function chekButtoms() {
var _local2;
_local2 = 0;
while (_local2 < 4) {
var _local3 = game.BuyScreen["buyBtn" + _local2].item;
if ((game.unlockedItems[_local2].lockFlag == false) || ((game.unlockedItems[_local2].lockFlag == undefined) && (!BuyScreen["buyBtn" + _local2].nopres))) {
BuyScreen["buyBtn" + _local2].gotoAndStop("lock");
BuyScreen["allObjects_mc" + _local2].mark._visible = true;
} else if ((((game.primaryResources >= _local3.primaryResources) && (game.weaponResources >= _local3.weaponResources)) && (game.luxuryResources >= _local3.luxuryResources)) && (!_local3.buyFlag)) {
if (!BuyScreen["buyBtn" + _local2].nopres) {
BuyScreen["buyBtn" + _local2].gotoAndStop("buy");
}
} else if (!_local3.buyFlag) {
if (!BuyScreen["buyBtn" + _local2].nopres) {
BuyScreen["buyBtn" + _local2].gotoAndStop("NotMoney");
BuyScreen["buyBtn" + _local2].pic.mark._visible = true;
}
}
_local2++;
}
}
function mcFadeIn(mc, time) {
var _local3 = time * 0.025;
mc.oeftime = _local3;
mc.step = 100 / _local3;
mc._alpha = 0;
mc.show_object._alpha = 100;
mc.onEnterFrame = function () {
this.oeftime--;
if (this.oeftime > 0) {
this._alpha = this._alpha + this.step;
mc.show_object._alpha = 100;
} else {
this._alpha = 100;
delete this.onEnterFrame;
}
_root.fadein.text = int(this._alpha);
};
}
function mcFadeOut(mc, time) {
var _local4 = time * 0.025;
mc.oeftime = _local4;
mc.step = 100 / _local4;
mc._alpha = 100;
mc.help = 100;
mc.onEnterFrame = function () {
this.oeftime--;
if (this.oeftime > 0) {
this.help = this.help - this.step;
} else {
this.help = 0;
delete this.onEnterFrame;
}
this._alpha = this.help;
_root.fadeout.text = int(this._alpha);
};
}
function setResourses() {
BuyScreen.nubers.armi.text = game.armiResources;
BuyScreen.nubers.score.text = game.AllScore;
BuyScreen.nubers.level.text = game.levelID;
BuyScreen.nubers.live.text = game.Life;
BuyScreen.nubers.pimRes.text = game.primaryResources;
BuyScreen.nubers.weaRes.text = game.weaponResources;
BuyScreen.nubers.luxRes.text = game.luxuryResources;
}
}
Symbol 1101 MovieClip [__Packages.ss.PopUp] Frame 0
class ss.PopUp
{
var scrin, item, clip;
function PopUp (_scrin, item_) {
trace("PopUp ");
scrin = _scrin;
item = item_;
init();
}
function mcFadeIn(mc, time) {
var _local3 = time * 0.025;
mc.oeftime = _local3;
mc.step = 100 / _local3;
mc._alpha = 0;
mc.show_object._alpha = 100;
mc.onEnterFrame = function () {
this.oeftime--;
if (this.oeftime > 0) {
this._alpha = this._alpha + this.step;
mc.show_object._alpha = 100;
} else {
this._alpha = 100;
delete this.onEnterFrame;
}
_root.fadein.text = int(this._alpha);
};
}
function init() {
if (((item.unlockedBubble == 772) || (item.unlockedBubble == 742)) || (item.unlockedBubble == 752)) {
clip = scrin.attachMovie("objectInfo_screen_upgrade", "objectInfo_screen", 107);
} else {
clip = scrin.attachMovie("objectInfo_screen", "objectInfo_screen", 107);
}
mcFadeIn(clip, 1000);
clip.nameItems.text = getNameForItem(item.itemsName.toString());
clip.prim.text = item.primaryResources.toString();
clip.lux.text = item.luxuryResources.toString();
if (item.primaryResources > item.game.primaryResources) {
clip.prim.textColor = 13369344 /* 0xCC0000 */;
}
if (item.luxuryResources > item.game.luxuryResources) {
clip.lux.textColor = 13369344 /* 0xCC0000 */;
}
clip.bubbleName.text = getNameForBubble(item.unlockedBubble);
item.game.sndCtrl.stopSound("popUp_sound");
item.game.sndCtrl.playSound("popUp_sound");
var _local2 = "Start" + item.unlockedBubble;
clip.bubble.attachMovie(_local2, "ball", 1);
}
function setProperti() {
var _local3 = 30;
var _local2 = 70;
if (clip.bubble._width > 0) {
var _local6 = clip.bubble._width;
var _local4 = clip.bubble._height;
var _local7 = 100;
var _local5 = 100;
if (_local6 > _local3) {
_local7 = (_local6 * 100) / _local3;
}
if (_local4 > _local2) {
_local5 = (_local4 * 100) / _local2;
}
if (_local7 > _local5) {
clip.bubble._width = _local3;
clip.bubble._height = _local2;
} else {
clip.bubble._width = _local3;
clip.bubble._height = _local2;
}
clip.bubble._x = 277.5;
clip.bubble._y = 309.5;
}
}
function getNameForItem(item) {
switch (item) {
case "ThePalaceAtThebes" :
return("The Palace At Thebes");
case "ASmallVillage" :
return("A Small Village");
case "AGraintField" :
return("A Graint Field");
case "TheHarbor" :
return("The Harbor");
case "TheMarket" :
return("The Market");
case "theNewPalaceWing" :
return("The New Palace Wing");
case "theNewAlexandriaPalace" :
return("The New Alexandria Palace");
case "theLibrary" :
return("The Library");
case "Academy" :
return("Academy");
case "ThePort" :
return("The Port");
case "Lighthouse" :
return("Lighthouse");
case "PalaceYard" :
return("Palace Yard");
case "militaryBarracks" :
return("Military Barracks");
case "MarblePalaceStairs" :
return("Marble Palace Stairs");
case "TownCentreMarket" :
return("Town Centre Market");
case "CopperMine" :
return("Copper Mine");
case "SteelWorkshop" :
return("Steel Workshop");
case "Sanctuary" :
return("Sanctuary");
case "Farm" :
return("Farm");
case "DiamondMine" :
return("Diamond Mine");
case "TrainingGrounds" :
return("Training Grounds");
case "PalaceInBabylon" :
return("Palace In Babylon");
case "treasureChamber" :
return("Treasure Chamber");
case "WeaponStorageBuilding" :
return("Weapon Storage Building");
case "BabylonWorkshops" :
return("Babylon Workshops");
case "Ornaments" :
return("Ornaments");
case "amphitheatre" :
return("amphitheatre");
case "BabylonBarracks" :
return("BabylonBarracks");
case "GoldenGate" :
return("GoldenGate");
case "BabylonSpa" :
return("Babylon Spa");
case "Tower" :
return("Tower");
case "WarTents" :
return("War Tents");
case "Aqueduct" :
return("Aqueduct");
case "Vineyards" :
return("Vineyards");
case "Fountain" :
return("Fountain");
case "RoyalStaple" :
return("Royal Staple");
case "Fortress" :
return("Fortress");
case "Bakery" :
return("Bakery");
case "MarbleFences" :
return("Marble Fences");
case "Observatory" :
return("Observatory");
case "Altar" :
return("Altar");
case "RoyalHangingGarden" :
return("Royal Hanging Garden");
case "TheRoyalThrone" :
return("The Royal Throne");
case "Herbarium" :
return("Herbarium");
case "MacedoniaFlags" :
return("Macedonia Flags");
}
}
function getNameForBubble(BallId) {
switch (BallId) {
case 772 :
return("Assault Bubble");
case 742 :
return("Morph Bubble");
case 752 :
return("Time Bubble");
case 14 :
return("Wood");
case 15 :
return("Iron");
case 16 :
return("Fish");
case 17 :
return("Meat");
case 18 :
return("Stone");
case 19 :
return("Cotton");
case 20 :
return("Vegetables");
case 21 :
return("Fruit");
case 22 :
return("Eggs");
case 23 :
return("Wine");
case 24 :
return("Bread");
case 25 :
return("Silver Coin");
case 26 :
return("Gold Coin");
case 27 :
return("Marble");
case 28 :
return("Pearls");
case 29 :
return("Fur Luxury");
case 30 :
return("Diamonds");
case 31 :
return("Sapphires");
case 32 :
return("Chalice");
case 33 :
return("Golden Mask");
case 34 :
return("Ring");
case 35 :
return("Emerald");
case 36 :
return("Golden Elephant scalp");
case 37 :
return("The Crown");
case 38 :
return("The Crystal Ball");
case 39 :
return("Sword");
case 40 :
return("Spear");
case 41 :
return("Helmet");
case 42 :
return("Mace");
case 43 :
return("Horses");
case 44 :
return("Phalanx");
case 45 :
return("Armor");
case 46 :
return("Javelin Men");
case 47 :
return("Dagger");
case 48 :
return("Chariot");
case 49 :
return("The Catapult");
case 50 :
return("Leaves");
case 51 :
return("Grass");
case 52 :
return("Soil");
case 53 :
return("Water");
case 54 :
return("Copper");
case 71 :
return("Assault Bubble");
case 72 :
return("Transmutation Bubble");
case 73 :
return("Double Bubble");
case 74 :
return("Morph Bubble");
case 75 :
return("Time Bubble");
case 76 :
return("Shield Bubble");
case 77 :
return("Moral Boost Bubble");
case 78 :
return("Spy Bubble");
}
}
}
Symbol 1102 MovieClip [__Packages.screens.MapScreen] Frame 0
class screens.MapScreen implements IScreen
{
var game, battleSoundOver, endBattleSoundOver, clip;
function MapScreen (game_) {
game = game_;
battleSoundOver = false;
endBattleSoundOver = false;
attachScreen();
game.cursor.clip.gotoAndStop("arrow");
}
function attachScreen() {
var _local2 = 0;
if (game.levelID <= 10) {
clip = game.attachMovie("map_stage_1", "map", 1);
} else if (game.levelID <= 29) {
_local2 = 10;
clip = game.attachMovie("map_stage_2", "map", 1);
} else if (game.levelID <= 40) {
_local2 = 29;
clip = game.attachMovie("map_stage_3", "map", 1);
} else {
_local2 = 40;
clip = game.attachMovie("map_stage_4", "map", 1);
}
battleSound();
endBattleSound();
trace((("!!!!!!!!this.game.levelID " + game.levelID) + " pastLevels") + _local2);
var _local3 = game.levelID - _local2;
trace((("this.clip.jorney " + clip.jorney) + "frameNum ") + _local3);
clip.jorney.gotoAndStop(_local3);
clip.NextLevel.itemsName.text = game.Language.getLangText("nextLevel");
addEvents();
return(clip);
}
function removeScreen() {
trace("removeScreen():Void{");
clip.removeMovieClip();
}
function addEvents() {
clip.NextLevel.holder = this;
clip.NextLevel.onRelease = function () {
trace("pritisna");
this.holder.game.startLevel();
this.holder.game.bonusPopUp.pop();
this.holder.removeScreen();
};
clip.NextLevel.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
clip.NextLevel.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
clip.NextLevel.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
}
function battleSound() {
if (_global.startBattle == true) {
trace("pushtam zvuk za Battle");
game.sndCtrl.stopSound("battle_in_map");
game.sndCtrl.playSound("battle_in_map");
_global.startBattle = false;
battleSoundOver = true;
}
if (battleSoundOver == false) {
utils.Delegate.callDelayed(this, battleSound, 100);
}
}
function endBattleSound() {
if (_global.endBattle == true) {
trace("pushtam zvuk za Battle");
game.sndCtrl.stopSound("battle_in_map");
_global.endBattle = false;
endBattleSoundOver = true;
}
if (endBattleSoundOver == false) {
utils.Delegate.callDelayed(this, endBattleSound, 100);
}
}
}
Symbol 1103 MovieClip [__Packages.screens.CongratulationsScreen] Frame 0
class screens.CongratulationsScreen implements IScreen
{
var game, num, clip, reward;
function CongratulationsScreen (game_, num_) {
game = game_;
num = num_;
attachScreen(num);
}
function attachScreen() {
switch (num) {
case 1 :
clip = game.attachMovie("congratulatoinsScreen", "congratulatoinsScreen", 3);
clip.gotoAndStop(3);
break;
case 2 :
clip = game.attachMovie("congratulatoinsScreen", "congratulatoinsScreen", 3);
clip.gotoAndStop(2);
break;
case 3 :
clip = game.attachMovie("congratulatoinsScreen", "congratulatoinsScreen", 3);
clip.gotoAndStop(1);
}
addEvents();
return(clip);
}
function removeScreen() {
clip.removeMovieClip();
}
function addEvents() {
clip.okBtn.holder = this;
clip.okBtn.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
clip.okBtn.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
clip.okBtn.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
clip.okBtn.onRelease = function () {
trace("pritisna");
this.holder.reward = this.holder.game.attachMovie("reward_screen_mc", "reward_screen_mc", 4);
this.holder.mcFadeIn(this.holder.reward, 500);
_root.highscore = _root.attachMovie("highscore\u0435", "highscore\u0435", 50011, {_x:300, _y:300});
this.holder.reward.score.text = this.holder.game.AllScore;
this.holder.game.sndCtrl.stopSound(this.holder.game.currentMusic);
this.holder.game.sndCtrl.playSound("Main_theme", 32000);
this.holder.game.currentMusic = "Main_theme";
this.holder.game.interface_.BuyBuildScreen.removeScreen();
this.holder.game.BuyScreen.removeMovieClip();
this.holder.game.BuyScreenBackName.removeMovieClip();
this.holder.addEvents();
this.holder.removeScreen();
this.holder.game.sndCtrl.stopSound(this.holder.game.currentMusic);
this.holder.game.sndCtrl.playSound("Main_theme", 32000);
this.holder.game.currentMusic = "Main_theme";
this.holder.game.interface_.showMap();
this.holder.game.interface_.BuyBuildScreen.removeScreen();
this.holder.game.BuyScreen.removeMovieClip();
this.holder.game.BuyScreenBackName.removeMovieClip();
this.holder.removeScreen();
};
reward.submit.holder = this;
reward.submit.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
reward.submit.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
reward.submit.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
reward.submit.onRelease = function () {
trace("submit score");
if (_global.company == "Youda") {
System.security.allowDomain(_global.youdagames);
_root.hs_list = false;
_root.hs_score = this.holder.game.AllScore;
trace("_root.hs_score " + _root.hs_score);
_root.is_time = false;
_root.hs_gameid = 55;
_root.hs_requesturl = _global.youdagames;
trace("this.highscore " + _root.highscore);
trace("_global.highscorelink " + _global.highscorelink);
_root.highscore.loadMovie(_global.highscorelink);
} else if (_global.company == "MiniClip") {
_global.AllScore = this.holder.game.AllScore;
trace("SCORE MINICLIP " + _global.AllScore);
_global.highScoreScreen.gotoAndStop(2);
}
};
reward.BuyFull.holder = this;
reward.BuyFull.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
reward.BuyFull.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
reward.BuyFull.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
reward.BuyFull.onRelease = function () {
trace("pritisna BuyFull");
getURL (_global.buygamelink, "_blank");
};
reward.main.holder = this;
reward.main.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
reward.main.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
reward.main.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
reward.main.onRelease = function () {
trace("pritisna gggg");
this.holder.game.sndCtrl.stopSound(this.holder.game.currentMusic);
this.holder.game.sndCtrl.playSound("Main_theme", 32000);
this.holder.game.currentMusic = "Main_theme";
this.holder.game.levelID = 1;
this.holder.game.interface_.NewGame();
this.holder.game.interface_.BuyBuildScreen.removeScreen();
this.holder.game.BuyScreen.removeMovieClip();
this.holder.game.BuyScreenBackName.removeMovieClip();
this.holder.game.reward_screen_mc.removeMovieClip();
};
}
function mcFadeIn(mc, time) {
var _local3 = time * 0.025;
mc.oeftime = _local3;
mc.step = 100 / _local3;
mc._alpha = 0;
mc.show_object._alpha = 100;
mc.onEnterFrame = function () {
this.oeftime--;
if (this.oeftime > 0) {
this._alpha = this._alpha + this.step;
mc.show_object._alpha = 100;
} else {
this._alpha = 100;
delete this.onEnterFrame;
}
_root.fadein.text = int(this._alpha);
};
}
function mcFadeOut(mc, time) {
var _local4 = time * 0.025;
mc.oeftime = _local4;
mc.step = 100 / _local4;
mc._alpha = 100;
mc.help = 100;
mc.onEnterFrame = function () {
this.oeftime--;
if (this.oeftime > 0) {
this.help = this.help - this.step;
} else {
this.help = 0;
delete this.onEnterFrame;
}
this._alpha = this.help;
_root.fadeout.text = int(this._alpha);
};
}
}
Symbol 1104 MovieClip [__Packages.ss.Keyboard] Frame 0
class ss.Keyboard
{
var game, keyboardListener, pauseTime;
function Keyboard (_game) {
game = _game;
keyboardListener = new Object();
keyboardListener.holder = this;
keyboardListener.onKeyDown = Press;
Key.addListener(keyboardListener);
pauseTime = 0;
}
function Press() {
var _local2 = this;
var _local4 = _local2.holder.game.level.bubbleGame;
if (Key.getCode() == 81) {
}
if (Key.getCode() == 38) {
}
if (Key.getCode() == 40) {
}
if (Key.getCode() == 65) {
}
if (Key.getCode() == 78) {
}
if (Key.getCode() == 80) {
trace("bubbleGame.pauseInGame" + _local4.pauseInGame);
_local2.holder.game.cursor.clip.gotoAndStop("arrow");
if (!_local4.pauseInGame) {
_local2.holder.pauseGame();
} else {
_local2.holder.game.game_backround.pause_screen_mc.removeMovieClip();
_local2.holder.game.level.bubbleGame.pauseInGame = false;
_local2.holder.game.sndCtrl.resumeAllSounds();
var _local3 = getTimer();
_local2.holder.game.level.bubbleGame.oldRowTime = _local2.holder.game.level.bubbleGame.oldRowTime + (_local3 - _local2.holder.pauseTime);
_local2.holder.game.level.bubbleGame.startTime = _local2.holder.game.level.bubbleGame.startTime + (_local3 - _local2.holder.pauseTime);
_local2.holder.game.level.bubbleGame.OldTime = _local2.holder.game.level.bubbleGame.OldTime + (_local3 - _local2.holder.pauseTime);
_local2.holder.game.level.bubbleGame.GameTime = _local2.holder.game.level.bubbleGame.GameTime + (_local3 - _local2.holder.pauseTime);
_local2.holder.game.level.bubbleGame.LightBubbleTime = _local2.holder.game.level.bubbleGame.LightBubbleTime + (_local3 - _local2.holder.pauseTime);
_local2.holder.game.level.bubbleGame.IceBubbleTime = _local2.holder.game.level.bubbleGame.IceBubbleTime + (_local3 - _local2.holder.pauseTime);
_local2.holder.game.level.bubbleGame.MirrorBubbleTime = _local2.holder.game.level.bubbleGame.MirrorBubbleTime + (_local3 - _local2.holder.pauseTime);
_local2.holder.game.level.bubbleGame.HeatBubbleTime = _local2.holder.game.level.bubbleGame.HeatBubbleTime + (_local3 - _local2.holder.pauseTime);
_local2.holder.game.level.bubbleGame.SpikeBubbleTime = _local2.holder.game.level.bubbleGame.SpikeBubbleTime + (_local3 - _local2.holder.pauseTime);
_local2.holder.game.level.bubbleGame.RoughBubbleTime = _local2.holder.game.level.bubbleGame.RoughBubbleTime + (_local3 - _local2.holder.pauseTime);
_local2.holder.game.level.bubbleGame.AccelerationBubbleTime = _local2.holder.game.level.bubbleGame.AccelerationBubbleTime + (_local3 - _local2.holder.pauseTime);
trace(((((("OldTime=" + _local2.holder.game.level.bubbleGame.OldTime) + "timeNow(+") + _local3) + ")pauseTime(") + _local2.holder.pauseTime) + ")");
_local2.holder.game.level.bubbleGame.addEvents();
}
}
if (Key.getCode() == 77) {
}
}
function pauseGame() {
game.game_backround.attachMovie("pause_screen_mc", "pause_screen_mc", game.game_backround.getNextHighestDepth(), {_x:-49, _y:-50});
game.game_backround.pause_screen_mc.slider.sliderFX._xscale = game.musicVolume;
game.game_backround.pause_screen_mc.sliderMusic.sliderM._xscale = game.musicVolume;
game.level.bubbleGame.pauseInGame = true;
if (game.game_backround.pause_screen_mc) {
game.sndCtrl.pauseAllSounds();
}
pauseTime = getTimer();
game.level.bubbleGame.addEvents();
}
function removeKeyboardListener() {
Key.removeListener(keyboardListener);
}
}
Symbol 1105 MovieClip [__Packages.ss.Cursor] Frame 0
class ss.Cursor
{
var game, LastAngle, clip, mouseListener, xcoord, ycoord, now, br, greater, angleTolerance, timess, shake, notMove;
function Cursor (_game) {
game = _game;
init();
}
function init() {
LastAngle = 0;
clip = game.attachMovie("cursor", "cursor", 31000);
clip.gotoAndStop("arrow");
clip.cacheAsBitmap = true;
startDrag (clip, true);
mouseListener = new Object();
mouseListener.holder = this;
mouseListener.onMouseDown = MouseDown;
mouseListener.onMouseMove = onMove;
Mouse.addListener(mouseListener);
Mouse.hide();
xcoord = _xmouse;
ycoord = _ymouse;
now = getTimer();
br = 0;
greater = false;
angleTolerance = 40;
timess = 3;
shake = false;
notMove = false;
_global.mouse = {};
}
function onMove() {
var _local2 = this;
if (!_local2.holder.game.level.bubbleGame.pauseInGame) {
if ((_ymouse > 475) && (_local2.holder.game.level.bubbleGame)) {
} else if (_local2.holder.game.level.bubbleGame) {
}
if (!_local2.holder.game.level.bubbleGame.IceTime) {
_local2.holder.game.level.bubbleGame.Arrow.katapult_fixed.play();
}
_local2.holder.game.level.bubbleGame.vAngle = 90 + ((Math.atan2(_local2.holder.game.level.bubbleGame.ArrowCentar._ymouse, _local2.holder.game.level.bubbleGame.ArrowCentar._xmouse) * 180) / Math.PI);
if (_local2.holder.game.level.bubbleGame.MirrorTime) {
_local2.holder.game.level.bubbleGame.vAngle = _local2.holder.game.level.bubbleGame.vAngle * -1;
}
if ((_local2.holder.game.level.bubbleGame.vAngle > 78) && (_local2.holder.game.level.bubbleGame.vAngle < 200)) {
_local2.holder.game.level.bubbleGame.vAngle = 78;
} else if ((_local2.holder.game.level.bubbleGame.vAngle < -78) || (_local2.holder.game.level.bubbleGame.vAngle > 200)) {
_local2.holder.game.level.bubbleGame.vAngle = -78;
}
if (_local2.holder.game.level.bubbleGame.LightBubble == true) {
} else if (_local2.holder.game.level.bubbleGame.IceTime == true) {
_local2.holder.game.cursor.shakeMouse();
} else {
_local2.holder.game.level.bubbleGame.Arrow._rotation = _local2.holder.game.level.bubbleGame.vAngle;
if (_local2.holder.game.level.bubbleGame.withHelpPoints) {
if ((!_local2.holder.game.level.bubbleGame.PointsFlag) && (_local2.holder.game.level.bubbleGame)) {
_local2.holder.game.level.bubbleGame.KCalcDelta(_local2.holder.game.level.bubbleGame.vAngle);
}
}
}
}
}
function MouseDown() {
var _local2 = this;
if (((((((((_local2.holder.game.level.bubbleGame.pauseInGame != true) && (!_local2.holder.game.level.bubbleGame.IceTime)) && (!_local2.holder.game.game_backround.popHints_reverse)) && (_local2.holder.game.interface_.MapScreen.clip != "")) && (_ymouse < 475)) && (_xmouse < 700)) && (!_local2.holder.game.game_backround.BuyScreenBack)) && (_local2.holder.game.level.bubbleGame.vCC == _local2.holder.game.level.bubbleGame.cmNothing)) && (!_local2.holder.game.level.bubbleGame.vDialog)) {
_local2.holder.game.level.bubbleGame.vCC = _local2.holder.game.level.bubbleGame.cmBMCalc;
if (_local2.holder.game.level.bubbleGame.LightBubble == true) {
} else if (_local2.holder.game.level.bubbleGame.IceTime) {
} else {
_local2.holder.game.level.bubbleGame.olldAngle = _local2.holder.game.level.bubbleGame.vAngle;
}
}
}
function removeMouseListener() {
Mouse.removeListener(mouseListener);
}
function SlowArrow() {
var _local2 = getTimer();
if ((!game.level.bubbleGame.pauseInGame) && ((_local2 - game.level.bubbleGame.LightBubbleTime) < 11000)) {
if (game.level.bubbleGame.olldAngle < (game.level.bubbleGame.vAngle - 0.5)) {
game.level.bubbleGame.olldAngle = game.level.bubbleGame.olldAngle + 1;
} else if (game.level.bubbleGame.olldAngle > (game.level.bubbleGame.vAngle + 0.5)) {
game.level.bubbleGame.olldAngle = game.level.bubbleGame.olldAngle - 1;
} else {
game.level.bubbleGame.olldAngle = game.level.bubbleGame.vAngle;
}
game.level.bubbleGame.Arrow._rotation = game.level.bubbleGame.olldAngle;
utils.Delegate.callDelayed(this, SlowArrow, 100);
} else if ((!game.level.bubbleGame.pauseInGame) && ((_local2 - game.level.bubbleGame.LightBubbleTime) >= 11000)) {
game.level.bubbleGame.game_backround.thunderStorm_mc.removeMovieClip();
game.level.bubbleGame.Arrow._rotation = game.level.bubbleGame.vAngle;
game.level.bubbleGame.Arrow.gotoAndStop("normal");
game.sndCtrl.stopSound("heartbeat");
game.level.bubbleGame.LightBubble = false;
notMove = false;
} else if (game.level.bubbleGame.pauseInGame) {
utils.Delegate.callDelayed(this, SlowArrow, 100);
}
}
function shakeMouse() {
var _local2 = (180 * Math.atan2(_ymouse - ycoord, _xmouse - xcoord)) / Math.PI;
if (((!greater) && (Math.abs(_local2) <= angleTolerance)) || (greater && (Math.abs(_local2) >= (180 - angleTolerance)))) {
br++;
}
if (Math.abs(_local2) <= angleTolerance) {
greater = true;
} else if (Math.abs(_local2) >= (180 - angleTolerance)) {
greater = false;
}
if ((getTimer() - now) > 350) {
now = getTimer();
if (br > timess) {
game.level.bubbleGame.game_backround.freeze_mc.removeMovieClip();
game.sndCtrl.stopSound("earthquake");
game.sndCtrl.playSound("earthquake");
game.level.bubbleGame.Arrow.gotoAndStop("break");
game.sndCtrl.stopSound("ice_break");
game.sndCtrl.playSound("ice_break");
game.level.bubbleGame.IceTime = false;
}
br = 0;
xcoord = _xmouse;
ycoord = _ymouse;
}
}
}
Symbol 1106 MovieClip [__Packages.config.LanguageSettings] Frame 0
class config.LanguageSettings
{
var language;
function LanguageSettings () {
language = new config.Language();
}
function getLangText(objindex) {
return(language.getLangText(objindex));
}
}
Symbol 1107 MovieClip [__Packages.config.Language] Frame 0
class config.Language
{
var mapping;
function Language () {
mapping = new Array();
init();
}
function init() {
mapping.backbtn = "BACK";
mapping.mapScreenTitle = "MAP SCREEN";
mapping.you_time = "You Time";
mapping.remainingTime = "Remaining Time";
mapping.defeatedEnemy = "Defeated Enemy";
mapping.primaryResources = "Primary Resources";
mapping.weaponResources = "Weapon Resources";
mapping.timeBonus = "Time Bonus";
mapping.nextLevel = "Next Level";
mapping.servant = "The Servant brings you 200 extra primary resources after every level.";
mapping.infoservant = "You made your first match of 5 after building the Pella Palace.";
mapping.villager = "The Villager brings you 300 extra primary resources after every level.";
mapping.infovillager = "You gathered more than 30 primary resources in 1 level, after building the village.";
mapping.sawyer = "The Sawyer brings you 400 extra primary resources after every level.";
mapping.infosawyer = "You bursted 5 bubbles in 3 successive tries for the first time after buying a grain field.";
mapping.fisherman = "The Fisherman brings you 500 extra primary resources after every level.";
mapping.infofisherman = "You completed a level in less than 2 minutes, after building the Harbor.";
mapping.merchant = "The Merchant brings you 200 extra luxury resources after every level.";
mapping.infomerchant = "You scored more than 1000 points in less than 3 levels, after building the Market.";
mapping.alchemist = "The Achemist unlocks the Transmutation Bonus Bubble.";
mapping.infoalchemist = "You made 30 bubbles drop in a single level, after building the Alexandria Palace.";
mapping.Scholar = "The Scholar brings you 300 extra primary resources after every level.";
mapping.infoScholar = "You collected more than 1000 luxury resources in 1 level, after building the Pella Palace.";
mapping.TheFleet = "The Fleet brings you 300 extra weapon resources after every level.";
mapping.infoFleet = "You made 12 bubbles drop 2 times, after building the Port.";
mapping.GoldenHallway = "The Golden Hallway\tbrings you 300 extra luxury resources after every level.";
mapping.infoGoldenHallway = "You Scored 5000 points in less than 3 levels, after building the Port.";
mapping.navigator = "The Navigator fills the Time Bonus Bubble Faster.";
mapping.infonavigator = "You successfully used 4 bubbles in a row, after building the Lighthouse.";
mapping.Philosopher = "The Philosopher fills the Double Bonus Bubble faster.";
mapping.infoPhilosopher = "You scred over 5000 points in 3 levels, after building the Academy.";
mapping.hunter = "The Hunter brings you 400 extra luxury resources after every level.";
mapping.infohunter = "You gathered more than 200 luxury resources after, building the Palace Yard.";
mapping.recruiter = "The Recruiter brings you 400 extra weapon resources after every level.";
mapping.inforecruiter = "You made a match of 5 with 4 types of bubbles in 1 level, after building the military barracks.";
mapping.Spa = "The Spa fills the Moral Boost bonus bubble faster.";
mapping.infoSpa = "You gathered more than 2000 primary resources in 3 levels, after building the Marble Stairs.";
mapping.salesman = "The Salesman brings you 400 extra primary resources after every level.";
mapping.infosalesman = "You gathered more than 2000 primary resources in 3 levels, after building the Marble Stairs.";
mapping.sculptor = "The Sculptor brings you 500 extra luxury resources after every level.";
mapping.infosculptor = "You matched 5 diamond bubbles 2 times in a row after you built the Copper Mine.";
mapping.SwordMaster = "The Sword Master brings you 500 extra weapon resources after every level.";
mapping.infoSwordMaster = "You matched 4 bubbles with 2 types of bubbles in 1 level, after building the Steel workshop..";
mapping.Priest = "The Priest makes the Shield Bonus Bubble fill faster.";
mapping.infoPriest = "You gathered more than 1000 units of a resource in 1 level, after building the Sanctuary.";
mapping.golden_sun = "The Golden Sun makes the Moral Bonus Bubble fill faster.";
mapping.infogolden_sun = "You gathered more than 2000 units of a resource in 1 levels, after building the sanctuary.";
mapping.farmer = "The Farmer brings you 500 extra primary resources after every level.";
mapping.infofarmer = "You finished a level in less than 3 minutes, after building the Farm.";
mapping.miner = "The Miner brings you 600 extra luxury resources after every level.";
mapping.infominer = "You matched 4 diamond bubbles 2 times in a row, after building the Diamond Mine.";
mapping.Commander = "The Commander brings you 600 extra weapon resources after every level.";
mapping.infoCommander = "You made 10 matches of 5 in 4 levels, after building the Training Grounds.";
mapping.eunuch = "The Eunuch brings you 600 extra primary resources after every level.";
mapping.infoeunuch = "You scored more than 10000 points in 3 levels, after building the Babylon Palace.";
mapping.treasureCoffin = "The Treasure Coffin brings you 700 extra luxury resources after every level.";
mapping.infotreasureCoffin = "You gathered 2000 primary and luxury resources in 2 levels, after building the Treasure Chamber.";
mapping.skirmisher = "The Skirmisher brings you 700 extra weapon resources after every level.";
mapping.infoskirmisher = "You scored more than 10000 points in 3 levels, after building the Weapon Storage Building.";
mapping.HighPriest = "The High Priest brings you 1100 extra luxury resources after every level.";
mapping.infoHighPriest = "You scored 3500 points in 4 minutes, after building the Altar.";
mapping.Gardener = "The Gardener brings you 1200 extra luxury resources after every level.";
mapping.infoGardener = "You matched 5 bubbles 8 times in 1 level, after building the Herbarium.";
mapping.jeweler = "The Jeweler brings you 1000 extra luxury resources after every level.";
mapping.infojeweler = "You scored 2000 points in 2 minutes, after building the Marble Fences.";
mapping.Baker = "The Baker brings you 1000 extra primary resources after every level.";
mapping.infoBaker = "You made 4 consecutive 4-matches in 1 level after building the Bakery.";
mapping.FortressFlags = "The Fortress Flags make the Shield Bonus Bubble fill faster.";
mapping.infoFortressFlags = "You made 8 matches of 5 bubbles in 2 levels,, after building the Fortress.";
mapping.statueOfNike = "The Statue of Nike - Goddess of Triumph - brings you 900 extra luxury resources after every level.";
mapping.infostatueOfNike = "You scored 6000 points in 1 level, after building the Town Walls.";
mapping.WineMaker = "The Wine Maker brings you 900 extra primary resources after every level.";
mapping.infoWineMaker = "You made 7 bubbles drop with a single shot, after building the Vineyards.";
mapping.PhilipIIStatue = "The Statue of Philip II makes the Double Bonus Bubble fill faster.";
mapping.infoPhilipIIStatue = "You made 9 matches of 4 bubbles in 2 levels, after building the Aqueduct.";
mapping.nightGuards = "The Night Guards bring you 900 extra weapon resources after every level.";
mapping.infonightGuards = "You scored 2000 points in than 2 minutes, after building the War Tents.";
mapping.fortuneTeller = "The Fortune Teller brings you 800 extra luxury resources after every level.";
mapping.infofortuneTeller = "You scored 6000 points in 1 levels, after building the Tower.";
mapping.concubine = "The Concubine brings you 800 extra primary resources after every level.";
mapping.infoconcubine = "You destroyed 8 bubbles with one shot 2 times in a level, after building the Fountain.";
mapping.BucephalosStatue = "The Bucephalos Statue makes the Assault Bonus Bubble fill faster.";
mapping.infoBucephalosStatue = "You made a 4-match 8 times in 2 levels, after building the Golden Gate.";
mapping.general = "The General brings you 800 extra weapon resources after every level.";
mapping.infogeneral = "You scored 3000 points in 3 minutes, after building the Babylon Barracks.";
mapping.blacksmith = "The Blacksmith brings you 700 extra primary resources after every level.";
mapping.infoblacksmith = "You made 8 bubbles drop , building the babylon Workshops.";
mapping.SculptureOfAlexander = "The Sculpture of Alexander fills the Moral Boost Bubble faster.";
mapping.infoSculptureOfAlexander = "You made a 5-match 10 times in 2 levels, after buying the Ornamnents.";
mapping.Painter = "The Painter makes the Morph Bonus Bubble fill faster.";
mapping.infoPainter = "You made a 5-match 5 times in 2 levels, after building the Marble Stairs.";
mapping.anotherStatueofAlexander = "This Statue of Alexander brings you 2000 extra luxury resources after every level";
mapping.infoanotherStatueofAlexander = "You completed a level in less than 3 minutes, after building the Royal Hanging Garden.";
mapping.Oracle = "The Oracle brings you 1100 extra weapon resources after every level.";
mapping.infoOracle = "You completed a level in less than 3 minutes, after building the Observatory.";
mapping.EliteHorsemen = "The Elite Horsemen bring you 1000 extra weapon resources, after every level.";
mapping.infoEliteHorsemen = "You completed a level in less than 3 minutes, after building the Royal Staple.";
mapping.poet = "The Poet brings you 800 extra luxury resources after every level.";
mapping.infopoet = "You scored 5000 points in 1 level, after building the Amphitheatre.";
mapping.bubbleNum14 = "Wood gives you 3 units of primary resources";
mapping.bubbleNum15 = "Iron gives you 4 units of primary resources";
mapping.bubbleNum16 = "Fish gives you 5 units of primary resources";
mapping.bubbleNum17 = "Meat gives you 6 units of primary resources";
mapping.bubbleNum18 = "Stone gives you 7 units of primary resources";
mapping.bubbleNum19 = "Cotton gives you 8 units of primary resources";
mapping.bubbleNum20 = "Vegetables give you 9 units of primary resources";
mapping.bubbleNum21 = "Fruit gives you 10 units of primary resource";
mapping.bubbleNum22 = "Eggs give you 11 units of primary resources";
mapping.bubbleNum23 = "Wine gives you 12 units of primary resources";
mapping.bubbleNum24 = "Bread gives you 13 units of primary resources";
mapping.bubbleNum25 = "Silver Coins give you 3 units of luxury resources";
mapping.bubbleNum26 = "Gold Coins give you 4 units of luxury resources";
mapping.bubbleNum27 = "Marble gives you 5 units of luxury resources.";
mapping.bubbleNum28 = "Pearls give you 6 units of luxury resources.";
mapping.bubbleNum29 = "Fur gives you 7 units of luxury resources";
mapping.bubbleNum30 = "Diamonds give you 9 units of luxury resources.";
mapping.bubbleNum31 = "Sapphires give you 10 units of luxury resources.";
mapping.bubbleNum32 = "Chalice gives you 11 units of luxury resources.";
mapping.bubbleNum33 = "Golden Masks give you 12 units of luxury resources";
mapping.bubbleNum34 = "Rings give you 13 units of luxury resources.";
mapping.bubbleNum35 = "Emeralds give you 14 units of luxury resources";
mapping.bubbleNum36 = "Golden Elephant scalp gives you 15 units of luxury resources";
mapping.bubbleNum37 = "The Crown gives you 16 units of luxury resources";
mapping.bubbleNum38 = "The Crystal Ball gives you 17 units of luxury resources.";
mapping.bubbleNum39 = "Swords give you 3 weapon resources";
mapping.bubbleNum40 = "Spears give you 4 weapon resources";
mapping.bubbleNum41 = "Helmets give you 5 weapon resources";
mapping.bubbleNum42 = "Maces give you 6 weapon resources";
mapping.bubbleNum43 = "Horses give you 7 weapon resources";
mapping.bubbleNum44 = "Phalanx give you 8 weapon resources";
mapping.bubbleNum45 = "Armor gives you 9 weapon resources";
mapping.bubbleNum46 = "Javelin Men give you 10 weapon resources";
mapping.bubbleNum47 = "Daggers give you 11 weapon resources";
mapping.bubbleNum48 = "Chariots give you 12 weapon resources";
mapping.bubbleNum49 = "Catapults give you 13 weapon resources";
mapping.bubbleNum50 = "Sufficient primary resources are required to build the components of your palace.";
mapping.bubbleNum51 = "To progress to the next stage, you need to finish building the previous palace.";
mapping.bubbleNum52 = "Gather as much resources as you can to build your palace faster, but do it in the given time. ";
mapping.bubbleNum53 = "As you gain more weapon resources, you gain more time to win each battle.";
mapping.bubbleNum54 = "Copper gives you 8 units of luxury resources";
mapping.bubbleNum55 = "Match at least 3 bubbles of the same kind and gather resources to build your palaces.";
mapping.bubbleNum56 = "Gather more luxury resources to build even the most enchanting parts of your palace.";
mapping.bubbleNum57 = "Cestitki dobivte Meat!!!!";
mapping.bubbleNum58 = "Cestitki dobivte Stone!!!!";
mapping.bubbleNum59 = "Cestitki dobivte Cotton!!!!";
mapping.bubbleNum60 = "Cestitki dobivte Vegetables!!!!";
mapping.LAJTENINGBUBBLE = "The Lightning makes your catapult heavy. Avoid These.";
mapping.HeatGBUBBLE = "You'll have a short time to aim if you get hit by the heat wave.";
mapping.MirrorGBUBBLE = "The OPPOSITION of the local people has never been more real";
mapping.RoughGBUBBLE = "If you hit these the ropes will get twisted. So will your path.";
mapping.AcceleratingBUBBLE = "Extra help from the locals is always welcome.";
mapping.IceBUBBLE = "Shake the ice off if you get frozen by the icy mountain.";
mapping.SpikeBUBBLE = ": The Phalanx is ready to help you and is waiting for your command.";
mapping.StarBUBBLE = "Aim for these star bubbles to destroy all the bubbles of the same type.";
mapping.DoubleBubble = "Use this bonus and shoot two bubbles in opposite directions.";
mapping.MoralBUBBLE = "Destroy an entire horizontal line with the assault bubble";
mapping.TransformersBUBBLE = "Change anything you like to gold with this transmutation bubble.";
mapping.MorphBUBBLE = "The morph bubble adapts to the surrounding bubbles.";
mapping.TimeBUBBLE = "Gain extra time to finish the level.";
mapping.ShieldBUBBLE = "Use this shield and destroy the bubbles it touches.";
mapping.SpyBUBBLE = "The spy enters behind the enemy lines and converts the surrounding bubbles to a particular type.";
mapping.AssaultBUBBLE = "Hit a bubble with this bonus bubble and the moral of your troops will go up instantly.";
}
function getLangText(objindex) {
trace("getLangText" + objindex);
return(mapping[objindex]);
}
}
Symbol 1108 MovieClip [__Packages.ctrl.DepthOption] Frame 0
class ctrl.DepthOption
{
var game, fisherman, merchant, servant, villager, sawyer, AGraintField, ASmallVillage, ThePalaceAtThebes, theNewPalaceWing, TheHarbor, Macedonian_Flags_Pela, TheMarket, Lighthouse, CopperMine, ThePort, TheFleet, theNewAlexandriaPalace, MacedoniaFlags, theLibrary, fences_golden_hallway, MarblePalaceStairs, Academy, DiamondMine, PalaceYard, golden_sun, TownCentreMarket, salesman, miner, navigator, Philosopher, Priest, Royal_Guard, Sanctuary, Scholar, Spa, militaryBarracks, sculptor, SteelWorkshop, farmer, recruiter, TrainingGrounds, Farm, SwordMaster, Commander, alchemist, GoldenHallway, hunter, Altar, SculptureOfAlexander, amphitheatre, Aqueduct, PalaceInBabylon, Tower, Baker, Bakery, anotherStatueofAlexander, blacksmith, Bridge, BucephalosStatue, concubine, eunuch, FortressFlags, fortuneTeller, Fountain, Gardener, general, GoldenGate, RoyalHangingGarden, Herbarium, HighPriest, EliteHorsemen, jeweler, MarbleFances, nightGuards, statueOfNike, Observatory, Oracle, Ornaments, Painter, PhilipIIStatue, poet, RoyalStaple, TheRoyalThrone, skirmisher, BabylonSpa, treasureChamber, treasureCoffin, Fortress, BabylonBarracks, WarTents, WeaponStorageBuilding, WineMaker, Vineyards, BabylonWorkshops, depth_;
function DepthOption (game_) {
game = game_;
fisherman = 14;
merchant = 18;
servant = 24;
villager = 22;
sawyer = 20;
AGraintField = 28;
ASmallVillage = 12;
ThePalaceAtThebes = 10;
theNewPalaceWing = 26;
TheHarbor = 32;
Macedonian_Flags_Pela = 30;
TheMarket = 16;
Lighthouse = 10;
CopperMine = 12;
ThePort = 14;
TheFleet = 16;
theNewAlexandriaPalace = 18;
MacedoniaFlags = 20;
theLibrary = 22;
fences_golden_hallway = 24;
MarblePalaceStairs = 26;
Academy = 28;
DiamondMine = 30;
PalaceYard = 32;
golden_sun = 34;
TownCentreMarket = 36;
salesman = 38;
miner = 40;
navigator = 42;
Philosopher = 44;
Priest = 46;
Royal_Guard = 48;
Sanctuary = 50;
Scholar = 52;
Spa = 54;
militaryBarracks = 56;
sculptor = 58;
SteelWorkshop = 60;
farmer = 64;
recruiter = 66;
TrainingGrounds = 68;
Farm = 62;
SwordMaster = 70;
Commander = 72;
alchemist = 76;
GoldenHallway = 74;
hunter = 78;
Altar = 62;
SculptureOfAlexander = 94;
amphitheatre = 46;
Aqueduct = 10;
PalaceInBabylon = 34;
Tower = 22;
Baker = 28;
Bakery = 12;
anotherStatueofAlexander = 30;
blacksmith = 44;
Bridge = 98;
BucephalosStatue = 99;
concubine = 54;
eunuch = 56;
FortressFlags = 97;
fortuneTeller = 88;
Fountain = 40;
Gardener = 86;
general = 58;
GoldenGate = 96;
RoyalHangingGarden = 18;
Herbarium = 16;
HighPriest = 66;
EliteHorsemen = 68;
jeweler = 70;
MarbleFances = 38;
nightGuards = 72;
statueOfNike = 74;
Observatory = 26;
Oracle = 76;
Ornaments = 36;
Painter = 78;
PhilipIIStatue = 84;
poet = 50;
RoyalStaple = 20;
TheRoyalThrone = 60;
skirmisher = 80;
BabylonSpa = 52;
treasureChamber = 48;
treasureCoffin = 90;
Fortress = 92;
BabylonBarracks = 24;
WarTents = 64;
WeaponStorageBuilding = 42;
WineMaker = 82;
Vineyards = 14;
BabylonWorkshops = 32;
}
function getDepth(name_) {
trace("DepthController getDepth " + name_);
switch (name_) {
case "fisherman" :
depth_ = fisherman;
break;
case "merchant" :
depth_ = merchant;
break;
case "servant" :
depth_ = servant;
break;
case "villager" :
depth_ = villager;
break;
case "sawyer" :
depth_ = sawyer;
break;
case "AGraintField" :
depth_ = AGraintField;
break;
case "ASmallVillage" :
depth_ = ASmallVillage;
break;
case "ThePalaceAtThebes" :
depth_ = ThePalaceAtThebes;
break;
case "theNewPalaceWing" :
depth_ = theNewPalaceWing;
break;
case "TheHarbor" :
depth_ = TheHarbor;
break;
case "Macedonian_Flags_Pela" :
depth_ = Macedonian_Flags_Pela;
break;
case "TheMarket" :
depth_ = TheMarket;
break;
case "Academy" :
depth_ = Academy;
break;
case "alchemist" :
depth_ = alchemist;
break;
case "theNewAlexandriaPalace" :
depth_ = theNewAlexandriaPalace;
break;
case "militaryBarracks" :
depth_ = militaryBarracks;
break;
case "Commander" :
depth_ = Commander;
break;
case "CopperMine" :
depth_ = CopperMine;
break;
case "MarblePalaceStairs" :
depth_ = MarblePalaceStairs;
break;
case "Farm" :
depth_ = Farm;
break;
case "farmer" :
depth_ = farmer;
break;
case "MacedoniaFlags" :
depth_ = MacedoniaFlags;
break;
case "TheFleet" :
depth_ = TheFleet;
break;
case "GoldenHallway" :
depth_ = GoldenHallway;
break;
case "golden_sun" :
depth_ = golden_sun;
break;
case "ThePort" :
depth_ = ThePort;
break;
case "hunter" :
depth_ = hunter;
break;
case "theLibrary" :
depth_ = theLibrary;
break;
case "Lighthouse" :
depth_ = Lighthouse;
break;
case "TownCentreMarket" :
depth_ = TownCentreMarket;
break;
case "salesman" :
depth_ = salesman;
break;
case "miner" :
depth_ = miner;
break;
case "navigator" :
depth_ = navigator;
break;
case "PalaceYard" :
depth_ = PalaceYard;
break;
case "Philosopher" :
depth_ = Philosopher;
break;
case "Priest" :
depth_ = Priest;
break;
case "recruiter" :
depth_ = recruiter;
break;
case "Royal-Guard" :
depth_ = Royal_Guard;
break;
case "Sanctuary" :
depth_ = Sanctuary;
break;
case "Scholar" :
depth_ = Scholar;
break;
case "sculptor" :
depth_ = sculptor;
break;
case "Spa" :
depth_ = Spa;
break;
case "SteelWorkshop" :
depth_ = SteelWorkshop;
break;
case "SwordMaster" :
depth_ = SwordMaster;
break;
case "TrainingGrounds" :
depth_ = TrainingGrounds;
break;
case "fences-&-golden-hallway" :
depth_ = fences_golden_hallway;
break;
case "Altar" :
depth_ = Altar;
break;
case "SculptureOfAlexander" :
depth_ = SculptureOfAlexander;
break;
case "amphitheatre" :
depth_ = amphitheatre;
break;
case "Aqueduct" :
depth_ = Aqueduct;
break;
case "PalaceInBabylon" :
depth_ = PalaceInBabylon;
break;
case "Tower" :
depth_ = Tower;
break;
case "Baker" :
depth_ = Baker;
break;
case "Bakery" :
depth_ = Bakery;
break;
case "anotherStatueofAlexander" :
depth_ = anotherStatueofAlexander;
break;
case "blacksmith" :
depth_ = blacksmith;
break;
case "Bridge" :
depth_ = Bridge;
break;
case "BucephalosStatue" :
depth_ = BucephalosStatue;
break;
case "concubine" :
depth_ = concubine;
break;
case "eunuch" :
depth_ = eunuch;
break;
case "FortressFlags" :
depth_ = FortressFlags;
break;
case "fortuneTeller" :
depth_ = fortuneTeller;
break;
case "Fountain" :
depth_ = Fountain;
break;
case "Gardener" :
depth_ = Gardener;
break;
case "general" :
depth_ = general;
break;
case "GoldenGate" :
depth_ = GoldenGate;
break;
case "RoyalHangingGarden" :
depth_ = RoyalHangingGarden;
break;
case "Herbarium" :
depth_ = Herbarium;
break;
case "HighPriest" :
depth_ = HighPriest;
break;
case "EliteHorsemen" :
depth_ = EliteHorsemen;
break;
case "jeweler" :
depth_ = jeweler;
break;
case "MarbleFances" :
depth_ = MarbleFances;
break;
case "nightGuards" :
depth_ = nightGuards;
break;
case "statueOfNike" :
depth_ = statueOfNike;
break;
case "Observatory" :
depth_ = Observatory;
break;
case "Oracle" :
depth_ = Oracle;
break;
case "Ornaments" :
depth_ = Ornaments;
break;
case "Painter" :
depth_ = Painter;
break;
case "PhilipIIStatue" :
depth_ = PhilipIIStatue;
break;
case "poet" :
depth_ = poet;
break;
case "RoyalStaple" :
depth_ = RoyalStaple;
break;
case "TheRoyalThrone" :
depth_ = TheRoyalThrone;
break;
case "skirmisher" :
depth_ = skirmisher;
break;
case "BabylonSpa" :
depth_ = BabylonSpa;
break;
case "treasureChamber" :
depth_ = treasureChamber;
break;
case "treasureCoffin" :
depth_ = treasureCoffin;
break;
case "Fortress" :
depth_ = Fortress;
break;
case "BabylonBarracks" :
depth_ = BabylonBarracks;
break;
case "WarTents" :
depth_ = WarTents;
break;
case "WeaponStorageBuilding" :
depth_ = WeaponStorageBuilding;
break;
case "WineMaker" :
depth_ = WineMaker;
break;
case "Vineyards" :
depth_ = Vineyards;
break;
case "BabylonWorkshops" :
depth_ = BabylonWorkshops;
}
return(depth_);
}
}
Symbol 1109 MovieClip [__Packages.utils.StringUtils] Frame 0
class utils.StringUtils
{
function StringUtils () {
}
static function getUniqueName() {
var _local3 = "";
var _local2 = 1;
while (_local2 <= 4) {
var _local1 = 1;
while (_local1 <= 4) {
_local3 = _local3 + getRandomChar();
_local1++;
}
if (_local2 < 4) {
_local3 = _local3 + "-";
}
_local2++;
}
return(_local3);
}
static function getRandomChar() {
switch (Math.round(Math.random() + 1)) {
case 1 :
return(String.fromCharCode(Math.round(Math.random() * 25) + 65));
case 2 :
return(String.fromCharCode(Math.round(Math.random() * 25) + 97));
}
}
static function scrambleArray(arr) {
var _local2 = [];
while (arr.length > 0) {
_local2.push(arr.splice(Math.round(Math.random() * (arr.length - 1)), 1));
}
return(_local2);
}
static function getTimeString(t) {
var _local1 = Math.round(t / 1000);
var _local2 = Math.floor(_local1 / 60);
var _local3 = Math.floor(_local2 / 60);
_local1 = _local1 % 60;
_local2 = _local2 % 60;
var _local4 = ((_local1 < 10) ? ("0" + _local1) : (_local1));
var _local5 = _local2 + ":";
var _local6 = ((_local3 > 0) ? (_local3 + ":") : "");
var _local7 = (_local6 + _local5) + _local4;
return(_local7);
}
static function getHighScoreTimeString(t) {
var _local2 = Math.round(t / 1000);
var _local1 = Math.floor(_local2 / 60);
var _local3 = Math.floor(_local1 / 60);
_local2 = _local2 % 60;
_local1 = _local1 % 60;
var _local6 = ((_local2 < 10) ? ("0" + _local2) : (_local2.toString()));
var _local4 = "00";
if (_local1 > 0) {
_local4 = ((_local1 < 10) ? ("0" + _local1) : (_local1.toString()));
}
var _local5 = "";
if (_local3 > 0) {
_local5 = ((_local3 < 10) ? ("0" + _local3) : (_local3.toString()));
}
var _local7 = (_local5 + _local4) + _local6;
return(_local7);
}
}
Symbol 1110 MovieClip [__Packages.utils.SoundImpl] Frame 0
class utils.SoundImpl
{
var sound, isLoop, playing, sPaused, linkId, initialVolume, duration, position, fxVolume, musicVolume;
function SoundImpl (mc) {
if (mc instanceof MovieClip) {
sound = new Sound(mc);
} else {
sound = new Sound();
}
isLoop = false;
playing = false;
sPaused = false;
}
function attachSoundImpl(linkId, initVol) {
if (arguments.length > 0) {
this.linkId = linkId;
initialVolume = 100;
sound.attachSound(linkId);
if (initVol != undefined) {
initialVolume = initVol;
sound.setVolume(initialVolume);
}
duration = sound.duration;
position = sound.position;
}
}
function setVolumeImpl(vol) {
sound.setVolume((initialVolume * vol) / 100);
}
function getVolumeImpl() {
return(sound.getVolume());
}
function startImpl(secondoffset, loop) {
if (!playing) {
playing = true;
isLoop = false;
switch (arguments.length) {
case 0 :
sound.setVolume((initialVolume * fxVolume) / 100);
sound.start();
sound.setVolume((initialVolume * fxVolume) / 100);
break;
case 1 :
sound.setVolume((initialVolume * fxVolume) / 100);
sound.start(secondoffset);
sound.setVolume((initialVolume * fxVolume) / 100);
break;
case 2 :
if (linkId != "katapult_under_spell") {
sound.setVolume((initialVolume * musicVolume) / 100);
sound.start(secondoffset, loop);
sound.setVolume((initialVolume * musicVolume) / 100);
isLoop = true;
} else {
sound.setVolume((initialVolume * fxVolume) / 100);
sound.start(secondoffset, loop);
sound.setVolume((initialVolume * fxVolume) / 100);
var _local5 = sound.getVolume();
isLoop = true;
break;
}
break;
default :
sound.setVolume((initialVolume * fxVolume) / 100);
sound.start();
sound.setVolume((initialVolume * fxVolume) / 100);
}
}
}
function stopImpl() {
playing = false;
sound.stop(linkId);
position = 0;
}
function pauseImpl() {
if (playing == true) {
sound.stop(linkId);
playing = false;
sPaused = true;
position = sound.position;
}
}
function resumeImpl() {
if (_global._resumed == true) {
fxVolume = _global.sound;
musicVolume = _global.music;
_global._resumed = false;
}
if (sPaused == true) {
sPaused = false;
if (!isLoop) {
startImpl(position / 1000);
} else {
startImpl(position / 1000);
isLoop = true;
var _local3 = this;
_local3.sound.holder = this;
sound.onSoundComplete = function () {
this.holder.stopImpl();
this.holder.startImpl(0, 32000);
};
}
}
}
}
Symbol 1111 MovieClip [__Packages.ss.Level] Frame 0
class ss.Level
{
var game, levelAssets, bubbleGame, curentlevelAsset, timer;
function Level (Game) {
game = Game;
init();
}
function init() {
switch (game.levelID) {
case 1 :
levelAssets = new levelsAssets.level1Assets(this);
break;
case 2 :
levelAssets = new levelsAssets.level2Assets(this);
var _local2 = 0;
while (_local2 < game.unlockedItems.length) {
if (game.unlockedItems[_local2].itemsName == "ASmallVillage") {
game.unlockedItems[_local2].lockFlag = true;
break;
}
_local2++;
}
break;
case 3 :
levelAssets = new levelsAssets.level3Assets(this);
_local2 = 0;
while (_local2 < game.unlockedItems.length) {
if (game.unlockedItems[_local2].itemsName == "AGraintField") {
game.unlockedItems[_local2].lockFlag = true;
break;
}
_local2++;
}
break;
case 4 :
levelAssets = new levelsAssets.level4Assets(this);
_local2 = 0;
while (_local2 < game.unlockedItems.length) {
if (game.unlockedItems[_local2].itemsName == "TheHarbor") {
game.unlockedItems[_local2].lockFlag = true;
break;
}
_local2++;
}
break;
case 5 :
levelAssets = new levelsAssets.level5Assets(this);
_local2 = 0;
while (_local2 < game.unlockedItems.length) {
if (game.unlockedItems[_local2].itemsName == "TheMarket") {
game.unlockedItems[_local2].lockFlag = true;
break;
}
_local2++;
}
break;
case 6 :
levelAssets = new levelsAssets.level6Assets(this);
_local2 = 0;
for(;;){
if (_local2 >= game.unlockedItems.length) {
break;
}
if (game.unlockedItems[_local2].itemsName == "theNewPalaceWing") {
game.unlockedItems[_local2].lockFlag = true;
break;
}
_local2++;
};
}
bubbleGame = new ss.BubbleGame(this);
curentlevelAsset = new ss.LevelState(this);
timer = new utils.Timer(game);
timer.addEventListener("onTimerTick", this);
timer.start();
}
function onTimerTick() {
if (!bubbleGame.pauseInGame) {
bubbleGame._MainCore();
}
if (game.catapultSpell == true) {
game.sndCtrl.fadeOutCatapultSound();
}
if (game.fading == true) {
if (game.fadingOutSound == true) {
game.sndCtrl.fadeOutSounds();
}
if (game.fadingInSound == true) {
game.sndCtrl.fadeInSounds();
}
if (game.fadeOutFinish == true) {
var _local2 = getTimer();
if ((_local2 - game.fadeOutFinishTime) >= 9000) {
game.sndCtrl.stopSound("heartbeat");
game.fadingInSound = true;
game.fadeOutFinish = false;
}
}
}
if (game.displayBonus == true) {
game.interface_.SummaryScreen.displayBonus();
}
}
function onClockTick() {
}
function checkBonus() {
}
function addToLevelState() {
}
}
Symbol 1112 MovieClip [__Packages.levelsAssets.level1Assets] Frame 0
class levelsAssets.level1Assets extends MovieClip
{
var level, game, pointsFlag, timeForPlay, interfaceName, backgroundName, buyScreenBackground, buyScreenInterfejs, OriginalBubbleInMatrix, BubbleInMatrix, tempMatrix, resorses, startMartix, clip;
function level1Assets (level_) {
super();
level = level_;
game = level.game;
pointsFlag = true;
trace("init<<Level<<level1Assets");
init();
}
function init() {
timeForPlay = 600000 + (game.weaponResources * 100);
interfaceName = "dorski_IF_mc";
backgroundName = "Thebe";
buyScreenBackground = "Pella";
buyScreenInterfejs = "buyScreen_dorski";
OriginalBubbleInMatrix = [1, 2, 3, 50, 51, 52];
BubbleInMatrix = [1, 2, 3, 50, 51, 52, 62];
tempMatrix = [];
resorses = "wea";
startMartix = new Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 4, 3, 4, 3, 4, 1, 2, 1, 1, 1, 1, 4, 3, 4, 1, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
chekUnlockedBubbles();
var _local2;
var _local3;
_local2 = 2;
while (_local2 <= 8) {
_local3 = 1;
while (17 >= _local3) {
var _local4 = random(2);
if (_local4 > 0) {
if ((_local2 % 2) == 0) {
if ((startMartix[_local2 - 1][_local3 + 1] != 0) || (startMartix[_local2 - 1][_local3] != 0)) {
var _local5 = random(BubbleInMatrix.length);
startMartix[_local2][_local3] = BubbleInMatrix[_local5];
trace((("topce " + ((_local2 * 19) + _local3)) + "ke ima boja ") + startMartix[_local2][_local3]);
}
}
if ((_local2 % 2) == 1) {
if ((startMartix[_local2 - 1][_local3 - 1] != 0) || (startMartix[_local2 - 1][_local3] != 0)) {
var _local5 = random(BubbleInMatrix.length);
startMartix[_local2][_local3] = BubbleInMatrix[_local5];
trace((("neparno topce " + ((_local2 * 19) + _local3)) + "ke ima boja ") + startMartix[_local2][_local3]);
}
}
} else {
startMartix[_local2][_local3] = 0;
}
_local3++;
}
_local2++;
}
}
function makeStartMatrix() {
var _local3;
var _local2;
_local3 = 1;
while (_local3 <= 8) {
_local2 = 1;
while (17 >= _local2) {
if ((startMartix[_local3][_local2] != 0) && (startMartix[_local3][_local2] < 60)) {
var _local5;
var _local4 = random(BubbleInMatrix.length);
startMartix[_local3][_local2] = BubbleInMatrix[_local4];
}
_local2++;
}
_local3++;
}
return(startMartix);
}
function chekUnlockedBubbles() {
var _local3;
var _local2;
var _local4;
_local3 = 0;
while (_local3 < (BubbleInMatrix.length - 1)) {
_local2 = 0;
while (_local2 < game.unlockedBubbles.length) {
if (game.unlockedBubbles[_local2] == BubbleInMatrix[_local3]) {
tempMatrix.push(BubbleInMatrix[_local3]);
}
_local2++;
}
_local3++;
}
BubbleInMatrix = [];
BubbleInMatrix = tempMatrix;
}
function passLevel() {
}
function chekForBonus(bangScore_, dropScore_, step) {
}
function addEvents() {
clip.all.ok_btn.holder = this;
clip.all.ok_btn.onRelease = function () {
trace("pritisna:::" + this.holder.game.level.bubbleGame.popHintsclip);
if (!this.holder.game.level.bubbleGame.popHintsclip) {
this.holder.game.level.bubbleGame.pauseInGame = false;
var _local2 = getTimer();
this.holder.game.level.bubbleGame.oldRowTime = this.holder.game.level.bubbleGame.oldRowTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.startTime = this.holder.game.level.bubbleGame.startTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.OldTime = this.holder.game.level.bubbleGame.OldTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.GameTime = this.holder.game.level.bubbleGame.GameTime + (_local2 - this.holder.game.keyboard.pauseTime);
}
this.holder.game.startCheckingFocus();
this.holder.clip.removeMovieClip();
};
}
function showHint() {
trace("showHint()");
game.level.bubbleGame.pauseInGame = true;
game.keyboard.pauseTime = getTimer();
clip = game.game_backround.attachMovie("popHints_reverse", "popHints_reverse", 3008, {_x:138.4, _y:86.8});
clip.all.intro.text = game.Language.getLangText("bubbleNum55");
addEvents();
return(true);
}
}
Symbol 1113 MovieClip [__Packages.levelsAssets.level2Assets] Frame 0
class levelsAssets.level2Assets extends MovieClip
{
var level, game, timeForPlay, interfaceName, backgroundName, buyScreenBackground, buyScreenInterfejs, OriginalBubbleInMatrix, BubbleInMatrix, tempMatrix, resorses, startMartix, clip;
function level2Assets (level_) {
super();
level = level_;
game = level.game;
init();
}
function init() {
timeForPlay = 600000 + (game.weaponResources * 100);
interfaceName = "grcki_IF_mc";
backgroundName = "Granicus";
buyScreenBackground = "Pella";
buyScreenInterfejs = "buyScreen_grcija";
OriginalBubbleInMatrix = [1, 2, 3, 14, 50, 51, 52];
BubbleInMatrix = [1, 2, 3, 14, 50, 51, 52, 67];
tempMatrix = [];
resorses = "wea";
startMartix = new Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 4, 3, 4, 3, 4, 1, 2, 1, 1, 2, 1, 67, 1, 4, 1, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
chekUnlockedBubbles();
var _local2;
var _local3;
_local2 = 1;
while (_local2 <= 8) {
_local3 = 1;
while (17 >= _local3) {
var _local4 = random(2);
if (_local4 > 0) {
if (((_local2 % 2) == 0) && (startMartix[_local2][_local3] < 60)) {
if ((startMartix[_local2 - 1][_local3 + 1] != 0) || (startMartix[_local2 - 1][_local3] != 0)) {
var _local5 = random(BubbleInMatrix.length);
startMartix[_local2][_local3] = BubbleInMatrix[_local5];
}
}
if ((_local2 % 2) == 1) {
if ((startMartix[_local2 - 1][_local3 - 1] != 0) || (startMartix[_local2 - 1][_local3] != 0)) {
var _local5 = random(BubbleInMatrix.length);
startMartix[_local2][_local3] = BubbleInMatrix[_local5];
}
}
} else {
startMartix[_local2][_local3] = 0;
}
_local3++;
}
_local2++;
}
startMartix[1][13] = 67;
}
function makeStartMatrix() {
var _local3;
var _local2;
_local3 = 1;
while (_local3 <= 8) {
_local2 = 1;
while (17 >= _local2) {
if ((startMartix[_local3][_local2] != 0) && (startMartix[_local3][_local2] < 60)) {
var _local5;
var _local4 = random(BubbleInMatrix.length);
startMartix[_local3][_local2] = BubbleInMatrix[_local4];
}
_local2++;
}
_local3++;
}
return(startMartix);
}
function chekUnlockedBubbles() {
var _local3;
var _local2;
var _local4;
_local3 = 0;
while (_local3 < BubbleInMatrix.length) {
_local2 = 0;
while (_local2 < game.unlockedBubbles.length) {
if (game.unlockedBubbles[_local2] == BubbleInMatrix[_local3]) {
tempMatrix.push(BubbleInMatrix[_local3]);
}
_local2++;
}
_local3++;
}
BubbleInMatrix = [];
BubbleInMatrix = tempMatrix;
}
function passLevel() {
}
function showHint() {
game.level.bubbleGame.pauseInGame = true;
game.keyboard.pauseTime = getTimer();
clip = game.game_backround.attachMovie("popHints_reverse", "popHints", 3008, {_x:138.4, _y:80});
clip.all.intro.text = game.Language.getLangText("AcceleratingBUBBLE");
addEvents();
return(true);
}
function addEvents() {
clip.all.ok_btn.holder = this;
clip.all.ok_btn.onRelease = function () {
if (!this.holder.game.level.bubbleGame.popHintsclip) {
this.holder.game.level.bubbleGame.pauseInGame = false;
var _local2 = getTimer();
this.holder.game.level.bubbleGame.oldRowTime = this.holder.game.level.bubbleGame.oldRowTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.startTime = this.holder.game.level.bubbleGame.startTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.OldTime = this.holder.game.level.bubbleGame.OldTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.GameTime = this.holder.game.level.bubbleGame.GameTime + (_local2 - this.holder.game.keyboard.pauseTime);
}
this.holder.game.startCheckingFocus();
this.holder.clip.removeMovieClip();
};
}
function chekForBonus(bangScore_, dropScore_, step) {
if (bangScore_[step] >= 5) {
var _local2 = 0;
while (_local2 < game.boughtItems.length) {
if (game.boughtItems[_local2].itemsName == "ThePalaceAtThebes") {
var _local4;
_local4 = new ss.Items(game, "servant", 400, 0, 0, 464.1, 254.2, 0, 100);
if ((game.bonusItems[game.bonusItems.length - 1].itemsName != "servant") && (game.bonusItems[game.bonusItems.length - 2].itemsName != "servant")) {
var _local3 = new screens.BonusPopUp(game, game.game_backround, "servant");
game.bonusPopUp.push(_local3);
game.bonusItems.push(_local4);
}
}
_local2++;
}
}
}
}
Symbol 1114 MovieClip [__Packages.screens.BonusPopUp] Frame 0
class screens.BonusPopUp
{
var game, scrin, item, showMovie, fleg, clip;
function BonusPopUp (game_, _scrin, item_) {
trace("BonusPopUp ");
trace("item_ " + item_);
game = game_;
scrin = _scrin;
item = item_;
showMovie = true;
init();
}
function init() {
var _local2 = 0;
while (_local2 < game.bonusItems.length) {
if (game.bonusItems[_local2].itemsName == item) {
trace("Veke ima vakov objekt");
game.bonusPopUp = [];
showMovie = false;
_local2++;
break;
}
_local2++;
}
if (game.bonusPopUp.length == 0) {
fleg = true;
}
if ((fleg == true) && (showMovie)) {
game.level.bubbleGame.pauseInGame = true;
game.sndCtrl.stopSound("popUp_sound");
game.sndCtrl.playSound("popUp_sound");
game.keyboard.pauseTime = getTimer();
clip = scrin.attachMovie("bonusScreen", "bonusScreen", 3003, {_x:-49, _y:-50});
clip.all.deskription.text = game.Language.getLangText(item);
clip.all.info.text = game.Language.getLangText("info" + item);
if (((((item != "FortressFlags") && (item != "treasureChamber")) && (item != "Spa")) && (item != "TheFleet")) && (item != "GoldenHallway")) {
clip.all.pick.attachMovie(item, "pic", 1);
setProperti();
trace("!!!item " + item);
} else if (item == "GoldenHallway") {
clip.all.pick.attachMovie("GoldenHallway2", "pic", 1);
} else if (item == "TheFleet") {
clip.all.pick.attachMovie("TheFleet2", "pic", 1);
} else if (item == "Spa") {
clip.all.pick.attachMovie("Spa2", "pic", 1);
} else if (item == "FortressFlags") {
clip.all.pick.attachMovie("FortressFlags2", "pic", 1);
} else if (item == "treasureChamber") {
clip.all.pick.attachMovie("treasureChamber2", "pic", 1);
}
addEvents();
}
}
function addEvents() {
clip.all.ok_btn.holder = this;
clip.all.ok_btn.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
clip.all.ok_btn.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
clip.all.ok_btn.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
clip.all.ok_btn.onRelease = function () {
trace("pritisna");
this.holder.game.cursor.clip.gotoAndStop("arrow");
this.holder.game.level.bubbleGame.pauseInGame = false;
var _local2 = getTimer();
var _local3 = this.holder.game.keyboard.pauseTime;
this.holder.game.level.bubbleGame.oldRowTime = this.holder.game.level.bubbleGame.oldRowTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.startTime = this.holder.game.level.bubbleGame.startTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.OldTime = this.holder.game.level.bubbleGame.OldTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.GameTime = this.holder.game.level.bubbleGame.GameTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.LightBubbleTime = this.holder.game.level.bubbleGame.LightBubbleTime + (_local2 - _local3);
this.holder.game.level.bubbleGame.IceBubbleTime = this.holder.game.level.bubbleGame.IceBubbleTime + (_local2 - _local3);
this.holder.game.level.bubbleGame.MirrorBubbleTime = this.holder.game.level.bubbleGame.MirrorBubbleTime + (_local2 - _local3);
this.holder.game.level.bubbleGame.HeatBubbleTime = this.holder.game.level.bubbleGame.HeatBubbleTime + (_local2 - _local3);
this.holder.game.level.bubbleGame.SpikeBubbleTime = this.holder.game.level.bubbleGame.SpikeBubbleTime + (_local2 - _local3);
this.holder.game.level.bubbleGame.RoughBubbleTime = this.holder.game.level.bubbleGame.RoughBubbleTime + (_local2 - _local3);
this.holder.game.level.bubbleGame.AccelerationBubbleTime = this.holder.game.level.bubbleGame.AccelerationBubbleTime + (_local2 - _local3);
this.holder.game.bonusPopUp.pop();
this.holder.game.bonusPopUp[this.holder.game.bonusPopUp.length - 1].fleg = true;
this.holder.game.startCheckingFocus();
this.holder.clip.removeMovieClip();
};
}
function setProperti() {
trace("setProperti");
var _local7 = 50;
var _local5 = 90;
trace("this.clip.all.pick._width " + clip.all.pick._width);
trace("this.clip.all.pick._height " + clip.all.pick._height);
if (clip.all.pick._width > 0) {
var _local6 = clip.all.pick._width;
var _local4 = clip.all.pick._height;
var _local3 = 100;
var _local2 = 100;
if (_local6 > _local7) {
_local3 = (_local7 / _local6) * 100;
trace("xscalePercent " + _local3);
}
if (_local4 > _local5) {
_local2 = (_local5 / _local4) * 100;
trace("yscalePercent " + _local2);
}
if (_local3 > _local2) {
clip.all.pick._xscale = _local2;
clip.all.pick._yscale = _local2;
} else {
clip.all.pick._xscale = _local3;
clip.all.pick._yscale = _local3;
}
clip.all.pick._x = 266.5;
clip.all.pick._y = 297.5;
}
}
}
Symbol 1115 MovieClip [__Packages.levelsAssets.level3Assets] Frame 0
class levelsAssets.level3Assets extends MovieClip
{
var level, game, timeForPlay, interfaceName, backgroundName, buyScreenBackground, buyScreenInterfejs, OriginalBubbleInMatrix, BubbleInMatrix, tempMatrix, leyout, resorses, startMartix, clip;
function level3Assets (level_) {
super();
level = level_;
game = level.game;
trace("init<<Level<<level3Assets");
init();
}
function init() {
timeForPlay = 600000 /* 0x0927C0 */;
interfaceName = "grcki_IF_mc";
backgroundName = "Granicus";
buyScreenBackground = "Pella";
buyScreenInterfejs = "buyScreen_grcija";
OriginalBubbleInMatrix = [14, 18, 50, 51, 52, 53];
BubbleInMatrix = [14, 18, 50, 51, 52, 53, 67];
tempMatrix = [];
leyout = 3;
resorses = "prim";
startMartix = new Array([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 100], [1, 100, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, 1, 1, 1, 1, 100], [1, 100, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 100], [1, 100, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
chekUnlockedBubbles();
}
function chekWall1(x, y) {
var _local4 = game.level.bubbleGame.cR;
var _local3 = game.level.bubbleGame.bubSide;
if (((_local3 == -1) && ((x - _local4) <= 105)) && ((((y >= 156) && (y <= 190)) || ((y >= 224) && (y <= 258))) || ((y >= 292) && (y <= 326)))) {
return(true);
}
if (((_local3 == 1) && ((x + _local4) >= 598)) && ((((y >= 122) && (y <= 156)) || ((y >= 190) && (y <= 224))) || ((y >= 258) && (y <= 292)))) {
return(true);
}
return(false);
}
function makeStartMatrix() {
var _local3;
var _local2;
_local3 = 1;
while (_local3 <= 8) {
_local2 = 1;
while (17 >= _local2) {
if ((startMartix[_local3][_local2] != 0) && (startMartix[_local3][_local2] < 60)) {
var _local5;
var _local4 = random(BubbleInMatrix.length);
startMartix[_local3][_local2] = BubbleInMatrix[_local4];
}
_local2++;
}
_local3++;
}
trace("this.startMartix " + startMartix);
return(startMartix);
}
function chekUnlockedBubbles() {
var _local2;
var _local3;
var _local4;
_local2 = 0;
while (_local2 < BubbleInMatrix.length) {
_local3 = 0;
while (_local3 < game.unlockedBubbles.length) {
if (game.unlockedBubbles[_local3] == BubbleInMatrix[_local2]) {
tempMatrix.push(BubbleInMatrix[_local2]);
trace("@@SBubbleInMatrix[i] " + BubbleInMatrix[_local2]);
}
_local3++;
}
_local2++;
}
trace("###this.tempMatrix " + tempMatrix);
BubbleInMatrix = [];
BubbleInMatrix = tempMatrix;
}
function passLevel() {
}
function chekForBonus(bangScore_, dropScore_, step) {
if (bangScore_[step] >= 5) {
var _local2 = 0;
while (_local2 < game.boughtItems.length) {
if (game.boughtItems[_local2].itemsName == "ThePalaceAtThebes") {
var _local4;
_local4 = new ss.Items(game, "servant", 400, 0, 0, 464.1, 254.2, 0, 100);
if ((game.bonusItems[game.bonusItems.length - 1].itemsName != "servant") && (game.bonusItems[game.bonusItems.length - 2].itemsName != "servant")) {
var _local3 = new screens.BonusPopUp(game, game.game_backround, "servant");
game.bonusPopUp.push(_local3);
trace("ADD SERVANT");
game.bonusItems.push(_local4);
}
}
_local2++;
}
}
if (game.level.curentlevelAsset.primaryResources >= 30) {
var _local2 = 0;
while (_local2 < game.boughtItems.length) {
if (game.boughtItems[_local2].itemsName == "ASmallVillage") {
var _local4 = new ss.Items(game, "villager", 300, 0, 0, 590, 385.4, 0, 100);
if ((game.bonusItems[game.bonusItems.length - 1].itemsName != "villager") && (game.bonusItems[game.bonusItems.length - 2].itemsName != "villager")) {
var _local3 = new screens.BonusPopUp(game, game.game_backround, "villager");
game.bonusPopUp.push(_local3);
trace("ADD villager ");
game.bonusItems.push(_local4);
}
}
_local2++;
}
}
}
function chekWall(ballY, score) {
if (((ballY - score) % 2) == 0) {
trace(" chekWall true");
return(true);
}
trace(" chekWall false");
return(false);
}
function addEvents() {
clip.all.ok_btn.holder = this;
clip.all.ok_btn.onRelease = function () {
trace("pritisna:::" + this.holder.game.level.bubbleGame.popHintsclip);
if (!this.holder.game.level.bubbleGame.popHintsclip) {
this.holder.game.level.bubbleGame.pauseInGame = false;
var _local2 = getTimer();
this.holder.game.level.bubbleGame.oldRowTime = this.holder.game.level.bubbleGame.oldRowTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.startTime = this.holder.game.level.bubbleGame.startTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.OldTime = this.holder.game.level.bubbleGame.OldTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.GameTime = this.holder.game.level.bubbleGame.GameTime + (_local2 - this.holder.game.keyboard.pauseTime);
}
this.holder.game.startCheckingFocus();
this.holder.clip.removeMovieClip();
};
}
function showHint() {
trace("showHint()");
game.level.bubbleGame.pauseInGame = true;
game.keyboard.pauseTime = getTimer();
clip = game.game_backround.attachMovie("fadeHint4_mc", "popHints_reverse", 3008, {_x:64.8, _y:285});
clip.all.intro.text = game.Language.getLangText("bubbleNum51");
addEvents();
return(true);
}
}
Symbol 1116 MovieClip [__Packages.levelsAssets.level4Assets] Frame 0
class levelsAssets.level4Assets extends MovieClip
{
var level, game, timeForPlay, interfaceName, backgroundName, buyScreenBackground, buyScreenInterfejs, OriginalBubbleInMatrix, BubbleInMatrix, tempMatrix, resorses, startMartix, clip;
function level4Assets (level_) {
super();
level = level_;
game = level.game;
trace("init<<Level<<level4Assets");
init();
}
function init() {
timeForPlay = 600000 + (game.weaponResources * 100);
interfaceName = "persiski_IF_mc";
backgroundName = "Issus";
buyScreenBackground = "Pella";
buyScreenInterfejs = "buyScreen_persia";
OriginalBubbleInMatrix = [1, 7, 4, 5, 6, 14, 18, 61];
BubbleInMatrix = [1, 7, 4, 5, 6, 14, 18, 61];
tempMatrix = [];
resorses = "wea";
startMartix = new Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 4, 3, 4, 3, 4, 1, 2, 1, 1, 2, 3, 61, 3, 4, 1, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
chekUnlockedBubbles();
var _local2;
var _local3;
_local2 = 2;
while (_local2 <= 8) {
_local3 = 1;
while (17 >= _local3) {
var _local4 = random(2);
if (_local4 > 0) {
if ((_local2 % 2) == 0) {
if ((startMartix[_local2 - 1][_local3 + 1] != 0) || (startMartix[_local2 - 1][_local3] != 0)) {
var _local5 = random(BubbleInMatrix.length);
startMartix[_local2][_local3] = BubbleInMatrix[_local5];
trace((("topce " + ((_local2 * 19) + _local3)) + "ke ima boja ") + startMartix[_local2][_local3]);
}
}
if ((_local2 % 2) == 1) {
if ((startMartix[_local2 - 1][_local3 - 1] != 0) || (startMartix[_local2 - 1][_local3] != 0)) {
var _local5 = random(BubbleInMatrix.length);
startMartix[_local2][_local3] = BubbleInMatrix[_local5];
trace((("neparno topce " + ((_local2 * 19) + _local3)) + "ke ima boja ") + startMartix[_local2][_local3]);
}
}
} else {
startMartix[_local2][_local3] = 0;
}
_local3++;
}
_local2++;
}
startMartix[1][13] = 61;
}
function makeStartMatrix() {
var _local3;
var _local2;
_local3 = 1;
while (_local3 <= 8) {
_local2 = 1;
while (17 >= _local2) {
if ((startMartix[_local3][_local2] != 0) && (startMartix[_local3][_local2] < 60)) {
var _local5;
var _local4 = random(BubbleInMatrix.length);
startMartix[_local3][_local2] = BubbleInMatrix[_local4];
}
_local2++;
}
_local3++;
}
trace("this.startMartix " + startMartix);
return(startMartix);
}
function chekUnlockedBubbles() {
var _local2;
var _local3;
var _local4;
_local2 = 0;
while (_local2 < (BubbleInMatrix.length - 1)) {
_local3 = 0;
while (_local3 < game.unlockedBubbles.length) {
if (game.unlockedBubbles[_local3] == BubbleInMatrix[_local2]) {
tempMatrix.push(BubbleInMatrix[_local2]);
trace("@@SBubbleInMatrix[i] " + BubbleInMatrix[_local2]);
}
_local3++;
}
_local2++;
}
trace("###this.tempMatrix " + tempMatrix);
BubbleInMatrix = [];
BubbleInMatrix = tempMatrix;
}
function passLevelPoints() {
trace("passLevelPoints()" + game.level.bubbleGame.GameTime);
}
function chekForBonus(bangScore_, dropScore_, step) {
if (bangScore_[step] >= 5) {
var _local2 = 0;
while (_local2 < game.boughtItems.length) {
if (game.boughtItems[_local2].itemsName == "ThePalaceAtThebes") {
var _local4;
_local4 = new ss.Items(game, "servant", 400, 0, 0, 464.1, 254.2, 0, 100);
if (((game.bonusItems[game.bonusItems.length - 1].itemsName != "servant") && (game.bonusItems[game.bonusItems.length - 2].itemsName != "servant")) && (game.bonusItems[game.bonusItems.length - 3].itemsName != "servant")) {
var _local3 = new screens.BonusPopUp(game, game.game_backround, "servant");
game.bonusPopUp.push(_local3);
trace("ADD SERVANT");
game.bonusItems.push(_local4);
}
}
_local2++;
}
}
if (game.level.curentlevelAsset.primaryResources >= 30) {
var _local2 = 0;
while (_local2 < game.boughtItems.length) {
if (game.boughtItems[_local2].itemsName == "ASmallVillage") {
var _local4 = new ss.Items(game, "villager", 300, 0, 0, 590, 385.4, 0, 100);
if ((game.bonusItems[game.bonusItems.length - 1].itemsName != "villager") && (game.bonusItems[game.bonusItems.length - 2].itemsName != "villager")) {
var _local3 = new screens.BonusPopUp(game, game.game_backround, "villager");
game.bonusPopUp.push(_local3);
trace("ADD villager ");
game.bonusItems.push(_local4);
}
}
_local2++;
}
}
if (((bangScore_[step] >= 5) && (bangScore_[step - 1] >= 5)) && (bangScore_[step - 2] >= 5)) {
var _local2 = 0;
while (_local2 < game.boughtItems.length) {
if (game.boughtItems[_local2].itemsName == "AGraintField") {
trace("ADD sawyer ");
var _local4 = new ss.Items(game, "sawyer", 400, 0, 0, 698.3, 407.9, 0, 100);
if ((game.bonusItems[game.bonusItems.length - 1].itemsName != "sawyer") && (game.bonusItems[game.bonusItems.length - 2].itemsName != "sawyer")) {
var _local3 = new screens.BonusPopUp(game, game.game_backround, "sawyer");
game.bonusPopUp.push(_local3);
trace("ADD sawyer ");
game.bonusItems.push(_local4);
}
}
_local2++;
}
}
}
function addEvents() {
clip.all.ok_btn.holder = this;
clip.all.ok_btn.onRelease = function () {
trace("pritisna:::" + this.holder.game.level.bubbleGame.popHintsclip);
if (!this.holder.game.level.bubbleGame.popHintsclip) {
this.holder.game.level.bubbleGame.pauseInGame = false;
var _local2 = getTimer();
this.holder.game.level.bubbleGame.oldRowTime = this.holder.game.level.bubbleGame.oldRowTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.startTime = this.holder.game.level.bubbleGame.startTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.OldTime = this.holder.game.level.bubbleGame.OldTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.GameTime = this.holder.game.level.bubbleGame.GameTime + (_local2 - this.holder.game.keyboard.pauseTime);
}
this.holder.game.startCheckingFocus();
this.holder.clip.removeMovieClip();
};
}
function showHint() {
trace("showHint()");
game.level.bubbleGame.pauseInGame = true;
game.keyboard.pauseTime = getTimer();
clip = game.game_backround.attachMovie("popHints_reverse", "popHints_reverse", 3008, {_x:138.4, _y:86.8});
clip.all.intro.text = game.Language.getLangText("LAJTENINGBUBBLE");
addEvents();
return(true);
}
}
Symbol 1117 MovieClip [__Packages.levelsAssets.level5Assets] Frame 0
class levelsAssets.level5Assets extends MovieClip
{
var level, game, timeForPlay, interfaceName, backgroundName, buyScreenBackground, buyScreenInterfejs, OriginalBubbleInMatrix, BubbleInMatrix, tempMatrix, resorses, startMartix, clip;
function level5Assets (level_) {
super();
level = level_;
game = level.game;
trace("init<<Level<<level5Assets");
init();
}
function init() {
timeForPlay = 600000 /* 0x0927C0 */;
interfaceName = "persiski_IF_mc";
backgroundName = "Issus";
buyScreenBackground = "Pella";
buyScreenInterfejs = "buyScreen_persia";
OriginalBubbleInMatrix = [2, 18, 16, 14, 53];
BubbleInMatrix = [2, 18, 16, 14, 53];
tempMatrix = [];
resorses = "prim";
startMartix = new Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 4, 3, 4, 3, 4, 1, 2, 1, 1, 2, 3, 4, 3, 4, 1, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
chekUnlockedBubbles();
var _local2;
var _local3;
_local2 = 2;
while (_local2 <= 8) {
_local3 = 1;
while (17 >= _local3) {
var _local4 = random(2);
if (_local4 > 0) {
if ((_local2 % 2) == 0) {
if ((startMartix[_local2 - 1][_local3 + 1] != 0) || (startMartix[_local2 - 1][_local3] != 0)) {
var _local5 = random(BubbleInMatrix.length);
startMartix[_local2][_local3] = BubbleInMatrix[_local5];
trace((("topce " + ((_local2 * 19) + _local3)) + "ke ima boja ") + startMartix[_local2][_local3]);
}
}
if ((_local2 % 2) == 1) {
if ((startMartix[_local2 - 1][_local3 - 1] != 0) || (startMartix[_local2 - 1][_local3] != 0)) {
var _local5 = random(BubbleInMatrix.length);
startMartix[_local2][_local3] = BubbleInMatrix[_local5];
trace((("neparno topce " + ((_local2 * 19) + _local3)) + "ke ima boja ") + startMartix[_local2][_local3]);
}
}
} else {
startMartix[_local2][_local3] = 0;
}
_local3++;
}
_local2++;
}
}
function makeStartMatrix() {
var _local3;
var _local2;
_local3 = 1;
while (_local3 <= 8) {
_local2 = 1;
while (17 >= _local2) {
if ((startMartix[_local3][_local2] != 0) && (startMartix[_local3][_local2] != 100)) {
var _local5;
var _local4 = random(BubbleInMatrix.length);
startMartix[_local3][_local2] = BubbleInMatrix[_local4];
}
_local2++;
}
_local3++;
}
trace("this.startMartix " + startMartix);
return(startMartix);
}
function chekUnlockedBubbles() {
var _local2;
var _local3;
var _local4;
_local2 = 0;
while (_local2 < BubbleInMatrix.length) {
_local3 = 0;
while (_local3 < game.unlockedBubbles.length) {
if (game.unlockedBubbles[_local3] == BubbleInMatrix[_local2]) {
tempMatrix.push(BubbleInMatrix[_local2]);
trace("@@SBubbleInMatrix[i] " + BubbleInMatrix[_local2]);
}
_local3++;
}
_local2++;
}
trace("###this.tempMatrix " + tempMatrix);
BubbleInMatrix = [];
BubbleInMatrix = tempMatrix;
}
function passLevelPoints() {
trace("passLevelPoints()");
if (game.level.bubbleGame.GameTime <= 120000) {
var _local2 = 0;
while (_local2 < game.boughtItems.length) {
if (game.boughtItems[_local2].itemsName == "TheHarbor") {
var _local3;
_local3 = new ss.Items(game, "fisherman", 500, 0, 0, 357.1, 444.9, 0, 100);
if ((game.bonusItems[game.bonusItems.length - 1].itemsName != "fisherman") && (game.bonusItems[game.bonusItems.length - 2].itemsName != "fisherman")) {
game.bonusItems.push(_local3);
trace("ADD fisherman");
}
}
_local2++;
}
}
}
function chekForBonus(bangScore_, dropScore_, step) {
if (bangScore_[step] >= 5) {
var _local2 = 0;
while (_local2 < game.boughtItems.length) {
if (game.boughtItems[_local2].itemsName == "ThePalaceAtThebes") {
var _local4;
_local4 = new ss.Items(game, "servant", 400, 0, 0, 464.1, 254.2, 0, 100);
if ((((game.bonusItems[game.bonusItems.length - 1].itemsName != "servant") && (game.bonusItems[game.bonusItems.length - 2].itemsName != "servant")) && (game.bonusItems[game.bonusItems.length - 3].itemsName != "servant")) && (game.bonusItems[game.bonusItems.length - 4].itemsName != "servant")) {
var _local3 = new screens.BonusPopUp(game, game.game_backround, "servant");
game.bonusPopUp.push(_local3);
trace("ADD SERVANT");
game.bonusItems.push(_local4);
}
}
_local2++;
}
}
trace("this.level.curentlevelAsset.primaryResources " + level.curentlevelAsset.primaryResources);
if (game.level.curentlevelAsset.primaryResources >= 30) {
var _local2 = 0;
while (_local2 < game.boughtItems.length) {
if (game.boughtItems[_local2].itemsName == "ASmallVillage") {
var _local4 = new ss.Items(game, "villager", 300, 0, 0, 590, 385.4, 0, 100);
if ((game.bonusItems[game.bonusItems.length - 1].itemsName != "villager") && (game.bonusItems[game.bonusItems.length - 2].itemsName != "villager")) {
var _local3 = new screens.BonusPopUp(game, game.game_backround, "villager");
game.bonusPopUp.push(_local3);
trace("ADD villager ");
game.bonusItems.push(_local4);
}
}
_local2++;
}
}
if (((bangScore_[step] >= 5) && (bangScore_[step - 1] >= 5)) && (bangScore_[step - 2] >= 5)) {
var _local2 = 0;
while (_local2 < game.boughtItems.length) {
if (game.boughtItems[_local2].itemsName == "AGraintField") {
trace("ADD sawyer ");
var _local4 = new ss.Items(game, "sawyer", 400, 0, 0, 698.3, 407.9, 0, 100);
if ((game.bonusItems[game.bonusItems.length - 1].itemsName != "sawyer") && (game.bonusItems[game.bonusItems.length - 2].itemsName != "sawyer")) {
var _local3 = new screens.BonusPopUp(game, game.game_backround, "sawyer");
game.bonusPopUp.push(_local3);
trace("ADD sawyer ");
game.bonusItems.push(_local4);
}
}
_local2++;
}
}
}
function addEvents() {
clip.all.ok_btn.holder = this;
clip.all.ok_btn.onRelease = function () {
trace("pritisna:::" + this.holder.game.level.bubbleGame.popHintsclip);
if (!this.holder.game.level.bubbleGame.popHintsclip) {
this.holder.game.level.bubbleGame.pauseInGame = false;
var _local2 = getTimer();
this.holder.game.level.bubbleGame.oldRowTime = this.holder.game.level.bubbleGame.oldRowTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.startTime = this.holder.game.level.bubbleGame.startTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.OldTime = this.holder.game.level.bubbleGame.OldTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.GameTime = this.holder.game.level.bubbleGame.GameTime + (_local2 - this.holder.game.keyboard.pauseTime);
}
this.holder.game.startCheckingFocus();
this.holder.clip.removeMovieClip();
};
}
function showHint() {
trace("showHint()");
game.level.bubbleGame.pauseInGame = true;
game.keyboard.pauseTime = getTimer();
clip = game.game_backround.attachMovie("fadeHint4_mc", "popHints_reverse", 3008, {_x:416.8, _y:285});
clip.all.intro.text = game.Language.getLangText("bubbleNum52");
addEvents();
return(true);
}
}
Symbol 1118 MovieClip [__Packages.levelsAssets.level6Assets] Frame 0
class levelsAssets.level6Assets extends MovieClip
{
var level, game, timeForPlay, interfaceName, backgroundName, buyScreenBackground, buyScreenInterfejs, OriginalBubbleInMatrix, BubbleInMatrix, tempMatrix, leyout, popapForBonus, resorses, startMartix, clip;
function level6Assets (level_) {
super();
level = level_;
game = level.game;
trace("init<<Level<<level6Assets");
init();
}
function init() {
timeForPlay = 600000 /* 0x0927C0 */;
interfaceName = "persiski_IF_mc";
backgroundName = "Issus";
buyScreenBackground = "Pella";
buyScreenInterfejs = "buyScreen_persia";
OriginalBubbleInMatrix = [25, 1, 2, 18, 16, 14, 53, 61, 78];
BubbleInMatrix = [25, 1, 2, 18, 16, 14, 53, 61, 78];
tempMatrix = [];
leyout = 3;
popapForBonus = true;
resorses = "lux";
startMartix = new Array([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 100], [1, 100, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, 1, 1, 1, 1, 100], [1, 100, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 100], [1, 100, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
chekUnlockedBubbles();
}
function chekWall1(x, y) {
var _local4 = game.level.bubbleGame.cR;
var _local3 = game.level.bubbleGame.bubSide;
if (((_local3 == -1) && ((x - _local4) <= 105)) && ((((y >= 156) && (y <= 190)) || ((y >= 224) && (y <= 258))) || ((y >= 292) && (y <= 326)))) {
return(true);
}
if (((_local3 == 1) && ((x + _local4) >= 598)) && ((((y >= 122) && (y <= 156)) || ((y >= 190) && (y <= 224))) || ((y >= 258) && (y <= 292)))) {
return(true);
}
return(false);
}
function makeStartMatrix() {
var _local3;
var _local2;
_local3 = 1;
while (_local3 <= 8) {
_local2 = 1;
while (17 >= _local2) {
if ((startMartix[_local3][_local2] != 0) && (startMartix[_local3][_local2] <= 60)) {
var _local5;
var _local4 = random(BubbleInMatrix.length);
startMartix[_local3][_local2] = BubbleInMatrix[_local4];
}
_local2++;
}
_local3++;
}
return(startMartix);
}
function chekUnlockedBubbles() {
var _local2;
var _local3;
var _local4;
_local2 = 0;
while (_local2 < (BubbleInMatrix.length - 2)) {
_local3 = 0;
while (_local3 < game.unlockedBubbles.length) {
if (game.unlockedBubbles[_local3] == BubbleInMatrix[_local2]) {
tempMatrix.push(BubbleInMatrix[_local2]);
trace("@@SBubbleInMatrix[i] " + BubbleInMatrix[_local2]);
}
_local3++;
}
_local2++;
}
BubbleInMatrix = [];
BubbleInMatrix = tempMatrix;
}
function passLevelPoints() {
trace("passLevelPoints()" + game.level.bubbleGame.GameTime);
if (game.level.bubbleGame.GameTime >= 120000) {
var _local2 = 0;
while (_local2 < game.boughtItems.length) {
if (game.boughtItems[_local2].itemsName == "TheHarbor") {
var _local4;
_local4 = new ss.Items(game, "fisherman", 500, 0, 0, 357.1, 444.9, 0, 100);
if ((game.bonusItems[game.bonusItems.length - 1].itemsName != "fisherman") && (game.bonusItems[game.bonusItems.length - 2].itemsName != "fisherman")) {
var _local3 = new screens.BonusPopUp(game, game.game_backround, "fisherman");
game.bonusPopUp.push(_local3);
game.bonusItems.push(_local4);
trace("ADD fisherman");
}
}
_local2++;
}
}
}
function chekForBonus(bangScore_, dropScore_, step) {
trace("chekForBonus ");
if (level.curentlevelAsset.score >= 1000) {
var _local2 = 0;
while (_local2 < game.boughtItems.length) {
if (game.boughtItems[_local2].itemsName == "TheMarket") {
var _local4;
_local4 = new ss.Items(game, "merchant", 400, 0, 0, 628, 372.1, 0, 100);
if ((game.bonusItems[game.bonusItems.length - 1].itemsName != "merchant") && (game.bonusItems[game.bonusItems.length - 2].itemsName != "merchant")) {
var _local3 = new screens.BonusPopUp(game, game.game_backround, "merchant");
game.bonusPopUp.push(_local3);
trace("ADD merchant");
game.bonusItems.push(_local4);
}
}
_local2++;
}
}
if (bangScore_[step] >= 5) {
var _local2 = 0;
while (_local2 < game.boughtItems.length) {
if (game.boughtItems[_local2].itemsName == "ThePalaceAtThebes") {
var _local4 = new ss.Items(game, "servant", 400, 0, 0, 464.1, 254.2, 0, 100);
if ((((game.bonusItems[game.bonusItems.length - 1].itemsName != "servant") && (game.bonusItems[game.bonusItems.length - 2].itemsName != "servant")) && (game.bonusItems[game.bonusItems.length - 3].itemsName != "servant")) && (game.bonusItems[game.bonusItems.length - 4].itemsName != "servant")) {
var _local3 = new screens.BonusPopUp(game, game.game_backround, "servant");
game.bonusPopUp.push(_local3);
trace("ADD SERVANT");
game.bonusItems.push(_local4);
}
}
_local2++;
}
}
trace("this.level.curentlevelAsset.primaryResources " + level.curentlevelAsset.primaryResources);
if (game.level.curentlevelAsset.primaryResources >= 30) {
var _local2 = 0;
while (_local2 < game.boughtItems.length) {
if (game.boughtItems[_local2].itemsName == "ASmallVillage") {
var _local4 = new ss.Items(game, "villager", 300, 0, 0, 590, 385.4, 0, 100);
if ((game.bonusItems[game.bonusItems.length - 1].itemsName != "villager") && (game.bonusItems[game.bonusItems.length - 2].itemsName != "villager")) {
var _local3 = new screens.BonusPopUp(game, game.game_backround, "villager");
game.bonusPopUp.push(_local3);
trace("ADD villager ");
game.bonusItems.push(_local4);
}
}
_local2++;
}
}
if (((bangScore_[step] >= 5) && (bangScore_[step - 1] >= 5)) && (bangScore_[step - 2] >= 5)) {
var _local2 = 0;
while (_local2 < game.boughtItems.length) {
if (game.boughtItems[_local2].itemsName == "AGraintField") {
trace("ADD sawyer ");
var _local4 = new ss.Items(game, "sawyer", 400, 0, 0, 698.3, 407.9, 0, 100);
if ((game.bonusItems[game.bonusItems.length - 1].itemsName != "sawyer") && (game.bonusItems[game.bonusItems.length - 2].itemsName != "sawyer")) {
var _local3 = new screens.BonusPopUp(game, game.game_backround, "sawyer");
game.bonusPopUp.push(_local3);
trace("ADD sawyer ");
game.bonusItems.push(_local4);
}
}
_local2++;
}
}
}
function addEvents() {
clip.all.ok_btn.holder = this;
clip.all.ok_btn.onRelease = function () {
trace("pritisna:::" + this.holder.game.level.bubbleGame.popHintsclip);
if (!this.holder.game.level.bubbleGame.popHintsclip) {
this.holder.game.level.bubbleGame.pauseInGame = false;
var _local2 = getTimer();
this.holder.game.level.bubbleGame.oldRowTime = this.holder.game.level.bubbleGame.oldRowTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.startTime = this.holder.game.level.bubbleGame.startTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.OldTime = this.holder.game.level.bubbleGame.OldTime + (_local2 - this.holder.game.keyboard.pauseTime);
this.holder.game.level.bubbleGame.GameTime = this.holder.game.level.bubbleGame.GameTime + (_local2 - this.holder.game.keyboard.pauseTime);
}
this.holder.game.startCheckingFocus();
this.holder.clip.removeMovieClip();
};
}
function showHint() {
trace("showHint()");
game.level.bubbleGame.pauseInGame = true;
game.keyboard.pauseTime = getTimer();
clip = game.game_backround.attachMovie("popHints", "popHints_reverse", 3008, {_x:248.4, _y:-12.1});
clip.all.intro.text = game.Language.getLangText("bubbleNum56");
addEvents();
return(true);
}
}
Symbol 1119 MovieClip [__Packages.ss.BubbleGame] Frame 0
#initclip
if (!_global.ss) {
_global.ss = new Object();
}
if (!_global.ss.BubbleGame) {
var _local1 = function (level) {
super();
this.Level = level;
this.init();
};
ss.BubbleGame = _local1;
//ss.BubbleGame extends MovieClip
var _local2 = _local1.prototype;
_local2.init = function () {
this.Points = [];
this.PointsCounter = 0;
this.PointsFlag = false;
this.pathCounter = 0;
while (this.Level.levelAssets.BubbleInMatrix.length < 7) {
var _local7 = random(this.Level.game.unlockedBubbles2.length);
var _local6 = this.Level.game.unlockedBubbles2[_local7];
var _local5 = false;
var _local3 = 0;
while (_local3 < this.Level.levelAssets.BubbleInMatrix.length) {
if (this.Level.levelAssets.BubbleInMatrix[_local3] == _local6) {
_local5 = true;
break;
}
_local3++;
}
if (_local5) {
continue;
}
this.Level.levelAssets.BubbleInMatrix.push(_local6);
}
this.withHelpPoints = this.Level.levelAssets.pointsFlag;
if (this.Level.game.LoastLife) {
this.withHelpPoints = true;
this.Level.game.LoastLife = false;
}
trace(" this.Level.levelAssets.pointsFlag " + this.Level.levelAssets.pointsFlag);
this.startMartix = this.Level.levelAssets.makeStartMatrix();
r = 1;
while (8 >= r) {
c = 1;
while (17 >= c) {
if ((this.Level.game.levelID == 2) && ((r == 1) && (c == 13))) {
c++;
}
if ((this.Level.game.levelID == 4) && ((r == 1) && (c == 13))) {
c++;
}
if ((this.Level.game.levelID == 11) && ((r == 1) && (c == 13))) {
c++;
}
if ((this.Level.game.levelID == 9) && ((r == 1) && (c == 13))) {
c++;
}
if ((this.Level.game.levelID == 7) && ((r == 5) && (c == 1))) {
c++;
}
if ((this.Level.game.levelID == 13) && ((r == 1) && (c == 5))) {
c++;
}
if ((this.Level.game.levelID == 16) && ((r == 3) && (c == 4))) {
c++;
}
if ((this.Level.game.levelID == 43) && ((r == 4) && (c == 1))) {
c++;
}
if ((this.Level.game.levelID == 26) && ((r == 5) && (c == 5))) {
c++;
}
if ((this.startMartix[r][c] > 60) && (this.startMartix[r][c] < 100)) {
if (this.startMartix[r][c + 1] > 60) {
this.startMartix[r][c] = this.Level.levelAssets.BubbleInMatrix[0];
}
if (this.startMartix[r][c + 2] > 60) {
this.startMartix[r][c] = this.Level.levelAssets.BubbleInMatrix[0];
}
if ((this.startMartix[r + 1][c] > 60) && (this.startMartix[r + 1][c] < 100)) {
this.startMartix[r][c] = this.Level.levelAssets.BubbleInMatrix[0];
}
if (this.startMartix[r + 1][c + 1] > 60) {
this.startMartix[r][c] = this.Level.levelAssets.BubbleInMatrix[0];
}
if (this.startMartix[r + 1][c - 1] > 60) {
this.startMartix[r][c] = this.Level.levelAssets.BubbleInMatrix[0];
}
if ((this.startMartix[r + 1][c + 2] > 60) && (this.startMartix[r + 1][c + 2] < 100)) {
this.startMartix[r][c] = this.Level.levelAssets.BubbleInMatrix[0];
}
if ((this.startMartix[r + 1][c - 2] > 60) && (this.startMartix[r + 1][c - 2] < 100)) {
this.startMartix[r][c] = this.Level.levelAssets.BubbleInMatrix[0];
}
if ((this.startMartix[r + 2][c] > 60) && (this.startMartix[r + 2][c] < 100)) {
this.startMartix[r][c] = this.Level.levelAssets.BubbleInMatrix[0];
}
}
c++;
}
r++;
}
this.bonusUpgrades = 0;
this.Level.game.cursor.removeMouseListener();
this.Level.game.cursor.init();
this.Level.game.cursor.clip.gotoAndStop("arrow");
this.pauseInGame = false;
this.moralBoostFlag = false;
this.assaultFlag = false;
this.shieldFlag = false;
this.endTickFlag = false;
this.PowerBrake = false;
this.olldAngle = 0;
this.startChance = 4;
this.MinChance = 2;
this.shaketNum = 0;
this.ChanceInMoment = this.startChance;
this.dzid = false;
this.iD = 0;
this.col = 0;
this.GameTime = 150000 /* 0x0249F0 */;
this.RowTime = 80000 + (random(10) * 1000);
this.ShootTime = 10;
this.NumOfColum = 19;
this.GameSpeed = 20;
this.BrRows = 0;
this.numInkrement = 1;
this.OldTime = 0;
this.cB = 54;
this.cD = 34;
this.cDD = this.cD * this.cD;
this.cDM = this.cD * 0.75;
this.cDMM = this.cDM * this.cDM;
this.cR = 17;
this.startx = 29;
this.starty = 27;
this.cBR = this.cB + this.cR;
this.cXNext = 252;
this.cYNext = 528;
this.cXCur = 358;
this.cYCur = 512;
this.Assault = 77;
this.wallDown = false;
this.cmNothing = 0;
this.cmBMakeNext = 10;
this.cmBMakeCur = 11;
this.cmBHideNext = 12;
this.cmBMCalc = 14;
this.cmBM = 15;
this.cmBRemoveCalc = 16;
this.cmBRemove = 17;
this.cmBFRemoveCalc = 18;
if (this.max_ID <= 1) {
this.max_ID = 6;
} else {
this.max_ID++;
}
this.cmBDecLevelStep = 19;
this.cmBFDownCalc = 20;
this.cmGameOver = 21;
this.cmBangAll = 22;
this.cmShowName = 23;
this.cmShowTop = 24;
this.vBCur = "";
this.vBCurCol = -1;
this.vBNext = "";
this.vBNextCol = -1;
this.vMPS = 0;
this.vFPS = 0;
this.vCC = this.cmNothing;
this.vEnableMov = false;
this.vBRC = 0;
this.vRemove = true;
this.vPause = 0;
this.vSC = 0;
this.vBonus = 0;
this.vBonusF = false;
this.vC3 = 1;
this.vStartRC = 9;
this.vDialog = false;
this.vRestart = false;
this.vRC = 0;
this.vDelta = 15;
this.vDelta2 = this.vDelta / 6;
this.vDX = 0;
this.vDY = 0;
this.vX = 0;
this.vY = 0;
this.vBBI = 0;
this.vTX = 0;
this.vTY = 0;
this.vTC = 0;
this.vTLDist = 0;
this.vLMax = 5;
this.vLMaxC = 5;
this.vLCur = 5;
this.vLevel = 1;
this.vAS = true;
this.vDColor = 12632319 /* 0xC0C0FF */;
this.vBAnim = false;
this.vSound = true;
this.vLQ = false;
this.vVolume = 20;
this.vBS = "";
this.vNS = "";
this.vTS = "";
this.vRR = "";
this.vDD = 0;
this.bbb = true;
this.aa = true;
this.vDColorL = 0;
this.vDColorD = 0;
this.vDColorDL = 0;
this.vDColorHL = 0;
this.vNamesC = 0;
this.NewRoll = 0;
this.BangScore = [];
this.DropScore = [];
this.BangColor = [];
this.shotNum = 0;
this.num = 1;
this.BonusProcent = 1;
this.startTime = getTimer();
this.AccelerationBubble = false;
this.LightBubble = false;
this.MirrorTime = false;
this.HeatTime = false;
this.SpikeBubble = false;
this.RoughBubble = false;
this.IceTime = false;
this.vAngle = 0;
this.backgroundName = this.Level.levelAssets.backgroundName;
this.interfaceName = this.Level.levelAssets.interfaceName;
this.buyScreenBackground = this.Level.levelAssets.buyScreenBackground;
this.Level.game.sndCtrl.stopSound("battle_in_map");
_global.startBattle = false;
if (this.buyScreenBackground == "Pella") {
this.Level.game.sndCtrl.stopSound(this.Level.game.currentMusic);
this.Level.game.sndCtrl.playSound("ingame_3", 32000);
this.Level.game.currentMusic = "ingame_3";
} else if (this.buyScreenBackground == "Alexandria") {
this.Level.game.sndCtrl.stopSound(this.Level.game.currentMusic);
this.Level.game.sndCtrl.playSound("Arabic_ingame", 32000);
this.Level.game.currentMusic = "Arabic_ingame";
} else {
this.Level.game.sndCtrl.stopSound(this.Level.game.currentMusic);
this.Level.game.sndCtrl.playSound("India_ingame", 32000);
this.Level.game.currentMusic = "India_ingame";
}
this.Level.game.buyScreenBackground = this.Level.levelAssets.buyScreenBackground;
this.Level.game.buyScreenInterfejs = this.Level.levelAssets.buyScreenInterfejs;
this.game_backround = this.Level.game.attachMovie(this.backgroundName, "game_backround", 10, {_x:49, _y:50});
var _local13 = this.game_backround.getDepth();
this.zavesa = this.game_backround.attachMovie("zavesa", "zavesa", 100, {_x:34, _y:33});
this.Level.game.sndCtrl.stopSound("curtain_start_level");
this.Level.game.sndCtrl.playSound("curtain_start_level");
this.game_backround.attachMovie(this.interfaceName, "interfaceClip", 108, {_x:-49, _y:-50});
this.Arrow = this.game_backround.attachMovie("Arrow", "Arrow", 2002, {_x:358, _y:512});
this.ArrowCentar = this.game_backround.attachMovie("centar_point", "centar_point", 105, {_x:358, _y:512});
this.overview = this.game_backround.interfaceClip.attachMovie("8skreen", "8skreen", 11, {_x:732.8, _y:14.9});
this.overview._x = 732;
this.overview._y = 15;
this.MorphBonus = this.game_backround.interfaceClip.attachMovie("Showw74", "Showw74", 12, {_x:627.3, _y:570.3});
this.DoubleBonus = this.game_backround.interfaceClip.attachMovie("Showw73", "Showw73", 13, {_x:150.5, _y:576.5});
this.MoralBonus = this.game_backround.interfaceClip.attachMovie("Showw71", "Showw71", 14, {_x:94, _y:572});
this.AssaultBonus = this.game_backround.interfaceClip.attachMovie("Showw77", "Showw77", 15, {_x:255, _y:576});
this.ShieldBonus = this.game_backround.interfaceClip.attachMovie("Showw76", "Showw76", 16, {_x:529.5, _y:574});
this.SpyBonus = this.game_backround.interfaceClip.attachMovie("Showw78", "Showw78", 17, {_x:580, _y:574});
this.TimeBonus = this.game_backround.interfaceClip.attachMovie("Showw75", "Showw75", 18, {_x:202.5, _y:576});
this.TransmutationBonus = this.game_backround.interfaceClip.attachMovie("Showw72", "Showw72", 19, {_x:686, _y:574});
this.game_backround.interfaceClip.attachMovie("sandWatch", "clock", 33, {_x:717.6, _y:490.3});
this.game_backround.interfaceClip.attachMovie("menuBuyScreen", "menuBuyScreen", 34);
this.game_backround.interfaceClip.menuBuyScreen._x = -19.9;
this.game_backround.interfaceClip.menuBuyScreen._y = 489.4;
this.MorphBonus.maska._y = this.MorphBonus.maska._y + 57;
this.DoubleBonus.maska._y = this.DoubleBonus.maska._y + 57;
this.MoralBonus.maska._y = this.MoralBonus.maska._y + 57;
this.AssaultBonus.maska._y = this.AssaultBonus.maska._y + 57;
this.ShieldBonus.maska._y = this.ShieldBonus.maska._y + 57;
this.SpyBonus.maska._y = this.SpyBonus.maska._y + 57;
this.TimeBonus.maska._y = this.TimeBonus.maska._y + 57;
this.TransmutationBonus.maska._y = this.TransmutationBonus.maska._y + 57;
var _local12 = this.Level.game.AllScore;
var _local10 = this.Level.game.primaryResources;
var _local9 = this.Level.game.weaponResources;
var _local11 = this.Level.game.luxuryResources;
var _local8 = this.Level.game.armiResources;
this.game_backround.interfaceClip.nubers.score.text = _local12;
this.game_backround.interfaceClip.nubers.pimRes.text = _local10;
this.game_backround.interfaceClip.nubers.weaRes.text = _local9;
this.game_backround.interfaceClip.nubers.luxRes.text = _local11;
this.game_backround.interfaceClip.nubers.armi.text = _local8;
this.game_backround.interfaceClip.nubers.live.text = this.Level.game.Life;
this.game_backround.interfaceClip.nubers.level.text = this.Level.game.levelID;
this.addEvents();
var r;
var c;
var _local4;
var vVolume = 100;
this.Score = new Array();
this.BB = new Array();
this.RB = new Array();
this.CC = new Array();
this.CCC = new Array();
this.NAMES = new Array();
this.TOPN = new Array();
this.TOPS = new Array();
r = 0;
while (r < 30) {
this.TOPN[r] = "";
this.TOPS[r] = 0;
r++;
}
_local4 = 1003;
r = 0;
while (r < 17) {
c = 0;
while (c < 19) {
this.BB[(r * 19) + c] = new this._BB(r, c, _local4, (r * 19) + c, this);
_local4++;
c++;
}
r++;
}
var _local3 = 0;
while (_local3 <= this.max_ID) {
this.Score[_local3] = 0;
this.game_backround["score_id" + _local3].text = this.Score[_local3];
_local3++;
}
this.BangColor.push(0);
this.BangScore.push(0);
this.DropScore.push(0);
this.BangColor.push(0);
this.BangScore.push(0);
this.DropScore.push(0);
_local3 = this.max_ID + 1;
while (_local3 <= 6) {
this.game_backround["ball" + _local3]._visible = false;
this.game_backround["score_id" + _local3]._visible = false;
_local3++;
}
this.vBNext = "b" + _local4;
this.game_backround.attachMovie("_b", this.vBNext, _local4);
this.vBNext = this.game_backround["b" + _local4];
this.vBNext._x = this.cXNext;
this.vBNext._y = this.cYNext;
_local4++;
this.vBCur = "b" + _local4;
this.game_backround.attachMovie("_b", this.vBCur, _local4);
this.vBCur = this.game_backround["b" + _local4];
this.vBCur._x = this.cXCur;
this.vBCur._y = this.cYCur;
this.chekForBonusBubble();
this.Start(true);
};
_local2._BB = function (AR, AC, ADPT, num, holder) {
this.R = AR;
this.C = AC;
this.COL = 0;
this.Y = (((AR - 1) * holder.cD) + holder.cB) + holder.cR;
if (AR % 2) {
this.X = (((AC - 1) * holder.cD) + holder.cB) + holder.cR;
} else {
this.X = (((AC - 1) * holder.cD) + holder.cB) + holder.cD;
}
this.N = "b" + ADPT;
holder.game_backround.attachMovie("_b", this.N, ADPT);
this.N = holder.game_backround["b" + ADPT];
this.N.cacheAsBitmap = true;
this.N.gotoAndStop("Blank");
this.N.number.text = num;
this.N._x = this.X;
this.N._y = this.Y;
this.F = 0;
};
_local2.SetChance = function () {
var _local2;
_local2 = 1;
while (_local2 <= this.ChanceInMoment) {
this.Level.game.game_backround.attachMovie("chance", "chance" + _local2, this.Level.game.game_backround.getNextHighestDepth() + 1, {_x:570 + (32 * _local2), _y:540});
_local2++;
}
};
_local2.SetUpChance = function () {
i = 1;
while (i <= 4) {
this.Level.game.game_backround["chance" + i].removeMovieClip();
i++;
}
var i;
i = 1;
while (i <= this.ChanceInMoment) {
this.Level.game.game_backround.attachMovie("chance", "chance" + i, this.Level.game.game_backround.getNextHighestDepth() + 1, {_x:570 + (32 * i), _y:540});
i++;
}
};
_local2.Start = function (AL) {
this.oldRowTime = getTimer();
this.oldGameTime = getTimer();
var _local2;
var _local3;
var _local4;
this.vFPS = 0;
this.vMPS = 0;
this.vRC = 0;
this.vRestart = false;
_local4 = 0;
while (_local4 < 100) {
this.CC[_local4] = 0;
_local4++;
}
this.SetChance();
this.vBCur.gotoAndStop(1);
this.vBNext.gotoAndStop(1);
if (((!this.vAS) || (AL)) || (this.vBS == "")) {
this.vSC = 0;
_local2 = 1;
while (this.vStartRC >= _local2) {
_local3 = 1;
while (17 >= _local3) {
this.BB[(_local2 * 19) + _local3].COL = this.startMartix[_local2][_local3];
this.CC[this.BB[(_local2 * 19) + _local3].COL - 1]++;
this.BB[(_local2 * 19) + _local3].N.ball1.removeMovieClip();
this.BB[(_local2 * 19) + _local3].N.attachMovie("Show" + this.BB[(_local2 * 19) + _local3].COL, "ball1", this.BB[(_local2 * 19) + _local3].N.getNextHighestDepth() + 1);
_local3++;
}
_local2++;
}
_local2 = this.vStartRC + 1;
while (16 >= _local2) {
_local3 = 1;
while (17 >= _local3) {
this.BB[(_local2 * 19) + _local3].COL = 0;
this.BB[(_local2 * 19) + _local3].N.ball1.removeMovieClip();
_local3++;
}
_local2++;
}
} else {
_local2 = 0;
while (_local2 < 323) {
this.BB[_local2].COL = int(this.vBS.substr(_local2, 1));
if (0 < this.BB[_local2].COL) {
this.CC[this.BB[_local2].COL - 1]++;
this.BB[(_local2 * 19) + _local3].N.ball1.removeMovieClip();
this.BB[(_local2 * 19) + _local3].N.attachMovie("Start" + this.BB[(_local2 * 19) + _local3].COL, "ball1", this.BB[(_local2 * 19) + _local3].N.getNextHighestDepth() + 1);
} else {
this.BB[(_local2 * 19) + _local3].N.ball1.removeMovieClip();
}
_local2++;
}
}
this.vBS = "";
this.vBNextCol = this.RColor();
this.Level.game.game_backround.next_ball_mc.ball1.removeMovieClip();
this.Level.game.game_backround.next_ball_mc.attachMovie("Show" + this.vBNextCol, "ball1", this.Level.game.game_backround.next_ball_mc.getNextHighestDepth() + 1);
this.vBNext._x = this.cXNext;
this.vBNext._y = this.cYNext;
this.vBNext.ball1.removeMovieClip();
this.vBNext.attachMovie("Start" + this.vBNextCol, "ball1", this.vBNext.getNextHighestDepth() + 1);
this.vBCurCol = this.RColor();
this.vBCur._x = this.cXCur;
this.vBCur._y = this.cYCur;
this.SetConection();
this.Level.game.game_backround.curent_ball_mc.ball1.removeMovieClip();
this.Level.game.game_backround.curent_ball_mc.attachMovie("Start" + this.vBCurCol, "ball1", this.Level.game.game_backround.curent_ball_mc.getNextHighestDepth() + 1);
this.Arrow.bubble.ball1.removeMovieClip();
this.Arrow.bubble.attachMovie("Start" + this.vBCurCol, "ball1", this.Arrow.bubble.getNextHighestDepth() + 1);
this.vBCur.ball1.removeMovieClip();
this.vBCur.attachMovie("Start" + this.vBCurCol, "ball1", this.vBCur.getNextHighestDepth() + 1);
if (this.Level.levelAssets.showHint()) {
this.pauseInGame = true;
this.Level.game.sndCtrl.pauseAllSounds();
}
this.vCC = this.cmNothing;
};
_local2.RColor = function () {
var _local2;
var _local4;
_local4 = 0;
this.CCC = [];
var _local3 = 0;
while (60 >= _local3) {
this.CC[_local3] = 0;
_local3++;
}
_local3 = 0;
while (288 >= _local3) {
this.CC[this.BB[_local3].COL - 1]++;
_local3++;
}
_local2 = 0;
while (_local2 < 55) {
if (this.CC[_local2] > 0) {
this.CCC[_local4] = _local2 + 1;
_local4++;
}
_local2++;
}
_local2 = this.CCC[random(_local4)];
this.CC[_local2 - 1]++;
if (_local2 == undefined) {
_local2 = this.vBCurCol;
}
return(_local2);
};
_local2._MainCore = function () {
if (this.Level.game.win_screen) {
return(undefined);
}
this.ChekTimeForBubble();
this.time = getTimer();
if (this.Level.game.bonusPopUp.length >= 1) {
this.Level.game.bonusPopUp[this.Level.game.bonusPopUp.length - 1].init();
}
if (0 < this.vMPS) {
return(0);
}
if (this.vMPS < 0) {
this.vMPS = 0;
}
if (0 < this.vPause) {
this.vPause--;
return(0);
}
if (this.vCC == this.cmBM) {
this.BCurMove();
} else if (this.vCC == this.cmBMCalc) {
if (this.wallDown) {
this.wallDown = false;
}
this.PointsFlag = true;
var _local2 = 0;
while (_local2 < this.Points.length) {
this.Points[_local2].removeMovieClip();
_local2++;
}
this.PointsCounter = 0;
this.Points = [];
this.shaketNum = 0;
this.dropTime = false;
this.Level.game.sndCtrl.stopSound("catapult");
this.Level.game.sndCtrl.playSound("catapult");
if (this.AccelerationBubble == true) {
this.Level.game.sndCtrl.stopSound("accArrow");
this.Level.game.sndCtrl.playSound("accArrow");
}
if (((this.moralBoostFlag == true) || (this.assaultFlag == true)) || (this.shieldFlag == true)) {
this.Level.game.sndCtrl.stopSound("yuris");
this.Level.game.sndCtrl.playSound("yuris");
this.moralBoostFlag = false;
this.assaultFlag = false;
this.shieldFlag = false;
}
this.Arrow.gotoAndStop(2);
if (this.IceTime) {
this.Arrow.gotoAndStop("ice");
}
this.BangColor.push(0);
this.BangScore.push(0);
this.DropScore.push(0);
this.Level.levelAssets.chekForBonus(this.BangScore, this.DropScore, this.shotNum, this.BangColor);
this.shotNum++;
this.ChanceInMoment--;
this.Arrow.bubble.ball1.removeMovieClip();
this.vBCur.ball1.removeMovieClip();
this.vBCur.attachMovie("Splash" + this.vBCurCol, "ball1", this.vBCur.getNextHighestDepth() + 1);
if (this.LightBubble == true) {
this.BCalcDelta(this.olldAngle);
} else if (this.IceTime) {
this.BCalcDelta(this.olldAngle);
} else {
this.BCalcDelta(this.vAngle);
}
this.vCC = this.cmBM;
} else if (this.vCC == this.cmNothing) {
this.ChekTimeForMorfBubble();
this.SetUpChance();
var _local6 = getTimer();
var _local3 = int((this.RowTime - (_local6 - this.oldRowTime)) / 1000);
var _local7 = 33 / this.Level.levelAssets.timeForPlay;
var _local4 = 86 / this.Level.levelAssets.timeForPlay;
this.GameTime = int(_local6 - this.startTime);
if (((this.Level.levelAssets.timeForPlay - this.GameTime) <= 20000) && (this.endTickFlag == false)) {
this.endTickFlag = true;
this.Level.game.sndCtrl.stopSound("heartbeat_end_of_time");
this.Level.game.sndCtrl.playSound("heartbeat_end_of_time", 32000);
}
if (((this.Level.levelAssets.timeForPlay - this.GameTime) <= 0) && (!this.pauseInGame)) {
this.vCC = this.cmGameOver;
this.vBonusF = 0;
return(false);
}
this.game_backround.interfaceClip.clock.maska._y = 42.2 + (this.GameTime * _local7);
this.game_backround.interfaceClip.clock.sand._yscale = 16.1 + (this.GameTime * _local4);
this.game_backround.interfaceClip.clock.sand._xscale = 16.1 + (this.GameTime * _local4);
this.game_backround.interfaceClip.time.txt.text = int(this.GameTime / 1000);
this.game_backround.interfaceClip.timeForRoll.txt.text = _local3;
if (_local3 <= 10) {
if (this.RoughBubble) {
this.zavesa.jaze.gotoAndStop(4);
} else {
this.zavesa.jaze.gotoAndStop(3);
}
}
if (_local3 <= 0) {
if (((((((!this.LightBubble) && (!this.IceTime)) && (!this.MirrorTime)) && (!this.HeatTime)) && (!this.SpikeBubble)) && (!this.RoughBubble)) && (!this.AccelerationBubble)) {
this.MoveRowDown();
this.zavesa.jaze.gotoAndStop(1);
this.oldRowTime = getTimer();
} else {
this.oldRowTime + 4000;
}
}
if (!this.pauseInGame) {
if (this.OldTime == 0) {
this.OldTime = this.time;
}
var _local8 = this.ShootTime - Math.round((this.time - this.OldTime) / 1000);
this.game_backround.interfaceClip.timeForBubble.txt.text = _local8;
var _local5 = this.ShootTime * 1000;
if ((((!this.IceTime) && ((this.time - this.OldTime) > (_local5 - 2000))) && (this.shaketNum == 0)) && (this.shotNum > 1)) {
this.shaketNum++;
this.Arrow.gotoAndStop("shake");
this.Arrow.bubble.ball1.removeMovieClip();
this.Arrow.bubble.attachMovie("Start" + this.vBCurCol, "ball1", this.Arrow.bubble.getNextHighestDepth() + 1);
}
if (((!this.IceTime) && ((this.time - this.OldTime) > _local5)) && (this.shotNum > 1)) {
this.shaketNum = 0;
this.vCC = this.cmBMCalc;
}
}
if ((!this.aa) && (0 >= this.vRC)) {
if (5 >= this.vDD) {
this.vRC = 10000;
} else if (14 >= this.vDD) {
this.vRC = 200 / this.vDD;
} else {
this.vRC = 1;
}
this.SDButton();
this.vDialog = true;
this.vRestart = false;
}
if ((this.vFPS == 0) && (this.vBAnim)) {
this.FPlay();
}
} else if (this.vCC == this.cmBMakeNext) {
this.PointsFlag = false;
this.KCalcDelta(this.vAngle);
this.BMakeNext();
} else if (this.vCC == this.cmBHideNext) {
this.vBNext.ball1.removeMovieClip();
this.vBNext.attachMovie("Hide" + this.vBNextCol, "ball1", this.vBNext.getNextHighestDepth() + 1);
this.vCC = this.cmBMakeCur;
} else if (this.vCC == this.cmBMakeCur) {
this.BMakeCurrent();
this.OldTime = getTimer();
} else if (this.vCC == this.cmBRemoveCalc) {
if (!this.Double) {
this.vRBC = 0;
this.BRemoveCalc(this.BB[this.vBBI].R, this.BB[this.vBBI].C, this.BB[this.vBBI].COL);
}
if (this.vRBC < 3) {
if (this.vSound) {
this.vsConnect.setPan(((this.BB[this.vBBI].C - 8) * 100) / 8);
this.vsConnect.start();
}
} else {
this.vC3 = 0;
this.vBBI = 0;
this.vRemove = true;
this.vCC = this.cmBRemove;
}
} else if (this.vCC == this.cmBRemove) {
this.BRemove();
} else if (this.vCC == this.cmBFRemoveCalc) {
this.BFRemoveCalc();
if (this.vRBC == 0) {
this.vCC = this.cmBHideNext;
} else {
this.vC3 = 0;
this.vRemove = false;
this.vCC = this.cmBRemove;
}
} else if (this.vCC == this.cmBFDownCalc) {
this.BFRemoveCalc();
if (this.vRBC == 0) {
this.vCC = this.cmBHideNext;
} else {
this.vC3 = -1;
this.vRemove = false;
this.vCC = this.cmBRemove;
}
} else if (this.vCC == this.cmGameOver) {
if (!this.pauseInGame) {
this.GameOver();
}
} else if ((this.vCC = this.cmShowName)) {
this.vDialog = true;
this.vCC = this.cmNothing;
}
};
_local2.BCalcDelta = function (AAng) {
var _local14;
var _local8;
var _local13;
var _local5;
var _local7;
var _local6;
var _local4;
var _local2;
var _local3;
var _local11;
var _local10;
_local14 = Math.tan((AAng * Math.PI) / 180);
this.agol = this.vAngle;
if (0 < AAng) {
if (AAng >= 45) {
this.side = "right";
this.bubSide = 1;
this.vDX = this.vDelta;
this.vDY = (-this.vDelta) / _local14;
} else {
this.side = "right";
this.bubSide = 1;
this.vDY = -this.vDelta;
this.vDX = this.vDelta * _local14;
}
} else if (-45 >= AAng) {
this.side = "left";
this.bubSide = -1;
this.vDX = -this.vDelta;
this.vDY = this.vDelta / _local14;
} else {
this.side = "left";
this.bubSide = -1;
this.vDY = -this.vDelta;
this.vDX = this.vDelta * _local14;
}
this.vX = this.vBCur._x;
this.vY = this.vBCur._y;
_local8 = this.vDX;
_local13 = this.vDY;
_local5 = this.vX;
_local7 = this.vY;
this.vTC = 0;
_local11 = 0;
var _local9 = false;
_local10 = 0;
while (true) {
if (((((this.BB[ballX - 1].COL == 0) && (this.BB[ballX + 1].COL == 0)) && (this.BB[(ballY * 19) + (ballX - 20)].COL == 0)) && (this.BB[(ballY * 19) + (ballX - 19)].COL == 0)) && (this.BB[(ballY * 19) + (ballX - 18)].COL == 0)) {
}
_local5 = _local5 + _local8;
_local7 = _local7 + _local13;
if (this.Level.levelAssets.chekWall1(_local5, _local7) && (!_local9)) {
_local9 = true;
this.vTC++;
_local8 = -_local8;
this.bubSide = -1 * this.bubSide;
} else if ((_local5 + this.cR) >= ((this.cR + (this.cD * 17)) + this.cB)) {
_local9 = false;
this.vTC++;
_local8 = -_local8;
this.bubSide = -1 * this.bubSide;
} else if (this.cB >= (_local5 - this.cR)) {
_local9 = false;
this.vTC++;
_local8 = -_local8;
this.bubSide = -1 * this.bubSide;
}
_local4 = int((_local7 - this.cB) / this.cD) + 1;
if ((_local4 % 2) && (!(this.BrRows % 2))) {
_local2 = int((_local5 - this.cB) / this.cD) + 1;
} else if ((!(_local4 % 2)) && (!(this.BrRows % 2))) {
_local2 = int(((_local5 - this.cB) - this.cR) / this.cD) + 1;
} else if ((_local4 % 2) && (this.BrRows % 2)) {
_local2 = int(((_local5 - this.cB) - this.cR) / this.cD) + 1;
} else {
_local2 = int((_local5 - this.cB) / this.cD) + 1;
}
if (17 < _local2) {
_local2 = 17;
} else if (_local2 < 1) {
_local2 = 1;
}
if (16 < _local4) {
} else {
var ballX = _local2;
var ballY = _local4;
_local3 = (_local4 * 19) + _local2;
_local6 = this.cBR >= _local7;
if (!_local6) {
_local6 = 0 < this.BB[_local3].COL;
if (_local6) {
(this.vDY);// not popped
_local4 = _local11;
_local2 = _local10;
}
}
if (!_local6) {
_local6 = ((0 < this.BB[_local3 - 19].COL) && (100 > this.BB[_local3 - 19].COL)) && ((((_local7 - this.BB[_local3 - 19].Y) * (_local7 - this.BB[_local3 - 19].Y)) + ((_local5 - this.BB[_local3 - 19].X) * (_local5 - this.BB[_local3 - 19].X))) < this.cDMM);
}
if (!_local6) {
if (_local4 % 2) {
_local6 = ((0 < this.BB[_local3 - 20].COL) && (100 > this.BB[_local3 - 20].COL)) && ((((_local7 - this.BB[_local3 - 20].Y) * (_local7 - this.BB[_local3 - 20].Y)) + ((_local5 - this.BB[_local3 - 20].X) * (_local5 - this.BB[_local3 - 20].X))) < this.cDMM);
} else {
_local6 = ((0 < this.BB[_local3 - 18].COL) && (100 > this.BB[_local3 - 18].COL)) && ((((_local7 - this.BB[_local3 - 18].Y) * (_local7 - this.BB[_local3 - 18].Y)) + ((_local5 - this.BB[_local3 - 18].X) * (_local5 - this.BB[_local3 - 18].X))) < this.cDMM);
}
}
if (!_local6) {
_local6 = ((0 < this.BB[_local3 - 1].COL) && (100 > this.BB[_local3 - 1].COL)) && ((_local5 - this.BB[_local3 - 1].X) < this.cDM);
}
if (!_local6) {
_local6 = ((0 < this.BB[_local3 + 1].COL) && (100 > this.BB[_local3 + 1].COL)) && ((this.BB[_local3 + 1].X - _local5) < this.cDM);
}
if (_local6) {
if (this.vBCurCol == 78) {
if (((this.BB[((_local4 - 3) * 19) + _local2].COL != 0) && (this.BB[((_local4 - 3) * 19) + _local2].COL != 100)) && ((((_local4 - 3) * 19) + _local2) > 19)) {
this.vBBI = ((_local4 - 3) * 19) + _local2;
this.spyColor = this.BB[this.vBBI].COL;
} else if (((this.BB[((_local4 - 4) * 19) + _local2].COL != 0) && (this.BB[((_local4 - 4) * 19) + _local2].COL != 100)) && ((((_local4 - 4) * 19) + _local2) > 19)) {
this.vBBI = ((_local4 - 4) * 19) + _local2;
this.spyColor = this.BB[this.vBBI].COL;
} else if (((this.BB[((_local4 - 5) * 19) + _local2].COL != 0) && (this.BB[((_local4 - 5) * 19) + _local2].COL != 100)) && ((((_local4 - 5) * 19) + _local2) > 19)) {
this.vBBI = ((_local4 - 5) * 19) + _local2;
this.spyColor = this.BB[this.vBBI].COL;
} else {
this.vBBI = (_local4 * 19) + _local2;
this.spyColor = this.BB[this.vBBI].COL;
if (Math.abs(AAng) > 20) {
if (this.side == "left") {
if (this.BB[this.vBBI + 1].COL != 100) {
if ((this.spyColor == 0) || (this.spyColor == undefined)) {
this.spyColor = this.BB[this.vBBI + 1].COL;
}
}
} else if (this.BB[this.vBBI - 1].COL != 100) {
if ((this.spyColor == 0) || (this.spyColor == undefined)) {
this.spyColor = this.BB[this.vBBI - 1].COL;
}
}
}
}
} else {
this.vBBI = (_local4 * 19) + _local2;
}
if (this.side == "right") {
this.bubSide = 1;
} else {
this.bubSide = -1;
}
this.vTX = this.BB[this.vBBI].X;
this.vTY = this.BB[this.vBBI].Y;
if (this.vTC == 0) {
this.vTLDist = ((this.vX - this.vTX) * (this.vX - this.vTX)) + ((this.vY - this.vTY) * (this.vY - this.vTY));
}
break;
}
_local11 = _local4;
}
_local10 = _local2;
}
};
_local2.BCurMove = function () {
var _local6;
var _local7;
var _local2 = Math.round((this.vX - this.cB) / this.cD);
var _local3 = Math.round((this.vY - this.cB) / this.cD);
_local3 = int((this.vY - this.cB) / this.cD) + 1;
if ((_local3 % 2) && (!(this.BrRows % 2))) {
_local2 = int((this.vX - this.cB) / this.cD) + 1;
} else if ((!(_local3 % 2)) && (!(this.BrRows % 2))) {
_local2 = int(((this.vX - this.cB) - this.cR) / this.cD) + 1;
} else if ((_local3 % 2) && (this.BrRows % 2)) {
_local2 = int(((this.vX - this.cB) - this.cR) / this.cD) + 1;
} else {
_local2 = int((this.vX - this.cB) / this.cD) + 1;
}
if (17 < _local2) {
_local2 = 17;
} else if (_local2 < 1) {
_local2 = 1;
}
var _local5 = (_local3 * 19) + _local2;
var _local9 = ((_local3 * 19) + _local2) - 1;
var _local8 = ((_local3 * 19) + _local2) + 1;
if ((_local5 < 38) && (this.vBCurCol == 78)) {
trace("topce " + _local5);
this.vBBI = _local5;
this.vCC = this.cmBRemoveCalc;
}
var _local10 = this.vX;
this.vY = this.vY + this.vDY;
this.vX = this.vX + this.vDX;
if (((((this.BB[_local2 - 1].COL == 0) && (this.BB[_local2 + 1].COL == 0)) && (this.BB[(_local3 * 19) + (_local2 - 20)].COL == 0)) && (this.BB[(_local3 * 19) + (_local2 - 19)].COL == 0)) && (this.BB[(_local3 * 19) + (_local2 - 18)].COL == 0)) {
}
if ((this.vTC == 0) && (!this.dzid)) {
_local6 = ((this.vX - this.vTX) * (this.vX - this.vTX)) + ((this.vY - this.vTY) * (this.vY - this.vTY));
if ((_local6 < this.cDD) || (this.vTLDist < _local6)) {
this.vDX = (this.vTX - this.vX) / 4;
if (Math.abs(this.vDX) < this.vDelta2) {
this.vDX = this.vTX - this.vX;
}
this.vDY = (this.vTY - this.vY) / 4;
if (Math.abs(this.vDY) < this.vDelta2) {
this.vDY = this.vTY - this.vY;
}
}
this.vTLDist = _local6;
}
if (this.Level.levelAssets.chekWall1(this.vX, this.vY) && (!this.dzid)) {
this.dzid = true;
this.vTC--;
this.vDX = -this.vDX;
if (this.vTC == 0) {
this.vTLDist = ((this.vX - this.vTX) * (this.vX - this.vTX)) + ((this.vY - this.vTY) * (this.vY - this.vTY));
}
this.bubSide = -1 * this.bubSide;
} else if ((this.vX + this.cR) >= ((this.cR + (this.cD * 17)) + this.cB)) {
this.dzid = false;
this.vTC--;
this.vDX = -this.vDX;
this.bubSide = -1 * this.bubSide;
if (this.RoughBubble) {
this.agol = this.agol + 34;
this.agol = this.agol % 78;
this.agol = this.agol * -1;
this.BCalcDelta(this.agol);
}
if (this.SpikeBubble) {
if ((((this.vBBI == 169) || (this.vBBI == 131)) || (this.vBBI == 93)) || (this.vBBI == 55)) {
this.SpikeBubble = false;
this.spike._visible = false;
this.Level.game.sndCtrl.stopSound("spikes_out");
this.Level.game.sndCtrl.playSound("spikes_out");
}
this.vBCur.ball1.removeMovieClip();
this.vBCur.N.attachMovie("shine_up", "ball1", this.vBCur.N.getNextHighestDepth() + 1);
this.BB[this.vBBI].N.ball1.removeMovieClip();
this.BB[this.vBBI].COL = 0;
this.BB[this.vBBI].F = 0;
this.vBBI = this.getVBBI();
this.vCC = this.cmBRemoveCalc;
return(undefined);
}
if (this.vTC == 0) {
this.vTLDist = ((this.vX - this.vTX) * (this.vX - this.vTX)) + ((this.vY - this.vTY) * (this.vY - this.vTY));
}
} else if (this.cB >= (this.vX - this.cR)) {
this.dzid = false;
this.vTC--;
this.vDX = -this.vDX;
this.bubSide = -1 * this.bubSide;
if (this.RoughBubble) {
this.agol = this.agol + 34;
this.agol = this.agol % 78;
this.agol = this.agol * -1;
this.BCalcDelta(this.agol);
}
if (this.SpikeBubble) {
if (((((this.vBBI == 172) || (this.vBBI == 134)) || (this.vBBI == 96)) || (this.vBBI == 58)) || (this.vBBI == 20)) {
this.SpikeBubble = false;
this.spike._visible = false;
this.Level.game.sndCtrl.stopSound("spikes_out");
this.Level.game.sndCtrl.playSound("spikes_out");
}
this.vBCur.ball1.removeMovieClip();
this.vBCur.N.attachMovie("shine_up", "ball1", this.vBCur.N.getNextHighestDepth() + 1);
this.BB[this.vBBI].N.ball1.removeMovieClip();
this.BB[this.vBBI].COL = 0;
this.BB[this.vBBI].F = 0;
this.BB[this.vBBI].N.gotoAndPlay("Blank");
this.vBBI = this.getVBBI();
this.vCC = this.cmBRemoveCalc;
return(undefined);
}
if (this.vTC == 0) {
this.vTLDist = ((this.vX - this.vTX) * (this.vX - this.vTX)) + ((this.vY - this.vTY) * (this.vY - this.vTY));
}
}
if (((_local5 == this.vBBI) || (_local9 == this.vBBI)) || (_local8 == this.vBBI)) {
this.dzid = false;
_local7 = this.BB[this.vBBI].N;
this.BB[this.vBBI].N = this.vBCur;
this.BB[this.vBBI].COL = this.vBCurCol;
this.BB[this.vBBI].N._x = this.BB[this.vBBI].X;
this.BB[this.vBBI].N._y = this.BB[this.vBBI].Y;
this.BB[this.vBBI].N.ball1.removeMovieClip();
this.BB[this.vBBI].N.attachMovie("Splash" + this.BB[this.vBBI].COL, "ball1", this.BB[this.vBBI].N.getNextHighestDepth() + 1);
_local7._x = this.vXCur;
_local7._y = this.vYCur;
this.vBCur = _local7;
this.vCC = this.cmBRemoveCalc;
if (this.Double) {
this.BMakeDouble();
this.vCC = this.cmBMCalc;
this.vAngle = this.vAngle * -1;
this.Double = false;
this.Double2 = 3;
}
var _local4 = int(this.vBBI / 19);
this.col = this.BB[this.vBBI].COL;
this.iD = this.vBBI;
this.SetConection();
if (this.BB[this.vBBI].COL == 71) {
this.MoralBoostBubbleAction();
}
if (this.BB[this.vBBI].COL == 72) {
this.TransmutationFunction();
}
if (this.BB[this.vBBI].COL == 74) {
this.MorphFunction();
}
if (this.BB[this.vBBI].COL == 75) {
this.TimeBubbleFunction();
}
if (this.BB[this.vBBI].COL == 76) {
this.FunctionShieldBubble();
}
if (this.BB[this.vBBI].COL == 77) {
this.AssaultBubbleFunction();
}
if (this.BB[this.vBBI].COL == 78) {
this.SpyBubbleFunction2();
}
if (this.BB[this.vBBI + 1].COL == 61) {
this.MakeLightningBubble(this.vBBI + 1);
}
if (this.BB[this.vBBI - 1].COL == 61) {
this.MakeLightningBubble(this.vBBI - 1);
}
if (this.BB[this.vBBI - 19].COL == 61) {
this.MakeLightningBubble(this.vBBI - 19);
}
if ((_local4 % 2) == 0) {
if (this.BB[this.vBBI - 18].COL == 61) {
this.MakeLightningBubble(this.vBBI - 18);
}
} else if (this.BB[this.vBBI - 20].COL == 61) {
this.MakeLightningBubble(this.vBBI - 20);
}
if (this.BB[this.vBBI + 1].COL == 62) {
this.MakeIceBubble(this.vBBI + 1);
}
if (this.BB[this.vBBI - 1].COL == 62) {
this.MakeIceBubble(this.vBBI - 1);
}
if (this.BB[this.vBBI - 19].COL == 62) {
this.MakeIceBubble(this.vBBI - 19);
}
if ((_local4 % 2) == 0) {
if (this.BB[this.vBBI - 18].COL == 62) {
this.MakeIceBubble(this.vBBI - 18);
}
} else if (this.BB[this.vBBI - 20].COL == 62) {
this.MakeIceBubble(this.vBBI - 20);
}
if (this.BB[this.vBBI + 1].COL == 63) {
this.MakeMirrorBubble(this.vBBI + 1);
}
if (this.BB[this.vBBI - 1].COL == 63) {
this.MakeMirrorBubble(this.vBBI - 1);
}
if (this.BB[this.vBBI - 19].COL == 63) {
this.MakeMirrorBubble(this.vBBI - 19);
}
if ((_local4 % 2) == 0) {
if (this.BB[this.vBBI - 18].COL == 63) {
this.MakeMirrorBubble(this.vBBI - 18);
}
} else if (this.BB[this.vBBI - 20].COL == 63) {
this.MakeMirrorBubble(this.vBBI - 20);
}
if (this.BB[this.vBBI + 1].COL == 64) {
this.MakeHeatBubble(this.vBBI + 1);
}
if (this.BB[this.vBBI - 1].COL == 64) {
this.MakeHeatBubble(this.vBBI - 1);
}
if (this.BB[this.vBBI - 19].COL == 64) {
this.MakeHeatBubble(this.vBBI - 19);
}
if ((_local4 % 2) == 0) {
if (this.BB[this.vBBI - 18].COL == 64) {
this.MakeHeatBubble(this.vBBI - 18);
}
} else if (this.BB[this.vBBI - 20].COL == 64) {
this.MakeHeatBubble(this.vBBI - 20);
}
if (this.BB[this.vBBI + 1].COL == 67) {
this.MakeAccelerationBubble(this.vBBI + 1);
}
if (this.BB[this.vBBI - 1].COL == 67) {
this.MakeAccelerationBubble(this.vBBI - 1);
}
if (this.BB[this.vBBI - 19].COL == 67) {
this.MakeAccelerationBubble(this.vBBI - 19);
}
if ((_local4 % 2) == 0) {
if (this.BB[this.vBBI - 18].COL == 67) {
this.MakeAccelerationBubble(this.vBBI - 18);
}
} else if (this.BB[this.vBBI - 20].COL == 67) {
this.MakeAccelerationBubble(this.vBBI - 20);
}
if (this.BB[this.vBBI + 1].COL == 68) {
this.MakeStarBubble(this.vBBI + 1);
}
if (this.BB[this.vBBI - 1].COL == 68) {
this.MakeStarBubble(this.vBBI - 1);
}
if (this.BB[this.vBBI - 19].COL == 68) {
this.MakeStarBubble(this.vBBI - 19);
}
if ((_local4 % 2) == 0) {
if (this.BB[this.vBBI - 18].COL == 68) {
this.MakeStarBubble(this.vBBI - 18);
}
} else if (this.BB[this.vBBI - 20].COL == 68) {
this.MakeStarBubble(this.vBBI - 20);
}
if (this.BB[this.vBBI + 1].COL == 66) {
this.MakeRoughBubble(this.vBBI + 1);
}
if (this.BB[this.vBBI - 1].COL == 66) {
this.MakeRoughBubble(this.vBBI - 1);
}
if (this.BB[this.vBBI - 19].COL == 66) {
this.MakeRoughBubble(this.vBBI - 19);
}
if ((_local4 % 2) == 0) {
if (this.BB[this.vBBI - 18].COL == 66) {
this.MakeRoughBubble(this.vBBI - 18);
}
} else if (this.BB[this.vBBI - 20].COL == 66) {
this.MakeRoughBubble(this.vBBI - 20);
}
if (this.BB[this.vBBI + 1].COL == 65) {
this.MakeSpikeBubble(this.vBBI + 1);
}
if (this.BB[this.vBBI - 1].COL == 65) {
this.MakeSpikeBubble(this.vBBI - 1);
}
if (this.BB[this.vBBI - 19].COL == 65) {
this.MakeSpikeBubble(this.vBBI - 19);
}
if ((_local4 % 2) == 0) {
if (this.BB[this.vBBI - 18].COL == 65) {
this.MakeSpikeBubble(this.vBBI - 18);
}
} else if (this.BB[this.vBBI - 20].COL == 65) {
this.MakeSpikeBubble(this.vBBI - 20);
}
} else {
this.vBCur._x = this.vX;
this.vBCur._y = this.vY;
}
};
_local2.MakeSpikeBubble = function (Num) {
this.game_backround.attachMovie("kopja_mc", "kopja_mc", 107, {_x:-49, _y:-50});
this.game_backround.kopja_mc.cacheAsBitmap = true;
trace("##################__________________MakeSpikeBubble_____________##############");
var _local3 = 0;
while (_local3 < 17) {
var _local2 = 20 + (19 * _local3);
var _local4 = 36 + (19 * _local3);
if (this.BB[_local2].COL > 0) {
this.BB[_local2].N.ball1.removeMovieClip();
this.Explosion(this.BB[_local2]);
this.BB[_local2].COL = 0;
this.BB[_local2].F = 0;
}
if (this.BB[_local4].COL > 0) {
this.BB[_local4].N.ball1.removeMovieClip();
this.Explosion(this.BB[_local2]);
this.BB[_local4].COL = 0;
this.BB[_local4].F = 0;
}
_local3++;
}
this.BB[Num].N.ball1.removeMovieClip();
this.Explosion(this.BB[Num]);
this.Level.game.sndCtrl.stopSound("spikes_in");
this.Level.game.sndCtrl.playSound("spikes_in");
this.BB[Num].COL = 0;
this.BB[Num].F = 0;
this.vRBC = 0;
this.KRemove(this.vBBI);
};
_local2.MakeRoughBubble = function (Num) {
this.RoughBubble = true;
this.RoughBubbleTime = getTimer();
this.BB[Num].N.ball1.removeMovieClip();
this.Explosion(this.BB[Num]);
this.zavesa.jaze.gotoAndStop(2);
this.Level.game.sndCtrl.stopSound("Jazhe");
this.Level.game.sndCtrl.playSound("Jazhe");
this.Arrow.gotoAndStop("Rough");
this.BB[Num].COL = 0;
this.BB[Num].F = 0;
this.vRBC = 0;
this.KRemove(this.vBBI);
};
_local2.MakeStarBubble = function (Num) {
this.game_backround.attachMovie("stars_mc", "stars_mc", 2007, {_x:358, _y:222});
var _local8 = 0;
while (23 > _local8) {
var _local4 = 0;
while (19 > _local4) {
var _local3 = (_local8 * 19) + _local4;
if ((this.BB[_local3].COL == this.BB[this.vBBI].COL) && (this.BB[_local3] != this.BB[this.vBBI])) {
this.BB[_local3].N.ball1.removeMovieClip();
this.Explosion(this.BB[_local3]);
this.Level.curentlevelAsset.calculate(this.BB[_local3].COL);
var _local11 = this.Level.curentlevelAsset.score + this.Level.game.AllScore;
var _local9 = this.Level.curentlevelAsset.primaryResources + this.Level.game.primaryResources;
var _local7 = this.Level.curentlevelAsset.weaponResources + this.Level.game.weaponResources;
var _local10 = this.Level.curentlevelAsset.luxuryResources + this.Level.game.luxuryResources;
var _local6 = this.Level.curentlevelAsset.armi + this.Level.game.armiResources;
this.game_backround.interfaceClip.nubers.score.text = _local11;
this.game_backround.interfaceClip.nubers.pimRes.text = _local9;
this.game_backround.interfaceClip.nubers.weaRes.text = _local7;
this.game_backround.interfaceClip.nubers.luxRes.text = _local10;
this.game_backround.interfaceClip.nubers.armi.text = _local6;
this.BB[_local3].COL = 0;
this.BB[_local3].F = 0;
this.vRBC = 0;
}
_local4++;
}
_local8++;
}
this.BB[this.vBBI].N.ball1.removeMovieClip();
this.Explosion(this.BB[this.vBBI]);
this.BB[this.vBBI].COL = 0;
this.BB[this.vBBI].F = 0;
var _local12;
var _local16;
_local12 = true;
var _local3 = 19;
while (_local3 < 468) {
_local12 = ((this.BB[_local3].COL == 0) || (this.BB[_local3].COL > 80)) || (this.BB[_local3].COL == undefined);
if (!_local12) {
break;
}
_local3++;
}
if (_local12) {
this.vBonusF = true;
this.vCC = this.cmGameOver;
return(true);
}
_local3 = 228;
while (_local3 < 246) {
if (0 < this.BB[_local3].COL) {
this.vCC = this.cmGameOver;
this.vBonusF = 0;
return(false);
}
_local3++;
}
var _local5 = 20;
while (((((this.BB[_local5].COL != 100) && (this.BB[_local5].COL == 0)) && (this.BB[_local5].COL != undefined)) && (_local5 <= 156)) || (this.BB[_local5].COL > 60)) {
_local5++;
}
if (_local5 >= 37) {
this.vCC = this.cmGameOver;
this.vBonusF = true;
} else {
this.vBBI = _local5;
}
this.BB[Num].N.ball1.removeMovieClip();
this.BB[Num].N.attachMovie("Bang" + this.BB[Num].COL, "ball1", this.BB[Num].N.getNextHighestDepth() + 1);
this.BB[Num].COL = 0;
this.BB[Num].F = 0;
this.Level.game.sndCtrl.stopSound("magical_stars2");
this.Level.game.sndCtrl.playSound("magical_stars2");
this.vRBC = 0;
this.BFRemoveCalc();
var _local2 = 1;
while (_local2 < 266) {
if ((((this.BB[_local2].F == 0) && (this.BB[_local2].COL != 0)) && (this.BB[_local2].COL != 100)) && (this.BB[_local2].COL != undefined)) {
this.BB[_local2].N.ball1.removeMovieClip();
this.Explosion(this.BB[_local2]);
this.CC[this.BB[_local2].COL - 1]--;
this.BB[_local2].COL = 0;
}
_local2++;
}
};
_local2.MakeAccelerationBubble = function (Num) {
trace("MakeAccelerationBubble");
this.game_backround.attachMovie("accelerate_mc", "accelerate_mc", 2007, {_x:358, _y:222});
this.AccelerationBubble = true;
this.AccelerationBubbleTime = getTimer();
this.Level.game.GameSpeed = 10;
this.Level.timer.start();
this.BB[Num].N.ball1.removeMovieClip();
this.Explosion(this.BB[Num]);
this.Level.game.sndCtrl.stopSound("accArrow");
this.Level.game.sndCtrl.playSound("accArrow");
this.Arrow.gotoAndStop("acceleration");
this.Level.game.sndCtrl.stopSound("single_arrow");
this.Level.game.sndCtrl.playSound("single_arrow");
this.Level.game.sndCtrl.stopSound("katapult_under_spell");
this.Level.game.sndCtrl.playSound("katapult_under_spell", 32000);
this.BB[Num].COL = 0;
this.BB[Num].F = 0;
this.vRBC = 0;
this.KRemove(this.vBBI);
};
} else {
// unexpected jump
}
_local2.MakeLightningBubble = function (Num) {
this.game_backround.attachMovie("thunderStorm_mc", "thunderStorm_mc", 2007, {_x:-49, _y:-50});
this.LightBubble = true;
this.LightBubbleTime = getTimer();
this.BB[Num].N.ball1.removeMovieClip();
this.Explosion(this.BB[Num]);
if (this.Level.game.fading == false) {
this.Level.game.sndCtrl.stopSound("Lightning_sound");
this.Level.game.sndCtrl.playSound("Lightning_sound");
this.Level.game.fading = true;
this.Level.game.fadingOutSound = true;
this.Level.game.sndCtrl.stopSound("heartbeat");
this.Level.game.sndCtrl.playSound("heartbeat", 32000);
} else if (this.Level.game.fadingInSound == true) {
this.Level.game.fxVolume = this.Level.game.fxVolumeTemp;
this.Level.game.musicVolume = this.Level.game.musicVolumeTemp;
this.Level.game.sndCtrl.stopSound("Lightning_sound");
this.Level.game.sndCtrl.playSound("Lightning_sound");
this.Level.game.fading = true;
this.Level.game.fadeOut = false;
this.Level.game.fadingInSound = false;
this.Level.game.sndCtrl.stopSound("heartbeat");
this.Level.game.sndCtrl.playSound("heartbeat", 32000);
} else {
if (this.Level.game.fxVolumeTemp > 0) {
this.Level.game.sndCtrl.stopSound("Lightning_sound");
this.Level.game.sndCtrl.sounds.Lightning_sound.sound.start();
}
this.Level.game.fadeOutFinishTime = getTimer();
}
this.Level.game.fadingOutSound = true;
this.Level.game.cursor.SlowArrow();
this.Level.game.cursor.notMove = true;
this.Arrow.gotoAndStop("light");
this.BB[Num].COL = 0;
this.BB[Num].F = 0;
this.vRBC = 0;
this.KRemove(this.vBBI);
};
_local2.MakeHeatBubble = function (Num) {
this.game_backround.attachMovie("heatCatapult_mc", "heatCatapult_mc", 2007, {_x:-49, _y:-50});
this.Level.game.sndCtrl.stopSound("fire_melting");
this.Level.game.sndCtrl.playSound("fire_melting", 32000);
this.ShootTime = 2;
this.HeatBubbleTime = getTimer();
this.HeatTime = true;
this.Arrow.gotoAndStop("heat");
this.Level.game.sndCtrl.stopSound("spellSound");
this.Level.game.sndCtrl.playSound("spellSound");
this.BB[Num].N.ball1.removeMovieClip();
this.Explosion(this.BB[Num]);
this.BB[Num].COL = 0;
this.BB[Num].F = 0;
this.vRBC = 0;
this.KRemove(this.vBBI);
};
_local2.MakeIceBubble = function (Num) {
this.IceBubbleTime = getTimer();
this.game_backround.attachMovie("freeze_mc", "freeze_mc", 2007, {_x:-49, _y:-50});
this.Level.game.sndCtrl.stopSound("ice_freez");
this.Level.game.sndCtrl.playSound("ice_freez");
this.olldAngle = this.vAngle;
this.IceTime = true;
this.Arrow.gotoAndStop("ice");
this.Level.game.sndCtrl.stopSound("spellSound");
this.Level.game.sndCtrl.playSound("spellSound");
this.BB[Num].N.ball1.removeMovieClip();
this.Explosion(this.BB[Num]);
this.BB[Num].COL = 0;
this.BB[Num].F = 0;
this.vRBC = 0;
this.KRemove(this.vBBI);
};
_local2.MakeMirrorBubble = function (Num) {
this.MirrorBubbleTime = getTimer();
if (this.MirrorTime != true) {
this.Arrow._rotation = -this.vAngle;
}
this.vAngle = -this.vAngle;
this.MirrorTime = true;
this.Level.game.sndCtrl.stopSound("single_arrow");
this.Level.game.sndCtrl.playSound("single_arrow");
this.Arrow.gotoAndStop("mirror");
this.Level.game.sndCtrl.stopSound("katapult_under_spell");
this.Level.game.sndCtrl.playSound("katapult_under_spell", 32000);
this.game_backround.attachMovie("mirror_mc", "mirror_mc", 2007, {_x:358, _y:222});
this.BB[Num].N.ball1.removeMovieClip();
this.Explosion(this.BB[Num]);
this.BB[Num].COL = 0;
this.BB[Num].F = 0;
this.vRBC = 0;
this.KRemove(this.vBBI);
};
_local2.SDButton = function () {
if (this.vSound) {
this.vsDown.setPan(0);
this.vsDown.start();
}
};
_local2.FPlay = function () {
var _local2;
_local2 = random(323);
if (0 < this.BB[_local2].COL) {
this.BB[_local2].N.ball1.removeMovieClip();
this.BB[_local2].N.attachMovie("Splash" + this.BB[_local2].COL, "ball1", this.BB[_local2].N.getNextHighestDepth() + 1);
}
};
_local2.BMakeNext = function () {
if (this.wallDown) {
this.wallDown = false;
this.vCC = this.cmNothing;
return(undefined);
}
var _local2;
var _local3;
var _local4;
if (!this.aa) {
this.vRC--;
}
_local3 = true;
_local2 = 19;
while (_local2 < 468) {
_local3 = ((this.BB[_local2].COL == 0) || (this.BB[_local2].COL > 60)) || (this.BB[_local2].COL == undefined);
if (!_local3) {
break;
}
_local2++;
}
if (_local3) {
this.vBonusF = true;
this.vCC = this.cmGameOver;
return(true);
}
_local2 = 228;
while (_local2 < 246) {
if (0 < this.BB[_local2].COL) {
this.vCC = this.cmGameOver;
this.vBonusF = 0;
return(false);
}
_local2++;
}
this.vBNextCol = this.RColor();
this.vBNext._x = this.cXNext;
this.vBNext._y = this.cYNext;
this.vBNext.ball1.removeMovieClip();
this.vBNext.attachMovie("Show" + this.vBNextCol, "ball1", this.vBNext.getNextHighestDepth() + 1);
this.Level.game.game_backround.next_ball_mc.ball1.removeMovieClip();
this.Level.game.game_backround.next_ball_mc.attachMovie("Show" + this.vBNextCol, "ball1", this.Level.game.game_backround.next_ball_mc.getNextHighestDepth() + 1);
this.vCC = this.cmNothing;
};
_local2.BMakeCurrent = function () {
this.vBCurCol = this.vBNextCol;
this.vBCur._x = this.cXCur;
this.vBCur._y = this.cYCur;
var _local2 = 0;
while (_local2 < this.Level.game.HelpHints.length) {
if (this.Level.game.HelpHints[_local2].bubbleNum == this.Level.game.HelpHints[_local2 + 1].bubbleNum) {
this.Level.game.HelpHints.splice(_local2 + 1, 1);
_local2 = 0;
}
_local2++;
}
_local2 = 0;
while (_local2 < this.Level.game.HelpHints.length) {
if (this.vBCurCol == this.Level.game.HelpHints[_local2].bubbleNum) {
this.Level.game.HelpHints[_local2].init();
this.Level.game.HelpHints.splice(_local2, 1);
}
_local2++;
}
this.Arrow.bubble.ball1.removeMovieClip();
this.Arrow.gotoAndStop("prepare");
if (this.IceTime) {
this.Arrow.gotoAndPlay("ice");
}
this.Arrow.bubble.attachMovie("Show" + this.vBCurCol, "ball1", this.Arrow.bubble.getNextHighestDepth() + 1);
this.game_backround.interfaceClip.attachMovie("motionBurst", "motionBurst", 2007, {_x:175, _y:420});
this.vBCur.ball1.removeMovieClip();
this.vBCur.attachMovie("Show" + this.vBCurCol, "ball1", this.vBCur.getNextHighestDepth() + 1);
this.Level.game.game_backround.curent_ball_mc.ball1.removeMovieClip();
this.Level.game.game_backround.curent_ball_mc.attachMovie("Start" + this.vBCurCol, "ball1", this.Level.game.game_backround.curent_ball_mc.getNextHighestDepth() + 1);
this.vCC = this.cmBMakeNext;
};
_local2.BMakeDouble = function () {
this.vRBC = 0;
this.BRemoveCalc(this.BB[this.vBBI].R, this.BB[this.vBBI].C, this.BB[this.vBBI].COL);
if (this.vRBC >= 3) {
while (this.RB.length != 0) {
this.BRemove();
}
}
this.vBCurCol = this.vBCurCol;
this.vBCur._x = this.cXCur;
this.vBCur._y = this.cYCur;
this.vBCur.ball1.removeMovieClip();
this.vBCur.attachMovie("Show" + this.vBCurCol, "ball1", this.vBCur.getNextHighestDepth() + 1);
this.Level.game.game_backround.curent_ball_mc.ball1.removeMovieClip();
this.Level.game.game_backround.curent_ball_mc.attachMovie("Start" + this.vBCurCol, "ball1", this.Level.game.game_backround.curent_ball_mc.getNextHighestDepth() + 1);
this.Arrow.gotoAndPlay(1);
};
_local2.BRemoveCalc = function (AR, AC, ACol) {
var _local2;
var _local6;
_local6 = (AR * 19) + AC;
_local2 = 0;
while (_local2 < this.vRBC) {
if (this.RB[_local2] == _local6) {
return(false);
}
_local2++;
}
if (this.BB[_local6].COL == ACol) {
this.RB[this.vRBC] = _local6;
this.vRBC++;
} else {
this.vCC = this.cmBMakeCur;
return(false);
}
if (AR % 2) {
this.BRemoveCalc(AR - 1, AC, ACol);
this.BRemoveCalc(AR - 1, AC - 1, ACol);
this.BRemoveCalc(AR + 1, AC, ACol);
this.BRemoveCalc(AR + 1, AC - 1, ACol);
} else {
this.BRemoveCalc(AR - 1, AC, ACol);
this.BRemoveCalc(AR - 1, AC + 1, ACol);
this.BRemoveCalc(AR + 1, AC, ACol);
this.BRemoveCalc(AR + 1, AC + 1, ACol);
}
this.BRemoveCalc(AR, AC - 1, ACol);
this.BRemoveCalc(AR, AC + 1, ACol);
return(true);
};
_local2.MoveRowDown = function () {
var _local4;
var _local3;
var _local2;
var _local9;
var _local8;
var _local10;
_local9 = 0;
this.NewRoll++;
_local9 = 6;
_local9 = 6 - _local9;
_local8 = 0;
while (_local9 >= _local8) {
_local4 = 15;
while (_local4 >= 1) {
_local3 = 1;
while (17 >= _local3) {
_local2 = (_local4 * 19) + _local3;
if ((this.BB[_local2 + 19].COL != 100) && (this.BB[_local2].COL != 100)) {
if (this.BB[_local2 + 19].COL != this.BB[_local2].COL) {
this.BB[_local2 + 19].COL = this.BB[_local2].COL;
if (this.BB[_local2 + 19].COL > 0) {
this.BB[_local2 + 19].N.ball1.removeMovieClip();
this.BB[_local2 + 19].N.attachMovie("Start" + this.BB[_local2 + 19].COL, "ball1", this.BB[_local2 + 19].N.getNextHighestDepth() + 1);
} else {
this.BB[_local2 + 19].N.ball1.removeMovieClip();
this.BB[_local2 + 19].N.gotoAndPlay(1);
}
}
} else if ((((this.BB[_local2 + 38].COL != 100) && (this.BB[_local2 + 19].COL == 100)) && (this.BB[_local2].COL != 100)) && (this.BB[_local2].COL != 0)) {
if (this.BB[_local2 + 38].COL != this.BB[_local2].COL) {
this.BB[_local2 + 38].COL = this.BB[_local2].COL;
if (this.BB[_local2 + 38].COL > 0) {
this.BB[_local2 + 38].N.ball1.removeMovieClip();
this.BB[_local2 + 38].N.attachMovie("Start" + this.BB[_local2 + 38].COL, "ball1", this.BB[_local2 + 38].N.getNextHighestDepth() + 1);
this.BB[_local2 + 19].N.cacheAsBitmap = true;
} else {
this.BB[_local2 + 38].N.ball1.removeMovieClip();
this.BB[_local2 + 38].N.gotoAndPlay(1);
}
}
}
_local3++;
}
_local4--;
}
var _local7;
_local7 = false;
var _local5 = 0;
while (_local5 < 228) {
if (this.BB[_local5].COL == 100) {
_local7 = true;
break;
}
_local5++;
}
if (_local7 == false) {
_local4 = 15;
while (_local4 > 1) {
_local3 = 1;
while (17 >= _local3) {
_local2 = (_local4 * 19) + _local3;
if ((((this.BB[_local2].COL != 0) && (this.BB[_local2 - 19].COL == 0)) && (this.BB[_local2 - 18].COL == 0)) && ((_local4 % 2) == 0)) {
"go menuvam " + _local2;
this.BB[_local2 - 1].COL = this.BB[_local2].COL;
this.BB[_local2 - 1].N.ball1.removeMovieClip();
this.BB[_local2 - 1].N.attachMovie("Start" + this.BB[_local2 - 1].COL, "ball1", this.BB[_local2 - 1].N.getNextHighestDepth() + 1);
this.BB[_local2].COL = 0;
this.BB[_local2].N.ball1.removeMovieClip();
}
if ((((this.BB[_local2].COL != 0) && (this.BB[_local2 - 19].COL == 0)) && (this.BB[_local2 - 20].COL == 0)) && ((_local4 % 2) == 1)) {
this.BB[_local2 + 1].COL = this.BB[_local2].COL;
this.BB[_local2 + 1].N.ball1.removeMovieClip();
this.BB[_local2 + 1].N.attachMovie("Start" + this.BB[_local2 + 1].COL, "ball1", this.BB[_local2 + 1].N.getNextHighestDepth() + 1);
this.BB[_local2].COL = 0;
this.BB[_local2].N.ball1.removeMovieClip();
}
_local3++;
}
_local4--;
}
}
_local2 = 20;
while (_local2 < 37) {
if (this.BB[_local2].COL != 100) {
this.BB[_local2].COL = this.RColor();
this.BB[_local2].N.ball1.removeMovieClip();
this.BB[_local2].N.attachMovie("Start" + this.BB[_local2].COL, "ball1", this.BB[_local2].N.getNextHighestDepth() + 1);
}
_local2++;
}
_local2 = 228;
while (_local2 < 246) {
if (0 < this.BB[_local2].COL) {
this.vCC = this.cmGameOver;
this.vBonusF = 0;
return(false);
}
_local2++;
}
_local8++;
}
if (_local7) {
this.BFRemoveCalc();
var _local6 = 0;
while (_local6 < 236) {
if (this.BB[_local6].F == 0) {
this.BB[_local6].N.ball1.removeMovieClip();
this.Explosion(this.BB[_local6]);
this.BB[_local6].COL = 0;
this.BB[_local6].F = 0;
}
_local6++;
}
this.vCC = this.cmNothing;
this.wallDown = true;
return(undefined);
}
return(true);
};
_local2.MoveWallDown = function () {
var _local6;
var _local4;
var _local5;
var _local3;
this.Level.game.game_backround.wall._y = this.Level.game.game_backround.wall._y + 32;
_local6 = 0;
while (23 > _local6) {
_local4 = 0;
while (19 > _local4) {
_local3 = (_local6 * 19) + _local4;
_local5 = ((_local6 * 19) + _local4) + this.NumOfColum;
this.BB[_local3].X = this.BB[_local5].X;
this.BB[_local3].Y = this.BB[_local5].Y;
this.BB[_local3].C = this.BB[_local5].C;
this.BB[_local3].N._y = this.BB[_local3].Y;
this.BB[_local3].N._x = this.BB[_local3].X;
_local4++;
}
_local6++;
}
_global.temp--;
this.BrRows++;
return(true);
};
_local2.ChekConektion = function (poz, WallId) {
if ((poz < 20) || (poz > 264)) {
return(undefined);
}
var _local4 = int(poz / 19);
if ((_local4 % 2) == 0) {
if ((this.BB[poz - 18].COL > 0) && (this.BB[poz - 18].CONECT != true)) {
this.BB[poz - 18].CONECT = true;
this.BB[poz - 18].ConID = WallId;
this.ChekConektion(poz - 18, WallId);
}
if ((this.BB[poz + 20].COL > 0) && (this.BB[poz + 20].CONECT != true)) {
this.BB[20].CONECT = true;
this.BB[poz + 20].ConID = WallId;
this.ChekConektion(poz + 20, WallId);
}
} else {
if ((this.BB[poz - 20].COL > 0) && (this.BB[poz - 20].CONECT != true)) {
this.BB[poz - 20].CONECT = true;
this.BB[poz - 20].ConID = WallId;
this.ChekConektion(poz - 20, WallId);
}
if ((this.BB[poz + 18].COL > 0) && (this.BB[poz + 18].CONECT != true)) {
this.BB[poz + 18].CONECT = true;
this.BB[poz + 18].ConID = WallId;
this.ChekConektion(poz + 18, WallId);
}
}
if ((this.BB[poz - 19].COL > 0) && (this.BB[poz - 19].CONECT != true)) {
this.BB[poz - 19].CONECT = true;
this.BB[poz - 19].ConID = WallId;
this.ChekConektion(poz - 19, WallId);
}
if ((this.BB[poz - 1].COL > 0) && (this.BB[poz - 1].CONECT != true)) {
this.BB[poz - 1].CONECT = true;
this.BB[poz - 1].ConID = WallId;
this.ChekConektion(poz - 1, WallId);
}
if ((this.BB[poz + 1].COL > 0) && (this.BB[poz + 1].CONECT != true)) {
this.BB[poz + 1].CONECT = true;
this.BB[poz + 1].ConID = WallId;
this.ChekConektion(poz + 1, WallId);
}
if ((this.BB[poz + 19].COL > 0) && (this.BB[poz + 19].CONECT != true)) {
this.BB[poz + 19].CONECT = true;
this.BB[poz + 19].ConID = WallId;
this.ChekConektion(poz + 19, WallId);
}
};
_local2.BRemove = function () {
var _local2;
var _local12;
var _local4;
var _local3;
_local3 = 0;
_local4 = 0;
if (0 < this.vRBC) {
this.vBBI = this.RB.shift();
this.vRBC--;
if (this.MorphBubbleNumber == this.vBBI) {
this.MorphBubbleNumber = undefined;
this.Morphtime = undefined;
}
if (this.BB[this.vBBI].COL != 100) {
if ((this.BB[this.vBBI].ConID != this.BB[this.iD].ConID) && (this.BB[this.vBBI].CONECT == true)) {
trace("!!!!return 0");
}
if (((this.col != this.BB[this.vBBI].COL) && (this.BB[this.vBBI].ConID != this.BB[this.iD].ConID)) && (this.BB[this.vBBI].CONECT == true)) {
trace("return 1");
return(undefined);
}
if ((this.col != this.BB[this.vBBI].COL) && (this.BB[this.vBBI].CONECT == true)) {
trace("return 2");
return(undefined);
}
if (this.BB[this.vBBI].COL == this.vBCurCol) {
if (this.dropTime == false) {
this.BangColor[this.shotNum] = this.vBCurCol;
this.BangScore[this.shotNum]++;
} else if (this.dropTime == true) {
this.DropScore[this.shotNum]++;
this.Level.game.game_backround.drop.text = this.DropScore[this.shotNum];
}
this.Level.game.game_backround.bang.text = this.BangScore[this.shotNum];
} else {
this.dropTime = true;
this.DropScore[this.shotNum]++;
this.Level.game.game_backround.drop.text = this.DropScore[this.shotNum];
}
_local2 = 0;
while (_local2 < this.BangScore.length) {
_local4 = _local4 + this.BangScore[_local2];
_local3 = _local3 + this.DropScore[_local2];
_local2++;
}
if (this.shotNum >= this.BangScore.length) {
this.BangColor.push(0);
this.BangScore.push(0);
this.DropScore.push(0);
}
this.Level.game.game_backround.allBang.text = _local4;
this.Level.game.game_backround.allDrop.text = _local3;
if (this.BonusProcent < 57) {
this.BonusProcent++;
this.BonusProcent = this.BonusProcent + this.bonusUpgrades;
this.setProcent();
this.BonusButton.maska._y = this.BonusButton.maska._y - (1 + this.bonusUpgrades);
} else if (((this.BonusProcent == 57) || (this.BonusProcent == 58)) && (this.BonusButton != undefined)) {
if (this.Level.levelAssets.popapForBonus) {
this.popupForBonus();
this.Level.levelAssets.popapForBonus = false;
}
this.game_backround.interfaceClip.attachMovie("shine", "shine", 6, {_x:this.BonusButton._x, _y:this.BonusButton._y});
this.BonusButton.attachMovie("bonusAnim_mc", "bonusAnim_mc", 6, {_x:this.BonusButton.f._x * -1, _y:this.BonusButton.f._y * -1});
this.Level.game.sndCtrl.stopSound("bonus_powerUp");
this.Level.game.sndCtrl.playSound("bonus_powerUp");
this.BonusProcent++;
this.setProcent();
}
this.Score[this.BB[this.vBBI].COL]++;
this.Score[0]++;
if ((this.Level.curentlevelAsset.score + this.Level.game.AllScore) >= this.Level.game.LiveScore) {
this.Level.game.LiveScore = this.Level.game.LiveScore + 20000;
this.Level.game.sndCtrl.stopSound("newLife");
this.Level.game.sndCtrl.playSound("newLife");
this.Level.game.Life++;
this.game_backround.interfaceClip.nubers.live.text = this.Level.game.Life;
this.game_backround.interfaceClip.attachMovie("shineRed_newLife", "shineRed_newLife", 1071, {_x:450.9, _y:38.8});
}
this.Level.game.game_backround["score_id" + this.BB[this.vBBI].COL].text = this.Score[this.BB[this.vBBI].COL];
this.Level.game.game_backround.all_score.text = this.Score[0];
this.Level.curentlevelAsset.calculate(this.BB[this.vBBI].COL);
var _local9 = this.Level.curentlevelAsset.score + this.Level.game.AllScore;
var _local7 = this.Level.curentlevelAsset.primaryResources + this.Level.game.primaryResources;
var _local6 = this.Level.curentlevelAsset.weaponResources + this.Level.game.weaponResources;
var _local8 = this.Level.curentlevelAsset.luxuryResources + this.Level.game.luxuryResources;
var _local5 = this.Level.curentlevelAsset.armi + this.Level.game.armiResources;
this.game_backround.interfaceClip.nubers.score.text = _local9;
this.game_backround.interfaceClip.nubers.pimRes.text = _local7;
this.game_backround.interfaceClip.nubers.weaRes.text = _local6;
this.game_backround.interfaceClip.nubers.luxRes.text = _local8;
this.game_backround.interfaceClip.nubers.armi.text = _local5;
this.BB[this.vBBI].N.ball1.removeMovieClip();
this.Explosion(this.BB[this.vBBI]);
this.CC[this.BB[this.vBBI].COL - 1]--;
this.BB[this.vBBI].COL = 0;
this.Level.levelAssets.chekForBonus(this.BangScore, this.DropScore, this.shotNum, this.BangColor);
}
} else if (this.vRemove) {
this.vCC = this.cmBFRemoveCalc;
this.ChanceInMoment++;
} else {
this.vCC = this.cmBHideNext;
}
};
_local2.SetConection = function () {
var _local3 = 0;
while (_local3 < 300) {
this.BB[_local3].CONECT = false;
this.BB[_local3].ConID = 0;
_local3++;
}
var _local2 = 0;
while (_local2 < 282) {
if (this.BB[_local2].COL == 100) {
this.ChekConektion(_local2, _local2);
}
_local2++;
}
};
_local2.BFRemoveCalc = function () {
function _BFR(AI, BubbleGame) {
var _local1 = BubbleGame;
if ((_local1.BB[AI].COL == undefined) || (_local1.BB[AI].F == undefined)) {
_local1.vCC = _local1.cmBMakeCur;
return(undefined);
}
if ((_local1.BB[AI].COL == 0) || (_local1.BB[AI].F == 1)) {
return(false);
}
_local1.BB[AI].F = 1;
if (int(AI / 19) % 2) {
_BFR(AI - 19, _local1);
_BFR(AI - 20, _local1);
_BFR(AI + 19, _local1);
_BFR(AI + 18, _local1);
} else {
_BFR(AI - 19, _local1);
_BFR(AI - 18, _local1);
_BFR(AI + 19, _local1);
_BFR(AI + 20, _local1);
}
_BFR(AI - 1, _local1);
_BFR(AI + 1, _local1);
return(true);
}
this.SetConection();
var _local2;
var _local5;
var _local4;
_local2 = 20;
while (_local2 < 323) {
this.BB[_local2].F = 0;
_local2++;
}
_local2 = 0;
while (_local2 < 323) {
if (this.BB[_local2].COL == 100) {
_BFR(_local2, this);
}
_local2++;
}
_local2 = 1;
while (17 >= _local2) {
if (((0 < this.BB[19 + _local2].COL) && (this.BB[_local2].COL < 100)) && (this.BB[19 + _local2].F == 0)) {
_BFR(19 + _local2, this);
}
_local2++;
}
this.vRBC = 0;
_local2 = 20;
while (_local2 < 323) {
if (((0 < this.BB[_local2].COL) && (this.BB[_local2].COL < 100)) && (this.BB[_local2].F == 0)) {
this.RB[this.vRBC] = _local2;
this.vRBC++;
}
_local2++;
}
return(this.vRBC);
};
_local2.MoveTilles = function () {
var _local2 = 0;
while (_local2 < 330) {
if (this.BB[_local2].COL == 100) {
this.BB[_local2].N.ball1.gotoAndStop("up");
}
_local2++;
}
};
_local2.GameOver = function () {
this.Level.game.GameSpeed = 20;
this.Level.timer.start();
var _local3 = 0;
while (_local3 < this.Points.length) {
this.Points[_local3].removeMovieClip();
_local3++;
}
this.withHelpPoints = false;
if (this.vBonusF) {
if (this.pauseInGame) {
return(undefined);
}
var _local2 = 19;
while (_local2 < 356) {
if (this.BB[_local2].COL > 60) {
this.BB[_local2].N.ball1.removeMovieClip();
this.Explosion(this.BB[_local2]);
this.BB[_local2].COL = 0;
this.BB[_local2].F = 0;
}
_local2++;
}
this.vBonus = this.vSC;
this.vCC = this.cmNothing;
this.Level.levelAssets.passLevelPoints();
this.zavesa.gotoAndPlay("up");
this.Level.game.sndCtrl.stopSound("curtain_end_level1");
this.Level.game.sndCtrl.playSound("curtain_end_level1");
this.game_backround.interfaceClip.swapDepths(5000);
this.Arrow.swapDepths(5001);
this.pauseInGame = true;
this.MoveTilles();
this.Level.game.zavesa = 1;
this.Level.game.endLevel();
} else {
this.Level.timer.stop();
this.Level.game.Life = this.Level.game.Life - 1;
if (this.Level.game.Life > 0) {
this.vBonus = 0;
this.vCC = this.cmNothing;
this.pauseInGame;
this.Level.game.LoastLife = true;
this.Level.game.lostLevel();
} else {
this.vBonus = 0;
this.vCC = this.cmNothing;
this.Level.timer.stop();
this.Level.game.attachMovie("game_OVER_screen", "game_OVER_screen", 2010);
this.Level.game.sndCtrl.stopSound(this.Level.game.currentMusic);
this.Level.game.sndCtrl.playSound("game_over");
this.Level.game.currentMusic = "game_over";
this.Level.game.sndCtrl.stopAllSounds();
this.Level.game.game_OVER_screen.score.text = this.Level.game.AllScore + this.Level.curentlevelAsset.score;
this.addEvents();
}
}
this.vDialog = true;
};
_local2.MoralBoostBubble = function () {
this.vBCurCol = 71;
this.moralBoostFlag = true;
this.vBCur.gotoAndPlay("Show" + this.vBCurCol);
this.Level.game.sndCtrl.stopSound("Moral_prepare2");
this.Level.game.sndCtrl.playSound("Moral_prepare2");
this.Level.game.game_backround.curent_ball_mc.ball1.removeMovieClip();
this.Level.game.game_backround.curent_ball_mc.attachMovie("Start" + this.vBCurCol, "ball1", this.Level.game.game_backround.curent_ball_mc.getNextHighestDepth() + 1);
this.Arrow.bubble.ball1.removeMovieClip();
this.Arrow.bubble.attachMovie("Show" + this.vBCurCol, "ball1", this.Arrow.bubble.getNextHighestDepth() + 1);
this.Arrow.bubble.attachMovie("bonusAnim_mc", "bonusAnim_mc", this.Arrow.bubble.getNextHighestDepth() + 8);
this.Arrow.bubble.attachMovie("shine", "shine", this.Arrow.bubble.getNextHighestDepth() - 300);
};
_local2.MoralBoostBubbleAction = function () {
this.BB[this.vBBI].COL == 71;
var _local6 = int(this.vBBI / 19);
_local6 = _local6 - 1;
var _local7 = this.vBBI % 19;
var _local4 = _local7;
while (_local4 <= 17) {
var _local2 = _local4 + (19 * _local6);
if ((this.BB[_local2].COL > 0) && (this.BB[_local2].COL < 100)) {
this.BB[_local2].N.ball1.removeMovieClip();
this.Explosion(this.BB[_local2]);
this.BB[_local2].COL = 0;
this.BB[_local2].F = 0;
} else {
break;
}
_local4++;
}
var _local3 = _local7 - 1;
while (_local3 >= 1) {
var _local2 = _local3 + (19 * _local6);
if ((this.BB[_local2].COL > 0) && (this.BB[_local2].COL < 100)) {
this.BB[_local2].N.ball1.removeMovieClip();
this.Explosion(this.BB[_local2]);
this.BB[_local2].COL = 0;
this.BB[_local2].F = 0;
} else {
break;
}
_local3--;
}
this.BB[this.vBBI].N.ball1.removeMovieClip();
this.Explosion(this.BB[this.vBBI]);
this.BB[this.vBBI].COL = 0;
this.BB[this.vBBI].F = 0;
this.vRBC = 0;
this.BFRemoveCalc();
var _local2 = 1;
while (_local2 < 266) {
if ((((this.BB[_local2].F == 0) && (this.BB[_local2].COL != 0)) && (this.BB[_local2].COL != 100)) && (this.BB[_local2].COL != undefined)) {
this.BB[_local2].N.ball1.removeMovieClip();
this.Explosion(this.BB[_local2]);
this.CC[this.BB[_local2].COL - 1]--;
this.BB[_local2].COL = 0;
}
_local2++;
}
var _local5 = 25;
while ((this.BB[_local5].COL == 0) && (_local5 < 49)) {
_local5++;
}
if (_local5 == 49) {
this.vCC = this.cmGameOver;
this.vBonusF = true;
return(undefined);
}
this.vBBI = _local5;
};
_local2.TransmutationBonusBubble = function () {
this.vBCurCol = 72;
this.Level.game.sndCtrl.stopSound("bonus_powerUp");
this.Level.game.sndCtrl.playSound("bonus_powerUp");
this.vBCur.gotoAndPlay("Show" + this.vBCurCol);
this.Level.game.game_backround.curent_ball_mc.gotoAndPlay("Start" + this.vBCurCol);
this.Arrow.bubble.ball1.removeMovieClip();
this.Arrow.bubble.attachMovie("Show" + this.vBCurCol, "ball1", this.Arrow.bubble.getNextHighestDepth() + 1);
this.Arrow.bubble.attachMovie("bonusAnim_mc", "bonusAnim_mc", this.Arrow.bubble.getNextHighestDepth() + 8);
this.Arrow.bubble.attachMovie("shine", "shine", this.Arrow.bubble.getNextHighestDepth() - 300);
};
_local2.TransmutationFunction = function () {
this.Level.game.sndCtrl.stopSound("Transmutation");
this.Level.game.sndCtrl.playSound("Transmutation");
if ((this.BB[this.vBBI - 19].COL != 0) && (this.BB[this.vBBI - 19].COL != 100)) {
this.BB[this.vBBI - 19].COL = 26;
this.BB[this.vBBI - 19].N.ball1.removeMovieClip();
this.BB[this.vBBI - 19].N.attachMovie("Show" + this.BB[this.vBBI - 19].COL, "ball1", this.BB[this.vBBI - 19].N.getNextHighestDepth() + 1);
}
if ((this.BB[this.vBBI - 1].COL != 0) && (this.BB[this.vBBI - 1].COL != 100)) {
this.BB[this.vBBI - 1].COL = 26;
this.BB[this.vBBI - 1].N.ball1.removeMovieClip();
this.BB[this.vBBI - 1].N.attachMovie("Show" + this.BB[this.vBBI - 1].COL, "ball1", this.BB[this.vBBI - 1].N.getNextHighestDepth() + 1);
}
if ((this.BB[this.vBBI + 1].COL != 0) && (this.BB[this.vBBI + 1].COL != 100)) {
this.BB[this.vBBI + 1].COL = 26;
this.BB[this.vBBI + 1].N.ball1.removeMovieClip();
this.BB[this.vBBI + 1].N.attachMovie("Show" + this.BB[this.vBBI + 1].COL, "ball1", this.BB[this.vBBI + 1].N.getNextHighestDepth() + 1);
}
var _local2 = int(this.vBBI / 19);
if ((_local2 % 2) == 0) {
if ((this.BB[this.vBBI - 18].COL != 0) && (this.BB[this.vBBI - 18].COL != 100)) {
this.BB[this.vBBI - 18].COL = 26;
this.BB[this.vBBI - 18].N.ball1.removeMovieClip();
this.BB[this.vBBI - 18].N.attachMovie("Show" + this.BB[this.vBBI - 18].COL, "ball1", this.BB[this.vBBI - 18].N.getNextHighestDepth() + 1);
}
} else if ((this.BB[this.vBBI - 20].COL != 0) && (this.BB[this.vBBI - 20].COL != 100)) {
this.BB[this.vBBI - 20].COL = 26;
this.BB[this.vBBI - 20].N.ball1.removeMovieClip();
this.BB[this.vBBI - 20].N.attachMovie("Show" + this.BB[this.vBBI - 20].COL, "ball1", this.BB[this.vBBI - 20].N.getNextHighestDepth() + 1);
}
_local2 = int(this.vBBI / 19);
if ((_local2 % 2) == 0) {
if ((this.BB[this.vBBI + 20].COL != 0) && (this.BB[this.vBBI + 20].COL != 100)) {
this.BB[this.vBBI + 20].COL = 26;
this.BB[this.vBBI + 20].N.ball1.removeMovieClip();
this.BB[this.vBBI + 20].N.attachMovie("Show" + this.BB[this.vBBI + 20].COL, "ball1", this.BB[this.vBBI + 20].N.getNextHighestDepth() + 1);
}
} else if ((this.BB[this.vBBI + 18].COL != 0) && (this.BB[this.vBBI + 18].COL != 100)) {
this.BB[this.vBBI + 18].COL = 26;
this.BB[this.vBBI + 18].N.ball1.removeMovieClip();
this.BB[this.vBBI + 18].N.attachMovie("Show" + this.BB[this.vBBI + 18].COL, "ball1", this.BB[this.vBBI + 18].N.getNextHighestDepth() + 1);
}
if ((this.BB[this.vBBI + 19].COL != 0) && (this.BB[this.vBBI + 19].COL != 100)) {
this.BB[this.vBBI + 19].COL = 26;
this.BB[this.vBBI + 19].N.ball1.removeMovieClip();
this.BB[this.vBBI + 19].N.attachMovie("Show" + this.BB[this.vBBI + 19].COL, "ball1", this.BB[this.vBBI + 19].N.getNextHighestDepth() + 1);
}
this.BB[this.vBBI].N.ball1.removeMovieClip();
this.Explosion(this.BB[this.vBBI]);
this.BB[this.vBBI].COL = 0;
this.BB[this.vBBI].F = 0;
this.vBBI = this.getVBBI();
};
_local2.MorphBonusBubble = function () {
this.vBCurCol = 74;
this.vBCur.gotoAndPlay("Show" + this.vBCurCol);
this.Level.game.sndCtrl.stopSound("bonus_powerUp");
this.Level.game.sndCtrl.playSound("bonus_powerUp");
this.Level.game.game_backround.curent_ball_mc.gotoAndPlay("Start" + this.vBCurCol);
this.Arrow.bubble.ball1.removeMovieClip();
this.Arrow.bubble.attachMovie("Show" + this.vBCurCol, "ball1", this.Arrow.bubble.getNextHighestDepth() + 1);
this.Arrow.bubble.attachMovie("bonusAnim_mc", "bonusAnim_mc", this.Arrow.bubble.getNextHighestDepth() + 8);
this.Arrow.bubble.attachMovie("shine", "shine", this.Arrow.bubble.getNextHighestDepth() - 300);
};
_local2.getVBBI = function () {
var _local2 = 20;
while ((this.BB[_local2].COL == 0) && (_local2 < 49)) {
_local2++;
}
if (_local2 == 49) {
this.vCC = this.cmGameOver;
this.vBonusF = true;
return(undefined);
}
return(_local2);
};
_local2.MorphFunction = function () {
this.MorphBubbleNumber = this.vBBI;
this.Morphtime = getTimer() - 4000;
};
_local2.TimeBubble = function () {
this.Level.levelAssets.timeForPlay = this.Level.levelAssets.timeForPlay + 100000;
this.Level.game.sndCtrl.stopSound("heartbeat_end_of_time");
if (!this.game_backround.interfaceClip.clock.sat_final) {
this.game_backround.interfaceClip.clock.attachMovie("sat_final", "sat_final", 18, {_x:-10.7, _y:-21.6});
this.Level.game.sndCtrl.stopSound("time_rise");
this.Level.game.sndCtrl.playSound("time_rise");
} else {
this.game_backround.interfaceClip.clock.sat_final.gotoAndPlay(1);
this.Level.game.sndCtrl.stopSound("time_rise");
this.Level.game.sndCtrl.playSound("time_rise");
}
this.Arrow.bubble.attachMovie("bonusAnim_mc", "bonusAnim_mc", this.Arrow.bubble.getNextHighestDepth() + 8);
this.Arrow.bubble.attachMovie("shine", "shine", this.Arrow.bubble.getNextHighestDepth() - 300);
};
_local2.TimeBubbleFunction = function () {
this.GameTime = this.GameTime + 100000;
if (!this.game_backround.interfaceClip.clock.sat_final) {
this.game_backround.interfaceClip.clock.attachMovie("sat_final", "sat_final", 18, {_x:-10.7, _y:-21.6});
this.Level.game.sndCtrl.stopSound("time_rise");
this.Level.game.sndCtrl.playSound("time_rise");
} else {
this.game_backround.interfaceClip.clock.sat_final.gotoAndPlay(1);
this.Level.game.sndCtrl.stopSound("time_rise");
this.Level.game.sndCtrl.playSound("time_rise");
}
this.BB[this.vBBI].N.ball1.removeMovieClip();
this.BB[this.vBBI].N.attachMovie("Bang" + this.BB[this.vBBI].COL, "ball1", this.BB[this.vBBI].N.getNextHighestDepth() + 1);
this.BB[this.vBBI].COL = 0;
this.BB[this.vBBI].F = 0;
this.vBBI = this.getVBBI();
};
_local2.ShieldBubble = function () {
this.shieldFlag = true;
this.Level.game.sndCtrl.stopSound("Battel_prepare2");
this.Level.game.sndCtrl.playSound("Battel_prepare2");
this.vBCurCol = 76;
this.vBCur.gotoAndPlay("Show" + this.vBCurCol);
this.Level.game.game_backround.curent_ball_mc.gotoAndPlay("Start" + this.vBCurCol);
this.Arrow.bubble.ball1.removeMovieClip();
this.Arrow.bubble.attachMovie("Show" + this.vBCurCol, "ball1", this.Arrow.bubble.getNextHighestDepth() + 1);
this.Arrow.bubble.attachMovie("bonusAnim_mc", "bonusAnim_mc", this.Arrow.bubble.getNextHighestDepth() + 8);
this.Arrow.bubble.attachMovie("shine", "shine", this.Arrow.bubble.getNextHighestDepth() - 300);
};
_local2.FunctionShieldBubble = function () {
if ((this.BB[this.vBBI - 19].COL > 0) && (this.BB[this.vBBI - 19].COL < 100)) {
this.BB[this.vBBI - 19].N.ball1.removeMovieClip();
this.Explosion(this.BB[this.vBBI - 19]);
this.BB[this.vBBI - 19].COL = 0;
this.BB[this.vBBI - 19].F = 0;
}
if ((this.BB[this.vBBI - 1].COL > 0) && (this.BB[this.vBBI - 1].COL < 100)) {
this.BB[this.vBBI - 1].N.ball1.removeMovieClip();
this.Explosion(this.BB[this.vBBI - 1]);
this.BB[this.vBBI - 1].COL = 0;
this.BB[this.vBBI - 1].F = 0;
}
if ((this.BB[this.vBBI + 1].COL > 0) && (this.BB[this.vBBI + 1].COL < 100)) {
this.BB[this.vBBI + 1].N.ball1.removeMovieClip();
this.Explosion(this.BB[this.vBBI + 1]);
this.BB[this.vBBI + 1].COL = 0;
this.BB[this.vBBI + 1].F = 0;
}
var _local2 = int(this.vBBI / 19);
if ((_local2 % 2) == 0) {
if ((this.BB[this.vBBI - 18].COL > 0) && (this.BB[this.vBBI - 18].COL < 100)) {
this.BB[this.vBBI - 18].N.ball1.removeMovieClip();
this.Explosion(this.BB[this.vBBI - 18]);
this.BB[this.vBBI - 18].COL = 0;
this.BB[this.vBBI - 18].F = 0;
}
} else if ((this.BB[this.vBBI - 20].COL > 0) && (this.BB[this.vBBI - 20].COL < 100)) {
this.BB[this.vBBI - 20].N.ball1.removeMovieClip();
this.Explosion(this.BB[this.vBBI - 20]);
this.BB[this.vBBI - 20].COL = 0;
this.BB[this.vBBI - 20].F = 0;
}
_local2 = int(this.vBBI / 19);
if ((_local2 % 2) == 0) {
if ((this.BB[this.vBBI + 20].COL > 0) && (this.BB[this.vBBI + 20].COL < 100)) {
this.BB[this.vBBI + 20].N.ball1.removeMovieClip();
this.Explosion(this.BB[this.vBBI + 20]);
this.BB[this.vBBI + 20].COL = 0;
this.BB[this.vBBI + 20].F = 0;
}
} else if ((this.BB[this.vBBI + 18].COL > 0) && (this.BB[this.vBBI + 18].COL < 100)) {
this.BB[this.vBBI + 18].N.ball1.removeMovieClip();
this.Explosion(this.BB[this.vBBI + 18]);
this.BB[this.vBBI + 18].COL = 0;
this.BB[this.vBBI + 18].F = 0;
}
if ((this.BB[this.vBBI + 19].COL > 0) && (this.BB[this.vBBI + 19].COL < 100)) {
this.BB[this.vBBI + 19].N.ball1.removeMovieClip();
this.Explosion(this.BB[this.vBBI + 19]);
this.BB[this.vBBI + 19].COL = 0;
this.BB[this.vBBI + 19].F = 0;
}
this.BB[this.vBBI].N.ball1.removeMovieClip();
this.BB[this.vBBI].N.attachMovie("Bang" + this.BB[this.vBBI].COL, "ball1", this.BB[this.vBBI].N.getNextHighestDepth() + 1);
this.KRemove(this.vBBI);
this.BB[this.vBBI].COL = 0;
this.BB[this.vBBI].F = 0;
this.vBBI = this.getVBBI();
};
_local2.AssaultBubble = function () {
this.vBCurCol = 77;
this.vBCur.gotoAndPlay("Show" + this.vBCurCol);
this.assaultFlag = true;
this.Level.game.sndCtrl.stopSound("SoldiersAttention");
this.Level.game.sndCtrl.playSound("SoldiersAttention");
this.Level.game.game_backround.curent_ball_mc.gotoAndPlay("Start" + this.vBCurCol);
this.Arrow.bubble.ball1.removeMovieClip();
this.Arrow.bubble.attachMovie("Show" + this.vBCurCol, "ball1", this.Arrow.bubble.getNextHighestDepth() + 1);
this.Arrow.bubble.attachMovie("bonusAnim_mc", "bonusAnim_mc", this.Arrow.bubble.getNextHighestDepth() + 8);
this.Arrow.bubble.attachMovie("shine", "shine", this.Arrow.bubble.getNextHighestDepth() - 300);
};
_local2.AssaultBubbleFunction = function () {
this.game_backround.attachMovie("stars_mc", "stars_mc", 2007, {_x:358, _y:222});
var _local3 = 0;
while (_local3 < 266) {
var _local5 = int(this.vBBI / 19);
if ((_local5 % 2) == 0) {
var _local2 = 18;
} else {
var _local2 = 20;
}
if ((this.BB[this.vBBI - _local2].COL > 60) || (this.BB[this.vBBI - _local2].COL == 0)) {
var _local2 = 19;
}
if (((this.BB[this.vBBI - _local2].COL > 60) || (this.BB[this.vBBI - _local2].COL == 0)) || ((this.vBBI - _local2) < 20)) {
break;
}
if ((this.BB[_local3].COL == this.BB[this.vBBI - _local2].COL) && (this.BB[_local3] != this.BB[this.vBBI - _local2])) {
this.BB[_local3].N.ball1.removeMovieClip();
this.BB[_local3].COL = 67;
this.BB[_local3].N.attachMovie("Show" + this.BB[_local3].COL, "ball1", this.BB[_local3].N.getNextHighestDepth() + 1);
}
_local3++;
}
if (((this.BB[this.vBBI - _local2].COL != 0) && (this.BB[this.vBBI - _local2].COL < 60)) || ((this.vBBI - _local2) > 20)) {
this.BB[this.vBBI - _local2].N.ball1.removeMovieClip();
this.BB[this.vBBI - _local2].COL = 67;
this.BB[this.vBBI - _local2].N.attachMovie("Show" + this.BB[this.vBBI - _local2].COL, "ball1", this.BB[_local3].N.getNextHighestDepth() + 1);
}
this.BB[this.vBBI].N.ball1.removeMovieClip();
this.Explosion(this.BB[this.vBBI]);
this.BB[this.vBBI].COL = 0;
this.BB[this.vBBI].F = 0;
var _local4 = 20;
while ((this.BB[_local4].COL == 0) && (_local4 < 49)) {
_local4++;
}
if (_local4 == 49) {
this.vCC = this.cmGameOver;
this.vBonusF = true;
return(undefined);
}
this.vBBI = _local4;
this.Level.game.sndCtrl.stopSound("magical_stars2");
this.Level.game.sndCtrl.playSound("magical_stars2");
};
_local2.SpyBubble = function () {
this.vBCurCol = 78;
this.vBCur.ball1.removeMovieClip();
this.vBCur.attachMovie("Show" + this.vBCurCol, "ball1", this.vBCur.getNextHighestDepth() + 1);
this.Level.game.sndCtrl.stopSound("whisper");
this.Level.game.sndCtrl.playSound("whisper");
this.Arrow.bubble.attachMovie("Start" + this.vBCurCol, "ball1", this.Arrow.bubble.getNextHighestDepth() + 1);
this.Arrow.bubble.attachMovie("bonusAnim_mc", "bonusAnim_mc", this.Arrow.bubble.getNextHighestDepth() + 8);
this.Arrow.bubble.attachMovie("shine", "shine", this.Arrow.bubble.getNextHighestDepth() - 300);
_global.stage.game_backround.curent_ball_mc.ball1.removeMovieClip();
_global.stage.game_backround.curent_ball_mc.attachMovie("Start" + this.vBCurCol, "ball1", _global.stage.game_backround.curent_ball_mc.getNextHighestDepth() + 1);
};
_local2.SpyBubbleFunction = function () {
var _local2 = this.vBBI;
var _local3 = int(this.vBBI / 19);
this.BB[this.vBBI].N.ball1.removeMovieClip();
this.Level.game.sndCtrl.stopSound("spy_action");
this.Level.game.sndCtrl.playSound("spy_action");
this.BB[this.vBBI].N.attachMovie("Bang" + this.BB[this.vBBI].COL, "ball1", this.BB[this.vBBI].N.getNextHighestDepth() + 1);
this.BB[this.vBBI].COL = 0;
this.BB[this.vBBI].F = 0;
this.vBBI = this.getVBBI();
if (this.side == "left") {
_local2 = _local2 - 37;
} else {
_local2 = _local2 - 39;
}
while (this.BB[_local2].COL == 0) {
_local2 = _local2 - 19;
}
if (this.BB[_local2 - 19].COL > 0) {
this.BB[_local2 - 19].COL = this.BB[_local2].COL;
this.BB[_local2 - 19].N.ball1.removeMovieClip();
this.BB[_local2 - 19].N.attachMovie("Show" + this.BB[_local2 - 19].COL, "ball1", this.BB[_local2 - 19].N.getNextHighestDepth() + 1);
}
if (this.BB[_local2 - 1].COL > 0) {
this.BB[_local2 - 1].COL = this.BB[_local2].COL;
this.BB[_local2 - 1].N.ball1.removeMovieClip();
this.BB[_local2 - 1].N.attachMovie("Show" + this.BB[_local2 - 1].COL, "ball1", this.BB[_local2 - 1].N.getNextHighestDepth() + 1);
}
if (this.BB[_local2 + 1].COL > 0) {
this.BB[_local2 + 1].COL = this.BB[_local2].COL;
this.BB[_local2 + 1].N.ball1.removeMovieClip();
this.BB[_local2 + 1].N.attachMovie("Show" + this.BB[_local2 + 1].COL, "ball1", this.BB[_local2 + 1].N.getNextHighestDepth() + 1);
}
_local3 = int(_local2 / 19);
if ((_local3 % 2) == 0) {
if (this.BB[_local2 - 18].COL > 0) {
this.BB[_local2 - 18].COL = this.BB[_local2].COL;
this.BB[_local2 - 18].N.ball1.removeMovieClip();
this.BB[_local2 - 18].N.attachMovie("Show" + this.BB[_local2 - 18].COL, "ball1", this.BB[_local2 - 18].N.getNextHighestDepth() + 1);
}
} else if (this.BB[_local2 - 20].COL > 0) {
this.BB[_local2 - 20].COL = this.BB[_local2].COL;
this.BB[_local2 - 20].N.ball1.removeMovieClip();
this.BB[_local2 - 20].N.attachMovie("Show" + this.BB[_local2 - 20].COL, "ball1", this.BB[_local2 - 20].N.getNextHighestDepth() + 1);
}
_local3 = int(_local2 / 19);
if ((_local3 % 2) == 0) {
if (this.BB[_local2 + 20].COL > 0) {
this.BB[_local2 + 20].COL = this.BB[_local2].COL;
this.BB[_local2 + 20].N.ball1.removeMovieClip();
this.BB[_local2 + 20].N.attachMovie("Show" + this.BB[_local2 + 20].COL, "ball1", this.BB[_local2 + 20].N.getNextHighestDepth() + 1);
}
} else if (this.BB[_local2 + 18].COL > 0) {
this.BB[_local2 + 18].COL = this.BB[_local2].COL;
this.BB[_local2 + 18].N.ball1.removeMovieClip();
this.BB[_local2 + 18].N.attachMovie("Show" + this.BB[_local2 + 18].COL, "ball1", this.BB[_local2 + 18].N.getNextHighestDepth() + 1);
}
if (this.BB[_local2 + 19].COL > 0) {
this.BB[_local2 + 19].COL = this.BB[_local2].COL;
this.BB[_local2 + 19].N.ball1.removeMovieClip();
this.BB[_local2 + 19].N.attachMovie("Show" + this.BB[_local2 + 19].COL, "ball1", this.BB[_local2 + 19].N.getNextHighestDepth() + 1);
}
};
// unexpected jump
// unexpected jump
_local2.SpyBubbleFunction2 = function () {
var _local2 = this.vBBI;
var _local3 = int(this.vBBI / 19);
if (this.BB[this.vBBI].COL != 100) {
this.BB[this.vBBI].COL = this.spyColor;
this.BB[this.vBBI].N.ball1.removeMovieClip();
this.BB[this.vBBI].N.attachMovie("Show" + this.BB[this.vBBI].COL, "ball1", this.BB[this.vBBI].N.getNextHighestDepth() + 1);
}
this.vBBI = this.getVBBI();
if ((this.spyColor == 0) || (this.spyColor == undefined)) {
return(undefined);
}
while ((this.BB[_local2].COL == 0) || (this.BB[_local2].COL == 100)) {
_local2 = _local2 - 19;
}
if ((this.BB[_local2 - 19].COL > 0) && (this.BB[_local2 - 19].COL != 100)) {
this.BB[_local2 - 19].COL = this.spyColor;
this.BB[_local2 - 19].N.ball1.removeMovieClip();
this.BB[_local2 - 19].N.attachMovie("Show" + this.BB[_local2 - 19].COL, "ball1", this.BB[_local2 - 19].N.getNextHighestDepth() + 1);
}
if ((this.BB[_local2 - 1].COL > 0) && (this.BB[_local2 - 1].COL != 100)) {
this.BB[_local2 - 1].COL = this.spyColor;
this.BB[_local2 - 1].N.ball1.removeMovieClip();
this.BB[_local2 - 1].N.attachMovie("Show" + this.BB[_local2 - 1].COL, "ball1", this.BB[_local2 - 1].N.getNextHighestDepth() + 1);
}
if ((this.BB[_local2 + 1].COL > 0) && (this.BB[_local2 + 1].COL != 100)) {
this.BB[_local2 + 1].COL = this.spyColor;
this.BB[_local2 + 1].N.ball1.removeMovieClip();
this.BB[_local2 + 1].N.attachMovie("Show" + this.BB[_local2 + 1].COL, "ball1", this.BB[_local2 + 1].N.getNextHighestDepth() + 1);
}
_local3 = int(_local2 / 19);
if ((_local3 % 2) == 0) {
if ((this.BB[_local2 - 18].COL > 0) && (this.BB[_local2 - 18].COL != 100)) {
this.BB[_local2 - 18].COL = this.spyColor;
this.BB[_local2 - 18].N.ball1.removeMovieClip();
this.BB[_local2 - 18].N.attachMovie("Show" + this.BB[_local2 - 18].COL, "ball1", this.BB[_local2 - 18].N.getNextHighestDepth() + 1);
}
} else if ((this.BB[_local2 - 20].COL > 0) && (this.BB[_local2 - 20].COL != 100)) {
this.BB[_local2 - 20].COL = this.spyColor;
this.BB[_local2 - 20].N.ball1.removeMovieClip();
this.BB[_local2 - 20].N.attachMovie("Show" + this.BB[_local2 - 20].COL, "ball1", this.BB[_local2 - 20].N.getNextHighestDepth() + 1);
}
_local3 = int(_local2 / 19);
if ((_local3 % 2) == 0) {
if ((this.BB[_local2 + 20].COL > 0) && (this.BB[_local2 + 20].COL != 100)) {
this.BB[_local2 + 20].COL = this.spyColor;
this.BB[_local2 + 20].N.ball1.removeMovieClip();
this.BB[_local2 + 20].N.attachMovie("Show" + this.BB[_local2 + 20].COL, "ball1", this.BB[_local2 + 20].N.getNextHighestDepth() + 1);
}
} else if ((this.BB[_local2 + 18].COL > 0) && (this.BB[_local2 + 18].COL != 100)) {
this.BB[_local2 + 18].COL = this.spyColor;
this.BB[_local2 + 18].N.ball1.removeMovieClip();
this.BB[_local2 + 18].N.attachMovie("Show" + this.BB[_local2 + 18].COL, "ball1", this.BB[_local2 + 18].N.getNextHighestDepth() + 1);
}
if ((this.BB[_local2 + 19].COL > 0) && (this.BB[_local2 + 19].COL != 100)) {
this.BB[_local2 + 19].COL = this.spyColor;
this.BB[_local2 + 19].N.ball1.removeMovieClip();
this.BB[_local2 + 19].N.attachMovie("Show" + this.BB[_local2 + 19].COL, "ball1", this.BB[_local2 + 19].N.getNextHighestDepth() + 1);
}
this.spyColor = 0;
};
_local2.Explosion = function (clip) {
if (((clip.COL >= 50) && (clip.COL <= 53)) || ((clip.COL > 0) && (clip.COL < 14))) {
clip.N.attachMovie("weapon", "ball1", clip.N.getNextHighestDepth() + 1);
this.Level.game.sndCtrl.stopSound("weapon_enemy");
this.Level.game.sndCtrl.playSound("weapon_enemy");
} else if ((clip.COL >= 14) && (clip.COL <= 24)) {
clip.N.attachMovie("primary", "ball1", clip.N.getNextHighestDepth() + 1);
this.Level.game.sndCtrl.stopSound("primary_sound");
this.Level.game.sndCtrl.playSound("primary_sound");
} else if (((clip.COL >= 25) && (clip.COL <= 38)) || (clip.COL == 54)) {
clip.N.attachMovie("luxury", "ball1", clip.N.getNextHighestDepth() + 1);
this.Level.game.sndCtrl.stopSound("luxury_sound");
this.Level.game.sndCtrl.playSound("luxury_sound");
} else if ((clip.COL >= 39) && (clip.COL <= 49)) {
clip.N.attachMovie("weapon", "ball1", clip.N.getNextHighestDepth() + 1);
this.Level.game.sndCtrl.stopSound("weapon_enemy");
this.Level.game.sndCtrl.playSound("weapon_enemy");
} else if ((clip.COL >= 60) && (clip.COL < 80)) {
clip.N.attachMovie("shine_up", "ball1", clip.N.getNextHighestDepth() + 1);
this.Level.game.sndCtrl.stopSound("weapon_enemy");
this.Level.game.sndCtrl.playSound("weapon_enemy");
}
};
_local2.ChekTimeForMorfBubble = function () {
var _local3 = getTimer();
if (((_local3 - this.Morphtime) > 4000) && (this.Morphtime > 0)) {
switch (this.num) {
case 1 :
this.num++;
if (this.BB[this.MorphBubbleNumber - 19].COL > 0) {
this.Morphtime = getTimer();
this.BB[this.MorphBubbleNumber].COL = this.BB[this.MorphBubbleNumber - 19].COL;
this.BB[this.MorphBubbleNumber].N.ball1.removeMovieClip();
this.BB[this.MorphBubbleNumber].N.attachMovie("Show" + this.BB[this.MorphBubbleNumber].COL, "ball1", this.BB[this.MorphBubbleNumber].N.getNextHighestDepth() + 1);
}
break;
case 2 :
this.num++;
if (this.BB[this.MorphBubbleNumber - 1].COL > 0) {
this.Morphtime = getTimer();
this.BB[this.MorphBubbleNumber].COL = this.BB[this.MorphBubbleNumber - 1].COL;
this.BB[this.MorphBubbleNumber].N.ball1.removeMovieClip();
this.BB[this.MorphBubbleNumber].N.attachMovie("Show" + this.BB[this.MorphBubbleNumber].COL, "ball1", this.BB[this.MorphBubbleNumber].N.getNextHighestDepth() + 1);
}
break;
case 3 :
this.num++;
if (this.BB[this.MorphBubbleNumber + 1].COL > 0) {
this.Morphtime = getTimer();
this.BB[this.MorphBubbleNumber].COL = this.BB[this.MorphBubbleNumber + 1].COL;
this.BB[this.MorphBubbleNumber].N.ball1.removeMovieClip();
this.BB[this.MorphBubbleNumber].N.attachMovie("Show" + this.BB[this.MorphBubbleNumber].COL, "ball1", this.BB[this.MorphBubbleNumber].N.getNextHighestDepth() + 1);
}
break;
case 4 :
this.num++;
var _local2 = int(this.MorphBubbleNumber / 19);
if ((_local2 % 2) == 0) {
if (this.BB[this.MorphBubbleNumber - 18].COL > 0) {
this.Morphtime = getTimer();
this.BB[this.MorphBubbleNumber].COL = this.BB[this.MorphBubbleNumber - 18].COL;
this.BB[this.MorphBubbleNumber].N.ball1.removeMovieClip();
this.BB[this.MorphBubbleNumber].N.attachMovie("Show" + this.BB[this.MorphBubbleNumber].COL, "ball1", this.BB[this.MorphBubbleNumber].N.getNextHighestDepth() + 1);
}
} else if (this.BB[this.MorphBubbleNumber - 20].COL > 0) {
this.Morphtime = getTimer();
this.BB[this.MorphBubbleNumber].COL = this.BB[this.MorphBubbleNumber - 20].COL;
this.BB[this.MorphBubbleNumber].N.ball1.removeMovieClip();
this.BB[this.MorphBubbleNumber].N.attachMovie("Show" + this.BB[this.MorphBubbleNumber].COL, "ball1", this.BB[this.MorphBubbleNumber].N.getNextHighestDepth() + 1);
}
break;
case 5 :
this.num++;
_local2 = int(this.MorphBubbleNumber / 19);
if ((_local2 % 2) == 0) {
if (this.BB[this.MorphBubbleNumber + 20].COL > 0) {
this.Morphtime = getTimer();
this.BB[this.MorphBubbleNumber].COL = this.BB[this.MorphBubbleNumber + 20].COL;
this.BB[this.MorphBubbleNumber].N.ball1.removeMovieClip();
this.BB[this.MorphBubbleNumber].N.attachMovie("Show" + this.BB[this.MorphBubbleNumber].COL, "ball1", this.BB[this.MorphBubbleNumber].N.getNextHighestDepth() + 1);
}
} else if (this.BB[this.MorphBubbleNumber + 18].COL > 0) {
this.Morphtime = getTimer();
this.BB[this.MorphBubbleNumber].COL = this.BB[this.MorphBubbleNumber + 18].COL;
this.BB[this.MorphBubbleNumber].N.ball1.removeMovieClip();
this.BB[this.MorphBubbleNumber].N.attachMovie("Show" + this.BB[this.MorphBubbleNumber].COL, "ball1", this.BB[this.MorphBubbleNumber].N.getNextHighestDepth() + 1);
}
break;
case 6 :
this.num++;
if (this.num == 7) {
this.num = 1;
}
if (this.BB[this.MorphBubbleNumber + 19].COL <= 0) {
break;
}
this.Morphtime = getTimer();
this.BB[this.MorphBubbleNumber].COL = this.BB[this.MorphBubbleNumber + 19].COL;
this.BB[this.MorphBubbleNumber].N.ball1.removeMovieClip();
this.BB[this.MorphBubbleNumber].N.attachMovie("Show" + this.BB[this.MorphBubbleNumber].COL, "ball1", this.BB[this.MorphBubbleNumber].N.getNextHighestDepth() + 1);
}
}
};
_local2.ChekTimeForBubble = function () {
var _local4 = getTimer();
if (this.MirrorTime) {
var _local2 = getTimer();
if ((_local2 - this.MirrorBubbleTime) > 10000) {
this.MirrorTime = false;
this.Arrow.gotoAndStop("normal");
this.Arrow._rotation = -this.vAngle;
this.vAngle = -this.vAngle;
this.Level.game.sndCtrl.stopSound("katapult_under_spell");
this.Level.game.sndCtrl.stopSound("katapult_off_spell");
this.Level.game.sndCtrl.playSound("katapult_off_spell");
this.game_backround.mirror_mc.removeMovieClip();
}
} else if (this.IceTime) {
var _local2 = getTimer();
var _local3 = _local2 - this.IceBubbleTime;
if ((_local2 - this.IceBubbleTime) > 7000) {
this.game_backround.freeze_mc.removeMovieClip();
this.IceTime = false;
this.Arrow.gotoAndStop("smelt");
this.Level.game.sndCtrl.stopSound("topnje");
this.Level.game.sndCtrl.playSound("topnje");
}
} else if (this.HeatTime) {
var _local2 = getTimer();
if ((_local2 - this.HeatBubbleTime) > 15000) {
this.game_backround.heatCatapult_mc.removeMovieClip();
this.HeatTime = false;
this.Level.game.sndCtrl.stopSound("fire_melting");
this.ShootTime = 10;
this.shaketNum = 0;
this.Arrow.gotoAndStop(1);
this.Arrow.bubble.attachMovie("Start" + this.vBCurCol, "ball1", this.Arrow.bubble.getNextHighestDepth() + 1);
}
} else if (this.SpikeBubble) {
var _local2 = getTimer();
if ((_local2 - this.SpikeBubbleTime) > 1000) {
this.SpikeBubble = false;
this.spike._visible = false;
this.Level.game.sndCtrl.stopSound("spikes_out");
this.Level.game.sndCtrl.playSound("spikes_out");
this.game_backround.kopja_mc.gotoAndPlay(40);
}
} else if (this.AccelerationBubble) {
var _local2 = getTimer();
if ((_local2 - this.AccelerationBubbleTime) > 20000) {
this.game_backround.accelerate_mc.removeMovieClip();
this.AccelerationBubble = false;
this.Level.game.GameSpeed = 20;
this.Level.timer.start();
this.Arrow.gotoAndStop("normal");
this.Level.game.sndCtrl.stopSound("katapult_under_spell");
this.Level.game.catapultSpell = true;
this.Level.game.sndCtrl.stopSound("katapult_off_spell");
this.Level.game.sndCtrl.playSound("katapult_off_spell");
}
} else if (this.RoughBubble) {
var _local2 = getTimer();
if ((_local2 - this.RoughBubbleTime) > 13000) {
this.RoughBubble = false;
this.zavesa.jaze.gotoAndStop(1);
this.Level.game.sndCtrl.stopSound("Jazhe");
this.Level.game.sndCtrl.playSound("Jazhe");
this.Arrow.gotoAndStop("normal");
}
}
};
_local2.popupForBonus = function () {
this.pauseInGame = true;
this.Level.game.keyboard.pauseTime = getTimer();
switch (this.BonusBallId) {
case 74 :
this.popHintsclip = this.Level.game.game_backround.attachMovie("fadeHint4_mc", "popHints", 3077, {_x:286.8, _y:328.9});
this.popHintsclip.all.intro.text = this.Level.game.Language.getLangText("MorphBUBBLE");
break;
case 73 :
this.popHintsclip = this.Level.game.game_backround.attachMovie("fadeHint3_mc", "popHints", 3077, {_x:36.8, _y:328.9});
this.popHintsclip.all.intro.text = this.Level.game.Language.getLangText("DoubleBubble");
break;
case 71 :
this.popHintsclip = this.Level.game.game_backround.attachMovie("fadeHint3_mc", "popHints", 3077, {_x:-13.2, _y:328.9});
this.popHintsclip.all.intro.text = this.Level.game.Language.getLangText("MoralBUBBLE");
break;
case 77 :
this.popHintsclip = this.Level.game.game_backround.attachMovie("fadeHint3_mc", "popHints", 3077, {_x:136.8, _y:328.9});
this.popHintsclip.all.intro.text = this.Level.game.Language.getLangText("AssaultBUBBLE");
break;
case 76 :
this.popHintsclip = this.Level.game.game_backround.attachMovie("fadeHint4_mc", "popHints", 3077, {_x:186.8, _y:328.9});
this.popHintsclip.all.intro.text = this.Level.game.Language.getLangText("ShieldBUBBLE");
this.addEvents();
break;
case 78 :
this.popHintsclip = this.Level.game.game_backround.attachMovie("fadeHint4_mc", "popHints", 3077, {_x:236.8, _y:328.9});
this.popHintsclip.all.intro.text = this.Level.game.Language.getLangText("SpyBUBBLE");
break;
case 75 :
this.popHintsclip = this.Level.game.game_backround.attachMovie("fadeHint3_mc", "popHints", 3077, {_x:86.8, _y:328.9});
this.popHintsclip.all.intro.text = this.Level.game.Language.getLangText("TimeBUBBLE");
break;
case 72 :
this.popHintsclip = this.Level.game.game_backround.attachMovie("fadeHint4_mc", "popHints", 3077, {_x:336.8, _y:328.9});
this.popHintsclip.all.intro.text = this.Level.game.Language.getLangText("TransformersBUBBLE");
}
this.addEvents();
};
_local2.chekForBonusBubble = function () {
var _local2 = 0;
while (_local2 < this.Level.levelAssets.OriginalBubbleInMatrix.length) {
if (this.Level.levelAssets.OriginalBubbleInMatrix[_local2] > 70) {
this.BonusBallId = this.Level.levelAssets.OriginalBubbleInMatrix[_local2];
break;
}
_local2++;
}
this.MorphBonus.maska._y = this.MorphBonus.maska._y - this.Level.game.MorphProcent;
this.DoubleBonus.maska._y = this.DoubleBonus.maska._y - this.Level.game.DoubleProcent;
this.MoralBonus.maska._y = this.MoralBonus.maska._y - this.Level.game.MoralProcent;
this.AssaultBonus.maska._y = this.AssaultBonus.maska._y - this.Level.game.AssaultProcent;
this.ShieldBonus.maska._y = this.ShieldBonus.maska._y - this.Level.game.ShieldProcent;
this.SpyBonus.maska._y = this.SpyBonus.maska._y - this.Level.game.SpyProcent;
this.TimeBonus.maska._y = this.TimeBonus.maska._y - this.Level.game.TimeProcent;
this.TransmutationBonus.maska._y = this.TransmutationBonus.maska._y - this.Level.game.TransmutationProcent;
if (this.Level.game.MorphProcent >= 57) {
this.MorphBonus.attachMovie("bonusAnim_mc", "bonusAnim_mc", 6, {_x:this.MorphBonus.f._x * -1, _y:this.MorphBonus.f._y * -1});
}
if (this.Level.game.DoubleProcent >= 57) {
this.DoubleBonus.attachMovie("bonusAnim_mc", "bonusAnim_mc", 7, {_x:this.DoubleBonus.f._x * -1, _y:this.DoubleBonus.f._y * -1});
}
if (this.Level.game.MoralProcent >= 57) {
this.MoralBonus.attachMovie("bonusAnim_mc", "bonusAnim_mc", 6, {_x:this.MoralBonus.f._x * -1, _y:this.MoralBonus.f._y * -1});
}
if (this.Level.game.AssaultProcent >= 57) {
this.AssaultBonus.attachMovie("bonusAnim_mc", "bonusAnim_mc", 6, {_x:this.AssaultBonus.f._x * -1, _y:this.AssaultBonus.f._y * -1});
}
if (this.Level.game.SpyProcent >= 57) {
this.SpyBonus.attachMovie("bonusAnim_mc", "bonusAnim_mc", 6, {_x:this.SpyBonus.f._x * -1, _y:this.SpyBonus.f._y * -1});
}
if (this.Level.game.ShieldProcent >= 57) {
this.ShieldBonus.attachMovie("bonusAnim_mc", "bonusAnim_mc", 6, {_x:this.ShieldBonus.f._x * -1, _y:this.ShieldBonus.f._y * -1});
}
if (this.Level.game.TimeProcent >= 57) {
this.TimeBonus.attachMovie("bonusAnim_mc", "bonusAnim_mc", 6, {_x:this.TimeBonus.f._x * -1, _y:this.TimeBonus.f._y * -1});
}
if (this.Level.game.TransmutationProcent >= 57) {
this.TransmutationBonus.attachMovie("bonusAnim_mc", "bonusAnim_mc", 6, {_x:this.TransmutationBonus.f._x * -1, _y:this.TransmutationBonus.f._y * -1});
}
switch (this.BonusBallId) {
case 74 :
this.BonusProcent = this.BonusProcent + this.Level.game.MorphProcent;
this.BonusButton = this.MorphBonus;
this.procen = this.Level.game.MorphProcent;
if (this.Level.game.fasterMorph) {
this.bonusUpgrades = 1;
}
this.addEvents();
break;
case 73 :
this.BonusProcent = this.BonusProcent + this.Level.game.DoubleProcent;
this.BonusButton = this.DoubleBonus;
this.procen = this.Level.game.DoubleProcent;
this.addEvents();
break;
case 71 :
this.BonusProcent = this.BonusProcent + this.Level.game.MoralProcent;
this.BonusButton = this.MoralBonus;
this.procen = this.Level.game.MoralProcent;
this.addEvents();
break;
case 77 :
this.BonusProcent = this.BonusProcent + this.Level.game.AssaultProcent;
this.BonusButton = this.AssaultBonus;
this.procen = this.Level.game.AssaultProcent;
if (this.Level.game.fasterAssult) {
this.bonusUpgrades = 1;
}
this.addEvents();
break;
case 76 :
this.BonusProcent = this.BonusProcent + this.Level.game.ShieldProcent;
this.BonusButton = this.ShieldBonus;
this.procen = this.Level.game.ShieldProcent;
this.addEvents();
break;
case 78 :
this.BonusProcent = this.BonusProcent + this.Level.game.SpyProcent;
this.BonusButton = this.SpyBonus;
this.procen = this.Level.game.SpyProcent;
this.addEvents();
break;
case 75 :
this.BonusProcent = this.BonusProcent + this.Level.game.TimeProcent;
this.BonusButton = this.TimeBonus;
this.procen = this.Level.game.TimeProcent;
if (this.Level.game.fasterTime) {
this.bonusUpgrades = 1;
}
this.addEvents();
break;
case 72 :
this.BonusProcent = this.BonusProcent + this.Level.game.TransmutationProcent;
this.BonusButton = this.TransmutationBonus;
this.procen = this.Level.game.TransmutationProcent;
}
this.addEvents();
};
_local2.addEvents = function () {
this.popHintsclip.all.ok_btn.holder = this;
this.popHintsclip.all.ok_btn.onRelease = function () {
if (!this.holder.Level.game.game_backround.popHints_reverse) {
this.holder.pauseInGame = false;
var _local2 = getTimer();
this.holder.oldRowTime = this.holder.oldRowTime + (_local2 - this.holder.Level.game.keyboard.pauseTime);
this.holder.startTime = this.holder.startTime + (_local2 - this.holder.Level.game.keyboard.pauseTime);
this.holder.OldTime = this.holder.OldTime + (_local2 - this.holder.Level.game.keyboard.pauseTime);
this.holder.GameTime = this.holder.GameTime + (_local2 - this.holder.Level.game.keyboard.pauseTime);
}
this.holder.popHintsclip._visible = false;
this.holder.popHintsclip = undefined;
};
this.popHintsclip.all.ok_btn.onRollOver = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("hand");
};
this.popHintsclip.all.ok_btn.onRollOut = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.popHintsclip.all.ok_btn.onReleaseOutside = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.BonusButton.holder = this;
this.BonusButton.onRollOver = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("hand");
};
this.BonusButton.onRollOut = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.BonusButton.onReleaseOutside = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.BonusButton.onPress = function () {
if (this.holder.BonusProcent >= 57) {
this.holder.BonusButton.bonusAnim_mc.removeMovieClip();
this.holder.BonusProcent = 0;
this.holder.BonusButton.maska._y = this.holder.BonusButton.maska._y + 57;
if (this.holder.BonusBallId == 71) {
this.holder.Level.game.MoralProcent = 0;
this.holder.MoralBoostBubble();
}
if (this.holder.BonusBallId == 72) {
this.holder.Level.game.TransmutationProcent = 0;
this.holder.TransmutationBonusBubble();
}
if (this.holder.BonusBallId == 73) {
this.holder.Level.game.DoubleProcent = 0;
this.holder.Double = true;
this.Level.game.sndCtrl.stopSound("bonus_powerUp");
this.Level.game.sndCtrl.playSound("bonus_powerUp");
this.holder.Arrow.bubble.attachMovie("bonusAnim_mc", "bonusAnim_mc", this.holder.Arrow.bubble.getNextHighestDepth() + 8);
this.holder.Arrow.bubble.attachMovie("shine", "shine", this.holder.Arrow.bubble.getNextHighestDepth() - 300);
}
if (this.holder.BonusBallId == 74) {
this.holder.Level.game.MorphProcent = 0;
this.holder.MorphBonusBubble();
}
if (this.holder.BonusBallId == 75) {
this.holder.Level.game.TimeProcent = 0;
this.holder.TimeBubble();
}
if (this.holder.BonusBallId == 76) {
this.holder.Level.game.ShieldProcent = 0;
this.holder.ShieldBubble();
}
if (this.holder.BonusBallId == 77) {
this.holder.Level.game.AssaultProcent = 0;
this.holder.AssaultBubble();
}
if (this.holder.BonusBallId == 78) {
this.holder.Level.game.SpyProcent = 0;
this.holder.SpyBubble();
}
}
};
this.MorphBonus.holder = this;
this.MorphBonus.onRollOver = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("hand");
};
this.MorphBonus.onRollOut = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.MorphBonus.onReleaseOutside = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.MorphBonus.onRelease = function () {
if (this.holder.Level.game.MorphProcent >= 57) {
this.holder.Level.game.MorphProcent = 0;
this.holder.MorphBonus.maska._y = this.holder.MorphBonus.maska._y + 57;
this.holder.MorphBonusBubble();
this.bonusAnim_mc.removeMovieClip();
}
};
this.DoubleBonus.holder = this;
this.DoubleBonus.onRollOver = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("hand");
};
this.DoubleBonus.onRollOut = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.DoubleBonus.onReleaseOutside = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.DoubleBonus.onRelease = function () {
if (this.holder.Level.game.DoubleProcent >= 57) {
this.Level.game.sndCtrl.stopSound("bonus_powerUp");
this.Level.game.sndCtrl.playSound("bonus_powerUp");
this.holder.Arrow.bubble.attachMovie("shine_up", "shine_up", this.holder.Arrow.bubble.getNextHighestDepth());
this.holder.Arrow.bubble.attachMovie("bonusAnim_mc", "bonusAnim_mc", this.holder.Arrow.bubble.getNextHighestDepth() + 1);
this.bonusAnim_mc.removeMovieClip();
this.holder.Level.game.DoubleProcent = 0;
this.holder.DoubleBonus.maska._y = this.holder.DoubleBonus.maska._y + 57;
this.holder.Double = true;
}
};
this.MoralBonus.holder = this;
this.MoralBonus.onRollOver = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("hand");
};
this.MoralBonus.onRollOut = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.MoralBonus.onReleaseOutside = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.MoralBonus.onRelease = function () {
if (this.holder.Level.game.MoralProcent >= 57) {
this.bonusAnim_mc.removeMovieClip();
this.holder.Level.game.MoralProcent = 0;
this.holder.MoralBonus.maska._y = this.holder.MoralBonus.maska._y + 57;
this.holder.MoralBoostBubble();
}
};
this.AssaultBonus.holder = this;
this.AssaultBonus.onRollOver = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("hand");
};
this.AssaultBonus.onRollOut = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.AssaultBonus.onReleaseOutside = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.AssaultBonus.onRelease = function () {
if (this.holder.Level.game.AssaultProcent >= 57) {
this.bonusAnim_mc.removeMovieClip();
this.holder.Level.game.AssaultProcent = 0;
this.holder.AssaultBonus.maska._y = this.holder.AssaultBonus.maska._y + 57;
this.holder.AssaultBubble();
}
};
this.ShieldBonus.holder = this;
this.ShieldBonus.onRollOver = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("hand");
};
this.ShieldBonus.onRollOut = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.ShieldBonus.onReleaseOutside = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.ShieldBonus.onRelease = function () {
if (this.holder.Level.game.ShieldProcent >= 57) {
this.bonusAnim_mc.removeMovieClip();
this.holder.Level.game.ShieldProcent = 0;
this.holder.ShieldBonus.maska._y = this.holder.ShieldBonus.maska._y + 57;
this.holder.ShieldBubble();
}
};
this.SpyBonus.holder = this;
this.SpyBonus.onRollOver = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("hand");
};
this.SpyBonus.onRollOut = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.SpyBonus.onReleaseOutside = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.SpyBonus.onRelease = function () {
if (this.holder.Level.game.SpyProcent >= 57) {
this.bonusAnim_mc.removeMovieClip();
this.holder.Level.game.SpyProcent = 0;
this.holder.SpyBonus.maska._y = this.holder.SpyBonus.maska._y + 57;
this.holder.SpyBubble();
}
};
this.TimeBonus.holder = this;
this.TimeBonus.onRollOver = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("hand");
};
this.TimeBonus.onRollOut = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.TimeBonus.onReleaseOutside = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.TimeBonus.onRelease = function () {
if (this.holder.Level.game.TimeProcent >= 57) {
this.holder.Arrow.bubble.attachMovie("shine_up", "shine_up", this.holder.Arrow.bubble.getNextHighestDepth());
this.holder.Arrow.bubble.attachMovie("bonusAnim_mc", "bonusAnim_mc", this.holder.Arrow.bubble.getNextHighestDepth() + 1);
this.bonusAnim_mc.removeMovieClip();
this.holder.Level.game.TimeProcent = 0;
this.holder.TimeBonus.maska._y = this.holder.TimeBonus.maska._y + 57;
this.holder.TimeBubble();
}
};
this.TransmutationBonus.holder = this;
this.TransmutationBonus.onRollOver = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("hand");
};
this.TransmutationBonus.onRollOut = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.TransmutationBonus.onReleaseOutside = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.TransmutationBonus.onRelease = function () {
if (this.holder.Level.game.TransmutationProcent >= 57) {
this.bonusAnim_mc.removeMovieClip();
this.holder.Level.game.TransmutationProcent = 0;
this.holder.TransmutationBonus.maska._y = this.holder.TransmutationBonus.maska._y + 57;
this.holder.TransmutationBonusBubble();
}
};
this.game_backround.interfaceClip.menuBuyScreen.holder = this;
this.game_backround.interfaceClip.menuBuyScreen.onRollOver = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("hand");
};
this.game_backround.interfaceClip.menuBuyScreen.onRollOut = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.game_backround.interfaceClip.menuBuyScreen.onReleaseOutside = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.game_backround.interfaceClip.menuBuyScreen.onRelease = function () {
if (!this.holder.pauseInGame) {
this.holder.game_backround.attachMovie("pause_screen_mc", "pause_screen_mc", this.holder.game_backround.getNextHighestDepth(), {_x:-49, _y:-50});
this.holder.game_backround.pause_screen_mc.slider.sliderFX._xscale = this.holder.Level.game.musicVolume;
this.holder.game_backround.pause_screen_mc.sliderMusic.sliderM._xscale = this.holder.Level.game.musicVolume;
this.holder.pauseInGame = true;
this.holder.Level.game.sndCtrl.pauseAllSounds();
this.holder.Level.game.keyboard.pauseTime = getTimer();
this.holder.addEvents();
}
};
this.overview.holder = this;
this.overview.onRollOver = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("hand");
};
this.overview.onRollOut = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.overview.onReleaseOutside = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.overview.onRelease = function () {
if (!this.holder.Level.game.win_screen) {
this.holder.pauseInGame = true;
this.holder.Level.game.sndCtrl.pauseAllSounds();
this.holder.Level.game.keyboard.pauseTime = getTimer();
this.holder.OverviewScreen = new screens.OverviewScreen(this.holder.Level.game);
}
};
this.Level.game.game_backround.exitScreen_mc.yes.holder = this;
this.Level.game.game_backround.exitScreen_mc.yes.onRollOver = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("hand");
};
this.Level.game.game_backround.exitScreen_mc.yes.onRollOut = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.Level.game.game_backround.exitScreen_mc.yes.onReleaseOutside = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.Level.game.game_backround.exitScreen_mc.yes.onRelease = function () {
this.holder.Level.game.interface_.NewGame();
this.holder.Level.game.game_OVER_screen.removeMovieClip();
};
this.Level.game.game_backround.exitScreen_mc.no.holder = this;
this.Level.game.game_backround.exitScreen_mc.no.onRollOver = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("hand");
};
this.Level.game.game_backround.exitScreen_mc.no.onRollOut = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.Level.game.game_backround.exitScreen_mc.no.onReleaseOutside = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.Level.game.game_backround.exitScreen_mc.no.onRelease = function () {
this.holder.pauseInGame = false;
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
this.holder.Level.game.sndCtrl.resumeAllSounds();
var _local2 = getTimer();
var _local3 = this.holder.Level.game.keyboard.pauseTime;
this.holder.oldRowTime = this.holder.oldRowTime + (_local2 - _local3);
this.holder.startTime = this.holder.startTime + (_local2 - _local3);
this.holder.OldTime = this.holder.OldTime + (_local2 - _local3);
this.holder.GameTime = this.holder.GameTime + (_local2 - _local3);
this.holder.LightBubbleTime = this.holder.LightBubbleTime + (_local2 - _local3);
this.holder.IceBubbleTime = this.holder.IceBubbleTime + (_local2 - _local3);
this.holder.MirrorBubbleTime = this.holder.MirrorBubbleTime + (_local2 - _local3);
this.holder.HeatBubbleTime = this.holder.HeatBubbleTime + (_local2 - _local3);
this.holder.SpikeBubbleTime = this.holder.SpikeBubbleTime + (_local2 - _local3);
this.holder.RoughBubbleTime = this.holder.RoughBubbleTime + (_local2 - _local3);
this.holder.AccelerationBubbleTime = this.holder.AccelerationBubbleTime + (_local2 - _local3);
this.holder.Level.game.startCheckingFocus();
this.holder.game_backround.pause_screen_mc.removeMovieClip();
this.holder.Level.game.game_backround.exitScreen_mc.removeMovieClip();
};
this.Level.game.game_OVER_screen.main_menu.holder = this;
this.Level.game.game_OVER_screen.main_menu.onRollOver = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("hand");
};
this.Level.game.game_OVER_screen.main_menu.onRollOut = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.Level.game.game_OVER_screen.main_menu.onReleaseOutside = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.Level.game.game_OVER_screen.main_menu.onRelease = function () {
this.holder.Level.game.interface_.NewGame();
this.holder.Level.game.game_OVER_screen.removeMovieClip();
};
this.game_backround.pause_screen_mc.mainMain.holder = this;
this.game_backround.pause_screen_mc.mainMain.onRollOver = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("hand");
};
this.game_backround.pause_screen_mc.mainMain.onRollOut = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.game_backround.pause_screen_mc.mainMain.onReleaseOutside = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.game_backround.pause_screen_mc.mainMain.onRelease = function () {
this.holder.Level.game.interface_.YesNo();
this.holder.game_backround.pause_screen_mc.removeMovieClip();
};
this.game_backround.pause_screen_mc.back_to_game.holder = this;
this.game_backround.pause_screen_mc.back_to_game.onRollOver = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("hand");
};
this.game_backround.pause_screen_mc.back_to_game.onRollOut = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.game_backround.pause_screen_mc.back_to_game.onReleaseOutside = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.game_backround.pause_screen_mc.back_to_game.onRelease = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
this.holder.Level.game.sndCtrl.resumeAllSounds();
var _local2 = getTimer();
var _local3 = this.holder.Level.game.keyboard.pauseTime;
this.holder.pauseInGame = false;
this.holder.oldRowTime = this.holder.oldRowTime + (_local2 - _local3);
this.holder.startTime = this.holder.startTime + (_local2 - _local3);
this.holder.OldTime = this.holder.OldTime + (_local2 - _local3);
this.holder.GameTime = this.holder.GameTime + (_local2 - _local3);
this.holder.LightBubbleTime = this.holder.LightBubbleTime + (_local2 - _local3);
this.holder.IceBubbleTime = this.holder.IceBubbleTime + (_local2 - _local3);
this.holder.MirrorBubbleTime = this.holder.MirrorBubbleTime + (_local2 - _local3);
this.holder.HeatBubbleTime = this.holder.HeatBubbleTime + (_local2 - _local3);
this.holder.SpikeBubbleTime = this.holder.SpikeBubbleTime + (_local2 - _local3);
this.holder.RoughBubbleTime = this.holder.RoughBubbleTime + (_local2 - _local3);
this.holder.AccelerationBubbleTime = this.holder.AccelerationBubbleTime + (_local2 - _local3);
this.holder.Level.game.startCheckingFocus();
this.holder.game_backround.pause_screen_mc.removeMovieClip();
};
this.tempBarMusic = this.Level.game.musicVolume;
this.tempBarSound = this.Level.game.fxVolume;
this.game_backround.pause_screen_mc.slider.sliderFX._xscale = this.tempBarSound;
this.game_backround.pause_screen_mc.sliderMusic.sliderM._xscale = this.tempBarMusic;
this.game_backround.pause_screen_mc.soundDown.holder = this;
this.game_backround.pause_screen_mc.soundDown.onRollOver = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("hand");
};
this.game_backround.pause_screen_mc.soundDown.onRollOut = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.game_backround.pause_screen_mc.soundDown.onReleaseOutside = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.game_backround.pause_screen_mc.soundDown.onPress = function () {
this.holder.game_backround.pause_screen_mc.onEnterFrame = function () {
this.soundDown.holder.tempBarMusic = this.soundDown.holder.Level.game.musicVolume;
this.soundDown.holder.tempBarSound = this.soundDown.holder.Level.game.fxVolume;
if (this.soundDown.holder.tempBarSound > 0) {
this.soundDown.holder.tempBarSound = this.soundDown.holder.tempBarSound - 5;
this.soundDown.holder.game_backround.pause_screen_mc.slider.sliderFX._xscale = this.soundDown.holder.game_backround.pause_screen_mc.slider.sliderFX._xscale - 5;
this.soundDown.holder.Level.game.fxVolume = this.soundDown.holder.tempBarSound;
this.soundDown.holder.Level.game.sndCtrl.setSoundFXVolume(this.soundDown.holder.tempBarSound);
}
};
};
this.game_backround.pause_screen_mc.soundDown.onRelease = function () {
delete this.holder.game_backround.pause_screen_mc.onEnterFrame;
};
this.game_backround.pause_screen_mc.soundDown.onReleaseOutside = function () {
delete this.holder.game_backround.pause_screen_mc.onEnterFrame;
};
this.game_backround.pause_screen_mc.soundUp.holder = this;
this.game_backround.pause_screen_mc.soundUp.onRollOver = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("hand");
};
this.game_backround.pause_screen_mc.soundUp.onRollOut = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.game_backround.pause_screen_mc.soundUp.onReleaseOutside = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.game_backround.pause_screen_mc.soundUp.onPress = function () {
this.holder.game_backround.pause_screen_mc.onEnterFrame = function () {
this.soundUp.holder.tempBarMusic = this.soundUp.holder.Level.game.musicVolume;
this.soundUp.holder.tempBarSound = this.soundUp.holder.Level.game.fxVolume;
if (this.soundUp.holder.tempBarSound < 100) {
this.soundUp.holder.tempBarSound = this.soundUp.holder.tempBarSound + 5;
this.soundUp.holder.game_backround.pause_screen_mc.slider.sliderFX._xscale = this.soundUp.holder.game_backround.pause_screen_mc.slider.sliderFX._xscale + 5;
this.soundUp.holder.Level.game.fxVolume = this.soundUp.holder.tempBarSound;
this.soundUp.holder.Level.game.sndCtrl.setSoundFXVolume(this.soundUp.holder.tempBarSound);
}
};
};
this.game_backround.pause_screen_mc.soundUp.onRelease = function () {
delete this.holder.game_backround.pause_screen_mc.onEnterFrame;
};
this.game_backround.pause_screen_mc.soundUp.onReleaseOutside = function () {
delete this.holder.game_backround.pause_screen_mc.onEnterFrame;
};
this.game_backround.pause_screen_mc.musicDown.holder = this;
this.game_backround.pause_screen_mc.musicDown.onRollOver = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("hand");
};
this.game_backround.pause_screen_mc.musicDown.onRollOut = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.game_backround.pause_screen_mc.musicDown.onReleaseOutside = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.game_backround.pause_screen_mc.musicDown.onPress = function () {
this.holder.game_backround.pause_screen_mc.onEnterFrame = function () {
this.musicDown.holder.tempBarMusic = this.musicDown.holder.Level.game.musicVolume;
this.musicDown.holder.tempBarSound = this.musicDown.holder.Level.game.fxVolume;
if (this.musicDown.holder.tempBarMusic > 0) {
this.musicDown.holder.tempBarMusic = this.musicDown.holder.tempBarMusic - 5;
this.musicDown.holder.game_backround.pause_screen_mc.sliderMusic.sliderM._xscale = this.musicDown.holder.game_backround.pause_screen_mc.sliderMusic.sliderM._xscale - 5;
this.musicDown.holder.Level.game.musicVolume = this.musicDown.holder.tempBarMusic;
this.musicDown.holder.Level.game.sndCtrl.setMusicVolume(this.musicDown.holder.tempBarMusic);
}
};
};
this.game_backround.pause_screen_mc.musicDown.onRelease = function () {
delete this.holder.game_backround.pause_screen_mc.onEnterFrame;
};
this.game_backround.pause_screen_mc.musicDown.onReleaseOutside = function () {
delete this.holder.game_backround.pause_screen_mc.onEnterFrame;
};
this.game_backround.pause_screen_mc.musicUp.holder = this;
this.game_backround.pause_screen_mc.musicUp.onRollOver = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("hand");
};
this.game_backround.pause_screen_mc.musicUp.onRollOut = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.game_backround.pause_screen_mc.musicUp.onReleaseOutside = function () {
this.holder.Level.game.cursor.clip.gotoAndStop("arrow");
};
this.game_backround.pause_screen_mc.musicUp.onPress = function () {
this.holder.game_backround.pause_screen_mc.onEnterFrame = function () {
this.musicUp.holder.tempBarMusic = this.musicUp.holder.Level.game.musicVolume;
this.musicUp.holder.tempBarSound = this.musicUp.holder.Level.game.fxVolume;
if (this.musicUp.holder.tempBarMusic < 100) {
this.musicUp.holder.tempBarMusic = this.musicUp.holder.tempBarMusic + 5;
this.musicUp.holder.game_backround.pause_screen_mc.sliderMusic.sliderM._xscale = this.musicUp.holder.game_backround.pause_screen_mc.sliderMusic.sliderM._xscale + 5;
this.musicUp.holder.Level.game.musicVolume = this.musicUp.holder.tempBarMusic;
this.musicUp.holder.Level.game.sndCtrl.setMusicVolume(this.musicUp.holder.tempBarMusic);
}
};
};
this.game_backround.pause_screen_mc.musicUp.onRelease = function () {
delete this.holder.game_backround.pause_screen_mc.onEnterFrame;
};
this.game_backround.pause_screen_mc.musicUp.onReleaseOutside = function () {
delete this.holder.game_backround.pause_screen_mc.onEnterFrame;
};
};
_local2.KRemove = function (KBBI) {
this.vBBI = KBBI;
if (this.wallDown == false) {
this.vRBC = 0;
this.BRemoveCalc(this.BB[this.vBBI].R, this.BB[this.vBBI].C, this.BB[this.vBBI].COL);
if (this.vRBC >= 3) {
while (this.RB.length != 0) {
this.BRemove();
}
}
}
if (this.wallDown) {
this.vRBC = 0;
this.BFRemoveCalc();
if (this.vRBC >= 3) {
while (this.RB.length != 0) {
this.BRemove();
}
}
this.wallDown = false;
this.vCC = this.cmNothing;
return(undefined);
}
this.PowerBrake = true;
var _local8;
var _local7;
var _local6;
var _local5;
_local5 = 0;
_local6 = 0;
this.vRBC = 0;
this.BFRemoveCalc();
if (this.vBBI < 38) {
this.vBBI = this.vBBI + 19;
}
var _local4 = 1;
while (_local4 < 266) {
KBBI = _local4;
var _local3 = int(KBBI / 19);
if (((_local3 % 2) == 0) && ((_local3 % 19) != 1)) {
if (((((((((((this.BB[KBBI].F == 0) && (this.BB[KBBI].COL != 0)) && (this.BB[KBBI].COL != 100)) && (this.BB[KBBI - 1].COL == 0)) && (this.BB[KBBI - 19].COL == 0)) && (this.BB[KBBI - 19].COL != 100)) && (this.BB[KBBI - 18].COL == 0)) && (this.BB[KBBI - 18].COL != 100)) && (this.BB[KBBI + 19].COL != 100)) && (this.BB[KBBI + 20].COL != 100)) && ((this.BB[this.vBBI].ConID == this.BB[KBBI].ConID) || (this.BB[KBBI].ConID == 0))) {
this.BB[KBBI].N.ball1.removeMovieClip();
this.Explosion(this.BB[KBBI]);
this.CC[this.BB[KBBI].COL - 1]--;
this.BB[KBBI].COL = 0;
}
} else if (((_local3 % 2) == 1) && ((_local3 % 19) != 1)) {
if (((((((((((this.BB[KBBI].F == 0) && (this.BB[KBBI].COL != 0)) && (this.BB[KBBI].COL != 100)) && (this.BB[KBBI - 1].COL == 0)) && (this.BB[KBBI - 19].COL == 0)) && (this.BB[KBBI - 19].COL != 100)) && (this.BB[KBBI - 20].COL == 0)) && (this.BB[KBBI - 20].COL != 100)) && (this.BB[KBBI + 19].COL != 100)) && (this.BB[KBBI + 18].COL != 100)) && ((this.BB[this.vBBI].ConID == this.BB[KBBI].ConID) || (this.BB[KBBI].ConID == 0))) {
this.BB[KBBI].N.ball1.removeMovieClip();
this.Explosion(this.BB[KBBI]);
this.CC[this.BB[KBBI].COL - 1]--;
this.BB[KBBI].COL = 0;
}
}
if (((_local3 % 2) == 0) && ((_local3 % 19) == 1)) {
if (((((((((this.BB[KBBI].F == 0) && (this.BB[KBBI].COL != 0)) && (this.BB[KBBI].COL != 100)) && (this.BB[KBBI - 19].COL == 0)) && (this.BB[KBBI - 19].COL != 100)) && (this.BB[KBBI - 18].COL == 0)) && (this.BB[KBBI - 18].COL != 100)) && (this.BB[KBBI + 19].COL != 100)) && ((this.BB[this.vBBI].ConID == this.BB[KBBI].ConID) || (this.BB[KBBI].ConID == 0))) {
this.BB[KBBI].N.ball1.removeMovieClip();
this.Explosion(this.BB[KBBI]);
this.CC[this.BB[KBBI].COL - 1]--;
this.BB[KBBI].COL = 0;
}
} else if (((_local3 % 2) == 1) && ((_local3 % 19) == 1)) {
if (((((((this.BB[KBBI].F == 0) && (this.BB[KBBI].COL != 0)) && (this.BB[KBBI].COL != 100)) && (this.BB[KBBI - 19].COL == 0)) && (this.BB[KBBI - 19].COL != 100)) && (this.BB[KBBI + 19].COL != 100)) && ((this.BB[this.vBBI].ConID == this.BB[KBBI].ConID) || (this.BB[KBBI].ConID == 0))) {
this.BB[KBBI].N.ball1.removeMovieClip();
this.Explosion(this.BB[KBBI]);
this.CC[this.BB[KBBI].COL - 1]--;
this.BB[KBBI].COL = 0;
}
}
_local4++;
}
if (this.wallDown) {
this.wallDown = false;
this.vCC = this.cmNothing;
return(undefined);
}
if (this.wallDown) {
this.wallDown = false;
return(undefined);
}
this.vCC = this.cmBHideNext;
};
_local2.setProcent = function () {
switch (this.BonusBallId) {
case 74 :
this.Level.game.MorphProcent++;
break;
case 73 :
this.Level.game.DoubleProcent++;
break;
case 71 :
this.Level.game.MoralProcent++;
break;
case 77 :
this.Level.game.AssaultProcent++;
break;
case 76 :
this.Level.game.ShieldProcent++;
break;
case 78 :
this.Level.game.SpyProcent++;
break;
case 75 :
this.Level.game.TimeProcent++;
break;
case 72 :
this.Level.game.TransmutationProcent++;
}
};
_local2.endPauza = function () {
this.pauseInGame = false;
this.Level.game.sndCtrl.resumeAllSounds();
var _local2 = getTimer();
var _local3 = this.Level.game.keyboard.pauseTime;
this.oldRowTime = this.oldRowTime + (_local2 - _local3);
this.startTime = this.startTime + (_local2 - _local3);
this.OldTime = this.OldTime + (_local2 - _local3);
this.GameTime = this.GameTime + (_local2 - _local3);
this.game_backround.pause_screen_mc.removeMovieClip();
};
_local2.endOfGame = function () {
this.vBonusF = true;
this.vCC = this.cmGameOver;
this.GameOver();
};
// unexpected jump
// unexpected jump
_local2.KCalcDelta = function (AAng) {
if (!this.withHelpPoints) {
return(undefined);
}
var _local17;
var _local8;
var _local16;
var _local3;
var _local6;
var _local4;
var _local7;
var _local5;
var _local2;
var _local13;
var _local12;
var _local9 = 0;
while (_local9 < this.Points.length) {
this.Points[_local9].removeMovieClip();
_local9++;
}
this.pathCounter = 0;
this.PointsCounter = 0;
this.Points = [];
_local17 = Math.tan((AAng * Math.PI) / 180);
this.agol = this.vAngle;
if (0 < AAng) {
if (AAng >= 45) {
this.side = "right";
this.bubSide = 1;
this.vDX = this.vDelta;
this.vDY = (-this.vDelta) / _local17;
} else {
this.side = "right";
this.bubSide = 1;
this.vDY = -this.vDelta;
this.vDX = this.vDelta * _local17;
}
} else if (-45 >= AAng) {
this.side = "left";
this.bubSide = -1;
this.vDX = -this.vDelta;
this.vDY = this.vDelta / _local17;
} else {
this.side = "left";
this.bubSide = -1;
this.vDY = -this.vDelta;
this.vDX = this.vDelta * _local17;
}
this.vX = this.vBCur._x;
this.vY = this.vBCur._y;
_local8 = this.vDX;
_local16 = this.vDY;
_local3 = this.vX;
_local6 = this.vY;
this.vTC = 0;
_local13 = 0;
var _local11 = false;
_local12 = 0;
while (true) {
if (((((this.BB[ballX - 1].COL == 0) && (this.BB[ballX + 1].COL == 0)) && (this.BB[(ballY * 19) + (ballX - 20)].COL == 0)) && (this.BB[(ballY * 19) + (ballX - 19)].COL == 0)) && (this.BB[(ballY * 19) + (ballX - 18)].COL == 0)) {
}
_local3 = _local3 + _local8;
_local6 = _local6 + _local16;
if (this.Level.levelAssets.chekWall1(_local3, _local6) && (!_local11)) {
_local11 = true;
this.vTC++;
_local8 = -_local8;
this.bubSide = -1 * this.bubSide;
} else if ((_local3 + this.cR) >= ((this.cR + (this.cD * 17)) + this.cB)) {
_local11 = false;
this.vTC++;
_local8 = -_local8;
this.bubSide = -1 * this.bubSide;
} else if (this.cB >= (_local3 - this.cR)) {
_local11 = false;
this.vTC++;
_local8 = -_local8;
this.bubSide = -1 * this.bubSide;
}
_local7 = int((_local6 - this.cB) / this.cD) + 1;
if ((_local7 % 2) && (!(this.BrRows % 2))) {
_local5 = int((_local3 - this.cB) / this.cD) + 1;
} else if ((!(_local7 % 2)) && (!(this.BrRows % 2))) {
_local5 = int(((_local3 - this.cB) - this.cR) / this.cD) + 1;
} else if ((_local7 % 2) && (this.BrRows % 2)) {
_local5 = int(((_local3 - this.cB) - this.cR) / this.cD) + 1;
} else {
_local5 = int((_local3 - this.cB) / this.cD) + 1;
}
if (17 < _local5) {
_local5 = 17;
} else if (_local5 < 1) {
_local5 = 1;
}
if (16 < _local7) {
} else {
var ballX = _local5;
var ballY = _local7;
this.PointsCounter++;
if (((this.PointsCounter % 2) == 0) && (this.PointsCounter > 1)) {
var _local10 = this.game_backround.attachMovie("point", "point", this.game_backround.getNextHighestDepth() + 1, {_x:_local3, _y:_local6});
_local10.cacheAsBitmap = true;
if (this.Points.length == 0) {
_local10.gotoAndStop(2);
}
this.Points.push(_local10);
}
_local2 = (_local7 * 19) + _local5;
_local4 = this.cBR >= _local6;
if (!_local4) {
_local4 = 0 < this.BB[_local2].COL;
if (_local4) {
(this.vDY);// not popped
_local7 = _local13;
_local5 = _local12;
}
}
if (!_local4) {
_local4 = ((0 < this.BB[_local2 - 19].COL) && (100 > this.BB[_local2 - 19].COL)) && ((((_local6 - this.BB[_local2 - 19].Y) * (_local6 - this.BB[_local2 - 19].Y)) + ((_local3 - this.BB[_local2 - 19].X) * (_local3 - this.BB[_local2 - 19].X))) < this.cDMM);
}
if (!_local4) {
if (_local7 % 2) {
_local4 = ((0 < this.BB[_local2 - 20].COL) && (100 > this.BB[_local2 - 20].COL)) && ((((_local6 - this.BB[_local2 - 20].Y) * (_local6 - this.BB[_local2 - 20].Y)) + ((_local3 - this.BB[_local2 - 20].X) * (_local3 - this.BB[_local2 - 20].X))) < this.cDMM);
} else {
_local4 = ((0 < this.BB[_local2 - 18].COL) && (100 > this.BB[_local2 - 18].COL)) && ((((_local6 - this.BB[_local2 - 18].Y) * (_local6 - this.BB[_local2 - 18].Y)) + ((_local3 - this.BB[_local2 - 18].X) * (_local3 - this.BB[_local2 - 18].X))) < this.cDMM);
}
}
if (!_local4) {
_local4 = ((0 < this.BB[_local2 - 1].COL) && (100 > this.BB[_local2 - 1].COL)) && ((_local3 - this.BB[_local2 - 1].X) < this.cDM);
}
if (!_local4) {
_local4 = ((0 < this.BB[_local2 + 1].COL) && (100 > this.BB[_local2 + 1].COL)) && ((this.BB[_local2 + 1].X - _local3) < this.cDM);
}
if (_local4) {
if (this.vBCurCol == 78) {
} else {
this.vBBI = (_local7 * 19) + _local5;
}
if (this.side == "right") {
this.bubSide = 1;
} else {
this.bubSide = -1;
}
this.vTX = this.BB[this.vBBI].X;
this.vTY = this.BB[this.vBBI].Y;
if (this.vTC == 0) {
this.vTLDist = ((this.vX - this.vTX) * (this.vX - this.vTX)) + ((this.vY - this.vTY) * (this.vY - this.vTY));
}
break;
}
_local13 = _local7;
}
_local12 = _local5;
}
};
ASSetPropFlags(ss.BubbleGame.prototype, null, 1);
#endinitclip
Symbol 1120 MovieClip [__Packages.screens.OverviewScreen] Frame 0
class screens.OverviewScreen implements IScreen
{
var game, itemsForBuing, BuyScreenBackName, BuyScreenName, BuyScreenBack, BuyScreen, clip;
function OverviewScreen (game_) {
game = game_;
itemsForBuing = 0;
init();
}
function init() {
BuyScreenBackName = game.buyScreenBackground;
BuyScreenName = game.buyScreenInterfejs;
BuyScreenBack = game.game_backround.attachMovie(BuyScreenBackName, "BuyScreenBack", 3001, {_x:-49, _y:-50});
var _local2;
var _local3;
_local2 = 0;
while (_local2 < game.boughtItems.length) {
var _local6;
var _local5;
var _local4;
_local4 = game.boughtItems[_local2].itemsName;
_local6 = game.boughtItems[_local2].X;
_local5 = game.boughtItems[_local2].Y;
trace((((("imeto na kupeniot objekt " + _local4) + " x ") + _local6) + " y ") + _local5);
if (game.boughtItems[_local2].buyFlag) {
game.boughtItems[_local2].clip = BuyScreenBack.attachMovie(_local4, _local4, game.depth.getDepth(_local4), {_x:_local6, _y:_local5});
var _local7 = game.depth.getDepth(_local4);
}
_local2++;
}
_local3 = 0;
while (_local3 < game.bonusItems.length) {
var _local6 = game.bonusItems[_local3].X;
var _local5 = game.bonusItems[_local3].Y;
var _local4 = game.bonusItems[_local3].itemsName;
BuyScreenBack.attachMovie(_local4, _local4, game.depth.getDepth(_local4), {_x:_local6, _y:_local5});
var _local7 = game.depth.getDepth(_local4);
_local3++;
}
BuyScreen.attachMovie("backToGame_btn", "backToGame_btn", 105, {_x:-2, _y:490});
BuyScreen.NextLevel._x = -2;
BuyScreen.NextLevel._y = 490;
BuyScreen.menuBuyScreen_btn._x = 713;
BuyScreen.menuBuyScreen_btn._y = 490;
BuyScreen.NextLevel.itemsName.text = game.Language.getLangText("nextLevel");
addEvents();
}
function attachScreen() {
return(clip);
}
function removeScreen() {
game.game_backround.options_screen_mc.removeMovieClip();
BuyScreenBack.removeMovieClip();
BuyScreen.removeMovieClip();
}
function addEvents() {
BuyScreenBack.holder = this;
BuyScreenBack.onRollOver = function () {
this.holder.game.cursor.clip.gotoAndStop("hand");
};
BuyScreenBack.onRollOut = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
BuyScreenBack.onReleaseOutside = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
};
BuyScreenBack.onRelease = function () {
this.holder.game.cursor.clip.gotoAndStop("arrow");
this.holder.game.level.bubbleGame.pauseInGame = false;
var _local2 = getTimer();
var _local3 = this.holder.game.keyboard.pauseTime;
this.holder.game.level.bubbleGame.oldRowTime = this.holder.game.level.bubbleGame.oldRowTime + (_local2 - _local3);
this.holder.game.level.bubbleGame.startTime = this.holder.game.level.bubbleGame.startTime + (_local2 - _local3);
this.holder.game.level.bubbleGame.OldTime = this.holder.game.level.bubbleGame.OldTime + (_local2 - _local3);
this.holder.game.level.bubbleGame.GameTime = this.holder.game.level.bubbleGame.GameTime + (_local2 - _local3);
this.holder.game.level.bubbleGame.LightBubbleTime = this.holder.game.level.bubbleGame.LightBubbleTime + (_local2 - _local3);
this.holder.game.level.bubbleGame.IceBubbleTime = this.holder.game.level.bubbleGame.IceBubbleTime + (_local2 - _local3);
this.holder.game.level.bubbleGame.MirrorBubbleTime = this.holder.game.level.bubbleGame.MirrorBubbleTime + (_local2 - _local3);
this.holder.game.level.bubbleGame.HeatBubbleTime = this.holder.game.level.bubbleGame.HeatBubbleTime + (_local2 - _local3);
this.holder.game.level.bubbleGame.SpikeBubbleTime = this.holder.game.level.bubbleGame.SpikeBubbleTime + (_local2 - _local3);
this.holder.game.level.bubbleGame.RoughBubbleTime = this.holder.game.level.bubbleGame.RoughBubbleTime + (_local2 - _local3);
this.holder.game.level.bubbleGame.AccelerationBubbleTime = this.holder.game.level.bubbleGame.AccelerationBubbleTime + (_local2 - _local3);
this.holder.game.sndCtrl.stopSound("pressButton");
this.holder.game.sndCtrl.playSound("pressButton");
this.holder.removeScreen();
};
BuyScreen.NextLevel.onRollOver = function () {
};
}
}
Symbol 1121 MovieClip [__Packages.utils.BaseClass] Frame 0
class utils.BaseClass
{
var events;
function BaseClass () {
}
function addEventListener(evt, listener) {
if (events == undefined) {
events = new mx.events.EventDispatcher();
}
events.addEventListener(evt, listener);
}
function removeEventListener(evt, listener) {
events.removeEventListener(evt, listener);
}
function destroy() {
var _local2 = false;
trace("deleted: " + _local2);
}
var pi = Math.PI;
var cos = Math.cos;
var acos = Math.acos;
var sin = Math.sin;
var asin = Math.asin;
var atan2 = Math.atan2;
var abs = Math.abs;
var round = Math.round;
}
Symbol 1122 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 1123 MovieClip [__Packages.utils.Timer] Frame 0
class utils.Timer extends utils.BaseClass
{
var game, _ival, events;
function Timer (game_) {
super();
game = game_;
}
function start() {
clearInterval(_ival);
_ival = setInterval(this, "doTick", game.GameSpeed);
}
function stop() {
trace("STOPPPPPP");
clearInterval(_ival);
}
function doTick() {
events.dispatchEvent({type:"onTimerTick", target:this});
}
}
Symbol 37 MovieClip [YoudaGames] Frame 1
this.allowSkip = true;
Instance of Symbol 12 MovieClip in Symbol 37 MovieClip [YoudaGames] Frame 1
onClipEvent (load) {
if ((_global.youdagames != "") && (_global.youdagames != undefined)) {
this.onRelease = function () {
getURL (_global.youdagames, "_blank");
};
}
this._width = _global.stage_w;
this._height = _global.stage_h;
var point = {x:0, y:0};
this._parent.globalToLocal(point);
this._x = point.x;
this._y = point.y;
}
Symbol 37 MovieClip [YoudaGames] Frame 99
_global.playNext();
stop();
Instance of Symbol 2 MovieClip in Symbol 48 MovieClip [YoudaPreloader] Frame 1
onClipEvent (load) {
this._width = _global.stage_w;
this._height = _global.stage_h;
var point = {x:0, y:0};
this._parent.globalToLocal(point);
this._x = point.x;
this._y = point.y;
}
Symbol 48 MovieClip [YoudaPreloader] Frame 2
var loaded = 0;
this.onEnterFrame = function () {
if (_root.getBytesTotal() < 20) {
return(undefined);
}
loaded = Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loaded == 100) {
loaded = undefined;
this.onEnterFrame = undefined;
play();
} else {
this.youdapreloader.percentloaded_bar_mc._xscale = loaded;
this.youdapreloader.loaded_txt.text = loaded + "%";
this.youdapreloader._visible = true;
stop();
}
};
stop();
Instance of Symbol 47 MovieClip "youdapreloader" in Symbol 48 MovieClip [YoudaPreloader] Frame 2
onClipEvent (load) {
this._visible = false;
}
Symbol 48 MovieClip [YoudaPreloader] Frame 6
_global.playNext();
stop();
Symbol 54 MovieClip [point] Frame 1
stop();
Symbol 54 MovieClip [point] Frame 2
stop();
Symbol 90 MovieClip Frame 1
this._visible = false;
Symbol 100 Button
on (release) {
gameURL = ("http://www.miniclip.com/games/" + gamename) + "/en/";
trace("Going to game: " + gameURL);
getURL (gameURL, "_blank");
}
Symbol 102 MovieClip Frame 1
System.security.allowDomain("www.miniclip.com");
Instance of Symbol 90 MovieClip "mcHighscores" in Symbol 102 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 102 MovieClip Frame 2
if ((((_url.indexOf("miniclip.com") == -1) && (_url.indexOf("miniclip.net") == -1)) && (_url.indexOf("miniclip.co.uk") == -1)) && (_url.indexOf("miniclips.com"))) {
gotoAndStop(_currentframe + 1);
} else {
var noCache = (getTimer() + random(100000));
mcTarget.loadMovie("http://www.miniclip.com/swfcontent/highscore.swf?noCache=" + noCache);
stop();
}
Symbol 102 MovieClip Frame 3
stop();
Symbol 103 MovieClip [reward_screen_mc] Frame 1
_global.highScoreScreen = this;
stop();
Symbol 103 MovieClip [reward_screen_mc] Frame 2
stop();
Instance of Symbol 102 MovieClip "comHighscores" in Symbol 103 MovieClip [reward_screen_mc] Frame 2
//component parameters
onClipEvent (construct) {
scoreLocation = "_global.AllScore";
gamename = "youdaconqueror";
saveScore = true;
scoreIsTime = false;
scoreReversed = false;
negativeScoreAllowed = false;
}
Symbol 107 MovieClip [bonusAnim_mc] Frame 44
gotoAndPlay (1);
Symbol 126 MovieClip [bonusScreen] Frame 19
stop();
Symbol 131 MovieClip [fadeHint4_mc] Frame 15
stop();
Symbol 136 MovieClip [fadeHint3_mc] Frame 5
stop();
Symbol 141 MovieClip [popHints_reverse] Frame 15
stop();
Symbol 146 MovieClip [popHints] Frame 15
stop();
Symbol 158 MovieClip Frame 16
stop();
Symbol 159 MovieClip [Show100] Frame 1
stop();
Symbol 159 MovieClip [Show100] Frame 2
stop();
Symbol 172 MovieClip [pellaObjects_mc] Frame 1
stop();
Symbol 172 MovieClip [pellaObjects_mc] Frame 2
stop();
Symbol 172 MovieClip [pellaObjects_mc] Frame 3
stop();
Symbol 172 MovieClip [pellaObjects_mc] Frame 4
stop();
Symbol 172 MovieClip [pellaObjects_mc] Frame 5
stop();
Symbol 172 MovieClip [pellaObjects_mc] Frame 6
stop();
Symbol 191 MovieClip [allObjects_mc] Frame 1
stop();
Symbol 191 MovieClip [allObjects_mc] Frame 2
stop();
Symbol 191 MovieClip [allObjects_mc] Frame 3
stop();
Symbol 191 MovieClip [allObjects_mc] Frame 4
stop();
Symbol 191 MovieClip [allObjects_mc] Frame 5
stop();
Symbol 191 MovieClip [allObjects_mc] Frame 6
stop();
Symbol 246 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 2
stop();
Symbol 246 MovieClip Frame 3
stop();
Symbol 246 MovieClip Frame 4
stop();
Symbol 296 MovieClip [cover_screen_mc] Frame 1
stop();
Symbol 296 MovieClip [cover_screen_mc] Frame 2
stop();
Symbol 296 MovieClip [cover_screen_mc] Frame 3
stop();
Symbol 296 MovieClip [cover_screen_mc] Frame 4
stop();
Symbol 333 MovieClip [Splash77] Frame 12
stop();
Symbol 334 MovieClip [Show77] Frame 8
stop();
Symbol 340 MovieClip [Splash73] Frame 12
stop();
Symbol 341 MovieClip [Show73] Frame 8
stop();
Symbol 347 MovieClip [Splash74] Frame 12
stop();
Symbol 348 MovieClip [Show74] Frame 8
stop();
Symbol 354 MovieClip [Splash71] Frame 12
stop();
Symbol 355 MovieClip [Show71] Frame 8
stop();
Symbol 361 MovieClip [Splash76] Frame 12
stop();
Symbol 362 MovieClip [Show76] Frame 8
stop();
Symbol 368 MovieClip [Splash78] Frame 12
stop();
Symbol 369 MovieClip [Show78] Frame 8
stop();
Symbol 375 MovieClip [Splash75] Frame 12
stop();
Symbol 376 MovieClip [Show75] Frame 8
stop();
Symbol 382 MovieClip [Splash72] Frame 12
stop();
Symbol 383 MovieClip [Show72] Frame 8
stop();
Symbol 474 MovieClip [Hide53] Frame 8
stop();
Symbol 475 MovieClip [Splash53] Frame 8
stop();
Symbol 476 MovieClip [Show53] Frame 8
stop();
Symbol 480 MovieClip [Hide25] Frame 8
stop();
Symbol 481 MovieClip [Splash25] Frame 8
stop();
Symbol 482 MovieClip [Show25] Frame 8
stop();
Symbol 486 MovieClip [Hide16] Frame 8
stop();
Symbol 487 MovieClip [Splash16] Frame 8
stop();
Symbol 488 MovieClip [Show16] Frame 8
stop();
Symbol 492 MovieClip [Hide7] Frame 8
stop();
Symbol 493 MovieClip [Splash7] Frame 8
stop();
Symbol 494 MovieClip [Show7] Frame 8
stop();
Symbol 498 MovieClip [Hide6] Frame 8
stop();
Symbol 499 MovieClip [Splash6] Frame 8
stop();
Symbol 500 MovieClip [Show6] Frame 8
stop();
Symbol 504 MovieClip [Hide5] Frame 8
stop();
Symbol 505 MovieClip [Splash5] Frame 8
stop();
Symbol 506 MovieClip [Show5] Frame 8
stop();
Symbol 510 MovieClip [Hide4] Frame 8
stop();
Symbol 511 MovieClip [Splash4] Frame 8
stop();
Symbol 512 MovieClip [Show4] Frame 8
stop();
Symbol 516 MovieClip [Splash52] Frame 8
stop();
Symbol 520 MovieClip [Splash51] Frame 8
stop();
Symbol 524 MovieClip [Splash50] Frame 8
stop();
Symbol 528 MovieClip [Splash18] Frame 8
stop();
Symbol 532 MovieClip [Splash14] Frame 8
stop();
Symbol 536 MovieClip [Splash3] Frame 8
stop();
Symbol 540 MovieClip [Splash2] Frame 8
stop();
Symbol 544 MovieClip [Splash1] Frame 8
stop();
Symbol 545 MovieClip [Show52] Frame 8
stop();
Symbol 546 MovieClip [Hide52] Frame 8
stop();
Symbol 547 MovieClip [Show51] Frame 8
stop();
Symbol 548 MovieClip [Hide51] Frame 8
stop();
Symbol 549 MovieClip [Show50] Frame 8
stop();
Symbol 550 MovieClip [Hide50] Frame 8
stop();
Symbol 551 MovieClip [Show18] Frame 8
stop();
Symbol 552 MovieClip [Hide18] Frame 8
stop();
Symbol 553 MovieClip [Show14] Frame 8
stop();
Symbol 554 MovieClip [Hide14] Frame 8
stop();
Symbol 555 MovieClip [Show3] Frame 8
stop();
Symbol 556 MovieClip [Hide3] Frame 8
stop();
Symbol 557 MovieClip [Show2] Frame 8
stop();
Symbol 558 MovieClip [Hide2] Frame 8
stop();
Symbol 559 MovieClip [Show1] Frame 8
stop();
Symbol 560 MovieClip [Hide1] Frame 8
stop();
Symbol 570 MovieClip Frame 1
stop();
Symbol 570 MovieClip Frame 2
stop();
Symbol 570 MovieClip Frame 3
stop();
Symbol 570 MovieClip Frame 4
stop();
Symbol 571 MovieClip [zavesa] Frame 1
trace("zavesa down");
Symbol 571 MovieClip [zavesa] Frame 15
stop();
Symbol 571 MovieClip [zavesa] Frame 16
trace("zavesa up");
Symbol 571 MovieClip [zavesa] Frame 30
stop();
Symbol 585 MovieClip Frame 14
stop();
Symbol 586 MovieClip [motionBurst] Frame 8
stop();
Symbol 587 MovieClip [Game] Frame 1
#initclip 37
Object.registerClass("Game", ss.Game);
#endinitclip
Symbol 599 MovieClip Frame 15
stop();
Symbol 603 MovieClip Frame 63
stop();
Symbol 615 MovieClip Frame 1
trace("ANIMACIJA ZA BATTLE");
_global.startBattle = true;
_global.endBattle = false;
Symbol 615 MovieClip Frame 63
stop();
_global.startBattle = false;
_global.endBattle = true;
Symbol 618 MovieClip Frame 63
stop();
Symbol 619 MovieClip Frame 45
stop();
Symbol 626 MovieClip Frame 15
stop();
Symbol 630 MovieClip Frame 75
stop();
Symbol 631 MovieClip Frame 75
stop();
Symbol 639 MovieClip Frame 15
stop();
Symbol 640 MovieClip Frame 15
stop();
Symbol 642 MovieClip Frame 50
stop();
Symbol 648 MovieClip Frame 15
stop();
Symbol 650 MovieClip Frame 66
stop();
Symbol 656 MovieClip Frame 15
stop();
Symbol 660 MovieClip Frame 70
stop();
Symbol 664 MovieClip Frame 15
stop();
Symbol 666 MovieClip Frame 35
stop();
Symbol 671 MovieClip Frame 15
stop();
Symbol 677 MovieClip Frame 15
stop();
Symbol 684 MovieClip Frame 15
stop();
Symbol 688 MovieClip Frame 15
stop();
Symbol 689 MovieClip Frame 1
stop();
Symbol 689 MovieClip Frame 2
stop();
Symbol 689 MovieClip Frame 3
stop();
Symbol 689 MovieClip Frame 4
stop();
Symbol 689 MovieClip Frame 5
stop();
Symbol 689 MovieClip Frame 6
stop();
Symbol 689 MovieClip Frame 7
stop();
Symbol 689 MovieClip Frame 8
stop();
Symbol 689 MovieClip Frame 9
stop();
Symbol 689 MovieClip Frame 10
stop();
Symbol 702 MovieClip [newUserPage_MC] Frame 1
Selection.setFocus(userName);
Symbol 709 MovieClip [congratulatoinsScreen] Frame 1
stop();
Symbol 709 MovieClip [congratulatoinsScreen] Frame 2
stop();
Symbol 709 MovieClip [congratulatoinsScreen] Frame 3
stop();
Symbol 731 Button
on (release) {
if (_global.coAffiliateLink) {
getURL (_global.coAffiliateLink, "_blank");
} else if (_global.moregamelink) {
getURL (_global.moregamelink, "_blank");
} else {
getURL ("http://www.youdagames.com", "_blank");
}
}
Symbol 736 Button
on (release) {
getURL (_global.buygamelink, "_blank");
}
Instance of Symbol 741 MovieClip in Symbol 742 MovieClip Frame 1
onClipEvent (load) {
if ((_global.youdagames != "") && (_global.youdagames != undefined)) {
this.onRelease = function () {
getURL (_global.youdagames, "_blank");
};
}
}
Symbol 792 MovieClip Frame 27
stop();
Symbol 860 MovieClip Frame 1
if ((_global.coAffiliateLink != "") && (_global.coAffiliateLink != undefined)) {
this._parent.onRelease = function () {
getURL (_global.coAffiliateLink, "_blank");
};
}
var basePath = "";
if (mdm.Application.path) {
basePath = mdm.Application.path;
}
var logoImage = (basePath + "logo_affiliate_small.jpg");
var checkFile = new LoadVars();
this._visible = false;
checkFile.obj = this;
checkFile.onLoad = function (success) {
if (success) {
this.obj.logo_holder_mc.loadMovie(logoImage);
this.obj.onEnterFrame = function () {
if ((this.logo_holder_mc.getBytesLoaded() == this.logo_holder_mc.getBytesTotal()) && (this.logo_holder_mc.getBytesTotal() > 4)) {
if (!this.logo_holder_mc._width) {
return(undefined);
}
this.logo_holder_mc._x = this.logo_holder_mc._x - this.logo_holder_mc._width;
this._visible = true;
delete this.onEnterFrame;
}
};
} else {
this.obj.gotoAndStop("png");
}
};
checkFile.load(logoImage);
stop();
Symbol 860 MovieClip Frame 2
if ((_global.coAffiliateLink != "") && (_global.coAffiliateLink != undefined)) {
this._parent.onRelease = function () {
getURL (_global.coAffiliateLink, "_blank");
};
}
var basePath = "";
if (mdm.Application.path) {
basePath = mdm.Application.path;
}
var logoImage = (basePath + "logo_affiliate_small.png");
var checkFile = new LoadVars();
this._visible = false;
checkFile.obj = this;
checkFile.onLoad = function (success) {
if (success) {
this.obj.logo_holder_mc.loadMovie(logoImage);
this.obj.onEnterFrame = function () {
if ((this.logo_holder_mc.getBytesLoaded() == this.logo_holder_mc.getBytesTotal()) && (this.logo_holder_mc.getBytesTotal() > 4)) {
if (!this.logo_holder_mc._width) {
return(undefined);
}
this.logo_holder_mc._x = this.logo_holder_mc._x - this.logo_holder_mc._width;
this._visible = true;
delete this.onEnterFrame;
}
};
}
};
checkFile.load(logoImage);
stop();
Instance of Symbol 862 MovieClip in Symbol 863 MovieClip Frame 1
on (release) {
getURL (_root.localization_url1, "_blank");
}
Symbol 864 MovieClip Frame 1
stop();
Instance of Symbol 864 MovieClip in Symbol 865 MovieClip Frame 1
onClipEvent (load) {
if ((!_global.companylogo) || (_global.companylogo == "")) {
return(undefined);
}
this.gotoAndStop(_global.companylogo.toLowerCase());
if (((_global.moregamelink != "") && (_global.moregamelink != undefined)) && (!(_global.companylogo === "coAffiliate"))) {
this.onRelease = function () {
this.getURL(_global.moregamelink, "_blank");
};
}
}
Symbol 867 MovieClip Frame 1
if (!(_global.companylogo === "coAffiliate")) {
this.gotoAndStop(2);
}
stop();
Symbol 867 MovieClip Frame 2
if ((_global.coAffiliateLink != "") && (_global.coAffiliateLink != undefined)) {
this._parent.onRelease = function () {
getURL (_global.coAffiliateLink, "_blank");
};
}
var basePath = "";
if (mdm.Application.path) {
basePath = mdm.Application.path;
}
var logoImage = (basePath + "logo_affiliate_small.jpg");
var checkFile = new LoadVars();
this._visible = false;
checkFile.obj = this;
checkFile.onLoad = function (success) {
if (success) {
this.obj.logo_holder_mc.loadMovie(logoImage);
this.obj.onEnterFrame = function () {
if ((this.logo_holder_mc.getBytesLoaded() == this.logo_holder_mc.getBytesTotal()) && (this.logo_holder_mc.getBytesTotal() > 4)) {
if (!this.logo_holder_mc._width) {
return(undefined);
}
this.logo_holder_mc._x = this.logo_holder_mc._x - this.logo_holder_mc._width;
this._visible = true;
delete this.onEnterFrame;
}
};
} else {
this.obj.gotoAndStop("png");
}
};
checkFile.load(logoImage);
stop();
Symbol 867 MovieClip Frame 3
if ((_global.coAffiliateLink != "") && (_global.coAffiliateLink != undefined)) {
this._parent.onRelease = function () {
getURL (_global.coAffiliateLink, "_blank");
};
}
var basePath = "";
if (mdm.Application.path) {
basePath = mdm.Application.path;
}
var logoImage = (basePath + "logo_affiliate_small.png");
var checkFile = new LoadVars();
this._visible = false;
checkFile.obj = this;
checkFile.onLoad = function (success) {
if (success) {
this.obj.logo_holder_mc.loadMovie(logoImage);
this.obj.onEnterFrame = function () {
if ((this.logo_holder_mc.getBytesLoaded() == this.logo_holder_mc.getBytesTotal()) && (this.logo_holder_mc.getBytesTotal() > 4)) {
if (!this.logo_holder_mc._width) {
return(undefined);
}
this.logo_holder_mc._x = this.logo_holder_mc._x - this.logo_holder_mc._width;
this._visible = true;
delete this.onEnterFrame;
}
};
}
};
checkFile.load(logoImage);
stop();
Symbol 895 MovieClip [cursor] Frame 1
stop();
Symbol 895 MovieClip [cursor] Frame 2
stop();
Symbol 895 MovieClip [cursor] Frame 3
stop();
Symbol 902 MovieClip Frame 1
stop();
Symbol 902 MovieClip Frame 2
stop();
Symbol 902 MovieClip Frame 3
stop();
Symbol 920 MovieClip [buyBtn] Frame 1
stop();
Symbol 920 MovieClip [buyBtn] Frame 2
stop();
Symbol 920 MovieClip [buyBtn] Frame 3
stop();
Symbol 920 MovieClip [buyBtn] Frame 4
stop();
Symbol 973 MovieClip [accelerate_mc] Frame 105
gotoAndPlay (30);
Symbol 976 MovieClip Frame 18
this.swapDepths(1234);
this.removeMovieClip();
Symbol 977 MovieClip [stars_mc] Frame 91
this.swapDepths(1234);
this.removeMovieClip();
Symbol 999 MovieClip [Hide54] Frame 8
stop();
Symbol 1000 MovieClip [Splash54] Frame 13
stop();
Symbol 1001 MovieClip [Show54] Frame 8
stop();
Symbol 1003 MovieClip [show_object] Frame 25
stop();
Symbol 1005 MovieClip [show_object_palace] Frame 25
stop();
Symbol 1008 MovieClip Frame 1
stop();
Symbol 1021 MovieClip Frame 7
stop();
Symbol 1023 MovieClip Frame 1
this._parent.bubble._x = 0;
Symbol 1023 MovieClip Frame 3
this._parent.bubble._x = 2;
Symbol 1025 MovieClip [Arrow] Frame 1
stop();
Instance of Symbol 588 MovieClip [_b] "bubble" in Symbol 1025 MovieClip [Arrow] Frame 1
on (press) {
}
Symbol 1025 MovieClip [Arrow] Frame 2
stop();
Symbol 1025 MovieClip [Arrow] Frame 3
stop();
Instance of Symbol 588 MovieClip [_b] "bubble" in Symbol 1025 MovieClip [Arrow] Frame 3
on (press) {
}
Symbol 1025 MovieClip [Arrow] Frame 4
stop();
Symbol 1025 MovieClip [Arrow] Frame 5
stop();
Instance of Symbol 588 MovieClip [_b] "bubble" in Symbol 1025 MovieClip [Arrow] Frame 5
on (press) {
}
Instance of Symbol 1023 MovieClip in Symbol 1025 MovieClip [Arrow] Frame 6
on (press) {
}
Symbol 1029 MovieClip [shine] Frame 32
stop();
Symbol 1031 MovieClip [shine_up] Frame 32
stop();
Symbol 1033 MovieClip [shineRed_newLife] Frame 32
stop();
Symbol 1035 MovieClip [weapon] Frame 16
stop();
Symbol 1037 MovieClip [luxury] Frame 15
stop();
Symbol 1039 MovieClip [magic] Frame 15
stop();
Symbol 1041 MovieClip [primary] Frame 15
stop();
Symbol 1043 MovieClip [thunderStorm_mc] Frame 19
stop();
Symbol 1047 MovieClip [Hide26] Frame 8
stop();
Symbol 1048 MovieClip [Splash26] Frame 8
stop();
Symbol 1049 MovieClip [Show26] Frame 8
stop();
Symbol 1085 MovieClip Frame 1
stop();