Instance of Symbol 200 MovieClip "preload" in Frame 93
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 94
system.useCodePage = true;
this._quality = "MEDIUM";
loadVariables ("config.txt", this);
preload.addToPreloadQueue(this);
stop();
langID = "UK";
loadVariables ("language_UK.txt", this);
Instance of Symbol 207 MovieClip "main" in Frame 98
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 248 MovieClip "startScreen" in Frame 98
onClipEvent (load) {
function scoresArrived() {
trace("--------------- startScreen.scoresArrived() --------------------- ");
gotScores = true;
}
HISCORETYPE = "day";
gotScores = false;
}
Instance of Symbol 251 MovieClip "backend" in Frame 98
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");
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;
}
}
Frame 99
function startNewGame() {
trace("... startNewGame()...");
level = 1;
score = (targetScore = 0);
gotoAndStop (109);
}
function abortGame() {
trace("... abortGame()...");
this.gotoAndPlay(18);
}
function setScore(val) {
_level0.score = val;
}
this._quality = "HIGH";
trace("at startscreen");
startScreen.gotoAndPlay("animon");
stop();
Instance of Symbol 245 MovieClip in Frame 99
//component parameters
onClipEvent (initialize) {
theTitle = "New Game";
theTitleVar = false;
isActive = true;
}
on (release) {
_level0.efx.playEfx("click2");
_parent.startScreen.gotoAndPlay("animoff");
}
on (rollOver) {
_level0.efx.playEfx("click2");
}
Instance of Symbol 245 MovieClip in Frame 99
//component parameters
onClipEvent (initialize) {
theTitle = "How to Play";
theTitleVar = false;
isActive = true;
}
on (release) {
_level0.efx.playEfx("click2");
_parent.howtoplay.play();
}
on (rollOver) {
_level0.efx.playEfx("click2");
}
Frame 109
this._quality = "LOW";
game._visible = true;
Instance of Symbol 245 MovieClip in Frame 109
//component parameters
onClipEvent (initialize) {
theTitle = "New game";
theTitleVar = false;
isActive = true;
}
on (release) {
_level0.gotoAndStop("startScreen");
}
on (rollOver) {
_level0.efx.playEfx("click2");
}
Frame 117
gameover.gotoAndPlay("animon");
this._quality = "HIGH";
Symbol 4 MovieClip Frame 1
stop();
Symbol 11 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 18 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 25 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 26 MovieClip [UpArrow] Frame 1
stop();
this.onRollOver = function () {
gotoAndStop (4);
};
this.onRollOut = function () {
gotoAndStop (1);
};
Symbol 33 MovieClip Frame 1
stop();
Symbol 34 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 44 MovieClip Frame 1
stop();
Symbol 45 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 49 MovieClip Frame 1
stop();
Symbol 52 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 53 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 54 MovieClip Frame 1
stop();
Symbol 60 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 66 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 73 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 74 MovieClip [DownArrow] Frame 1
stop();
this.onRollOver = function () {
gotoAndStop (4);
};
this.onRollOut = function () {
gotoAndStop (1);
};
Symbol 82 Button
on (release) {
if (_parent.size == "large") {
_parent.gotoAndStop(3);
}
if (_parent.size == "small") {
_parent.gotoAndStop(2);
}
}
Symbol 85 Button
on (press) {
_parent.startDrag();
}
on (release, releaseOutside) {
_parent.stopDrag();
}
Symbol 92 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 93 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 98 Button
on (press) {
listMovieClips(_root, 1);
}
Symbol 106 Button
on (release) {
_parent.gotoAndStop(1);
}
Symbol 110 Button
on (press) {
_parent.query();
}
Symbol 113 Button
on (press) {
_parent.line = 1;
_parent.debug.text = "";
}
Symbol 116 Button
on (press) {
_parent.stopLog = true;
nextFrame();
}
Symbol 118 Button
on (press) {
_parent.stopLog = false;
prevFrame();
}
Symbol 120 MovieClip Frame 1
stop();
Symbol 123 Button
on (release) {
_parent.size = "large";
_parent.gotoAndStop(3);
}
Symbol 129 Button
on (release) {
_parent.size = "small";
_parent.gotoAndStop(2);
}
Symbol 131 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 93 MovieClip [FScrollBarSymbol] "scrollbar" in Symbol 131 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 131 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 104 MovieClip in Symbol 131 MovieClip [log] Frame 2
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (!clicked)) {
_parent.lastTxt = "";
clicked = true;
}
}
Symbol 131 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 143 MovieClip Frame 1
stop();
Symbol 144 MovieClip [pointsMC] Frame 25
this._visible = false;
this.gotoAndStop(1);
Symbol 155 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 158 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 161 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 163 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 166 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "foregroundDisabled");
Symbol 169 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "check");
Symbol 170 MovieClip [fcb_states] Frame 1
stop();
Symbol 170 MovieClip [fcb_states] Frame 2
stop();
Symbol 170 MovieClip [fcb_states] Frame 3
stop();
Symbol 170 MovieClip [fcb_states] Frame 4
stop();
Symbol 170 MovieClip [fcb_states] Frame 5
stop();
Symbol 170 MovieClip [fcb_states] Frame 6
stop();
Symbol 173 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 174 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 177 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 177 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 180 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 184 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 93 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 184 MovieClip [FScrollPaneSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
Instance of Symbol 177 MovieClip [FBoundingBoxSymbol] "boundingBox_mc" in Symbol 184 MovieClip [FScrollPaneSymbol] Frame 1
onClipEvent (load) {
if (_parent.showBg == false) {
_visible = false;
}
}
Instance of Symbol 181 MovieClip "loadContent" in Symbol 184 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 189 Button
on (release) {
_parent.play();
}
on (keyPress "<Space>") {
_parent.play();
}
Symbol 193 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 1
stop();
Symbol 231 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 232 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 216 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
_parent.activateHitArea(_name);
this.tabEnabled = false;
}
Instance of Symbol 218 MovieClip "left" in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
_parent.activateHitArea(_name);
this.tabEnabled = false;
}
Instance of Symbol 220 MovieClip "top" in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
_parent.activateHitArea(_name);
this.tabEnabled = false;
}
Instance of Symbol 221 MovieClip "fill" in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
_parent.activateHitArea(_name);
this.tabEnabled = false;
}
Instance of Symbol 216 MovieClip "topright" in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
_parent.activateHitArea(_name);
this.tabEnabled = false;
}
Instance of Symbol 218 MovieClip "right" in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
_parent.activateHitArea(_name);
this.tabEnabled = false;
}
Instance of Symbol 224 MovieClip "botleft" in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
_parent.activateHitArea(_name);
this.tabEnabled = false;
}
Instance of Symbol 225 MovieClip "bot" in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
_parent.activateHitArea(_name);
this.tabEnabled = false;
}
Instance of Symbol 224 MovieClip "botright" in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
_parent.activateHitArea(_name);
this.tabEnabled = false;
}
Instance of Symbol 231 MovieClip "btnClose" in Symbol 232 MovieClip Frame 1
on (release) {
eval (["_parent." + _parent.closeFunction])();
}
Symbol 237 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 1
stop();
Symbol 245 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 246 MovieClip Frame 1
stop();
Instance of Symbol 232 MovieClip in Symbol 246 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
theHeader = "Best Players of All time";
closableWindow = false;
closeFunction = "_parent.closeWindow";
draggableWin = false;
bringForth = false;
allowBtns = false;
}
Instance of Symbol 245 MovieClip in Symbol 246 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();
_level0.efx.playEfx("click2");
_parent.gotoAndStop("day");
}
on (rollOver) {
_level0.efx.playEfx("click2");
}
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
theTitle = "Alltime";
theTitleVar = false;
isActive = false;
}
Instance of Symbol 232 MovieClip in Symbol 246 MovieClip Frame 7
//component parameters
onClipEvent (initialize) {
theHeader = "Best Players of Today";
closableWindow = false;
closeFunction = "_parent.closeWindow";
draggableWin = false;
bringForth = false;
allowBtns = false;
}
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 7
//component parameters
onClipEvent (initialize) {
theTitle = "Todays Best";
theTitleVar = false;
isActive = false;
}
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 7
//component parameters
onClipEvent (initialize) {
theTitle = "Alltime";
theTitleVar = false;
isActive = true;
}
on (release) {
_parent._parent.hiscoreList.HISCORETYPE = "alltime";
_parent._parent.hiscoreList.fillList();
_level0.efx.playEfx("click2");
_parent.gotoAndStop("alltime");
}
on (rollOver) {
_level0.efx.playEfx("click2");
}
Instance of Symbol 184 MovieClip [FScrollPaneSymbol] "scrollPane" in Symbol 247 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
scrollContent = "lib_list";
hScroll = false;
vScroll = "auto";
dragContent = true;
showBg = false;
}
Symbol 248 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 10
if (gotScores) {
trace("#############gotscores:: " + gotscores);
this.gotoAndStop("showit");
}
Instance of Symbol 247 MovieClip "hiscoreList" in Symbol 248 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 248 MovieClip Frame 11
gotoAndPlay (10);
Symbol 248 MovieClip Frame 14
trace("--------at frame showit!!! ----");
hiscoreList.fillList();
stop();
Symbol 248 MovieClip Frame 25
_parent.startNewGame();
Symbol 259 MovieClip Frame 1
function closeWindow() {
_parent.gotoAndPlay("out");
}
Instance of Symbol 232 MovieClip in Symbol 259 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
theHeader = "How to Play";
closableWindow = true;
closeFunction = "_parent.closeWindow";
draggableWin = false;
bringForth = false;
allowBtns = false;
}
Symbol 261 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 8
stop();
Symbol 263 Button
on (release) {
gotoAndPlay (27);
}
on (keyPress "<Space>") {
gotoAndPlay (27);
}
Symbol 267 Button
on (keyPress "r") {
gotoAndStop (133);
}
on (keyPress "q") {
score = 300 + Number(random(10));
gotoAndStop (140);
}
Symbol 268 Button
on (keyPress "x") {
fscommand ("quit");
}
on (keyPress "<Escape>") {
fscommand ("quit");
}
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 8
stop();
Symbol 288 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 4
if (state != "dead") {
ShipX = ShipX + ((Rkey + Lkey) * speed);
if (ShipX > ShipXmax) {
ShipX = ShipXmax;
ShipSpeed = 0;
}
if (ShipX < ShipXmin) {
ShipX = ShipXmin;
ShipSpeed = 0;
}
_x = Math.round(ShipX);
if (Key.isDown(39)) {
Rkey = 1;
} else {
Rkey = 0;
}
if (Key.isDown(37)) {
Lkey = -1;
} else {
Lkey = 0;
}
if (Key.isDown(38) || (Key.isDown(32))) {
if (shootOK) {
shootOK = false;
call("..:shoot");
}
} else {
shootOK = true;
}
}
Symbol 288 MovieClip Frame 5
gotoAndPlay (4);
Symbol 288 MovieClip Frame 49
call("..:KillShip");
stop();
Symbol 289 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 1
Y = Y - speed;
if (type eq "player") {
if (Number(Y) < 0) {
stop();
Set("..:KillShotID", id);
call("..:KillShot");
}
b = 1;
var xsize = 15;
var ysize = 10;
while (Number(b) <= 3) {
xdist = X - getProperty("../block" add b, _x);
ydist = Y - getProperty("../block" add b, _y);
if ((Number(xdist) < xsize) and (Number(xdist) > Number(-xsize))) {
if ((Number(ydist) < ysize) and (Number(ydist) > Number(-ysize))) {
tellTarget ("../sounds") {
gotoAndPlay ("hitblock");
};
stop();
Set("..:KillShotID", id);
call("..:KillShot");
}
}
b = Number(b) + 1;
}
e = 1;
var xsize = 7;
var ysize = 8;
while (e <= ..:nbEnemies) {
xdist = X - eval (("../enemy" add e) add ":X");
ydist = Y - eval (("../enemy" add e) add ":Y");
if ((ydist < xsize) and (ydist > (-xsize))) {
if ((xdist < ysize) and (xdist > (-ysize))) {
if (eval (("../enemy" add e) add ":state") ne "dead") {
trace("enemy was hit.................");
Set("..:EkillID", e);
call("..:KillEnemy");
stop();
Set("..:KillShotID", id);
call("..:KillShot");
}
}
}
e = e + 1;
}
} else if (type eq "enemy") {
if (Number(Y) > 216) {
stop();
Set("..:KillShotID", id);
call("..:KillShot");
}
b = 1;
while (Number(b) <= 3) {
xdist = X - getProperty("../block" add b, _x);
ydist = Y - getProperty("../block" add b, _y);
var xsize = 15;
var ysize = 8;
if ((Number(xdist) < xsize) and (Number(xdist) > Number(-xsize))) {
if ((Number(ydist) < ysize) and (Number(ydist) > Number(-ysize))) {
var tmpShot = eval ("_parent.shot" + id);
var tmpBlock = eval ("_parent.block" + b);
sliceID = Math.round(((15 + tmpShot._X) - tmpBlock._x) / 2);
trace("sliceID: " + sliceID);
var tmpSlice = eval ((("_parent.block" + b) + ".slice") + sliceID);
if (tmpSlice.val < 10) {
trace("sdfsdfsdf : " + tmpSlice._name);
tmpSlice.val = tmpSlice.val + 2;
tmpSlice.gotoAndStop(tmpSlice.val);
stop();
Set("..:KillShotID", id);
call("..:KillShot");
tellTarget ("../sounds") {
gotoAndPlay ("hitblock");
};
}
}
}
b = Number(b) + 1;
}
var xsize = 7;
var ysize = 7;
xdist = X - ../ship:ShipX;
ydist = Y - ../ship:ShipY;
if ((ydist < xsize) && (ydist > (-xsize))) {
if ((xdist < ysize) && (xdist > (-ysize))) {
if (../ship:state ne "dead") {
trace("Enemy-Shot killed player!!!!");
tellTarget ("../Ship") {
gotoAndPlay ("explode");
state = "dead";
};
stop();
Set("..:KillShotID", id);
call("..:KillShot");
}
}
}
}
_y = Y;
if (..:UNLOADALL) {
this.removeMovieClip();
}
Symbol 290 MovieClip Frame 2
gotoAndPlay (1);
Symbol 301 MovieClip Frame 2
stop();
Symbol 301 MovieClip Frame 14
gotoAndStop (1);
Symbol 301 MovieClip Frame 28
gotoAndStop (1);
Symbol 301 MovieClip Frame 45
gotoAndStop (1);
Symbol 301 MovieClip Frame 56
gotoAndStop (1);
Symbol 301 MovieClip Frame 64
gotoAndStop (1);
Symbol 301 MovieClip Frame 78
gotoAndStop (1);
Symbol 301 MovieClip Frame 90
gotoAndStop (1);
Symbol 301 MovieClip Frame 100
gotoAndStop (1);
Symbol 301 MovieClip Frame 113
gotoAndStop (1);
Symbol 301 MovieClip Frame 126
gotoAndStop (1);
Symbol 301 MovieClip Frame 137
gotoAndStop (1);
Symbol 301 MovieClip Frame 146
gotoAndStop (1);
Symbol 301 MovieClip Frame 156
gotoAndStop (1);
Symbol 307 MovieClip Frame 5
stop();
Symbol 308 MovieClip Frame 4
X = X + vel;
hitSpot = ../Ship:ShipX + (((../Ship:Rkey + ../Ship:Lkey) * ../Ship:speed) * ((../Ship:ShipY - Y) / ..:normalShotSpeed));
dist = hitSpot - X;
if ((Dist < 25) && (Dist > -25)) {
if (Number(random(100)) > ..:enemyShootFact) {
Set("..:EshooterID", id);
call("..:EShoot");
}
}
if (Number(X) > Number(Xmax)) {
X = Xmax;
vel = vel * -1;
Y = Number(Y) + Number(..:EYstep);
} else if (Number(X) < Number(Xmin)) {
vel = vel * -1;
ShipX = Xmin;
Y = Number(Y) + Number(..:EYstep);
}
if (Y > (Ymax - 80)) {
gotoAndPlay (11);
} else if (Y > Ymax) {
if (../ship:state ne "dead") {
tellTarget ("../ship") {
state = "dead";
gotoAndPlay ("explode");
};
}
}
_x = Math.round(X);
_y = Math.round(Y);
Symbol 308 MovieClip Frame 6
gotoAndPlay (4);
Symbol 308 MovieClip Frame 11
X = Number(X) + Number(vel);
if (Number(X) > Number(Xmax)) {
X = Xmax;
vel = (Number(vel * -1) * Number(Math.random())) * 1.8;
Y = Number(Y) + Number(..:EYstep);
}
if (Number(X) < Number(Xmin)) {
vel = vel * -1;
ShipX = Xmin;
Y = Number(Y) + Number(..:EYstep);
}
if (Y > Ymax) {
if (../ship:state ne "dead") {
tellTarget ("../ship") {
state = "dead";
gotoAndPlay ("explode");
};
}
}
_x = Math.round(X);
_y = Math.round(Y);
Symbol 308 MovieClip Frame 13
gotoAndPlay (11);
Symbol 308 MovieClip Frame 19
play();
Symbol 308 MovieClip Frame 26
call("..:UnloadE");
stop();
Symbol 308 MovieClip Frame 28
ShipSpeed = ShipSpeed - 1;
if (Number(ShipSpeed) < Number(-2)) {
ShipSpeed = -2;
}
Symbol 308 MovieClip Frame 30
ShipSpeed = Number(ShipSpeed) + 1;
if (Number(ShipSpeed) > 2) {
ShipSpeed = 2;
}
Symbol 313 MovieClip Frame 1
stop();
Symbol 314 MovieClip Frame 1
function duplic() {
var t = 2;
while (t < 15) {
duplicateMovieClip (slice1, "slice" + t, t);
var tmpMc = eval ("slice" + t);
tmpMc._x = slice1._x + ((t - 1) * 2);
tmpMc.val = 1;
t++;
}
}
duplic();
Symbol 326 MovieClip Frame 1
stop();
Symbol 326 MovieClip Frame 10
stop();
Symbol 326 MovieClip Frame 20
stop();
Symbol 326 MovieClip Frame 30
stop();
Symbol 326 MovieClip Frame 40
stop();
Symbol 326 MovieClip Frame 50
stop();
Symbol 326 MovieClip Frame 59
play();
Symbol 326 MovieClip Frame 69
stop();
Set("../..:KillPowID", ..:id);
call("../..:KillPowerUp");
Symbol 326 MovieClip Frame 72
BonusAmount = Number(random(50)) + 20;
Set("../..:score", Number(../..:score) + Number(BonusAmount));
Symbol 326 MovieClip Frame 88
Set("../..:KillPowID", ..:id);
call("../..:KillPowerUp");
stop();
Symbol 327 MovieClip Frame 1
Y = _y;
X = _x;
Y = Number(Y) + Number(speed);
if (Number(Y) > 220) {
stop();
Set("..:KillPowID", id);
call("..:KillPowerUp");
}
xdist = X - ../ship:ShipX;
ydist = Y - ../ship:ShipY;
if (ACTIVE eq "true") {
if ((Number(ydist) < 10) and (Number(ydist) > Number(-10))) {
if ((Number(xdist) < 10) and (Number(xdist) > Number(-10))) {
ACTIVE = "false";
if (../ship:state ne "dead") {
trace("Ship picked up powerUp");
trace("Type is : " add type);
if (type eq "SPEED") {
setProperty("../speed", _visible , 1);
tellTarget ("body") {
gotoAndPlay ("pickup");
};
Set("..:ShotSpeed", ..:normalShotSpeed * 2);
Set("../timer:HASSPEED", 1);
} else if (type eq "BIGGUN") {
setProperty("../gun", _visible , 1);
tellTarget ("body") {
gotoAndPlay ("pickup");
};
Set("..:NbGuns", 2);
Set("../timer:HASBIGGUN", 1);
} else if (type eq "BONUS") {
tellTarget ("body") {
gotoAndPlay ("bonusanim");
};
}
}
}
}
}
_y = Y;
if (..:UNLOADALL) {
this.removeMovieClip();
}
Symbol 327 MovieClip Frame 2
gotoAndPlay (1);
Symbol 329 MovieClip Frame 2
call("..:MakePowerUp");
play();
if (Number(HASBIGGUN) > 0) {
HASBIGGUN = Number(HASBIGGUN) + 1;
if (Number(HASBIGGUN) > 18) {
setProperty("../gun", _visible , 0);
HASBIGGUN = 0;
Set("..:NbGuns", 1);
}
}
if (Number(HASSPEED) > 0) {
HASSPEED = Number(HASSPEED) + 1;
if (Number(HASSPEED) > 18) {
setProperty("../speed", _visible , 0);
HASSPEED = 0;
Set("..:ShotSpeed", ..:NormalShotSpeed);
}
}
Symbol 329 MovieClip Frame 30
gotoAndPlay (1);
Symbol 333 MovieClip Frame 2
stop();
Symbol 333 MovieClip Frame 50
call("..:changeLevel");
this.gotoAndStop("wait");
Symbol 372 MovieClip Frame 1
function sound1() {
_parent.sounds.gotoAndPlay("wall");
}
function loop() {
c++;
if (state == 1) {
if (c > 45) {
sound1();
state++;
trace("shifting to state: " + state);
c = 0;
this.gotoAndStop("hitbonus");
}
} else if (state == 2) {
hitBonusTxt = hitBonusTxt + 10;
_parent.sounds.gotoAndPlay("count");
if (hitBonusTxt > hitBonus) {
sound1();
state++;
trace("shifting to state: " + state);
c = 0;
hitBonusTxt = hitBonus;
this.gotoAndStop("timeleft");
}
} else if (state == 3) {
if (c > 20) {
sound1();
state++;
trace("shifting to state: " + state);
c = 0;
this.gotoAndStop("timebonus");
}
} else if (state == 4) {
_parent.sounds.gotoAndPlay("count2");
timeBonusTxt = timeBonusTxt + 400;
if ((timeBonusTxt > timeBonus) || (c > 100)) {
sound1();
state++;
trace("shifting to state: " + state);
c = 0;
timeBonusTxt = timeBonus;
this.gotoAndStop("levelbonus");
}
} else if (state == 5) {
scoreTxt = scoreTxt + 1000;
_parent.sounds.gotoAndPlay("count3");
if ((scoreTxt > newScore) || (c > 100)) {
sound1();
state++;
trace("shifting to state: " + state);
c = 0;
scoreTxt = newScore;
this.gotoAndStop("levelbonus2");
}
} else if (state == 6) {
if (c > 20) {
sound1();
state++;
trace("shifting to state: " + state);
c = 0;
this.gotoAndStop("rating");
}
} else if (state == 7) {
if (c > 50) {
sound1();
state++;
trace("shifting to state: " + state);
c = 0;
_parent.play();
}
}
}
stop();
var c = 0;
var state = 1;
hitBonusTxt = 0;
timeBonusTxt = 0;
scoreTxt = ..:score;
hitRatio = _parent.hitRatio;
hitBonus = _parent.hitBonus;
timeLeft = _parent.timeLeft;
timeBonus = _parent.timeBonus;
newscore = _parent.newScore;
rank = ..:rank;
Symbol 372 MovieClip Frame 4
stop();
Symbol 372 MovieClip Frame 9
stop();
Symbol 372 MovieClip Frame 14
stop();
Symbol 372 MovieClip Frame 18
stop();
Symbol 372 MovieClip Frame 22
stop();
Symbol 372 MovieClip Frame 26
stop();
Symbol 388 Button
on (release) {
tellTarget ("..") {
gotoAndStop ("ready to play");
};
}
Symbol 392 Button
on (release) {
fscommand ("quit");
}
Symbol 393 Button
on (release) {
call("..:unloadE");
_parent.gotoAndPlay("preinit");
}
on (keyPress "<Space>") {
call("..:unloadE");
_parent.gotoAndPlay("preinit");
}
Symbol 397 Button
on (release) {
_level0.score = submitScore;
_level0.gotoAndStop("gameover");
}
Symbol 400 MovieClip Frame 4
if (..:level >= 0) {
this.gotoAndStop("qual");
_level0.score = submitScore;
_level0.gotoAndStop("gameover");
} else {
this.gotoAndStop("notqual");
}
Symbol 400 MovieClip Frame 18
cw = 1;
Symbol 403 MovieClip Frame 4
ifFrameLoaded (1) {
gotoAndPlay (9);
}
Symbol 403 MovieClip Frame 7
gotoAndPlay (4);
Symbol 403 MovieClip Frame 9
Symbol 403 MovieClip Frame 20
stop();
Symbol 403 MovieClip Frame 27
level = 1;
Score = 0;
LifesLeft = 3;
normalShotSpeed = 6;
maxShotSpeed = 12;
trace("preinit");
Set("ship:ShipXmin", 10);
Set("ship:ShipXmax", 310);
Set("ship:speed", 4);
Set("ship:ShipX", 150);
Set("ship:ShipY", 200);
Set("ship:ShipSpeed", 0);
PowerUp_org._visible = false;
sounds._visible = false;
Set("ship:SSfact", 5);
MaxShots = 15;
MaxPow = 10;
tellTarget ("shot_org") {
gotoAndStop ("inactive");
};
Symbol 403 MovieClip Frame 28
play();
Symbol 403 MovieClip Frame 30
startTime = getTimer();
UNLOADALL = false;
Set("timer:HASBIGGUN", 0);
Set("timer:HASSPEED", 0);
Shotsfired = 0;
NbGuns = 1;
ShotSpeed = normalShotSpeed + (level * 0.2);
if (shotSpeed > maxShotSpeed) {
shotSpeed = maxShotSpeed;
}
tellTarget ("ship") {
state = "ok";
gotoAndPlay ("loop");
};
setProperty("ship", _x , ship:ShipX);
setProperty("ship", _y , ship:ShipY);
EYmax = 220;
EYstep = 15;
enemySpeed = Math.round(2 + (level * 0.4));
enemyShootFact = 96 - (level * 0.3);
if (enemyShootFact < 90) {
enemyShootFact = 90;
}
call("makeenemy");
ShotID = 0;
PowID = 0;
nbKilled = 0;
if (Number(level) == 1) {
}
setProperty("gun", _visible , 0);
setProperty("speed", _visible , 0);
tellTarget ("sounds") {
gotoAndPlay ("start");
};
Symbol 403 MovieClip Frame 38
stop();
Symbol 403 MovieClip Frame 42
gotoAndStop (1);
trace("game was killed frame 53");
Symbol 403 MovieClip Frame 49
t = 1;
Hspace = 24;
Vspace = 16;
cols = 4 + Math.round(level / 3);
if (Number(cols) > 7) {
cols = 7;
}
rows = 2 + Math.round(level / 3);
if (Number(rows) > 9) {
rows = 9;
}
nbEnemies = rows * cols;
r = 1;
t = 0;
while (Number(r) <= Number(rows)) {
co = 1;
while (Number(co) <= Number(cols)) {
t = Number(t) + 1;
duplicateMovieClip ("enemy_org", "enemy" add t, Number(t) + 100);
Set(("enemy" add t) add ":X", 8 + (co * Hspace));
Set(("enemy" add t) add ":Y", 28 + (r * Vspace));
Set(("enemy" add t) add ":Xmax", 310 - ((cols - co) * Hspace));
Set(("enemy" add t) add ":Xmin", 12 + Number((co - 1) * Hspace));
Set(("enemy" add t) add ":Ymax", EYmax);
Set(("enemy" add t) add ":vel", enemySpeed);
Set(("enemy" add t) add ":id", t);
co = co + 1;
}
r = Number(r) + 1;
}
setProperty("enemy_org", _visible , 0);
Symbol 403 MovieClip Frame 53
shotID = Number(ShotID) + 1;
if (Number(ShotID) > Number(Maxshots)) {
shotID = 1;
}
duplicateMovieClip ("shot_org", "Shot" add ShotID, Number(ShotID) + 10);
setProperty("shot" add shotID, _x , Math.round(eval (("enemy" add EshooterID) add ":X")));
setProperty("shot" add shotID, _y , eval (("enemy" add EshooterID) add ":Y"));
Set(("shot" add shotID) add ":speed", (-normalShotSpeed) * 0.8);
Set(("shot" add shotID) add ":id", ShotID);
Set(("shot" add shotID) add ":type", "enemy");
Set(("shot" add shotID) add ":X", eval (("enemy" add EshooterID) add ":x"));
Set(("shot" add shotID) add ":y", eval (("enemy" add EshooterID) add ":Y"));
tellTarget (("shot" add shotID) add ".gfx") {
gotoAndStop (2);
};
tellTarget ("sounds") {
gotoAndPlay ("enemygun");
};
Symbol 403 MovieClip Frame 55
if (Number(NbGuns) == 1) {
shotID = Number(ShotID) + 1;
ShotsFired = Number(ShotsFired) + 1;
if (Number(ShotID) > Number(Maxshots)) {
shotID = 1;
}
duplicateMovieClip ("shot_org", "Shot" add ShotID, Number(ShotID) + 10);
setProperty("shot" add shotID, _x , Math.round(Ship:ShipX));
setProperty("shot" add shotID, _y , Math.round(Ship:ShipY - 4));
Set(("shot" add shotID) add ":speed", ShotSpeed);
Set(("shot" add shotID) add ":id", ShotID);
Set(("shot" add shotID) add ":type", "player");
Set(("shot" add shotID) add ":X", Ship:ShipX);
Set(("shot" add shotID) add ":y", Ship:ShipY - 4);
tellTarget ("sounds") {
gotoAndPlay ("wall");
};
tellTarget ("ship/gunfire") {
gotoAndPlay ("start");
};
} else if (Number(NbGuns) == 2) {
X1 = -5;
X2 = 5;
t = 1;
while (Number(t) <= 2) {
shotID = Number(ShotID) + 1;
ShotsFired = Number(ShotsFired) + 1;
if (Number(ShotID) > Number(Maxshots)) {
shotID = 1;
}
duplicateMovieClip ("shot_org", "Shot" add ShotID, Number(ShotID) + 10);
setProperty("shot" add shotID, _x , Math.round(Ship:ShipX + eval ("X" add t)));
setProperty("shot" add shotID, _y , Ship:ShipY);
Set(("shot" add shotID) add ":speed", ShotSpeed);
Set(("shot" add shotID) add ":id", ShotID);
Set(("shot" add shotID) add ":type", "player");
Set(("shot" add shotID) add ":X", Ship:ShipX + eval ("X" add t));
Set(("shot" add shotID) add ":y", Ship:ShipY);
tellTarget ("sounds") {
gotoAndPlay ("biggun");
};
tellTarget ("ship/gunfire") {
gotoAndPlay ("start");
};
t = Number(t) + 1;
}
}
Symbol 403 MovieClip Frame 57
setProperty("PowerUp" add KillPowID, _visible , false);
Symbol 403 MovieClip Frame 61
setProperty("shot" add KillShotID, _visible , false);
var tmpMov = eval ("shot" add KillShotID);
tmpMov.removeMovieClip();
Symbol 403 MovieClip Frame 62
trace("at callFrame 'kill ship'");
e = 1;
while (e <= nbEnemies) {
var tmpMov = eval ("enemy" + e);
tmpMov.removeMovieClip();
e++;
}
UNLOADALL = true;
if (Number(Lifesleft) > 1) {
setProperty("life" add Lifesleft, _visible , "0");
LifesLeft = LifesLeft - 1;
gotoAndPlay (97);
} else {
gotoAndPlay (140);
LifesLeft = 0;
}
Symbol 403 MovieClip Frame 64
tellTarget ("enemy" add EKillid) {
gotoAndPlay ("dead");
state = "dead";
};
tellTarget ("sounds") {
gotoAndPlay ("bat");
};
score = Number(score) + 10;
nbKilled = Number(nbKilled) + 1;
if (Number(nbKilled) == Number(nbEnemies)) {
endLevelTimer.play();
}
UnloadID = EKillid;
Symbol 403 MovieClip Frame 68
if (random(1000) > 800) {
val = random(3);
if (Number(val) == 0) {
type = "SPEED";
} else if (Number(val) == 1) {
type = "BIGGUN";
} else if (Number(val) == 2) {
type = "BONUS";
} else if (Number(val) == 3) {
type = "MISSILE";
} else if (Number(val) == 4) {
type = "BOMB";
}
powID = Number(powID) + 1;
if (Number(powID) > Number(MaxPow)) {
PowID = 1;
}
duplicateMovieClip ("PowerUp_org", "PowerUp" add powID, Number(powID) + 70);
setProperty("PowerUp" add powID, _x , Number(random(300)) + 10);
setProperty("PowerUp" add powID, _y , 5);
Set(("PowerUp" add powID) add ":speed", 1);
Set(("PowerUp" add powID) add ":id", PowID);
Set(("PowerUp" add powID) add ":type", type);
Set(("PowerUp" add powID) add ":ACTIVE", "true");
tellTarget (("PowerUp" add powID) add "/body") {
gotoAndStop(../..:type);
};
tellTarget ("sounds") {
gotoAndPlay ("wall");
};
}
Symbol 403 MovieClip Frame 71
level = Number(level) + 1;
HitRatio = int((nbEnemies / Shotsfired) * 100);
Hitbonus = Math.round(HitRatio * 5);
time = getTimer() - startTime;
normalTime = nbEnemies * 1500;
timeLeft = (normalTime - time) / 1000;
timeLeft = Math.round(timeLeft * 10) / 10;
negTimeBonus = Math.round((timeLeft * timeLeft) * 20);
if (timeLeft < 0) {
negTimeBonus = -negTimeBonus;
}
if (timeLeft < 0) {
timeLeft = "NONE";
timeBonus = 0;
} else {
timeBonus = Math.round((timeLeft * timeLeft) * 20);
}
levelBonus = hitBonus + timeBonus;
newScore = score + levelBonus;
gotoAndPlay (81);
trace("changeLevel().. LEVEL_______________" add level);
Symbol 403 MovieClip Frame 72
var tmpMov = eval ("enemy" add UnloadID);
tmpMov.removeMovieClip();
Symbol 403 MovieClip Frame 81
count = 0;
e = 1;
while (e <= nbEnemies) {
var tmpMov = eval ("enemy" + e);
tmpMov.removeMovieClip();
e = Number(e) + 1;
}
good = 450;
good = good + Math.round(((nbEnemies * 1.2) * (nbEnemies * 1.2)) * 10);
awfull = 75;
awfull = awfull + (-Math.round(((nbEnemies * -1) * (nbEnemies * -1)) * 10));
rankRatio = ((levelBonus - awfull) / (good - awfull)) * 100;
trace("rankRatio: " + rankRatio);
if (Number(rankRatio) > 98) {
Rank = "UNBELIEVABLE";
} else if (Number(rankRatio) > 90) {
Rank = "VERY GOOD";
} else if (Number(rankRatio) > 75) {
Rank = "GOOD";
} else if (Number(rankRatio) > 60) {
Rank = "MEDIUM";
} else if (Number(rankRatio) > 40) {
Rank = "NOT TO0 BAD";
} else if (Number(rankRatio) > 20) {
Rank = "BEGINNER";
} else if (Number(rankRatio) > 10) {
Rank = "INFANTILE";
} else if (Number(rankRatio) > 0) {
Rank = "AWFUL !";
} else {
trace("SUBZERO RANKING FOUND!!!");
Rank = "AWFULL !";
}
Rank = "RATING : " + Rank;
play();
tellTarget ("sounds") {
gotoAndPlay ("newlevel");
};
Instance of Symbol 372 MovieClip in Symbol 403 MovieClip Frame 81
onClipEvent (enterFrame) {
loop();
}
Symbol 403 MovieClip Frame 88
stop();
trace("....at WAIT frame");
Symbol 403 MovieClip Frame 92
trace("....at continue frame");
score = newScore;
Symbol 403 MovieClip Frame 97
levWaitCount = 0;
Symbol 403 MovieClip Frame 107
counterTxt = 3 - levWaitCount;
Symbol 403 MovieClip Frame 126
Symbol 403 MovieClip Frame 131
gotoAndPlay (28);
Symbol 403 MovieClip Frame 133
gotoAndStop (9);
Symbol 403 MovieClip Frame 140
hiscore.submitscore = Number(score);
e = 1;
while (Number(e) <= Number(nbEnemies)) {
unloadMovie ("enemy" add e);
e = Number(e) + 1;
}
Symbol 403 MovieClip Frame 142
stop();
Symbol 403 MovieClip Frame 158
message = status;
Symbol 409 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 1
stop();
Symbol 421 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 232 MovieClip in Symbol 421 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
theHeader = "Game Over";
closableWindow = false;
closeFunction = "_parent.closeWindow";
draggableWin = false;
bringForth = false;
allowBtns = false;
}
Symbol 421 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);
}
}
Instance of Symbol 245 MovieClip in Symbol 421 MovieClip Frame 8
//component parameters
onClipEvent (initialize) {
theTitle = "To menu";
theTitleVar = false;
isActive = true;
}
on (release) {
_level0.efx.playEfx("click2");
_level0.gotoAndStop("startScreen");
}
on (rollOver) {
_level0.efx.playEfx("click2");
}
Instance of Symbol 245 MovieClip in Symbol 421 MovieClip Frame 8
//component parameters
onClipEvent (initialize) {
theTitle = "Play again";
theTitleVar = false;
isActive = true;
}
on (release) {
_parent._parent.gotoAndStop("gameon");
_level0.efx.playEfx("click2");
_level0.gotoAndStop("startScreen");
}
on (rollOver) {
_level0.efx.playEfx("click2");
}