Frame 1
Stage.scaleMode = "noScale";
Stage.align = "TL";
Frame 2
var bt = this.getBytesTotal();
var bl = this.getBytesLoaded();
var percent = Math.round((bl / bt) * 100);
if (bl >= bt) {
this.gotoAndPlay("default");
} else {
this.preloader_mc.gotoAndStop(percent);
this.gotoAndPlay(1);
}
Frame 3
function changeSection(section) {
var _local1 = this;
var _local2 = section;
switch (_local2) {
case "controls" :
case "help" :
_local1.gotoAndStop("controls");
_local1.controls_mc.gotoAndStop(_local2);
return;
case "default" :
_local1.gotoAndPlay(_local2);
return;
case "character" :
case "game" :
case "levelcomplete" :
case "showscore" :
_local1.gotoAndStop(_local2);
return;
case "level1" :
case "level2" :
case "level3" :
case "level4" :
case "level5" :
case "level6" :
case "level7" :
case "die" :
_local1.gotoAndStop("level");
_local1.level_mc.gotoAndStop(_local2);
}
}
function showStatue() {
this.sidePanel_mc.gotoAndStop("statue");
}
function showLeaderboard() {
this.sidePanel_mc.gotoAndStop("leaderboard");
}
function gameLoaded() {
siteRoot.preloader_mc._visible = false;
siteRoot.play_mc._visible = true;
fTrace("loadGameLevel = " + _global.siteRoot.game_mc.loadGameLevel);
trace("URL =- " + game_mc._url);
}
function loadGame() {
var _local2 = this;
if (_local2.game_mc.getBytesTotal() > 4) {
}
var _local1 = ((_global.baseurl + "megaBloks_") + _global.ui.character) + ".swf";
trace(_local1);
trace("GAME = " + _local1);
siteRoot.game_mc.loadMovie(_local1);
_local2.onEnterFrame = function () {
var _local3 = this;
var _local2 = siteRoot.game_mc.getBytesTotal();
var _local1 = siteRoot.game_mc.getBytesLoaded();
var percent = (_local1 / _local2);
trace((_local1 + " = ") + _local2);
if (_local3.game_mc.loadGameLevel != undefined) {
_local3.onEnterFrame = undefined;
siteRoot.preloader_mc.gotoAndStop(1);
_global.fTrace("framesloaded = " + _local3.game_mc._framesloaded);
siteRoot.gameLoaded();
}
};
}
function getFrame(mc, percent) {
var _local2 = mc;
var _local3 = Math.max(1, Math.round(percent * _local2._totalframes));
var _local1 = (_local3 - _local2._currentframe) * 0.2;
if ((_local1 < 0) && (_local1 > -1)) {
_local1 = Math.min(-1, _local1);
} else if ((_local1 > 0) && (_local1 < 1)) {
_local1 = Math.max(1, _local1);
}
return(_local2._currentframe + Math.round(_local1));
}
function loadGameLevel(level) {
var _local1 = _global;
var _local2 = level;
var _local3 = this;
fTrace("_______________________LOAD GAME LEVEL " + _local2);
siteRoot.game_mc.levelManager.__swfLoaded = false;
siteRoot.game_mc.levelManager.__levelInfo[_local2].loadSWF = true;
_local1.ui.level = _local2;
fTrace("baseurl = " + _local1.baseurl);
fTrace("GAME MC = " + _local3.game_mc);
fTrace("loadGameLevel 1 = " + _local3.game_mc.loadGameLevel);
fTrace("loadGameLevel 2 = " + _local1.siteRoot.game_mc.loadGameLevel);
fTrace("siteRoot = " + _local1.siteRoot);
fTrace("this.game_mc._url = " + _local3.game_mc._url);
siteRoot.game_mc.loadGameLevel(_local2);
}
function gameInit() {
fTrace("gameinit = " + this.game_mc.loadGameLevel);
}
var fdebug = (new Fuel.debug.FDebug("_FDEBUGWIN"));
_global.fTrace = function (msg) {
fdebug.trace(msg);
};
_global.fTraceObject = function (obj) {
fdebug.traceObject(obj);
};
delete _global.ui;
delete _global.siteRoot;
MotionManager.init();
if (_root.sessid == undefined) {
_global.sessid = "jf32fo3ijfalksfj293ru";
} else {
_global.sessid = _root.sessid;
}
if (_root.lang != undefined) {
_global.lang = _root.lang;
} else {
_global.lang = "en";
}
if (_root.baseurl == undefined) {
_global.baseurl = "";
} else {
_global.baseurl = _root.baseurl + "/flash/";
}
if (_global.baseurl == "") {
_global.scripturl = "http://fireice-dev.fuelindustries.com/";
} else {
_global.scripturl = _root.baseurl + "/";
}
fTrace("root " + _root.baseurl);
fTrace("baseurl = " + _global.baseurl);
fTrace("lang = " + _global.lang);
fTrace("scripturl = " + _global.scripturl);
fTrace("sessid = " + _global.sessid);
_global.siteRoot = this;
_global.URLS = [];
_global.URLS.leaderboard = _global.scripturl + "getleaderboard.php";
_global.URLS.savescore = _global.scripturl + "savescore.php";
_global.URLS.ping = _global.scripturl + "ping.php";
_global.URLS.saveaction = _global.scripturl + "saveaction.php";
_global.POPUPTEXT_ARRAY = [];
_global.POPUPTEXT_ARRAY.KYRA = [];
_global.POPUPTEXT_ARRAY.KYRA[1] = {title:"Great! You picked up a Krystal.", content:"Now you must pick up all of the Krystals and the key to be allowed through the gate at the end of this level."};
_global.POPUPTEXT_ARRAY.KYRA[2] = {title:"You found a key!!", content:"Bring this to the end of the level with all off the Krystal pieces you\u2019ve collected to continue to the next level."};
_global.POPUPTEXT_ARRAY.KYRA[3] = {title:"Ah, a mighty lance.", content:"Ah, a mighty lance. It can also cut through bushes and other obstacles that you find throughout the game. The \"A\" key will allow you to attack with this weapon."};
_global.POPUPTEXT_ARRAY.KYRA[4] = {title:"Good thinking.", content:"There are many hidden treasures throughout the land, make sure to explore the levels well."};
_global.POPUPTEXT_ARRAY.KYRA[5] = {title:"You discovered a Dragon egg.", content:"By hitting the eggs with your weapon, you can break the icy spell that XENOZ has placed and turn the ice dragon egg into a fire dragon egg. You will be rewarded with some special powers."};
_global.POPUPTEXT_ARRAY.KYRA[6] = {title:"You got that VORGAN!!", content:"Your special powers have increased."};
_global.POPUPTEXT_ARRAY.KYRA[7] = {title:"You just found a throwing sai, watch out VORGANs!", content:"This sai allows you to hit enemies from a distance. Use your weapon wisely however, you only have 10. Remember, the \"S\" key is for your throwing weapon."};
_global.POPUPTEXT_ARRAY.KYRA[8] = {title:"At last!!", content:"Your special AURATHON Power is ready for fighting. Use it wisely, as it takes a while to build back up. \"D\" key will unleash this power."};
_global.POPUPTEXT_ARRAY.KYRA[9] = {title:"Hmm, some Krystals or the key still are not found.", content:"Before you can continue on to the next level, you must seek out the rest of them. Use your map to help you locate them."};
_global.POPUPTEXT_ARRAY.KYRA[10] = {title:"A cold fate for you my friend.", content:"You have been frozen. You were unable to defeat XENOZ. But don't let this defeat slow you down! You must defeat XENOZ and his army. So please try again."};
_global.POPUPTEXT_ARRAY.KYRA[11] = {title:"What? No key, no entrance.", content:"You need to find a key to enter this area. Keep looking."};
_global.POPUPTEXT_ARRAY.KYRA[13] = {title:"Hmm, an interesting orange crystal.", content:"It seems to have given you more special power."};
_global.POPUPTEXT_ARRAY.KYRA[12] = {title:"These are useful.", content:"Shields build your health. Remember where they are, and use them wisely."};
_global.POPUPTEXT_ARRAY.KYRA[14] = {title:"You have assembled the powerful Krystal", content:"You have assembled the powerful Krystal and the secret entrance is now revealed! Find this entrance to proceed to the next level! "};
_global.POPUPTEXT_ARRAY.KYRA[15] = {title:"GAME PAUSED", content:"Plan your battle strategy, warrior."};
_global.POPUPTEXT_ARRAY.DEV = [];
_global.POPUPTEXT_ARRAY.DEV[1] = {title:"Great! You picked up a Krystal.", content:"Now you must pick up all of the Krystals and the key to be allowed through the gate at the end of this level."};
_global.POPUPTEXT_ARRAY.DEV[2] = {title:"You found a key!!", content:"Bring this to the end of the level with all off the Krystal pieces you\u2019ve collected to continue to the next level."};
_global.POPUPTEXT_ARRAY.DEV[3] = {title:"Ah, a mighty sword.", content:"Ah, a mighty sword. This sword will allow you to fight your enemies as you encounter them. It can also cut through bushes and other obstacles that you find throughout the game. The \"A\" key will allow you to attack with this weapon."};
_global.POPUPTEXT_ARRAY.DEV[4] = {title:"Good thinking.", content:"There are many hidden treasures throughout the land, make sure to explore the levels well."};
_global.POPUPTEXT_ARRAY.DEV[5] = {title:"You discovered a Dragon egg.", content:"By hitting the eggs with your weapon, you can break the icy spell that XENOZ has placed and turn the ice dragon egg into a fire dragon egg. You will be rewarded with some special powers."};
_global.POPUPTEXT_ARRAY.DEV[6] = {title:"You got that VORGAN!!", content:"Your special powers have increased."};
_global.POPUPTEXT_ARRAY.DEV[7] = {title:"You just found a throwing axe, watch out VORGAN'S!", content:"This axe allows you to hit enemies from a distance. Use your weapon wisely however, you only have 10. Remember, the \"S\" key is for your throwing weapon."};
_global.POPUPTEXT_ARRAY.DEV[8] = {title:"At last!!", content:"Your special AURATHON Power is ready for fighting. Use it wisely, as it takes a while to build back up. \"D\" key will unleash this power."};
_global.POPUPTEXT_ARRAY.DEV[9] = {title:"Hmm, some of the Krystals or the key still are not found.", content:"Before you can continue on to the next level, you must seek out the rest of them. Use your map to help you locate them."};
_global.POPUPTEXT_ARRAY.DEV[10] = {title:"A cold fate for you my friend.", content:"You have been frozen. You were unable to defeat XENOZ. But don't let this defeat slow you down! You must defeat XENOZ and his army. So please try again."};
_global.POPUPTEXT_ARRAY.DEV[11] = {title:"What? No key, no entrance.", content:"You need to find a key to enter this area. Keep looking."};
_global.POPUPTEXT_ARRAY.DEV[13] = {title:"Hmm, an interesting orange crystal.", content:"It seems to have given you more special power."};
_global.POPUPTEXT_ARRAY.DEV[12] = {title:"These are useful.", content:"Shields build your health. Remember where they are, and use them wisely."};
_global.POPUPTEXT_ARRAY.DEV[14] = {title:"You have assembled the powerful Krystal", content:"You have assembled the powerful Krystal and the secret entrance is now revealed! Find this entrance to proceed to the next level! "};
_global.POPUPTEXT_ARRAY.DEV[15] = {title:"GAME PAUSED", content:"Plan your battle strategy, warrior."};
_global.LEVELTEXT_ARRAY = [];
_global.LEVELTEXT_ARRAY[1] = {title:"Your Mission:", content:"XENOZ has divided the Fire Krystal into small pieces and hidden them throughout the land. Your goal is to gather all of the Krystal pieces and bring the entire Krystal to the summit of DRAGON MOUNTAIN to defeat XENOZ. For this level, you are weaponless. Beware of the VORGAN enemies, they can hurt you so avoid them at all costs. Good luck!"};
_global.LEVELTEXT_ARRAY[2] = {title:"Congratulations, level 1 completed.", content:"Beware brave warrior; there are many dangers that lie ahead. If you find your weapon, you can remove the VORGAN warriors that are lurking about. Make sure to collect all of the Krystals and the key before finishing the level and keep a keen eye open for hidden items. Good Luck!"};
_global.LEVELTEXT_ARRAY[3] = {title:"Excellent skill! Level 2 completed.", content:"You have gotten this far, you are obviously a strong warrior. You must now navigate through the harbor of VORGAN ICE FANG ships. Be sure to explore, there are many hidden treasures to be found. Don\u2019t forget to collect all of the Krystals before finishing the level. Good Luck!"};
_global.LEVELTEXT_ARRAY[4] = {title:"Good work, level 3 completed.", content:"You have made it to the FIRE STORM FORTRESS. King OLSEF is being held captive by the VORGAN hoard. You must free him before you can travel to DRAGON MOUNTAIN. Make sure to collect all of the Krystals before finishing the level. Good Luck!"};
_global.LEVELTEXT_ARRAY[5] = {title:"Great work intrepid warrior!", content:"You have reached DRAGON MOUNTAIN but the danger is at it\u2019s greatest you must collect the rest of the Krystal pieces and defeat XENOZ by placing the assembled Fire Krystal at the top of DRAGON MOUNTAIN. Be careful."};
_global.LEVELTEXT_ARRAY[6] = {title:"The power of the fire Dragons is unleashed!", content:"You must now battle the mighty ice dragon GUL\u2019KHAN. Beware of his icy attack. Make sure to move quickly and use your special weapon. He has a weakness; can you figure it out in time? Good Luck!"};
_global.LEVELTEXT_ARRAY[7] = {title:"Congratulations!", content:"You have defeated the powerful ice dragon. You have proved yourself a mighty warrior. Now the AURATHON KRYSTAL can be returned to the pedestal at the PORTAL OF FIRE and the gateway to the Dragon world will open. The surviving DRAGONS will return once again! But, is XENOZ truly gone..."};
_global.HELP_TEXT = "System Requirements:<br>Pentium III 500MHz or Apple Macintosh G4 or faster computer system<br>Windows 95/98/ME/NT/2000/XP or MacOS 9/OS X Operating System<br>800x600 (or higher) screen resolution<br>Sound card and speakers for audio<br><br><br>Krystals:<br>Pick up all of the Krystals on the level to be allowed through the gate at the end of the stage.<br><br>Keys:<br>Keys allow you to access different areas of the level where there may be Krystals for you to find.<br><br>Sword/Lance:<br>This sword/lance will allow you to fight your enemies as you encounter them. It can also cut through bushes and other secret items that you find throughout the game. There are many hidden secrets so be sure to explore.<br><br>Exploring:<br>There are many hidden treasures throughout the land, make sure to explore the levels well.<br><br>Special Powers:<br>If your special power reaches half full, it becomes active. Use it wisely as it takes a while to build back up after each use.<br><br>Dragon Eggs:<br>This will give you health!<br><br>Throwing Axe/Sai:<br>This axe/sai allows you to hit enemies from a distance. Use your Axes/Sais wisely however, you only have 20.<br><br>";
trace("globals loaded");
_global.ui = {};
_global.ui.character = "";
_global.ui.level = null;
_global.ui.score = 0;
_global.ui.levelScore = null;
_global.ui.handWeapon = false;
_global.ui.throwWeapon = false;
_global.ui.dead = false;
_global.ui.setLife = function (percent) {
siteRoot.meters_mc.setHealth(percent);
};
_global.ui.setPower = function (percent) {
siteRoot.meters_mc.setPower(percent);
};
_global.ui.setTotalCrystals = function (num) {
siteRoot.map_mc.crystalUI_mc.crystals_mc.total = num;
};
_global.ui.setCrystals = function (num) {
siteRoot.map_mc.crystalUI_mc.crystals_mc.amount = num;
};
_global.ui.droppedWeapon = function (num) {
var _local2 = _global;
trace("DROPPED WEAPON" + num);
if (_local2.ui.character == "DEV") {
var _local1 = _local2.siteRoot.devInventory_mc;
} else {
var _local1 = _local2.siteRoot.kyraInventory_mc;
}
switch (String(num)) {
case "2" :
_local1.hand_mc.enabled = false;
this.handWeapon = false;
return;
case "1" :
_local1.throw_mc.enabled = false;
this.throwWeapon = false;
return;
case "3" :
_local1.special_mc.enabled = false;
return;
case "4" :
_local1.key_mc.enabled = false;
}
};
_global.ui.setTimer = function (time) {
fTrace(time);
};
_global.ui.pickedUpWeapon = function (num) {
var _local2 = _global;
trace("picked up weapon = " + num);
if (_local2.ui.character == "DEV") {
var _local1 = _local2.siteRoot.devInventory_mc;
} else {
var _local1 = _local2.siteRoot.kyraInventory_mc;
}
switch (String(num)) {
case "2" :
_local1.hand_mc.enabled = true;
this.handWeapon = true;
return;
case "1" :
_local1.throw_mc.enabled = true;
this.throwWeapon = true;
return;
case "3" :
_local1.special_mc.enabled = true;
return;
case "4" :
_local1.key_mc.enabled = true;
}
};
_global.ui.changeLevel = function (num) {
var _local1 = this;
trace("changelevel");
_global.siteRoot.map_mc.changeLevel(num);
if (_local1.throwWeapon) {
_local1.pickedUpWeapon(1);
}
if (_local1.handWeapon) {
_local1.pickedUpWeapon(2);
}
};
_global.ui.changeMap = function (obj) {
siteRoot.map_mc.changeMap(obj);
};
_global.ui.setScore = function (score) {
siteRoot.score_mc.setScore(String(score));
};
_global.ui.showPopup = function (code) {
var _local1 = _global.POPUPTEXT_ARRAY[this.character][code];
_global.siteRoot.game_mc.pauseGame();
siteRoot.popup_mc.show(_local1.title, _local1.content);
};
_global.ui.levelProgress = function (percent) {
_global.fTrace("LEVEL PROGRESS = " + percent);
siteRoot.preloader2_mc._visible = true;
siteRoot.preloader2_mc.gotoAndStop(siteRoot.getFrame(siteRoot.preloader2_mc, percent));
};
_global.ui.levelLoaded = function () {
_global.fTrace("LEVEL LOADED");
siteRoot.play2_mc._visible = true;
siteRoot.preloader2_mc._visible = false;
};
_global.ui.onLevelComplete = function (obj) {
trace("ONLEVELCOMPLETE");
this.levelScore = obj;
_global.siteRoot.map_mc.reset();
_global.siteRoot.gotoAndStop("levelcomplete");
};
_global.ui.gameLevelDone(level);
fTrace("GAME LEVEL DONE = " + level);
_global.siteRoot.saveAction_mc.sendAction("LEVELCOMPLETE", level);
_global.ui.onDie = function (obj) {
trace("ONDIE");
this.score = 0;
this.dead = true;
_global.siteRoot.changeSection("die");
};
_global.ui.pauseGame = function () {
var _local1 = _global;
var _local2 = this;
if (_local2.paused) {
_local1.siteRoot.game_mc.hidePopup();
_local1.siteRoot.play_mc._visible = false;
_local1.siteRoot.pause_mc._visible = true;
_local1.siteRoot.gameModal_mc._visible = false;
_local2.paused = false;
} else {
_local1.siteRoot.play_mc._visible = true;
_local1.siteRoot.pause_mc._visible = false;
_local1.siteRoot.game_mc.pauseGame();
_local1.siteRoot.gameModal_mc._visible = true;
_local2.paused = true;
}
};
_global.ui.exit = function () {
getURL ("Lingo:doExit");
};
_global.ui.unloadGame = function () {
var _local1 = _global;
delete _local1.preloader;
delete _local1.eventManager;
delete _local1.laserRoot;
delete _local1.gameRoot;
delete _local1.baseUrl;
delete _local1.depthOrder;
delete _local1.soundManager;
delete _local1.playerCharacter;
delete _local1.__escapeObject;
delete _local1.__unescapeObject;
delete _local1.FNetConnection_Class;
delete _local1.acosD;
delete _local1.cosD;
delete _local1.sinD;
delete _local1.ThrowWeapon;
delete _local1.Pod;
delete _local1.Gun;
delete _local1.RepairBot;
delete _local1.Dragon;
delete _local1.EnemyBrain;
delete _local1.Enemy;
delete _local1.Player;
delete _local1.Avatar;
delete _local1.SpriteLibrary;
delete _local1.Gate;
delete _local1.Egg;
delete _local1.BreakableElement;
delete _local1.Element;
delete _local1.ElementLibrary;
delete _local1.KeyManager;
delete _local1.UserInterface;
delete _local1.GameAI;
delete _local1.LevelManager;
delete _local1.BackgroundTile;
delete _local1.TileLibrary;
delete _local1.Pack;
delete _local1.GameKey;
delete _local1.Crystal;
delete _local1.Item;
delete _local1.Sprite;
delete _local1.ItemLibrary;
delete _local1.FileLoader;
delete _local1.Library;
_local1.siteRoot.game_mc.tilesContainer_mc.unloadMovie();
_local1.siteRoot.game_mc.unloadMovie();
};
this.ping_mc.pingServer();
this.game_mc._alpha = 0;
this.levelTemp_mc._visible = false;
fTrace("CHARACTER = " + _root.c);
fTrace("SCORE = " + _root.s);
if ((_root.s != undefined) && (_root.c != undefined)) {
var char = String(_root.c);
_global.ui.character = ((char == "d") ? "DEV" : "KYRA");
var score = String(_root.s);
var codedScore = score.split("");
var s = "";
var i = 0;
while (i < codedScore.length) {
var num = codedScore[i];
switch (num) {
case "d" :
s = s + 0;
break;
case "j" :
s = s + 1;
break;
case "h" :
s = s + 2;
break;
case "a" :
s = s + 3;
break;
case "n" :
s = s + 4;
break;
case "p" :
s = s + 5;
break;
case "q" :
s = s + 6;
break;
case "t" :
s = s + 7;
break;
case "w" :
s = s + 8;
break;
case "v" :
s = s + 9;
}
i++;
}
fTrace("LEVEL 1 SCORE = " + s);
_global.ui.score = s;
_global.ui.levelScore = s;
_global.ui.level = 1;
siteRoot.changeSection("controls");
}
Frame 4
showLeaderboard();
if (_global.ui.character == "") {
this.continue_mc._visible = false;
} else if (_global.ui.character == "DEV") {
dev_mc.selected = true;
dev_mc.enabled = false;
kyra_mc.selected = false;
kyra_mc.enabled = true;
} else {
dev_mc.selected = false;
dev_mc.enabled = true;
kyra_mc.selected = true;
kyra_mc.enabled = false;
}
stop();
Instance of Symbol 45 MovieClip [dev_mc] "dev_mc" in Frame 4
//component parameters
onClipEvent (initialize) {
enabled = true;
label = "WEAPONS";
selected = false;
special = "SPECIAL MOVE";
specialDesc = "Wind";
weaponDesc = "sword, axe";
}
on (release) {
siteRoot.kyra_mc.selected = false;
siteRoot.kyra_mc.enabled = true;
_global.ui.character = "DEV";
siteRoot.continue_mc._visible = true;
}
Instance of Symbol 52 MovieClip [continue_mc] "continue_mc" in Frame 4
on (release) {
if (this._parent.dev_mc.selected || (this._parent.kyra_mc.selected)) {
siteRoot.changeSection("controls");
}
}
Instance of Symbol 66 MovieClip [kyra_mc] "kyra_mc" in Frame 4
//component parameters
onClipEvent (initialize) {
enabled = true;
label = "WEAPONS";
selected = false;
special = "SPECIAL MOVE";
specialDesc = "Fire";
weaponDesc = "lance, stars";
}
on (release) {
siteRoot.dev_mc.selected = false;
siteRoot.dev_mc.enabled = true;
_global.ui.character = "KYRA";
siteRoot.continue_mc._visible = true;
}
Frame 5
siteRoot.play_mc._visible = false;
siteRoot.loadGame();
_global.siteRoot.saveAction_mc.sendAction("CHARACTER", _global.ui.character);
stop();
Instance of Symbol 120 MovieClip [play_mc] "play_mc" in Frame 5
on (release) {
if (_root.c == undefined) {
siteRoot.changeSection("level1");
} else {
siteRoot.changeSection("level2");
}
}
Instance of Symbol 167 MovieClip [back_mc] in Frame 5
on (release) {
this._parent.gotoAndStop("character");
}
Frame 6
this.play2_mc._visible = false;
this.preloader2_mc._visible = true;
showStatue();
stop();
Instance of Symbol 120 MovieClip [play_mc] "play2_mc" in Frame 6
on (release) {
_global.siteRoot.changeSection("game");
_global.siteRoot.game_mc._visible = true;
}
Frame 7
this.game_mc._alpha = 100;
if (_global.ui.character == "DEV") {
this.devInventory_mc._visible = true;
this.kyraInventory_mc._visible = false;
} else {
this.devInventory_mc._visible = false;
this.kyraInventory_mc._visible = true;
}
this.game_mc.startGame();
fTrace("LEVEL = " + _global.ui.level);
_global.ui.changeLevel(_global.ui.level);
this.play_mc._visible = false;
this.pause_mc._visible = true;
this.gameModal_mc._visible = false;
if (((_root.s != undefined) && (_root.c != undefined)) && (_global.ui.level == 1)) {
this.game_mc.userInterface.__gameInfo.score = Number(_global.ui.score);
}
stop();
Instance of Symbol 339 MovieClip [help_btn] in Frame 7
on (release) {
siteRoot.gotoAndStop("gamehelp");
}
Instance of Symbol 342 MovieClip [pause_mc] "pause_mc" in Frame 7
on (release) {
_global.ui.showPopup(15);
}
Frame 8
_global.siteRoot.game_mc.hidePopup();
Frame 9
this.game_mc.pauseGame();
Instance of Symbol 167 MovieClip [back_mc] in Frame 9
on (release) {
this._parent.gotoAndStop("resumegame");
}
Frame 10
function setScore(obj) {
var _local1 = obj;
var _local2 = this;
var _local3 = _global;
_local2.titles_mc.gotoAndStop(_local3.ui.level + 1);
_local3.siteRoot.saveAction_mc.sendAction("LEVELCOMPLETE", _local3.ui.level + 1);
_local2.crystal_txt.text = _local1.crystals;
_local2.crystalVal_txt.text = _local1.crystalsVal;
_local2.items_txt.text = _local1.items;
_local2.itemsVal_txt.text = _local1.itemsVal;
_local2.time_txt.text = Math.round(_local1.time);
_local2.timeVal_txt.text = _local1.timeVal;
_local2.energy_txt.text = _local1.energy;
_local2.energyVal_txt.text = _local1.energyVal;
var bonus = Math.round(((_local1.crystalsVal + _local1.itemsVal) + _local1.timeVal) + _local1.energyVal);
var level = (_local1.totalScore - _local1.currentScore);
var levelScore = level;
_local2.level_txt.text = levelScore;
_local2.score_txt.text = _local1.totalScore;
_local3.ui.score = _local1.totalScore;
}
setScore(_global.ui.levelScore);
Instance of Symbol 52 MovieClip [continue_mc] in Frame 10
on (release) {
trace("next level" + (_global.ui.level + 2));
siteRoot.changeSection("level" + (_global.ui.level + 2));
}
Frame 11
if (_global.ui.dead) {
scoreWin_mc.setTitle("die");
}
scoreWin_mc.setScore(_global.ui.score);
_global.ui.unloadGame();
Symbol 9 MovieClip Frame 1
stop();
Symbol 17 MovieClip [ping_mc] Frame 1
#initclip 38
Object.registerClass("ping_mc", com.megablocks.fireandice.data.Ping);
#endinitclip
Symbol 18 MovieClip [saveAction_mc] Frame 1
#initclip 37
Object.registerClass("saveAction_mc", com.megablocks.fireandice.data.SaveAction);
#endinitclip
Symbol 24 Button
on (release) {
getURL ("http://www.fuelgames.com", "_blank");
}
Symbol 409 MovieClip [__Packages.MotionList] Frame 0
class MotionList
{
var __list, length;
function MotionList () {
init();
}
function init() {
__list = [];
length = 0;
}
function addItem(mc, motionItem) {
__list[String(mc)] = motionItem;
length++;
}
function removeItem(mc) {
var _local1 = this;
if (_local1.__list[String(mc)] != undefined) {
delete _local1.__list[String(mc)];
_local1.length--;
}
}
function get list() {
return(__list);
}
}
Symbol 410 MovieClip [__Packages.MotionManager] Frame 0
class MotionManager
{
function MotionManager () {
}
static function init() {
//var _local1 = this;
MovieClip.prototype.easeFrameTo = function (percentage, time, callback, scope, param) {
this.__motionManager.easeFrameTo(this, percentage, time, callback, scope, param);
};
MovieClip.prototype.colorTo = function (destR, destG, destB, speed, callback, scope) {
this.__motionManager.colorTo(this, destR, destG, destB, speed, callback, scope);
};
MovieClip.prototype.slideTo = function (destx, desty, speed, elasticity, callback, scope, param) {
this.__motionManager.slideTo(this, destx, desty, speed, elasticity, callback, scope, param);
};
MovieClip.prototype.glideTo = function (destx, desty, time, elasticity, callback, scope, param) {
this.__motionManager.glideTo(this, destx, desty, time, elasticity, callback, scope, param);
};
MovieClip.prototype.alphaTo = function (destAlpha, time, callback, scope) {
this.__motionManager.alphaTo(this, destAlpha, time, callback, scope);
};
MovieClip.prototype.sizeTo = function (destw, desth, speed, elasticity, callback, scope) {
this.__motionManager.sizeTo(this, destw, desth, speed, elasticity, callback, scope);
};
MovieClip.prototype.rotateTo = function (rotation, time, elasticity, callback, scope, param) {
this.__motionManager.rotateTo(this, rotation, time, elasticity, callback, scope, param);
};
MovieClip.prototype.scaleTo = function (xscale, yscale, speed, elasticity, callback, scope, param) {
this.__motionManager.scaleTo(this, xscale, yscale, speed, elasticity, callback, scope, param);
};
MovieClip.prototype.timeTo = function (time, callback, scope) {
this.__motionManager.timeTo(this, time, callback, scope);
};
MovieClip.prototype.removeMotions = function () {
this.__motionManager.removeMotions(this);
};
MovieClip.prototype.__motionManager = MotionManager;
if (!EnterFrame.exists()) {
EnterFrame.init();
}
EnterFrame.addListener(onEnterFrame);
}
static function timeTo(mc, time, callback, scope, param) {
var _local1 = mc;
if (arguments[2] != undefined) {
__timerList.addItem(_local1, new MotionItem(_local1, {}, time, null, callback, scope, param));
} else {
__timerList.removeItem(_local1);
}
}
static function easeFrameTo(mc, percentage, time, callback, scope, param) {
var _local1 = mc;
if (arguments[2] != undefined) {
var _local2 = Math.max(1, Math.round(percentage * _local1._totalframes));
var frameChange = ((__distPercent * _local2) / time);
__easeFrameList.addItem(_local1, new MotionItem(_local1, {frame:_local2, frameChange:frameChange}, time, null, callback, scope, param));
} else {
__easeFrameList.removeItem(_local1);
}
}
static function colorTo(mc, destR, destG, destB, speed, callback, scope) {
var _local1 = mc;
if (arguments[2] != undefined) {
__colorList.addItem(_local1, new MotionItem(_local1, {color_obj:new Color(_local1), destR:destR, destG:destG, destB:destB}, speed, null, callback, scope));
} else {
__colorList.removeItem(_local1);
}
}
static function slideTo(mc, destx, desty, speed, elasticity, callback, scope, param) {
var _local1 = mc;
if (arguments[2] != undefined) {
__slideList.addItem(_local1, new MotionItem(_local1, {x:destx, y:desty}, speed, elasticity, callback, scope, param));
} else {
__slideList.removeItem(_local1);
}
}
static function glideTo(mc, destx, desty, time, elasticity, callback, scope, param) {
var _local1 = mc;
var _local2 = time;
if (arguments[2] != undefined) {
var distX = (destx - _local1._x);
var xChange = ((__distPercent * distX) / _local2);
var _local3 = desty - _local1._y;
var yChange = ((__distPercent * _local3) / _local2);
__glideList.addItem(_local1, new MotionItem(_local1, {x:destx, y:desty, xChange:xChange, yChange:yChange}, _local2, elasticity, callback, scope, param));
} else {
__glideList.removeItem(_local1);
}
}
static function alphaTo(mc, destAlpha, time, callback, scope) {
var _local1 = mc;
if (arguments[2] != undefined) {
var alphaAmount = (destAlpha - _local1._alpha);
var alphaChange = ((__distPercent * alphaAmount) / time);
__alphaList.addItem(_local1, new MotionItem(_local1, {alpha:destAlpha, alphaAmount:alphaAmount, alphaChange:alphaChange}, time, null, callback, scope));
} else {
__alphaList.removeItem(_local1);
}
}
static function sizeTo(mc, destw, desth, speed, elasticity, callback, scope) {
var _local1 = mc;
if (arguments[2] != undefined) {
__sizeList.addItem(_local1, new MotionItem(_local1, {width:destw, height:desth}, speed, elasticity, callback, scope));
} else {
__sizeList.removeItem(_local1);
}
}
static function rotateTo(mc, destRotation, time, elasticity, callback, scope) {
var _local1 = mc;
if (arguments[2] != undefined) {
var _local2 = destRotation - _local1._rotation;
var rotationChange = ((__distPercent * _local2) / time);
__rotateList.addItem(_local1, new MotionItem(_local1, {destRotation:destRotation, rotationChange:rotationChange}, time, elasticity, callback, scope));
} else {
__rotateList.removeItem(_local1);
}
}
static function scaleTo(mc, xscale, yscale, time, elasticity, callback, scope, param) {
var _local1 = mc;
var _local2 = time;
if (arguments[2] != undefined) {
var distX = (xscale - _local1._xscale);
var xChange = ((__distPercent * distX) / _local2);
var _local3 = yscale - _local1._yscale;
var yChange = ((__distPercent * _local3) / _local2);
__scaleList.addItem(_local1, new MotionItem(_local1, {xscale:xscale, yscale:yscale, xChange:xChange, yChange:yChange}, _local2, elasticity, callback, scope, param));
} else {
__scaleList.removeItem(_local1);
}
}
static function removeMotions(mc) {
var _local1 = mc;
__timerList.removeItem(_local1);
__scaleList.removeItem(_local1);
__easeFrameList.removeItem(_local1);
__colorList.removeItem(_local1);
__slideList.removeItem(_local1);
__glideList.removeItem(_local1);
__scaleList.removeItem(_local1);
__alphaList.removeItem(_local1);
__sizeList.removeItem(_local1);
__rotateList.removeItem(_local1);
}
static function onEnterFrame() {
if (__timerList.length) {
__timer();
}
if (__scaleList.length) {
__scale();
}
if (__rotateList.length) {
__rotate();
}
if (__alphaList.length) {
__alpha();
}
if (__slideList.length) {
__slide();
}
if (__glideList.length) {
__glide();
}
if (__sizeList.length) {
__size();
}
if (__colorList.length) {
__color();
}
if (__easeFrameList.length) {
__easeFrame();
}
}
static function __timer() {
var list = __timerList.list;
for (var mc in list) {
var timeItem = list[mc];
var time_mc = timeItem.mc;
if (eval (time_mc) == undefined) {
__timerList.removeItem(mc);
return(undefined);
}
var finishTime = timeItem.finishTime;
var newTime = getTimer();
if (finishTime <= newTime) {
var difTime = ((newTime - finishTime) / 1000);
__timerList.removeItem(mc);
timeItem.callback.apply(timeItem.scope, [difTime, timeItem.param]);
}
}
}
static function __scale() {
var list = __scaleList.list;
for (var mc in list) {
var scaleItem = list[mc];
var scale_mc = scaleItem.mc;
if (eval (scale_mc) == undefined) {
__scaleList.removeItem(mc);
return(undefined);
}
var dest = scaleItem.dest;
var xChange = dest.xChange;
var yChange = dest.yChange;
var elasticity = scaleItem.elasticity;
var lastTime = scaleItem.lastTime;
var finishTime = scaleItem.finishTime;
var tmpOldOffsetX = scaleItem.oldOffset[0];
var tmpOldOffsetY = scaleItem.oldOffset[1];
var newTime = getTimer();
var percentMove = ((newTime - lastTime) / __frameRate);
scaleItem.lastTime = newTime;
if (isNaN(scaleItem.oldOffset[0])) {
scaleItem.oldOffset[0] = 0;
}
if (isNaN(scaleItem.oldOffset[1])) {
scaleItem.oldOffset[1] = 0;
}
if ((dest.xscale != null) && (dest.xscale != undefined)) {
scaleItem.oldOffset[0] = percentMove * xChange;
scale_mc._xscale = scale_mc._xscale + scaleItem.oldOffset[0];
}
if ((dest.yscale != null) && (dest.yscale != undefined)) {
scaleItem.oldOffset[1] = percentMove * yChange;
scale_mc._yscale = scale_mc._yscale + scaleItem.oldOffset[1];
}
if (((finishTime <= newTime) || (dest.xscale == null)) || (dest.xscale == undefined)) {
if (((finishTime <= newTime) || (dest.yscale == null)) || (dest.yscale == undefined)) {
scale_mc._xscale = dest.xscale;
scale_mc._yscale = dest.yscale;
__scaleList.removeItem(mc);
scaleItem.callback.apply(null, [scaleItem.scope, scale_mc, "scale", scaleItem.param]);
}
}
}
}
static function __rotate() {
var list = __rotateList.list;
for (var mc in list) {
var item = list[mc];
var item_mc = item.mc;
var destRotation = item.dest.destRotation;
var param = item.param;
var rotationChange = item.dest.rotationChange;
var lastTime = item.lastTime;
var finishTime = item.finishTime;
var newTime = getTimer();
var percentMove = ((newTime - lastTime) / __frameRate);
item.lastTime = newTime;
if (isNaN(item.oldOffset[0])) {
item.oldOffset[0] = item_mc._rotation;
}
var rotationPercentComplete = item.oldOffset[0];
if (eval (item_mc) == undefined) {
delete list[mc];
item.callback.apply(null, [item.scope, item_mc, "rotation"]);
}
rotationPercentComplete = rotationPercentComplete + (percentMove * rotationChange);
item.oldOffset[0] = rotationPercentComplete;
if ((destRotation != null) && (destRotation != undefined)) {
item_mc._rotation = item.oldOffset[0];
if (finishTime <= newTime) {
__rotateList.removeItem(mc);
var difTime = ((newTime - finishTime) / 1000);
item_mc._rotation = destRotation;
item.callback.apply(item.scope, [item.scope, difTime, item_mc, "rotationTo"]);
}
}
}
}
static function __alpha() {
var list = __alphaList.list;
for (var mc in list) {
var item = list[mc];
var item_mc = item.mc;
var destAlpha = item.dest.alpha;
var param = item.param;
var alphaChange = item.dest.alphaChange;
var lastTime = item.lastTime;
var finishTime = item.finishTime;
var newTime = getTimer();
var percentMove = ((newTime - lastTime) / __frameRate);
item.lastTime = newTime;
if (isNaN(item.oldOffset[0])) {
item.oldOffset[0] = 0;
}
if (eval (item_mc) == undefined) {
delete list[mc];
item.callback.apply(null, [item.scope, item_mc, "alpha"]);
}
item.oldOffset[0] = percentMove * alphaChange;
if ((destAlpha != null) && (destAlpha != undefined)) {
item_mc._alpha = item_mc._alpha + item.oldOffset[0];
if (finishTime <= newTime) {
__alphaList.removeItem(mc);
var difTime = ((newTime - finishTime) / 1000);
item_mc._alpha = destAlpha;
item.callback.apply(item.scope, [item.scope, difTime, item_mc, "alphaTo"]);
}
}
}
}
static function __size() {
}
static function __color() {
}
static function __slide() {
}
static function __glide() {
var list = __glideList.list;
for (var mc in list) {
var glideItem = list[mc];
var glide_mc = glideItem.mc;
if (eval (glide_mc) == undefined) {
__glideList.removeItem(mc);
glideItem.callback.apply(glideItem.scope, [glideItem.scope, glide_mc, "glide", glideItem.param]);
return(undefined);
}
var dest = glideItem.dest;
var xChange = dest.xChange;
var yChange = dest.yChange;
var lastTime = glideItem.lastTime;
var finishTime = glideItem.finishTime;
var elasticity = glideItem.elasticity;
var tmpOldOffsetX = glideItem.oldOffset[0];
var tmpOldOffsetY = glideItem.oldOffset[1];
if (isNaN(glideItem.oldOffset[0])) {
glideItem.oldOffset[0] = 0;
}
if (isNaN(glideItem.oldOffset[1])) {
glideItem.oldOffset[1] = 0;
}
var newTime = getTimer();
var percentMove = ((newTime - lastTime) / __frameRate);
glideItem.lastTime = newTime;
if ((dest.x != null) && (dest.x != undefined)) {
glideItem.oldOffset[0] = percentMove * xChange;
glide_mc._x = glide_mc._x + glideItem.oldOffset[0];
}
if ((dest.y != null) && (dest.y != undefined)) {
glideItem.oldOffset[1] = percentMove * yChange;
glide_mc._y = glide_mc._y + glideItem.oldOffset[1];
}
if ((dest.x == null) || (finishTime <= newTime)) {
if (((dest.y == null) || (dest.y == undefined)) || (finishTime <= newTime)) {
var distDif = {x:glide_mc._x - dest.x, y:glide_mc._y - dest.y};
glide_mc._x = dest.x;
glide_mc._y = dest.y;
__glideList.removeItem(mc);
var difTime = ((newTime - finishTime) / 1000);
glideItem.callback.apply(glideItem.scope, [glideItem.param, difTime, distDif, "glide"]);
}
}
}
}
static function __easeFrame() {
var list = __easeFrameList.list;
for (var mc in list) {
var _local1 = list[mc];
var frame_mc = _local1.mc;
var destFrame = _local1.dest.frame;
var speed = _local1.speed;
var param = _local1.param;
var frameChange = _local1.dest.frameChange;
var lastTime = _local1.lastTime;
var finishTime = _local1.finishTime;
var _local2 = getTimer();
var percentMove = ((_local2 - lastTime) / __frameRate);
_local1.lastTime = _local2;
if (isNaN(_local1.oldOffset[0])) {
_local1.oldOffset[0] = 0;
}
var _local3 = _local1.oldOffset[0];
_local3 = _local3 + (percentMove * frameChange);
_local1.oldOffset[0] = _local3;
if ((destFrame != null) && (destFrame != undefined)) {
var frame = Math.ceil(_local3);
frame_mc.gotoAndStop(frame);
if (finishTime <= _local2) {
__easeFrameList.removeItem(mc);
var difTime = ((_local2 - finishTime) / 1000);
_local1.callback.apply(_local1.scope, [_local1.scope, difTime, frame_mc, "easeframe"]);
}
}
}
}
static var __timerList = new MotionList();
static var __easeFrameList = new MotionList();
static var __colorList = new MotionList();
static var __slideList = new MotionList();
static var __glideList = new MotionList();
static var __scaleList = new MotionList();
static var __alphaList = new MotionList();
static var __sizeList = new MotionList();
static var __rotateList = new MotionList();
static var __frameRate = 32.258064516129;
static var __distPercent = 0.032258064516129;
}
Symbol 411 MovieClip [__Packages.EnterFrame] Frame 0
class EnterFrame
{
static var mc;
function EnterFrame () {
}
static function init(scope) {
var _local2 = scope;
if (_local2 == undefined) {
_local2 = _level0;
}
if (!exists()) {
mc = _local2.createEmptyMovieClip("onEnterFrame_mc", 1048574);
mx.events.EventDispatcher.initialize(mc);
mc.onEnterFrame = function () {
var _local1 = {target:this, type:"onEnterFrame"};
this.dispatchEvent(_local1);
};
}
}
static function exists() {
var _local1 = ((mc == undefined) ? false : true);
return(_local1);
}
static function addListener(listener) {
mc.addEventListener("onEnterFrame", listener);
}
static function removeListener(listener) {
mc.removeEventListener("onEnterFrame", listener);
}
}
Symbol 151 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
var _local3 = queue;
if (_local3 != undefined) {
var l = _local3.length;
var _local1;
_local1 = 0;
while (_local1 < l) {
var _local2 = _local3[_local1];
if (_local2 == handler) {
_local3.splice(_local1, 1);
return;
}
_local1++;
}
}
}
static function initialize(object) {
var _local1 = object;
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
_local1.addEventListener = _fEventDispatcher.addEventListener;
_local1.removeEventListener = _fEventDispatcher.removeEventListener;
_local1.dispatchEvent = _fEventDispatcher.dispatchEvent;
_local1.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local2 = eventObj;
var queueName = ("__q_" + _local2.type);
var queue = queueObj[queueName];
if (queue != undefined) {
var i;
for (i in queue) {
var _local1 = queue[i];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(_local2);
}
if (_local1[_local2.type] != undefined) {
if (exceptions[_local2.type] == undefined) {
_local1[_local2.type](_local2);
}
}
} else {
_local1.apply(queueObj, [_local2]);
}
}
}
}
function dispatchEvent(eventObj) {
var _local1 = eventObj;
var _local2 = this;
if (_local1.target == undefined) {
_local1.target = _local2;
}
_local2[_local1.type + "Handler"](_local1);
_local2.dispatchQueue(_local2, _local1);
}
function addEventListener(event, handler) {
var _local2 = this;
var _local1 = "__q_" + event;
if (_local2[_local1] == undefined) {
_local2[_local1] = new Array();
}
_global.ASSetPropFlags(_local2, _local1, 1);
_removeEventListener(_local2[_local1], event, handler);
_local2[_local1].push(handler);
}
function removeEventListener(event, handler) {
var _local1 = "__q_" + event;
_removeEventListener(this[_local1], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1};
}
Symbol 412 MovieClip [__Packages.MotionItem] Frame 0
class MotionItem
{
function MotionItem (mc, dest, time, elasticity, callback, scope, param) {
var _local1 = this;
_local1.mc = mc;
_local1.dest = dest;
_local1.finishTime = (time * 1000) + getTimer();
_local1.elasticity = elasticity;
_local1.callback = callback;
_local1.scope = scope;
_local1.param = param;
_local1.oldOffset = new Array();
_local1.lastTime = getTimer();
}
function toString() {
return("[ object, MotionItem ]");
}
}
Symbol 413 MovieClip [__Packages.Fuel.debug.FDebug] Frame 0
class Fuel.debug.FDebug
{
var lc, serverName;
function FDebug (sname) {
var _local1 = this;
if (sname != undefined) {
_local1.serverName = sname;
} else {
_local1.serverName = "_FDEBUGWIN";
}
_local1.init();
}
function init() {
var _local1 = this;
var _local3 = _global;
_local1.lc = new LocalConnection();
_local1.lc.host = _local1;
_local1.lc.allowDomain = function () {
return(true);
};
_local1.lc.traceProp = function (prop) {
this.host.getProp(prop);
};
_local1.lc.getObject = function (obj) {
this.host.getObject(obj);
};
_local1.lc.changeProp = function (prop, value) {
this.host.changeProp(prop, value);
};
_local1.lc.onStatus = function (info) {
var _local1 = info;
for (var _local2 in _local1) {
}
};
_local1.lc.connect("_FDebugClient");
_local3.FDebugHost = _local1;
_local3.fTrace = function (msg) {
_global.FDebugHost.trace(msg);
};
_local3.FTraceObject = function (obj, name) {
_global.FDebugHost.traceObject(obj, name);
};
}
function trace(msg) {
lc.send(serverName, "trace", msg);
}
function traceObject(obj, name) {
trace(__traceObject(obj, name));
}
function getProp(prop) {
trace(eval (prop));
}
function getObject(obj) {
traceObject(eval (obj), obj);
}
function onLog(eventObj) {
trace(eventObj.message);
}
function __traceObject(obj, s, t) {
var _local1 = obj;
var _local2 = s;
var _local3 = this;
if (t == undefined) {
t = "\t";
} else {
t = t + "\t";
}
if (_local2 == undefined) {
_local2 = "Object: {";
} else {
_local2 = _local2 + "{";
}
for (var p in _local1) {
_local2 = _local2 + (newline + t);
if (!_local3.__looped) {
_local3.__looped = true;
}
if (_local1[p] instanceof Array) {
_local2 = _local2 + _local3.__traceObject(_local1[p], p + ":Array ", t);
} else if (typeof(_local1[p]) == "object") {
_local2 = _local2 + _local3.__traceObject(_local1[p], p + ":Object ", t);
} else if (typeof(_local1[p]) == "function") {
_local2 = _local2 + (p + ": (function)");
} else {
_local2 = _local2 + ((p + ": ") + _local1[p]);
}
}
return(((_local2 + newline) + t.slice(0, -1)) + "}");
}
function setNumber(path, num) {
var objspl = path.split(".");
var prop = objspl[objspl.length - 1];
var obj = "";
var i = 0;
while (i < (objspl.length - 1)) {
obj = obj + objspl[i];
if (i != (objspl.length - 2)) {
obj = obj + ".";
}
i++;
}
obj = eval (obj);
obj[prop] = num;
}
function setString(path) {
var spl = path.split("=");
var objspl = spl[0].split(".");
var prop = objspl[objspl.length - 1];
var obj = "";
var i = 0;
while (i < (objspl.length - 1)) {
obj = obj + objspl[i];
if (i != (objspl.length - 2)) {
obj = obj + ".";
}
i++;
}
obj = eval (obj);
var val = spl[1];
obj[prop] = val;
}
function fireFunction(path) {
var spl = path.split("=");
var objspl = spl[0].split(".");
var prop = objspl[objspl.length - 1];
var obj = "";
var i = 0;
while (i < (objspl.length - 1)) {
obj = obj + objspl[i];
if (i != (objspl.length - 2)) {
obj = obj + ".";
}
i++;
}
obj = eval (obj);
var val = spl[1].split(",");
obj[prop].apply(obj, val);
}
function changeProp(prop, value) {
trace("update Property ");
var str = value;
var type = typeof(eval (prop));
switch (type) {
case "number" :
trace((("updating number " + prop) + " ") + str);
setNumber(prop, Number(str));
return;
case "string" :
trace((("updating number " + prop) + " ") + str);
setString((prop + "=") + str);
return;
case "function" :
trace((("firing function " + prop) + " with params ") + str);
fireFunction((prop + "=") + str);
}
}
}
Symbol 133 MovieClip [__Packages.Fuel.core.FuelUI] Frame 0
class Fuel.core.FuelUI extends MovieClip
{
var onEnterFrame, methodTable, _visible, initializing, childrenCreated, attachMovie, _xscale, _yscale, __enabled, _x, _y, _width, _height;
function FuelUI () {
super();
constructObject();
initEventDispatcher();
}
function initEventDispatcher() {
mx.events.EventDispatcher.initialize(this);
}
function invalidate(Void) {
var _local1 = this;
_local1.invalidateFlag = true;
_local1.onEnterFrame = _local1.doLaterDispatcher;
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function doLater(obj, fn) {
var _local1 = this;
if (_local1.methodTable == undefined) {
_local1.methodTable = new Array();
}
_local1.methodTable.push({obj:obj, fn:fn});
_local1.onEnterFrame = _local1.doLaterDispatcher;
}
function setSize(w, h) {
var _local1 = this;
_local1.__width = w;
_local1.__height = h;
_local1.size();
}
function hide() {
_visible = false;
}
function show() {
_visible = true;
}
function constructObject(Void) {
var _local1 = this;
if (_local1._name == undefined) {
} else {
_local1.init();
_local1._createChildren();
_local1._endInit();
if (_local1.validateNow) {
_local1.redraw(true);
} else {
_local1.invalidate();
}
}
}
function init(Void) {
var _local1 = this;
_local1.__width = _local1._width;
_local1.__height = _local1._height;
if (_local1.initProperties == undefined) {
_local1.initFromClipParameters();
} else {
_local1.initProperties();
}
_local1.initializing = true;
}
function createChildren(Void) {
initializing = false;
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function draw(Void) {
}
function redraw(bAlways) {
var _local1 = this;
if (_local1.invalidateFlag || (bAlways)) {
_local1.invalidateFlag = false;
_local1.draw();
_local1.dispatchEvent({type:"draw"});
}
}
function size(Void) {
}
function doLaterDispatcher(Void) {
var _local3 = this;
delete _local3.onEnterFrame;
if (_local3.invalidateFlag) {
_local3.redraw();
}
var _local2 = _local3.methodTable;
_local3.methodTable = new Array();
if (_local2.length > 0) {
var _local1;
while (_local1 = _local2.shift() , _local1 != undefined) {
_local1.obj[_local1.fn]();
}
}
}
function initFromClipParameters(Void) {
var _local2 = this;
var bFound = false;
var _local1;
for (_local1 in _local2.clipParameters) {
if (_local2.hasOwnProperty(_local1)) {
bFound = true;
_local2["def_" + _local1] = _local2[_local1];
delete _local2[_local1];
}
}
if (bFound) {
for (_local1 in _local2.clipParameters) {
var _local3 = _local2["def_" + _local1];
if (_local3 != undefined) {
_local2[_local1] = _local3;
}
}
}
}
function setSkin(linkage, newName, depth, init) {
var _local1 = attachMovie(linkage, newName, depth, init);
return(_local1);
}
function forceScale() {
_xscale = 100;
_yscale = 100;
}
static function mergeClipParameters(o, p) {
var _local1 = p;
var _local2 = o;
for (var _local3 in _local1) {
_local2[_local3] = _local1[_local3];
}
return(true);
}
function set enabled(e) {
var _local1 = this;
_local1.__enabled = e;
_local1.invalidate();
//return(_local1.__get__enabled());
}
function get enabled() {
return(__enabled);
}
function set x(X) {
_x = X;
//return(x);
}
function get x() {
return(_x);
}
function set y(Y) {
_y = Y;
//return(y);
}
function get y() {
return(_y);
}
function set right(r) {
var _local1 = this;
_local1._x = _local1.__get__x() + (r - _local1.__get__width());
//return(_local1.__get__right());
}
function get right() {
return(x + width);
}
function set bottom(b) {
var _local1 = this;
_local1._y = _local1.__get__y() + (b - _local1.__get__height());
//return(_local1.__get__bottom());
}
function get bottom() {
return(y + height);
}
function set width(w) {
_width = w;
//return(width);
}
function get width() {
return(_width);
}
function set height(h) {
_height = h;
//return(height);
}
function get height() {
return(_height);
}
var invalidateFlag = false;
var clipParameters = {enabled:1};
}
Symbol 414 MovieClip [__Packages.com.megablocks.fireandice.data.SaveAction] Frame 0
class com.megablocks.fireandice.data.SaveAction extends Fuel.core.FuelUI
{
function SaveAction () {
super();
}
function init() {
super.init();
}
function sendAction(action, param) {
var _local2 = _global;
var _local1 = new Fuel.server.remoting.FuelRemoting();
trace("save action " + action);
_local1.url = _local2.URLS.saveaction;
trace(_local2.URLS.saveaction);
_local1.reply = this;
_local1.debug = true;
_local1.addItem("param", param);
_local1.addItem("action", action);
_local1.addItem("lang", _local2.lang);
_local1.addItem("sessid", _local2.sessid, "optional");
_local1.call();
}
}
Symbol 415 MovieClip [__Packages.Fuel.server.remoting.FuelRemoting] Frame 0
class Fuel.server.remoting.FuelRemoting
{
var __debug, __url, __reply, __dataProvider, dispatchEvent;
function FuelRemoting () {
init();
}
function set debug(val) {
__debug = val;
//return(debug);
}
function get debug() {
return(__debug);
}
function set url(aurl) {
__url = aurl;
//return(url);
}
function get url() {
return(__url);
}
function set reply(obj) {
setReply(obj);
//return(reply);
}
function get reply() {
return(__reply);
}
function init() {
var _local1 = this;
_local1.nc = new NetConnection();
_local1.__dataProvider = [];
mx.events.EventDispatcher.initialize(_local1);
}
function addItem(name, value, state) {
var _local1 = state;
if (_local1 == undefined) {
_local1 = "required";
}
__dataProvider.push(new Fuel.server.remoting.RemotingParameter(name, value, _local1));
}
function call() {
authenticateSender();
}
function send() {
var _local1 = this;
_local1.nc.connect(_local1.__get__url());
if (_local1.__sender.sessid == undefined) {
_local1.__sender.sessid = "";
}
_local1.__sender.cs = 1;
_local1.nc.call("", _local1, _local1.__sender);
}
function authenticateSender() {
var _local2 = this;
_local2.__sender = {};
var _local3 = [];
for (var i in _local2.__dataProvider) {
var _local1 = _local2.__dataProvider[i];
if (!_local1.exists()) {
_local3.push(_local1);
} else {
_local2.__sender[_local1.name] = _local1.value;
}
}
if (_local3.length <= 0) {
_local2.send();
} else {
_local2.dispatchError(_local3);
}
}
function dispatchError(errorItems) {
var _local1 = {};
_local1.errorItems = errorItems;
_local1.message = "One or more of the required fields is not valid";
_local1.target = this;
_local1.type = "onFailure";
dispatchEvent(_local1);
}
function onResult(result) {
var _local1 = result;
var _local2 = this;
if (_local2.__get__debug()) {
_local2.debugResults(_local1);
}
_local1.type = _local1.function;
_local1.target = _local2;
_local2.dispatchEvent(_local1);
_local2.clearItems();
}
function clearItems() {
__dataProvider = [];
}
function setReply(obj) {
var _local1 = this;
if (_local1.__reply != undefined) {
_local1.removeEventListener("onSuccess", _local1.__reply);
_local1.removeEventListener("onFailure", _local1.__reply);
}
_local1.__reply = obj;
_local1.addEventListener("onSuccess", _local1.__reply);
_local1.addEventListener("onFailure", _local1.__reply);
}
function debugResults(result) {
var _local1 = result;
log.debug("onResult ");
for (var _local2 in _local1) {
log.debug((_local2 + " = ") + _local1[_local2]);
}
}
}
Symbol 416 MovieClip [__Packages.Fuel.server.remoting.RemotingParameter] Frame 0
class Fuel.server.remoting.RemotingParameter
{
var __name, __value, __state;
function RemotingParameter (name, value, state) {
var _local1 = this;
_local1.__name = name;
_local1.__state = state;
_local1.setValue(value);
}
function setValue(val) {
var _local1 = this;
if ((_local1.__state != "requried") && (val == undefined)) {
_local1.__value = "";
} else {
_local1.__value = val;
}
}
function exists() {
var _local1 = this;
if ((_local1.__value == undefined) || (_local1.__value == "")) {
if (_local1.__state == "required") {
return(false);
}
return(true);
}
return(true);
}
function get name() {
return(__name);
}
function get value() {
return(__value);
}
function get state() {
return(__state);
}
}
Symbol 417 MovieClip [__Packages.com.megablocks.fireandice.data.Ping] Frame 0
class com.megablocks.fireandice.data.Ping extends Fuel.core.FuelUI
{
function Ping () {
super();
}
function init() {
super.init();
}
function onSuccess(result) {
var _local1 = this;
clearInterval(_local1.__updateId);
_local1.__updateInt = Number(result.UPDATEINT) * 1000;
_local1.__updateId = setInterval(_local1, "pingServer", _local1.__updateInt);
}
function pingServer() {
var _local2 = _global;
var _local1 = new Fuel.server.remoting.FuelRemoting();
trace("pinging");
_local1.url = _local2.URLS.ping;
trace(_local2.URLS.ping);
_local1.reply = this;
_local1.debug = true;
_local1.addItem("lang", _local2.lang);
_local1.addItem("sessid", _local2.sessid, "optional");
_local1.call();
}
}
Symbol 159 MovieClip [__Packages.Fuel.controls.SimpleButton] Frame 0
class Fuel.controls.SimpleButton extends Fuel.core.FuelUI
{
var __selected, gotoAndStop;
function SimpleButton () {
super();
}
function set selected(s) {
setSelected(s);
//return(selected);
}
function get selected() {
return(__selected);
}
function init() {
var _local1 = this;
super.init();
if (_local1.__get__enabled() == undefined) {
_local1.__set__enabled(true);
}
if (_local1.__selected == undefined) {
_local1.__selected = false;
}
}
function draw() {
var _local1 = this;
if (_local1.__selected) {
_local1.drawSelected();
} else {
_local1.drawDeselected();
}
_local1.setEnabled(_local1.__get__enabled());
_local1.size();
}
function size() {
}
function setEnabled(val) {
var _local1 = this;
if (val) {
_local1.enableStates();
_local1.gotoAndStop("out");
} else {
_local1.disableStates();
_local1.gotoAndStop("disabled");
}
}
function setSelected(val) {
setState(val);
}
function setState(val) {
var _local1 = this;
if (val != _local1.__selected) {
_local1.__selected = val;
_local1.invalidate();
}
}
function enableStates() {
var _local1 = this;
_local1.onRelease = (_local1.onReleaseOutside = _local1.release);
_local1.onRollOver = _local1.over;
_local1.onRollOut = (_local1.onDragOut = _local1.out);
_local1.onPress = _local1.down;
_local1.useHandCursor = true;
}
function disableStates() {
var _local1 = this;
_local1.onRelease = (_local1.onReleaseOutside = undefined);
_local1.onRollOver = undefined;
_local1.onRollOut = (_local1.onDragOut = undefined);
_local1.onPress = undefined;
_local1.useHandCursor = false;
}
function over() {
gotoAndStop("over");
}
function out() {
var _local1 = this;
if (_local1.__selected) {
_local1.drawSelected();
} else {
_local1.gotoAndStop("out");
}
}
function down() {
gotoAndStop("down");
}
function release() {
var _local1 = this;
_local1.dispatchEvent({target:_local1, type:"click"});
if (_local1.hitTest(_root._xmouse, _root._ymouse, false)) {
_local1.over();
} else {
_local1.out();
}
}
function drawSelected() {
gotoAndStop("selected");
}
function drawDeselected() {
gotoAndStop("out");
}
var clipParameters = {selected:1, enabled:1};
static var mergedClipParameters = Fuel.core.FuelUI.mergeClipParameters(Fuel.controls.SimpleButton.prototype.clipParameters, Fuel.core.FuelUI.prototype.clipParameters);
}
Symbol 418 MovieClip [__Packages.Fuel.controls.Button] Frame 0
class Fuel.controls.Button extends Fuel.controls.SimpleButton
{
var __label, label_txt;
function Button () {
super();
}
function set label(l) {
setLabel(l);
//return(label);
}
function get label() {
return(__label);
}
function init() {
super.init();
if (label == undefined) {
label = ("");
}
}
function draw() {
var _local1 = this;
super.draw();
_local1.setLabel(_local1.__label);
_local1.size();
}
function size() {
super.size();
}
function over() {
super.over();
setLabel(__label);
}
function out() {
super.out();
setLabel(__label);
}
function down() {
super.down();
setLabel(__label);
}
function drawSelected() {
super.drawSelected();
setLabel(__label);
}
function setEnabled(val) {
super.setEnabled(val);
setLabel(__label);
}
function setLabel(txt) {
label_txt.text = txt;
__label = txt;
}
var clipParameters = {label:1, selected:1, enabled:1};
static var mergedClipParameters = Fuel.core.FuelUI.mergeClipParameters(Fuel.controls.Button.prototype.clipParameters, Fuel.controls.SimpleButton.prototype.clipParameters);
}
Symbol 419 MovieClip [__Packages.com.megablocks.fireandice.controls.CharacterButton] Frame 0
class com.megablocks.fireandice.controls.CharacterButton extends Fuel.controls.Button
{
var __special, __specialDesc, __weaponDesc, __set__selected, __set__enabled;
function CharacterButton () {
super();
}
function set special(newValue) {
var _local1 = this;
_local1.__special = newValue;
_local1.invalidate();
//return(_local1.__get__special());
}
function get special() {
return(__special);
}
function set specialDesc(newValue) {
var _local1 = this;
_local1.__specialDesc = newValue;
_local1.invalidate();
//return(_local1.__get__specialDesc());
}
function get specialDesc() {
return(__specialDesc);
}
function set weaponDesc(newValue) {
var _local1 = this;
_local1.__weaponDesc = newValue;
_local1.invalidate();
//return(_local1.__get__weaponDesc());
}
function get weaponDesc() {
return(__weaponDesc);
}
function init() {
super.init();
}
function draw() {
var _local1 = this;
_local1.wDesc_txt.text = _local1.__weaponDesc;
_local1.special_txt.text = _local1.__special;
_local1.sDesc_txt.text = _local1.__specialDesc;
super.draw();
}
function over() {
var _local1 = this;
super.over();
_local1.color_mc.alphaTo(100, 0.2);
_local1.bgColor_mc._alpha = 100;
_local1.bgColor_mc.gotoAndPlay(2);
}
function out() {
var _local1 = this;
super.out();
_local1.color_mc.alphaTo(0, 0.5);
_local1.bgColor_mc.alphaTo(0, 0.1, _local1.bgDone, _local1);
}
function release() {
super.release();
__set__selected(true);
__set__enabled(false);
}
function bgDone(scope) {
scope.bgColor_mc.gotoAndStop(1);
}
function setSelected(val) {
var _local1 = this;
if (val) {
_local1.gotoAndStop("selected");
_local1.__enabled = false;
_local1.__selected = true;
} else {
_local1.gotoAndStop("out");
_local1.__selected = false;
_local1.__enabled = true;
}
}
var clipParameters = {label:1, selected:1, enabled:1, weaponDesc:1, specialDesc:1, special:1};
static var mergedClipParameters = FuelUI.mergeClipParameters(com.megablocks.fireandice.controls.CharacterButton.prototype.clipParameters, Fuel.controls.Button.prototype.clipParameters);
}
Symbol 420 MovieClip [__Packages.com.megablocks.fireandice.controls.DropShadowButton] Frame 0
class com.megablocks.fireandice.controls.DropShadowButton extends Fuel.controls.Button
{
var shadow_txt;
function DropShadowButton () {
super();
}
function init() {
super.init();
}
function draw() {
super.draw();
}
function setLabel(txt) {
super.setLabel(txt);
shadow_txt.text = txt;
}
var clipParameters = {selected:1, enabled:1, label:1};
static var mergedClipParameters = FuelUI.mergeClipParameters(com.megablocks.fireandice.controls.DropShadowButton.prototype.clipParameters, Fuel.controls.Button.prototype.clipParameters);
}
Symbol 421 MovieClip [__Packages.com.megablocks.fireandice.leaderboard.LeaderBoardItem] Frame 0
class com.megablocks.fireandice.leaderboard.LeaderBoardItem extends Fuel.core.FuelUI
{
var __name, __rank, __value;
function LeaderBoardItem () {
super();
}
function set name(str) {
__name = str;
//return(name);
}
function get name() {
return(__name);
}
function set rank(num) {
__rank = String(Number(num));
//return(rank);
}
function get rank() {
return(__rank);
}
function set value(val) {
__value = val;
//return(value);
}
function get value() {
return(__value);
}
function init() {
super.init();
}
function draw() {
var _local1 = this;
_local1.rank_txt.text = _local1.getRank();
_local1.name_txt.text = _local1.name;
_local1.score_txt.text = _local1.getScore();
}
function getRank() {
return(formatNumber(rank));
}
function getScore() {
return(formatNumber(String(value)));
}
function formatNumber(val) {
var _local1 = val;
var _local2;
switch (_local1.length) {
case 1 :
_local2 = "000 00" + _local1;
// unexpected jump
case 2 :
_local2 = "000 0" + _local1;
// unexpected jump
case 3 :
_local2 = "000 " + _local1;
// unexpected jump
case 4 :
_local2 = (("00" + _local1.substring(0, 1)) + " ") + _local1.substring(1, 4);
// unexpected jump
case 5 :
_local2 = (("0" + _local1.substring(0, 2)) + " ") + _local1.substring(2, 5);
// unexpected jump
case 6 :
_local2 = (_local1.substring(0, 3) + " ") + _local1.substring(3, 6);
return(_local2);
}
_local2 = _local1;
// unexpected jump
return(_local2);
}
var clipParameters = {selected:1, enabled:1, name:1, value:1, rank:1};
static var mergedClipParameters = Fuel.core.FuelUI.mergeClipParameters(com.megablocks.fireandice.leaderboard.LeaderBoardItem.prototype.clipParameters, Fuel.core.FuelUI.prototype.clipParameters);
}
Symbol 422 MovieClip [__Packages.com.megablocks.fireandice.leaderboard.LeaderBoardWindow] Frame 0
class com.megablocks.fireandice.leaderboard.LeaderBoardWindow extends Fuel.core.FuelUI
{
var __dataProvider, noresults_mc, next_btn, last_btn, __scrollInterval;
function LeaderBoardWindow () {
super();
}
function init() {
var _local1 = this;
super.init();
_local1.__recordNumber = 50;
_local1.query_mc._visible = false;
_local1.noresults_mc._visible = false;
}
function draw() {
if (__dataProvider.length > 0) {
drawItems();
}
}
function next() {
var _local1 = this;
_local1.__currentPage++;
var _local2 = _local1.__currentPage * _local1.__recordNumber;
var _local3 = _local2 - (_local1.__recordNumber - 1);
_local1.getLeaderBoard(_local3);
_local1.enableNav("buttons");
if (_local1.__currentPage == _local1.__maxPage) {
_local1.next_btn.enabled = false;
}
}
function last() {
var _local1 = this;
_local1.__currentPage--;
var _local2 = _local1.__currentPage * _local1.__recordNumber;
var _local3 = _local2 - (_local1.__recordNumber - 1);
_local1.getLeaderBoard(_local3);
_local1.enableNav("buttons");
if (_local1.__currentPage == 1) {
_local1.last_btn.enabled = false;
}
}
function changeCourse() {
var _local1 = this;
_local1.__currentPage = 1;
_local1.getLeaderBoard(1);
_local1.last_btn.enabled = false;
_local1.next_btn.enabled = true;
}
function onSuccess(result) {
var _local1 = this;
var _local2 = result;
_local1.__dataProvider = _local2.scores;
_local1.setMaxPage(_local2.scoreslength);
if (_local2.scoreslength == 0) {
_local1.query_mc._visible = false;
_local1.next_btn.enabled = false;
_local1.last_btn.enabled = false;
_local1.noresults_mc._visible = true;
}
_local1.invalidate();
}
function onFailure(result) {
noresults_mc._visible = true;
}
function clearItems() {
var _local1 = this;
for (var _local2 in _local1.__drawnItems) {
_local1.__drawnItems[_local2].removeMovieClip();
}
_local1.__drawnItems = [];
}
function drawItems() {
var _local3 = this;
_local3.clearItems();
_local3.query_mc._visible = false;
_local3.noresults_mc._visible = false;
_local3.loader_mc._x = 15;
_local3.loader_mc._y = 34;
for (var i in _local3.__dataProvider) {
var _local1 = _local3.__dataProvider[i];
_local1.value = _local1.score;
_local1.rank = _local1.nrank;
var _local2 = _local3.loader_mc.attachMovie("leaderBoardItem_mc", "score_mc" + i, i, _local1);
_local2._x = 0;
_local2._y = i * 13;
trace(_local2._y);
_local3.__drawnItems.push(_local2);
}
}
function getLeaderBoard(start) {
var _local1 = this;
var _local2 = _global;
_local1.clearItems();
_local1.__script = new Fuel.server.remoting.FuelRemoting();
_local1.__script.__set__url(_local2.URLS.leaderboard);
_local1.__script.__set__reply(_local1);
_local1.__script.__set__debug(true);
_local1.__script.addItem("startrank", String(start));
_local1.__script.addItem("nrecords", String(_local1.__recordNumber));
_local1.__script.addItem("course", "1");
_local1.__script.addItem("lang", _local2.lang);
_local1.__script.addItem("sessid", _local2.sessid, "optional");
_local1.__script.call();
_local1.noresults_mc._visible = false;
_local1.query_mc._visible = true;
}
function enableNav(type) {
if (!(type === "buttons")) {
} else {
next_btn.enabled = true;
last_btn.enabled = true;
}
}
function setMaxPage(total) {
var _local2 = this;
var _local3 = total % _local2.__recordNumber;
var _local1 = (total - _local3) / _local2.__recordNumber;
if (_local3 != 0) {
_local1++;
}
if (_local1 == 1) {
_local2.next_btn.enabled = false;
}
_local2.__maxPage = _local1;
}
function scrollUp() {
__scrollInterval = setInterval(this, "scrollIt", 100, -1);
}
function scrollDown() {
__scrollInterval = setInterval(this, "scrollIt", 100, 1);
}
function stopScroll() {
clearInterval(__scrollInterval);
}
function scrollIt(percent) {
var _local1 = this;
var _local2 = _local1.loader_mc._y - Math.round(percent * 13);
if ((_local2 + _local1.loader_mc._height) <= 190) {
_local1.loader_mc._y = _local1.loader_mc._y;
} else if (_local2 >= 34) {
_local1.loader_mc._y = 34;
} else {
_local1.loader_mc._y = _local2;
}
}
}
Symbol 423 MovieClip [__Packages.Fuel.controls.RadioButton] Frame 0
class Fuel.controls.RadioButton extends Fuel.controls.Button
{
var _parent, __groupName, __indexNumber, __data;
function RadioButton () {
super();
}
function get group() {
return(_parent[groupName]);
}
function set groupName(name) {
setGroupName(name);
//return(groupName);
}
function get groupName() {
return(__groupName);
}
function set indexNumber(num) {
__indexNumber = num;
//return(indexNumber);
}
function get indexNumber() {
return(__indexNumber);
}
function set data(val) {
__data = val;
//return(data);
}
function get data() {
return(__data);
}
function init() {
super.init();
}
function draw() {
super.draw();
}
function setGroupName(name) {
var _local1 = name;
var _local3 = this;
if ((_local1 == undefined) || (_local1 == "")) {
} else {
var _local2 = _local3._parent[_local1];
if (_local2 == undefined) {
_local2 = (_local3._parent[_local1] = new Fuel.controls.Group());
_local2.groupName = _local1;
}
_local2.addMember(_local3);
_local3.__groupName = _local1;
}
}
function setSelected(val) {
var _local1 = this;
if (_local1.__get__group() != undefined) {
if (_local1.__selected != undefined) {
if (!_local1.__selected) {
_local1.group.__selectedMember.setState(false);
_local1.group.__selectedMember.enabled = true;
_local1.group.__selectedMember = _local1;
_local1.__set__enabled(false);
} else {
_local1.group.__selectedMember = null;
}
} else if (val) {
_local1.group.__selectedMember.setState(false);
_local1.group.__selectedMember.enabled = true;
_local1.group.__selectedMember = _local1;
_local1.__set__enabled(false);
}
}
_local1.setState(val);
}
function release() {
var _local1 = this;
_local1.dispatchEvent({target:_local1, type:"click"});
var _local2 = (_local1.__selected ? false : true);
_local1.setSelected(_local2);
}
function deleteGroup(group) {
delete _parent[group];
}
function onUnload() {
var _local1 = this;
if (_local1.group.__selectedMember == _local1) {
_local1.group.__selectedMember = null;
}
_local1.group.groupMembers[_local1.indexNumber] = null;
delete _local1.group.groupMembers[_local1.indexNumber];
}
var clipParameters = {groupName:1, selected:1, label:1, data:1, enabled:1};
static var mergedClipParameters = Fuel.core.FuelUI.mergeClipParameters(Fuel.controls.RadioButton.prototype.clipParameters, Fuel.controls.Button.prototype.clipParameters);
}
Symbol 424 MovieClip [__Packages.Fuel.controls.Group] Frame 0
class Fuel.controls.Group
{
var groupMembers, indexNumber, __groupName, __selectedMember;
function Group () {
init();
}
function init() {
groupMembers = [];
indexNumber = 0;
}
function addMember(member) {
member.indexNumber = indexNumber++;
groupMembers.push(member);
}
function getMemebers() {
return(groupMembers);
}
function set enabled(val) {
var _local1 = this;
var _local2 = val;
for (var _local3 in _local1.groupMembers) {
_local1.groupMembers[_local3].enabled = _local2;
}
//return(_local1.__get__enabled());
}
function get enabled() {
var _local2 = this;
for (var _local3 in _local2.groupMembers) {
var _local1 = s + _local2.groupMembers[_local3].enabled;
}
if (_local1 == _local2.groupMembers.length) {
return(true);
}
if (_local1 == 0) {
return(false);
}
return(undefined);
}
function set groupName(name) {
var _local1 = this;
if ((name == undefined) || (name == "")) {
} else {
var gn = _local1.__groupName;
_local1.__groupName = name;
_parent[name] = _local1;
for (var _local3 in _local1.groupMembers) {
var _local2 = _local1.groupMembers[_local3];
_local2.groupName = _local1.__groupName;
}
_local2.deleteGroup(gn);
//return(_local1.__get__groupName());
}
return;
}
function get groupName() {
return(__groupName);
}
function set selection(member) {
var _local2 = this;
var _local3 = member;
for (var i in _local2.groupMembers) {
var _local1 = _local2.groupMembers[i];
if (_local1 == _local3) {
_local1.setState(true);
_local2.__selectedMember = _local1;
} else {
_local1.setState(false);
}
}
//return(_local2.__get__selection());
}
function get selection() {
return(__selectedMember);
}
}
Symbol 425 MovieClip [__Packages.com.megablocks.fireandice.controls.InventoryItem] Frame 0
class com.megablocks.fireandice.controls.InventoryItem extends Fuel.controls.RadioButton
{
var gotoAndStop;
function InventoryItem () {
super();
}
function init() {
super.init();
}
function draw() {
var _local1 = this;
if (_local1.__selected) {
_local1.drawSelected();
} else {
_local1.drawDeselected();
}
if (!_local1.__get__enabled()) {
_local1.disableStates();
}
}
function enableStates() {
gotoAndStop("out");
}
function disableStates() {
gotoAndStop("disabled");
}
var clipParameters = {groupName:1, selected:1, label:1, data:1, enabled:1};
static var mergedClipParameters = FuelUI.mergeClipParameters(com.megablocks.fireandice.controls.InventoryItem.prototype.clipParameters, Fuel.controls.RadioButton.prototype.clipParameters);
}
Symbol 426 MovieClip [__Packages.com.megablocks.fireandice.controls.MapLevel] Frame 0
class com.megablocks.fireandice.controls.MapLevel extends Fuel.core.FuelUI
{
var drawnItems, crystalUI_mc, crystalHolder_mc, gotoAndStop;
function MapLevel () {
super();
}
function init() {
super.init();
drawnItems = [];
}
function createChildren() {
var cui = crystalUI_mc.attachMovie("crystalUI_mc", "crystals_mc", 4);
}
function selectedGrid(row, column) {
var _local2 = this;
_local2.__currentGrid.gotoAndStop("deselected");
var _local1 = _local2[(("grid" + row) + column) + "_mc"];
_local1.gotoAndStop("selected");
_local2.__currentGrid = _local1;
}
function placeCrystal(crystals) {
reset();
var _local3 = 0;
while (_local3 < crystals.length) {
var _local1 = crystals[_local3];
var grid = this[(("grid" + _local1.row) + _local1.column) + "_mc"];
var id = _local1.id;
var x = ((_local1.x / 16) + grid._x);
var y = ((_local1.y / 16) + grid._y);
var depth = id.substring(7);
var _local2 = crystalHolder_mc.attachMovie("mapCrystal_mc", "mapCrystal_mc" + depth, depth);
_local2._x = Math.round(x);
_local2._y = Math.round(y);
drawnItems[id] = {mc:_local2};
_local3++;
}
}
function removeItem(id) {
drawnItems[id].mc.removeMovieClip();
delete drawnItems[id];
}
function changeLevel(level) {
trace("map change level = " + level);
gotoAndStop(level + 1);
}
function reset() {
var _local1 = this;
for (var _local2 in _local1.drawnItems) {
_local1.drawnItems[_local2].mc.removeMovieClip();
}
_local1.drawnItems = [];
}
function changeMap(obj) {
var _local1 = obj;
var _local3 = this;
var _local2 = _local1.type;
trace("change map " + _local2);
switch (_local2) {
case "player" :
trace((("player on " + _local1.row) + " + ") + _local1.column);
_local3.selectedGrid(_local1.row, _local1.column);
return;
case "crystal" :
trace("length " + _local1.id.length);
_local3.placeCrystal(_local1.id);
return;
case "remove" :
_local3.removeItem(_local1.id);
}
}
}
Symbol 427 MovieClip [__Packages.com.megablocks.fireandice.controls.Score] Frame 0
class com.megablocks.fireandice.controls.Score extends Fuel.core.FuelUI
{
function Score () {
super();
}
function init() {
super.init();
setScore("");
}
function setScore(pscore) {
var _local3 = this;
var temp = pscore.split("");
temp.reverse();
var _local1 = 0;
while (_local1 < 6) {
if (temp[_local1] != undefined) {
var _local2 = Number(temp[_local1]);
if (!isNaN(_local2)) {
_local3["digit_mc" + (_local1 + 1)].gotoAndStop(_local2 + 1);
} else {
_local3["digit_mc" + (_local1 + 1)].gotoAndStop("blank");
}
} else {
_local3["digit_mc" + (_local1 + 1)].gotoAndStop("blank");
}
_local1++;
}
}
}
Symbol 428 MovieClip [__Packages.com.megablocks.fireandice.controls.PowerBar] Frame 0
class com.megablocks.fireandice.controls.PowerBar extends Fuel.core.FuelUI
{
var __scale, _xscale, scaleTo;
function PowerBar () {
super();
}
function set percent(num) {
var _local1 = this;
_local1.__scale = Math.round(Math.min(100, num));
_local1.setScale();
//return(_local1.__get__percent());
}
function get percent() {
return(__scale);
}
function init() {
super.init();
_xscale = 0;
}
function draw() {
super.draw();
}
function setScale() {
scaleTo(__scale, 100, 0.5, 0);
}
}
Symbol 429 MovieClip [__Packages.com.megablocks.fireandice.containers.UIMeters] Frame 0
class com.megablocks.fireandice.containers.UIMeters extends Fuel.core.FuelUI
{
var health_mc, power_mc;
function UIMeters () {
super();
}
function init() {
super.init();
}
function setHealth(num) {
health_mc.percent = Math.max(0, num);
}
function setPower(num) {
power_mc.percent = Math.max(0, num);
}
}
Symbol 430 MovieClip [__Packages.com.megablocks.fireandice.containers.Popup] Frame 0
class com.megablocks.fireandice.containers.Popup extends Fuel.core.FuelUI
{
function Popup () {
super();
}
function init() {
var _local1 = this;
super.init();
_local1.__sideHeight = 46;
if (_local1.__title == undefined) {
_local1.__title = "";
}
if (_local1.__content == undefined) {
_local1.__content = "";
}
if (_local1.__drawnItems == undefined) {
_local1.__drawnItems = [];
}
_local1._visible = false;
}
function draw() {
var _local1 = this;
if ((_local1.__title == "") && (_local1.__content == "")) {
} else {
super.draw();
_local1.title_txt.text = _local1.__title;
_local1.content_txt.text = _local1.__content;
_local1.size();
}
}
function size() {
var _local1 = this;
_local1.title_txt._height = _local1.title_txt.textHeight + 5;
_local1.content_txt._height = _local1.content_txt.textHeight + 5;
super.size();
_local1.doLayout();
}
function doLayout() {
var _local1 = this;
_local1.content_txt._y = Math.round((_local1.title_txt._y + _local1.title_txt._height) + 5);
var _local3 = (_local1.content_txt._y + _local1.content_txt._height) - 35;
var _local2 = (_local3 + _local1.close_mc._height) - _local1.top_mc._height;
if (_local2 > 0) {
_local1.generateSides(_local2);
}
_local1._visible = true;
}
function removeSides() {
var _local3 = this;
var _local1 = 0;
while (_local1 < _local3.__drawnItems.length) {
var _local2 = _local3.__drawnItems[_local1];
_local2.removeMovieClip();
_local1++;
}
}
function generateSides(diff) {
var _local2 = this;
var num = Math.ceil(diff / _local2.__sideHeight);
_local2.removeSides();
var _local1 = 0;
while (_local1 < num) {
var left = _local2.attachMovie("leftSidePopup_mc", "left_mc" + _local1, 100 + _local1);
left._x = -2;
left._y = Math.round((_local1 * _local2.__sideHeight) + _local2.top_mc._height);
var _local3 = _local2.attachMovie("rightSidePopup_mc", "left_mc" + _local1, 200 + _local1);
_local3._x = 332;
_local3._y = Math.round((_local1 * _local2.__sideHeight) + _local2.top_mc._height);
_local2.__drawnItems.push(_local3);
_local2.__drawnItems.push(left);
_local1++;
}
var lastItem = _local2.__drawnItems[_local2.__drawnItems.length - 1];
var bottom = ((lastItem._y + lastItem._height) - 2);
_local2.bottom_mc._y = bottom;
_local2.bg_mc._height = (bottom + _local2.bottom_mc._height) - 15;
_local2.close_mc._y = bottom - 7;
}
function onKeyDown() {
if (Key.isDown(13)) {
hide();
}
}
function show(title, content) {
var _local1 = this;
_local1.__title = title;
_local1.__content = content;
_local1._x = 151;
_local1._y = 105;
Key.addListener(_local1);
_local1.invalidate();
}
function hide() {
var _local1 = this;
_local1._x = -1000;
_local1._y = -1000;
Key.removeListener(_local1);
_local1._visible = false;
_global.siteRoot.game_mc.hidePopup();
}
}
Symbol 431 MovieClip [__Packages.com.megablocks.fireandice.controls.UIItem] Frame 0
class com.megablocks.fireandice.controls.UIItem extends Fuel.core.FuelUI
{
var __amount, __total;
function UIItem () {
super();
}
function set amount(num) {
var _local1 = this;
_local1.__amount = num;
_local1.setAmount();
//return(_local1.__get__amount());
}
function get amount() {
return(__amount);
}
function set total(num) {
var _local1 = this;
_local1.__total = num;
_local1.setTotal();
//return(_local1.__get__total());
}
function get total() {
return(__total);
}
function init() {
var _local1 = this;
super.init();
if (_local1.__get__amount() == undefined) {
_local1.__set__amount(0);
}
_local1._alpha = 0;
}
function setAmount() {
var _local1 = this;
_local1.amount_txt.text = String(_local1.__amount);
_local1.amountShadow_txt.text = String(_local1.__amount);
if (_local1.__amount > 0) {
clearInterval(_local1.__alphaID);
_local1.alphaTo(100, 0.5);
_local1.__alphaID = setInterval(_local1, "fadeOut", 2000);
}
}
function fadeOut() {
var _local1 = this;
clearInterval(_local1.__alphaID);
trace("fade out " + _local1);
_local1.alphaTo(0, 0.5);
}
function setTotal() {
var _local1 = this;
_local1.total_txt.text = String(_local1.__total);
_local1.totalShadow_txt.text = String(_local1.__total);
}
}
Symbol 432 MovieClip [__Packages.com.megablocks.fireandice.containers.SaveScoreWindow] Frame 0
class com.megablocks.fireandice.containers.SaveScoreWindow extends Fuel.core.FuelUI
{
var gotoAndStop, rank_txt, score_txt, titles_mc;
function SaveScoreWindow () {
super();
}
function LeaderBoardWindow() {
}
function init() {
super.init();
}
function onSuccess(result) {
trace("your rank is " + result.rank);
gotoAndStop("rank");
rank_txt.text = String(result.rank);
}
function onFailure(result) {
trace(result.message);
}
function saveScore(name, score) {
var _local1 = this;
var _local2 = name;
var _local3 = _global;
_local1.__script = new Fuel.server.remoting.FuelRemoting();
_local1.__name = _local2;
_local1.__score = score;
trace((("savingScore " + _local2) + " = ") + score);
_local1.__script.__set__url(_local3.URLS.savescore);
_local1.__script.__set__reply(_local1);
_local1.__script.__set__debug(true);
_local1.__script.addItem("name", _local2);
_local1.__script.addItem("score", String(score));
_local1.__script.addItem("course", "1");
_local1.__script.addItem("lang", _local3.lang);
_local1.__script.addItem("sessid", _local3.sessid, "optional");
_local1.__script.call();
}
function setScore(score) {
score_txt.text = String(score);
}
function setTitle(title) {
titles_mc.gotoAndStop(title);
}
}
Symbol 134 MovieClip [__Packages.Fuel.controls.scrollClasses.ScrollBar] Frame 0
class Fuel.controls.scrollClasses.ScrollBar extends Fuel.core.FuelUI
{
var __thumbResize, __upSkinName, __downSkinName, __trackSkinName, __barSkinName, scrollDir, _parent, dispatchEvent;
function ScrollBar () {
super();
}
function set thumbResize(val) {
__thumbResize = val;
//return(thumbResize);
}
function get thumbResize() {
return(__thumbResize);
}
function set upSkinName(skin) {
__upSkinName = skin;
//return(upSkinName);
}
function get upSkinName() {
return(__upSkinName);
}
function set downSkinName(skin) {
__downSkinName = skin;
//return(downSkinName);
}
function get downSkinName() {
return(__downSkinName);
}
function set trackSkinName(skin) {
__trackSkinName = skin;
//return(trackSkinName);
}
function get trackSkinName() {
return(__trackSkinName);
}
function set barSkinName(skin) {
__barSkinName = skin;
//return(barSkinName);
}
function get barSkinName() {
return(__barSkinName);
}
function init() {
var _local1 = this;
super.init();
_local1.boundingBox_mc._width = (_local1.boundingBox_mc._height = 0);
_local1.boundingBox_mc._visible = false;
}
function createChildren() {
var _local1 = this;
_local1._visible = false;
_local1.__set__barSkinName((((_local1.__get__barSkinName() == undefined) || (_local1.__get__barSkinName() == "")) ? "barSkin" : (_local1.__get__barSkinName())));
_local1.__set__trackSkinName((((_local1.__get__trackSkinName() == undefined) || (_local1.__get__trackSkinName() == "")) ? "trackSkin" : (_local1.__get__trackSkinName())));
_local1.__set__upSkinName((((_local1.__get__upSkinName() == undefined) || (_local1.__get__upSkinName() == "")) ? "upSkin" : (_local1.__get__upSkinName())));
_local1.__set__downSkinName((((_local1.__get__downSkinName() == undefined) || (_local1.__get__downSkinName() == "")) ? "downSkin" : (_local1.__get__downSkinName())));
_local1.attachMovie(_local1.__get__trackSkinName(), "trackSkin", 0);
_local1.attachMovie(_local1.__get__barSkinName(), "barSkin", 1);
_local1.attachMovie(_local1.__get__downSkinName(), "downSkin", 3);
_local1.attachMovie(_local1.__get__upSkinName(), "upSkin", 4);
_local1.setEvents();
}
function draw() {
var _local1 = this;
var _local2 = ((_local1.trackSkin._width > _local1.upSkin._width) ? (_local1.trackSkin._width) : (_local1.upSkin._width));
_local1.setSize(_local2, _local1.__height);
_local1.size();
}
function size() {
doLayout();
}
function doLayout() {
var _local1 = this;
_local1.upSkin._x = 0;
_local1.upSkin._y = 0;
_local1.downSkin._x = 0;
_local1.downSkin._y = _local1.__height - _local1.downSkin.__height;
_local1.barSkin._x = 0;
_local1.barSkin._y = _local1.upSkin._y + _local1.upSkin.__height;
_local1.barSkin.trackHeight = Math.round(_local1._height - (_local1.upSkin.__height + _local1.downSkin.__height));
_local1.trackSkin._x = 0;
_local1.trackSkin._y = _local1.upSkin._y + _local1.upSkin._height;
var _local2 = (_local1.__height - _local1.upSkin.__height) - _local1.downSkin.__height;
_local1.trackSkin._height = _local2;
_local1._visible = true;
_local1.initProperties();
}
function initProperties() {
var _local1 = this;
_local1.miny = _local1.trackSkin._y;
_local1.maxy = (_local1.trackSkin._y + _local1.trackSkin._height) - _local1.barSkin._height;
}
function setEvents() {
var _local1 = this;
_local1.upSkin.release = (_local1.downSkin.release = _local1.buttonRelease);
_local1.upSkin.down = _local1.upPress;
_local1.downSkin.down = _local1.downPress;
_local1.downSkin.onRelease = (_local1.downSkin.onReleaseOutside = _local1.buttonRelease);
_local1.barSkin.onPress = _local1.startDragging;
_local1.barSkin.onRelease = (_local1.barSkin.onReleaseOutside = _local1.stopDragging);
}
function downPress() {
var _local1 = this;
_local1._parent.scrollDir = 1;
_local1._parent.scrollIt("line", _local1._parent.scrollDir);
_local1._parent.btnInterval = setInterval(_local1._parent, "buttonScroll", 100);
}
function upPress() {
var _local1 = this;
_local1._parent.scrollDir = -1;
_local1._parent.scrollIt("line", _local1._parent.scrollDir);
_local1._parent.btnInterval = setInterval(_local1._parent, "buttonScroll", 100);
}
function buttonScroll() {
scrollIt("line", scrollDir);
}
function buttonRelease() {
clearInterval(_parent.btnInterval);
_parent.scrollDir = null;
}
function startDragging() {
var _local1 = this;
_local1.startDrag(false, _local1._x, _local1._parent.miny, _local1._x, _local1._parent.maxy);
_local1._parent.barInterval = setInterval(_local1._parent, "setScrollPosition", 100);
}
function stopDragging() {
var _local1 = this;
_local1.stopDrag();
clearInterval(_local1._parent.barInterval);
_local1._parent.stopScroll();
}
function setScrollPosition() {
var _local1 = this;
var _local2 = (_local1.barSkin._y - _local1.miny) / (_local1.maxy - _local1.miny);
_local1.scrollIt("bar", _local2);
}
function scrollIt(inc, percent) {
dispatchEvent({target:this, type:"scroll", inc:inc, percent:percent});
}
function adjustScrollBars() {
}
function setSkins(skinObject) {
var _local1 = skinObject;
var _local2 = this;
if (_local1.barSkin != undefined) {
_local2.__set__barSkinName(_local1.barSkin);
}
if (_local1.trackSkin != undefined) {
_local2.__set__trackSkinName(_local1.trackSkin);
}
if (_local1.upSkin != undefined) {
_local2.__set__upSkinName(_local1.upSkin);
}
if (_local1.downSkin != undefined) {
_local2.__set__downSkinName(_local1.downSkin);
}
_local2.createChildren();
}
function setVisibility(val) {
var _local1 = val;
var _local2 = this;
_local2.upSkin._visible = _local1;
_local2.downSkin._visible = _local1;
_local2.trackSkin._visible = _local1;
_local2.barSkin._visible = _local1;
}
var clipParameters = {thumbResize:1, barSkinName:1, upSkinName:1, downSkinName:1, trackSkinName:1};
static var mergedClipParameters = Fuel.core.FuelUI.mergeClipParameters(Fuel.controls.scrollClasses.ScrollBar.prototype.clipParameters, Fuel.core.FuelUI.prototype.clipParameters);
}
Symbol 135 MovieClip [__Packages.Fuel.controls.TextScroller] Frame 0
class Fuel.controls.TextScroller extends Fuel.controls.scrollClasses.ScrollBar
{
var __target, owner, doLater, _visible;
function TextScroller () {
super();
}
function set scrollTarget(target) {
var _local1 = this;
_local1.__target.removeListener(_local1);
_local1.__target.unwatch("text");
_local1.__target.unwatch("htmlText");
_local1.__target = target;
_local1.__target.owner = _local1;
_local1.__target.watch("text", _local1.textChanged);
_local1.__target.watch("htmlText", _local1.textChanged);
_local1.__target.addListener(_local1);
_local1.onTextChange();
//return(_local1.__get__scrollTarget());
}
function get scrollTarget() {
return(__target);
}
function FTextScrollBar() {
}
function textChanged(prop, oldVal, newval) {
owner.doLater(owner, "onTextChange");
return(newval);
}
function onTextChange() {
var _local1 = this;
if ((_local1.__target == undefined) || (_local1.__target.text.length == 0)) {
_local1._visible = false;
} else if (_local1.__target._height < _local1.__target.textHeight) {
_local1._visible = true;
_local1.adjustScrollBars();
} else {
_local1._visible = false;
}
_local1.dispatchEvent({target:_local1, type:"change", details:"text"});
}
function init() {
super.init();
}
function draw() {
var _local1 = this;
super.draw();
if (_local1.__target._height > _local1.__target.textHeight) {
_local1._visible = false;
} else {
_local1._visible = true;
}
_local1.size();
}
function size() {
super.size();
}
function scrollIt(type, percent) {
var _local1 = this;
switch (type) {
case "bar" :
_local1.__target.removeListener(_local1);
_local1.__target.scroll = Math.round(percent * _local1.__target.maxscroll);
return;
case "line" :
_local1.__target.scroll = Math.round(_local1.__target.scroll + percent);
_local1.adjustScrollBars();
}
}
function adjustScrollBars() {
var _local1 = this;
if (_local1.__target._height < _local1.__target.textHeight) {
_local1.barSkin.resize(_local1.__target.textHeight);
}
if (_local1.__target.scroll == 1) {
_local1.barSkin._y = _local1.miny;
} else if (_local1.__target.scroll == _local1.__target.maxscroll) {
_local1.barSkin._y = _local1.maxy;
} else {
_local1.barSkin._y = ((_local1.__target.scroll / _local1.__target.maxscroll) * (_local1.maxy - _local1.miny)) + _local1.miny;
}
}
function stopScroll() {
__target.addListener(this);
}
function onChanged() {
onTextChange();
}
function onScroller() {
doLater(this, "adjustScrollBars");
}
function setVisible(val) {
if (val) {
_visible = true;
} else {
_visible = false;
}
}
var clipParameters = {thumbResize:1, barSkinName:1, upSkinName:1, downSkinName:1, trackSkinName:1};
static var mergedClipParameters = Fuel.core.FuelUI.mergeClipParameters(Fuel.controls.TextScroller.prototype.clipParameters, Fuel.controls.scrollClasses.ScrollBar.prototype.clipParameters);
}
Symbol 152 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 153 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
//var _local1 = this;
var _local2 = o;
_local2.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
var _local1 = this;
if (_local1._tf == undefined) {
_local1._tf = new TextFormat();
}
_local1._tf.align = x;
});
_local2.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
var _local1 = this;
if (_local1._tf == undefined) {
_local1._tf = new TextFormat();
}
_local1._tf.bold = x == "bold";
});
if (bColor) {
_local2.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
var _local1 = this;
if (_local1._tf == undefined) {
_local1._tf = new TextFormat();
}
_local1._tf.color = x;
});
}
_local2.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
var _local1 = this;
if (_local1._tf == undefined) {
_local1._tf = new TextFormat();
}
_local1._tf.font = x;
});
_local2.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
var _local1 = this;
if (_local1._tf == undefined) {
_local1._tf = new TextFormat();
}
_local1._tf.indent = x;
});
_local2.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
var _local1 = this;
if (_local1._tf == undefined) {
_local1._tf = new TextFormat();
}
_local1._tf.italic = x == "italic";
});
_local2.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
var _local1 = this;
if (_local1._tf == undefined) {
_local1._tf = new TextFormat();
}
_local1._tf.leftMargin = x;
});
_local2.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
var _local1 = this;
if (_local1._tf == undefined) {
_local1._tf = new TextFormat();
}
_local1._tf.rightMargin = x;
});
_local2.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
var _local1 = this;
if (_local1._tf == undefined) {
_local1._tf = new TextFormat();
}
_local1._tf.size = x;
});
_local2.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
var _local1 = this;
if (_local1._tf == undefined) {
_local1._tf = new TextFormat();
}
_local1._tf.underline = x == "underline";
});
_local2.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
var _local1 = this;
if (_local1._tf == undefined) {
_local1._tf = new TextFormat();
}
_local1._tf.embedFonts = x;
});
}
}
Symbol 154 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 155 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local3 = tf;
var bUndefined = false;
if (_tf != undefined) {
var _local1;
for (_local1 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local1])) {
if (_local3[_local1] == undefined) {
var _local2 = _tf[_local1];
if (_local2 != undefined) {
_local3[_local1] = _local2;
} else {
bUndefined = true;
}
}
}
}
} else {
bUndefined = true;
}
return(bUndefined);
}
function getStyle(styleProp) {
var _local1 = this[styleProp];
var _local2 = mx.styles.StyleManager.getColorName(_local1);
if (_local2 != undefined) {
return(_local2);
}
return(_local1);
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 156 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _minHeight, _minWidth, _visible, _xscale, _yscale, onEnterFrame, methodTable, attachMovie, idNames, childrenCreated, className, ignoreClassStyleDeclaration, styleName, stylecache, _parent;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
var _local1 = this;
return(_local1._parent.width - (_local1._x + _local1.__get__width()));
}
function get bottom() {
var _local1 = this;
return(_local1._parent.height - (_local1._y + _local1.__get__height()));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
var _local1 = this;
var _local2 = x;
if (_local2 != _local1._visible) {
_local1._visible = _local2;
if (noEvent != true) {
_local1.dispatchEvent({type:(_local2 ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
var _local1 = this;
if (_local1.methodTable == undefined) {
_local1.methodTable = new Array();
}
_local1.methodTable.push({obj:obj, fn:fn});
_local1.onEnterFrame = _local1.doLaterDispatcher;
}
function doLaterDispatcher(Void) {
var _local3 = this;
delete _local3.onEnterFrame;
if (_local3.invalidateFlag) {
_local3.redraw();
}
var _local2 = _local3.methodTable;
_local3.methodTable = new Array();
if (_local2.length > 0) {
var _local1;
while (_local1 = _local2.shift() , _local1 != undefined) {
_local1.obj[_local1.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
var _local1 = this;
_local1.invalidateFlag = true;
_local1.onEnterFrame = _local1.doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
var _local1 = this;
if (_local1.invalidateFlag || (bAlways)) {
_local1.invalidateFlag = false;
var _local2;
for (_local2 in _local1.tfList) {
_local1.tfList[_local2].draw();
}
_local1.draw();
_local1.dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local1 = this;
var oldX = _local1._x;
var oldY = _local1._y;
_local1._x = x;
_local1._y = y;
if (noEvent != true) {
_local1.dispatchEvent({type:"move", oldX:oldX, oldY:oldY});
}
}
function setSize(w, h, noEvent) {
var _local1 = this;
var oldWidth = _local1.__width;
var oldHeight = _local1.__height;
_local1.__width = w;
_local1.__height = h;
_local1.size();
if (noEvent != true) {
_local1.dispatchEvent({type:"resize", oldWidth:oldWidth, oldHeight:oldHeight});
}
}
function size(Void) {
var _local1 = this;
_local1._width = _local1.__width;
_local1._height = _local1.__height;
}
function drawRect(x1, y1, x2, y2) {
var _local1 = this;
var _local2 = y1;
var _local3 = x1;
_local1.moveTo(_local3, _local2);
_local1.lineTo(x2, _local2);
_local1.lineTo(x2, y2);
_local1.lineTo(_local3, y2);
_local1.lineTo(_local3, _local2);
}
function createLabel(name, depth, text) {
var _local2 = this;
var _local3 = name;
_local2.createTextField(_local3, depth, 0, 0, 0, 0);
var _local1 = _local2[_local3];
_local1._color = textColorList;
_local1._visible = false;
_local1.__text = text;
if (_local2.tfList == undefined) {
_local2.tfList = new Object();
}
_local2.tfList[_local3] = _local1;
_local1.invalidateStyle();
_local2.invalidate();
_local1.styleName = _local2;
return(_local1);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local1 = className;
var _local2 = _local1.symbolName == undefined;
if (_local2) {
Object.registerClass(_local1.symbolOwner.symbolName, _local1);
}
var _local3 = createObject(_local1.symbolOwner.symbolName, id, depth, initobj);
if (_local2) {
Object.registerClass(_local1.symbolOwner.symbolName, _local1.symbolOwner);
}
return(_local3);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this;
var _local1 = _local2[id];
if (_local1.getDepth() < 0) {
var dt = _local2.buildDepthTable();
var i = _local2.findNextAvailableDepth(0, dt, "up");
var _local3 = i;
_local1.swapDepths(_local3);
}
_local1.removeMovieClip();
delete _local2[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
var _local1 = linkageName;
if (_global.skinRegistry[_local1] == undefined) {
mx.skins.SkinElement.registerElement(_local1, mx.skins.SkinElement);
}
return(createObject(_local1, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = this;
var _local1 = _local2.getSkinIDName(tag);
_local2.createEmptyObject(_local1, tag);
return(_local2[_local1]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
var _local1 = this;
if (_local1._name == undefined) {
} else {
_local1.init();
_local1._createChildren();
_local1.createAccessibilityImplementation();
_local1._endInit();
if (_local1.validateNow) {
_local1.redraw(true);
} else {
_local1.invalidate();
}
}
}
function initFromClipParameters(Void) {
var _local2 = this;
var bFound = false;
var _local1;
for (_local1 in _local2.clipParameters) {
if (_local2.hasOwnProperty(_local1)) {
bFound = true;
_local2["def_" + _local1] = _local2[_local1];
delete _local2[_local1];
}
}
if (bFound) {
for (_local1 in _local2.clipParameters) {
var _local3 = _local2["def_" + _local1];
if (_local3 != undefined) {
_local2[_local1] = _local3;
}
}
}
}
function init(Void) {
var _local1 = this;
_local1.__width = _local1._width;
_local1.__height = _local1._height;
if (_local1.initProperties == undefined) {
_local1.initFromClipParameters();
} else {
_local1.initProperties();
}
if (_global.cascadingStyles == true) {
_local1.stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local3 = _global;
var _local2 = this;
var _local1 = className;
while (_local1 != undefined) {
if (ignoreClassStyleDeclaration[_local1] == undefined) {
if (_local3.styles[_local1] != undefined) {
return(_local3.styles[_local1]);
}
}
_local2 = _local2.__proto__;
_local1 = _local2.className;
}
return(undefined);
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local2 = this;
var _local3 = tf;
var o = _local2.stylecache.tf;
if (o != undefined) {
var _local1;
for (_local1 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local1])) {
if (_local3[_local1] == undefined) {
_local3[_local1] = o[_local1];
}
}
}
return(false);
}
var bUndefined = false;
for (var _local1 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local1])) {
if (_local3[_local1] == undefined) {
var v = _local2._tf[_local1];
if (v != undefined) {
_local3[_local1] = v;
} else if ((_local1 == "font") && (_local2.fontFamily != undefined)) {
_local3[_local1] = _local2.fontFamily;
} else if ((_local1 == "size") && (_local2.fontSize != undefined)) {
_local3[_local1] = _local2.fontSize;
} else if ((_local1 == "color") && (_local2.color != undefined)) {
_local3[_local1] = _local2.color;
} else if ((_local1 == "leftMargin") && (_local2.marginLeft != undefined)) {
_local3[_local1] = _local2.marginLeft;
} else if ((_local1 == "rightMargin") && (_local2.marginRight != undefined)) {
_local3[_local1] = _local2.marginRight;
} else if ((_local1 == "italic") && (_local2.fontStyle != undefined)) {
_local3[_local1] = _local2.fontStyle == _local1;
} else if ((_local1 == "bold") && (_local2.fontWeight != undefined)) {
_local3[_local1] = _local2.fontWeight == _local1;
} else if ((_local1 == "align") && (_local2.textAlign != undefined)) {
_local3[_local1] = _local2.textAlign;
} else if ((_local1 == "indent") && (_local2.textIndent != undefined)) {
_local3[_local1] = _local2.textIndent;
} else if ((_local1 == "underline") && (_local2.textDecoration != undefined)) {
_local3[_local1] = _local2.textDecoration == _local1;
} else if ((_local1 == "embedFonts") && (_local2.embedFonts != undefined)) {
_local3[_local1] = _local2.embedFonts;
} else {
bUndefined = true;
}
}
}
}
if (bUndefined) {
var name = _local2.styleName;
if (name != undefined) {
if (typeof(name) != "string") {
bUndefined = name.__getTextFormat(_local3, true, _local2);
} else if (_global.styles[name] != undefined) {
bUndefined = _global.styles[name].__getTextFormat(_local3, true, _local2);
}
}
}
if (bUndefined) {
var ss = _local2.getClassStyleDeclaration();
if (ss != undefined) {
bUndefined = ss.__getTextFormat(_local3, true, _local2);
}
}
if (bUndefined) {
if (_global.cascadingStyles) {
if (_local2._parent != undefined) {
bUndefined = _local2._parent.__getTextFormat(_local3, false);
}
}
}
if (bUndefined) {
bUndefined = _global.style.__getTextFormat(_local3, true, _local2);
}
return(bUndefined);
}
function _getTextFormat(Void) {
var _local2 = this;
var _local1 = _local2.stylecache.tf;
if (_local1 != undefined) {
return(_local1);
}
_local1 = new TextFormat();
_local2.__getTextFormat(_local1, true);
_local2.stylecache.tf = _local1;
if (_local2.enabled == false) {
var _local3 = _local2.getStyle("disabledColor");
_local1.color = _local3;
}
return(_local1);
}
function getStyleName(Void) {
var _local2 = this;
var _local1 = _local2.styleName;
if (_local1 != undefined) {
if (typeof(_local1) != "string") {
return(_local1.getStyleName());
}
return(_local1);
}
if (_local2._parent != undefined) {
return(_local2._parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local2 = styleProp;
var _local1;
_global.getStyleCounter++;
if (this[_local2] != undefined) {
return(this[_local2]);
}
var name = styleName;
if (name != undefined) {
if (typeof(name) != "string") {
_local1 = name.getStyle(_local2);
} else {
var ss = _global.styles[name];
_local1 = ss.getStyle(_local2);
}
}
if (_local1 != undefined) {
return(_local1);
}
var ss = getClassStyleDeclaration();
if (ss != undefined) {
_local1 = ss[_local2];
}
if (_local1 != undefined) {
return(_local1);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(_local2) || (mx.styles.StyleManager.isColorStyle(_local2))) {
var _local3 = stylecache;
if (_local3 != undefined) {
if (_local3[_local2] != undefined) {
return(_local3[_local2]);
}
}
if (_parent != undefined) {
_local1 = _parent.getStyle(_local2);
} else {
_local1 = _global.style[_local2];
}
if (_local3 != undefined) {
_local3[_local2] = _local1;
}
return(_local1);
}
}
if (_local1 == undefined) {
_local1 = _global.style[_local2];
}
return(_local1);
}
static function mergeClipParameters(o, p) {
var _local1 = p;
var _local2 = o;
for (var _local3 in _local1) {
_local2[_local3] = _local1[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.0.377";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 157 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, dispatchEvent;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
var _local1 = this;
_local1.setEnabled(newValue);
_local1.invalidate();
delete _local1.stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local1 = this;
while (_local1 != undefined) {
if (_local1.focusManager != undefined) {
return(_local1.focusManager);
}
_local1 = _local1._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
var _local1 = this;
_local1.removeEventListener("keyDown", _local1);
_local1.removeEventListener("keyUp", _local1);
_local1.dispatchEvent({type:"focusOut"});
_local1.drawFocus(false);
}
function onSetFocus(oldFocus) {
var _local1 = this;
_local1.addEventListener("keyDown", _local1);
_local1.addEventListener("keyUp", _local1);
_local1.dispatchEvent({type:"focusIn"});
if (_local1.getFocusManager().bDrawFocus != false) {
_local1.drawFocus(true);
}
}
function findFocusInChildren(o) {
var _local1 = o;
if (_local1.focusTextField != undefined) {
return(_local1.focusTextField);
}
if (_local1.tabEnabled == true) {
return(_local1);
}
return(undefined);
}
function findFocusFromObject(o) {
var _local1 = o;
if (_local1.tabEnabled != true) {
if (_local1._parent == undefined) {
return(undefined);
}
if (_local1._parent.tabEnabled == true) {
_local1 = _local1._parent;
} else if (_local1._parent.tabChildren) {
_local1 = findFocusInChildren(_local1._parent);
} else {
_local1 = findFocusFromObject(_local1._parent);
}
}
return(_local1);
}
function pressFocus() {
var _local3 = this;
var _local2 = _local3.findFocusFromObject(_local3);
var _local1 = _local3.getFocus();
if (_local2 != _local1) {
_local1.drawFocus(false);
if (_local3.getFocusManager().bDrawFocus != false) {
_local2.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = this;
var _local1 = _local2.findFocusFromObject(_local2);
if (_local1 != _local2.getFocus()) {
_local1.setFocus();
}
}
function isParent(o) {
var _local1 = o;
var _local2 = this;
while (_local1 != undefined) {
if (_local1 == _local2) {
return(true);
}
_local1 = _local1._parent;
}
return(false);
}
function size() {
}
function init() {
var _local1 = this;
super.init();
_local1._xscale = 100;
_local1._yscale = 100;
_local1._focusrect = _global.useFocusRect == false;
_local1.watch("enabled", _local1.enabledChanged);
if (_local1.enabled == false) {
_local1.setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.0.377";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 158 MovieClip [__Packages.Fuel.Component.ScrollThumb] Frame 0
class Fuel.Component.ScrollThumb extends mx.core.UIComponent
{
var __trackHeight, __thumbHeight, bottom_mc, top_mc, gripper_mc, middleTop_mc, middleBottom_mc, _parent;
function ScrollThumb () {
super();
}
function set trackHeight(h) {
__trackHeight = h;
//return(trackHeight);
}
function get trackHeight() {
return(__trackHeight);
}
function init() {
super.init();
}
function draw() {
size();
}
function size() {
if (__thumbHeight != undefined) {
var _local3 = __thumbHeight - ((gripper_mc._height + top_mc._height) + bottom_mc._height);
var _local2 = Math.round(_local3 / 2);
middleTop_mc._height = _local2;
middleBottom_mc._height = _local2;
}
doLayout();
}
function doLayout() {
top_mc._y = 0;
middleTop_mc._y = top_mc._y + top_mc._height;
gripper_mc._y = middleTop_mc._y + middleTop_mc._height;
middleBottom_mc._y = gripper_mc._y + gripper_mc._height;
bottom_mc._y = middleBottom_mc._y + middleBottom_mc._height;
_parent.initProperties();
}
function resize(h, th) {
if (th == undefined) {
var _local2 = h / __trackHeight;
} else {
var _local2 = h / th;
}
__thumbHeight = Math.round(__trackHeight / _local2);
draw();
}
static var symbolOwner = mx.core.UIComponent;
var className = "ScrollThumb";
}
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 19
if (this._parent.__selected) {
stop();
} else {
this.gotoAndPlay(2);
}
Symbol 45 MovieClip [dev_mc] Frame 1
#initclip 46
Object.registerClass("dev_mc", com.megablocks.fireandice.controls.CharacterButton);
#endinitclip
stop();
Symbol 52 MovieClip [continue_mc] Frame 1
#initclip 39
Object.registerClass("continue_mc", Fuel.controls.SimpleButton);
#endinitclip
stop();
Symbol 66 MovieClip [kyra_mc] Frame 1
#initclip 40
Object.registerClass("kyra_mc", com.megablocks.fireandice.controls.CharacterButton);
#endinitclip
stop();
Symbol 77 MovieClip [scrollArrow_mc] Frame 1
#initclip 41
Object.registerClass("scrollArrow_mc", Fuel.controls.SimpleButton);
#endinitclip
stop();
Symbol 82 MovieClip [scrollDown_mc] Frame 1
#initclip 42
Object.registerClass("scrollDown_mc", Fuel.controls.SimpleButton);
#endinitclip
stop();
Symbol 94 MovieClip [smallCement_mc] Frame 1
#initclip 43
Object.registerClass("smallCement_mc", com.megablocks.fireandice.controls.DropShadowButton);
#endinitclip
stop();
Symbol 98 MovieClip [leaderboardItem_mc] Frame 1
#initclip 44
Object.registerClass("leaderboardItem_mc", com.megablocks.fireandice.leaderboard.LeaderBoardItem);
#endinitclip
Symbol 99 MovieClip [leaderboardWindow_mc] Frame 1
#initclip 45
Object.registerClass("leaderboardWindow_mc", com.megablocks.fireandice.leaderboard.LeaderBoardWindow);
#endinitclip
this.changeCourse();
stop();
Instance of Symbol 77 MovieClip [scrollArrow_mc] "up_mc" in Symbol 99 MovieClip [leaderboardWindow_mc] Frame 1
on (press) {
this._parent.scrollUp();
}
on (release) {
this._parent.stopScroll();
}
Instance of Symbol 82 MovieClip [scrollDown_mc] "down_mc" in Symbol 99 MovieClip [leaderboardWindow_mc] Frame 1
on (press) {
this._parent.scrollDown();
}
on (release) {
this._parent.stopScroll();
}
Instance of Symbol 94 MovieClip [smallCement_mc] "last_btn" in Symbol 99 MovieClip [leaderboardWindow_mc] Frame 1
//component parameters
onClipEvent (initialize) {
enabled = true;
label = "LAST 50";
selected = false;
}
on (release) {
this._parent.last();
}
Instance of Symbol 94 MovieClip [smallCement_mc] "next_btn" in Symbol 99 MovieClip [leaderboardWindow_mc] Frame 1
//component parameters
onClipEvent (initialize) {
enabled = true;
label = "NEXT 50";
selected = false;
}
on (release) {
this._parent.next();
}
Symbol 100 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 19
this.gotoAndPlay(1);
Symbol 120 MovieClip [play_mc] Frame 1
#initclip 55
Object.registerClass("play_mc", Fuel.controls.SimpleButton);
#endinitclip
stop();
Symbol 127 MovieClip [instructionsTab_mc] Frame 1
#initclip 52
Object.registerClass("instructionsTab_mc", Fuel.controls.SimpleButton);
#endinitclip
stop();
Symbol 130 MovieClip [controlsTab_mc] Frame 1
#initclip 53
Object.registerClass("controlsTab_mc", Fuel.controls.SimpleButton);
#endinitclip
stop();
Symbol 140 MovieClip [barSkin] Frame 1
#initclip 47
Object.registerClass("barSkin", Fuel.Component.ScrollThumb);
#endinitclip
Symbol 143 MovieClip [downSkin] Frame 1
#initclip 48
Object.registerClass("downSkin", Fuel.controls.SimpleButton);
#endinitclip
stop();
Symbol 143 MovieClip [downSkin] Frame 2
stop();
Symbol 143 MovieClip [downSkin] Frame 3
stop();
Symbol 148 MovieClip [upSkin] Frame 1
#initclip 49
Object.registerClass("upSkin", Fuel.controls.SimpleButton);
#endinitclip
stop();
Symbol 148 MovieClip [upSkin] Frame 2
stop();
Symbol 148 MovieClip [upSkin] Frame 3
stop();
Symbol 149 MovieClip [ScrollBar_fuel] Frame 1
#initclip 50
Object.registerClass("ScrollBar_fuel", Fuel.controls.scrollClasses.ScrollBar);
#endinitclip
stop();
Symbol 150 MovieClip [TextScroller] Frame 1
#initclip 51
Object.registerClass("TextScroller", Fuel.controls.TextScroller);
#endinitclip
stop();
Instance of Symbol 149 MovieClip [ScrollBar_fuel] in Symbol 150 MovieClip [TextScroller] Frame 1
//component parameters
onClipEvent (initialize) {
barSkinName = "";
downSkinName = "downSkin";
enabled = true;
thumbResize = true;
trackSkinName = "trackSkin";
upSkinName = "upSkin";
}
Symbol 162 MovieClip Frame 1
this.controlsTab_mc.enabled = false;
this.instructionsTab_mc.enabled = true;
stop();
Instance of Symbol 127 MovieClip [instructionsTab_mc] "instructionsTab_mc" in Symbol 162 MovieClip Frame 1
on (release) {
this._parent.gotoAndStop("help");
}
Symbol 162 MovieClip Frame 2
this.controlsTab_mc.enabled = true;
this.instructionsTab_mc.enabled = false;
scrollbar.scrollTarget = help_txt;
help_txt.htmlText = _global.HELP_TEXT;
Instance of Symbol 150 MovieClip [TextScroller] "scrollbar" in Symbol 162 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
barSkinName = "";
downSkinName = "downSkin";
enabled = true;
thumbResize = true;
trackSkinName = "trackSkin";
upSkinName = "upSkin";
}
Instance of Symbol 130 MovieClip [controlsTab_mc] "controlsTab_mc" in Symbol 162 MovieClip Frame 2
on (release) {
this._parent.gotoAndStop("controls");
}
Symbol 167 MovieClip [back_mc] Frame 1
#initclip 54
Object.registerClass("back_mc", Fuel.controls.SimpleButton);
#endinitclip
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 2
play();
Symbol 189 MovieClip Frame 5
var bt = this.bg_mc.getBytesTotal();
var bl = this.bg_mc.getBytesLoaded();
trace((bl + " , ") + bt);
if ((bt > 4) && (bl >= bt)) {
} else {
this.bg_mc.unloadMovie();
}
Symbol 189 MovieClip Frame 25
siteRoot.loadGameLevel(this._parent.level);
stop();
Symbol 204 MovieClip Frame 1
function loadBg(level) {
var _local1 = level;
siteRoot.level_mc.levelBackground_mc.bg_mc.loadMovie(((_global.baseurl + "levelimages/level") + (_local1 + 1)) + ".jpg");
siteRoot.levelTemp_mc.loadMovie(((_global.baseurl + "levelimages/level") + (_local1 + 2)) + ".jpg");
fTrace(("bg = levelimages/level" + (_local1 + 1)) + ".jpg");
fTrace(("temp = levelimages/level" + (_local1 + 2)) + ".jpg");
fTrace("level = " + _local1);
siteRoot.level_mc.levelBackground_mc.gotoAndPlay(2);
this.level = _local1;
}
var level = null;
stop();
Symbol 204 MovieClip Frame 2
siteRoot.levelTemp_mc.loadMovie(((_global.baseurl + "levelimages/level") + 2) + ".jpg");
var txt = _global.LEVELTEXT_ARRAY[1];
win_mc.title_txt.text = txt.title;
win_mc.content_txt.text = txt.content;
siteRoot.loadGameLevel(0);
stop();
Symbol 204 MovieClip Frame 3
var txt = _global.LEVELTEXT_ARRAY[2];
title_txt.text = txt.title;
content_txt.text = txt.content;
trace("TEXT");
trace(txt.title);
trace(txt.content);
siteRoot.loadGameLevel(1);
this.loadBg(1);
Symbol 204 MovieClip Frame 4
var txt = _global.LEVELTEXT_ARRAY[3];
win_mc.title_txt.text = txt.title;
win_mc.content_txt.text = txt.content;
this.loadBg(2);
Symbol 204 MovieClip Frame 5
var txt = _global.LEVELTEXT_ARRAY[4];
win_mc.title_txt.text = txt.title;
win_mc.content_txt.text = txt.content;
this.loadBg(3);
Symbol 204 MovieClip Frame 6
var txt = _global.LEVELTEXT_ARRAY[5];
win_mc.title_txt.text = txt.title;
win_mc.content_txt.text = txt.content;
this.loadBg(4);
Symbol 204 MovieClip Frame 7
var txt = _global.LEVELTEXT_ARRAY[6];
win_mc.title_txt.text = txt.title;
win_mc.content_txt.text = txt.content;
this.loadBg(5);
Symbol 204 MovieClip Frame 8
this._parent.preloader2_mc._visible = false;
var txt = _global.LEVELTEXT_ARRAY[7];
win_mc.title_txt.text = txt.title;
win_mc.content_txt.text = txt.content;
this.loadBg(7);
Instance of Symbol 52 MovieClip [continue_mc] in Symbol 204 MovieClip Frame 8
on (release) {
siteRoot.gotoAndStop("showscore");
siteRoot.titles_mc.gotoAndStop("win");
}
Symbol 204 MovieClip Frame 9
this._parent.preloader2_mc._visible = false;
var txt = _global.POPUPTEXT_ARRAY[_global.ui.character][10];
win_mc.title_txt.text = txt.title;
win_mc.content_txt.text = txt.content;
Instance of Symbol 52 MovieClip [continue_mc] in Symbol 204 MovieClip Frame 9
on (release) {
siteRoot.changeSection("level" + (_global.ui.level + 1));
siteRoot.play2_mc._visible = false;
showStatue();
}
Symbol 215 MovieClip Frame 1
stop();
Symbol 242 MovieClip [mapCrystal_mc] Frame 1
stop();
Symbol 242 MovieClip [mapCrystal_mc] Frame 41
gotoAndPlay (2);
Symbol 254 MovieClip [crystalUI_mc] Frame 1
#initclip 72
Object.registerClass("crystalUI_mc", com.megablocks.fireandice.controls.UIItem);
#endinitclip
Symbol 255 MovieClip [map_mc] Frame 1
#initclip 56
Object.registerClass("map_mc", com.megablocks.fireandice.controls.MapLevel);
#endinitclip
stop();
Symbol 276 MovieClip Frame 1
stop();
Symbol 279 MovieClip [score_mc] Frame 1
#initclip 57
Object.registerClass("score_mc", com.megablocks.fireandice.controls.Score);
#endinitclip
Symbol 289 MovieClip [lifeMeter_mc] Frame 1
#initclip 58
Object.registerClass("lifeMeter_mc", com.megablocks.fireandice.controls.PowerBar);
#endinitclip
Symbol 292 MovieClip [powerMeter_mc] Frame 1
#initclip 59
Object.registerClass("powerMeter_mc", com.megablocks.fireandice.controls.PowerBar);
#endinitclip
Symbol 296 MovieClip [uiPowerMeters_mc] Frame 1
#initclip 60
Object.registerClass("uiPowerMeters_mc", com.megablocks.fireandice.containers.UIMeters);
#endinitclip
Symbol 302 MovieClip [sword_mc] Frame 1
#initclip 61
Object.registerClass("sword_mc", com.megablocks.fireandice.controls.InventoryItem);
#endinitclip
stop();
Symbol 302 MovieClip [sword_mc] Frame 2
stop();
Symbol 302 MovieClip [sword_mc] Frame 3
stop();
Symbol 302 MovieClip [sword_mc] Frame 4
stop();
Symbol 308 MovieClip [key_mc] Frame 1
#initclip 62
Object.registerClass("key_mc", com.megablocks.fireandice.controls.InventoryItem);
#endinitclip
stop();
Symbol 308 MovieClip [key_mc] Frame 2
stop();
Symbol 308 MovieClip [key_mc] Frame 3
stop();
Symbol 308 MovieClip [key_mc] Frame 4
stop();
Symbol 314 MovieClip [axe_mc] Frame 1
#initclip 63
Object.registerClass("axe_mc", com.megablocks.fireandice.controls.InventoryItem);
#endinitclip
stop();
Symbol 314 MovieClip [axe_mc] Frame 2
stop();
Symbol 314 MovieClip [axe_mc] Frame 3
stop();
Symbol 314 MovieClip [axe_mc] Frame 4
stop();
Symbol 319 MovieClip [fire_mc] Frame 1
#initclip 64
Object.registerClass("fire_mc", com.megablocks.fireandice.controls.InventoryItem);
#endinitclip
stop();
Symbol 319 MovieClip [fire_mc] Frame 2
stop();
Symbol 319 MovieClip [fire_mc] Frame 3
stop();
Symbol 319 MovieClip [fire_mc] Frame 4
stop();
Instance of Symbol 302 MovieClip [sword_mc] "hand_mc" in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
data = "";
enabled = false;
groupName = "inventoryItem";
label = "";
selected = false;
}
Instance of Symbol 308 MovieClip [key_mc] "key_mc" in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
data = "";
enabled = false;
groupName = "inventoryItem";
label = "";
selected = false;
}
Instance of Symbol 314 MovieClip [axe_mc] "throw_mc" in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
data = "";
enabled = false;
groupName = "inventoryItem";
label = "";
selected = false;
}
Instance of Symbol 319 MovieClip [fire_mc] "special_mc" in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
data = "";
enabled = false;
groupName = "inventoryItem";
label = "";
selected = false;
}
Symbol 325 MovieClip [sai_mc] Frame 1
#initclip 65
Object.registerClass("sai_mc", com.megablocks.fireandice.controls.InventoryItem);
#endinitclip
stop();
Symbol 325 MovieClip [sai_mc] Frame 2
stop();
Symbol 325 MovieClip [sai_mc] Frame 3
stop();
Symbol 325 MovieClip [sai_mc] Frame 4
stop();
Symbol 330 MovieClip [spear_mc] Frame 1
#initclip 66
Object.registerClass("spear_mc", com.megablocks.fireandice.controls.InventoryItem);
#endinitclip
stop();
Symbol 330 MovieClip [spear_mc] Frame 2
stop();
Symbol 330 MovieClip [spear_mc] Frame 3
stop();
Symbol 330 MovieClip [spear_mc] Frame 4
stop();
Symbol 335 MovieClip [wind_mc] Frame 1
#initclip 67
Object.registerClass("wind_mc", com.megablocks.fireandice.controls.InventoryItem);
#endinitclip
stop();
Symbol 335 MovieClip [wind_mc] Frame 2
stop();
Symbol 335 MovieClip [wind_mc] Frame 3
stop();
Symbol 335 MovieClip [wind_mc] Frame 4
stop();
Instance of Symbol 325 MovieClip [sai_mc] "throw_mc" in Symbol 336 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
data = "";
enabled = false;
groupName = "groupName";
label = "";
selected = false;
}
Instance of Symbol 330 MovieClip [spear_mc] "hand_mc" in Symbol 336 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
data = "";
enabled = false;
groupName = "groupName";
label = "";
selected = false;
}
Instance of Symbol 308 MovieClip [key_mc] "key_mc" in Symbol 336 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
data = "";
enabled = false;
groupName = "groupName";
label = "";
selected = false;
}
Instance of Symbol 335 MovieClip [wind_mc] "special_mc" in Symbol 336 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
data = "";
enabled = false;
groupName = "groupName";
label = "";
selected = false;
}
Symbol 339 MovieClip [help_btn] Frame 1
#initclip 68
Object.registerClass("help_btn", Fuel.controls.SimpleButton);
#endinitclip
stop();
Symbol 342 MovieClip [pause_mc] Frame 1
#initclip 69
Object.registerClass("pause_mc", Fuel.controls.SimpleButton);
#endinitclip
stop();
Symbol 346 MovieClip [close_mc] Frame 1
#initclip 70
Object.registerClass("close_mc", Fuel.controls.SimpleButton);
#endinitclip
stop();
Symbol 364 MovieClip [popup_mc] Frame 1
#initclip 71
Object.registerClass("popup_mc", com.megablocks.fireandice.containers.Popup);
#endinitclip
stop();
Instance of Symbol 346 MovieClip [close_mc] "close_mc" in Symbol 364 MovieClip [popup_mc] Frame 1
on (release) {
this._parent.hide();
}
Symbol 382 MovieClip Frame 1
stop();
Symbol 402 MovieClip [save_mc] Frame 1
#initclip 74
Object.registerClass("save_mc", Fuel.controls.SimpleButton);
#endinitclip
stop();
Symbol 403 MovieClip Frame 1
stop();
Symbol 408 MovieClip [saveScoreWindow_mc] Frame 1
#initclip 73
Object.registerClass("saveScoreWindow_mc", com.megablocks.fireandice.containers.SaveScoreWindow);
#endinitclip
stop();
Instance of Symbol 402 MovieClip [save_mc] "save_mc" in Symbol 408 MovieClip [saveScoreWindow_mc] Frame 1
on (release) {
var name = this._parent.name_txt.text;
var score = this._parent.score_txt.text;
this._parent.saveScore(name, score);
}
Symbol 408 MovieClip [saveScoreWindow_mc] Frame 2
siteRoot.showLeaderboard();
this.score_txt.text = this.__score;
this.name_txt.text = this.__name;
Instance of Symbol 52 MovieClip [continue_mc] "continue_mc" in Symbol 408 MovieClip [saveScoreWindow_mc] Frame 2
on (release) {
getURL ("javascript:refreshGame()");
}