Frame 1
Stage.showMenu = false;
_focusrect = false;
Frame 2
stop();
Instance of Symbol 125 MovieClip "contLoading" in Frame 2
onClipEvent (load) {
this._visible = false;
_global.stage = _parent;
}
onClipEvent (enterFrame) {
this.fPreloadGame();
}
Instance of Symbol 142 MovieClip "mcAnim" in Frame 2
onClipEvent (load) {
this._visible = false;
}
Frame 3
stop();
Symbol 3 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 16 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 26 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 35 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 36 MovieClip [UpArrow] Frame 1
stop();
Symbol 36 MovieClip [UpArrow] Frame 2
stop();
Symbol 36 MovieClip [UpArrow] Frame 3
stop();
Symbol 43 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 50 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 55 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 56 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 64 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 72 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 80 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 81 MovieClip [DownArrow] Frame 1
stop();
Symbol 81 MovieClip [DownArrow] Frame 2
stop();
Symbol 81 MovieClip [DownArrow] Frame 3
stop();
Symbol 84 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 85 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
var _local1 = this;
if (_local1._height == 4) {
} else {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height == 1) {
} else {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 90 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 2
_global.contAvatar.ChargeUps = false;
_parent._x = _global.avatar._x;
_parent._y = _global.avatar._y - 40;
bSpeedMax = _global.contAvatar.PowerUpsThrow;
bSpeed = bSpeedMax;
_global.contAvatar.PowerUpsThrow = 0;
Instance of Symbol 89 MovieClip "bomerang" in Symbol 90 MovieClip Frame 3
onClipEvent (load) {
this._name = "bomerang";
}
Symbol 90 MovieClip Frame 4
_parent._x = _parent._x + bSpeed;
bSpeed = bSpeedMax * 0.9;
Symbol 90 MovieClip Frame 5
_parent._x = _parent._x + bSpeed;
bSpeed = bSpeedMax * 0.8;
Symbol 90 MovieClip Frame 6
_parent._x = _parent._x + bSpeed;
bSpeed = bSpeedMax * 0.7;
Symbol 90 MovieClip Frame 7
_parent._x = _parent._x + bSpeed;
bSpeed = bSpeedMax * 0.6;
Symbol 90 MovieClip Frame 8
_parent._x = _parent._x + bSpeed;
bSpeed = bSpeedMax * 0.5;
Symbol 90 MovieClip Frame 9
_parent._x = _parent._x + bSpeed;
bSpeed = bSpeedMax * 0.4;
Symbol 90 MovieClip Frame 10
_parent._x = _parent._x + bSpeed;
bSpeed = bSpeedMax * 0.4;
Symbol 90 MovieClip Frame 11
_parent._x = _parent._x + bSpeed;
bSpeed = bSpeedMax * 0.2;
Symbol 90 MovieClip Frame 12
if (bSpeedMax > 30) {
_parent._x = _parent._x + bSpeed;
bSpeed = bSpeedMax * 0.1;
}
Symbol 90 MovieClip Frame 13
if (bSpeedMax > 40) {
_parent._x = _parent._x + bSpeed;
bSpeed = bSpeedMax * 0.1;
}
Symbol 90 MovieClip Frame 14
if (bSpeedMax > 45) {
_parent._x = _parent._x + bSpeed;
bSpeed = bSpeedMax * 0.1;
}
Symbol 90 MovieClip Frame 15
if (bSpeedMax > 50) {
_parent._x = _parent._x + bSpeed;
bSpeed = bSpeedMax * 0.1;
}
Symbol 90 MovieClip Frame 16
if (bSpeedMax > 55) {
_parent._x = _parent._x + bSpeed;
bSpeed = bSpeedMax * 0.1;
}
Symbol 90 MovieClip Frame 17
if (bSpeedMax > 60) {
_parent._x = _parent._x + bSpeed;
bSpeed = bSpeedMax * 0.1;
}
Symbol 90 MovieClip Frame 18
dividande = 9;
Symbol 90 MovieClip Frame 19
posBoumX = _parent._x;
posBoumY = _parent._y;
persoX = _global.avatar._x;
persoY = _global.avatar._y - 40;
DistanceX = persoX - posBoumX;
DistanceY = persoY - posBoumY;
_parent._x = _parent._x + (DistanceX / dividande);
_parent._y = _parent._y + (DistanceY / dividande);
dividande--;
Symbol 90 MovieClip Frame 20
call(19);
Symbol 90 MovieClip Frame 21
call(19);
Symbol 90 MovieClip Frame 22
call(19);
Symbol 90 MovieClip Frame 23
call(19);
Symbol 90 MovieClip Frame 24
call(19);
Symbol 90 MovieClip Frame 25
call(19);
Symbol 90 MovieClip Frame 26
call(19);
Symbol 90 MovieClip Frame 27
_global.contAvatar.ChargeUps = true;
call(19);
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 2
_global.contAvatar.ChargeUps = false;
_parent._x = _global.avatar._x;
_parent._y = _global.avatar._y - 40;
bSpeedMax = _global.contAvatar.PowerUpsThrow;
bSpeed = bSpeedMax;
_global.contAvatar.PowerUpsThrow = 0;
Instance of Symbol 89 MovieClip "bomerang" in Symbol 91 MovieClip Frame 3
onClipEvent (load) {
this._name = "bomerang";
}
Symbol 91 MovieClip Frame 4
_parent._x = _parent._x - bSpeed;
bSpeed = bSpeedMax * 0.9;
Symbol 91 MovieClip Frame 5
_parent._x = _parent._x - bSpeed;
bSpeed = bSpeedMax * 0.8;
Symbol 91 MovieClip Frame 6
_parent._x = _parent._x - bSpeed;
bSpeed = bSpeedMax * 0.7;
Symbol 91 MovieClip Frame 7
_parent._x = _parent._x - bSpeed;
bSpeed = bSpeedMax * 0.6;
Symbol 91 MovieClip Frame 8
_parent._x = _parent._x - bSpeed;
bSpeed = bSpeedMax * 0.5;
Symbol 91 MovieClip Frame 9
_parent._x = _parent._x - bSpeed;
bSpeed = bSpeedMax * 0.4;
Symbol 91 MovieClip Frame 10
_parent._x = _parent._x - bSpeed;
bSpeed = bSpeedMax * 0.4;
Symbol 91 MovieClip Frame 11
_parent._x = _parent._x - bSpeed;
bSpeed = bSpeedMax * 0.2;
Symbol 91 MovieClip Frame 12
if (bSpeedMax > 30) {
_parent._x = _parent._x - bSpeed;
bSpeed = bSpeedMax * 0.1;
}
Symbol 91 MovieClip Frame 13
if (bSpeedMax > 40) {
_parent._x = _parent._x - bSpeed;
bSpeed = bSpeedMax * 0.1;
}
Symbol 91 MovieClip Frame 14
if (bSpeedMax > 45) {
_parent._x = _parent._x - bSpeed;
bSpeed = bSpeedMax * 0.1;
}
Symbol 91 MovieClip Frame 15
if (bSpeedMax > 50) {
_parent._x = _parent._x - bSpeed;
bSpeed = bSpeedMax * 0.1;
}
Symbol 91 MovieClip Frame 16
if (bSpeedMax > 55) {
_parent._x = _parent._x - bSpeed;
bSpeed = bSpeedMax * 0.1;
}
Symbol 91 MovieClip Frame 17
if (bSpeedMax > 60) {
_parent._x = _parent._x - bSpeed;
bSpeed = bSpeedMax * 0.1;
}
Symbol 91 MovieClip Frame 18
dividande = 9;
Symbol 91 MovieClip Frame 19
posBoumX = _parent._x;
posBoumY = _parent._y;
persoX = _global.avatar._x;
persoY = _global.avatar._y - 40;
DistanceX = persoX - posBoumX;
DistanceY = persoY - posBoumY;
_parent._x = _parent._x + (DistanceX / dividande);
_parent._y = _parent._y + (DistanceY / dividande);
dividande--;
Symbol 91 MovieClip Frame 20
call(19);
Symbol 91 MovieClip Frame 21
call(19);
Symbol 91 MovieClip Frame 22
call(19);
Symbol 91 MovieClip Frame 23
call(19);
Symbol 91 MovieClip Frame 24
call(19);
Symbol 91 MovieClip Frame 25
call(19);
Symbol 91 MovieClip Frame 26
call(19);
Symbol 91 MovieClip Frame 27
_global.contAvatar.ChargeUps = true;
call(19);
Symbol 92 MovieClip [checkside] Frame 1
stop();
Instance of Symbol 88 MovieClip in Symbol 92 MovieClip [checkside] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 99 Button
on (keyPress "<Left>") {
return(undefined);
}
on (keyPress "<Right>") {
return(undefined);
}
on (keyPress "<Up>") {
return(undefined);
}
on (keyPress "<Down>") {
return(undefined);
}
on (keyPress "<Space>") {
return(undefined);
}
on (keyPress "p") {
return(undefined);
}
on (keyPress "P") {
return(undefined);
}
on (keyPress "q") {
return(undefined);
}
on (keyPress "Q") {
return(undefined);
}
Symbol 125 MovieClip Frame 1
function fPreloadGame() {
var _local1 = _global;
_nLoadPercent = (_local1.stage.getBytesLoaded() / _local1.stage.getBytesTotal()) * 100;
if (_nLoadPercent != 100) {
_nLoadPercent = Math.floor(_nLoadPercent);
_local1.stage.loadingScreen.mcAiguille._rotation = -10 + (_nLoadPercent * 1.6);
_local1.stage.loadingScreen._sPercent = _nLoadPercent;
} else {
_local1.stage.loadingScreen.mcAiguille._rotation = 150;
_local1.stage.loadingScreen._sPercent = "100";
_local1.stage.mcAnim._visible = true;
_local1.stage.mcAnim.play();
}
}
this._nLoadPercent = 0;
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 4
_global.objSounds.fPlaySounds(this, "sFx_leaves", 0, 1, 50, "fx", "transition2");
Symbol 142 MovieClip Frame 17
_parent.nextFrame();
Symbol 142 MovieClip Frame 18
_global.objSounds.fPlaySounds(this, "sFx_leaves", 0, 1, 50, "fx", "transition3");
Symbol 142 MovieClip Frame 24
_global.contTrans.gotoAndStop("leaves");
this._visible = false;
Symbol 167 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 2
gotoAndStop (1);
Symbol 265 Button
on (release) {
mcBird.stop();
mcBird2.stop();
mcTitle.stop();
fHelpNavigation("Help");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this.titleAvatar, "sFx_btnOver", 0, 1, 100, "fx", "TitleCard");
}
Symbol 270 Button
on (release) {
mcBird.stop();
mcBird2.stop();
mcTitle.stop();
fHelpNavigation("Play");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this.mcTitle, "sFx_btnOver", 0, 1, 100, "fx", "TitleCard");
}
Symbol 273 MovieClip Frame 1
function fHelpNavigation(arrow) {
var _local1 = _global;
if (arrow == "Help") {
_local1.objSounds.fPlaySounds(this.titleAvatar, "sFx_btnDown", 0, 1, 80, "fx", "TitleCard");
_local1.contTrans.str_previousScreen = _parent._currentframe;
_local1.contTrans.stopSound = false;
_local1.contTrans.str_nextScreen = "instructionScreen";
_local1.contTrans.gotoAndStop("interScreen");
} else if (arrow == "Play") {
_local1.contTrans.str_previousScreen = _parent._currentframe;
_local1.contTrans.stopSound = true;
_local1.contTrans.str_nextScreen = "levelScreen1";
_local1.contTrans.gotoAndStop("interScreen");
}
}
stop();
_global.objSounds.fPlaySounds(this.mcLogo, "sMu_tts", 0, 99999, 80, "music", "TitleCardsoundTrack");
Symbol 275 MovieClip Frame 1
function fInitializeContMain() {
_aGameplay = [0, 7];
this.bol_submit = false;
}
function fStyleNumber(_nNumber, _nMinimumChar) {
_sNumber = String(_nNumber);
_sNewString = "";
_nlength = _sNumber.length;
_nlength = _nlength / 3;
if (_nlength <= 1) {
_sNewNumber = _sNumber;
if (_sNewNumber.length < _nMinimumChar) {
_sNewNumber = "0" + _sNewNumber;
}
return(_sNewNumber);
}
_nLoop = _nlength;
while (_nLoop > 1) {
_sNewString = (" " + _sNumber.substr(-3)) + _sNewString;
_sNumber = _sNumber.substr(0, -3);
_nLoop--;
}
_sNewNumber = _sNumber + _sNewString;
if (_sNewNumber.length < _nMinimumChar) {
_sNewNumber = "0" + _sNewNumber;
}
return(_sNewNumber);
}
function fPause(mode) {
var _local1 = _global;
_local1.contTrans.str_previousScreen = _parent._currentframe;
_local1.contTrans.str_nextScreen = _parent._currentframe;
_local1.contPause.opened = true;
this._nPauseStartTime = getTimer();
_local1.mcHUD.mcTimer.stop();
_local1.b.broadcastMessage("onPause");
_local1.mcHUD.btn_pause.enabled = false;
_local1.boomerang.boomerangPath.bomerang.stop();
_local1.boomerang.boomerangPath.stop();
_local1.avatarAnim.anim.stop();
if (_local1.contAvatar._sJetInstance != undefined) {
if (_local1.contAvatar._sLianeInstance._sState != "idle") {
if (_local1.contAvatar._sLianeInstance._sState == "jump") {
_local1.contAvatar._sJetInstance.jetJump.stop();
} else if (_local1.contAvatar._sJetInstance.jet._currentframe == 1) {
_local1.contAvatar._sJetInstance.stop();
} else {
_local1.contAvatar._sJetInstance.jet.jetAnim.stop();
}
}
}
if (mode != "anim") {
if (_local1.contAvatar._sLianeInstance != undefined) {
if (_local1.contAvatar._sLianeInstance._sState != "idle") {
if (_local1.contAvatar._sLianeInstance._sState == "cut") {
_local1.contAvatar._sLianeInstance.stop();
} else {
_local1.contAvatar._sLianeInstance.mcLiane.stop();
_local1.contAvatar._sLianeInstance.mcLiane.mcLianeBalance.stop();
_local1.contAvatar._sLianeInstance.mcSokkaLiane.avatarLiane.stop();
}
}
}
}
if (mode != "anim") {
_local1.contPause.gotoAndStop("pause");
}
}
function fUnPause() {
var _local1 = _global;
_local1.contPause.opened = false;
_local1.b.broadcastMessage("onPlay");
_local1.mcHUD.btn_pause.enabled = true;
if (_local1.contAvatar._sJetInstance != undefined) {
if (_local1.contAvatar._sLianeInstance._sState != "idle") {
if (_local1.contAvatar._sLianeInstance._sState == "jump") {
_local1.contAvatar._sJetInstance.jetJump.play();
} else if (_local1.contAvatar._sJetInstance.jet._currentframe == 1) {
_local1.contAvatar._sJetInstance.play();
} else {
_local1.contAvatar._sJetInstance.jet.jetAnim.play();
}
}
}
if (_local1.contAvatar._sLianeInstance != undefined) {
if (_local1.contAvatar._sLianeInstance._sState != "idle") {
if (_local1.contAvatar._sLianeInstance._sState == "cut") {
_local1.contAvatar._sLianeInstance.play();
} else {
_local1.contAvatar._sLianeInstance.mcLiane.play();
_local1.contAvatar._sLianeInstance.mcLiane.mcLianeBalance.play();
_local1.contAvatar._sLianeInstance.mcSokkaLiane.avatarLiane.play();
}
}
}
if (_local1.boomerang.boomerangPath._currentframe != 1) {
_local1.boomerang.boomerangPath.play();
_local1.boomerang.boomerangPath.bomerang.play();
}
var _local2 = getTimer() - this._nPauseStartTime;
_local1.mcHUD.mcTimer.play();
_local1.mcHUD.mcTimer._nTimerRef = _local1.mcHUD.mcTimer._nTimerRef + _local2;
_local1.avatarAnim.anim.play();
_local1.contPause.gotoAndStop(1);
}
_global.contMain = this;
fInitializeContMain();
getScores = function () {
if (gProxyObj == undefined) {
_global.contMain.listScores();
} else {
_global.contMain.bol_waiting = true;
gProxyObj.getScores(cbFunc2);
}
};
submitScore = function (theScore) {
this.bol_submit = true;
gProxyObj.submitScore(theScore, cbFunc);
};
initHiScores = function () {
_global.contMain.str_highScoreTxtPath = _global.stage.highScoreScreen.txt_highScore;
gProxyObj.setGame_Id("av_treetop");
};
getScoreString = function () {
var str = "Oops! The high score list isn't available right now!";
if (gProxyObj != undefined) {
var numScores = gProxyObj.getScoreCount();
if (numScores > 0) {
var _local1;
var thisPlayer;
var _local3;
var thisScore;
str = "";
_local1 = 0;
while (_local1 < numScores) {
thisPlayer = gProxyObj.getScoreItem(_local1);
_local3 = thisPlayer[0];
thisScore = _global.contMain.fStyleNumber(thisPlayer[1]);
spaceNb = (30 - _local3.length) - thisScore.length;
spaceTXT = "";
var _local2 = 0;
while (_local2 < spaceNb) {
spaceTXT = spaceTXT + " ";
_local2++;
}
if (_local1 < 9) {
str = str + ((((((_local1 + 1) + " ") + _local3) + spaceTXT) + thisScore) + newline);
} else if (_local1 < 99) {
str = str + ((((((_local1 + 1) + " ") + _local3) + spaceTXT) + thisScore) + newline);
} else {
str = str + ((((((_local1 + 1) + " ") + _local3) + spaceTXT) + thisScore) + newline);
}
_local1++;
}
} else {
str = "Whoops, the high scores seem to have escaped!";
}
}
return(str);
};
listScores = function () {
var _local1 = _global;
_local1.contMain.str_highScoreTxtPath = _local1.stage.highScoreScreen.txt_highScore;
_local1.contMain.str_highScoreTxtPath.text = _local1.contMain.getScoreString();
_local1.contMain.bol_waiting = false;
};
cbFunc = function (thisBool) {
var _local1 = _global;
if (thisBool) {
_local1.contMain.listScores();
} else {
_local1.contMain.str_highScoreTxtPath = _local1.stage.highScoreScreen.txt_highScore;
_local1.contMain.str_highScoreTxtPath.text = "Oops! The high score list isn\u2019t available right now!";
_local1.contMain.bol_waiting = false;
}
};
cbFunc2 = function (thisBool) {
var _local1 = _global;
if (thisBool) {
_local1.contMain.listScores();
} else {
_local1.contMain.str_highScoreTxtPath = _local1.stage.highScoreScreen.txt_highScore;
_local1.contMain.bol_waiting = false;
_local1.contMain.str_highScoreTxtPath.text = "Oops! The high score list isn\u2019t available right now!";
}
};
stop();
Symbol 277 MovieClip Frame 2
_global.objSounds.fPlaySounds(this, "sFx_wind", 0, 1, 60, "fx", "transition");
Symbol 277 MovieClip Frame 4
_global.objSounds.fPlaySounds(this, "sFx_leaves", 0, 1, 50, "fx", "transition2");
Symbol 277 MovieClip Frame 10
_global.objSounds.fPlaySounds(this, "sFx_leaves", 0, 1, 80, "fx", "transition1");
Symbol 277 MovieClip Frame 17
_parent.fChangeLabel();
Symbol 277 MovieClip Frame 18
_global.objSounds.fPlaySounds(this, "sFx_leaves", 0, 1, 50, "fx", "transition3");
Symbol 277 MovieClip Frame 24
_parent.gotoAndStop("leaves");
Symbol 280 MovieClip Frame 6
_global.avatarAnim.gotoAndStop(poseStart);
_global.avatar.gotoAndStop(sideStart);
_global.contGame.fManageLive(-1);
Symbol 280 MovieClip Frame 12
_global.contMain.fUnPause();
_parent.gotoAndStop("idle");
Symbol 298 MovieClip Frame 2
_global.objSounds.fPlaySounds(this, "sFx_explode01", 0, 1, 100, "fx", "endGame");
Symbol 298 MovieClip Frame 4
_global.objSounds.fPlaySounds(this, "sFx_explode01", 0, 1, 100, "fx", "endGame");
Symbol 298 MovieClip Frame 6
_global.objSounds.fPlaySounds(this, "sFx_explode00", 0, 1, 100, "fx", "endGame");
Symbol 298 MovieClip Frame 39
_parent.fChangeLabel();
Symbol 298 MovieClip Frame 51
_parent.gotoAndStop("idle");
Symbol 299 MovieClip Frame 103
_parent.gotoAndStop("idle");
Symbol 300 MovieClip Frame 1
function fChangeLabel() {
var _local1 = this;
var _local2 = _global;
if (_local1.bol_empty_var == true) {
_local1.bol_empty_var = false;
_parent.gotoAndStop("empty_var_game");
_local2.objSounds._aFxSounds = [];
_local2.objSounds._aMusicSounds = [];
_local2.RPE(_local2.b);
}
if (_local1.bol_innerAMovieClip == true) {
_local1.bol_innerAMovieClip = false;
} else if (_local1.bol_innerAFrame == true) {
_local1.bol_innerAFrame = false;
var _local3 = _local1.str_previousScreen;
_local3.gotoAndStop(_local1.str_nextScreen);
if (_local1.bol_getHighScore == true) {
_local1.bol_getHighScore = false;
_local2.contMain.getScores();
}
if (_local1.bol_submitHighScore == true) {
_local1.bol_submitHighScore = false;
_local2.contMain.submitScore(_local2.contMain._aGameplay[0]);
}
} else {
_local2.stage.gotoAndStop(_local1.str_nextScreen);
if (_local1.bol_getHighScore == true) {
_local1.bol_getHighScore = false;
_local2.contMain.getScores();
}
if (_local1.bol_submitHighScore == true) {
_local1.bol_submitHighScore = false;
_local2.contMain.submitScore(_local2.contMain._aGameplay[0]);
}
}
}
function fEndNavigation(arrow, path) {
var _local1 = this;
var _local2 = _global;
var _local3 = arrow;
_local1.str_previousScreen = "";
if (_local3 == "Submit") {
_local2.objSounds.fPlaySounds(_local1, "sFx_btnDown", 0, 1, 100, "fx", "endCard");
_local1.bol_submitHighScore = true;
_local1.stopSound = false;
_local1.str_nextScreen = "highScoreScreen";
} else if (_local3 == "ViewHS") {
_local2.objSounds.fPlaySounds(_local1, "sFx_btnDown", 0, 1, 100, "fx", "endCard");
_local1.bol_getHighScore = true;
_local1.stopSound = false;
_local1.str_nextScreen = "highScoreScreen";
} else if (_local3 == "PlayAgain") {
_local2.objSounds.fPlaySounds(_local1, "sFx_btnDown", 0, 1, 100, "fx", "endCard");
_local1.str_nextScreen = "empty_var_game";
_local1.stopSound = true;
_local2.contTrans.bol_empty_var = true;
}
_local1.gotoAndStop("interScreen");
}
stop();
Symbol 300 MovieClip Frame 2
stop();
if (this.stopSound == true) {
_global.objSounds.fStopSounds("", "", "all", "", "");
}
Symbol 300 MovieClip Frame 3
stop();
Symbol 300 MovieClip Frame 4
stop();
if (this.stopSound == true) {
_global.objSounds.fStopSounds("", "", "all", "", "");
}
Symbol 300 MovieClip Frame 5
stop();
Symbol 308 Button
on (release) {
_global.objSounds.fPlaySounds(this.mcText, "sFx_btnDown", 0, 1, 100, "fx", "TitleCard");
fHelpNavigation("Next");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this.mcText, "sFx_btnOver", 0, 1, 100, "fx", "TitleCard");
}
Symbol 345 Button
on (release) {
fHelpNavigation("Play");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this.mcText, "sFx_btnOver", 0, 1, 100, "fx", "TitleCard");
}
Symbol 349 Button
on (release) {
_global.objSounds.fPlaySounds(this.mcText, "sFx_btnDown", 0, 1, 100, "fx", "TitleCard");
fHelpNavigation("Back");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this.mcText, "sFx_btnOver", 0, 1, 100, "fx", "TitleCard");
}
Symbol 350 MovieClip Frame 1
function fHelpNavigation(arrow) {
var _local1 = _global;
var _local2 = arrow;
if (_local2 == "Back") {
prevFrame();
} else if (_local2 == "Next") {
nextFrame();
} else if ((_local2 == "Play") and (_local1.stage._currentframe == 2)) {
_local1.contTrans.str_previousScreen = "";
_local1.contTrans.stopSound = true;
_local1.contTrans.str_nextScreen = "levelScreen1";
_local1.contTrans.gotoAndStop("interScreen");
} else if ((_local2 == "Play") and (_local1.stage._currentframe > 2)) {
_local1.contTrans.bol_innerAFrame = true;
_local1.contTrans.str_previousScreen = _parent;
_local1.contTrans.str_nextScreen = "pause";
_local1.contTrans.gotoAndStop("interScreen");
}
}
stop();
Symbol 356 MovieClip Frame 2
this.swapDepths(789001);
this.removeMovieClip();
Symbol 358 MovieClip Frame 2
this.swapDepths(789000);
this.removeMovieClip();
Symbol 367 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 395 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 395 MovieClip Frame 78
_parent.gotoAndStop("idle");
Symbol 396 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 2
stop();
Symbol 405 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Instance of Symbol 368 MovieClip "hitZone" in Symbol 405 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
this._nCadre = _parent._parent.MyCadre;
}
onClipEvent (enterFrame) {
if (_global.contGame._nCadre == this._nCadre) {
if (this.hitTest(_global.boomerang.boomerangPath.bomerang)) {
this._nBoundsAvatar = _global.avatar.getBounds(_global.stage);
this._nBoundsThis = this.getBounds(_global.stage);
if (this._nBoundsAvatar.xMin >= this._nBoundsThis.xMin) {
_parent._xscale = -_parent._xscale;
}
_global.objSounds.fPlaySounds(this, "sFx_hurt00", 0, 1, 80, "fx", "head");
_global.contGame.fAddPoint(2500);
_parent._parent.gotoAndStop("hitted");
}
}
}
Symbol 415 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
stop();
Instance of Symbol 368 MovieClip "hitZone" in Symbol 415 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
this._nCadre = _parent._parent.MyCadre;
}
onClipEvent (enterFrame) {
if (_global.contGame._nCadre == this._nCadre) {
if (this.hitTest(_global.boomerang.boomerangPath.bomerang)) {
this._nBoundsAvatar = _global.avatar.getBounds(_global.stage);
this._nBoundsThis = this.getBounds(_global.stage);
if (this._nBoundsAvatar.xMin >= this._nBoundsThis.xMin) {
_parent._xscale = -_parent._xscale;
}
_global.objSounds.fPlaySounds(this, "sFx_hurt01", 0, 1, 80, "fx", "head");
_global.contGame.fAddPoint(3500);
_parent._parent.gotoAndStop("hitted");
}
}
}
Symbol 415 MovieClip Frame 3
_global.objSounds.fPlaySounds(this, "sFx_arrow", 0, 1, 80, "fx", "archerThrow");
var nBounds = mcArrow.getBounds(_global.levelScreen);
theX = (nBounds.xMin + nBounds.xMax) / 2;
theY = (nBounds.yMin + nBounds.yMax) / 2;
rotation = this._rotation - 5;
_parent.fHunterCreateArrow(theX, theY, rotation, 0);
_parent.fHunterCreateArrow(theX, theY, rotation, 1);
_parent.fHunterCreateArrow(theX, theY, rotation, 2);
Symbol 415 MovieClip Frame 16
_global.objSounds.fPlaySounds(this, "sFx_arcTend", 0, 1, 80, "fx", "archer");
Symbol 422 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Instance of Symbol 368 MovieClip "hitZone" in Symbol 422 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
this._nCadre = _parent._parent.MyCadre;
}
onClipEvent (enterFrame) {
if (_global.contGame._nCadre == this._nCadre) {
if (this.hitTest(_global.boomerang.boomerangPath.bomerang)) {
this._nBoundsAvatar = _global.avatar.getBounds(_global.stage);
this._nBoundsThis = this.getBounds(_global.stage);
if (this._nBoundsAvatar.xMin >= this._nBoundsThis.xMin) {
_parent._xscale = -_parent._xscale;
}
_global.objSounds.fPlaySounds(this, "sFx_hurt00", 0, 1, 80, "fx", "head");
_global.contGame.fAddPoint(4500);
_parent._parent.gotoAndStop("hitted");
}
}
}
Symbol 422 MovieClip Frame 9
_global.objSounds.fPlaySounds(this, "sFx_archerHit", 0, 1, 80, "fx", "arm");
Instance of Symbol 419 MovieClip "mcHit" in Symbol 422 MovieClip Frame 12
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_global.avatarAnim.hitTest(this)) {
_global.avatar.fAvatarHurt();
}
}
Symbol 422 MovieClip Frame 28
_parent.gotoAndStop(1);
Symbol 430 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 430 MovieClip Frame 21
_parent.fDeleteObstacle();
Symbol 431 MovieClip [objHunterArcher] Frame 1
#initclip 16
Object.registerClass("objHunterArcher", objObstacle);
#endinitclip
stop();
Instance of Symbol 407 MovieClip in Symbol 431 MovieClip [objHunterArcher] Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
_parent.fHunterTouch(this);
_parent.fHunterRange(this, _global.avatar, _global.levelScreen, _global.contAvatar);
}
Instance of Symbol 407 MovieClip in Symbol 431 MovieClip [objHunterArcher] Frame 1
onClipEvent (load) {
this._visible = false;
if (_parent._bInit == undefined) {
_parent._bInit = false;
}
this.onEnterFrame = function () {
var _local1 = _parent;
var _local2 = _global;
if ((_local2.contGame._bInit == true) and (_local1._bInit == false)) {
_local1._bInit = true;
var _local3 = _local2.contGame.fGetObstaclePosition(_local1, _local1._x, "cadre");
var _nLookSide = _local2.contgame.fGetObstaclePosition(_local1, _local1._x, "lookSide");
_local1.fInitializeProperties(_local3, _nLookSide);
_local1.gotoAndStop("getPosition");
delete this.onEnterFrame;
} else if ((_local2.contGame._bInit == true) and (_local1._bInit == true)) {
delete this.onEnterFrame;
}
};
}
Symbol 431 MovieClip [objHunterArcher] Frame 2
stop();
Instance of Symbol 407 MovieClip in Symbol 431 MovieClip [objHunterArcher] Frame 2
onClipEvent (load) {
this._visible = false;
this._nAttackDelay = 0;
}
onClipEvent (enterFrame) {
if (_global.contGame._nCadre == _parent.MyCadre) {
pos = this.getBounds(_global.stage);
posAvatar = _global.avatarAnim.getBounds(_global.stage);
posAvatarX = (posAvatar.xMin + posAvatar.xMax) / 2;
posAvatarY = (posAvatar.yMin + posAvatar.yMax) / 2;
distanceX = posAvatarX - pos.xMax;
distanceY = posAvatarY - pos.yMax;
angleRot = Math.atan2(distanceY, distanceX);
angleRot = (angleRot * 180) / Math.PI;
if (angleRot < 0) {
angleRot = angleRot * -1;
angleTemp = 180 - angleRot;
angleRot = 180 + angleTemp;
}
if (angleRot > 210) {
angleRot = 210;
} else if (angleRot < 140) {
angleRot = 140;
}
var _nAngle = Math.abs(((distanceX - 30) / 35) * 17.5);
if (_nAngle < 180) {
_nAngle = 180;
} else if (_nAngle > 200) {
_nAngle = 200;
}
_parent.Archer_mc._rotation = Math.abs(angleRot) + _nAngle;
_parent.fHunterTouch(this);
_parent.fHunterRange(this, _global.avatar, _global.levelScreen, _global.contAvatar);
if (this._nAttackDelay == 30) {
if ((angleRot <= 210) && (angleRot >= 140)) {
_parent.fHunterFire(this, _global.avatar, _global.levelScreen, _global.contAvatar);
this._nAttackDelay = 0;
}
} else {
this._nAttackDelay++;
}
}
}
Symbol 431 MovieClip [objHunterArcher] Frame 3
stop();
Instance of Symbol 407 MovieClip in Symbol 431 MovieClip [objHunterArcher] Frame 3
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
_parent.fHunterTouch(this);
}
Symbol 431 MovieClip [objHunterArcher] Frame 4
stop();
Symbol 431 MovieClip [objHunterArcher] Frame 5
_global.contGame.fGetPosition(this, this._x);
Symbol 434 MovieClip Frame 2
_global.contGame.fGetPosition(this, this._x);
stop();
Symbol 442 MovieClip Frame 2
_global.contGame.fGetPosition(this, this._x);
stop();
Symbol 445 MovieClip Frame 2
_global.contGame.fGetPosition(this, this._x);
stop();
Symbol 500 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 501 MovieClip Frame 2
_global.contGame.fGetPosition(this, this._x);
stop();
Symbol 501 MovieClip Frame 20
stop();
_global.contGame.fEndGame();
Instance of Symbol 368 MovieClip "hitTest1" in Symbol 501 MovieClip Frame 21
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_global.avatar.hitTest(this)) {
_global.contMain.fPause("anim");
_global.avatar._visible = false;
_parent.gotoAndPlay(String(this._name));
}
}
Instance of Symbol 368 MovieClip "hitTest2" in Symbol 501 MovieClip Frame 21
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_global.avatar.hitTest(this)) {
_global.contMain.fPause("anim");
_global.avatar._visible = false;
_parent.gotoAndPlay(String(this._name));
}
}
Instance of Symbol 368 MovieClip "hitTest3" in Symbol 501 MovieClip Frame 21
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_global.avatar.hitTest(this)) {
_global.contMain.fPause("anim");
_global.avatar._visible = false;
_parent.gotoAndPlay(String(this._name));
}
}
Instance of Symbol 368 MovieClip "hitTest4" in Symbol 501 MovieClip Frame 21
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_global.avatar.hitTest(this)) {
_global.contMain.fPause("anim");
_global.avatar._visible = false;
_parent.gotoAndPlay(String(this._name));
}
}
Instance of Symbol 368 MovieClip "hitTest5" in Symbol 501 MovieClip Frame 21
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_global.avatar.hitTest(this)) {
_global.contMain.fPause("anim");
_global.avatar._visible = false;
_parent.gotoAndPlay(String(this._name));
}
}
Instance of Symbol 368 MovieClip "hitTest6" in Symbol 501 MovieClip Frame 21
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_global.avatar.hitTest(this)) {
_global.contMain.fPause("anim");
_global.avatar._visible = false;
_parent.gotoAndPlay(String(this._name));
}
}
Instance of Symbol 368 MovieClip "hitTest7" in Symbol 501 MovieClip Frame 21
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_global.avatar.hitTest(this)) {
_global.contMain.fPause("anim");
_global.avatar._visible = false;
_parent.gotoAndPlay(String(this._name));
}
}
Symbol 511 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Instance of Symbol 517 MovieClip in Symbol 518 MovieClip Frame 1
onClipEvent (load) {
_parent._visible = false;
}
onClipEvent (enterFrame) {
_parent._parent._parent._parent.fLianeSwing(_parent, _parent._name, _global.avatar, _global.levelScreen, _global.contAvatar);
}
Symbol 525 MovieClip Frame 7
if (_parent.MyCadre == _global.contGame._nCadre) {
_global.objSounds.fPlaySounds(this, "sFx_lianeBal00", 0, 1, 80, "fx", "liane");
}
Symbol 525 MovieClip Frame 27
if (_parent.MyCadre == _global.contGame._nCadre) {
_global.objSounds.fPlaySounds(this, "sFx_lianeBal00", 0, 1, 80, "fx", "liane");
}
Symbol 537 MovieClip Frame 1
stop();
Symbol 537 MovieClip Frame 2
stop();
Symbol 537 MovieClip Frame 3
stop();
Symbol 537 MovieClip Frame 4
stop();
Symbol 537 MovieClip Frame 5
stop();
Symbol 538 MovieClip [objLiane] Frame 1
#initclip 8
Object.registerClass("objLiane", objObstacle);
#endinitclip
this._sState = "attach";
stop();
Instance of Symbol 503 MovieClip in Symbol 538 MovieClip [objLiane] Frame 1
onClipEvent (enterFrame) {
if (_parent._name.indexOf("collect") != -1) {
_parent._bInit = false;
_parent.gotoAndStop("idle");
} else {
_parent.gotoAndStop("getPosition");
}
}
Symbol 538 MovieClip [objLiane] Frame 2
stop();
this._sState = "attach";
Instance of Symbol 503 MovieClip "positionner" in Symbol 538 MovieClip [objLiane] Frame 2
onClipEvent (enterFrame) {
if (_parent.MyCadre == _global.contGame._nCadre) {
_global.contAvatar._sLianeInstance = _parent;
}
}
Instance of Symbol 419 MovieClip in Symbol 538 MovieClip [objLiane] Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_global.contGame._nCadre == _parent.MyCadre) {
if (this.hitTest(_global.boomerang.boomerangPath.bomerang)) {
_global.contGame.fAddPoint(750);
_global.objSounds.fPlaySounds(this, "sFx_lianeCut", 0, 1, 80, "fx", "liane");
_parent.play();
}
}
}
Symbol 538 MovieClip [objLiane] Frame 3
_global.objSounds.fPlaySounds(this, "sFx_lianeBal01", 0, 1, 50, "fx", "liane");
this._sState = "balance";
Instance of Symbol 537 MovieClip "mcSokkaLiane" in Symbol 538 MovieClip [objLiane] Frame 17
onClipEvent (load) {
this._visible = false;
}
Symbol 538 MovieClip [objLiane] Frame 77
stop();
Symbol 538 MovieClip [objLiane] Frame 78
stop();
gotoAndStop(this._sState);
Symbol 538 MovieClip [objLiane] Frame 79
this._bInit = false;
_global.contGame.fGetPosition(this, this._x, "liane");
stop();
Symbol 538 MovieClip [objLiane] Frame 80
stop();
Symbol 554 MovieClip [objCard] Frame 1
#initclip 9
Object.registerClass("objCard", objItem);
#endinitclip
stop();
Instance of Symbol 541 MovieClip in Symbol 554 MovieClip [objCard] Frame 1
onClipEvent (enterFrame) {
if (_parent._name.indexOf("collect") != -1) {
_parent._bInit = false;
_parent.gotoAndStop("idle");
} else {
_parent.gotoAndStop("getPosition");
}
}
Symbol 554 MovieClip [objCard] Frame 2
stop();
Instance of Symbol 541 MovieClip in Symbol 554 MovieClip [objCard] Frame 2
onClipEvent (enterFrame) {
_parent.fCheckItemHit();
}
Symbol 554 MovieClip [objCard] Frame 3
stop();
Symbol 554 MovieClip [objCard] Frame 4
stop();
Symbol 554 MovieClip [objCard] Frame 5
stop();
Symbol 554 MovieClip [objCard] Frame 6
stop();
this.gotoAndStop(this._sTypeFrame);
Symbol 554 MovieClip [objCard] Frame 7
stop();
this._bInit = false;
_global.contGame.fGetPosition(this, this._x);
Symbol 554 MovieClip [objCard] Frame 8
stop();
Symbol 577 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 580 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 581 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 582 MovieClip Frame 37
_parent.fItemDelete();
Symbol 583 MovieClip [objTimer] Frame 1
#initclip 10
Object.registerClass("objTimer", objItem);
#endinitclip
stop();
Instance of Symbol 557 MovieClip in Symbol 583 MovieClip [objTimer] Frame 1
onClipEvent (enterFrame) {
if (_parent._name.indexOf("collect") != -1) {
_parent._bInit = false;
_parent.gotoAndStop("idle");
} else {
_parent.gotoAndStop("getPosition");
}
}
Symbol 583 MovieClip [objTimer] Frame 2
stop();
if (this._bInit == false) {
this._bInit = true;
this.fInitializeProperties("timer");
}
Instance of Symbol 577 MovieClip in Symbol 583 MovieClip [objTimer] Frame 2
onClipEvent (enterFrame) {
_parent.fCheckItemHit();
}
Symbol 583 MovieClip [objTimer] Frame 3
stop();
Symbol 583 MovieClip [objTimer] Frame 4
stop();
this._bInit = false;
_global.contGame.fGetPosition(this, this._x);
Symbol 593 MovieClip Frame 2
_global.contGame.fGetPosition(this, this._x);
stop();
Symbol 596 MovieClip Frame 2
_global.contGame.fGetPosition(this, this._x);
stop();
Symbol 598 MovieClip Frame 2
_global.contGame.fGetPosition(this, this._x);
stop();
Symbol 609 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 610 MovieClip Frame 1
if (pf == undefined) {
APE(this, 1);
}
Symbol 611 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 612 MovieClip Frame 34
_parent.fItemDelete();
Symbol 613 MovieClip [objItems] Frame 1
#initclip 11
Object.registerClass("objItems", objItem);
#endinitclip
stop();
Instance of Symbol 600 MovieClip in Symbol 613 MovieClip [objItems] Frame 1
onClipEvent (enterFrame) {
if (_parent._name.indexOf("collect") != -1) {
_parent._bInit = false;
_parent.gotoAndStop("idle");
} else {
_parent.gotoAndStop("getPosition");
}
}
Symbol 613 MovieClip [objItems] Frame 2
stop();
if (this._bInit == false) {
this._bInit = true;
this.fInitializeProperties("collectable");
}
Instance of Symbol 610 MovieClip in Symbol 613 MovieClip [objItems] Frame 2
onClipEvent (enterFrame) {
_parent.fCheckItemHit();
}
Symbol 613 MovieClip [objItems] Frame 3
stop();
Symbol 613 MovieClip [objItems] Frame 4
stop();
this._bInit = false;
_global.contGame.fGetPosition(this, this._x);
Symbol 613 MovieClip [objItems] Frame 5
stop();
Symbol 659 MovieClip Frame 1
stop();
Symbol 659 MovieClip Frame 2
_global.contAvatar._sJetInstance = _parent;
Symbol 659 MovieClip Frame 3
_global.objSounds.fPlaySounds(this, "sFx_leaves", 0, 1, 80, "fx", "jet");
Symbol 659 MovieClip Frame 14
_parent.gotoAndPlay("fall");
Symbol 659 MovieClip Frame 61
stop();
Symbol 676 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 677 MovieClip Frame 10
_parent.nextFrame();
Symbol 678 MovieClip Frame 7
stop();
Symbol 679 MovieClip Frame 1
_global.objSounds.fPlaySounds(this, "sFx_hurt02", 0, 1, 30, "fx", "inGame");
Symbol 679 MovieClip Frame 15
_parent.gotoAndStop("disappear");
Symbol 693 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 694 MovieClip Frame 9
_global.objSounds.fPlaySounds(this, "sFx_explode01", 0, 1, 25, "fx", "jet");
Symbol 694 MovieClip Frame 36
_global.contAvatar._sJetInstance = undefined;
_parent._parent.fDeleteObstacle();
Symbol 696 MovieClip Frame 12
_parent.gotoAndStop("disappear");
Symbol 697 MovieClip Frame 1
stop();
Symbol 698 MovieClip [mcJet] Frame 1
#initclip 12
Object.registerClass("mcJet", objObstacle);
#endinitclip
stop();
this._sState = "idle";
Instance of Symbol 615 MovieClip in Symbol 698 MovieClip [mcJet] Frame 1
onClipEvent (enterFrame) {
if (_parent._name.indexOf("collect") != -1) {
_parent._bInit = false;
_parent.gotoAndStop("idle");
} else {
_parent.gotoAndStop("getPosition");
}
}
Symbol 698 MovieClip [mcJet] Frame 2
stop();
this._sState = "idle";
Instance of Symbol 615 MovieClip in Symbol 698 MovieClip [mcJet] Frame 2
onClipEvent (enterFrame) {
_parent.fWatchAvatar();
}
Symbol 698 MovieClip [mcJet] Frame 3
this._sState = "jump";
Instance of Symbol 697 MovieClip "jet" in Symbol 698 MovieClip [mcJet] Frame 17
onClipEvent (load) {
onEnterFrame = function () {
var _local1 = _global;
var _local2 = this;
var _local3 = _local2.getBounds(_local1.stage);
if (_local1.ground.hitTest((_local3.xMin + _local3.xMax) / 2, _local3.yMax, true)) {
do {
_local3 = _local2.getBounds(_local1.stage);
_local2._y--;
} while (_local1.ground.hitTest((_local3.xMin + _local3.xMax) / 2, _local3.yMax, true));
_parent._sState = "fall";
_parent.stop();
_local3 = _local2.getBounds(_local1.stage);
if (_local1.avatar.hitTest((_local3.xMin + _local3.xMax) / 2, _local3.yMax, false) and (_local1.onTheGround == true)) {
_local2.gotoAndStop("catch");
_local1.contAvatar._bJetBattle = true;
_local1.avatar._visible = false;
_local1.contAvatar.fBlockBoomerang();
delete _local2.onEnterFrame;
} else {
_local2.gotoAndStop("miss");
delete _local2.onEnterFrame;
}
}
};
}
Symbol 698 MovieClip [mcJet] Frame 35
stop();
if (this._sState != "idle") {
this.fDeleteObstacle();
} else {
gotoAndStop ("JumpOut");
}
Symbol 698 MovieClip [mcJet] Frame 36
stop();
this._bInit = false;
_global.contGame.fGetPosition(this, this._x, "jet");
Symbol 698 MovieClip [mcJet] Frame 37
stop();
Symbol 699 MovieClip Frame 1
_global.objSounds.fPlaySounds(this, "sMu_game", 0, 99999, 60, "music", "game");
_global.objSounds.fPlaySounds(this, "sFx_birds", 0, 99999, 30, "fx", "game");
Instance of Symbol 360 MovieClip "mcGround" in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 442 MovieClip in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 442 MovieClip in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 445 MovieClip in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 434 MovieClip in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 434 MovieClip in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 434 MovieClip in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 538 MovieClip [objLiane] in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
this.fInitializeProperties(8);
}
Instance of Symbol 554 MovieClip [objCard] in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
this.fInitializeProperties("checkPointCard");
}
Instance of Symbol 554 MovieClip [objCard] in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
this.fInitializeProperties("checkPointCard");
}
Instance of Symbol 554 MovieClip [objCard] in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
this.fInitializeProperties("checkPointCard");
}
Instance of Symbol 554 MovieClip [objCard] in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
this.fInitializeProperties("checkPointCard");
}
Instance of Symbol 554 MovieClip [objCard] in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
this.fInitializeProperties("checkPointCard");
}
Instance of Symbol 554 MovieClip [objCard] in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
this.fInitializeProperties("levelCard", 2);
}
Instance of Symbol 554 MovieClip [objCard] in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
this.fInitializeProperties("levelCard", 3);
}
Instance of Symbol 554 MovieClip [objCard] in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
this.fInitializeProperties("levelCard", 4);
}
Instance of Symbol 593 MovieClip in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 596 MovieClip in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 593 MovieClip in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 596 MovieClip in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 704 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 705 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 709 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 722 MovieClip Frame 6
if (_global.contAvatar.PowerUpsThrow >= 36) {
_global.boomerang.boomerangPath.play();
_global.objSounds.fPlaySounds(this, "sFx_boomerang", 0, 1, 50, "fx", "avatar");
}
Symbol 727 MovieClip Frame 9
if (_global.contAvatar.PowerUpsThrow >= 36) {
_global.boomerang.boomerangPath.play();
_global.objSounds.fPlaySounds(this, "sFx_boomerang", 0, 1, 50, "fx", "avatar");
}
Symbol 729 MovieClip Frame 15
_global.contAvatar.ChargeUps = true;
Symbol 741 MovieClip Frame 1
play();
_global.avatar._visible = true;
Symbol 741 MovieClip Frame 28
stop();
_global.contPause.gotoAndStop("introPopup");
Symbol 741 MovieClip Frame 39
_global.contMain.fUnPause();
_parent.gotoAndStop("idle");
Symbol 742 MovieClip [mcSokka] Frame 1
#initclip 13
Object.registerClass("mcSokka", objAvatarAnim);
#endinitclip
Symbol 746 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 747 MovieClip Frame 6
_parent.nextFrame();
Symbol 766 MovieClip Frame 1
stop();
Symbol 766 MovieClip Frame 2
stop();
Symbol 766 MovieClip Frame 3
stop();
Symbol 766 MovieClip Frame 4
stop();
Symbol 766 MovieClip Frame 5
stop();
Symbol 766 MovieClip Frame 6
stop();
Symbol 766 MovieClip Frame 7
stop();
Symbol 766 MovieClip Frame 8
stop();
Symbol 766 MovieClip Frame 9
stop();
Symbol 766 MovieClip Frame 10
stop();
_parent.gotoAndStop("idle");
Symbol 767 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 768 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 769 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 771 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 772 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 773 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 774 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 781 MovieClip Frame 45
stop();
Symbol 782 MovieClip Frame 1
this._sPosition = "none";
this._visible = false;
stop();
Instance of Symbol 744 MovieClip in Symbol 782 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 782 MovieClip Frame 2
this._sPosition = "appear";
this._visible = true;
stop();
Symbol 782 MovieClip Frame 3
this._sPosition = "charge";
Symbol 782 MovieClip Frame 13
this._sPosition = "disappearBefore";
Symbol 782 MovieClip Frame 22
stop();
Symbol 782 MovieClip Frame 23
this._sPosition = "idle";
stop();
Symbol 782 MovieClip Frame 24
this._sPosition = "disappear";
stop();
Symbol 783 MovieClip [Avatar] Frame 1
#initclip 14
Object.registerClass("Avatar", objAvatar);
#endinitclip
Symbol 793 MovieClip Frame 1
if (pf == undefined) {
APE(this, 1);
}
Symbol 796 MovieClip Frame 1
if (pf == undefined) {
APE(this, 1);
}
Symbol 798 MovieClip Frame 1
stop();
Symbol 798 MovieClip Frame 2
_global.objSounds.fPlaySounds(this, "sFx_meche", 0, 99999, 20, "fx", "inGame");
Symbol 798 MovieClip Frame 300
_global.contMain.fPause("anim");
_global.contTrans.stopSound = true;
_global.contMain._aGameplay[1] = -1;
_global.contGame.fVerifyLiveLeft();
Symbol 801 MovieClip [mcTimer] Frame 1
#initclip 15
Object.registerClass("mcTimer", objTimer);
#endinitclip
Symbol 801 MovieClip [mcTimer] Frame 2
this.fSetTimeStyle();
Symbol 810 Button
on (release) {
if ((_global.mcHUD.mcTimer._nTickTime - (getTimer() - _global.mcHUD.mcTimer._nTimerRef)) > 200) {
_global.objSounds.fPlaySounds(this, "sFx_btnDown", 0, 1, 100, "fx", "TitleCard");
_global.contMain.fPause();
}
}
on (rollOver) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 100, "fx", "TitleCard");
}
Instance of Symbol 801 MovieClip [mcTimer] "mcTimer" in Symbol 815 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
this.fInitializeProperties(0, 4, 0, 0);
}
Symbol 824 MovieClip Frame 32
_global.objSounds.fPlaySounds(this, "sFx_scroll", 0, 1, 80, "fx", "transition");
Symbol 824 MovieClip Frame 46
stop();
_parent.gotoAndPlay("open");
Symbol 824 MovieClip Frame 47
_global.objSounds.fPlaySounds(this, "sFx_scroll", 0, 1, 80, "fx", "transition");
Symbol 824 MovieClip Frame 105
_parent.gotoAndStop("function");
Symbol 828 Button
on (release) {
_global.objSounds.fPlaySounds(this, "sFx_btnDown", 0, 1, 100, "fx", "PauseCard");
_parent.gotoAndPlay("close");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 100, "fx", "PauseCard");
}
Symbol 830 Button
on (release) {
_global.objSounds.fPlaySounds(this, "sFx_btnDown", 0, 1, 100, "fx", "PauseCardIns");
_global.contTrans.stopSound = false;
_global.contTrans.bol_innerAFrame = true;
_global.contTrans.str_previousScreen = _global.contPause;
_global.contTrans.str_nextScreen = "instruction";
_global.contTrans.gotoAndStop("interScreen");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 100, "fx", "PauseCardIns");
}
Symbol 834 Button
on (release) {
_global.contMain.fPause("anim");
btn_resume.enabled = false;
btn_instruction.enabled = false;
btn_quit.enabled = false;
_global.contTrans.stopSound = true;
_global.contTrans.str_previousScreen = _parent._currentframe;
_global.contTrans.str_nextScreen = "loseScreen";
_global.contTrans.gotoAndStop("endGame");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 100, "fx", "PauseCardQuit");
}
Symbol 836 MovieClip Frame 1
stop();
mcBtnPack.btn_resume.enabled = false;
mcBtnPack.btn_instruction.enabled = false;
mcBtnPack.btn_quit.enabled = false;
Symbol 836 MovieClip Frame 5
stop();
mcBtnPack.btn_resume.enabled = true;
mcBtnPack.btn_instruction.enabled = true;
mcBtnPack.btn_quit.enabled = true;
Symbol 836 MovieClip Frame 6
mcBtnPack.btn_resume.enabled = false;
mcBtnPack.btn_instruction.enabled = false;
mcBtnPack.btn_quit.enabled = false;
Symbol 836 MovieClip Frame 10
stop();
mcScroll.gotoAndPlay("Closes");
Symbol 836 MovieClip Frame 11
stop();
_global.contMain.fUnPause();
Symbol 846 Button
on (release) {
_global.objSounds.fPlaySounds(this, "sFx_btnDown", 0, 1, 100, "fx", "BonusBoardCard");
this.btn_next.enabled = false;
_global.contTrans.stopSound = true;
_global.contTrans.str_previousScreen = "";
_global.contTrans.str_nextScreen = "winScreen";
_global.contTrans.gotoAndStop("endGame");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 100, "fx", "BonusBoardCard");
}
Symbol 848 MovieClip Frame 1
stop();
mcBtnPack.btn_next.enabled = false;
Instance of Symbol 847 MovieClip "mcBtnPack" in Symbol 848 MovieClip Frame 1
onClipEvent (load) {
_global.contGame.fShowStats(this);
}
Symbol 848 MovieClip Frame 5
stop();
mcBtnPack._alpha = 100;
mcBtnPack.btn_next.enabled = true;
Symbol 848 MovieClip Frame 6
mcBtnPack.btn_next.enabled = false;
Symbol 848 MovieClip Frame 10
stop();
mcScroll.gotoAndPlay("Closes");
Symbol 848 MovieClip Frame 11
stop();
Symbol 850 Button
on (release) {
_parent.gotoAndPlay("close");
_global.objSounds.fPlaySounds(this, "sFx_btnDown", 0, 1, 100, "fx", "IntroCard");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 100, "fx", "IntroCard");
}
Symbol 852 MovieClip Frame 1
stop();
mcBtnPack.btn_next.enabled = false;
Symbol 852 MovieClip Frame 5
stop();
mcBtnPack.btn_next.enabled = true;
Symbol 852 MovieClip Frame 6
mcBtnPack.btn_next.enabled = false;
Symbol 852 MovieClip Frame 10
stop();
mcScroll.gotoAndPlay("Closes");
Symbol 852 MovieClip Frame 11
stop();
_global.avatarAnim.animIntro.play();
_parent.gotoAndStop(1);
Symbol 853 MovieClip Frame 1
stop();
Symbol 853 MovieClip Frame 2
stop();
Symbol 853 MovieClip Frame 3
stop();
Instance of Symbol 350 MovieClip in Symbol 853 MovieClip Frame 3
onClipEvent (load) {
mcPause.btn_resume.enabled = false;
mcPause.btn_instruction.enabled = true;
mcPause.btn_quit.enabled = true;
}
Symbol 853 MovieClip Frame 4
stop();
Symbol 853 MovieClip Frame 5
stop();
Symbol 855 MovieClip Frame 1
function fManageInterface(mode) {
var _local1 = _global;
var _local2 = mode;
if (_local2 == "init") {
_local1.mcHUD._sScore = _local1.contMain.fStyleNumber(_local1.contMain._aGameplay[0], 1);
_local1.mcHUD._sLive = _local1.contMain.fStyleNumber(_local1.contMain._aGameplay[1], 1);
} else if (_local2 == "addPoint") {
_local1.mcHUD._sScore = _local1.contMain.fStyleNumber(_local1.contMain._aGameplay[0], 1);
} else if (_local2 == "manageLive") {
_local1.mcHUD._sLive = _local1.contMain.fStyleNumber(_local1.contMain._aGameplay[1], 1);
}
}
function fAddPoint(_rPoint) {
_global.contMain._aGameplay[0] = _global.contMain._aGameplay[0] + _rPoint;
fManageInterface("addPoint");
}
function fManageLive(_rLive) {
_global.contMain._aGameplay[1] = _global.contMain._aGameplay[1] + _rLive;
if (_global.contMain._aGameplay[1] >= 0) {
fManageInterface("manageLive");
}
fVerifyLiveLeft();
}
function fVerifyLiveLeft() {
var _local1 = _global;
var _local2 = this;
if (_local1.contMain._aGameplay[1] == -1) {
_local1.contMain.fPause("anim");
_local1.contTrans.stopSound = true;
_local1.contTrans.str_previousScreen = _parent._currentframe;
_local1.contTrans.str_nextScreen = "loseScreen";
_local1.contTrans.gotoAndStop("endGame");
} else {
_local2.fHideObstacle();
if (_local1.avatar._nStartCadre > _local2._nCadre) {
var _local3 = (_local1.avatar._nStartCadre - _local2._nCadre) * 600;
_local2._nCadre = _local1.avatar._nStartCadre;
_local2.fShowObstacleDie();
_local1.levelScreen._x = _local1.levelScreen._x - _local3;
if (_nCadre == 1) {
_local1.levelScreenBKG._x = 0;
} else {
_local1.levelScreenBKG._x = _local1.levelScreenBKG._x - (_local3 / 6);
}
_local1.avatar._x = _local1.avatar._nStartPosX;
_local1.avatar._y = _local1.avatar._nStartPosY - 10;
_local1.contAvatar._bControl = true;
_local1.avatar._bAlive = true;
} else if (_local1.avatar._nStartCadre < _local2._nCadre) {
var _local3 = (_local2._nCadre - _local1.avatar._nStartCadre) * 600;
_local2._nCadre = _local1.avatar._nStartCadre;
_local2.fShowObstacleDie();
_local1.levelScreen._x = _local1.levelScreen._x + _local3;
if (_nCadre == 1) {
_local1.levelScreenBKG._x = 0;
} else {
_local1.levelScreenBKG._x = _local1.levelScreenBKG._x + (_local3 / 6);
}
_local1.avatar._x = _local1.avatar._nStartPosX;
_local1.avatar._y = _local1.avatar._nStartPosY - 10;
_local1.contAvatar._bControl = true;
_local1.avatar._bAlive = true;
} else if (_local1.avatar._nStartCadre == _local2._nCadre) {
_local2.fShowObstacleDie();
_local1.avatar._x = _local1.avatar._nStartPosX;
_local1.avatar._y = _local1.avatar._nStartPosY - 10;
_local1.contAvatar._bControl = true;
_local1.avatar._bAlive = true;
}
}
}
function fInitiliazeLevelScreen() {
_nCadre = 1;
_nMinCadre = 1;
_nMaxCadre = 23;
_nMaxLeft = -1;
_nMaxRight = 601;
_nSlideFrame = 24;
_nPixByFrame = 25;
_bRollRight = false;
_bRollLeft = false;
_nIndexDepth = 10000;
_aObstacle = [];
var _local1 = 0;
while (_local1 <= _nMaxCadre) {
_aObstacle.push([]);
_local1++;
}
}
function fEndGame() {
_global.contMain.fPause("anim");
_global.contPause.gotoAndStop("bonusBoard");
}
function fShowStats(_mcRef) {
var _local1 = _global;
var _local3 = (_local1.mcHUD.mcTimer._nTickTime - (getTimer() - _local1.mcHUD.mcTimer._nTimerRef)) * 3;
_mcRef._sTime.text = _local1.contMain.fStyleNumber(Math.floor(_local3), 1);
var _local2 = Math.floor(_local1.contMain._aGameplay[1] * 5525);
_mcRef._sLife.text = _local1.contMain.fStyleNumber(_local2, 1);
var _nVillage = 200000;
_mcRef._sVillage.text = _local1.contMain.fStyleNumber(_nVillage, 1);
var _nScore = Math.floor(((int(_local1.contMain._aGameplay[0]) + _local3) + _local2) + _nVillage);
_mcRef._sScore.text = _local1.contMain.fStyleNumber(_nScore, 1);
_local1.contMain._aGameplay[0] = _nScore;
}
function fRollRight() {
var _local1 = _global;
if (_bRollRight == false) {
_local1.contMain.fPause("anim");
_bRollRight = true;
_nSlideFrameToDo = _nSlideFrame;
fShowObstacle("right");
}
_local1.levelScreen._x = _local1.levelScreen._x - _nPixByFrame;
_local1.levelScreenBKG._x = _local1.levelScreenBKG._x - Math.floor(_nPixByFrame / 6);
_local1.Avatar._x = _local1.Avatar._x - _nPixByFrame;
_local1.boomerang._x = _local1.boomerang._x - _nPixByFrame;
_nSlideFrameToDo--;
if (_nSlideFrameToDo == 0) {
_nCadre++;
_local1.contMain.fUnPause();
_local1.contAvatar.animPlaying = false;
_bRollRight = false;
}
}
function fRollLeft() {
var _local1 = _global;
if (_bRollLeft == false) {
_local1.contMain.fPause("anim");
_bRollleft = true;
_nSlideFrameToDo = _nSlideFrame;
fShowObstacle("left");
}
_local1.levelScreen._x = _local1.levelScreen._x + _nPixByFrame;
_local1.levelScreenBKG._x = _local1.levelScreenBKG._x + Math.floor(_nPixByFrame / 6);
_local1.Avatar._x = _local1.Avatar._x + _nPixByFrame;
_local1.boomerang._x = _local1.boomerang._x + _nPixByFrame;
_nSlideFrameToDo--;
if (_nSlideFrameToDo == 0) {
_nCadre--;
if (_nCadre == 1) {
_local1.levelScreenBKG._x = 0;
}
_local1.contMain.fUnPause();
_local1.contAvatar.animPlaying = false;
_bRollLeft = false;
}
}
function fMoveLevelScreen() {
var _local1 = _global;
if (_local1.Avatar._x > _nMaxRight) {
if (_nCadre < _nMaxCadre) {
if (_bRollRight == false) {
_local1.contAvatar.animPlaying = true;
fRollRight();
}
}
} else if (_local1.Avatar._x < _nMaxLeft) {
if (_nCadre > _nMinCadre) {
if (_bRollLeft == false) {
_local1.contAvatar.animPlaying = true;
fRollLeft();
}
} else {
_local1.Avatar._x = _nMaxLeft;
}
}
if (_bRollRight == true) {
fRollRight();
} else if (_bRollLeft == true) {
fRollLeft();
}
}
function fGetObstaclePosition(_rInstance, _rPosition, _rValue) {
if (_rValue == "cadre") {
var _local3 = -_global.levelScreen._x;
var _local2 = Math.floor((_rPosition - _local3) / 600) + 1;
return(_local2);
}
if (_rValue == "lookSide") {
var _local1;
if (_rInstance._rotation == 180) {
_local1 = -1;
} else {
_local1 = 1;
}
return(_local1);
}
return(undefined);
}
function fGetPosition(_rInstance, _rPosition, _rType) {
var _local2 = -_global.levelScreen._x;
var _local1 = Math.floor((_rPosition - _local2) / 600) + 1;
_aObstacle[_local1].push(_rInstance);
if ((_rType == "liane") or (_rType == "jet")) {
_rInstance.MyCadre = _local1;
}
return(true);
}
function fShowObstacle(_sLookSide) {
var _local1 = this;
if (_sLookSide == "right") {
var _local2 = 1;
while (_local2 < 3) {
var _local3 = 0;
while (_local3 < _aObstacle[_local1._nCadre + _local2].length) {
var _sInstance = _aObstacle[_local1._nCadre + _local2][_local3];
_sInstance.gotoAndStop("idle");
_local3++;
}
_local2++;
}
var _local3 = 0;
while (_local3 < _aObstacle[_local1._nCadre - 1].length) {
var _sInstance = _aObstacle[_local1._nCadre - 1][_local3];
_sInstance.gotoAndStop("empty");
_local3++;
}
} else if (_sLookSide == "left") {
var _local2 = 1;
while (_local2 < 3) {
var _local3 = 0;
while (_local3 < _aObstacle[_local1._nCadre - _local2].length) {
var _sInstance = _aObstacle[_local1._nCadre - _local2][_local3];
_sInstance.gotoAndStop("idle");
_local3++;
}
_local2++;
}
var _local3 = 0;
while (_local3 < _aObstacle[_local1._nCadre + 1].length) {
var _sInstance = _aObstacle[_local1._nCadre + 1][_local3];
_sInstance.gotoAndStop("empty");
_local3++;
}
}
}
function fHideObstacle() {
var _local3 = this;
var _local2 = 1;
while (_local2 < 3) {
var _local1 = 0;
while (_local1 < _aObstacle[_local3._nCadre + _local2].length) {
var _sInstance = _aObstacle[_local3._nCadre + _local2][_local1];
_sInstance.gotoAndStop("empty");
_local1++;
}
_local2++;
}
_local2 = 1;
while (_local2 < 3) {
var _local1 = 0;
while (_local1 < _aObstacle[_local3._nCadre - _local2].length) {
var _sInstance = _aObstacle[_local3._nCadre - _local2][_local1];
_sInstance.gotoAndStop("empty");
_local1++;
}
_local2++;
}
}
function fShowObstacleDie() {
var _local2 = this;
var _local1 = 0;
while (_local1 < 2) {
var _local3 = 0;
while (_local3 < _aObstacle[_local2._nCadre + _local1].length) {
var _sInstance = _aObstacle[_local2._nCadre + _local1][_local3];
_sInstance.gotoAndStop("idle");
_local3++;
}
_local1++;
}
var _local3 = 0;
while (_local3 < _aObstacle[_local2._nCadre - 1].length) {
var _sInstance = _aObstacle[_local2._nCadre - 1][_local3];
_sInstance.gotoAndStop("idle");
_local3++;
}
}
_global.contGame = this;
_global.mcHUD = _global.stage.mcHUD;
_global.levelScreen = _global.stage.mcLevelScreen;
_global.levelScreenBKG = _global.stage.mcBackGround;
_global.ground = _global.levelScreen.mcGround;
_global.avatar = _global.stage.avatar;
_global.avatarAnim = _global.avatar.pers;
_global.boomerang = _global.stage.mcBoomerang;
stop();
Symbol 886 Button
on (release) {
_global.contTrans.fEndNavigation("PlayAgain");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 100, "fx", "TitleCard");
}
Symbol 890 MovieClip Frame 1
stop();
Symbol 890 MovieClip Frame 2
stop();
Symbol 890 MovieClip Frame 3
stop();
Symbol 894 Button
on (release) {
_global.contTrans.fEndNavigation("ViewHS", this);
}
on (rollOver) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 100, "fx", "TitleCard");
}
Symbol 903 MovieClip Frame 1
_global.contMain.initHiScores();
if (gProxyObj.getIsLoggedIn()) {
btn_submit._visible = true;
btn_submit.gotoAndStop("over");
} else {
btn_submit._visible = false;
btn_playAgain.gotoAndStop("over");
}
_global.objSounds.fPlaySounds(this, "sMu_tts", 0, 99999, 60, "music", "endGame");
_sScore = _global.contMain.fstyleNumber(_global.contMain._aGameplay[0]);
stop();
Instance of Symbol 890 MovieClip "btn_submit" in Symbol 903 MovieClip Frame 1
on (press) {
if ((this._visible != false) and (this._currentframe != 4)) {
this.gotoAndStop("down");
}
}
on (rollOver) {
if ((this._visible != false) and (this._currentframe != 4)) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 100, "fx", "endCard");
this.gotoAndStop("over");
}
}
on (rollOut) {
if ((this._visible != false) and (this._currentframe != 4)) {
this.gotoAndStop("idle");
}
}
on (releaseOutside) {
if ((this._visible != false) and (this._currentframe != 4)) {
this.gotoAndStop("idle");
}
}
on (release) {
if ((this._visible != false) and (this._currentframe != 4)) {
this.gotoAndStop("down");
_global.contTrans.fEndNavigation("Submit", this._parent);
_global.objSounds.fPlaySounds(this, "sFx_btnDown", 0, 1, 100, "fx", "endCard");
}
}
Symbol 911 Button
on (release) {
_global.contTrans.fEndNavigation("PlayAgain");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 100, "fx", "endCard");
}
Symbol 912 Button
on (release) {
_global.contTrans.fEndNavigation("ViewHS", this);
}
on (rollOver) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 100, "fx", "endCard");
}
Symbol 913 MovieClip Frame 1
_global.contMain.initHiScores();
if (gProxyObj.getIsLoggedIn()) {
btn_submit._visible = true;
btn_submit.gotoAndStop("idle");
} else {
btn_submit._visible = false;
btn_playAgain.gotoAndStop("idle");
}
_sScore = _global.contMain.fstyleNumber(_global.contMain._aGameplay[0]);
_global.objSounds.fPlaySounds(this, "sMu_tts", 0, 99999, 60, "music", "endGame");
stop();
Instance of Symbol 890 MovieClip "btn_submit" in Symbol 913 MovieClip Frame 1
on (press) {
if ((this._visible != false) and (this._currentframe != 4)) {
this.gotoAndStop("down");
}
}
on (rollOver) {
if ((this._visible != false) and (this._currentframe != 4)) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 100, "fx", "endCard");
this.gotoAndStop("over");
}
}
on (rollOut) {
if ((this._visible != false) and (this._currentframe != 4)) {
this.gotoAndStop("idle");
}
}
on (releaseOutside) {
if ((this._visible != false) and (this._currentframe != 4)) {
this.gotoAndStop("idle");
}
}
on (release) {
if ((this._visible != false) and (this._currentframe != 4)) {
this.gotoAndStop("down");
_global.contTrans.fEndNavigation("Submit", this._parent);
_global.objSounds.fPlaySounds(this, "sFx_btnDown", 0, 1, 100, "fx", "endCard");
}
}
Symbol 920 Button
on (release) {
_global.contTrans.fEndNavigation("PlayAgain");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 100, "fx", "endCard");
}
Symbol 922 MovieClip Frame 1
stop();
Symbol 922 MovieClip Frame 2
stop();
Symbol 922 MovieClip Frame 3
stop();
Symbol 922 MovieClip Frame 4
stop();
Symbol 928 MovieClip Frame 1
_sScore = _global.contMain.fstyleNumber(_global.contMain._aGameplay[0]);
if (gProxyObj.getIsLoggedIn() and (_global.contMain.bol_submit == false)) {
btn_submit._visible = true;
btn_submit.gotoAndStop("idle");
} else {
btn_submit._visible = false;
btn_playAgain.gotoAndStop("idle");
}
stop();
Instance of Symbol 922 MovieClip "btn_submit" in Symbol 928 MovieClip Frame 1
on (press) {
if ((this._visible != false) and (this._currentframe != 4)) {
this.gotoAndStop("down");
}
}
on (rollOver) {
if ((this._visible != false) and (this._currentframe != 4)) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 100, "fx", "endCard");
this.gotoAndStop("over");
}
}
on (rollOut) {
if ((this._visible != false) and (this._currentframe != 4)) {
this.gotoAndStop("idle");
}
}
on (releaseOutside) {
if ((this._visible != false) and (this._currentframe != 4)) {
this.gotoAndStop("idle");
}
}
on (release) {
if ((this._visible != false) and (_global.contMain.bol_waiting == false)) {
_parent.txt_highScore.text = "High score list comin\u2019 up...";
_global.contMain.submitScore(_global.contMain._aGameplay[0]);
_global.objSounds.fPlaySounds(this, "sFx_btnDown", 0, 1, 100, "fx", "endCard");
this._visible = false;
}
}
Instance of Symbol 85 MovieClip [FScrollBarSymbol] in Symbol 928 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "txt_highScore";
horizontal = false;
}
Symbol 935 MovieClip Frame 1
stop();
Symbol 935 MovieClip Frame 2
_parent.stop();
this.play();
Symbol 935 MovieClip Frame 21
_parent.removeMovieClip();
Symbol 936 MovieClip [arrow] Frame 1
if (pf == undefined) {
APE(this, 2);
}
Modifier = 6;
Instance of Symbol 419 MovieClip "mcArrowHitZone" in Symbol 936 MovieClip [arrow] Frame 1
onClipEvent (load) {
this._visible = false;
this._bTouch = false;
}
onClipEvent (enterFrame) {
if (((_parent.mcArrow._currentframe == 1) and (_global.contAvatar._bJetBattle == false)) and (_global.contAvatar.grabLiane == false)) {
if (this.hitTest(_global.avatarAnim) and (this._bTouch == false)) {
this._bTouch = true;
_global.objSounds.fPlaySounds(this, "sFx_arrowHit", 0, 1, 30, "fx", "arrowHit");
_global.avatar.fAvatarHurt();
} else if (this.hitTest(_global.boomerang.boomerangPath.bomerang)) {
_parent.mcArrow.gotoAndPlay("explode");
_global.objSounds.fPlaySounds(this, "sFx_arrowBreak", 0, 1, 80, "fx", "arrowBreak");
_global.levelScreen["arrow" + (_parent._nDepth + 1)].removeMovieClip();
_global.levelScreen["arrow" + (_parent._nDepth + 2)].removeMovieClip();
_global.contGame.fAddPoint(_parent._nPoint);
}
}
}
Symbol 936 MovieClip [arrow] Frame 2
mcArrowHitZone._x = mcArrowHitZone._x - 42;
mcArrow._x = mcArrow._x - 42;
mcArrowHitZone._y = mcArrowHitZone._y - Modifier;
mcArrow._y = mcArrow._y - Modifier;
mcArrow._rotation = Modifier;
Modifier = Modifier - 2;
Symbol 936 MovieClip [arrow] Frame 3
call(2);
Symbol 936 MovieClip [arrow] Frame 4
call(2);
Symbol 936 MovieClip [arrow] Frame 5
call(2);
Symbol 936 MovieClip [arrow] Frame 6
call(2);
Symbol 936 MovieClip [arrow] Frame 7
call(2);
Symbol 936 MovieClip [arrow] Frame 8
call(2);
Symbol 936 MovieClip [arrow] Frame 9
call(2);
Symbol 936 MovieClip [arrow] Frame 10
call(2);
Symbol 936 MovieClip [arrow] Frame 11
call(2);
Symbol 936 MovieClip [arrow] Frame 12
call(2);
Symbol 936 MovieClip [arrow] Frame 13
call(2);
Symbol 936 MovieClip [arrow] Frame 14
call(2);
Symbol 936 MovieClip [arrow] Frame 15
call(2);
Symbol 936 MovieClip [arrow] Frame 16
call(2);
Symbol 936 MovieClip [arrow] Frame 17
this.removeMovieClip();
Symbol 939 MovieClip [arrowFake] Frame 1
if (pf == undefined) {
APE(this, 2);
}
Instance of Symbol 938 MovieClip "mcArrow" in Symbol 939 MovieClip [arrowFake] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 939 MovieClip [arrowFake] Frame 2
this.mcArrow._x = _global.levelScreen["arrow" + (this._nDepth - 1)].mcArrow._x;
this.mcArrow._y = _global.levelScreen["arrow" + (this._nDepth - 1)].mcArrow._y;
Modifier = 6;
Symbol 939 MovieClip [arrowFake] Frame 3
this.mcArrow._x = _global.levelScreen["arrow" + (this._nDepth - 1)].mcArrow._x;
this.mcArrow._y = _global.levelScreen["arrow" + (this._nDepth - 1)].mcArrow._y;
mcArrow._rotation = Modifier;
Modifier = Modifier - 2;
Symbol 939 MovieClip [arrowFake] Frame 4
call(3);
Symbol 939 MovieClip [arrowFake] Frame 5
call(3);
Symbol 939 MovieClip [arrowFake] Frame 6
call(3);
Symbol 939 MovieClip [arrowFake] Frame 7
call(3);
Symbol 939 MovieClip [arrowFake] Frame 8
call(3);
Symbol 939 MovieClip [arrowFake] Frame 9
call(3);
Symbol 939 MovieClip [arrowFake] Frame 10
call(3);
Symbol 939 MovieClip [arrowFake] Frame 11
call(3);
Symbol 939 MovieClip [arrowFake] Frame 12
call(3);
Symbol 939 MovieClip [arrowFake] Frame 13
call(3);
Symbol 939 MovieClip [arrowFake] Frame 14
call(3);
Symbol 939 MovieClip [arrowFake] Frame 15
call(3);
Symbol 939 MovieClip [arrowFake] Frame 16
call(3);
Symbol 939 MovieClip [arrowFake] Frame 17
call(3);
Symbol 939 MovieClip [arrowFake] Frame 18
this.removeMovieClip();
Symbol 942 MovieClip [arrowFake2] Frame 1
if (pf == undefined) {
APE(this, 2);
}
Instance of Symbol 941 MovieClip "mcArrow" in Symbol 942 MovieClip [arrowFake2] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 942 MovieClip [arrowFake2] Frame 3
this.mcArrow._x = _global.levelScreen["arrow" + (this._nDepth - 1)].mcArrow._x;
this.mcArrow._y = _global.levelScreen["arrow" + (this._nDepth - 1)].mcArrow._y;
Modifier = 6;
Symbol 942 MovieClip [arrowFake2] Frame 4
this.mcArrow._x = _global.levelScreen["arrow" + (this._nDepth - 1)].mcArrow._x;
this.mcArrow._y = _global.levelScreen["arrow" + (this._nDepth - 1)].mcArrow._y;
mcArrow._rotation = Modifier;
Modifier = Modifier - 2;
Symbol 942 MovieClip [arrowFake2] Frame 5
call(4);
Symbol 942 MovieClip [arrowFake2] Frame 6
call(4);
Symbol 942 MovieClip [arrowFake2] Frame 7
call(4);
Symbol 942 MovieClip [arrowFake2] Frame 8
call(4);
Symbol 942 MovieClip [arrowFake2] Frame 9
call(4);
Symbol 942 MovieClip [arrowFake2] Frame 10
call(4);
Symbol 942 MovieClip [arrowFake2] Frame 11
call(4);
Symbol 942 MovieClip [arrowFake2] Frame 12
call(4);
Symbol 942 MovieClip [arrowFake2] Frame 13
call(4);
Symbol 942 MovieClip [arrowFake2] Frame 14
call(4);
Symbol 942 MovieClip [arrowFake2] Frame 15
call(4);
Symbol 942 MovieClip [arrowFake2] Frame 16
call(4);
Symbol 942 MovieClip [arrowFake2] Frame 17
call(4);
Symbol 942 MovieClip [arrowFake2] Frame 18
call(4);
Symbol 942 MovieClip [arrowFake2] Frame 19
this.removeMovieClip();
Symbol 943 MovieClip Frame 1
stop();
_quality = "HIGH";
Instance of Symbol 167 MovieClip "mcContSound" in Symbol 943 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_global.objSounds = new Object();
_global.stage = _root;
_global.objSounds._aFxSounds = new Array();
_global.objSounds._aMusicSounds = new Array();
_global.objSounds._nFxVolume = 100;
_global.objSounds._nMusicVolume = 90;
_global.objSounds._nSoundDepth = 100000 /* 0x0186A0 */;
_global.objSounds.fPlaySounds = function (_mcRef, _sSound, _nPosition, _nLoop, _nVolume, _sType, _sNameIndex) {
var _local1 = _global;
if (_sNameIndex == undefined) {
_sNameIndex = "1";
}
var _sSoundInstance = (_sSound + _sNameIndex);
if (_mcRef[_sSoundInstance] == undefined) {
var _nDepth = _local1.objSounds.fSetSoundsDepth(_mcRef);
_mcRef.createEmptyMovieClip(_sSoundInstance, _nDepth);
_mcRef[_sSoundInstance].objSound = new Sound(_mcRef[_sSoundInstance]);
_mcRef[_sSoundInstance].objSound.attachSound(_sSound);
switch (_sType) {
case "fx" :
_local1.objSounds._aFxSounds.push([_mcRef, _sSound, _nLoop, _nVolume, 0, _nPosition, _sNameIndex]);
_mcRef[_sSoundInstance].objSound._nArrayIndex = _local1.objSounds._aFxSounds.length - 1;
_mcRef[_sSoundInstance].objSound._sArrayFrom = "fx";
break;
case "music" :
_local1.objSounds._aMusicSounds.push([_mcRef, _sSound, _nLoop, _nVolume, false, _nPosition, _sNameIndex]);
_mcRef[_sSoundInstance].objSound._nArrayIndex = _local1.objSounds._aMusicSounds.length - 1;
_mcRef[_sSoundInstance].objSound._sArrayFrom = "music";
}
}
if (_nPosition != 0) {
_mcRef[_sSoundInstance].objSound.start(_nPosition / 1000, 1);
} else {
_mcRef[_sSoundInstance].objSound.start(_nPosition / 1000, _nLoop);
}
_local1.objSounds.fSetSoundsVolume(_mcRef, _sSound, "one", _nVolume, _sType, _sNameIndex);
if (_nLoop >= 50000) {
delete _mcRef[_sSoundInstance].objSound.onSoundComplete;
_mcRef[_sSoundInstance].objSound.onSoundComplete = function () {
_nPosition = 0;
_mcRef[_sSoundInstance].objSound.start(_nPosition, _nLoop);
};
}
if (_nLoop < 50000) {
delete _mcRef[_sSoundInstance].objSound.onSoundComplete;
_mcRef[_sSoundInstance].objSound.onSoundComplete = function () {
var _local1 = _global;
if (_mcRef[_sSoundInstance].objSound._sArrayFrom == "fx") {
var _local2 = _mcRef[_sSoundInstance].objSound._nArrayIndex + 1;
while (_local2 < _local1.objSounds._aFxSounds.length) {
var _local3 = _local1.objSounds._aFxSounds[_local2][0];
var _mcSoundInstance = (_local1.objSounds._aFxSounds[_local2][1] + _local1.objSounds._aFxSounds[_local2][6]);
_local3[_mcSoundInstance].objSound._nArrayIndex = _local3[_mcSoundInstance].objSound._nArrayIndex - 1;
_local2++;
}
_local1.objSounds._aFxSounds.splice(_mcRef[_sSoundInstance].objSound._nArrayIndex, 1);
} else {
var _local2 = _mcRef[_sSoundInstance].objSound._nArrayIndex + 1;
while (_local2 < _local1.objSounds._aMusicSounds.length) {
var _local3 = _local1.objSounds._aMusicSounds[_local2][0];
var _mcSoundInstance = (_local1.objSounds._aMusicSounds[_local2][1] + _local1.objSounds._aMusicSounds[_local2][6]);
_local3[_mcSoundInstance].objSound._nArrayIndex = _local3[_mcSoundInstance].objSound._nArrayIndex - 1;
_local2++;
}
_local1.objSounds._aMusicSounds.splice(_mcRef[_sSoundInstance].objSound._nArrayIndex, 1);
}
_local1.objSounds.fSoundDelete(_mcRef[_sSoundInstance]);
};
}
};
_global.objSounds.fStopSounds = function (_mcRef, _sSound, _sRange, _sType, _sNameIndex) {
var _local2 = _global;
var _local3 = _mcRef;
var _local1 = _sSound + _sNameIndex;
if (_sRange == "one") {
if (_local3[_local1].objSound._sArrayFrom == "fx") {
_local2.objSounds._aFxSounds.splice(_local3[_local1].objSound._nArrayIndex, 1);
} else {
_local2.objSounds._aMusicSounds.splice(_local3[_local1].objSound._nArrayIndex, 1);
}
_local3[_local1].objSound.stop(_sSound);
} else {
_local2.objSounds._aFxSounds = [];
_local2.objSounds._aMusicSounds = [];
stopAllSounds();
}
};
_global.objSounds.fPauseSounds = function (_mcRef, _sSound, _sRange, _sAction, _sType, _sNameIndex) {
var _local1 = _global;
if (_sRange == "one") {
var _sSoundInstance = (_sSound + _sNameIndex);
if (_mcRef[_sSoundInstance].objSound._sArrayFrom == "fx") {
if (_sAction == "pause") {
_local1.objSounds._aFxSounds[_mcRef[_sSoundInstance].objSound._nArrayIndex][4] = true;
_local1.objSounds._aFxSounds[_mcRef[_sSoundInstance].objSound._nArrayIndex][5] = _local1.objSounds.fGetSoundsProperties(_mcRef, _sSoundInstance, "position");
_mcRef[_sSoundInstance].objSound.stop(_sSound);
} else {
_local1.objSounds.fPlaySounds(_mcRef, _sSound, _local1.objSounds._aFxSounds[_mcRef[_sSoundInstance].objSound._nArrayIndex][5], _local1.objSounds._aFxSounds[_mcRef[_sSoundInstance].objSound._nArrayIndex][2], _local1.objSounds._aFxSounds[_mcRef[_sSoundInstance].objSound._nArrayIndex][3], _sType, _sNameIndex);
_local1.objSounds._aFxSounds[_mcRef[_sSound].objSound._nArrayIndex][4] = false;
_local1.objSounds._aFxSounds[_mcRef[_sSound].objSound._nArrayIndex][5] = 0;
}
} else if (_sAction == "pause") {
_local1.objSounds._aMusicSounds[_mcRef[_sSoundInstance].objSound._nArrayIndex][4] = true;
_local1.objSounds._aMusicSounds[_mcRef[_sSoundInstance].objSound._nArrayIndex][5] = _local1.objSounds.fGetSoundsProperties(_mcRef, _sSoundInstance, "position");
_mcRef[_sSoundInstance].objSound.stop(_sSound);
} else {
_local1.objSounds.fPlaySounds(_mcRef, _sSound, _local1.objSounds._aMusicSounds[_mcRef[_sSoundInstance].objSound._nArrayIndex][5], _local1.objSounds._aMusicSounds[_mcRef[_sSoundInstance].objSound._nArrayIndex][2], _local1.objSounds._aMusicSounds[_mcRef[_sSoundInstance].objSound._nArrayIndex][3], _sType, _local1.objSounds._aMusicSounds[_mcRef[_sSoundInstance].objSound._nArrayIndex][6]);
_local1.objSounds._aMusicSounds[_mcRef[_sSoundInstance].objSound._nArrayIndex][4] = false;
_local1.objSounds._aMusicSounds[_mcRef[_sSoundInstance].objSound._nArrayIndex][5] = 0;
}
} else if (_sAction == "pause") {
if (_sType == "fx") {
var _local2 = 0;
while (_local2 < _local1.objSounds._aFxSounds.length) {
var _sSoundInstance = (_local1.objSounds._aFxSounds[_local2][1] + _local1.objSounds._aFxSounds[_local2][6]);
_local1.objSounds._aFxSounds[_local2][4] = true;
_local1.objSounds._aFxSounds[_local2][5] = _local1.objSounds.fGetSoundsProperties(_local1.objSounds._aFxSounds[_local2][0], _sSoundInstance, "position");
var _mcRef = _local1.objSounds._aFxSounds[_local2][0];
_mcRef[_sSoundInstance].objSound.stop(_sSound);
_local2++;
}
} else {
var _local2 = 0;
while (_local2 < _local1.objSounds._aMusicSounds.length) {
var _sSoundInstance = (_local1.objSounds._aMusicSounds[_local2][1] + _local1.objSounds._aMusicSounds[_local2][6]);
_local1.objSounds._aMusicSounds[_local2][4] = true;
_local1.objSounds._aMusicSounds[_local2][5] = _local1.objSounds.fGetSoundsProperties(_local1.objSounds._aMusicSounds[_local2][0], _sSoundInstance, "position");
var _mcRef = _local1.objSounds._aMusicSounds[_local2][0];
_mcRef[_sSoundInstance].objSound.stop(_sSound);
_local2++;
}
}
} else if (_sType == "fx") {
var _local3 = 0;
while (_local3 < _local1.objSounds._aFxSounds.length) {
_local1.objSounds.fPlaySounds(_local1.objSounds._aFxSounds[_local3][0], _local1.objSounds._aFxSounds[_local3][1], _local1.objSounds._aFxSounds[_local3][5], _local1.objSounds._aFxSounds[_local3][2], _local1.objSounds._aFxSounds[_local3][3], "fx", _local1.objSounds._aFxSounds[_local3][6]);
_local1.objSounds._aFxSounds[_local3][4] = false;
_local1.objSounds._aFxSounds[_local3][5] = 0;
_local3++;
}
} else {
var _local2 = 0;
while (_local2 < _local1.objSounds._aMusicSounds.length) {
_local1.objSounds.fPlaySounds(_local1.objSounds._aMusicSounds[_local2][0], _local1.objSounds._aMusicSounds[_local2][1], _local1.objSounds._aMusicSounds[_local2][5], _local1.objSounds._aMusicSounds[_local2][2], _local1.objSounds._aMusicSounds[_local2][3], "music", _local1.objSounds._aMusicSounds[_local2][6]);
_local1.objSounds._aMusicSounds[_local2][4] = false;
_local1.objSounds._aMusicSounds[_local2][5] = 0;
_local2++;
}
}
};
_global.objSounds.fSetSoundsVolume = function (_mcRef, _sSound, _sRange, _nVolume, _sType, _sNameIndex) {
var _local1 = _global;
if (_sRange == "one") {
var _sSoundInstance = (_sSound + _sNameIndex);
switch (_sType) {
case "fx" :
_local1.objSounds._aFxSounds[_mcRef[_sSoundInstance].objSound._nArrayIndex][3] = _nVolume;
var _local3 = Math.floor((_nVolume * _local1.objSounds._nFxVolume) / 100);
break;
case "music" :
_local1.objSounds._aMusicSounds[_mcRef[_sSoundInstance].objSound._nArrayIndex][3] = _nVolume;
_local3 = Math.floor((_nVolume * _local1.objSounds._nMusicVolume) / 100);
}
_mcRef[_sSoundInstance].objSound.setVolume(_local3);
} else {
switch (_sType) {
case "fx" :
var _local2 = 0;
while (_local2 < _local1.objSounds._aFxSounds.length) {
var _local3 = Math.floor((_local1.objSounds._aFxSounds[_local2][3] * _local1.objSounds._nFxVolume) / 100);
var _mcRefLoop = _local1.objSounds._aFxSounds[_local2][0];
var _mcSoundInstance = (_local1.objSounds._aFxSounds[_local2][1] + _local1.objSounds._aFxSounds[_local2][6]);
_mcRefLoop[_mcSoundInstance].objSound.setVolume(_local3);
_local2++;
}
return;
case "music" :
_local2 = 0;
for(;;){
if (_local2 >= _local1.objSounds._aMusicSounds.length) {
break;
}
var _local3 = Math.floor((_local1.objSounds._aMusicSounds[_local2][3] * _local1.objSounds._nFxVolume) / 100);
var _mcRefLoop = _local1.objSounds._aMusicSounds[_local2][0];
var _mcSoundInstance = (_local1.objSounds._aMusicSounds[_local2][1] + _local1.objSounds._aMusicSounds[_local2][6]);
_mcRefLoop[_mcSoundInstance].objSound.setVolume(_local3);
_local2++;
};
}
}
};
_global.objSounds.fSetSoundsPan = function (_mcRef, _sSound, _sRange, _nPan, _sType, _sNameIndex) {
};
_global.objSounds.fSetFadeEffect = function (_mcRef, _sSound, _sAction) {
};
_global.objSounds.fGetSoundsProperties = function (_mcRef, _sSound, _sProperty) {
var _local1 = _sSound;
var _local2 = _mcRef;
switch (_sProperty) {
case "position" :
return(_local2[_local1].objSound.position);
case "duration" :
return(_local2[_local1].objSound.duration);
case "volume" :
return(_local2[_local1].objSound.getVolume());
case "pan" :
return(_local2[_local1].objSound.getPan());
}
return(undefined);
};
_global.objSounds.fSetSoundsDepth = function (_mcRef) {
var _local1 = _global;
var _local2 = _local1.objSounds._nSoundDepth;
_local1.objSounds._nSoundDepth++;
if (_local1.objSounds._nSoundDepth == 999998) {
_local1.objSounds._nSoundDepth = 100000 /* 0x0186A0 */;
}
return(_local2);
};
_global.objSounds.fSoundDelete = function (_mcRef) {
_mcRef[_sSoundInstance].swapDepths(999999);
_mcRef.removeMovieClip();
};
}
Instance of Symbol 275 MovieClip "mcContMain" in Symbol 943 MovieClip Frame 1
onClipEvent (load) {
_global.stage = _parent;
this._visible = false;
if (_global.b == null) {
_global.b = new Object();
AsBroadcaster.initialize(_global.b);
}
_global.APE = function (obj, frameEIN) {
var _local1 = _global;
obj.frameE = frameEIN;
if (_local1.control.gamePaused) {
obj.stop();
}
obj.pf = true;
_local1.b.addListener(obj);
obj.onPause = function () {
obj.stop();
};
obj.onPlay = function () {
if (obj._currentframe >= obj.frameE) {
obj.play();
}
};
obj.onUnload = function () {
_global.b.removeListener(obj);
};
};
_global.RPE = function (obj) {
var _local1 = obj;
_local1.stop();
delete _local1.frameE;
delete _local1.pf;
_global.b.removeListener(_local1);
delete _local1.onPause;
delete _local1.onPlay;
delete _local1.onUnload;
};
}
Instance of Symbol 300 MovieClip "mcTransition" in Symbol 943 MovieClip Frame 1
onClipEvent (load) {
_global.contTrans = this;
this._bExtreme = false;
this._bShowLoading = false;
this.bol_keyPressed = false;
this.bol_innerAFrame = false;
this.bol_innerAMovieClip = false;
this.bol_getHighScore = false;
this.bol_submitHighScore = false;
this.bol_empty_var = false;
this.str_nextScreen = "";
this.str_previousScreen = "";
this.stopSound = true;
}
Symbol 943 MovieClip Frame 2
stop();
_quality = "HIGH";
Symbol 943 MovieClip Frame 3
stop();
_quality = "MEDIUM";
Instance of Symbol 783 MovieClip [Avatar] "avatar" in Symbol 943 MovieClip Frame 3
onClipEvent (load) {
this._visible = false;
this._nCount = 0;
onEnterFrame = function () {
var _local1 = _global;
var _local2 = this;
if ((_local1.avatarAnim.where == "intro") and (_local2._nCount == 3)) {
_local1.avatarAnim.where = "";
_local1.avatarAnim.gotoAndStop("intro");
_local1.contMain.fPause("anim");
delete _local2.onEnterFrame;
} else {
_local2._nCount++;
}
};
}
Instance of Symbol 815 MovieClip "mcHUD" in Symbol 943 MovieClip Frame 3
onClipEvent (load) {
this.btn_pause.enabled = false;
}
Instance of Symbol 853 MovieClip "mcContPause" in Symbol 943 MovieClip Frame 3
onClipEvent (load) {
_global.contPause = this;
this.opened = true;
this.paused = false;
}
onClipEvent (keyUp) {
if ((_global.mcHUD.mcTimer._nTickTime - (getTimer() - _global.mcHUD.mcTimer._nTimerRef)) > 200) {
var tKey = String.fromCharCode(Key.getCode());
if (((((tKey == "P") or (tKey == "p")) && (this._currentframe == 1)) && (this.opened == false)) && (this.paused == false)) {
_global.contMain.fPause();
} else if (((((tKey == "P") or (tKey == "p")) && ((this._currentframe != 1) and (this.mcPause._currentframe == 5))) && (this.opened == true)) && (this.paused == false)) {
this.mcPause.gotoAndPlay("close");
}
}
if (((tKey == "Q") and (this.opened == false)) and (this.paused == false)) {
_global.contTrans.stopSound = true;
_global.contMaine.fPause("anim");
_global.contTrans.str_previousScreen = _parent._currentframe;
_global.contTrans.str_nextScreen = "loseScreen";
_global.contTrans.gotoAndStop("endGame");
}
}
Instance of Symbol 855 MovieClip "mcContGame" in Symbol 943 MovieClip Frame 3
onClipEvent (load) {
this._bInit = false;
this._visible = false;
_global.stage.avatar.pers.where = "intro";
}
onClipEvent (enterFrame) {
if (this._bInit == false) {
this._bInit = true;
fManageInterface("init");
fInitiliazeLevelScreen();
} else {
fMoveLevelScreen();
}
}
Instance of Symbol 857 MovieClip "contAvatar" in Symbol 943 MovieClip Frame 3
onClipEvent (load) {
fInitializeAvatar = function () {
var _local1 = _global;
var _local2 = this;
_local1.contAvatar = _local2;
_bControl = true;
vPaused = false;
animPlaying = false;
grabLiane = false;
grabPossible = true;
ChargeUps = true;
_bJumping = false;
_local1.hurt1 = false;
_local1.attak1 = false;
_local1.hurt2 = false;
_local1.attak2 = false;
_local1.hurt3 = false;
_local1.attak3 = false;
_local1.sSpecialAnim1 = false;
_local1.sSpecialAnim2 = false;
_local1.sSpecialAnim3 = false;
_local1.onTheGround = true;
MySide = "right";
deplacement = 8;
_local1.jumpValue = 0;
_local1.fallValue = 0;
Chute = 20;
jumpPower = 16;
PowerUpsThrow = 0;
_local2._nSide = 1;
_local2._bKeyLeft = false;
_local2._bKeyRight = false;
_local2._nCountBattleForce = 10;
_local2._nCountBattle = 0;
_local2._nCountBattleMax = 12;
_local2._bJetBattle = false;
_local2._sJetInstance = undefined;
_local2._nCountBattleCry = 4;
};
fInitializeAvatar();
_global.avatar.fInitializeProperties(true);
_global.avatarAnim.fInitializeProperties(_global.avatarAnim);
this.KeyListener = new Object();
this.KeyListener.Up = false;
this.KeyListener.D = false;
this.KeyListener.L = false;
this.KeyListener.R = false;
this.KeyListener.S = false;
this.KeyListener.P = false;
this.KeyListener.CTRL = false;
fBlockBoomerang = function () {
if (_global.boomerang.boomerangPath._currentframe == 1) {
PowerUpsThrow = 0;
}
_global.avatar.mcBoomerangCharge.gotoAndStop(1);
ChargeUps = false;
};
}
onClipEvent (enterFrame) {
if (_global.contPause.opened == false) {
if (Key.isDown(37)) {
_global.contAvatar.KeyListener.L = true;
} else {
_global.contAvatar.KeyListener.L = false;
}
if (Key.isDown(39)) {
_global.contAvatar.KeyListener.R = true;
} else {
_global.contAvatar.KeyListener.R = false;
}
if (Key.isDown(38)) {
_global.contAvatar.KeyListener.Up = true;
} else {
_global.contAvatar.KeyListener.Up = false;
}
if (Key.isDown(40)) {
_global.contAvatar.KeyListener.D = true;
} else {
_global.contAvatar.KeyListener.D = false;
}
if (Key.isDown(32)) {
_global.contAvatar.KeyListener.S = true;
} else {
_global.contAvatar.KeyListener.S = false;
_bJumping = false;
}
if (Key.isDown(17)) {
_global.contAvatar.KeyListener.CTRL = true;
} else {
_global.contAvatar.KeyListener.CTRL = false;
}
}
if (animPlaying == false) {
if (_global.contPause.opened == true) {
KeyListener.P = true;
vPaused = true;
} else {
KeyListener.P = false;
vPaused = false;
}
if ((vPaused == false) and (this._bJetBattle == true)) {
if (((this._nSide == 1) and Key.isDown(39)) and (this._bKeyLeft == false)) {
this._bKeyRight = true;
this._nCountBattle++;
if (this._sJetInstance.jet.jetAnim._currentframe == 7) {
this._sJetInstance.jet.jetAnim.gotoAndPlay(1);
}
this._nSide = -this._nSide;
} else if (((this._nSide == -1) and Key.isDown(37)) and (this._bKeyRight == false)) {
this._bKeyLeft = true;
if (this._sJetInstance.jet.jetAnim._currentframe == 7) {
this._sJetInstance.jet.jetAnim.gotoAndPlay(1);
}
this._nCountBattle++;
this._nSide = -this._nSide;
}
if (!Key.isDown(39)) {
this._bKeyRight = false;
}
if (!Key.isDown(37)) {
this._bKeyLeft = false;
}
if (this._nCountBattleForce > 0) {
this._nCountBattleForce--;
} else {
if (this._nCountBattle > 0) {
this._nCountBattle--;
}
this._nCountBattleForce = 10;
}
if (this._nCountBattle == this._nCountBattleCry) {
switch (this._nCountBattleCry) {
case 4 :
this._nCountBattleCry = 7;
break;
case 7 :
this._nCountBattleCry = 10;
break;
case 10 :
this._nCountBattleCry = 13;
break;
case 13 :
this._nCountBattleCry = 10;
}
_global.objSounds.fPlaySounds(_global.avatar, "sFx_hurt02", 0, 1, 35, "fx", "avatarBattle");
}
if (this._nCountBattle == this._nCountBattleMax) {
this._bJetBattle = false;
this._sJetInstance.jet.gotoAndStop("disappear");
_global.avatar._visible = true;
_global.contAvatar.ChargeUps = true;
this._nSide = 1;
this._nCountBattle = 0;
this._nCountBattleCry = 5;
_global.contGame.fAddPoint(2000);
}
} else if ((vPaused == false) and (grabLiane == false)) {
if (_global.contAvatar._bControl == true) {
if (((KeyListener.R == true) && (_global.attak1 == false)) and (_global.hurt1 == false)) {
_global.avatar.fAvatarMove(deplacement);
} else if (((KeyListener.L == true) && (_global.attak1 == false)) and (_global.hurt1 == false)) {
_global.avatar.fAvatarMove(-deplacement);
} else {
_global.avatar.fAvatarSlide();
}
if (((KeyListener.S == true) and (_bJumping == false)) and (_global.hurt1 == false)) {
_global.objSounds.fPlaySounds(_global.avatar, "sFx_jump", 0, 1, 10, "fx", "avatarJump");
_bJumping = true;
_global.avatar.fAvatarJump(_global.ground, jumpPower);
}
if (ChargeUps == true) {
if ((KeyListener.CTRL == true) and (_global.hurt1 == false)) {
if (PowerUpsThrow == 0) {
_global.avatar.mcBoomerangCharge.gotoAndStop("appear");
PowerUpsThrow = 36;
}
if (_global.avatar.mcBoomerangCharge._sPosition == "charge") {
PowerUpsThrow = PowerUpsThrow + 1;
}
if (PowerUpsThrow > 76) {
PowerUpsThrow = 76;
}
if (_global.avatar.mcBoomerangCharge._sPosition == "charge") {
max = PowerUpsThrow;
_nFrame = Math.floor(max / 7) + 1;
if ((_nFrame == 1) and (_global.avatar.mcBoomerangCharge.chargeWhite._currentframe > 1)) {
} else {
_global.avatar.mcBoomerangCharge.chargeWhite.gotoAndStop(_nFrame);
}
}
} else if ((PowerUpsThrow != 0) and (_global.hurt1 == false)) {
if (_global.avatar._currentframe == 1) {
_global.boomerang.gotoAndStop("right");
} else {
_global.boomerang.gotoAndStop("left");
}
_global.attak1 = true;
if (_global.avatar.mcBoomerangCharge._sPosition == "idle") {
_global.avatar.mcBoomerangCharge._sPosition = "disappear";
_global.avatar.mcBoomerangCharge.gotoAndStop("disappear");
} else if ((_global.avatar.mcBoomerangCharge._sPosition == "charge") or (_global.avatar.mcBoomerangCharge._sPosition == "appear")) {
_global.avatar.mcBoomerangCharge.gotoAndPlay("disappearBefore");
_global.avatar.mcBoomerangCharge._sPosition = "disappearBefore";
}
}
}
}
_global.avatar.fAvatarFall(_global.ground, Chute);
_global.avatar.fAvatarCheckUp(_global.ground);
if ((count < 20) and (grabPossible == false)) {
count++;
if (count == 20) {
this.grabPossible = true;
count = 0;
}
}
if (_global.onTheGround == true) {
deplacement = 8;
onGround = true;
} else {
onGround = false;
}
} else if ((vPaused == false) and (grabLiane == true)) {
if ((KeyListener.S == true) and (grabPossible == true)) {
grabLiane = false;
grabPossible = false;
count = 0;
_global.jumpValue = 18;
_global.fallValue = 0;
_global.sSpecialAnim2 = false;
deplacement = Number(String(grabLianeName).slice(5)) * 2;
this._sLianeInstance.mcSokkaLiane._visible = false;
this._sLianeInstance;
_global.avatar._visible = true;
_global.contAvatar.ChargeUps = true;
_global.avatar.fAvatarJump(_global.ground, _global.jumpValue);
} else if (KeyListener.Up == true) {
var _nCheck = int(this.grabLianeName.slice(5));
if (_nCheck > 1) {
var _nCheckInstance = this._sLianeInstance.mcLiane.mcLianeBalance["check" + (_nCheck - 1)];
var positionLiane = _nCheckInstance.getBounds(_global.stage);
var _nFrame = this.mcSokkaLiane.avatarLiane._currentframe;
this.grabLianeName = String("check" + (_nCheck - 1));
this.mcSokkaLiane.gotoAndStop(_nCheck - 1);
this.mcSokkaLiane.avatarLiane.gotoAndPlay(_nFrame);
_global.avatar._x = (positionLiane.xMax + positionLiane.xMin) / 2;
_global.avatar._y = (_global.avatar._height / 2) + ((positionLiane.yMax + positionLiane.yMin) / 2);
}
} else if (KeyListener.D == true) {
var _nCheck = int(this.grabLianeName.slice(5));
if (_nCheck < 5) {
var _nCheckInstance = this._sLianeInstance.mcLiane.mcLianeBalance["check" + (_nCheck + 1)];
var positionLiane = _nCheckInstance.getBounds(_global.stage);
var _nFrame = this.mcSokkaLiane.avatarLiane._currentframe;
this.grabLianeName = String("check" + (_nCheck + 1));
this.mcSokkaLiane.gotoAndStop(_nCheck + 1);
this.mcSokkaLiane.avatarLiane.gotoAndPlay(_nFrame);
_global.avatar._x = (positionLiane.xMax + positionLiane.xMin) / 2;
_global.avatar._y = (_global.avatar._height / 2) + ((positionLiane.yMax + positionLiane.yMin) / 2);
}
}
if (grabPossible == false) {
count++;
if (count > 8) {
grabPossible = true;
count = 0;
}
}
}
_global.avatarAnim.CheckIdle(_global.avatarAnim, KeyListener.L, KeyListener.R, KeyListener.Up, KeyListener.D, onGround);
} else {
_global.avatarAnim.anim.stop();
}
}
Symbol 943 MovieClip Frame 4
stop();
_quality = "HIGH";
Symbol 943 MovieClip Frame 5
stop();
_quality = "HIGH";
Symbol 943 MovieClip Frame 6
stop();
_quality = "HIGH";
Symbol 943 MovieClip Frame 7
stop();
gotoAndStop ("titleScreen");
Symbol 944 MovieClip [__Packages.objObstacle] Frame 0
class objObstacle extends MovieClip
{
var MyCadre, mcSokkaLiane, _nArrowPoint, swapDepths, removeMovieClip;
function objObstacle () {
super();
}
function fInitializeProperties(Cadre, _rLookSide) {
var _local1 = this;
_local1.MyCadre = Cadre;
_local1._nLookSide = _rLookSide;
_local1._nDelayHead = 0;
_local1._nArrowPoint = 12;
}
function fLianeSwing(me, myName, _pers, _movie, _cont) {
var _local1 = me;
var _local2 = _global;
var _local3 = _cont;
if ((_local2.contGame._nCadre == MyCadre) and (_local2.contPause.opened == false)) {
_local1.positionLiane = _local1.getBounds(_local2.stage);
if ((_local3.grabLiane == false) and (_local3.grabPossible == true)) {
_local1.distanceX = Math.abs(_pers._x - ((_local1.positionLiane.xMin + _local1.positionLiane.xMax) / 2));
_local1.distanceY = Math.abs((_pers._y - (_pers._height / 2)) - ((_local1.positionLiane.yMin + _local1.positionLiane.yMax) / 2));
_local1.distanceTot = _local1.distanceX + _local1.distanceY;
if (_local1.distanceTot < 25) {
_local2.objSounds.fPlaySounds(this, "sFx_lianeStick", 0, 1, 30, "fx", "inGame");
_local2.contAvatar.fBlockBoomerang();
_local2.sSpecialAnim2 = true;
_local3.grabPossible = false;
_local3.grabLiane = true;
_local3.grabLianeName = String(myName);
}
} else if (_local3.grabLiane == true) {
if (String(myName) == _local3.grabLianeName) {
var _nFrame = mcSokkaLiane.avatarLiane._currentframe;
mcSokkaLiane.gotoAndStop(Number(String(myName).slice(5)));
mcSokkaLiane.avatarLiane.gotoAndPlay(_nFrame);
_local2.avatar._visible = false;
mcSokkaLiane._visible = true;
_pers._x = (_local1.positionLiane.xMax + _local1.positionLiane.xMin) / 2;
_pers._y = (_pers._height / 2) + ((_local1.positionLiane.yMax + _local1.positionLiane.yMin) / 2);
}
}
}
}
function fHunterRange(me, _pers, _movie, _cont) {
var _local1 = me;
var _local2 = this;
var _local3 = _global;
if ((_local3.contGame._nCadre == _local1._parent.MyCadre) and (_local3.contPause.opened == false)) {
if (_local2._nDelayHead >= 50) {
var _nRandom = random(10);
_local2._nDelayHead = 0;
if ((_nRandom >= 7) and (_local1._parent.Archer_mc.mcHead._currentframe == 1)) {
_local1._parent.Archer_mc.mcHead.gotoAndStop("rotate");
}
} else {
_local2._nDelayHead++;
}
if ((_local1._parent._currentframe == 1) or (_local1._parent._currentframe == 3)) {
if (_local1._parent.Archer_mc._rotation < 0) {
_local1._parent.Archer_mc._rotation = _local1._parent.Archer_mc._rotation + 3;
if (_local1._parent.Archer_mc._rotation > 0) {
_local1._parent.Archer_mc._rotation = 0;
}
} else if (_local1._parent.Archer_mc._rotation > 0) {
_local1._parent.Archer_mc._rotation = _local1._parent.Archer_mc._rotation - 3;
if (_local1._parent.Archer_mc._rotation < 0) {
_local1._parent.Archer_mc._rotation = 0;
}
}
}
_local1.positionHunter = _local1.getBounds(_local3.stage);
_local1.distanceX = Math.abs(_pers._x - ((_local1.positionHunter.xMin + _local1.positionHunter.xMax) / 2));
_local1.distanceY = Math.abs(_pers._y - _local1.positionHunter.yMax);
if ((_local2._nLookSide == 1) and (_local3.avatar._x > _local1.positionHunter.xMax)) {
var _nRotation = _local1._parent.Archer_mc._rotation;
_local1._parent.gotoAndStop("idle");
_local2.Archer_mc._rotation = _nRotation;
} else if ((_local2._nLookSide == -1) and (_local3.avatar._x < _local1.positionHunter.xMin)) {
var _nRotation = _local1._parent.Archer_mc._rotation;
_local1._parent.gotoAndStop("idle");
_local2.Archer_mc._rotation = _nRotation;
} else if ((((Math.abs(_local1.distanceX) < 400) and (Math.abs(_local1.distanceX) > 70)) and (_local1._parent._currentframe == 1)) and (_local3.contAvatar._bJetBattle == false)) {
_local1._parent.gotoAndStop("attack");
} else if (((((Math.abs(_local1.distanceX) < 70) and (Math.abs(_local1.distanceY) < 70)) and (_local1.positionHunter.yMax < (_local3.avatar._y + 20))) and (_local1._parent._currentframe != 4)) and (_local1._parent.Archer_mc._currentframe == 1)) {
_local1._parent.gotoAndStop("defend");
} else if ((Math.abs(_local1.distanceX) > 400) and (_local1._parent._currentframe == 2)) {
var _nRotation = _local1._parent.Archer_mc._rotation;
_local1._parent.gotoAndStop("idle");
_local2.Archer_mc._rotation = _nRotation;
}
}
}
function fHunterFire(me, _pers, _movie, _cont) {
var _local1 = me;
var _local2 = _global;
if ((((_local2.contGame._nCadre == _local1._parent.MyCadre) and (_local2.contPause.opened == false)) and (_local2.contAvatar._bJetBattle == false)) and (_local2.contAvatar.grabLiane == false)) {
_local1.positionHunter = _local1.getBounds(_local2.stage);
_local1.distanceX = Math.abs(_pers._x - ((_local1.positionHunter.xMin + _local1.positionHunter.xMax) / 2));
_local1.distanceY = Math.abs(_pers._y - _local1.positionHunter.yMax);
if (((_local1.distanceX < 350) and (_local1.distanceX > 70)) and (_local1.distanceY < 175)) {
if (_local1._parent.Archer_mc._currentframe == 1) {
_local1._parent.Archer_mc.play();
}
}
}
}
function fHunterCreateArrow(theX, theY, rotation, _nArrow) {
var _local1 = _global;
var _local2 = "arrow" + _local1.contGame._nIndexDepth;
if (_nArrow == 0) {
var _sLinkName = "arrow";
} else if (_nArrow == 1) {
var _sLinkName = "arrowFake";
} else if (_nArrow == 2) {
var _sLinkName = "arrowFake2";
}
_local1.levelScreen.attachMovie(_sLinkName, _local2, _local1.contGame._nIndexDepth);
_local1.levelScreen[_local2]._x = theX;
_local1.levelScreen[_local2]._y = theY;
_local1.levelScreen[_local2]._rotation = rotation;
_local1.levelScreen[_local2]._nDepth = _local1.contGame._nIndexDepth;
_local1.contGame._nIndexDepth++;
if (_nArrow == 0) {
var _local3 = _nArrowPoint * 10;
_nArrowPoint--;
if (_local3 < 0) {
_local3 = 0;
}
_local1.levelScreen[_local2]._nPoint = _local3;
}
}
function fHunterTouch(me) {
var _local1 = _global;
var _local2 = this;
var _local3 = me;
if (_local1.contGame._nCadre == _local3._parent.MyCadre) {
if (_local3.hitTest(_local1.avatarAnim) and (_local1.onTheGround == true)) {
_local2._nBoundsAvatar = _local1.avatar.getBounds(_local1.stage);
_local2._nBoundsThis = _local3.getBounds(_local1.stage);
if (_local2._nBoundsAvatar.xMin >= _local2._nBoundsThis.xMin) {
_local2._xscale = -_local2._xscale;
}
_local1.contGame.fAddPoint(2225);
_local1.objSounds.fPlaySounds(_local2, "sFx_hurt01", 0, 1, 80, "fx", "archerHitted");
_local2.gotoAndStop("hitted");
}
}
}
function fWatchAvatar() {
var _local1 = _global;
var _local3 = this;
if ((_local1.contGame._nCadre == _local3.MyCadre) and (_local1.contPause.opened == false)) {
if (_local3.jetJump._currentframe == 1) {
var _local2 = _local3.getBounds(_local1.stage);
var distanceX = Math.abs(_local1.avatar._x - ((_local2.xMin + _local2.xMax) / 2));
var distanceY = Math.abs(_local1.avatar._y - _local2.yMax);
if (((distanceX < 30) and (distanceY < 120)) and ((_local1.avatar._y - 20) > _local2.yMax)) {
_local3.jetJump.play();
}
}
}
}
function fDeleteObstacle() {
swapDepths(999997);
removeMovieClip();
}
}
Symbol 945 MovieClip [__Packages.objItem] Frame 0
class objItem extends MovieClip
{
var swapDepths, removeMovieClip;
function objItem () {
super();
}
function fInitializeProperties(_rType, _rValue) {
var _local1 = this;
var _local2 = _rType;
_local1._sType = _local2;
_local1._nHeight = 38;
switch (_local1._sType) {
case "collectable" :
_local1._nPoint = 500;
break;
case "levelCard" :
_local1._nPoint = 1250;
break;
case "checkPointCard" :
_local1._nPoint = 500;
break;
case "timer" :
_local1._nPoint = 2500;
}
if (_local2 == "levelCard") {
_local1._sTypeFrame = _local2 + _rValue;
} else {
_local1._sTypeFrame = _local2;
}
}
function fCheckItemHit() {
var _local1 = this;
var _local2 = _global;
_local1._nBoundsAvatar = _local2.avatar.getBounds(_local2.stage);
_local1._nBoundsThis = _local1.getBounds(_local2.stage);
if (((_local1._bPicked == true) and (_local1._currentframe != 3)) and ((_local1._sType == "collectable") || (_local1._sType == "timer"))) {
_local1.gotoAndStop(3);
}
if (_local1.hitTest(_local2.avatar) and (_local1._bPicked == false)) {
switch (_local1._sType) {
case "collectable" :
if (_local1._nBoundsAvatar.yMax <= (_local1._nBoundsThis.yMax + _local1._nHeight)) {
_local2.contGame.fAddPoint(_local1._nPoint);
_local1._bPicked = true;
_local2.objSounds.fPlaySounds(_local1, "sFx_collect", 0, 1, 10, "fx", "inGame");
_local1.gotoAndStop("delete");
}
return;
case "levelCard" :
_local2.contGame.fAddPoint(_local1._nPoint);
_local1._bPicked = true;
_local2.avatar._nStartCadre = _local2.contGame._nCadre;
_local2.avatar._nStartPosX = _local1._nBoundsThis.xMin + (_local1._width / 2);
_local2.avatar._nStartPosY = (_local1._nBoundsThis.yMin + _local1._nBoundsThis.yMax) / 2;
return;
case "checkPointCard" :
_local2.contGame.fAddPoint(_local1._nPoint);
_local1._bPicked = true;
_local2.avatar._nStartCadre = _local2.contGame._nCadre;
_local2.avatar._nStartPosX = _local1._nBoundsThis.xMin + (_local1._width / 2);
_local2.avatar._nStartPosY = (_local1._nBoundsThis.yMin + _local1._nBoundsThis.yMax) / 2;
return;
case "timer" :
if (_local1._nBoundsAvatar.yMax > (_local1._nBoundsThis.yMax + _local1._nHeight)) {
break;
}
_local2.contGame.fAddPoint(_local1._nPoint);
_local1._bPicked = true;
_local2.objSounds.fPlaySounds(_local1, "sFx_timer", 0, 1, 30, "fx", "inGame");
_local2.mcHUD.mcTimer.fFreezeTimer(10);
_local1.gotoAndStop("delete");
}
}
}
function fItemDelete() {
swapDepths(6666);
removeMovieClip();
}
var _bPicked = false;
}
Symbol 946 MovieClip [__Packages.objAvatarAnim] Frame 0
class objAvatarAnim extends MovieClip
{
function objAvatarAnim () {
super();
}
function fInitializeProperties(_pers) {
var _local1 = this;
_local1.poseStart = "idle";
_local1.sideStart = "right";
_pers.gotoAndStop(_local1.poseStart);
_pers._parent.gotoAndStop(_local1.sideStart);
}
function CheckIdle(_pers, ListenerLeft, ListenerRight, ListenerJump, ListenerDuck, OnTheLand) {
var _local1 = this;
var _local2 = _global;
var _local3 = _pers;
if (_local2.contPause.opened == false) {
if (_local1.where != "intro") {
if (((_local2.sSpecialAnim1 == true) || (_local2.sSpecialAnim2 == true)) || (_local2.sSpecialAnim3 == true)) {
_local1.i = 1;
while (_local1.i < 4) {
if (_local2["sSpecialAnim" + _local1.i] == true) {
if (_local1.where != String("sSpecialAnim" + _local1.i)) {
_local2.attak1 = false;
_local2.attak2 = false;
_local2.attak3 = false;
_local2.hurt1 = false;
_local2.hurt2 = false;
_local2.hurt3 = false;
_local1.where = String("sSpecialAnim" + _local1.i);
_local1.FrameCount = 0;
_local3.gotoAndStop(_local1["sSpecialAnim" + _local1.i]);
} else {
_local1.FrameCount++;
if (_local1.FrameCount == _local1[("sSpecialAnim" + _local1.i) + "NOF"]) {
_local1.where = "nothing";
_local2["sSpecialAnim" + _local1.i] = false;
}
}
}
_local1.i++;
}
} else if (((_local2.hurt1 == true) || (_local2.hurt2 == true)) || (_local2.hurt3 == true)) {
_local1.i = 1;
while (_local1.i < 4) {
if (_local2["hurt" + _local1.i] == true) {
if (_local1.where != String("hurt" + _local1.i)) {
_local1.where = String("hurt" + _local1.i);
_local1.FrameCount = 0;
if (OnTheLand == true) {
_local2.attak1 = false;
_local2.attak2 = false;
_local2.attak3 = false;
_local3.gotoAndStop(_local1["sHurt" + _local1.i]);
_local1.JumpMode = false;
} else {
_local2.attak1 = false;
_local2.attak2 = false;
_local2.attak3 = false;
_local3.gotoAndStop(_local1["sJumpHurt" + _local1.i]);
_local1.JumpMode = true;
}
} else {
_local1.FrameCount++;
if (_local1.JumpMode == false) {
if (_local1.FrameCount >= _local1[("nHurt" + _local1.i) + "NOF"]) {
_local1.where = "nothing";
_local2["hurt" + _local1.i] = false;
}
if (OnTheLand == false) {
_local3.gotoAndStop(_local1["sJumpHurt" + _local1.i]);
_local3.anim.gotoAndPlay(_local1.FrameCount);
}
} else {
if (_local1.FrameCount >= _local1[("nJumpHurt" + _local1.i) + "NOF"]) {
_local1.where = "nothing";
_local2["hurt" + _local1.i] = false;
}
if (OnTheLand == true) {
_local3.gotoAndStop(_local1["sHurt" + _local1.i]);
_local3.anim.gotoAndPlay(_local1.FrameCount);
}
}
}
}
_local1.i++;
}
} else if (((_local2.attak1 == true) || (_local2.attak2 == true)) || (_local2.attak3 == true)) {
_local1.i = 1;
while (_local1.i < 4) {
if (_local2["attak" + _local1.i] == true) {
if (_local1.where != String("attak" + _local1.i)) {
_local1.where = String("attak" + _local1.i);
_local1.FrameCount = 0;
if (OnTheLand == true) {
_local3.gotoAndStop(_local1["sAttak" + _local1.i]);
_local1.JumpMode = false;
} else {
_local3.gotoAndStop(_local1["sJumpAttak" + _local1.i]);
_local1.JumpMode = true;
}
} else {
_local1.FrameCount++;
if (_local1.JumpMode == false) {
if (_local1.FrameCount >= _local1[("nAttak" + _local1.i) + "NOF"]) {
_local1.where = "nothing";
_local2["attak" + _local1.i] = false;
}
if (OnTheLand == false) {
_local3.gotoAndStop(_local1["sJumpAttak" + _local1.i]);
_local3.anim.gotoAndPlay(_local1.FrameCount);
}
} else {
if (_local1.FrameCount >= _local1[("nJumpAttak" + _local1.i) + "NOF"]) {
_local1.where = "nothing";
_local2["attak" + _local1.i] = false;
}
if (OnTheLand == true) {
_local3.gotoAndStop(_local1["sAttak" + _local1.i]);
_local3.anim.gotoAndPlay(_local1.FrameCount);
}
}
}
}
_local1.i++;
}
} else if (OnTheLand == true) {
if (_local1.where == "fall") {
if (_local1.bLanding == false) {
_local1.where = "nothing";
_local3.gotoAndStop(_local1.sIdle);
} else {
_local1.FrameCount = 0;
_local1.where = "landing";
}
} else if (ListenerLeft == true) {
if (_local1.bStartWalk == false) {
if (_local1.where != "left") {
_local1.where = "left";
_local1.MySide = "left";
_local3._parent.gotoAndStop(_local1.coteGauche);
_local3.gotoAndStop(_local1.sRun);
_local1.Running = true;
}
} else if (_local1.where != "left") {
_local1.where = "left";
_local1.FrameCount = 0;
_local1.MySide = "left";
_local3._parent.gotoAndStop(_local1.coteGauche);
if ((_local2.avatar._nTrueDeplacement < -4) || (_local2.avatar._nTrueDeplacement > 4)) {
_local1.FrameCount = _local1.nStartWalkNOF;
_local3.gotoAndStop(_local1.sRun);
} else {
_local3.gotoAndStop(_local1.sStartRun);
}
} else if (_local1.FrameCount == _local1.nStartWalkNOF) {
_local3.gotoAndStop(_local1.sRun);
_local1.Running = true;
} else {
_local1.FrameCount++;
}
} else if (ListenerRight == true) {
if (_local1.bStartWalk == false) {
if (_local1.where != "right") {
_local1.where = "right";
_local1.MySide = "right";
_local3._parent.gotoAndStop(_local1.coteDroit);
_local3.gotoAndStop(_local1.sRun);
_local1.Running = true;
}
} else if (_local1.where != "right") {
_local1.where = "right";
_local1.FrameCount = 0;
_local1.MySide = "right";
_local3._parent.gotoAndStop(_local1.coteDroit);
if ((_local2.avatar._nTrueDeplacement < -4) || (_local2.avatar._nTrueDeplacement > 4)) {
_local1.FrameCount = _local1.nStartWalkNOF;
_local3.gotoAndStop(_local1.sRun);
} else {
_local3.gotoAndStop(_local1.sStartRun);
}
} else if (_local1.FrameCount == _local1.nStartWalkNOF) {
_local3.gotoAndStop(_local1.sRun);
_local1.Running = true;
} else {
_local1.FrameCount++;
}
} else if (_local1.where == "landing") {
if (_local1.FrameCount == 0) {
_local1.FrameCount++;
_local3.gotoAndStop(_local1.sLanding);
} else {
_local1.FrameCount++;
if (_local1.FrameCount == _local1.nLandingNOF) {
_local1.where = "nothing";
}
}
} else if ((_local1.where == "duck") && (ListenerDuck == false)) {
if (_local1.bDuckStop == true) {
if (_local1.FrameCount == 0) {
_local3.gotoAndStop(_local1.sDuckStop);
}
_local1.FrameCount++;
if (_local1.FrameCount == _local1.nDuckStopNOF) {
_local1.where = "nothing";
}
} else {
_local1.where = "nothing";
}
} else if (ListenerDuck == true) {
if (_local1.bDuckStart == true) {
if ((_local1.where != "ducks") && (_local1.where != "duck")) {
_local1.FrameCount = 0;
_local1.where = "ducks";
_local3.gotoAndStop(_local1.sDuckStart);
}
if (_local1.FrameCount == _local1.nDuckStartNOF) {
_local1.FrameCount = 0;
_local1.where = "duck";
_local3.gotoAndStop(_local1.sDuck);
} else if (_local1.where == "ducks") {
_local1.FrameCount++;
}
} else if (_local1.where != "duck") {
_local1.where = "duck";
_local3.gotoAndStop(_local1.sDuck);
}
} else if (((ListenerLeft == false) and (ListenerRight == false)) and (ListenerDuck == false)) {
if (_local1.bSlowDown == false) {
_local3.gotoAndStop(_local1.sIdle);
_local1.FrameCount = 0;
_local1.where = "nothing";
} else if ((_local1.where == "left") || (_local1.where == "right")) {
_local1.where = "slow";
_local1.FrameCount = 0;
if (_local1.Running == true) {
_local3.gotoAndStop(_local1.sSlowDown);
_local1.Running = false;
} else {
_local3.gotoAndStop(_local1.sIdle);
_local1.FrameCount = 0;
_local1.where = "nothing";
}
} else if (_local1.where == "slow") {
_local1.FrameCount++;
if (_local1.FrameCount == _local1.nSlowDownNOF) {
_local1.FrameCount = 0;
_local1.where = "nothing";
}
} else {
_local3.gotoAndStop(_local1.sIdle);
_local1.FrameCount = 0;
_local1.where = "nothing";
}
}
} else if (OnTheLand == false) {
if (ListenerRight == true) {
if (_local1.MySide != "right") {
_local1.MySide = "right";
_local3._parent.gotoAndStop(_local1.coteDroit);
}
} else if (ListenerLeft == true) {
if (_local1.MySide != "left") {
_local1.MySide = "left";
_local3._parent.gotoAndStop(_local1.coteGauche);
}
}
if (_local2.jumpValue > 0) {
if (_local1.bStartJump == true) {
if (_local1.where != "jump") {
_local1.FrameCount = 0;
_local1.where = "jump";
_local3.gotoAndStop(_local1.sStartJump);
}
_local1.FrameCount++;
if (_local1.FrameCount == _local1.nStartJumpNOF) {
_local3.gotoAndStop(_local1.sJump);
}
} else if (_local1.where != "jump") {
_local1.where = "jump";
_local3.gotoAndStop(_local1.sJump);
}
} else if (_local1.bStartFall == true) {
if (_local1.where != "fall") {
_local1.FrameCount = 0;
_local1.where = "fall";
_local3.gotoAndStop(_local1.sStartFall);
}
_local1.FrameCount++;
if (_local1.FrameCount == _local1.nStartFallNOF) {
_local3.gotoAndStop(_local1.sFall);
}
} else if (_local1.where != "fall") {
_local1.where = "fall";
_local3.gotoAndStop(_local1.sFall);
}
}
}
} else {
_local3.anim.stop();
}
}
var nAttak1NOF = 19;
var nAttak2NOF = 5;
var nAttak3NOF = 5;
var nJumpAttak1NOF = 14;
var nJumpAttak2NOF = 5;
var nJumpAttak3NOF = 5;
var nHurt1NOF = 15;
var nHurt2NOF = 15;
var nHurt3NOF = 15;
var nJumpHurt1NOF = 15;
var nJumpHurt2NOF = 15;
var nJumpHurt3NOF = 15;
var bStartJump = true;
var nStartJumpNOF = 2;
var bLanding = false;
var nLandingNOF = 4;
var bStartFall = true;
var nStartFallNOF = 4;
var bStartWalk = true;
var nStartWalkNOF = 3;
var bSlowDown = false;
var nSlowDownNOF = 3;
var bDuckStart = true;
var nDuckStartNOF = 3;
var bDuckStop = true;
var nDuckStopNOF = 3;
var sSpecialAnim1NOF = 35;
var sSpecialAnim2NOF = 10000000;
var sSpecialAnim3NOF = 0;
var sIdle = "idle";
var sRun = "walk";
var sStartRun = "startWalk";
var sSlowDown = "slowDown";
var sJump = "jump";
var sStartJump = "startJump";
var sFall = "fall";
var sStartFall = "startFall";
var sLanding = "landing";
var sAttak1 = "attak1";
var sAttak2 = "";
var sAttak3 = "";
var sJumpAttak1 = "attak2";
var sJumpAttak2 = "";
var sJumpAttak3 = "";
var sHurt1 = "hurt1";
var sHurt2 = "hurt2";
var sHurt3 = "";
var sJumpHurt1 = "hurt1";
var sJumpHurt2 = "hurt2";
var sJumpHurt3 = "";
var sDuck = "duck";
var sDuckStart = "startDuck";
var sDuckStop = "stopDuck";
var sDie = "Die";
var sSpecialAnim1 = "echaper";
var sSpecialAnim2 = "lianne";
var sSpecialAnim3 = "";
var coteDroit = "right";
var coteGauche = "left";
var FrameCount = 0;
var imLanding = false;
var Running = false;
}
Symbol 947 MovieClip [__Packages.objAvatar] Frame 0
class objAvatar extends MovieClip
{
var _x, _y;
function objAvatar () {
super();
}
function fInitializeProperties(Activity) {
var _local1 = this;
_local1._bAlive = true;
_local1._nTrueDeplacement = 0;
_local1._nStartCadre = 1;
_local1._nStartPosX = _local1._x;
_local1._nStartPosY = _local1._y;
}
function fAvatarFall(ground, Chute) {
var _local1 = this;
var _local2 = _global;
var _local3 = ground;
if (!_local3.hitTest(_local1._x, _local1._y, true)) {
_local2.onTheGround = false;
if (_local2.jumpValue == 0) {
if (!_local3.hitTest(_local1._x, _local1._y + _local2.fallValue, true)) {
if ((_local1._y >= 400) and (_local2.contAvatar._bControl == true)) {
_local2.contAvatar._bControl = false;
}
if ((_local1._y >= 1200) and (_local1._bAlive == true)) {
_local1._bAlive = false;
if (_local2.contMain._aGameplay[1] == 0) {
_local2.contMain._aGameplay[1]--;
_local2.contGame.fVerifyLiveLeft();
} else {
_local2.avatar.mcBoomerangCharge.gotoAndStop(1);
_local2.avatarAnim.fInitializeProperties(_local2.avatarAnim);
_local2.contAvatar.fInitializeAvatar();
_local2.contTrans.stopSound = false;
_local2.contTrans.gotoAndStop("loseLive");
_local2.contMain.fPause("anim");
}
} else {
_local1._y = _local1._y + _local2.fallValue;
_local2.fallValue = _local2.fallValue + 2;
if (_local2.fallValue >= Chute) {
_local2.fallValue = Chute;
}
}
} else {
_local1._nDistanceFar = 0;
while (!_local3.hitTest(_local1._x, _local1._y + _local1._nDistanceFar, true)) {
_local1._nDistanceFar++;
}
_local1._y = _local1._y + _local1._nDistanceFar;
}
}
} else {
_local2.fallValue = 0;
_local2.onTheGround = true;
}
if (_local2.jumpValue > 0) {
_local2.onTheGround = false;
_local1._y = _local1._y - _local2.jumpValue;
_local2.jumpValue = _local2.jumpValue - 2;
if (_local2.jumpValue < 0) {
_local2.jumpValue = 0;
}
}
}
function fAvatarMove(_rDeplacement) {
var _local1 = this;
var _local2 = _rDeplacement;
if (_local2 > 0) {
if (_local1._nTrueDeplacement < 0) {
_local1._nTrueDeplacement = 0;
} else if (_local1._nTrueDeplacement < 2) {
_local1._nTrueDeplacement = _local1._nTrueDeplacement + 0.8;
} else {
_local1._nTrueDeplacement = _local1._nTrueDeplacement + 2;
}
if (_local1._nTrueDeplacement > _local2) {
_local1._nTrueDeplacement = _local2;
}
} else {
if (_local1._nTrueDeplacement > 0) {
_local1._nTrueDeplacement = 0;
} else if (_local1._nTrueDeplacement > -2) {
_local1._nTrueDeplacement = _local1._nTrueDeplacement - 0.8;
} else {
_local1._nTrueDeplacement = _local1._nTrueDeplacement - 2;
}
if (_local1._nTrueDeplacement < _local2) {
_local1._nTrueDeplacement = _local2;
}
}
_local1._x = _local1._x + _local1._nTrueDeplacement;
}
function fAvatarSlide() {
var _local1 = this;
if (_local1._nTrueDeplacement > 0) {
_local1._nTrueDeplacement = _local1._nTrueDeplacement - 4;
if (_local1._nTrueDeplacement <= 0) {
_local1._nTrueDeplacement = 0;
}
} else if (_local1._nTrueDeplacement < 0) {
_local1._nTrueDeplacement = _local1._nTrueDeplacement + 4;
if (_local1._nTrueDeplacement >= 0) {
_local1._nTrueDeplacement = 0;
}
}
_local1._x = _local1._x + _local1._nTrueDeplacement;
}
function fAvatarJump(ground, _rlegPower) {
var _local1 = _global;
if (_local1.jumpValue == 0) {
if (ground.hitTest(_x, _y, true)) {
_local1.fallValue = 0;
_local1.jumpValue = _rlegPower;
}
}
}
function fAvatarHurt(_mcHit) {
var _local1 = _global;
var _local2 = this;
_local1.contAvatar._bJumping = true;
_local1.hurt1 = true;
_local1.jumpValue = 2;
_local2._nTrueDeplacement = -10;
_local2.fAvatarMove(-10);
_local2._y = _local2._y - _local1.jumpValue;
if (_local1.boomerang.boomerangPath._currentframe == 1) {
_local1.contAvatar.PowerUpsThrow = 0;
}
_local1.avatar.mcBoomerangCharge.gotoAndStop(1);
_local1.contAvatar.ChargeUps = false;
}
function fAvatarCheckUp(ground) {
var _local1 = this;
var _local2 = ground;
if (_local2.hitTest(_local1._x, _local1._y - 1, true)) {
if (_global.fallValue == 0) {
if (_global.jumpValue == 0) {
while (_local2.hitTest(_local1._x, _local1._y - 1, true)) {
_local1._y--;
}
}
}
}
}
}
Symbol 948 MovieClip [__Packages.objTimer] Frame 0
class objTimer extends MovieClip
{
function objTimer () {
super();
}
function fInitializeProperties(_rHour, _rMinute, _rSeconde, _rCentieme, _rbCentieme) {
var _local1 = this;
_local1._nHour = _rHour;
_local1._nMinute = _rMinute;
_local1._nSeconde = _rSeconde;
_local1._nCentieme = _rCentieme;
_local1._bCentieme = _rbCentieme;
_local1._nTimerRef = getTimer();
_local1._bFreezed = false;
_local1._nFreezeTimeDone = 0;
_local1._nFreezeTime = 0;
_local1._nFrameAnim = 300;
_local1.fGetTickTime();
}
function fSetTimeStyle() {
var _local1 = this;
if (_local1._bFreezed and (_local1._nFreezeTimeDone < _local1._nFreezeTime)) {
_local1._nFreezeTimeDone++;
} else if (_local1._bFreezed) {
_local1._bFreezed = false;
_local1._nTimerRef = _local1._nTimerRef + (_local1._nFreezeTimeRef * 1000);
_local1._nFreezeTimeDone = 0;
_local1._nFreezeTime = 0;
} else {
var _sHour = "";
var _sMinute = "";
var _local3 = "";
var _sCentieme = "";
var _local2 = _local1._nTickTime - (getTimer() - _local1._nTimerRef);
if (_local2 >= 3600000) {
var _sHour = Math.floor(_local2 / 3600000);
_local2 = _local2 - (_sHour * 3600000);
_sHour = _global.contMain.fStyleNumber(_sHour, 2);
}
if (_local2 >= 60000) {
var _sMinute = Math.floor(_local2 / 60000);
_local2 = _local2 - (_sMinute * 60000);
_sMinute = _global.contMain.fStyleNumber(_sMinute, 2);
} else {
_sMinute = "00";
}
if (_local2 >= 1000) {
_local3 = Math.floor(_local2 / 1000);
_local2 = _local2 - (_local3 * 1000);
_local3 = _global.contMain.fStyleNumber(_local3, 2);
} else {
_local3 = "00";
}
if ((_local2 > 10) and (_local1._bCentieme == true)) {
var _sCentieme = Math.floor(_local2 / 10);
_local2 = _local2 - (_local3 * 10);
_sCentieme = _global.contMain.fStyleNumber(_local3, 2);
}
var _sTimeStyled = "";
if (_sHour != "") {
_sTimeStyled = _sHour + ":";
}
_sTimeStyled = _sTimeStyled + ((_sMinute + ":") + _local3);
if (_local1._bCentieme == true) {
_sTimeStyled = _sTimeStyled + (":" + _sCentieme);
}
_local1._sTime = _sTimeStyled;
if ((getTimer() - _local1._nTimerRef) >= (_global.mcHUD.mcHUDBarrel._currentFrame * _local1._nTimeStep)) {
_global.mcHUD.mcHUDBarrel.nextFrame();
}
}
}
function fGetTickTime() {
var _local1 = this;
_local1._nTickTime = _local1._nTickTime + (_local1._nHour * 3600000);
_local1._nTickTime = _local1._nTickTime + (_local1._nMinute * 60000);
_local1._nTickTime = _local1._nTickTime + (_local1._nSeconde * 1000);
_local1._nTickTime = _local1._nTickTime + (_local1._nCentieme * 10);
_local1._nTimeStep = _local1._nTickTime / _local1._nFrameAnim;
}
function fFreezeTimer(_rFreezeTime) {
var _local1 = _rFreezeTime;
var _local2 = this;
_local2._nFreezeTimeRef = _local1;
_local1 = (_local1 * 33) / 2;
_local2._bFreezed = true;
_local2._nFreezeTime = _local2._nFreezeTime + _local1;
}
}