Frame 1
var battleonurl;
var downloadurl;
if (playonaq == "yes") {
battleonurl = "";
downloadurl = "";
} else {
battleonurl = "";
downloadurl = "";
}
stop();
_global.ipb_get_gname = function () {
var _local4 = _root._url;
var _local5 = "";
var _local2 = "";
var _local6 = _local4.lastIndexOf("\\") + 1;
if ((_local6 == -1) || (_local6 == 0)) {
_local6 = _local4.lastIndexOf("/") + 1;
}
var _local3 = _local6;
var _local7 = String(_local4).length;
while (_local3 < String(_local4).length) {
_local2 = _local4.charAt(_local3);
if (_local2 == ".") {
break;
}
_local5 = _local5 + _local2;
_local3++;
}
return(_local5);
};
ipb_gname = _global.ipb_get_gname();
xx = new LoadVars();
xx.onLoad = function (success) {
if (success) {
_global.ipb_scoreVar = this.scoreVar;
}
};
fname = ((("arcade/gamedata/" + ipb_gname) + "/") + ipb_gname) + ".txt";
xx.load(fname);
Instance of Symbol 334 MovieClip in Frame 1
//component parameters
onClipEvent (construct) {
strFrame = "Intro";
}
Frame 6
function playerScore() {
var _local2 = 0;
if (_root.objScore.isDefined) {
_local2 = _local2 + (1000 * (_root.objScore.intLevel - _root.objScore.intHealsCount));
_local2 = _local2 + (_root.objScore.intHP * 10);
if (_root.objScore.isAlive) {
_local2 = _local2 + (1000 * (900000 / _root.objScore.intTime));
} else {
_local2 = _local2 + (_root.objScore.intTime / 1000);
}
_local2 = _local2 + (1000 * (_root.objScore.intHurtDragon / (_root.objScore.intArrowsShot + 1)));
_local2 = _local2 - (_root.objScore.intSimplify * 1000);
_local2 = _local2 * _root.objScore.intLevel;
if (_root.objScore.isAlive) {
_local2 = _local2 * 10;
}
if (_local2 < 0) {
_local2 = 0;
}
_local2 = Math.round(_local2);
}
return(_local2.toString(10));
}
function pnjScores() {
var _local6 = new Array("Artix Krieger", "Zhoom", "Warlic", "Oishii", "J", "Cysero", "Jergal", "Rhubarb", "Galanoth", "Arklen");
var _local5 = new Array();
var _local3 = 0;
while (_local3 < 10) {
var _local4 = Math.floor(Math.random() * _local6.length);
_local5.push(_local6[_local4]);
_local6.splice(_local4, 1);
_local3++;
}
var _local7 = "";
var _local2 = 0;
while (_local2 < _local5.length) {
_local7 = _local7 + (_local5[_local2] + newline);
_local2++;
}
_root.isDoneWithPNJScores = true;
_root.objScore.pnj = _local7;
return(_local7);
}
function detailsScore() {
var _local2 = "";
if (_root.objScore.isDefined) {
var _local5 = _root.objScore.intTime / 60000;
var _local3 = _local5.toString(10).split(".");
var _local4 = "No...";
if (_root.objScore.isAlive) {
_local4 = "Of course!";
}
if ((typeof(_local3[1]) == "string") && (_local3[1] != "")) {
_local2 = _local2 + (((_local3[0] + "min(s) ") + String(Math.round(Number("0." + _local3[1]) * 60))) + "s\n");
} else if (_local3[1] == undefined) {
_local2 = _local2 + (_local3[0] + "min(s) 0s\n");
} else {
_local2 = _local2 + (Math.round(_root.objScore.intTime / 1000).toString(10) + "s\n");
}
_local2 = _local2 + (_local4 + newline);
_local2 = _local2 + (_root.objScore.intLevel.toString(10) + newline);
_local2 = _local2 + (_root.objScore.intArrowsShot.toString(10) + newline);
_local2 = _local2 + (_root.objScore.intHurtDragon.toString(10) + newline);
_local2 = _local2 + (_root.objScore.intHealsCount.toString(10) + newline);
_local2 = _local2 + (String((_root.objScore.intHP * 100) / 200) + "%\n");
_local2 = _local2 + _root.objScore.intSimplify.toString(10);
} else {
_local2 = _local2 + "Maybe you should check battle details after... you know, the battle ?";
}
return(_local2);
}
var strQuality = "MEDIUM";
var intSimplify = 0;
var bitAutoPause = false;
var isDoneWithPNJScores = false;
var objScore = new Object();
objScore.isDefined = false;
stop();
Instance of Symbol 199 MovieClip in Frame 10
onClipEvent (load) {
this.gotoAndStop("Idle");
}
Frame 11
strTerms = "By clicking play, I agree to the <u>Terms & Conditions.</u>";
strLink = ("<a href='" + _root.downloadurl) + "'>Download this <b><u>FREE Game</u></b></a> for your Website";
Frame 14
stop();
Frame 15
stop();
Frame 22
stop();
Frame 28
stop();
Frame 36
if (!_root.isDoneWithPNJScores) {
_root.txtNames.text = _root.pnjScores();
}
_root.txtPlayerScore.text = _root.playerScore();
_root.micro = _root.playerScore();
_root.txtNames.text = _root.objScore.pnj;
stop();
Frame 45
_root.btnShadeDtl.enabled = false;
_root.txtDetails.text = _root.detailsScore();
_root.btnOk.onRelease = function () {
_root.playSound("click");
_root.gotoAndPlay("HighScores");
};
stop();
Frame 54
stop();
Frame 61
stop();
Frame 71
stop();
Instance of Symbol 328 MovieClip [FScrollBarSymbol] in Frame 71
//component parameters
onClipEvent (construct) {
_targetInstanceName = "scroller";
horizontal = false;
}
Frame 76
stop();
Instance of Symbol 124 MovieClip in Frame 76
onClipEvent (load) {
this.stop();
}
Instance of Symbol 231 MovieClip in Frame 76
onClipEvent (load) {
this.leftwing.stop();
this.rightwing.stop();
}
Instance of Symbol 284 MovieClip in Frame 76
onClipEvent (load) {
if (_root.bitAutoPause) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
perform = function () {
if (bitValue) {
_root.bitAutoPause = true;
} else {
_root.bitAutoPause = false;
}
_root.playSound("click");
};
}
Frame 77
_quality = _root.strQuality;
FireSpawn.build();
stop();
Symbol 330 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 15
gotoAndPlay (1);
Symbol 334 MovieClip Frame 2
this.onEnterFrame = function () {
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
_root.gotoAndPlay(strFrame);
delete this.onEnterFrame;
} else {
strLoad.text = ("Loading " + String(Math.ceil((_root.getBytesLoaded() * 100) / _root.getBytesTotal()))) + "%";
}
};
stop();
Symbol 460 MovieClip Frame 1
if (yy.savescore == 1) {
if (ipb_score == undefined) {
ipb_score = eval (_global.ipb_scoreVar);
}
xx = new LoadVars();
xx.arcadegid = _root.ibpro_gameid;
xx.gscore = ipb_score;
xx.gname = _global.ipb_get_gname();
xx.enscore = (ipb_score * yy.randchar) ^ yy.randchar2;
xx.send("index.php?autocom=arcade&do=savescore", "_self", "POST");
stop();
}
_global.ipbSend = function (ipb_score) {
_root._visible = false;
_root.enabled = false;
xx = new LoadVars();
yy = new LoadVars();
xx.sendAndLoad("index.php?autocom=arcade&do=verifyscore", yy, "POST");
};
Symbol 1 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 _local3 in this.styleFormat_prm) {
this.setStyleProperty(_local3, this.styleFormat_prm[_local3]);
}
}
};
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 _local2 in this.methodTable) {
this[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local4 = this.styleTable.focusRectInner.value;
var _local5 = this.styleTable.focusRectOuter.value;
if (_local4 == undefined) {
_local4 = 16777215 /* 0xFFFFFF */;
}
if (_local5 == undefined) {
_local5 = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, _local5);
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, _local4);
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 _local17 = parseInt(value);
if (!isNaN(_local17)) {
value = _local17;
}
var _local16 = ((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 || (!_local16)) {
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 _local18 = propName.subString(4, propName.length);
this.textStyle[_local18] = value;
this.invalidate("setSize");
} else {
for (var _local15 in this.styleTable[propName].coloredMCs) {
var _local4 = new Color(this.styleTable[propName].coloredMCs[_local15]);
if (this.styleTable[propName].value == undefined) {
var _local5 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local4.setTransform(_local5);
} else {
_local4.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = _local16;
}
};
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 _local4 = new Color(skinMCRef);
_local4.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 _local3 in arguments[0]) {
this[_local3] = arguments[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local3 = 0;
while (_local3 < arguments.length) {
var _local4 = arguments[_local3];
this.listeners[arguments[_local3]] = _local4;
for (var _local5 in this) {
if (this.isAStyle(_local5)) {
_local4.updateStyleProperty(this, _local5.toString());
}
}
_local3++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
if (component.styleTable[_local4].useGlobal == this.isGlobal) {
component.styleTable[_local4].useGlobal = true;
var _local3 = (this.isGlobal ? undefined : (globalStyleFormat[_local4]));
component.setStyleProperty(_local4, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local6 = 0;
for (var _local5 in this.listeners) {
var _local3 = this.listeners[_local5];
if (arguments.length > 0) {
var _local4 = 0;
while (_local4 < arguments.length) {
if (this.isAStyle(arguments[_local4])) {
_local3.updateStyleProperty(this, arguments[_local4]);
}
_local4++;
}
} else {
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
_local3.updateStyleProperty(this, _local4.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 14 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 24 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 33 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 34 MovieClip [UpArrow] Frame 1
stop();
Symbol 34 MovieClip [UpArrow] Frame 2
stop();
Symbol 34 MovieClip [UpArrow] Frame 3
stop();
Symbol 41 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 48 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 53 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 54 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 62 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 70 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 78 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 79 MovieClip [DownArrow] Frame 1
stop();
Symbol 79 MovieClip [DownArrow] Frame 2
stop();
Symbol 79 MovieClip [DownArrow] Frame 3
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 102 MovieClip [mcBurst] Frame 15
this.removeMovieClip();
stop();
Symbol 113 MovieClip Frame 9
gotoAndPlay (1);
Symbol 115 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 6
gotoAndPlay (1);
Symbol 127 MovieClip [mcPowerUp] Frame 2
stop();
Symbol 127 MovieClip [mcPowerUp] Frame 8
stop();
Symbol 127 MovieClip [mcPowerUp] Frame 14
stop();
Symbol 127 MovieClip [mcPowerUp] Frame 19
stop();
Symbol 127 MovieClip [mcPowerUp] Frame 26
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 1
this._visible = false;
stop();
Symbol 143 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 2
stop();
Symbol 177 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 2
stop();
Symbol 183 MovieClip Frame 8
stop();
Symbol 183 MovieClip Frame 14
stop();
Symbol 183 MovieClip Frame 19
stop();
Symbol 183 MovieClip Frame 26
stop();
Symbol 185 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 1
var isShooting = false;
this.mcArrow._visible = true;
_root.engine.updateInfo();
_root.engine.updateArrow();
_root.engine.setShades(_root.game.mcDragon, 100);
stop();
Symbol 186 MovieClip Frame 2
isShooting = true;
Symbol 186 MovieClip Frame 10
gotoAndStop (1);
Symbol 189 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 1
var isInvulnerable;
var isBusy;
Symbol 199 MovieClip Frame 2
isBusy = false;
Symbol 199 MovieClip Frame 16
gotoAndPlay ("Run");
Symbol 199 MovieClip Frame 17
isBusy = true;
Symbol 199 MovieClip Frame 33
isBusy = false;
Symbol 199 MovieClip Frame 43
gotoAndPlay ("Run");
Symbol 199 MovieClip Frame 44
isBusy = true;
Symbol 199 MovieClip Frame 92
gotoAndPlay ("Run");
Symbol 199 MovieClip Frame 93
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 1
stop();
Instance of Symbol 141 MovieClip "danger" in Symbol 206 MovieClip Frame 1
onClipEvent (load) {
this.isDangerous = true;
this.intDamage = 10;
}
Symbol 206 MovieClip Frame 6
gotoAndPlay (1);
Symbol 212 MovieClip Frame 4
if (_root.game.mcDragon.isOnScreen && (this._name == "leftwing")) {
_root.playSound("dragonflight");
}
Symbol 212 MovieClip Frame 21
gotoAndPlay (1);
Symbol 231 MovieClip Frame 1
stop();
Instance of Symbol 141 MovieClip "danger1" in Symbol 231 MovieClip Frame 1
onClipEvent (load) {
this.isDangerous = true;
this.intDamage = 10;
}
Instance of Symbol 141 MovieClip "danger0" in Symbol 231 MovieClip Frame 1
onClipEvent (load) {
this.isDangerous = true;
this.intDamage = 15;
}
Instance of Symbol 141 MovieClip "contact3" in Symbol 231 MovieClip Frame 1
onClipEvent (load) {
this.isShootable = true;
this.intModifier = 0.25;
}
Instance of Symbol 141 MovieClip "contact4" in Symbol 231 MovieClip Frame 1
onClipEvent (load) {
this.isShootable = true;
this.intModifier = 0.25;
}
Instance of Symbol 141 MovieClip "contact1" in Symbol 231 MovieClip Frame 1
onClipEvent (load) {
this.isShootable = true;
this.intModifier = 0.75;
}
Instance of Symbol 141 MovieClip "contact2" in Symbol 231 MovieClip Frame 1
onClipEvent (load) {
this.isShootable = true;
this.intModifier = 1;
}
Instance of Symbol 141 MovieClip "contact0" in Symbol 231 MovieClip Frame 1
onClipEvent (load) {
this.isShootable = true;
this.intModifier = 1.25;
}
Instance of Symbol 141 MovieClip "contact0" in Symbol 231 MovieClip Frame 5
onClipEvent (load) {
this.isShootable = true;
this.intModifier = 1.25;
}
Symbol 231 MovieClip Frame 22
_root.playSound("dragonfire");
Symbol 231 MovieClip Frame 41
stop();
Symbol 231 MovieClip Frame 62
if (_root.engine == undefined) {
_root.playSound("dragonscream");
} else if (_root.engine.roll(0, 2) == 0) {
_root.playSound("dragonfire");
} else {
_root.playSound("dragonscream");
}
Symbol 231 MovieClip Frame 82
gotoAndStop (1);
Instance of Symbol 141 MovieClip "danger" in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
this.isDangerous = true;
this.intDamage = 15;
}
Symbol 232 MovieClip Frame 6
gotoAndPlay (1);
Symbol 233 MovieClip Frame 1
var isDragonBlow = false;
var isOnScreen = true;
_root.engine.dragonStatus(true);
Symbol 233 MovieClip Frame 43
dragon.gotoAndPlay("Scream");
Symbol 233 MovieClip Frame 69
gotoAndPlay ("Retreat");
Symbol 233 MovieClip Frame 70
isOnScreen = true;
_root.engine.dragonStatus(true);
Symbol 233 MovieClip Frame 100
gotoAndPlay ("Hover");
Symbol 233 MovieClip Frame 101
isOnScreen = true;
_root.engine.dragonStatus(true);
Symbol 233 MovieClip Frame 116
isOnScreen = false;
_root.engine.dragonStatus(false);
_root.engine.timeControl();
Symbol 233 MovieClip Frame 121
isOnScreen = false;
_root.engine.dragonStatus(false);
stop();
Symbol 233 MovieClip Frame 127
isDragonBlow = true;
isOnScreen = false;
_root.engine.dragonStatus(false);
Symbol 233 MovieClip Frame 150
_root.playSound("fire");
Symbol 233 MovieClip Frame 202
_root.playSound("fire");
Symbol 233 MovieClip Frame 261
_root.playSound("fire");
Symbol 233 MovieClip Frame 300
_root.playSound("fire");
Symbol 233 MovieClip Frame 336
_root.playSound("fire");
Symbol 233 MovieClip Frame 352
isDragonBlow = false;
Symbol 233 MovieClip Frame 369
gotoAndStop ("Idle");
Symbol 233 MovieClip Frame 370
isOnScreen = false;
_root.engine.dragonStatus(false);
Symbol 233 MovieClip Frame 395
isOnScreen = true;
_root.engine.dragonStatus(true);
Symbol 233 MovieClip Frame 413
dragon.gotoAndPlay("Scream");
Symbol 233 MovieClip Frame 458
gotoAndPlay ("Retreat");
Symbol 233 MovieClip Frame 459
isDragonBlow = true;
isOnScreen = false;
_root.engine.dragonStatus(false);
Symbol 233 MovieClip Frame 483
_root.playSound("fire");
Symbol 233 MovieClip Frame 518
_root.playSound("fire");
Symbol 233 MovieClip Frame 555
_root.playSound("fire");
Symbol 233 MovieClip Frame 576
isDragonBlow = false;
Symbol 233 MovieClip Frame 598
gotoAndPlay ("Idle");
Symbol 233 MovieClip Frame 599
isDragonBlow = true;
isOnScreen = false;
_root.engine.dragonStatus(false);
Symbol 233 MovieClip Frame 623
isOnScreen = true;
_root.engine.dragonStatus(true);
if (_root.engine.roll(0, 100) < (_root.engine.intLevel * 10)) {
_root.engine.attachTurtleBunny();
}
Symbol 233 MovieClip Frame 634
if (typeof(this.dragon.mcTurtleBunny) == "movieclip") {
this.dragon.mcTurtleBunny.drop();
}
Symbol 233 MovieClip Frame 644
isDragonBlow = false;
Symbol 233 MovieClip Frame 677
gotoAndStop ("Idle");
Symbol 235 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 2
this.txtDamage.text = (_root.engine.intDragonHP.toString(10) + " / ") + _root.engine.intDragonMaxHP.toString(10);
this.txtDamageShade.text = (_root.engine.intDragonHP.toString(10) + " / ") + _root.engine.intDragonMaxHP.toString(10);
stop();
Symbol 268 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 281 Button
on (release) {
gotoAndPlay (2);
bitValue = false;
perform();
}
Symbol 283 Button
on (release) {
gotoAndPlay (2);
bitValue = true;
perform();
}
Symbol 284 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 2
stop();
Symbol 287 Button
on (press) {
intVolume = intVolume - 10;
if (intVolume <= 0) {
intVolume = 0;
}
fxsound.setVolume(intVolume);
_root.playSound("click");
}
Symbol 289 Button
on (press) {
intVolume = intVolume + 10;
if (intVolume >= 300) {
intVolume = 300;
}
fxsound.setVolume(intVolume);
_root.playSound("click");
}
Symbol 291 MovieClip Frame 1
fxsound = new Sound(_root.SoundFX);
intVolume = fxsound.getVolume();
stop();
Symbol 295 MovieClip Frame 1
stop();
Symbol 296 Button
on (release) {
_root.playSound("click");
_quality = "BEST";
_root.strQuality = "BEST";
}
Symbol 298 Button
on (release) {
_root.playSound("click");
_quality = "HIGH";
_root.strQuality = "HIGH";
}
Symbol 300 Button
on (release) {
_root.playSound("click");
_quality = "MEDIUM";
_root.strQuality = "MEDIUM";
}
Symbol 302 Button
on (release) {
_root.playSound("click");
_quality = "LOW";
_root.strQuality = "LOW";
}
Symbol 305 MovieClip Frame 1
stop();
Instance of Symbol 284 MovieClip in Symbol 305 MovieClip Frame 1
onClipEvent (load) {
if (_root.objSoundOptions.bitSoundOn == true) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
perform = function () {
_root.objSoundOptions.bitSoundOn = bitValue;
if (bitValue == false) {
stopAllSounds();
if ((_root.objSoundOptions.strSoundTrack != null) && (_root.objSoundOptions.bitMusicOn == true)) {
_root.playSound(_root.objSoundOptions.strSoundTrack, "music");
}
}
_root.playSound("click");
};
}
Instance of Symbol 284 MovieClip in Symbol 305 MovieClip Frame 1
onClipEvent (load) {
if (_root.objSoundOptions.bitMusicOn == true) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
perform = function () {
_root.objSoundOptions.bitMusicOn = bitValue;
if (bitValue == false) {
stopAllSounds();
} else if (_root.objSoundOptions.strSoundTrack != null) {
_root.playSound(_root.objSoundOptions.strSoundTrack, "music");
}
_root.playSound("click");
};
}
Instance of Symbol 284 MovieClip in Symbol 305 MovieClip Frame 1
onClipEvent (load) {
if (_root.objSoundOptions.strMusic == "music") {
this._parent.txtMusic.text = "8-Bit";
gotoAndStop (1);
} else {
this._parent.txtMusic.text = "Wind";
gotoAndStop (2);
}
perform = function () {
if (bitValue) {
this._parent.txtMusic.text = "8-Bit";
_root.objSoundOptions.strMusic = "music";
_root.playSound("music", "music");
} else {
this._parent.txtMusic.text = "Wind";
_root.objSoundOptions.strMusic = "wind";
_root.playSound("wind", "music");
}
_root.playSound("click");
};
}
Symbol 307 MovieClip Frame 2
this.btnEasyWay.onRelease = function () {
_root.playSound("click");
_root.engine.hitPlayer((-_root.engine.intPlayerMaxHP) / 2);
_root.engine.intHealsCount = _root.engine.intHealsCount + 1;
_root.engine.intLevel = _root.engine.intLevel + 1;
_root.engine.resumeGame();
};
this.btnHardWay.onRelease = function () {
_root.playSound("click");
_root.engine.intLevel = _root.engine.intLevel + 1;
_root.engine.resumeGame();
};
this.btnOpt.onRelease = function () {
_root.playSound("click");
this._parent.gotoAndPlay("Options");
};
stop();
Instance of Symbol 284 MovieClip in Symbol 307 MovieClip Frame 6
onClipEvent (load) {
if (_root.bitAutoPause) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
perform = function () {
if (bitValue) {
_root.bitAutoPause = true;
} else {
_root.bitAutoPause = false;
}
_root.playSound("click");
};
}
Symbol 307 MovieClip Frame 7
this.btnShade.enabled = false;
this.btnOK.onRelease = function () {
_root.playSound("click");
this._parent.gotoAndPlay("Main");
};
stop();
Symbol 311 MovieClip Frame 15
_root.playSound("dragonpain");
this.btnEnd.onRelease = function () {
_root.playSound("click");
_root.engine.setScore();
_root.game.destruct();
};
stop();
Symbol 314 Button
on (rollOver) {
this.enabled = false;
}
Symbol 315 MovieClip Frame 2
this.btnDie.onRelease = function () {
_root.playSound("click");
this._parent.play();
};
stop();
Symbol 315 MovieClip Frame 17
_root.playSound("dragonfire");
Symbol 315 MovieClip Frame 26
_root.engine.setScore();
_root.game.destruct();
stop();
Symbol 317 MovieClip [game1] Frame 2
stop();
Symbol 317 MovieClip [game1] Frame 13
stop();
Symbol 317 MovieClip [game1] Frame 21
stop();
Symbol 317 MovieClip [game1] Frame 28
stop();
Symbol 317 MovieClip [game1] Frame 35
stop();
Instance of Symbol 280 MovieClip "btnPause" in Symbol 317 MovieClip [game1] Frame 35
on (press) {
_root.playSound("click");
_root.engine.resumeGame();
}
Symbol 319 MovieClip [mcTurtleBunny] Frame 1
stop();
Symbol 320 MovieClip [mcRock] Frame 1
stop();
Symbol 322 MovieClip [mcCactus2] Frame 1
stop();
Symbol 324 MovieClip [mcCactus1] Frame 1
stop();
Symbol 327 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 328 MovieClip [FScrollBarSymbol] Frame 1
#initclip 3
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 _local2 = 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;
_local2 = Math.min(_local2, this.maxPos);
this.setScrollPosition(Math.max(_local2, 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 _local3 = this.enable;
if (enabledFlag && (!_local3)) {
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) && (_local3)) {
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 _local3 = this.smallScroll;
if (inc != "one") {
_local3 = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var _local2 = this.getScrollPosition() + (mode * _local3);
if (_local2 > this.maxPos) {
_local2 = this.maxPos;
} else if (_local2 < this.minPos) {
_local2 = this.minPos;
}
this.setScrollPosition(_local2);
};
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 _local2 = this.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (this._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.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 _local3 = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxhscroll));
} else {
var _local3 = this.textField.scroll;
var _local2 = this.textField.bottomScroll - this.textField.scroll;
this.setScrollProperties(_local2, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(_local3, 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 459 MovieClip [__Packages.FireSpawn] Frame 0
class FireSpawn
{
var intStoredTime, intResumeTime, _intTime, _intHealsCount, _intDragonHP, _intDragonMaxHP, _intPlayerHP, _intPlayerMaxHP, _intLevel, _intAmmoFire, _intAmmoWater, _intAmmoTrident, _intAmmoBomb, _intDamage, _intArrowsShot, _strArrowType, _isAlive, _isDragon, _objMouse, _intObstacleTimer, _intCalmTimer, _intInvulTimer;
function FireSpawn () {
intStoredTime = 0;
intResumeTime = getTimer();
_intTime = 0;
_intHealsCount = 0;
_intDragonHP = 3000;
_intDragonMaxHP = 3000;
_intPlayerHP = 200;
_intPlayerMaxHP = 200;
_intLevel = 1;
_intAmmoFire = 0;
_intAmmoWater = 0;
_intAmmoTrident = 0;
_intAmmoBomb = 0;
_intDamage = 1;
_intArrowsShot = 0;
_strArrowType = "Arrow";
_isAlive = true;
_isDragon = false;
_objMouse = new Object();
var _local3 = new Object();
_local3._xscale = 68.3563232421875;
_local3._yscale = 68.3563232421875;
_local3._x = -10;
_local3._y = -12;
var _local4 = _root.attachMovie("game1", "game", _root.getNextHighestDepth(), _local3);
_local4.destruct = function () {
_root.engine.pauseGame("");
_root.gotoAndPlay("HighScores");
delete _root.engine;
this.removeMovieClip();
};
Mouse.addListener(_objMouse);
_objMouse.onMouseDown = function () {
if (!_root.game.mcPlayer.upper.torso.mcCrossbow.isShooting) {
_root.game.mcPlayer.upper.torso.mcCrossbow.gotoAndPlay("Shoot");
_root.engine.intArrowsShot = _root.engine.intArrowsShot + 1;
if (_root.engine.strArrowType != "Arrow") {
_root.engine["intAmmo" + _root.engine.strArrowType] = _root.engine["intAmmo" + _root.engine.strArrowType] - 1;
}
}
};
_local4.onEnterFrame = onEnterScroll;
_local4.mcPlayer.onEnterFrame = onEnterKeys;
_local4.mcPlayer.upper.torso.onEnterFrame = onEnterAim;
}
static function build() {
_root.engine = new FireSpawn();
}
function get intTime() {
return(_intTime);
}
function get intObstacleTimer() {
return(_intObstacleTimer);
}
function get intCalmTimer() {
return(_intCalmTimer);
}
function get intInvulTimer() {
return(_intInvulTimer);
}
function get intHealsCount() {
return(_intHealsCount);
}
function get intDragonHP() {
return(_intDragonHP);
}
function get intDragonMaxHP() {
return(_intDragonMaxHP);
}
function get intPlayerHP() {
return(_intPlayerHP);
}
function get intPlayerMaxHP() {
return(_intPlayerMaxHP);
}
function get intLevel() {
return(_intLevel);
}
function get intAmmoFire() {
return(_intAmmoFire);
}
function get intAmmoWater() {
return(_intAmmoWater);
}
function get intAmmoTrident() {
return(_intAmmoTrident);
}
function get intAmmoBomb() {
return(_intAmmoBomb);
}
function get intDamage() {
return(_intDamage);
}
function get intArrowsShot() {
return(_intArrowsShot);
}
function get strArrowType() {
return(_strArrowType);
}
function get isAlive() {
return(_isAlive);
}
function get isDragon() {
return(_isDragon);
}
function set intTime(intNew) {
_intTime = intNew;
//return(intTime);
}
function set intObstacleTimer(intDuration) {
_intObstacleTimer = intDuration;
//return(intObstacleTimer);
}
function set intCalmTimer(intDuration) {
_intCalmTimer = intDuration;
//return(intCalmTimer);
}
function set intInvulTimer(intDuration) {
_intInvulTimer = intDuration;
//return(intInvulTimer);
}
function set intHealsCount(intValue) {
_intHealsCount = intValue;
//return(intHealsCount);
}
function set intDragonHP(intValue) {
_intDragonHP = intValue;
//return(intDragonHP);
}
function set intPlayerHP(intValue) {
_intPlayerHP = intValue;
//return(intPlayerHP);
}
function set intLevel(intNew) {
_intLevel = intNew;
//return(intLevel);
}
function set intAmmoFire(intValue) {
_intAmmoFire = intValue;
//return(intAmmoFire);
}
function set intAmmoWater(intValue) {
_intAmmoWater = intValue;
//return(intAmmoWater);
}
function set intAmmoTrident(intValue) {
_intAmmoTrident = intValue;
//return(intAmmoTrident);
}
function set intAmmoBomb(intValue) {
_intAmmoBomb = intValue;
//return(intAmmoBomb);
}
function set intDamage(intValue) {
_intDamage = intValue;
//return(intDamage);
}
function set intArrowsShot(intValue) {
_intArrowsShot = intValue;
//return(intArrowsShot);
}
function set strArrowType(strType) {
_strArrowType = strType;
//return(strArrowType);
}
function set isAlive(bitValue) {
_isAlive = bitValue;
//return(isAlive);
}
function set isDragon(bitValue) {
_isDragon = bitValue;
//return(isDragon);
}
function onEnterScroll() {
_root.game.mcBg2._x = _root.game.mcBg2._x - 2;
_root.game.mcBg3._x = _root.game.mcBg3._x - 5;
_root.game.mcBg4._x = _root.game.mcBg4._x - 17;
_root.game.mcBg5._x = _root.game.mcBg5._x - 23;
var _local2 = 2;
while (_local2 <= 5) {
var _local4 = _root.engine.getPos(_root.game["mcBg" + _local2]);
if (_local4.x <= 0) {
_root.game["mcBg" + _local2]._x = 822.4;
}
_local2++;
}
if (_root.engine.roll(0, 100) == 50) {
_root.engine.rollPowerUp();
}
for (var _local6 in _root.game.genPowerUp) {
if (_root.game.genPowerUp[_local6]._name.indexOf("mcPowerUp") >= 0) {
_root.game.genPowerUp[_local6]._x = _root.game.genPowerUp[_local6]._x - 14;
var _local3 = _root.engine.getPos(_root.game.genPowerUp[_local6]);
if (_local3.x <= (-_root.game.genPowerUp[_local6]._width)) {
_root.game.genPowerUp[_local6].removeMovieClip();
}
}
}
for (var _local7 in _root.game.genObstacle) {
if (_root.game.genObstacle[_local7]._name.indexOf("mcObstacle") >= 0) {
_root.game.genObstacle[_local7]._x = _root.game.genObstacle[_local7]._x - 17;
var _local5 = _root.engine.getPos(_root.game.genObstacle[_local7]);
if (_local5.x <= (-_root.game.genObstacle[_local7]._width)) {
_root.game.genObstacle[_local7].removeMovieClip();
}
}
}
_root.engine.chkCollisions(true);
_root.engine.chkPause();
}
function onEnterKeys() {
var _local2 = _root.engine.getPos(_root.game.mcPlayer);
if (Key.isDown(37) && (_local2.x >= 0)) {
_root.game.mcPlayer._x = _root.game.mcPlayer._x - 10;
} else if (Key.isDown(39) && (_local2.x <= 370)) {
_root.game.mcPlayer._x = _root.game.mcPlayer._x + 10;
}
if (Key.isDown(38) && (!_root.game.mcPlayer.isBusy)) {
_root.game.mcPlayer.gotoAndPlay("Jump");
}
}
function onEnterAim() {
if (!_root.game.mcPlayer.upper.torso.mcCrossbow.isShooting) {
_root.engine.dragonStatus(_root.game.mcDragon.isOnScreen);
_root.engine.aimTarget(-80, _root.game.mcPlayer.upper.torso.mcCrossbow);
_root.engine.aimTarget(-60, _root.game.mcPlayer.upper.torso.mcHead);
_root.engine.aimTarget(-90, _root.game.mcPlayer.upper.torso.mcLeftArm);
_root.engine.aimTarget(-45, _root.game.mcPlayer.upper.torso.mcShoulderGuard);
} else if (_root.game.mcPlayer.upper.torso.mcCrossbow.isShooting) {
_root.engine.chkCollisions(false);
}
}
function roll(intIncludedMin, intExcludedMax) {
return(Number(Math.floor(Math.random() * (intExcludedMax - intIncludedMin)) + intIncludedMin));
}
function getPos(mcSource, mcNew) {
var _local1 = new Object();
_local1.x = mcSource._x;
_local1.y = mcSource._y;
mcSource._parent.localToGlobal(_local1);
if (mcNew != undefined) {
mcNew.globalToLocal(_local1);
}
return(_local1);
}
function setShades(mcTarget, intPercentage) {
var _local3 = new Color(mcTarget);
var _local1 = new Object();
_local1.ra = intPercentage;
_local1.rb = 0;
_local1.ga = intPercentage;
_local1.gb = 0;
_local1.ba = intPercentage;
_local1.bb = 0;
_local1.aa = 100;
_local1.ab = 0;
_local3.setTransform(_local1);
return(mcTarget);
}
function aimTarget(intMin, mcTarget) {
var _local4 = _root.engine.getPos(mcTarget, mcTarget._parent);
var _local5 = mcTarget._parent._xmouse - _local4.x;
var _local6 = mcTarget._parent._ymouse - _local4.y;
var _local2 = (Math.atan2(_local6, _local5) * 180) / Math.PI;
if (_local2 < intMin) {
_local2 = intMin;
} else if (_local2 > 0) {
_local2 = 0;
}
mcTarget._rotation = _local2;
}
function chkCollisions(isToCheckAllTheTime) {
if (isToCheckAllTheTime && (!_root.game.mcPlayer.isInvulnerable)) {
if (_root.game.mcDragon.dragon.danger0.hitTest(_root.game.mcPlayer.contact) && (_root.game.mcDragon.dragon.danger0.isDangerous)) {
_root.engine.hitPlayer(_root.game.mcDragon.dragon.danger0.intDamage);
} else if (_root.game.mcDragon.dragon.danger1.hitTest(_root.game.mcPlayer.contact) && (_root.game.mcDragon.dragon.danger1.isDangerous)) {
_root.engine.hitPlayer(_root.game.mcDragon.dragon.danger1.intDamage);
}
var _local3 = 1;
while (_local3 <= 4) {
if (_root.game.mcDragon["fireball" + _local3].danger.hitTest(_root.game.mcPlayer.contact) && (_root.game.mcDragon["fireball" + _local3].danger.isDangerous)) {
_root.engine.hitPlayer(_root.game.mcDragon["fireball" + _local3].danger.intDamage);
}
_local3++;
}
for (var _local5 in _root.game.genObstacle) {
if (((_root.game.genObstacle[_local5]._name.indexOf("mcObstacle") >= 0) && (_root.game.genObstacle[_local5].isActivatable)) && (_root.game.mcPlayer.contact.hitTest(_root.game.genObstacle[_local5]))) {
_root.game.genObstacle[_local5].onActivate();
}
}
} else if (!isToCheckAllTheTime) {
var _local2 = 0;
while (_local2 <= 4) {
if (_root.game.mcDragon.dragon["contact" + _local2].isShootable && (_root.game.mcPlayer.upper.torso.mcCrossbow.mcArrow.hitTest(_root.game.mcDragon.dragon["contact" + _local2]))) {
_root.engine.dragonStatus(false);
_root.engine.hitDragon(_root.game.mcDragon.dragon["contact" + _local2].intModifier);
_root.game.mcPlayer.upper.torso.mcCrossbow.mcArrow._visible = false;
if (((_root.engine.strArrowType == "Fire") || (_root.engine.strArrowType == "Water")) || (_root.engine.strArrowType == "Bomb")) {
_root.engine.attachBurst();
}
}
_local2++;
}
for (var _local4 in _root.game.genPowerUp) {
if (((_root.game.genPowerUp[_local4]._name.indexOf("mcPowerUp") >= 0) && (_root.game.genPowerUp[_local4].isActivatable)) && (_root.game.mcPlayer.upper.torso.mcCrossbow.mcArrow.hitTest(_root.game.genPowerUp[_local4]))) {
_root.game.genPowerUp[_local4].onActivate();
}
}
}
}
function dragonStatus(isVulnerable) {
var _local2 = 0;
while (_local2 <= 4) {
_root.game.mcDragon.dragon["contact" + _local2].isShootable = isVulnerable;
_local2++;
}
}
function hitDragon(intModifier) {
_root.engine.setShades(_root.game.mcDragon, 150);
if ((_root.engine.strArrowType != "Arrow") && (_root.engine.strArrowType != "Fire")) {
var _local2 = _root.engine.strArrowType.toLowerCase();
_root.playSound(_local2);
} else if (_root.engine.strArrowType == "Fire") {
_root.playSound("bomb");
} else {
_root.playSound("trident");
}
var _local3 = Math.round(_root.engine.intDamage * intModifier);
_root.engine.intDragonHP = _root.engine.intDragonHP - _local3;
_root.game.mcDamage.txtDamage.text = (_root.engine.intDragonHP.toString(10) + " / ") + _root.engine.intDragonMaxHP.toString(10);
_root.game.mcDamage.txtDamageShade.text = (_root.engine.intDragonHP.toString(10) + " / ") + _root.engine.intDragonMaxHP.toString(10);
_root.game.mcDragonHP.base._xscale = (_root.engine.intDragonHP * 100) / _root.engine.intDragonMaxHP;
if (_root.engine.intDragonHP <= (_root.engine.intDragonMaxHP - 2500)) {
_root.engine.intDragonHP = _root.engine.intDragonMaxHP - 2500;
_root.game.mcDragonHP.base._xscale = (_root.engine.intDragonHP * 100) / _root.engine.intDragonMaxHP;
_root.engine.isAlive = true;
_root.engine.pauseGame("Victory");
}
}
function hitPlayer(intDamage) {
if (intDamage > 0) {
_root.engine.invulnerableTime();
_root.game.mcPlayer.gotoAndPlay("Hit");
_root.playSound("hit");
}
_root.engine.intPlayerHP = _root.engine.intPlayerHP - intDamage;
if (_root.engine.intPlayerHP > _root.engine.intPlayerMaxHP) {
_root.engine.intPlayerHP = _root.engine.intPlayerMaxHP;
} else if (_root.engine.intPlayerHP <= 0) {
_root.engine.intPlayerHP = 0;
_root.game.mcPlayerHP.base._xscale = (_root.engine.intPlayerHP * 100) / _root.engine.intPlayerMaxHP;
_root.engine.isAlive = false;
_root.engine.pauseGame("Defeat");
}
_root.game.mcPlayerHP.base._xscale = (_root.engine.intPlayerHP * 100) / _root.engine.intPlayerMaxHP;
}
function updateInfo() {
_root.game.mcInfo.txtFire.text = _root.engine.intAmmoFire.toString(10);
_root.game.mcInfo.txtFireShade.text = _root.engine.intAmmoFire.toString(10);
_root.game.mcInfo.txtWater.text = _root.engine.intAmmoWater.toString(10);
_root.game.mcInfo.txtWaterShade.text = _root.engine.intAmmoWater.toString(10);
_root.game.mcInfo.txtTrident.text = _root.engine.intAmmoTrident.toString(10);
_root.game.mcInfo.txtTridentShade.text = _root.engine.intAmmoTrident.toString(10);
_root.game.mcInfo.txtBomb.text = _root.engine.intAmmoBomb.toString(10);
_root.game.mcInfo.txtBombShade.text = _root.engine.intAmmoBomb.toString(10);
}
function updateArrow() {
var _local3 = new Array("Fire", "Water", "Trident", "Bomb");
var _local2 = 0;
while (_local2 < _local3.length) {
if (_root.engine["intAmmo" + _local3[_local2]] > 0) {
_root.engine.strArrowType = _local3[_local2];
}
_local2++;
}
if ((((_root.engine["intAmmo" + _local3[0]] <= 0) && (_root.engine["intAmmo" + _local3[1]] <= 0)) && (_root.engine["intAmmo" + _local3[2]] <= 0)) && (_root.engine["intAmmo" + _local3[3]] <= 0)) {
_root.engine.strArrowType = "Arrow";
}
_root.game.mcPlayer.upper.torso.mcCrossbow.mcArrow.gotoAndPlay(_root.engine.strArrowType);
switch (_root.engine.strArrowType) {
case "Fire" :
_root.engine.intDamage = 5;
break;
case "Water" :
_root.engine.intDamage = 10;
break;
case "Trident" :
_root.engine.intDamage = 25;
break;
case "Bomb" :
_root.engine.intDamage = 100;
break;
default :
_root.engine.intDamage = 1;
}
}
function rollPowerUp() {
var _local3 = new Array("Bomb");
var _local2 = 1;
while (_local2 <= 8) {
if (_local2 <= 3) {
_local3.push("Trident");
}
if (_local2 <= 4) {
_local3.push("Water");
_local3.push("Fire");
}
_local3.push("Arrow");
_local2++;
}
var _local4 = _root.engine.roll(0, _local3.length);
if (_local3[_local4] != "Arrow") {
_root.engine.attachPowerUp(_local3[_local4]);
}
}
function attachPowerUp(strType) {
var _local3 = _root.game.genPowerUp.attachMovie("mcPowerUp", "mcPowerUp" + _root.game.genPowerUp.getNextHighestDepth(), _root.game.genPowerUp.getNextHighestDepth());
switch (strType) {
case "Fire" :
_local3._xscale = _local3._xscale * 1.2;
_local3._yscale = _local3._yscale * 1.2;
break;
case "Trident" :
_local3._xscale = _local3._xscale * 0.8;
_local3._yscale = _local3._yscale * 0.8;
break;
case "Bomb" :
_local3._xscale = _local3._xscale * 0.5;
_local3._yscale = _local3._yscale * 0.5;
break;
default :
_local3._xscale = _local3._xscale * 1;
_local3._yscale = _local3._yscale * 1;
}
_local3._x = -20;
_local3._y = _root.engine.roll(-50, 51);
_local3.gotoAndPlay(strType);
_local3.strType = strType;
_local3.isActivatable = true;
_local3.onActivate = function () {
_root.playSound("bonus");
switch (this.strType) {
case "Fire" :
_root.engine.intAmmoFire = _root.engine.intAmmoFire + 10;
break;
case "Water" :
_root.engine.intAmmoWater = _root.engine.intAmmoWater + 6;
break;
case "Trident" :
_root.engine.intAmmoTrident = _root.engine.intAmmoTrident + 3;
break;
case "Bomb" :
_root.engine.intAmmoBomb = _root.engine.intAmmoBomb + 2;
break;
}
_root.engine.updateInfo();
this.removeMovieClip();
};
return(_local3);
}
function attachObstacle() {
var _local3 = new Object();
_local3._xscale = _root.engine.roll(106, 196);
_local3._yscale = _root.engine.roll(106, 196);
_local3._x = -20;
_local3._y = 0;
var _local5 = new Array("mcRock", "mcCactus1", "mcCactus2");
var _local4 = _root.game.genObstacle.attachMovie(_local5[_root.engine.roll(0, _local5.length)], "mcObstacle" + _root.game.genObstacle.getNextHighestDepth(), _root.game.genObstacle.getNextHighestDepth(), _local3);
_root.engine.setShades(_local4, _root.engine.roll(75, 126));
_local4.isActivatable = true;
_local4.onActivate = function () {
_root.engine.hitPlayer(10);
};
_local4.onDisappear = function () {
this.isActivatable = false;
this.onEnterFrame = function () {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
};
return(_local4);
}
function attachBurst() {
var _local5 = _root.engine.getPos(_root.game.mcPlayer.upper.torso.mcCrossbow.mcArrow, _root.game);
var _local3 = new Object();
_local3._x = _local5.x;
_local3._y = _local5.y;
var _local4 = _root.game.attachMovie("mcBurst", "mcBurst" + _root.game.getNextHighestDepth(), _root.game.getNextHighestDepth(), _local3);
if ((_root.engine.strArrowType == "Fire") || (_root.engine.strArrowType == "Water")) {
var _local2 = new Object();
_local2.ra = 0;
if (_root.engine.strArrowType == "Fire") {
_local2.rb = 255;
_local2.ga = 115;
_local2.bb = 0;
} else if (_root.engine.strArrowType == "Water") {
_local2.rb = 0;
_local2.ga = 100;
_local2.bb = 255;
}
_local2.gb = 0;
_local2.ba = 0;
_local2.aa = 100;
_local2.ab = 0;
var _local6 = new Color(_local4);
_local6.setTransform(_local2);
}
return(_local4);
}
function attachTurtleBunny() {
var _local4 = new Object();
_local4._x = 250;
_local4._y = 325;
var _local6 = _root.game.mcDragon.dragon.attachMovie("mcTurtleBunny", "mcTurtleBunny", _root.game.mcDragon.dragon.getNextHighestDepth(), _local4);
_local6.drop = function () {
var _local4 = _root.engine.getPos(this);
var _local3 = new Object();
_local3._x = _local4.x;
_local3._y = _local4.y;
var _local5 = _root.attachMovie("mcTurtleBunny", "mcTurtleBunny", _root.getNextHighestDepth(), _local3);
_local5._xscale = _local5._xscale * -1;
_local5.onEnterFrame = function () {
this._y = this._y + 20;
this._rotation = this._rotation + 20;
if ((!_root.game.mcPlayer.isInvulnerable) && (this.hitTest(_root.game.mcPlayer.contact))) {
_root.engine.hitPlayer(10);
}
if (this._y > 400) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
this.removeMovieClip();
};
return(_local6);
}
function chkPause() {
if ((_root.engine.intDragonHP <= (_root.engine.intDragonMaxHP - 500)) && (_root.engine.intLevel == 1)) {
_root.engine.pauseGame("LevelUp");
} else if ((_root.engine.intDragonHP <= (_root.engine.intDragonMaxHP - 1000)) && (_root.engine.intLevel == 2)) {
_root.engine.pauseGame("LevelUp");
} else if ((_root.engine.intDragonHP <= (_root.engine.intDragonMaxHP - 1500)) && (_root.engine.intLevel == 3)) {
_root.engine.pauseGame("LevelUp");
} else if ((_root.engine.intDragonHP <= (_root.engine.intDragonMaxHP - 2000)) && (_root.engine.intLevel == 4)) {
_root.engine.pauseGame("LevelUp");
} else if (((120000 <= (getTimer() - _root.engine.intResumeTime)) && (_root.bitAutoPause)) && (_root.game.mcDragon.isOnScreen || (_root.game.mcDragon.isDragonBlow))) {
_root.engine.pauseGame("Manual");
}
}
function pauseGame(strReason) {
for (var _local3 in _root.game.genObstacle) {
if (_root.game.genObstacle[_local3]._name.indexOf("mcObstacle") >= 0) {
_root.game.genObstacle[_local3].onDisappear();
}
}
Mouse.removeListener(_objMouse);
delete _root.game.onEnterFrame;
delete _root.game.mcPlayer.onEnterFrame;
delete _root.game.mcPlayer.upper.torso.onEnterFrame;
_root.game.mcDragon.onEnterFrame = function () {
this._alpha = this._alpha - 5;
_root.game.mcPlayer.stop();
clearInterval(_root.engine.intObstacleTimer);
_root.engine.intObstacleTimer = undefined;
if (this._alpha <= 20) {
this.gotoAndStop("Hide");
}
if (this._alpha <= 0) {
delete this.onEnterFrame;
}
};
if (strReason != "") {
_root.engine.intTime = (_root.engine.intStoredTime + getTimer()) - _root.engine.intResumeTime;
_root.engine.intStoredTime = _root.engine.intTime;
_root.game.gotoAndPlay(strReason);
}
}
function resumeGame() {
_root.engine.intResumeTime = getTimer();
Mouse.addListener(_objMouse);
_root.game.onEnterFrame = _root.engine.onEnterScroll;
_root.game.mcPlayer.onEnterFrame = _root.engine.onEnterKeys;
_root.game.mcPlayer.upper.torso.onEnterFrame = _root.engine.onEnterAim;
delete _root.game.mcDragon.onEnterFrame;
_root.game.mcPlayer.play();
_root.game.mcDragon._alpha = 100;
_root.game.mcDragon.gotoAndPlay("Entrance");
_root.game.gotoAndPlay("GameScreen");
}
function setScore() {
_root.objScore.isDefined = true;
_root.objScore.intSimplify = _root.intSimplify;
_root.objScore.intHealsCount = _root.engine.intHealsCount;
_root.objScore.intHP = _root.engine.intPlayerHP;
_root.objScore.intTime = _root.engine.intTime;
_root.objScore.intArrowsShot = _root.engine.intArrowsShot;
_root.objScore.intLevel = _root.engine.intLevel;
_root.objScore.isAlive = _root.engine.isAlive;
_root.objScore.intHurtDragon = _root.engine.intDragonMaxHP - _root.engine.intDragonHP;
}
function obstaclesAI() {
clearInterval(_root.engine.intObstacleTimer);
if ((!_root.game.mcDragon.isDragonBlow) && (!_root.game.mcDragon.isOnScreen)) {
var _local2 = "";
for (var _local3 in _root.game.genObstacle) {
if (_root.game.genObstacle[_local3]._name.indexOf("mcObstacle") >= 0) {
if (_local2 == "") {
_local2 = _root.game.genObstacle[_local3]._name;
} else if (_root.game.genObstacle[_local2]._x <= _root.game.genObstacle[_local3]._x) {
_local2 = _root.game.genObstacle[_local3]._name;
}
}
}
if (_local2 == "") {
_root.engine.attachObstacle();
} else if (_root.game.genObstacle[_local2]._x <= -400) {
_root.engine.attachObstacle();
}
updateAfterEvent();
}
_root.engine.intObstacleTimer = setInterval(_root.engine.obstaclesAI, _root.engine.roll(1200, 2201) + (_root.intSimplify * 200));
}
function gameAI() {
if (_root.engine.roll(0, 100) < (_root.engine.intLevel * 5)) {
var _local2 = _root.engine.roll(_root.engine.intLevel * 10, 110);
if (_local2 < 40) {
_root.game.mcDragon.gotoAndPlay("Stare");
} else if (_local2 < 50) {
_root.game.mcDragon.gotoAndPlay("DropFlames");
} else if (_local2 < 70) {
_root.game.mcDragon.gotoAndPlay("ThrowFlames");
} else {
_root.game.mcDragon.gotoAndPlay("FlyOver");
}
} else if (_root.engine.isDragon) {
if (_root.engine.roll(0, 100) < (45 + (_root.engine.intLevel * 5))) {
_root.game.mcDragon.gotoAndPlay("FlyOver");
} else {
_root.game.mcDragon.gotoAndPlay("Stare");
}
_root.engine.isDragon = false;
} else if (!_root.engine.isDragon) {
if (_root.engine.roll(0, 100) < (45 + (_root.engine.intLevel * 5))) {
_root.game.mcDragon.gotoAndPlay("ThrowFlames");
} else {
_root.game.mcDragon.gotoAndPlay("DropFlames");
}
_root.engine.isDragon = true;
}
}
function timeControl(intCount, intMax) {
clearInterval(_root.engine.intCalmTimer);
if (typeof(intMax) != "number") {
intMax = _root.engine.roll(1, 11);
}
if (typeof(intCount) != "number") {
intCount = 0;
} else {
intCount++;
}
if (intCount >= intMax) {
clearInterval(_root.engine.intObstacleTimer);
_root.engine.intObstacleTimer = undefined;
var _local2 = 0;
for (var _local3 in _root.game.genObstacle) {
if (_root.game.genObstacle[_local3]._name.indexOf("mcObstacle") >= 0) {
_local2++;
}
}
if (_local2 == 0) {
_root.engine.gameAI();
} else {
_root.engine.intCalmTimer = setInterval(_root.engine.timeControl, 550 + (_root.intSimplify * 100), intCount, intMax);
}
} else {
if (_root.engine.intObstacleTimer == undefined) {
if (_root.engine.roll(0, 2) == 0) {
_root.engine.obstaclesAI();
} else {
_root.engine.gameAI();
updateAfterEvent();
return(undefined);
}
}
_root.engine.intCalmTimer = setInterval(_root.engine.timeControl, 1000 + (Math.abs(_root.intSimplify) * 100), intCount, intMax);
}
updateAfterEvent();
}
function invulnerableTime(strStatus) {
clearInterval(_root.engine.intInvulTimer);
if (strStatus == "End") {
_root.game.mcPlayer.isInvulnerable = false;
_root.engine.setShades(_root.game.mcPlayer, 100);
updateAfterEvent();
} else {
_root.game.mcPlayer.isInvulnerable = true;
_root.engine.setShades(_root.game.mcPlayer, 150);
_root.engine.intInvulTimer = setInterval(_root.engine.invulnerableTime, 2500 + (_root.intSimplify * 100), "End");
}
}
}
Symbol 351 MovieClip [TMPtg8dmu5h6g] Frame 1
this._visible = false;
_root.objSoundOptions = new Object();
_root.objSoundOptions.bitSoundOn = true;
_root.objSoundOptions.bitMusicOn = true;
_root.objSoundOptions.strSoundTrack = "";
_root.objSoundOptions.strMusic = "wind";
_root.playSound = function (strNoiseName, strType) {
if ((strType == undefined) || (strType.toLowerCase() == "sound")) {
bitPlay = _root.objSoundOptions.bitSoundOn;
} else if (strType.toLowerCase() == "music") {
bitPlay = _root.objSoundOptions.bitMusicOn;
_root.objSoundOptions.strSoundTrack = strNoiseName;
stopAllSounds();
}
if (bitPlay) {
_root.soundFX.gotoAndPlay(strNoiseName.toLowerCase());
}
};
stop();
Symbol 351 MovieClip [TMPtg8dmu5h6g] Frame 5
stop();
Symbol 351 MovieClip [TMPtg8dmu5h6g] Frame 11
gotoAndStop ("Wait");
Symbol 351 MovieClip [TMPtg8dmu5h6g] Frame 16
gotoAndStop ("Wait");
Symbol 351 MovieClip [TMPtg8dmu5h6g] Frame 20
gotoAndStop ("Wait");
Symbol 351 MovieClip [TMPtg8dmu5h6g] Frame 26
gotoAndStop ("Wait");
Symbol 351 MovieClip [TMPtg8dmu5h6g] Frame 31
gotoAndStop ("Wait");
Symbol 351 MovieClip [TMPtg8dmu5h6g] Frame 36
gotoAndStop ("Wait");
Symbol 351 MovieClip [TMPtg8dmu5h6g] Frame 47
gotoAndStop ("Wait");
Symbol 351 MovieClip [TMPtg8dmu5h6g] Frame 53
gotoAndStop ("Wait");
Symbol 351 MovieClip [TMPtg8dmu5h6g] Frame 57
gotoAndStop ("Wait");
Symbol 351 MovieClip [TMPtg8dmu5h6g] Frame 66
gotoAndStop ("Wait");
Symbol 351 MovieClip [TMPtg8dmu5h6g] Frame 75
gotoAndStop ("Wait");
Symbol 351 MovieClip [TMPtg8dmu5h6g] Frame 80
gotoAndStop ("Wait");
Symbol 351 MovieClip [TMPtg8dmu5h6g] Frame 86
gotoAndStop ("Wait");
Instance of Symbol 280 MovieClip in Symbol 361 MovieClip Frame 1
on (press) {
stopAllSounds();
_root.playSound(_root.objSoundOptions.strMusic, "music");
}
on (release) {
_root.playSound("click");
_root.gotoAndPlay("Title");
}
Symbol 361 MovieClip Frame 739
Dragon.gotoAndPlay("Scream2");
Symbol 361 MovieClip Frame 844
Dragon.gotoAndPlay("Scream");
Symbol 361 MovieClip Frame 928
stopAllSounds();
_root.playSound(_root.objSoundOptions.strMusic, "music");
_root.gotoAndPlay("Title");
stop();
Symbol 362 Button
on (press) {
playSound("click");
gotoAndPlay ("HowPlay");
}
Symbol 364 Button
on (press) {
playSound("click");
gotoAndPlay ("Options");
}
Symbol 368 Button
on (press) {
playSound("click");
gotoAndPlay ("Credits");
}
Symbol 373 Button
on (release) {
_root.playSound("click");
_root.gotoAndStop("Game");
}
Symbol 387 Button
on (press) {
playSound("click");
gotoAndPlay ("Title");
}
Symbol 392 Button
on (press) {
playSound("click");
gotoAndPlay ("Plot");
}
Symbol 399 MovieClip Frame 1
stop();
Instance of Symbol 328 MovieClip [FScrollBarSymbol] in Symbol 399 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "scroller";
horizontal = false;
}
Symbol 400 Button
on (press) {
playSound("click");
getURL (_root.battleonurl);
}
Symbol 407 MovieClip Frame 1
stop();
Instance of Symbol 407 MovieClip "sliderDrag" in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
this._x = (_root.intSimplify + 5) * 10;
}
Symbol 412 MovieClip Frame 2
this.txtSimplify.text = _root.intSimplify.toString(10);
this.btnLeft.onPress = function () {
_root.playSound("click");
this._parent.sliderDrag._x = this._parent.sliderDrag._x - 10;
if (this._parent.sliderDrag._x < 0) {
this._parent.sliderDrag._x = 0;
}
_root.intSimplify = Math.round(this._parent.sliderDrag._x / 10) - 5;
this._parent.txtSimplify.text = _root.intSimplify.toString(10);
};
this.btnRight.onPress = function () {
_root.playSound("click");
this._parent.sliderDrag._x = this._parent.sliderDrag._x + 10;
if (this._parent.sliderDrag._x > 100) {
this._parent.sliderDrag._x = 100;
}
_root.intSimplify = Math.round(this._parent.sliderDrag._x / 10) - 5;
this._parent.txtSimplify.text = _root.intSimplify.toString(10);
};
stop();
Symbol 370 Button
on (press) {
playSound("click");
_global.ipbSend();
}
Symbol 425 Button
on (release) {
_root.playSound("click");
_root.gotoAndPlay("ScoreDetails");
}
Symbol 437 Button
on (press) {
playSound("click");
getURL ("http://www.DragonFable.com");
}
Symbol 442 Button
on (press) {
playSound("click");
getURL (_root.downloadurl);
}
Symbol 446 Button
on (release) {
_root.playSound("click");
_root.play();
}
Symbol 454 Button
on (release) {
_root.playSound("click");
_root.gotoAndPlay("Title");
}