Instance of Symbol 330 MovieClip "sounds" in Frame 1
onClipEvent (load) {
function external_Initialize() {
_global.soundPlayer = this;
trace("--------------------------------------------SoundModule external initialize");
addSound("afterdead", "afterdead", "effect");
addSound("btn_default", "btn_default", "effect");
addSound("btn_rollover", "btn_rollover", "effect");
addSound("dead", "dead", "effect");
addSound("donut", "donut", "effect");
addSound("gong", "gong", "effect");
addSound("item_high1", "item_high1", "effect");
addSound("item_high2", "item_high2", "effect");
addSound("item_mid", "item_mid", "effect");
addSound("item_low1", "item_low1", "effect");
addSound("item_low2", "item_low2", "effect");
addSound("item_low3", "item_low3", "effect");
addSound("morph_station", "morph_station", "background");
addSound("btn_startgame", "btn_startgame", "effect");
addSound("stats", "stats", "effect");
addSound("warpspeed", "warpspeed", "effect");
addSound("warp_in", "warp_in", "effect");
addSound("bing", "bing", "effect");
addSound("ohoh", "ohoh", "effect");
setListenerRange(300);
setListenerPos(250, 0);
setSoundstopCallbackFunction(stopCallback, this);
}
function stopCallback(idName, repeat) {
}
function addSound(idName, libName, type, group) {
_addSound(idName, libName, type, group);
}
function playSound(idName, x, y, keepTrack) {
trace("playsound idname: " + idName);
_playSound(idName, x, y, keepTrack);
}
function stopSound(idName) {
_stopSound(idName);
}
function mute() {
_muteSounds();
}
function unMute() {
_unMuteSounds();
}
function setVol(name, value) {
_setVolumeVal(name, value);
}
function soundFade(name, destinationVolume, timeToUseMS) {
_soundFade(name, destinationVolume, timeToUseMS);
}
function setListenerPos(x, y) {
_setListenerPos(x, y);
}
function setListenerRange(range) {
_setListenerRange(range);
}
function setSoundPos(name, x, y) {
_setSoundPos(name, x, y);
}
function setSoundstopCallbackFunction(func, scope) {
_setSoundstopCallbackFunction(func, scope);
}
if (typeof(_parent.soundModuleLoaded) == "undefined") {
_parent.soundModuleLoaded = true;
loadMovie ("soundmodule.swf", this);
}
}
Instance of Symbol 334 MovieClip "preload" in Frame 3
onClipEvent (load) {
function addToPreloadQueue(mc, options) {
trace(((">>PRELOAD: Add to preload queue: mc" + mc) + " options: ") + options.toString());
if (typeof(mc) != "movieclip") {
trace(">>PRELOAD ERROR ERROR!!! MC is not a movieclip!");
return(undefined);
}
var obj = new o_loadObject(mc);
if (isDefined(options.loadFromFile)) {
obj.loadFromFile = options.loadFromFile;
if (obj.loadFromFile) {
if (!isDefined(options.fileUrl)) {
trace("ERROR IN PRELOADER:: fileUrl not defined for : " + obj.mc);
return(undefined);
}
obj.fileUrl = options.fileUrl;
}
}
if (isDefined(options.responseMode)) {
obj.responseMode = options.responseMode;
if (obj.responseMode == "callback") {
if (!isDefined(options.destCallbackFunc)) {
trace("ERROR IN PRELOADER:: destCallbackFunc not defined for : " + obj.mc);
return(undefined);
}
obj.destCallbackFunc = options.destCallbackFunc;
trace("typeof(obj.destCallbackFunc ):: " + typeof(obj.destCallbackFunc));
}
}
if (isDefined(options.destFrameLabel)) {
obj.destFrameLabel = options.destFrameLabel;
}
if (isDefined(options.destJumpMc)) {
obj.destJumpMc = options.destJumpMc;
}
if (isDefined(options.displayMode)) {
obj.displayMode = options.displayMode;
}
if (isDefined(options.scaleVecX)) {
obj.scaleVecX = options.scaleVecX;
}
if (isDefined(options.scaleVecY)) {
obj.scaleVecY = options.scaleVecY;
}
if (isDefined(options.triggerAtPercentage)) {
obj.triggerAtPercentage = options.triggerAtPercentage;
}
if (isDefined(options.showAsFull)) {
obj.showAsFull = options.showAsFull;
}
if (isDefined(options.txt)) {
obj.txt = options.txt;
}
obj.ignoreFrames = 2;
preloads.push(obj);
if (!_visible) {
visCount = 10;
}
if (!loading) {
startPreload(obj);
}
}
function startPreload(obj) {
trace(((">>PRELOAD: starting preload of " + obj.fileUrl) + " in MC ") + obj.mc);
if (obj.loadFromFile) {
loadMovie (obj.fileUrl, obj.mc);
}
pretxt = obj.txt;
loading = true;
debugCount = 0;
}
function dumpCurrent(ident) {
if (preloads.length > 0) {
} else {
trace("ERROR IN PRELOADER.. Found no preload to dump??");
}
}
function preloadDone(obj) {
trace(">>PRELOAD: preloadDone .. responseMode: " + obj.responseMode);
if (obj.responseMode == "callback") {
trace("preload done in callback mode...");
obj.destCallbackFunc();
} else {
trace("typeof(obj.destJumpMC): " + typeof(obj.destJumpMC));
if (typeof(obj.destJumpMC) != "undefined") {
if (obj.responseMode == "play") {
trace(">>PRELOAD: play() to mc " + obj.destJumpMC);
obj.destJumpMC.play();
} else if (obj.responseMode == "stop") {
trace(">>PRELOAD: play() to mc " + obj.destJumpMC);
obj.destJumpMC.stop();
} else if (obj.responseMode == "gotoAndStop") {
trace(((">>PRELOAD: gotoAndStop frame " + obj.destFrameLabel) + " in mc ") + obj.destJumpMC);
obj.destJumpMC.gotoAndStop(obj.destFrameLabel);
} else if (obj.responseMode == "gotoAndPlay") {
trace(((">>PRELOAD: gotoAndPlay frame " + obj.destFrameLabel) + " in mc ") + obj.destJumpMC);
obj.destJumpMC.gotoAndPlay(obj.destFrameLabel);
} else {
trace(">>PRELOAD: ERROR.. BAAAD responseMode ..: " + obj.responseMode);
}
}
}
preloads.splice(0, 1);
if (preloads.length > 0) {
trace(((">>PRELOAD: preload start new " + preloads[0].fileUrl) + " txt:") + preloads[0].mc);
startPreload(preloads[0]);
} else {
_visible = false;
trace(">>PRELOAD: preload done - queue empty");
loading = false;
}
}
function isDefined(val) {
if (((typeof(val) == "undefined") || (val == null)) || (val == "")) {
return(false);
}
return(true);
}
function o_loadObject(mc) {
this.mc = mc;
this.mode = "preload";
this.loadFromFile = false;
this.fileUrl = null;
this.responseMode = "play";
this.destJumpMC = mc;
this.destFrameLabel = "done";
this.destCallbackFunc = null;
this.txt = "Loading...";
this.triggerAtPercentage = 100;
this.showAsFull = false;
this.displayMode = "frames";
this.scaleVecX = 1;
this.scaleVecY = 0;
}
function setGraphics(obj, percent) {
this.frameBar._visible = true;
this.scaleBar._visible = true;
if (obj.displayMode == "frames") {
this.scaleBar._visible = false;
} else if (obj.displayMode == "scale") {
this.frameBar._visible = false;
}
debug = (("dispMode: '" + obj.displayMode) + "' percent: ") + Math.floor(percent);
if (obj.displayMode == "frames") {
this.frameBar.gotoAndStop(percent);
} else if (obj.displayMode == "scale") {
if (obj.scaleVecX != 0) {
this.scaleBar._xscale = obj.scaleVecX * percent;
}
if (obj.scaleVecY != 0) {
this.scaleBar._yscale = obj.scaleVecY * percent;
}
}
}
_global.preload = this;
var preloads = new Array();
var loading = false;
var visCount = 0;
_visible = false;
var id = "coolPreload";
var debugCount = 0;
}
onClipEvent (enterFrame) {
if (preloads.length == 0) {
return(undefined);
}
trace("debugCount:: " + debugCount);
visCount--;
if (visCount <= 0) {
_visible = true;
}
var obj = preloads[0];
if (obj.ignoreFrames > 0) {
obj.ignoreFrames--;
return(undefined);
}
var total = math.max(obj.mc.getBytesTotal(), 200);
var loaded = obj.mc.getBytesLoaded();
var percent = math.floor((loaded / total) * 100);
percent = Math.min(100, Math.max(1, percent));
if (obj.showAsFull) {
var fakePercent = ((percent / obj.triggerAtPercentage) * 100);
percent = Math.min(100, Math.max(1, fakePercent));
}
setGraphics(obj, percent);
if (obj.triggerAtPercentage == 100) {
if (loaded >= (total - 1)) {
preloadDone(obj);
}
} else if (obj.triggerAtPercentage < 100) {
trace(("loading in triggerAtPercentage Mode.. percent:: " + Math.floor(percent)) + "%");
if (obj.showAsFull) {
if (percent >= 99) {
preloadDone(obj);
}
} else if (percent >= (obj.triggerAtPercentage - 1)) {
preloadDone(obj);
}
}
}
Frame 4
system.useCodePage = true;
this._quality = "MEDIUM";
loadVariables ("config.txt", this);
preload.addToPreloadQueue(this);
stop();
langID = "UK";
loadVariables ("language_UK.txt", this);
Instance of Symbol 347 MovieClip "backend" in Frame 8
onClipEvent (load) {
function external_Initialize() {
trace("external_Initialize()..");
_global.backend = this;
TRIADMODE = false;
ARCADEMODE = false;
CALLURL_TIMEOUTMS = 20000;
ALWAYS_REFRESH_AFTER_SUBMIT = true;
DEBUG_PASSWORD = "pelshat";
if (isInFlashDev() && (!TRIADMODE)) {
trace("BACKEND DEV: Running from flash");
trace("BACKEND DEV: _level0.userName " + _level0.userName);
trace("BACKEND DEV: backendUrl: " + backend.settings.backendUrl);
}
DebugLevel = 1;
setGameId("240420040004");
setGameId("240420040010");
setGameMode(0);
setCallbackHandler(this);
}
function callback(mode, arg) {
trace((("***********************callback().. mode: " + mode) + " arg: ") + arg);
switch (mode) {
case "login" :
return;
case "validated" :
return;
case "hiscorealltime" :
return;
case "hiscoretoday" :
_parent.gotScores = true;
_parent.startScreen.scoresArrived();
return;
case "ishiscore" :
_parent.g.checkScoreDone(arg);
return;
case "setscore" :
_parent.g.setScoreDone(arg);
return;
case "sendmail" :
return;
case "ERROR" :
return;
default :
trace(("CBCB------- callback().. mode was not reckognized!!!:'" + mode) + "'");
}
}
if (typeof(_parent.backendLoaded) == "undefined") {
backendUrl = "backend_v2.1.swf";
loadMovie (backendUrl, backend);
_parent.backendLoaded = true;
}
}
Instance of Symbol 350 MovieClip "main" in Frame 8
onClipEvent (enterFrame) {
mainLoop();
}
onClipEvent (load) {
function initialize() {
trace("main.initialize");
DEBUG = true;
main_state = "none";
resetGame();
}
function resetGame() {
_level0.level = 1;
_level0.score = 0;
}
function mainLoop() {
switch (main_state) {
case "none" :
main_state = "loadingbackend";
return;
case "loadingbackend" :
trace("............");
if (mcIsLoaded(_parent.backend)) {
main_state = "initbackend";
}
return;
case "initbackend" :
return;
case "wait" :
return;
case "idle" :
return;
case "rungame" :
return;
default :
trace(("mainLoop().. main_state was not reckognized!!!:'" + main_state) + "'");
}
}
function gameLoaded() {
trace("gameLoaded was called from preloader");
_parent.gotoAndStop("mainload");
main_state = "initgame";
}
function mcIsLoaded(mc) {
var bLoaded = mc.getBytesLoaded();
var bTotal = mc.getBytesTotal();
_level0.debugTxt = "loading backend:: " + bLoaded;
if (bLoaded >= bTotal) {
trace(("main.mcIsLoaded().. " + mc) + " is done loading!!");
return(true);
}
return(false);
}
initialize();
}
Instance of Symbol 353 MovieClip "startScreen" in Frame 8
onClipEvent (load) {
function scoresArrived() {
trace("--------------- startScreen.scoresArrived() --------------------- ");
gotScores = true;
}
HISCORETYPE = "day";
gotScores = false;
}
Frame 9
function startNewGame() {
trace("... startNewGame()...");
level = 1;
score = (targetScore = 0);
gotoAndStop (19);
}
function abortGame() {
trace("... abortGame()...");
this.gotoAndPlay(18);
}
function setScore(val) {
_level0.score = val;
}
this._quality = "HIGH";
startScreen.gotoAndPlay("animon");
soundPlayer.playSound("gong");
stop();
Instance of Symbol 403 MovieClip in Frame 9
on (release) {
getURL ("http://www.power-burning-board.de/board/index.php");
}
Frame 19
this._quality = "MEDIUM";
game._visible = true;
stop();
Instance of Symbol 522 MovieClip "main" in Frame 19
onClipEvent (enterFrame) {
if (gameState == 0) {
updateGround();
pauseLoop++;
if (pauseLoop >= 25) {
gameState = 1;
renderScene();
pauseLoop = 0;
}
} else if (gameState == 1) {
updateGround();
updatehero();
pauseLoop++;
if (pauseLoop >= 25) {
gameState = 2;
pauseLoop = 0;
}
} else if (gameState == 2) {
updatehero();
updateGround();
heroDetection();
updateTime();
updateItems();
} else if (gameState == 3) {
updateItems();
updateGround();
updatehero();
pauseLoop++;
if (pauseLoop >= 25) {
fader.play();
pauseLoop = 0;
}
} else if (gameState == 4) {
updateItems();
updateGround();
updatehero();
pauseLoop++;
}
}
onClipEvent (load) {
function initGame() {
gameState = 10;
reSpawninterval = 25;
lvl = 1;
score = 0;
N = 6;
addbody = 0;
lostTotal = 0;
lostlevel = 0;
pauseLoop = 0;
diamondCount = new Array(0, 0, 0, 0, 0);
levelTime = new Array(0, 500, 600, 750, 750, 650, 750, 450, 500, 500, 1250, 500, 600, 750, 125, 900, 255, 550, 750, 600, 750);
startGame(lvl);
}
function initHero() {
_quality = "MEDIUM";
mcOffset = 3;
mousePos = new o_vector(0, 0);
Mouse.hide();
heroLevel = 0;
C = 3;
x = new Array();
y = new Array();
i = 0;
while (i < N) {
x[i] = 350 - (10 * i);
y[i] = 180;
i++;
}
i = 0;
while (i < N) {
depth = (N + 50000) - i;
initDepth = N + 50000;
if (i == 0) {
arena.attachMovie("theLeader", "piece" + i, depth);
trace((("dragonLeader, piece" + i) + " at depth: ") + depth);
} else if (i == 1) {
arena.attachMovie("theHead", "piece" + i, depth);
trace((("dragonHead, piece" + i) + " at depth: ") + depth);
} else if ((i == 4) || (i == 14)) {
arena.attachMovie("theFins", "piece" + i, depth);
trace((("dragonFins, piece" + i) + " at depth: ") + depth);
} else {
arena.attachMovie("theBody", "piece" + i, depth);
trace((("dragonBody, piece" + i) + " at depth: ") + depth);
}
var name = ("arena.piece" + i);
var clip = eval (name);
clip._x = x[i];
clip._y = y[i];
i++;
}
initTail();
soundPlayer.playSound("warp_in");
if (N > 6) {
changeHeroLevel();
}
}
function initTail() {
xTail = new Array();
yTail = new Array();
a = 0;
xTail[a] = 350 - (10 * a);
yTail[a] = 180;
depthTail = 49000;
arena.attachMovie("theTail", "tailpiece", depthTail);
trace("theTail, tailpiece at depth: " + depthTail);
var name = "arena.tailpiece";
var clip = eval (name);
clip._x = xTail[a];
clip._y = yTail[a];
}
function updateTail() {
xTail[a] = xTail[a] + (((x[N - 1] - xTail[a]) / 2) - mcOffset);
yTail[a] = yTail[a] + ((y[N - 1] - yTail[a]) / 2);
arena.tailpiece._x = xTail[a];
arena.tailpiece._y = yTail[a];
arena.tailpiece._rotation = (57.295778 * Math.atan2(yTail[a] - y[N - 1], xTail[a] - x[N - 1])) + 180;
}
function updatehero() {
mousePos.x = this._xmouse;
mousePos.y = this._ymouse;
x[0] = mousepos.x;
y[0] = mousepos.y;
i = 1;
while (i < N) {
x[i] = x[i] + (((x[i - 1] - x[i]) / C) - mcOffset);
y[i] = y[i] + ((y[i - 1] - y[i]) / C);
i++;
}
i = 0;
while (i < N) {
arena["piece" + i]._x = x[i];
arena["piece" + i]._y = y[i];
arena["piece" + i]._rotation = (57.295778 * Math.atan2(y[i] - y[i - 1], x[i] - x[i - 1])) + 180;
i++;
}
updateTail();
}
function changeHeroLevel() {
heroLevelOld = heroLevel;
heroLevelNew = Math.floor(N / 6);
if (heroLevelOld != heroLevelNew) {
var name = ("level" + heroLevelNew);
i = 0;
while (i <= N) {
arena["piece" + i].body.gotoandstop(name);
i++;
}
arena.tailpiece.body.gotoandstop(name);
heroLevel = heroLevelNew;
placeHeroLevelText();
} else {
var name = ("level" + heroLevel);
i = 0;
while (i <= N) {
arena["piece" + i].body.gotoandstop(name);
i++;
}
}
}
function addBodypiece(direction) {
newpiece = N;
if (direction == "add") {
var name = ("arena.piece" + (N - 1));
var clip = eval (name);
x[newpiece] = clip._x - mcOffset;
y[newpiece] = clip._y;
depth = initDepth - newpiece;
if ((newpiece == 4) || (newpiece == 14)) {
arena.attachMovie("theFins", "piece" + newpiece, depth);
trace((("dragonFins, piece" + newpiece) + " at depth: ") + depth);
} else {
arena.attachMovie("theBody", "piece" + newpiece, depth);
trace((("dragonBody, piece" + newpiece) + " at depth: ") + depth);
}
N = N + 1;
changeHeroLevel();
}
}
function heroDie(xpos, ypos) {
tailXpos = arena.tailpiece._x;
tailYpos = arena.tailpiece._y;
arena.piece1.removeMovieClip();
arena.tailpiece.removeMovieClip();
heroDead = arena.attachMovie("heroDead", "heroDead", 20000);
heroDead1 = arena.attachMovie("theDead", "tailDead", 20010);
heroDead._x = xpos;
heroDead._y = ypos;
heroDead1._x = tailXpos;
heroDead1._y = tailYpos;
gameState = 4;
}
function heroDetection() {
point = new object();
point.x = arena.piece1.spot1._x;
point.y = arena.piece1.spot1._y;
arena.piece1.localToGlobal(point);
depth = 1000;
var j = 0;
while (j < 5) {
if (arena["groundB01" + depth].hitTest(point.x, point.y, true)) {
if (N <= 2) {
diePlace("diepop", "OH NOOO, YOU ARE DEAD!", 330, 250);
heroDie(point.x, point.y);
}
hitPlace("hitpop", "BE CAREFUL!", 330, 220);
}
depth = depth + 10;
j++;
}
var i = 2;
while (i < N) {
var point2 = new object();
var name = (("arena.piece" + i) + ".spot2");
var clip = eval (name);
point2.x = clip._x;
point2.y = clip._y;
var name = ("arena.piece" + i);
var clip1 = eval (name);
clip1.localToGlobal(point2);
depth = 1000;
var j = 0;
while (j < 5) {
if (arena["groundB01" + depth].hitTest(point2.x, point2.y, true)) {
removeBodyparts(i);
}
depth = depth + 10;
j++;
}
i++;
}
}
function removeBodyparts(i) {
if (gamestate == 2) {
var tempnumber = (N - i);
lostTotal = lostTotal + tempnumber;
lostlevel = lostlevel + tempnumber;
var j = i;
while (j < N) {
var name = ("arena.piece" + j);
trace("REMOVER mc : " + name);
var clip = eval (name);
deadTemp++;
arena.attachMovie("theDead", "dead" + deadTemp, deadTemp + 5000);
mc = eval ("arena.dead" + deadTemp);
mc._x = clip._x;
mc._y = clip._y;
var name = ("level" + heroLevel);
mc.body.gotoandstop(name);
clip.removeMovieClip();
j++;
}
N = i;
changeHeroLevel();
} else {
var j = i;
while (j < N) {
var name = ("arena.piece" + j);
var clip = eval (name);
clip.removeMovieClip();
j++;
}
}
}
function o_hero() {
this.hero = arena.hero;
this.pos = 0;
this.width = 0;
}
function initGround() {
groundB = new o_groundB();
nowx = 0;
depth = 1000;
groundB.width = 1000;
var j = 0;
while (j < 5) {
var name = ("groundB01" + depth);
var clip = arena.attachMovie("groundB01", name, depth);
levelnow = lvl;
if (levelnow >= 18) {
levelnow = levelnow - 17;
}
if (levelnow == 10) {
var fram = (random(2) + 1);
} else if ((levelnow / 4) <= 1) {
var fram = (random(2) + 1);
} else if (((levelnow / 4) > 1) && ((levelnow / 4) <= 2)) {
var fram = (random(2) + 6);
} else if (((levelnow / 4) > 2) && ((levelnow / 4) <= 3)) {
var fram = (random(2) + 11);
} else if ((levelnow / 4) > 3) {
var fram = (random(2) + 16);
}
clip.gotoandstop(fram);
clip._y = 0;
clip._x = nowx;
depth = depth + 10;
nowx = nowx + 200;
j++;
}
darkname = "darkBG1";
darkname = "darkBG2";
darkclip1 = arena.attachMovie("darkBG", darkname, 100);
darkclip2 = arena.attachMovie("darkBG", darkname, 99);
darkclip1._y = 0;
darkclip1._x = 0;
darkclip2._y = 0;
darkclip2._x = 1200;
}
function o_groundB() {
this.mcB = arena.groundB;
this.pos = 0;
this.width = 0;
}
function updateGround() {
depth = 1000;
var j = 0;
while (j < 5) {
var name = ("arena.groundB01" + depth);
var clip = eval (name);
clip._x = clip._x - gameSpeed;
if (clip._x <= -200) {
newXPos = clip._x + groundB.width;
clip._x = newXpos;
levelnow = lvl;
if (levelnow >= 18) {
levelnow = levelnow - 17;
}
if (levelnow == 10) {
var fram = (random(2) + 1);
} else if ((levelnow / 4) <= 1) {
var fram = (random(5) + 1);
} else if (((levelnow / 4) > 1) && ((levelnow / 4) <= 2)) {
var fram = (random(5) + 6);
} else if (((levelnow / 4) > 2) && ((levelnow / 4) <= 3)) {
var fram = (random(5) + 11);
} else if ((levelnow / 4) > 3) {
var fram = (random(5) + 16);
}
clip.gotoandstop(fram);
if ((gameState == 2) && (morphOn == false)) {
placeItem(clip, fram);
}
}
depth = depth + 10;
j++;
}
darkclip1._x = darkclip1._x - (gameSpeed / 2);
darkclip2._x = darkclip2._x - (gameSpeed / 2);
if (darkclip1._x <= -1200) {
darkclip1._x = 1200;
} else if (darkclip2._x <= -1200) {
darkclip2._x = 1200;
}
}
function removeGround() {
depth = 1000;
var j = 0;
while (j < 5) {
var name = ("arena.groundB01" + depth);
var clip = eval (name);
clip.removeMovieclip();
depth = depth + 10;
j++;
}
}
function o_vector(x, y) {
this.x = x;
this.y = y;
}
function normalizeV(vec) {
var result = new o_vector();
var len = Math.sqrt((vec.x * vec.x) + (vec.y * vec.y));
result.x = vec.x / len;
result.y = vec.y / len;
return(result);
}
function initItem() {
itemCount = 0;
fooddepth = 500;
itemOnstageCount = 0;
itemOnstageMax = 20;
itemStartx = 700;
donutCount = 0;
donutMax = 4;
}
function placeItem(bgname, bgframe) {
mark1 = new object();
var name1 = (bgname + ".itemMark1");
var clip1 = eval (name1);
mark1.x = clip1._x;
mark1.y = clip1._y;
bgname.localToGlobal(mark1);
mark2 = new object();
var name2 = (bgname + ".itemMark2");
var clip2 = eval (name2);
mark2.x = clip2._x;
mark2.y = clip2._y;
bgname.localToGlobal(mark2);
itemRandomizer = random(5) + 1;
if (itemRandomizer == 1) {
itemBGCounter = 1;
} else {
itemBGCounter = 2;
}
m = 0;
while (m < itemBGCounter) {
var name = ("food" + ItemCount);
var clip = arena.attachMovie("food", name, fooddepth);
var fram = (random(7) + 1);
if (N < 18) {
if (fram == 1) {
donutCount = donutCount + 1;
}
if (donutCount == donutMax) {
fram = random(6) + 2;
donutCount = donutCount - 1;
}
} else {
fram = random(6) + 2;
}
clip.gotoandstop(fram);
if (m == 0) {
clip._y = mark1.y;
clip._x = mark1.x;
} else {
clip._y = mark2.y;
clip._x = mark2.x;
}
ItemCount++;
ItemsInLevelCount++;
fooddepth = fooddepth + 1;
itemOnstageCount = itemOnstageCount + 1;
if (itemCount == itemOnstageMax) {
itemCount = 0;
fooddepth = 500;
}
m++;
}
}
function updateItems() {
if (itemOnstageCount > 0) {
j = 0;
while (j < itemOnstageMax) {
var name = ("arena.food" + j);
var clip = eval (name);
clip._x = clip._x - gameSpeed;
if (clip._x <= -100) {
clip.removeMovieclip();
itemOnstageCount = itemOnstageCount - 1;
}
if (arena["food" + j].hitTest(point.x, point.y, true)) {
itemFrame = clip._currentframe;
clip.removeMovieclip();
itemOnstageCount = itemOnstageCount - 1;
itemEaten = itemEaten + 1;
if (itemFrame == 1) {
addBodypiece("add");
soundPlayer.playSound("donut");
} else {
calculatePopPoints(itemFrame, point.x, point.y);
itemDead = arena.attachMovie("itemDead", "itemdead", 70000);
itemdead._x = point.x;
itemDead._y = point.y;
placediamond(itemFrame, point.x, point.y);
}
}
j++;
}
}
}
function removeItem() {
i = 0;
while (i <= itemOnstageMax) {
var name = ("arena.food" + i);
var clip = eval (name);
clip.removeMovieclip();
i++;
}
}
function calculatePopPoints(itemFrame, xpos, ypos) {
tempval = 0;
if (itemFrame == 1) {
tempval = 10;
} else if (itemFrame == 2) {
tempval = 20;
soundPlayer.playSound("item_high2");
} else if (itemFrame == 3) {
tempval = 50;
soundPlayer.playSound("item_high1");
} else if (itemFrame == 4) {
tempval = 30;
soundPlayer.playSound("item_mid");
} else if (itemFrame == 5) {
tempval = 30;
soundPlayer.playSound("item_low1");
} else if (itemFrame == 6) {
tempval = 20;
soundPlayer.playSound("item_low2");
} else if (itemFrame == 7) {
tempval = 40;
soundPlayer.playSound("item_low3");
}
val = tempval * (N - 1);
str = ((N - 1) + " x ") + tempval;
popPlace(str, val, tempval, xpos, ypos);
}
function popPlace(str, val, tempval, xpos, ypos) {
depth = 11000 + levelprogress;
var name = ("pop" + ItemCount);
var clip = arena.attachMovie("pop", name, depth);
clip._x = xpos;
clip._y = ypos - 25;
clip.amountTxt = String(str);
clip.gotoAndPlay("good");
addScore(val);
val = 0;
}
function placeDiamond(frame, xbonus, ybonus) {
newDiamond = frame;
var matchcount = 0;
i = 0;
while (i <= diamondCount.length) {
if (diamondCount[i] == newDiamond) {
matchcount = matchcount + 1;
}
i++;
}
var name = ("statusbar.diamondHolder.diamond" + matchcount);
var clip = eval (name);
if (matchcount > 0) {
diamondCount[matchcount] = newDiamond;
clip._visible = true;
clip.gotoandstop(newDiamond);
} else {
statusbar.diamondHolder.diamond0._visible = true;
statusbar.diamondHolder.diamond0.gotoandstop(newDiamond);
diamondCount[0] = newDiamond;
j = 1;
while (j < diamondCount.length) {
var name1 = ("statusbar.diamondHolder.diamond" + j);
var clip1 = eval (name1);
diamondCount[j] = 0;
clip1._visible = false;
j++;
}
}
if (matchcount > 0) {
calculateBonusPoints(matchcount, xbonus, ybonus);
if (matchcount == 4) {
perfectBonus = perfectBonus + 1;
j = 0;
while (j < diamondCount.length) {
var name1 = ("statusbar.diamondHolder.diamond" + j);
var clip1 = eval (name1);
diamondCount[j] = 0;
clip1._visible = false;
j++;
}
}
}
}
function calculateBonusPoints(bonuscount, xbonus, ybonus) {
bonus = bonuscount + 1;
bonusstr = bonus + " x BONUS COLLECTED";
bonusPlace(bonus, bonusstr, xbonus, ybonus);
}
function hitPlace(name, bonusstr, xbonus, ybonus) {
depth = 13002 + levelprogress;
var clip = arena.attachMovie("pop", name, depth);
clip._x = xbonus;
clip._y = ybonus - 60;
clip._xscale = 130;
clip._yscale = 130;
clip.amountTxt = String(bonusstr);
clip.gotoAndPlay("newlevel");
}
function diePlace(name, bonusstr, xbonus, ybonus) {
depth = 13003 + levelprogress;
var clip = arena.attachMovie("pop", name, depth);
clip._x = xbonus;
clip._y = ybonus - 60;
clip._xscale = 130;
clip._yscale = 130;
clip.amountTxt = String(bonusstr);
clip.gotoAndPlay("bonus");
}
function bonusPlace(bonus, bonusstr, xbonus, ybonus) {
depth = 13000 + levelprogress;
var name = ("bonuspop" + ItemCount);
var clip = arena.attachMovie("pop", name, depth);
clip._x = xbonus;
clip._y = ybonus - 60;
clip._xscale = 120;
clip._yscale = 120;
clip.amountTxt = String(bonusstr);
clip.gotoAndPlay("bonus");
if (bonus == 5) {
bonusScore = "10000 points";
val = 10000;
} else {
bonusScore = (bonus * 1000) + " points";
val = bonus * 1000;
}
depth = 13001 + levelprogress;
var name = ("bonuspoppoints" + ItemCount);
var clip = arena.attachMovie("pop", name, depth);
clip._x = xbonus;
clip._y = ybonus - 85;
clip._xscale = 120;
clip._yscale = 120;
clip.amountTxt = String(bonusScore);
clip.gotoAndPlay("bonusscore");
addScore(val);
val = 0;
}
function placeHeroLevelText() {
if (heroLevel == 0) {
levelText = "BABY DRAGON";
} else if (heroLevel == 1) {
levelText = "LITTLE DRAGON";
} else if (heroLevel == 2) {
levelText = "BIG DRAGON";
} else if (heroLevel == 3) {
levelText = "HERO DRAGON";
} else if (heroLevel == 4) {
levelText = "MICHU DRAGON";
}
depth = 13500 + gameTime;
var name = ("levelpoppoints" + ItemCount);
var levelclip = arena.attachMovie("pop", name, depth);
levelclip._x = point.x;
levelclip._y = point.y - 85;
levelclip._xscale = 120;
clip._yscale = 120;
levelclip.amountTxt = String(levelText);
levelclip.gotoAndPlay("newlevel");
}
function morphStart() {
morphstation = arena.attachMovie("morphstation", "morphstation", 90000);
morphstation._x = 700;
morphstation._y = 3;
soundPlayer.playSound("morph_station");
}
function morphUpdate() {
if (((itemEaten == ItemsInLevelCount) && (lvl == 1)) && (giantBonus == false)) {
giantBonus = true;
score = score + 100000;
statusbar.score.txtscore = score;
bonusPlace(100, "SECRET GIGANTIC BONUS!", 330, 250);
}
if (morphstation._x > 330) {
morphstation._x = morphstation._x - gameSpeed;
} else {
morphstation._x = 329;
}
if (point.x > morphstation._x) {
soundPlayer.stopSound("morph_station");
soundPlayer.playSound("warpspeed");
levelCompleted();
hitPlace("warp", "WARP SPEED!", 340, 250);
morphstation.gotoandplay("over");
}
}
function startGame() {
trace("initgame");
initLevel(lvl);
}
function initLevel(lvl) {
trace("********************");
trace(("* initiate level " + lvl) + " *");
trace("********************");
fader.gotoAndPlay("off");
level = lvl;
levelprogress = 0;
morphOn = false;
initItem();
initGround();
barlength = statusbar.progress.line._width;
arrowsteps = barlength / leveltime[level];
statusbar.progress.arrow._x = 0;
newstatusXpos = 0;
statusbar.txtlevel = level;
if (levelnow == 10) {
levelText.gotoandplay("bonus");
trace("sssssssssssssssbonusssssssssssss");
} else {
trace("sssssssssssssssssssssssssssssssssssssssssss");
levelText.gotoandplay("start");
}
gameState = 0;
lostlevel = 0;
perfectBonus = 0;
itemEaten = 0;
ItemsInLevelCount = 0;
giantBonus = false;
gameSpeed = 6 + (lvl * 0.4);
levelTimelenght = lvl;
if (levelTimelenght >= 20) {
levelTimelenght = levelTimelenght - 19;
}
}
function renderScene() {
initHero();
}
function levelCompleted() {
this._quality = "HIGH";
Mouse.show();
gameState = 3;
removeItem();
i = 0;
while (i < diamondCount.length) {
diamondCount[i] = 0;
var name = ("statusbar.diamondHolder.diamond" + i);
var clip = eval (name);
clip._visible = false;
i++;
}
statusbar.progress.blinker.stop();
i = 1;
while (i < N) {
depth = (N + 100) - i;
var name = ("arena.piece" + i);
var clip = eval (name);
clip.gotoandplay("warp");
i++;
}
arena.tailpiece.gotoandplay("warp");
}
function cleanLevel() {
gameState = 10;
if (gameState != 4) {
stats.play();
}
stopAllSounds();
removeBodyparts(1);
removeGround();
statusbar.progress.gotoandstop(1);
}
function newLevelStart() {
lvl = lvl + 1;
initLevel(lvl);
}
function gameDone() {
this.gotoAndPlay("gameover");
}
function addScore(val) {
score = score + val;
}
function showStats() {
trace("shower stats !");
}
function updateTime() {
if (morphOn == false) {
levelprogress++;
if (levelprogress >= leveltime[levelTimelenght]) {
morphStart();
morphOn = true;
}
newstatusXpos = newstatusXpos + arrowsteps;
statusbar.progress.gotoandstop(Math.round(newstatusXpos));
statusbar.progress.arrow._x = newstatusXpos;
statusbar.score.txtscore = score;
} else {
morphUpdate();
}
}
trace("MAIN loaded!");
soundPlayer.playSound("btn_rollover");
}
Instance of Symbol 682 MovieClip "gameoverpop" in Frame 19
onClipEvent (load) {
this._visible = false;
}
Frame 27
gameover.gotoAndPlay("animon");
this._quality = "HIGH";
Symbol 24 MovieClip Frame 2
stop();
Symbol 22 MovieClip [groundB01] Frame 1
stop();
Instance of Symbol 24 MovieClip "itemMark1" in Symbol 22 MovieClip [groundB01] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 24 MovieClip "itemMark2" in Symbol 22 MovieClip [groundB01] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 48 MovieClip Frame 1
stop();
stop();
Symbol 48 MovieClip Frame 6
stop();
Symbol 48 MovieClip Frame 11
stop();
Symbol 48 MovieClip Frame 16
stop();
Symbol 53 MovieClip Frame 9
stop();
this.removeMovieClip();
Symbol 62 MovieClip Frame 10
stop();
this.removeMovieClip();
Symbol 47 MovieClip [theTail] Frame 1
this.play();
Symbol 47 MovieClip [theTail] Frame 13
stop();
Symbol 47 MovieClip [theTail] Frame 16
this.play();
Symbol 47 MovieClip [theTail] Frame 27
stop();
this.removeMovieClip();
Symbol 47 MovieClip [theTail] Frame 29
this.play();
Symbol 47 MovieClip [theTail] Frame 40
stop();
this.removeMovieClip();
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 6
stop();
Symbol 72 MovieClip Frame 11
stop();
Symbol 72 MovieClip Frame 16
stop();
Symbol 69 MovieClip [theHead] Frame 1
this.play();
Symbol 69 MovieClip [theHead] Frame 12
stop();
var name = ("level" + _parent._parent.heroLevel);
trace("name = " + name);
body.gotoandstop(name);
Symbol 69 MovieClip [theHead] Frame 16
this.play();
trace("player head morpher");
Symbol 69 MovieClip [theHead] Frame 28
stop();
Symbol 69 MovieClip [theHead] Frame 30
this.play();
Symbol 69 MovieClip [theHead] Frame 42
stop();
Symbol 69 MovieClip [theHead] Frame 47
this.gotoandstop("normal");
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 6
stop();
Symbol 78 MovieClip Frame 11
stop();
Symbol 78 MovieClip Frame 16
stop();
Symbol 77 MovieClip [theDead] Frame 30
stop();
this.removeMovieClip();
Symbol 83 MovieClip [theBody] Frame 1
this.play();
Instance of Symbol 70 MovieClip "spot2" in Symbol 83 MovieClip [theBody] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 83 MovieClip [theBody] Frame 13
stop();
Symbol 83 MovieClip [theBody] Frame 16
this.play();
Symbol 83 MovieClip [theBody] Frame 27
stop();
Symbol 83 MovieClip [theBody] Frame 28
this.play();
Symbol 83 MovieClip [theBody] Frame 39
stop();
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 6
stop();
Symbol 85 MovieClip Frame 11
stop();
Symbol 85 MovieClip Frame 16
stop();
Symbol 84 MovieClip [theFins] Frame 1
this.play();
Symbol 84 MovieClip [theFins] Frame 12
stop();
Symbol 84 MovieClip [theFins] Frame 18
this.play();
Symbol 84 MovieClip [theFins] Frame 29
stop();
Symbol 84 MovieClip [theFins] Frame 32
this.play();
Symbol 84 MovieClip [theFins] Frame 43
stop();
Symbol 89 MovieClip [theLeader] Frame 1
stop();
Instance of Symbol 90 MovieClip in Symbol 89 MovieClip [theLeader] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 92 MovieClip [heroDead] Frame 20
soundPlayer.playSound("dead");
Symbol 92 MovieClip [heroDead] Frame 22
soundPlayer.playSound("ohoh");
Symbol 92 MovieClip [heroDead] Frame 31
stop();
_parent._parent.fader.gotoAndPlay("on");
this.removeMovieClip();
Symbol 93 MovieClip [itemDead] Frame 10
stop();
this.removeMovieClip();
Symbol 100 MovieClip [pop] Frame 1
stop();
Symbol 100 MovieClip [pop] Frame 5
this.play();
anim.amountTxt = String(amountTxt);
Symbol 100 MovieClip [pop] Frame 24
stop();
this.removeMovieClip();
Symbol 100 MovieClip [pop] Frame 27
this.play();
anim.amountTxt = String(amountTxt);
Symbol 100 MovieClip [pop] Frame 48
stop();
this.removeMovieClip();
Symbol 100 MovieClip [pop] Frame 51
this.play();
anim.amountTxt = String(amountTxt);
Symbol 100 MovieClip [pop] Frame 81
stop();
this.removeMovieClip();
Symbol 100 MovieClip [pop] Frame 83
this.play();
anim.amountTxt = String(amountTxt);
Symbol 100 MovieClip [pop] Frame 113
stop();
this.removeMovieClip();
Instance of Symbol 123 MovieClip in Symbol 122 MovieClip Frame 1
onClipEvent (load) {
var ran = (random(10) + 90);
this._alpha = ran;
}
Instance of Symbol 125 MovieClip in Symbol 122 MovieClip Frame 3
onClipEvent (load) {
var ran = (random(10) + 90);
this._alpha = ran;
}
Instance of Symbol 127 MovieClip in Symbol 122 MovieClip Frame 4
onClipEvent (load) {
var ran = (random(10) + 90);
this._alpha = ran;
}
Instance of Symbol 123 MovieClip in Symbol 122 MovieClip Frame 6
onClipEvent (load) {
var ran = (random(10) + 90);
this._alpha = ran;
}
Instance of Symbol 125 MovieClip in Symbol 122 MovieClip Frame 8
onClipEvent (load) {
var ran = (random(10) + 90);
this._alpha = ran;
}
Instance of Symbol 127 MovieClip in Symbol 122 MovieClip Frame 9
onClipEvent (load) {
var ran = (random(10) + 90);
this._alpha = ran;
}
Instance of Symbol 125 MovieClip in Symbol 122 MovieClip Frame 11
onClipEvent (load) {
var ran = (random(10) + 90);
this._alpha = ran;
}
Instance of Symbol 123 MovieClip in Symbol 122 MovieClip Frame 13
onClipEvent (load) {
var ran = (random(10) + 90);
this._alpha = ran;
}
Symbol 113 MovieClip [morphstation] Frame 36
this.gotoandplay(1);
Symbol 113 MovieClip [morphstation] Frame 37
this.play();
Symbol 113 MovieClip [morphstation] Frame 55
stop();
this.removeMovieClip();
Symbol 131 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 141 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 148 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 129 MovieClip [UpArrow] Frame 1
stop();
this.onRollOver = function () {
gotoAndStop (4);
};
this.onRollOut = function () {
gotoAndStop (1);
};
Symbol 160 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 169 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 176 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 155 MovieClip [ScrollThumb] Frame 1
stop();
this.onRollOver = function () {
mc_sliderTop.highlight_mc.gotoAndStop(2);
mc_sliderMid.face_mc.gotoAndStop(2);
mc_sliderBot.shadow_mc.gotoAndStop(2);
};
this.onRollOut = function () {
mc_sliderTop.highlight_mc.gotoAndStop(1);
mc_sliderMid.face_mc.gotoAndStop(1);
mc_sliderBot.shadow_mc.gotoAndStop(1);
};
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
mc_sliderTop.highlight_mc.gotoAndStop(3);
mc_sliderMid.face_mc.gotoAndStop(3);
mc_sliderBot.shadow_mc.gotoAndStop(3);
}
};
this.onMouseUp = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
mc_sliderTop.highlight_mc.gotoAndStop(2);
mc_sliderMid.face_mc.gotoAndStop(2);
mc_sliderBot.shadow_mc.gotoAndStop(2);
} else {
mc_sliderTop.highlight_mc.gotoAndStop(1);
mc_sliderMid.face_mc.gotoAndStop(1);
mc_sliderBot.shadow_mc.gotoAndStop(1);
}
};
Symbol 184 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 190 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 196 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 182 MovieClip [DownArrow] Frame 1
stop();
this.onRollOver = function () {
gotoAndStop (4);
};
this.onRollOut = function () {
gotoAndStop (1);
};
Symbol 203 MovieClip [FLabelSymbol] Frame 1
#initclip 1
_global.FLabelClass = function () {
if (this.hostComponent == undefined) {
this.hostComponent = ((this._parent.controller == undefined) ? (this._parent) : (this._parent.controller));
}
if (this.customTextStyle == undefined) {
if (this.hostComponent.textStyle == undefined) {
this.hostComponent.textStyle = new TextFormat();
}
this.textStyle = this.hostComponent.textStyle;
this.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var val = this.hostComponent.styleTable.embedFonts.value;
if (val != undefined) {
this.labelField.embedFonts = val;
}
this.labelField.setNewTextFormat(this.textStyle);
this.labelField.text = label;
this.labelField._height = this.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
this.enable = enable;
var tmpColor = this.hostComponent.styleTable[(enable ? "textColor" : "textDisabled")].value;
if (tmpColor == undefined) {
tmpColor = (enable ? 0 : 8947848);
}
this.setColor(tmpColor);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 206 MovieClip [FUIComponentSymbol] Frame 1
#initclip 2
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 207 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 207 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 211 MovieClip [FCheckBoxSymbol] Frame 1
#initclip 3
function FCheckBoxClass() {
this.init();
}
FCheckBoxClass.prototype = new FUIComponentClass();
Object.registerClass("FCheckBoxSymbol", FCheckBoxClass);
FCheckBoxClass.prototype.init = function () {
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.attachMovie("fcb_hitArea", "fcb_hitArea_mc", 1);
this.attachMovie("fcb_states", "fcb_states_mc", 2);
this.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
this.setChangeHandler(this.changeHandler);
this._xscale = 100;
this._yscale = 100;
this.setSize(this.width, this.height);
if (this.initialValue == undefined) {
this.setCheckState(false);
} else {
this.setCheckState(this.initialValue);
}
if (this.label != undefined) {
this.setLabel(this.label);
}
this.ROLE_SYSTEM_CHECKBUTTON = 44;
this.STATE_SYSTEM_CHECKED = 16;
this.EVENT_OBJECT_STATECHANGE = 32778;
this.EVENT_OBJECT_NAMECHANGE = 32780;
this._accImpl.master = this;
this._accImpl.stub = false;
this._accImpl.get_accRole = this.get_accRole;
this._accImpl.get_accName = this.get_accName;
this._accImpl.get_accState = this.get_accState;
this._accImpl.get_accDefaultAction = this.get_accDefaultAction;
this._accImpl.accDoDefaultAction = this.accDoDefaultAction;
};
FCheckBoxClass.prototype.setLabelPlacement = function (pos) {
this.setLabel(this.getLabel());
this.txtFormat(pos);
var halfLabelH = (this.fLabel_mc._height / 2);
var halfFrameH = (this.fcb_states_mc._height / 2);
var vertCenter = (halfFrameH - halfLabelH);
var checkWidth = this.fcb_states_mc._width;
var frame = this.fcb_states_mc;
var label = this.fLabel_mc;
var w = 0;
if (frame._width > this.width) {
w = 0;
} else {
w = this.width - frame._width;
}
this.fLabel_mc.setSize(w);
if ((pos == "right") || (pos == undefined)) {
this.labelPlacement = "right";
this.fcb_states_mc._x = 0;
this.fLabel_mc._x = checkWidth;
this.txtFormat("left");
} else if (pos == "left") {
this.labelPlacement = "left";
this.fLabel_mc._x = 0;
this.fcb_states_mc._x = this.width - checkWidth;
this.txtFormat("right");
}
this.fLabel_mc._y = vertCenter;
this.fcb_hitArea_mc._y = vertCenter;
};
FCheckBoxClass.prototype.txtFormat = function (pos) {
var txtS = this.textStyle;
var sTbl = this.styleTable;
txtS.align = ((sTbl.textAlign.value == undefined) ? ((txtS.align = pos)) : undefined);
txtS.leftMargin = ((sTbl.textLeftMargin.value == undefined) ? ((txtS.leftMargin = 0)) : undefined);
txtS.rightMargin = ((sTbl.textRightMargin.value == undefined) ? ((txtS.rightMargin = 0)) : undefined);
if (this.flabel_mc._height > this.height) {
super.setSize(this.width, this.flabel_mc._height);
} else {
super.setSize(this.width, this.height);
}
this.fLabel_mc.labelField.setTextFormat(this.textStyle);
this.setEnabled(this.enable);
};
FCheckBoxClass.prototype.setHitArea = function (w, h) {
var hit = this.fcb_hitArea_mc;
this.hitArea = hit;
if (this.fcb_states_mc._width > w) {
hit._width = this.fcb_states_mc._width;
} else {
hit._width = w;
}
hit._visible = false;
if (arguments.length > 1) {
hit._height = h;
}
};
FCheckBoxClass.prototype.setSize = function (w) {
this.setLabel(this.getLabel());
this.setLabelPlacement(this.labelPlacement);
if (this.fcb_states_mc._height < this.flabel_mc.labelField._height) {
super.setSize(w, this.flabel_mc.labelField._height);
}
this.setHitArea(this.width, this.height);
this.setLabelPlacement(this.labelPlacement);
};
FCheckBoxClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this._width + 6, this._height - 1);
};
FCheckBoxClass.prototype.onPress = function () {
this.pressFocus();
_root.focusRect.removeMovieClip();
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedPress");
} else {
states.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.onRelease = function () {
this.fcb_states_mc.gotoAndStop("up");
this.setValue(!this.checked);
};
FCheckBoxClass.prototype.onReleaseOutside = function () {
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedEnabled");
} else {
states.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOut = function () {
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedEnabled");
} else {
states.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOver = function () {
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedPress");
} else {
states.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.setValue = function (checkedValue) {
if (checkedValue || (checkedValue == undefined)) {
this.setCheckState(checkedValue);
} else if (checkedValue == false) {
this.setCheckState(checkedValue);
}
this.executeCallBack();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FCheckBoxClass.prototype.setCheckState = function (checkedValue) {
var states = this.fcb_states_mc;
if (this.enable) {
this.flabel_mc.setEnabled(true);
if (checkedValue || (checkedValue == undefined)) {
states.gotoAndStop("checkedEnabled");
this.enabled = true;
this.checked = true;
} else {
states.gotoAndStop("up");
this.enabled = true;
this.checked = false;
}
} else {
this.flabel_mc.setEnabled(false);
if (checkedValue || (checkedValue == undefined)) {
states.gotoAndStop("checkedDisabled");
this.enabled = false;
this.checked = true;
} else {
states.gotoAndStop("uncheckedDisabled");
this.enabled = false;
this.checked = false;
this.focusRect.removeMovieClip();
}
}
};
FCheckBoxClass.prototype.getValue = function () {
return(this.checked);
};
FCheckBoxClass.prototype.setEnabled = function (enable) {
if ((enable == true) || (enable == undefined)) {
this.enable = true;
Super.setEnabled(true);
} else {
this.enable = false;
Super.setEnabled(false);
}
this.setCheckState(this.checked);
};
FCheckBoxClass.prototype.getEnabled = function () {
return(this.enable);
};
FCheckBoxClass.prototype.setLabel = function (label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE);
}
};
FCheckBoxClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FCheckBoxClass.prototype.setTextColor = function (color) {
this.fLabel_mc.labelField.textColor = color;
};
FCheckBoxClass.prototype.myOnKeyDown = function () {
if (((Key.getCode() == 32) && (this.pressOnce == undefined)) && (this.enabled == true)) {
this.setValue(!this.getValue());
this.pressOnce = true;
}
};
FCheckBoxClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.pressOnce = undefined;
}
};
FCheckBoxClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_CHECKBUTTON);
};
FCheckBoxClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FCheckBoxClass.prototype.get_accState = function (childId) {
if (this.master.getValue()) {
return(this.master.STATE_SYSTEM_CHECKED);
}
return(0);
};
FCheckBoxClass.prototype.get_accDefaultAction = function (childId) {
if (this.master.getValue()) {
return("UnCheck");
}
return("Check");
};
FCheckBoxClass.prototype.accDoDefaultAction = function (childId) {
this.master.setValue(!this.master.getValue());
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 215 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 214 MovieClip [FScrollBarSymbol] Frame 1
#initclip 4
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var tmp = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
tmp = Math.min(tmp, this.maxPos);
this.setScrollPosition(Math.max(tmp, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var wasEnabled = this.enable;
if (enabledFlag && (!wasEnabled)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (wasEnabled)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var delt = this.smallScroll;
if (inc != "one") {
delt = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var newPos = (this.getScrollPosition() + (mode * delt));
if (newPos > this.maxPos) {
newPos = this.maxPos;
} else if (newPos < this.minPos) {
newPos = this.minPos;
}
this.setScrollPosition(newPos);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var c = this.controller;
c.scrollPosition = Math.round(((c.maxPos - c.minPos) * (this._y - c.scrollTop)) / c.trackHeight) + c.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var pos = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxhscroll));
} else {
var pos = this.textField.scroll;
var pageSize = (this.textField.bottomScroll - this.textField.scroll);
this.setScrollProperties(pageSize, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 226 Button
on (release) {
if (_parent.size == "large") {
_parent.gotoAndStop(3);
}
if (_parent.size == "small") {
_parent.gotoAndStop(2);
}
}
Symbol 231 Button
on (press) {
_parent.startDrag();
}
on (release, releaseOutside) {
_parent.stopDrag();
}
Symbol 238 Button
on (press) {
listMovieClips(_root, 1);
}
Symbol 247 Button
on (release) {
_parent.gotoAndStop(1);
}
Symbol 251 Button
on (press) {
_parent.query();
}
Symbol 254 Button
on (press) {
_parent.line = 1;
_parent.debug.text = "";
}
Symbol 257 Button
on (press) {
_parent.stopLog = true;
nextFrame();
}
Symbol 259 Button
on (press) {
_parent.stopLog = true;
nextFrame();
}
Symbol 260 Button
on (press) {
_parent.stopLog = false;
prevFrame();
}
Symbol 256 MovieClip Frame 1
stop();
Symbol 265 Button
on (release) {
_parent.size = "large";
_parent.gotoAndStop(3);
}
Symbol 272 Button
on (release) {
_parent.size = "small";
_parent.gotoAndStop(2);
}
Symbol 219 MovieClip [log] Frame 1
function initLog() {
logBg._alpha = logOpacity;
logHeadBg.bg._alpha = logOpacity;
logBt1._alpha = logOpacity;
logBt2._alpha = logOpacity;
logQueryBg._alpha = logOpacity;
scrollbar._alpha = logOpacity;
}
if ((stealthNinja != "") && (runNinja != true)) {
runNinja = true;
_visible = false;
var ninja = stealthNinja;
var nxt = "";
var idx = 0;
someListener = new Object();
someListener.onKeyDown = function () {
var expected = ninja.charat(idx);
var pressed = string.fromCharCode(key.getAscii());
if (expected == pressed) {
idx++;
if (idx >= ninja.length) {
idx = 0;
_visible = (!_visible);
}
} else {
idx = 0;
}
};
Key.addListener(someListener);
}
if (initLogOnce != true) {
initLogOnce = true;
logFormat = new TextFormat();
logFormat.size = theFontSize;
logFormat.font = theFont;
if ((rollup == "yes") && (runOnce != true)) {
runOnce = true;
stop();
} else if (((rollup == "no") && (runOnce != true)) && (size != "large")) {
runOnce = true;
gotoAndStop (2);
} else if (((rollup == "no") && (runOnce != true)) && (size == "large")) {
runOnce = true;
gotoAndStop (3);
}
this._x = Math.round(this._x);
this._y = Math.round(this._y);
logBg._alpha = logOpacity;
logHeadBg.bg._alpha = logOpacity;
logBt1._alpha = logOpacity;
logBt2._alpha = logOpacity;
scrollbar._alpha = logOpacity;
line = 1;
_global[functionName] = function (flag) {
if (stopLog != true) {
if (lineNum == "yes") {
if (debug.text == "") {
if (line < 10) {
debug.text = debug.text + (((" " + line) + " ") + flag);
} else if (line < 100) {
debug.text = debug.text + (((" " + line) + " ") + flag);
} else {
debug.text = debug.text + ((line + " ") + flag);
}
} else {
if (line < 10) {
debug.text = debug.text + ((((String.fromCharCode(13) + " ") + line) + " ") + flag);
} else if (line < 100) {
debug.text = debug.text + ((((String.fromCharCode(13) + " ") + line) + " ") + flag);
} else {
debug.text = debug.text + (((String.fromCharCode(13) + line) + " ") + flag);
}
if (line == clearLog) {
debug.text = "";
line = 0;
}
}
} else if (debug.text == "") {
debug.text = debug.text + flag;
} else if (line == clearLog) {
debug.text = "";
line = 0;
} else {
debug.text = debug.text + (String.fromCharCode(13) + flag);
}
}
if ((autoJump == "no") && (scrolled == true)) {
} else {
debug.scroll = debug.maxscroll;
}
line++;
debug.setTextFormat(logFormat);
if (alsoTrace == true) {
trace(flag);
}
};
}
stop();
debug._visible = false;
scrollbar._visible = false;
Instance of Symbol 214 MovieClip [FScrollBarSymbol] "scrollbar" in Symbol 219 MovieClip [log] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "debug";
horizontal = false;
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.scrolled = true;
}
}
Symbol 219 MovieClip [log] Frame 2
initLog();
debug._visible = true;
debug._width = 341;
debug._height = 141;
debug._y = 2;
scrollbar._visible = true;
scrollbar._x = 347;
scrollbar._y = 2;
scrollbar.setSize(141);
Instance of Symbol 243 MovieClip in Symbol 219 MovieClip [log] Frame 2
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (!clicked)) {
_parent.lastTxt = "";
clicked = true;
}
}
Symbol 219 MovieClip [log] Frame 3
initLog();
debug._visible = true;
debug._width = 550;
debug._height = 250;
debug._y = 2;
scrollbar._visible = true;
scrollbar._x = 553;
scrollbar._y = 2;
scrollbar.setSize(251);
Symbol 282 MovieClip Frame 1
stop();
Symbol 281 MovieClip [pointsMC] Frame 25
this._visible = false;
this.gotoAndStop(1);
Symbol 287 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 296 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 299 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 302 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 304 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "foregroundDisabled");
Symbol 307 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "check");
Symbol 286 MovieClip [fcb_states] Frame 1
stop();
Symbol 286 MovieClip [fcb_states] Frame 2
stop();
Symbol 286 MovieClip [fcb_states] Frame 3
stop();
Symbol 286 MovieClip [fcb_states] Frame 4
stop();
Symbol 286 MovieClip [fcb_states] Frame 5
stop();
Symbol 286 MovieClip [fcb_states] Frame 6
stop();
Symbol 310 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 310 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 311 MovieClip [food] Frame 1
stop();
Instance of Symbol 314 MovieClip in Symbol 311 MovieClip [food] Frame 2
onClipEvent (load) {
var ran = (random(360) + 1);
this._rotation = ran;
}
Instance of Symbol 316 MovieClip in Symbol 311 MovieClip [food] Frame 3
onClipEvent (load) {
var ran = (random(360) + 1);
this._rotation = ran;
}
Instance of Symbol 318 MovieClip in Symbol 311 MovieClip [food] Frame 4
onClipEvent (load) {
var ran = (random(360) + 1);
this._rotation = ran;
}
Instance of Symbol 320 MovieClip in Symbol 311 MovieClip [food] Frame 5
onClipEvent (load) {
var ran = (random(360) + 1);
this._rotation = ran;
}
Instance of Symbol 322 MovieClip in Symbol 311 MovieClip [food] Frame 6
onClipEvent (load) {
var ran = (random(360) + 1);
this._rotation = ran;
}
Instance of Symbol 324 MovieClip in Symbol 311 MovieClip [food] Frame 7
onClipEvent (load) {
var ran = (random(360) + 1);
this._rotation = ran;
}
Symbol 326 MovieClip [FScrollPaneSymbol] Frame 1
#initclip 5
function FScrollPaneClass() {
function boolToString(str) {
if (str == "false") {
return(false);
}
if (str == "true") {
return(true);
}
return(str);
}
this.init();
this.width = this._width;
this.height = this._height;
this._xscale = (this._yscale = 100);
this.contentWidth = (this.contentHeight = 0);
if (this.hScroll == undefined) {
this.hScroll = (this.vScroll = "auto");
this.dragContent = false;
}
this.offset = new Object();
this.vScroll = boolToString(this.vScroll);
this.hScroll = boolToString(this.hScroll);
this.attachMovie("FScrollBarSymbol", "hScrollBar_mc", 100, {hostStyle:this.styleTable});
this.hScrollBar_mc.setHorizontal(true);
this.hScrollBar_mc.setSmallScroll(5);
this.hScrollBar_mc.setChangeHandler("onScroll", this);
this.attachMovie("FScrollBarSymbol", "vScrollBar_mc", 99, {hostStyle:this.styleTable});
this.vScrollBar_mc.setSmallScroll(5);
this.vScrollBar_mc.setChangeHandler("onScroll", this);
this.setSize(this.width, this.height);
if (this.scrollContent != "") {
this.setScrollContent(this.scrollContent);
}
this.setDragContent(this.dragContent);
}
FScrollPaneClass.prototype = new FUIComponentClass();
Object.registerClass("FScrollPaneSymbol", FScrollPaneClass);
FScrollPaneClass.prototype.getScrollContent = function () {
return(this.content_mc);
};
FScrollPaneClass.prototype.getPaneWidth = function () {
return(this.width);
};
FScrollPaneClass.prototype.getPaneHeight = function () {
return(this.height);
};
FScrollPaneClass.prototype.getScrollPosition = function () {
var xPos = ((this.hScrollBar_mc == undefined) ? 0 : (this.hScrollBar_mc.getScrollPosition()));
var yPos = ((this.vScrollBar_mc == undefined) ? 0 : (this.vScrollBar_mc.getScrollPosition()));
return({x:xPos, y:yPos});
};
FScrollPaneClass.prototype.setScrollContent = function (target) {
this.offset.x = 0;
this.offset.y = 0;
if (this.content_mc != undefined) {
if (target != this.content_mc) {
this.content_mc._visible = false;
this.content_mc.removeMovieClip();
this.content_mc.unloadMovie();
}
}
if (typeof(target) == "string") {
this.attachMovie(target, "tmp_mc", 3);
this.content_mc = this.tmp_mc;
} else if (target == undefined) {
this.content_mc.unloadMovie();
} else {
this.content_mc = target;
}
this.localToGlobal(this.offset);
this.content_mc._parent.globalToLocal(this.offset);
this.content_mc._x = this.offset.x;
this.content_mc._y = this.offset.y;
var contentBounds = this.content_mc.getBounds(this);
this.offset.x = -contentBounds.xMin;
this.offset.y = -contentBounds.yMin;
this.localToGlobal(this.offset);
this.content_mc._parent.globalToLocal(this.offset);
this.content_mc._x = this.offset.x;
this.content_mc._y = this.offset.y;
this.contentWidth = this.content_mc._width;
this.contentHeight = this.content_mc._height;
this.content_mc.setMask(this.mask_mc);
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setSize = function (w, h) {
if (((arguments.length < 2) || (isNaN(w))) || (isNaN(h))) {
return(undefined);
}
super.setSize(w, h);
this.width = Math.max(w, 60);
this.height = Math.max(h, 60);
this.boundingBox_mc._xscale = 100;
this.boundingBox_mc._yscale = 100;
this.boundingBox_mc._width = this.width;
this.boundingBox_mc._height = this.height;
this.setHandV();
this.initScrollBars();
if (this.mask_mc == undefined) {
this.attachMovie("FBoundingBoxSymbol", "mask_mc", 3000);
}
this.mask_mc._xscale = 100;
this.mask_mc._yscale = 100;
this.mask_mc._width = this.hWidth;
this.mask_mc._height = this.vHeight;
this.mask_mc._alpha = 0;
};
FScrollPaneClass.prototype.setScrollPosition = function (x, y) {
x = Math.max(this.hScrollBar_mc.minPos, x);
x = Math.min(this.hScrollBar_mc.maxPos, x);
y = Math.max(this.vScrollBar_mc.minPos, y);
y = Math.min(this.vScrollBar_mc.maxPos, y);
this.hScrollBar_mc.setScrollPosition(x);
this.vScrollBar_mc.setScrollPosition(y);
};
FScrollPaneClass.prototype.refreshPane = function () {
this.setScrollContent(this.content_mc);
};
FScrollPaneClass.prototype.loadScrollContent = function (url, handler, location) {
this.content_mc.removeMovieClip();
this.content_mc.unloadMovie();
this.content_mc._visible = 0;
this.loadContent.duplicateMovieClip("loadTemp", 3);
this.dupeFlag = true;
this.contentLoaded = function () {
this.loadReady = false;
this.content_mc = this.loadTemp;
this.refreshPane();
this.executeCallBack();
};
this.setChangeHandler(handler, location);
this.loadTemp.loadMovie(url);
};
FScrollPaneClass.prototype.setHScroll = function (prop) {
this.hScroll = prop;
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setVScroll = function (prop) {
this.vScroll = prop;
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setDragContent = function (dragFlag) {
if (dragFlag) {
this.boundingBox_mc.useHandCursor = true;
this.boundingBox_mc.onPress = function () {
this._parent.startDragLoop();
};
this.boundingBox_mc.tabEnabled = false;
this.boundingBox_mc.onRelease = (this.boundingBox_mc.onReleaseOutside = function () {
this._parent.pressFocus();
this._parent.onMouseMove = null;
});
} else {
delete this.boundingBox_mc.onPress;
this.boundingBox_mc.useHandCursor = false;
}
};
FScrollPaneClass.prototype.setSmallScroll = function (x, y) {
this.hScrollBar_mc.setSmallScroll(x);
this.vScrollBar_mc.setSmallScroll(y);
};
FScrollPaneClass.prototype.setHandV = function () {
if ((((this.contentHeight - this.height) > 2) && (this.vScroll != false)) || (this.vScroll == true)) {
this.hWidth = this.width - this.vScrollBar_mc._width;
} else {
this.hWidth = this.width;
}
if ((((this.contentWidth - this.width) > 2) && (this.hScroll != false)) || (this.hScroll == true)) {
this.vHeight = this.height - this.hScrollBar_mc._height;
} else {
this.vHeight = this.height;
}
};
FScrollPaneClass.prototype.startDragLoop = function () {
this.tabFocused = false;
this.myOnSetFocus();
this.lastX = this._xmouse;
this.lastY = this._ymouse;
this.onMouseMove = function () {
this.scrollXMove = this.lastX - this._xmouse;
this.scrollYMove = this.lastY - this._ymouse;
this.scrollXMove = this.scrollXMove + this.hScrollBar_mc.getScrollPosition();
this.scrollYMove = this.scrollYMove + this.vScrollBar_mc.getScrollPosition();
this.setScrollPosition(this.scrollXMove, this.scrollYMove);
if ((this.scrollXMove < this.hScrollBar_mc.maxPos) && (this.scrollXMove > this.hScrollBar_mc.minPos)) {
this.lastX = this._xmouse;
}
if ((this.scrollYMove < this.vScrollBar_mc.maxPos) && (this.scrollYMove > this.vScrollBar_mc.minPos)) {
this.lastY = this._ymouse;
}
this.updateAfterEvent();
};
};
FScrollPaneClass.prototype.initScrollBars = function () {
this.hScrollBar_mc._y = this.height - this.hScrollBar_mc._height;
this.hScrollBar_mc.setSize(this.hWidth);
this.hScrollBar_mc.setScrollProperties(this.hWidth, 0, this.contentWidth - this.hWidth);
this.vScrollBar_mc._visible = ((this.hWidth == this.width) ? false : true);
this.vScrollBar_mc._x = this.width - this.vScrollBar_mc._width;
this.vScrollBar_mc.setSize(this.vHeight);
this.vScrollBar_mc.setScrollProperties(this.vHeight, 0, this.contentHeight - this.vHeight);
this.hScrollBar_mc._visible = ((this.vHeight == this.height) ? false : true);
};
FScrollPaneClass.prototype.onScroll = function (component) {
var pos = component.getScrollPosition();
var XorY = ((component._name == "hScrollBar_mc") ? "x" : "y");
if (component._name == "hScrollBar_mc") {
this.content_mc._x = (-pos) + this.offset.x;
} else {
this.content_mc._y = (-pos) + this.offset.y;
}
};
FScrollPaneClass.prototype.myOnKeyDown = function () {
var posX = this.hScrollBar_mc.getScrollPosition();
var posY = this.vScrollBar_mc.getScrollPosition();
if (this.hScrollBar_mc.maxPos > this.hScrollBar_mc.minPos) {
if (Key.isDown(37)) {
this.setScrollPosition(posX - 3, posY);
} else if (Key.isDown(39)) {
this.setScrollPosition(posX + 3, posY);
}
}
if (this.vScrollBar_mc.maxPos > this.vScrollBar_mc.minPos) {
if (Key.isDown(38)) {
this.setScrollPosition(posX, posY - 3);
} else if (Key.isDown(40)) {
this.setScrollPosition(posX, posY + 3);
} else if (Key.isDown(34)) {
this.setScrollPosition(posX, posY + this.vScrollBar_mc.pageSize);
} else if (Key.isDown(33)) {
this.setScrollPosition(posX, posY - this.vScrollBar_mc.pageSize);
}
}
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 214 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 326 MovieClip [FScrollPaneSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
Instance of Symbol 310 MovieClip [FBoundingBoxSymbol] "boundingBox_mc" in Symbol 326 MovieClip [FScrollPaneSymbol] Frame 1
onClipEvent (load) {
if (_parent.showBg == false) {
_visible = false;
}
}
Instance of Symbol 327 MovieClip "loadContent" in Symbol 326 MovieClip [FScrollPaneSymbol] Frame 1
onClipEvent (load) {
if (this._parent.loadReady) {
this._parent.contentLoaded();
delete this._parent.loadReady;
} else if (this._name != "loadContent") {
this._parent.loadReady = true;
}
}
Symbol 335 MovieClip Frame 1
stop();
Symbol 334 MovieClip Frame 1
stop();
Symbol 360 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 1
function skinIt() {
if (theTitleVar == true) {
textBox.text = eval (theTitle);
} else {
textBox.text = theTitle;
}
margin = 4;
textBox._width = theGlobalWidth;
sideWidth = btn_right._width;
btn_right._x = theGlobalWidth - sideWidth;
btn_mid._width = theGlobalWidth - (2 * sideWidth);
textBox._x = ((theGlobalWidth / 2) - (textBox.textWidth / 2)) - (margin / 2);
}
function activate() {
isActive = true;
gotoAndStop (1);
}
function deactivate() {
isActive = false;
gotoAndStop (4);
}
theGlobalWidth = this._width;
this._xscale = 100;
this._yscale = 100;
skinIt();
if (isActive == false) {
btn_left.gotoAndStop(4);
btn_mid.gotoAndStop(4);
btn_right.gotoAndStop(4);
} else {
stop();
this.onRollOver = function () {
btn_left.gotoAndStop(2);
btn_mid.gotoAndStop(2);
btn_right.gotoAndStop(2);
};
this.onRollOut = function () {
btn_left.gotoAndStop(1);
btn_mid.gotoAndStop(1);
btn_right.gotoAndStop(1);
};
this.onPress = function () {
btn_left.gotoAndStop(3);
btn_mid.gotoAndStop(3);
btn_right.gotoAndStop(3);
};
this.onMouseUp = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
btn_left.gotoAndStop(2);
btn_mid.gotoAndStop(2);
btn_right.gotoAndStop(2);
} else {
btn_left.gotoAndStop(1);
btn_mid.gotoAndStop(1);
btn_right.gotoAndStop(1);
}
};
}
stop();
Symbol 356 MovieClip Frame 1
stop();
Instance of Symbol 359 MovieClip in Symbol 356 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
theTitle = "Todays Best";
theTitleVar = false;
isActive = true;
}
on (release) {
_parent._parent.hiscoreList.HISCORETYPE = "day";
_parent._parent.hiscoreList.fillList();
soundPlayer.playSound("btn_default");
_parent.gotoAndStop("day");
}
on (rollOver) {
soundPlayer.playSound("btn_rollover");
}
Instance of Symbol 359 MovieClip in Symbol 356 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
theTitle = "Alltime";
theTitleVar = false;
isActive = false;
}
Instance of Symbol 326 MovieClip [FScrollPaneSymbol] "scrollPane" in Symbol 375 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
scrollContent = "lib_list";
hScroll = false;
vScroll = "auto";
dragContent = true;
showBg = false;
}
Symbol 353 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 10
if (gotScores) {
trace("#############gotscores:: " + gotscores);
this.gotoAndStop("showit");
}
Instance of Symbol 375 MovieClip "hiscoreList" in Symbol 353 MovieClip Frame 10
onClipEvent (load) {
function fillList() {
trace("::::: fill list :::: HISCORETYPE = " + HISCORETYPE);
row = new Array();
var mcHolder = scrollPane.getScrollContent();
trace("scrollPane content holder mc name:: " + mcHolder);
var t = 0;
while (t < 30) {
removeMovieClip(eval ("mcHolder.row" + t));
t++;
}
posi = 2;
if (HISCORETYPE == "day") {
var scores = backend.todayScores;
} else {
var scores = backend.alltimeScores;
}
var t = 0;
while (t < scores.length) {
mcHolder.attachMovie("textrow", "row" + t, t);
row[t] = eval ("mcHolder.row" + t);
trace((("Name : " + scores[t].name) + ", Score : ") + scores[t].score);
row[t].number = t + 1;
row[t].name = scores[t].name;
row[t].score = scores[t].score;
row[t]._y = posi;
row[t].um._visible = false;
posi = posi + 15;
t++;
}
scrollPane.refreshPane();
}
HISCORETYPE == "alltime";
}
Symbol 353 MovieClip Frame 11
gotoAndPlay (10);
Symbol 353 MovieClip Frame 14
trace("--------at frame showit!!! ----");
hiscoreList.fillList();
stop();
Symbol 353 MovieClip Frame 25
_parent.startNewGame();
Symbol 393 Button
on (release) {
_level0.efx.playEfx("click2");
_parent.startScreen.gotoAndPlay("animoff");
}
on (rollOver) {
_level0.efx.playEfx("click2");
}
Symbol 397 Button
on (release) {
_level0.efx.playEfx("click2");
_parent.howtoplay.play();
}
on (rollOver) {
_level0.efx.playEfx("click2");
}
Instance of Symbol 359 MovieClip in Symbol 376 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
theTitle = "Start Game";
theTitleVar = false;
isActive = true;
}
on (release) {
soundPlayer.playSound("btn_startgame");
_parent._parent.startScreen.gotoAndPlay("animoff");
}
on (rollOver) {
soundPlayer.playSound("btn_rollover");
}
Instance of Symbol 359 MovieClip in Symbol 376 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
theTitle = "How to Play";
theTitleVar = false;
isActive = true;
}
on (release) {
soundPlayer.playSound("btn_default");
_parent._parent.howtoplay.play();
}
on (rollOver) {
soundPlayer.playSound("btn_rollover");
}
Symbol 403 MovieClip Frame 1
nCharacterCount = 34;
nFrameCount = 5;
nRadius = 110;
nInterval = 5;
nAlphaSpeed = 3;
function fadeout() {
if (c1._alpha < 0) {
gotoAndPlay (1);
}
i = 1;
while (nCharacterCount >= i) {
this["c" + i]._alpha = this["c" + i]._alpha - nAlphaSpeed;
this[("cc" + i) + i]._alpha = this[("cc" + i) + i]._alpha - nAlphaSpeed;
i++;
}
}
function FadeoutAgain() {
gotoAndPlay (4);
}
function IsAllCharacterEnd() {
bIsEnd = true;
n = 1;
while (nCharacterCount >= n) {
if (this["c" + n]._alpha != 100) {
bIsEnd = 0;
break;
}
n++;
}
if (bIsEnd) {
gotoAndPlay (4);
}
}
function fun() {
i = 1;
while (nCharacterCount >= i) {
if (nIsRun[i - 1] >= 0) {
nIsrun[i - 1]--;
} else {
this["c" + i]._visible = true;
this[("cc" + i) + i]._visible = true;
(IsAllCharacterEnd());// not popped
this["c" + i]._x = (Math.cos((Math.PI / 180) * nRotateArray[i - 1]) * nRadiusArray[i - 1]) + nOldPosX[i - 1];
this[("cc" + i) + i]._x = (Math.cos((Math.PI / 180) * (360 - nRotateArray[i - 1])) * nRadiusArray[i - 1]) + nOldPosX[i - 1];
this["c" + i]._y = (Math.sin((Math.PI / 180) * nRotateArray[i - 1]) * nRadiusArray[i - 1]) + nOldPosY[i - 1];
this[("cc" + i) + i]._y = (Math.sin((Math.PI / 180) * (360 - nRotateArray[i - 1])) * nRadiusArray[i - 1]) + nOldPosY[i - 1];
if ((nCharacterCount / 2) < i) {
nRotateArray[i - 1] = nRotateArray[i - 1] - 5;
if (nRotateArray[i - 1] < 180) {
this["c" + i]._alpha = 100;
this[("cc" + i) + i]._alpha = 100;
nRotateArray[i - 1] = 180;
}
} else {
nRotateArray[i - 1] = nRotateArray[i - 1] + 5;
if (360 < nRotateArray[i - 1]) {
this["c" + i]._alpha = 100;
this[("cc" + i) + i]._alpha = 100;
nRotateArray[i - 1] = 360;
}
}
}
i++;
}
}
function again() {
gotoAndPlay (2);
}
nIsRun = new Array(nCharacterCount);
nRotateArray = new Array(nCharacterCount);
nRadiusArray = new Array(nCharacterCount);
nCentreX = new Array(nCharacterCount);
nCentreY = new Array(nCharacterCount);
nOldPosX = new Array(nCharacterCount);
nOldPosY = new Array(nCharacterCount);
i = 1;
while (nCharacterCount >= i) {
if ((nCharacterCount / 2) < i) {
nRotateArray[i - 1] = 315;
} else {
nRotateArray[i - 1] = 225;
}
nRadiusArray[i - 1] = nRadius;
if ((nCharacterCount / 2) < i) {
this["c" + i]._x = this["c" + i]._x + nRadius;
} else {
this["c" + i]._x = this["c" + i]._x - nRadius;
}
nOldPosX[i - 1] = this["c" + i]._x;
nOldPosY[i - 1] = this["c" + i]._y;
if (!((i == 1) || (i == nCharacterCount))) {
if ((nCharacterCount / 2) < i) {
multiple = nCharacterCount - i;
nIsRun[i - 1] = multiple * nInterval;
} else {
nIsRun[i - 1] = nIsRun[i - 2];
nIsRun[i - 1] = nIsRun[i - 1] + nInterval;
}
} else {
nIsRun[0] = 0;
nIsRun[nCharacterCount - 1] = 0;
}
this["c" + i]._alpha = 50;
this["c" + i].duplicatemovieclip(("cc" + i) + i, i);
this[("cc" + i) + i]._y = this[("cc" + i) + i]._y + nRadius;
this["c" + i]._y = this["c" + i]._y - nRadius;
this["c" + i]._visible = false;
this[("cc" + i) + i]._visible = false;
i++;
}
fun();
Symbol 403 MovieClip Frame 2
fun();
Symbol 403 MovieClip Frame 3
again();
Symbol 403 MovieClip Frame 4
fadeout();
Symbol 403 MovieClip Frame 5
FadeoutAgain();
Symbol 493 MovieClip Frame 1
stop();
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onPress = function () {
gotoAndStop (3);
};
this.onMouseUp = function () {
gotoAndStop (1);
};
Symbol 474 MovieClip Frame 1
function activateHitArea(flag) {
if (allowBtns == false) {
this[flag].useHandCursor = false;
this[flag].onRelease = function () {
};
}
}
theGlobalWidth = this._width;
theGlobalHeight = this._height;
this._xscale = 100;
this._yscale = 100;
errorMargin = 0.05;
unitWidth = topright._width;
botUnitHeight = botleft._height;
topUnitHeight = topright._height;
centerWidth = theGlobalWidth - (2 * unitWidth);
centerHeight = theGlobalHeight;
textBox.theHeader = theHeader;
textBox._width = (centerWidth + unitWidth) - 3;
top._width = centerWidth;
topright._x = (centerWidth + unitWidth) - errorMargin;
right._x = (centerWidth + unitWidth) - errorMargin;
fill._width = centerWidth;
botright._x = (centerWidth + unitWidth) - errorMargin;
bot._width = centerWidth;
btnClose._x = centerWidth + unitWidth;
left._height = (centerHeight - topUnitHeight) - botUnitHeight;
botleft._y = centerHeight - botUnitHeight;
bot._y = centerHeight - botUnitHeight;
botright._y = centerHeight - botUnitHeight;
right._height = (centerHeight - topUnitHeight) - botUnitHeight;
fill._height = (centerHeight - topUnitHeight) - botUnitHeight;
if (closableWindow != true) {
btnClose._visible = false;
}
if (closableWindow == true) {
btnClose._visible = true;
}
_root.$frontDepth = 100;
_global.swapInFront = function (movie) {
movie.swapDepths(++_root.$frontDepth);
};
if (bringForth == true) {
_global.doStuff = function (movie) {
swapInFront(movie);
};
fill.onPress = function () {
doStuff(this._parent);
};
right.onPress = function () {
doStuff(this._parent);
};
left.onPress = function () {
doStuff(this._parent);
};
bot.onPress = function () {
doStuff(this._parent);
};
top.onPress = function () {
doStuff(this._parent);
};
topright.onPress = function () {
doStuff(this._parent);
};
topleft.onPress = function () {
doStuff(this._parent);
};
botleft.onPress = function () {
doStuff(this._parent);
};
botright.onPress = function () {
doStuff(this._parent);
};
}
if (draggableWin == true) {
_global.dragMe = function (movie) {
movie.startDrag();
};
_global.releaseMe = function (movie) {
trace("heps");
movie.stopDrag();
};
topleft.onPress = function () {
dragMe(this._parent);
};
topright.onPress = function () {
dragMe(this._parent);
};
top.onPress = function () {
dragMe(this._parent);
};
topleft.onRelease = function () {
releaseMe(this._parent);
};
topright.onRelease = function () {
releaseMe(this._parent);
};
top.onRelease = function () {
releaseMe(this._parent);
};
}
Instance of Symbol 475 MovieClip in Symbol 474 MovieClip Frame 1
onClipEvent (load) {
_parent.activateHitArea(_name);
this.tabEnabled = false;
}
Instance of Symbol 482 MovieClip "left" in Symbol 474 MovieClip Frame 1
onClipEvent (load) {
_parent.activateHitArea(_name);
this.tabEnabled = false;
}
Instance of Symbol 484 MovieClip "top" in Symbol 474 MovieClip Frame 1
onClipEvent (load) {
_parent.activateHitArea(_name);
this.tabEnabled = false;
}
Instance of Symbol 486 MovieClip "fill" in Symbol 474 MovieClip Frame 1
onClipEvent (load) {
_parent.activateHitArea(_name);
this.tabEnabled = false;
}
Instance of Symbol 475 MovieClip "topright" in Symbol 474 MovieClip Frame 1
onClipEvent (load) {
_parent.activateHitArea(_name);
this.tabEnabled = false;
}
Instance of Symbol 482 MovieClip "right" in Symbol 474 MovieClip Frame 1
onClipEvent (load) {
_parent.activateHitArea(_name);
this.tabEnabled = false;
}
Instance of Symbol 487 MovieClip "botleft" in Symbol 474 MovieClip Frame 1
onClipEvent (load) {
_parent.activateHitArea(_name);
this.tabEnabled = false;
}
Instance of Symbol 490 MovieClip "bot" in Symbol 474 MovieClip Frame 1
onClipEvent (load) {
_parent.activateHitArea(_name);
this.tabEnabled = false;
}
Instance of Symbol 487 MovieClip "botright" in Symbol 474 MovieClip Frame 1
onClipEvent (load) {
_parent.activateHitArea(_name);
this.tabEnabled = false;
}
Instance of Symbol 493 MovieClip "btnClose" in Symbol 474 MovieClip Frame 1
on (release) {
eval (["_parent." + _parent.closeFunction])();
}
Symbol 504 MovieClip Frame 1
stop();
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onPress = function () {
gotoAndStop (3);
};
this.onMouseUp = function () {
gotoAndStop (1);
};
Symbol 473 MovieClip Frame 1
function closeWindow() {
_parent.gotoAndPlay("out");
}
stop();
Instance of Symbol 474 MovieClip in Symbol 473 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
theHeader = "How to Play";
closableWindow = true;
closeFunction = "_parent.closeWindow";
draggableWin = false;
bringForth = false;
allowBtns = false;
}
Instance of Symbol 504 MovieClip "btnClose" in Symbol 473 MovieClip Frame 1
on (release) {
_parent.play();
}
Instance of Symbol 504 MovieClip "btnClose" in Symbol 473 MovieClip Frame 1
on (release) {
_parent.gotoandstop(_parent._currentframe - 1);
}
Symbol 473 MovieClip Frame 2
stop();
Instance of Symbol 314 MovieClip in Symbol 473 MovieClip Frame 2
onClipEvent (load) {
var ran = (random(360) + 1);
this._rotation = ran;
}
Instance of Symbol 316 MovieClip in Symbol 473 MovieClip Frame 2
onClipEvent (load) {
var ran = (random(360) + 1);
this._rotation = ran;
}
Instance of Symbol 318 MovieClip in Symbol 473 MovieClip Frame 2
onClipEvent (load) {
var ran = (random(360) + 1);
this._rotation = ran;
}
Symbol 473 MovieClip Frame 3
stop();
Instance of Symbol 123 MovieClip in Symbol 473 MovieClip Frame 3
onClipEvent (load) {
var ran = (random(10) + 90);
this._alpha = ran;
}
Symbol 473 MovieClip Frame 4
stop();
Instance of Symbol 318 MovieClip in Symbol 473 MovieClip Frame 4
onClipEvent (load) {
var ran = (random(360) + 1);
this._rotation = ran;
}
Instance of Symbol 318 MovieClip in Symbol 473 MovieClip Frame 4
onClipEvent (load) {
var ran = (random(360) + 1);
this._rotation = ran;
}
Instance of Symbol 318 MovieClip in Symbol 473 MovieClip Frame 4
onClipEvent (load) {
var ran = (random(360) + 1);
this._rotation = ran;
}
Instance of Symbol 318 MovieClip in Symbol 473 MovieClip Frame 4
onClipEvent (load) {
var ran = (random(360) + 1);
this._rotation = ran;
}
Instance of Symbol 318 MovieClip in Symbol 473 MovieClip Frame 4
onClipEvent (load) {
var ran = (random(360) + 1);
this._rotation = ran;
}
Symbol 472 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 8
stop();
Instance of Symbol 525 MovieClip "marker0" in Symbol 524 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 525 MovieClip "marker1" in Symbol 524 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 529 MovieClip Frame 1
stop();
Instance of Symbol 311 MovieClip [food] "diamond0" in Symbol 529 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 311 MovieClip [food] "diamond1" in Symbol 529 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 311 MovieClip [food] "diamond2" in Symbol 529 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 311 MovieClip [food] "diamond3" in Symbol 529 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 311 MovieClip [food] "diamond4" in Symbol 529 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 541 MovieClip Frame 1
stop();
Instance of Symbol 547 MovieClip "line" in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 556 MovieClip Frame 1
this._x = Math.round(this._x);
this._y = Math.round(this._y);
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.startDrag();
}
};
this.onMouseUp = (function () {
this.stopDrag();
}.oldTime = getTimer());
count = 0;
Symbol 556 MovieClip Frame 2
count++;
if (count >= interval) {
newTime = getTimer();
framerate = Math.round((1000 / (newTime - oldTime)) * count);
oldTime = newTime;
count = 0;
}
Symbol 556 MovieClip Frame 3
gotoAndPlay(_currentframe - 1);
Symbol 563 Button
on (release) {
_parent.addBodypiece("decrease");
}
Symbol 565 Button
on (release) {
_parent.addBodypiece("add");
}
Symbol 562 MovieClip Frame 1
stop();
Symbol 570 MovieClip Frame 1
stop();
Symbol 570 MovieClip Frame 2
this.play();
Symbol 570 MovieClip Frame 13
if (_parent.gameState == 1) {
_parent.gameState == 2;
}
stop();
Symbol 570 MovieClip Frame 14
this.play();
trace("onnnnnnnnnnnnnnnnnnnn");
Symbol 570 MovieClip Frame 23
if (_parent.gameState == 3) {
_parent.cleanLevel();
}
if (_parent.gameState == 4) {
trace("k\u00F8rere celanlevel");
_parent.cleanLevel();
mouse.show();
_parent.gameDone();
gameState = 10;
}
stop();
Symbol 573 MovieClip Frame 1
stop();
Symbol 573 MovieClip Frame 5
level = _parent.lvl;
this.play();
Symbol 573 MovieClip Frame 22
this.gotoandstop(1);
Symbol 573 MovieClip Frame 24
level = "GREAT BONUS ROUND";
this.play();
Symbol 573 MovieClip Frame 41
this.gotoandstop(1);
Symbol 581 MovieClip Frame 1
stop();
Symbol 581 MovieClip Frame 5
soundPlayer.playSound("stats");
Instance of Symbol 359 MovieClip in Symbol 581 MovieClip Frame 5
//component parameters
onClipEvent (initialize) {
theTitle = "Go on!";
theTitleVar = false;
isActive = true;
}
on (release) {
soundPlayer.playSound("btn_default");
_parent._parent.newLevelStart();
_parent.gotoandstop(1);
_parent._parent.fader.gotoAndPlay("off");
}
on (rollOver) {
soundPlayer.playSound("btn_rollover");
}
Symbol 581 MovieClip Frame 6
stop();
_parent.showStats();
level = _parent.lvl;
bodyTotal = _parent.lostLevel;
score = _parent.statusbar.score.txtscore;
minusBonus = bodyTotal * -300;
perfectBonus = _parent.perfectBonus;
perfectBonusTotal = perfectBonus * 1000;
totalScore = (score + minusBonus) + perfectBonusTotal;
_parent.score = totalScore;
_parent.statusbar.score.txtscore = totalScore;
Symbol 668 Button
on (release) {
this.gotoandplay("splash");
}
Symbol 522 MovieClip Frame 1
this._quality = "HIGH";
Symbol 522 MovieClip Frame 4
stop();
initGame();
Instance of Symbol 556 MovieClip in Symbol 522 MovieClip Frame 4
//component parameters
onClipEvent (initialize) {
interval = 10;
}
Symbol 522 MovieClip Frame 13
stop();
score = statusbar.score.txtscore;
_level0.score = score;
_level0.gotoAndStop("gameover");
Instance of Symbol 359 MovieClip in Symbol 682 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
theTitle = "View Scores";
theTitleVar = false;
isActive = true;
}
on (release) {
_parent._parent.game.disableCount = 222;
_parent._parent._parent.game.disableCount = 222;
_parent.game.disableCount = 222;
}
Instance of Symbol 359 MovieClip in Symbol 682 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
theTitle = "Restart";
theTitleVar = false;
isActive = true;
}
on (release) {
_level0.efx.playEfx("click2");
_parent._parent.gotoAndPlay(17);
}
on (rollOver) {
_level0.efx.playEfx("click2");
}
Symbol 690 MovieClip Frame 1
stop();
Symbol 697 MovieClip Frame 1
stop();
Symbol 683 MovieClip Frame 1
function checkScoreDone(obj) {
trace("\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A44444 checkScoreDone()... ");
onList = obj.onList;
better = obj.betterThanOwnScore;
current = obj.currentOwnScore;
pos = obj.positionYouWouldGet;
bTrace("better: " + better);
bTrace("onlist: " + onlist);
bTrace("pos: " + pos);
bTrace("current: " + current);
this.gotoAndStop("showscore");
}
function setScoreDone(arg) {
trace("\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A4\u00A44444 setScoreDone()... ");
if (arg) {
} else {
trace("#### some sort of error occurred..");
}
}
backend.doScore(_level0.score);
userScore = _level0.score;
stop();
Instance of Symbol 474 MovieClip in Symbol 683 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
theHeader = "Game over";
closableWindow = true;
closeFunction = "closeWindow";
draggableWin = false;
bringForth = false;
allowBtns = false;
}
onClipEvent (load) {
function closeWindow() {
_parent._parent.gotoAndStop("startScreen");
}
}
Symbol 683 MovieClip Frame 8
trace("at 'showresults' label");
trace("better: " + better);
trace("onlist: " + onlist);
trace("pos: " + pos);
trace("current: " + current);
if (current < 0) {
this.gotoAndStop("firstScore");
} else {
if (better) {
improved.gotoAndStop(1);
if (current == userScore) {
improved.gotoAndStop(3);
}
} else {
improved.gotoAndStop(2);
}
if (onlist) {
listComment.gotoAndStop(1);
} else {
listComment.gotoAndStop(2);
}
}
Symbol 706 Button
on (release) {
gname = "michu";
gscore = score;
getURL ("index.php?act=Arcade&do=newscore", "_self", "POST");
stop();
}