Frame 1
FOG.AS2.FogServices.Connect({id:129, fogid:3286, name:"mountain-bike", title:"Mountain Bike", category:"sports-games"});
FOG.AS2.FogPreloader.Start();
Instance of Symbol 136 MovieClip in Frame 1
on (release) {
FOG.AS2.FogServices.TrackClick();
}
Frame 2
stop();
mcLogo.swapDepths(99998);
Instance of Symbol 381 MovieClip [FScrollBarSymbol] in Frame 2
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
horizontal = false;
}
Frame 3
prel.removeMovieClip();
btnFoggy.removeMovieClip();
mcTaglines.removeMovieClip();
mcLogo.removeMovieClip();
Frame 4
this.onEnterFrame = function () {
if (this.getBytesLoaded() == this.getBytesTotal()) {
gotoAndStop ("init");
delete this.onEnterFrame;
}
};
_root.ouch = new Sound();
_root.ouch.attachSound("ouch");
_root.looop = new Sound();
_root.looop.attachSound("looop");
_quality = "BEST";
stop();
Frame 12
prevFrame();
Frame 23
function startGame() {
_root.levelScore = 0;
_global.gl_level = gl_user_info.levels["level_" + gl_user_info.curr_level];
gl_game_info.is_game_over = (gl_game_info.is_pause = false);
main_mc.back_mc.gotoAndStop("level_" + gl_user_info.curr_level);
main_mc.messages_mc.gotoAndStop("empty");
_root.onKeyDown = function () {
if (Key.getCode() == 80) {
}
if (Key.isDown(65)) {
}
if (Pirrest.Common.PiVal.isEmpty(_global.gl_level)) {
_global.gl_user_info.curr_level = 1;
}
};
Key.addListener(_root);
if (!Pirrest.Common.PiVal.isEmpty(gl_level)) {
main_mc.main_cont_mc.attachMovie(gl_level.link, "level_mc", 1);
}
}
stopAllSounds();
jb = new Pirrest.BigFoot.JeepBody();
Key.addListener(jb);
_global.med = 20;
_global.lossOfEnergy = 0.2;
player = {link:"lib_jeep"};
level_1 = {link:"lib_level_1", damping:0.98, gravity:{x:0, y:0.55}, kfr:0.1, friction:0.8};
level_2 = {link:"lib_level_2", damping:0.98, gravity:{x:0, y:0.55}, kfr:0.1, friction:0.8};
level_3 = {link:"lib_level_3", damping:0.98, gravity:{x:0, y:0.55}, kfr:0.1, friction:0.8};
level_4 = {link:"lib_level_4", damping:0.98, gravity:{x:0, y:0.55}, kfr:0.1, friction:0.8};
level_5 = {link:"lib_level_5", damping:0.98, gravity:{x:0, y:0.55}, kfr:0.1, friction:0.8};
level_6 = {link:"lib_level_6", damping:0.98, gravity:{x:0, y:0.55}, kfr:0.1, friction:0.8};
levels = {level_1:level_1, level_2:level_2, level_3:level_3, level_4:level_4, level_5:level_5, level_6:level_6};
_global.gl_user_info = {levels:levels, player:player, curr_level:1};
_global.gl_game_info = {is_game_over:false, is_pause:false};
delete player;
delete level_1;
delete level_2;
delete level_3;
delete level_4;
delete level_5;
delete level_6;
delete levels;
main_mc.gotoAndStop("intro");
_root.sunet = true;
Instance of Symbol 136 MovieClip in Frame 23
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=211&area=minilogo2", "_blank");
}
Instance of Symbol 136 MovieClip in Frame 23
on (release) {
FOG.AS2.FogServices.TrackClick();
}
Frame 33
prevFrame();
Frame 34
stopAllSounds();
removeMovieClip(_root.xxc1);
removeMovieClip(_root.xxc2);
removeMovieClip(_root.xxc3);
removeMovieClip(_root.xxc4);
Frame 35
_root.menu.removeMovieClip();
_root.gameid = "MountainBike";
_root.best = _root.totalScore;
_root.totalScore = 0;
_root.updated = 0;
_root.done = 0;
done = 0;
i = 1;
while (i <= 100) {
_root["score" + i] = null;
_root["name" + i] = null;
_root["escore" + i] = null;
_root["ename" + i] = null;
i++;
}
Frame 36
function updateScoreboard(sNum) {
xmlPlayer = new XML();
xmlPlayer.ignoreWhite = true;
xmlPlayer.onLoad = function (success) {
if (success) {
_root["mcScoreboard" + sNum].mcLoading._visible = false;
myPlayer = xmlPlayer.firstChild.childNodes;
ctr2 = 0;
while (ctr2 < myPlayer.length) {
thisPlayer = _root["mcScoreboard" + sNum].sboard.mcScoreHolder.mcScore.duplicateMovieClip("mcScore" + ctr2, ctr2);
thisPlayer._y = ctr2 * thisPlayer._height;
thisPlayer._visible = true;
if ((ctr2 % 2) > 0) {
thisPlayer.gotoAndStop(2);
}
thisPlayer.txtNumber.text = (ctr2 + 1) + ")";
thisPlayer.txtNickname.text = myPlayer[ctr2].attributes.player;
thisPlayer.txtScore.text = myPlayer[ctr2].attributes.score;
ctr2++;
}
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.item = myPlayer.length;
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.speedy = 0;
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.desty = 0;
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.onEnterFrame = function () {
if ((this.desty < 0) && (this._parent.dir == "up")) {
trace("up");
this.desty = this.desty + 10;
if (this.desty > 0) {
this.desty = 0;
}
}
trace((this._parent.mcBlock._height + " - ") + (this.mcScore._height * this.item));
if ((this.desty > (this._parent.mcBlock._height - (this.mcScore._height * this.item))) && (this._parent.dir == "down")) {
trace("down");
this.desty = this.desty - 10;
if (this.desty < (this._parent.mcBlock._height - (this.mcScore._height * this.item))) {
this.desty = this._parent.mcBlock._height - (this.mcScore._height * this.item);
}
}
this.speedy = (this.desty - this._y) + (this.speedy * 0.4);
this._y = this._y + this.speedy;
};
}
if (sNum == 1) {
updateScoreboard(2);
}
};
if (sNum == 1) {
xmlPlayer.load((((("http://" + _root.Dsource) + ".freeonlinegames.com/scoreboard/getTopPlayer.php?id=") + _root.gameID) + "&rand=") + random(999999));
} else if (sNum == 2) {
xmlPlayer.load(((((("http://" + _root.Dsource) + ".freeonlinegames.com/scoreboard/getTopPlayer.php?id=") + _root.gameID) + "&rand=") + random(999999)) + "&filt=1");
}
}
stop();
var gameID = 53;
Dsource = "www";
mcScoreboard1.sboard.dir = "stop";
mcScoreboard2.sboard.dir = "stop";
mcScoreboard1.sboard.mcScoreHolder.mcScore._visible = false;
mcScoreboard2.sboard.mcScoreHolder.mcScore._visible = false;
updateScoreboard(1);
Frame 37
cale = "http://www.freeonlinegames.com/scoreboard/score.php?game=" + _root.gameid;
loadVariablesNum (cale, 0, "POST");
Frame 45
if (done != 1) {
gotoAndPlay ("loopLoad");
} else {
gotoAndPlay ("scoreTable");
}
Frame 49
monthnume = new Array();
monthscor = new Array();
i = 1;
while (i <= 100) {
monthnume[i] = _root["name" + i];
monthscor[i] = Number(_root["score" + i].slice(0, _root["score" + i].length - 1));
i++;
}
evernume = new Array();
everscor = new Array();
i = 1;
while (i <= 100) {
evernume[i] = _root["ename" + i];
everscor[i] = Number(_root["escore" + i].slice(0, _root["escore" + i].length - 1));
i++;
}
Frame 50
stop();
if (_root.best > everscor[100]) {
scoreWind.gotoAndStop("submitScoreYes");
} else {
scoreWind.gotoAndStop("submitScoreNo");
}
if (_root.xdada == 1) {
scoreWind.gotoAndStop("topEver");
}
Symbol 3 MovieClip [fog_1] Frame 1
stop();
Symbol 4 MovieClip [FUIComponentSymbol] Frame 1
#initclip 25
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local3 in this.styleFormat_prm) {
this.setStyleProperty(_local3, this.styleFormat_prm[_local3]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var _local2 in this.methodTable) {
this[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local4 = this.styleTable.focusRectInner.value;
var _local5 = this.styleTable.focusRectOuter.value;
if (_local4 == undefined) {
_local4 = 16777215 /* 0xFFFFFF */;
}
if (_local5 == undefined) {
_local5 = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, _local5);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, _local4);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var _local17 = parseInt(value);
if (!isNaN(_local17)) {
value = _local17;
}
var _local16 = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!_local16)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var _local18 = propName.subString(4, propName.length);
this.textStyle[_local18] = value;
this.invalidate("setSize");
} else {
for (var _local15 in this.styleTable[propName].coloredMCs) {
var _local4 = new Color(this.styleTable[propName].coloredMCs[_local15]);
if (this.styleTable[propName].value == undefined) {
var _local5 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local4.setTransform(_local5);
} else {
_local4.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = _local16;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var _local4 = new Color(skinMCRef);
_local4.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var _local3 in arguments[0]) {
this[_local3] = arguments[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local3 = 0;
while (_local3 < arguments.length) {
var _local4 = arguments[_local3];
this.listeners[arguments[_local3]] = _local4;
for (var _local5 in this) {
if (this.isAStyle(_local5)) {
_local4.updateStyleProperty(this, _local5.toString());
}
}
_local3++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
if (component.styleTable[_local4].useGlobal == this.isGlobal) {
component.styleTable[_local4].useGlobal = true;
var _local3 = (this.isGlobal ? undefined : (globalStyleFormat[_local4]));
component.setStyleProperty(_local4, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local6 = 0;
for (var _local5 in this.listeners) {
var _local3 = this.listeners[_local5];
if (arguments.length > 0) {
var _local4 = 0;
while (_local4 < arguments.length) {
if (this.isAStyle(arguments[_local4])) {
_local3.updateStyleProperty(this, arguments[_local4]);
}
_local4++;
}
} else {
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
_local3.updateStyleProperty(this, _local4.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 17 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 42 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 51 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 56 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 57 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 65 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 73 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "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 81 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 82 MovieClip [DownArrow] Frame 1
stop();
Symbol 82 MovieClip [DownArrow] Frame 2
stop();
Symbol 82 MovieClip [DownArrow] Frame 3
stop();
Symbol 84 MovieClip [LogoFly] Frame 1
stop();
Symbol 84 MovieClip [LogoFly] Frame 10
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 141 Button
on (release) {
FOG.AS2.FogServices.TrackClick();
}
Symbol 899 MovieClip [__Packages.FOG.AS2.FogServices] Frame 0
class FOG.AS2.FogServices
{
function FogServices () {
}
static function Connect(D) {
Data = D;
Data.domain = GetHostedDomain();
FOG.AS2.FogUtils.Debug(D, "Game Data");
}
static function TrackClick(Url) {
if (!Url) {
Url = "www.freeonlinegames.com";
}
var _local1 = ((("?utm_source=" + Data.domain) + "&utm_medium=api-game") + "&utm_campaign=") + Data.name;
FOG.AS2.FogUtils.Debug("Tracking: " + _local1);
getURL ((("http://" + Url) + "/") + _local1, "_blank");
}
static function TrackPlay() {
FOG.AS2.FogUtils.Debug("Track Play Using FogDev");
FOG.AS2.FogDev.TrackPlay();
}
static function GetHostedDomain() {
var _local2 = _url.indexOf("://") + 3;
var _local4 = _url.indexOf("/", _local2);
var _local1 = _url.substring(_local2, _local4);
var _local3 = _local1.lastIndexOf(".") - 1;
var _local5 = _local1.lastIndexOf(".", _local3) + 1;
if (!_local1) {
_local1 = "local";
}
return(_local1);
}
static var Version = "1.3";
static var Data = new Object();
}
Symbol 900 MovieClip [__Packages.FOG.AS2.FogUtils] Frame 0
class FOG.AS2.FogUtils
{
function FogUtils () {
}
static function Debug(S, N) {
if (typeof(S) == "object") {
if (N) {
Debug(N);
} else {
Debug("Object");
}
for (var _local2 in S) {
Debug((("> " + _local2) + ": ") + S[_local2]);
}
return(undefined);
}
if (flash.external.ExternalInterface.available) {
flash.external.ExternalInterface.call("fog.debug", S);
}
if (S.indexOf(">") != 0) {
trace(" ");
}
trace(S);
}
}
Symbol 901 MovieClip [__Packages.FOG.AS2.FogDev] Frame 0
class FOG.AS2.FogDev
{
function FogDev () {
}
static function Connect() {
System.security.allowDomain("*");
FOG.AS2.FogUtils.Debug("> Connecting");
FOG.AS2.FogUtils.Debug((((("> http://" + Server) + "/") + LibFile) + "?as=2&v=") + FOG.AS2.FogServices.Version);
var _local2 = new Object();
_local2.onLoadInit = function (Clip) {
FOG.AS2.FogDev.Remote = Clip;
if (!FOG.AS2.FogDev.Remote.CanAccess) {
FOG.AS2.FogUtils.Debug("> Corrupt Library");
return(undefined);
}
FOG.AS2.FogDev.Remote.Connect(FOG.AS2.FogServices.Data.name, FOG.AS2.FogServices.Data.domain);
};
_local2.onLoadError = function (c, e) {
FOG.AS2.FogUtils.Debug("> Can't Load Library");
};
_root.createEmptyMovieClip("conn_remote", _root.getNextHighestDepth());
var _local3 = new MovieClipLoader();
_local3.addListener(_local2);
_local3.loadClip((((((("http://" + Server) + "/") + LibFile) + "?as=2&v=") + FOG.AS2.FogServices.Version) + "&c=") + Math.random(), _root.conn_remote);
}
static function TrackPlay() {
FOG.AS2.FogUtils.Debug("> Tracking");
Connect();
}
static var Server = "x.fogdev.com";
static var LibFile = "api/library-as2.swf";
static var LibPath = "";
}
Symbol 902 MovieClip [__Packages.FOG.AS2.FogPreloader] Frame 0
class FOG.AS2.FogPreloader
{
function FogPreloader () {
}
static function Start() {
FOG.AS2.FogUtils.Debug("Preloader Initialized");
_root.stop();
var _local5 = _root.mcTaglines;
var _local4 = _root.btnFoggy;
var mcLogo = _root.mcLogo;
var prel = _root.prel;
var fogNo = 0;
var GameDura = 3000;
var percent = 0;
var percentGame = 0;
var percentDura = 0;
var stagewidth = Stage.width;
var stageheight = Stage.height;
var startTimer = getTimer();
_local4._width = stagewidth;
_local4._height = stageheight;
_local5.swapDepths(99996);
prel.swapDepths(99997);
mcLogo.swapDepths(99998);
_local4.swapDepths(99999);
prel.onEnterFrame = function () {
var _local4 = Math.random();
if (_local4 < ((_root.getBytesLoaded() / _root.getBytesTotal()) / 5)) {
if (fogNo > 999) {
fogNo = 0;
}
var _local5 = random(2) + 1;
var _local3 = _root.attachMovie("LogoFly", "fog" + (fogNo++), fogNo);
_local3.cacheAsBitmap = true;
_local3._x = stagewidth / 2;
_local3._y = stageheight / 2;
_local3._xscale = (_local3._yscale = 0);
_local3.gotoAndStop(random(10) + 1);
_local3.speed = 100;
_local3._alpha = 0;
_local3.grow = Math.random();
_local3.fade = false;
_local3.targetX = random(10);
if (_local3.targetX < 5) {
_local3.targetX = random(10);
if (_local3.targetX < 5) {
_local3.targetX = -100;
} else {
_local3.targetX = stagewidth + 100;
}
_local3.targetY = random(stageheight);
} else {
_local3.targetY = random(10);
if (_local3.targetY < 5) {
_local3.targetY = -100;
} else {
_local3.targetY = stageheight + 100;
}
_local3.targetX = random(stagewidth);
}
_local3.onEnterFrame = function () {
this._x = this._x + (((this.targetX - this._x) / this.speed) * 0.5);
this._y = this._y + (((this.targetY - this._y) / this.speed) * 0.5);
this.speed = this.speed * 0.99;
this._xscale = (this._yscale = this._yscale + (this.grow * 2));
if ((this._alpha < 100) && (!this.fade)) {
this._alpha = this._alpha + 2;
}
if (((((this._x < -50) || (this._y < -50)) || (this._x > (stagewidth + 50))) || (this._y > (stageheight + 50))) || (this._xscale > 200)) {
this.fade = true;
}
if (this.fade) {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
delete this.onEnterFrame;
this.removeMovieClip();
}
}
};
}
percentGame = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
percentDura = ((getTimer() - startTimer) / GameDura) * 100;
percent = Math.round(Math.min(percentGame, percentDura, 100));
prel.gotoAndStop(percent);
prel.procent.text = percent;
if (percent > 99) {
FOG.AS2.FogPreloader.onLoaded();
mcLogo.removeMovieClip();
delete this.onEnterFrame;
play();
}
};
}
static var onLoaded = FOG.AS2.FogServices.TrackPlay;
function onComplete() {
}
}
Symbol 903 MovieClip [__Packages.Pirrest.PhisicsEngine.Wheel] Frame 0
class Pirrest.PhisicsEngine.Wheel extends MovieClip
{
var _coord_space, _parent, _y, _x, wr, _width, wp, rp, contactRadius, coeffSlip, closestPoint, _rotation;
function Wheel () {
super();
}
function init($coord_space, $mass) {
if (Pirrest.Common.PiVal.isEmpty($coord_space)) {
_coord_space = _parent;
} else {
_coord_space = $coord_space;
}
var _local2 = {x:_x, y:_y};
_parent.localToGlobal(_local2);
$coord_space.globalToLocal(_local2);
wr = _width / 2;
wp = new Pirrest.PhisicsEngine.Particle(_local2.x, _local2.y, $mass);
rp = new Pirrest.PhisicsEngine.RimParticle(wr, 2);
contactRadius = wr;
coeffSlip = 0;
closestPoint = new Pirrest.PhisicsEngine.Vector(0, 0);
}
function verlet($sysObj) {
rp.verlet($sysObj);
wp.verlet($sysObj);
}
function checkCollision($surface, $sysObj) {
$surface.resolveWheelCollision(this);
}
function paint() {
var _local7 = wp.curr.x;
var _local6 = wp.curr.y;
var _local4 = rp.curr.x;
var _local2 = rp.curr.y;
_x = _local7;
_y = _local6;
var _local3 = 57.29578;
var _local5 = (-Math.atan2(_local4, _local2)) * _local3;
_rotation = _local5;
}
function resolve($n) {
var _local3 = -rp.curr.y;
var _local2 = rp.curr.x;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
_local3 = _local3 / _local4;
_local2 = _local2 / _local4;
var _local13 = _local3 * rp.speed;
var _local11 = _local2 * rp.speed;
var _local12 = wp.curr.x - wp.prev.x;
var _local10 = wp.curr.y - wp.prev.y;
var _local9 = _local12 + _local13;
var _local8 = _local10 + _local11;
var _local6 = ((-$n.y) * _local9) + ($n.x * _local8);
rp.prev.x = rp.curr.x - (_local6 * _local3);
rp.prev.y = rp.curr.y - (_local6 * _local2);
var _local7 = 1 - coeffSlip;
wp.curr.x = wp.curr.x + ((_local7 * rp.speed) * (-$n.y));
wp.curr.y = wp.curr.y + ((_local7 * rp.speed) * $n.x);
rp.speed = rp.speed * coeffSlip;
}
}
Symbol 904 MovieClip [__Packages.Pirrest.PhisicsEngine.Particle] Frame 0
class Pirrest.PhisicsEngine.Particle
{
var curr, prev, temp, mass, dmc;
function Particle ($posX, $posY, $mass) {
init($posX, $posY, $mass);
}
function init($posX, $posY, $mass) {
curr = new Pirrest.PhisicsEngine.Vector($posX, $posY);
prev = new Pirrest.PhisicsEngine.Vector($posX, $posY);
temp = new Pirrest.PhisicsEngine.Vector(0, 0);
if (($mass == undefined) || ($mass < 0)) {
mass = 0;
} else {
mass = $mass;
}
var _local3 = _root.main_mc.main_cont_mc.level_mc.over_mc.getNextHighestDepth();
dmc = _root.main_mc.main_cont_mc.level_mc.over_mc.createEmptyMovieClip("p_" + _local3, _local3);
}
function verlet($sysObj) {
temp.x = curr.x;
temp.y = curr.y;
curr.x = curr.x + (($sysObj.coeffDamp * (curr.x - prev.x)) + $sysObj.gravity.x);
curr.y = curr.y + ((($sysObj.coeffDamp * (curr.y - prev.y)) + $sysObj.gravity.y) + mass);
prev.x = temp.x;
prev.y = temp.y;
}
function checkCollision($surface, $sysObj) {
$surface.resolveParticleCollision(this, $sysObj);
}
function paint() {
dmc.clear();
dmc.lineStyle(0, 16777215, 100);
Pirrest.PhisicsEngine.Graphics.prototype.paintCircle(dmc, curr.x, curr.y, 2);
}
function setPos($px, $py) {
curr.x = $px;
curr.y = $py;
prev.x = $px;
prev.y = $py;
}
}
Symbol 905 MovieClip [__Packages.Pirrest.PhisicsEngine.Vector] Frame 0
class Pirrest.PhisicsEngine.Vector
{
var x, y;
function Vector ($x, $y) {
init($x, $y);
}
function init($x, $y) {
x = $x;
y = $y;
}
function dot($v) {
return((x * $v.x) + (y * $v.y));
}
function cross($v) {
return((x * $v.y) - (y * $v.x));
}
function plus($v) {
x = x + $v.x;
y = y + $v.y;
return(this);
}
function plusNew($v) {
return(new Pirrest.PhisicsEngine.Vector(x + $v.x, y + $v.y));
}
function minus($v) {
x = x - $v.x;
y = y - $v.y;
return(this);
}
function minusNew($v) {
return(new Pirrest.PhisicsEngine.Vector(x - $v.x, y - $v.y));
}
function mult($s) {
x = x * $s;
y = y * $s;
return(this);
}
function multNew($s) {
return(new Pirrest.PhisicsEngine.Vector(x * $s, y * $s));
}
function distance($p) {
var _local3 = x - $p.x;
var _local2 = y - $p.y;
return(Math.sqrt((_local3 * _local3) + (_local2 * _local2)));
}
function normalize() {
var _local2 = Math.sqrt((x * x) + (y * y));
x = x / _local2;
y = y / _local2;
return(this);
}
}
Symbol 906 MovieClip [__Packages.Pirrest.PhisicsEngine.ParticleSystem] Frame 0
class Pirrest.PhisicsEngine.ParticleSystem
{
var _particles_ar, _surfaces_ar, _constraints_ar, _wheels_ar, gravity, coeffRest, coeffFric, coeffDamp, _p_count, _w_count, _s_count, _c_count;
function ParticleSystem () {
init();
}
function init() {
_particles_ar = [];
_surfaces_ar = [];
_constraints_ar = [];
_wheels_ar = [];
gravity = new Pirrest.PhisicsEngine.Vector(0, 1);
coeffRest = 1.5;
coeffFric = 0.01;
coeffDamp = 0.99;
}
function addParticle($px, $py, $mass) {
var _local2 = new Pirrest.PhisicsEngine.Particle($px, $py, $mass);
_particles_ar.push(_local2);
_p_count = _particles_ar.length;
return(_local2);
}
function addWheel($wheel) {
_wheels_ar.push($wheel);
_w_count = _wheels_ar.length;
}
function addSurface($s) {
_surfaces_ar.push($s);
_s_count = _surfaces_ar.length;
}
function addCircleSurface($s) {
_surfaces_ar.push($s);
_s_count = _surfaces_ar.length;
}
function addConstraint($p1, $p2) {
var _local2 = new Pirrest.PhisicsEngine.Constraint($p1, $p2);
_constraints_ar.push(_local2);
_c_count = _constraints_ar.length;
return(_local2);
}
function addRectangle($center, $rWidth, $rHeight) {
return(new Pirrest.PhisicsEngine.Rectangle(this, $center, $rWidth, $rHeight));
}
function addAngularConstraint($p1, $p2, $p3) {
var _local2 = new Pirrest.PhisicsEngine.AngularConstraint($p1, $p2, $p3);
_constraints_ar.push(_local2);
_c_count = _constraints_ar.length;
return(_local2);
}
function setKfr($kfr) {
coeffRest = 1 + $kfr;
}
function setFriction($f) {
coeffFric = $f;
}
function setDamping($d) {
coeffDamp = $d;
}
function setGravity($gx, $gy) {
gravity.x = $gx;
gravity.y = $gy;
}
function verlet() {
var _local2;
_local2 = 0;
while (_local2 < _p_count) {
_particles_ar[_local2].verlet(this);
_local2++;
}
_local2 = 0;
while (_local2 < _w_count) {
_wheels_ar[_local2].verlet(this);
_local2++;
}
}
function satisfy_constraints_ar() {
var _local2;
_local2 = 0;
while (_local2 < _c_count) {
_constraints_ar[_local2].resolve();
_local2++;
}
}
function checkCollisions() {
var _local4;
var _local3;
var _local2;
_local4 = 0;
while (_local4 < _s_count) {
_local3 = 0;
while (_local3 < _p_count) {
_particles_ar[_local3].checkCollision(_surfaces_ar[_local4], this);
_local3++;
}
_local2 = 0;
while (_local2 < _w_count) {
_wheels_ar[_local2].checkCollision(_surfaces_ar[_local4], this);
_local2++;
}
_local4++;
}
}
function paintSurfaces() {
var _local2 = 0;
while (_local2 < _surfaces_ar.length) {
_surfaces_ar[_local2].paint();
_local2++;
}
}
function paintParticles() {
var _local2 = 0;
while (_local2 < _particles_ar.length) {
_particles_ar[_local2].paint();
_local2++;
}
}
function paintConstraints() {
var _local2 = 0;
while (_local2 < _constraints_ar.length) {
_constraints_ar[_local2].paint();
_local2++;
}
}
function paintWheels() {
var _local2 = 0;
while (_local2 < _wheels_ar.length) {
_wheels_ar[_local2].paint();
_local2++;
}
}
function timeStep() {
verlet();
satisfy_constraints_ar();
checkCollisions();
}
}
Symbol 907 MovieClip [__Packages.Pirrest.PhisicsEngine.Surface] Frame 0
class Pirrest.PhisicsEngine.Surface extends MovieClip
{
var coord_space, p1, p2, isOrientH, normal, rise, run, invRun, slope, invB;
function Surface () {
super();
}
function init($coord_space) {
coord_space = $coord_space;
p1.init($coord_space);
p2.init($coord_space);
isOrientH = true;
normal = new Pirrest.PhisicsEngine.Vector(0, 0);
calcNormal();
rise = p2.y - p1.y;
run = p2.x - p1.x;
invRun = 1 / run;
slope = rise / run;
invB = 1 / ((run * run) + (rise * rise));
coord_space.lineStyle(10, 2237064, 100);
}
function setIsOrientH($isOrientH) {
isOrientH = $isOrientH;
}
function calcNormal() {
var _local4 = p2.x - p1.x;
var _local3 = p2.y - p1.y;
normal.x = _local3;
normal.y = -_local4;
var _local2 = Math.sqrt((normal.x * normal.x) + (normal.y * normal.y));
normal.x = normal.x / _local2;
normal.y = normal.y / _local2;
}
function paint() {
Pirrest.PhisicsEngine.Graphics.prototype.paintLine(coord_space, p1.x, p1.y, p2.x, p2.y);
}
function resolveWheelCollision($w) {
if (bounds($w.wp.curr, $w.contactRadius)) {
getClosestPoint($w.wp.curr, $w.closestPoint);
var _local3 = $w.closestPoint.minusNew($w.wp.curr);
_local3.normalize();
if (inequality($w.wp.curr)) {
var _local5 = Math.abs(_local3.x);
_local3.x = ((normal.x < 0) ? (_local5) : (-_local5));
_local3.y = Math.abs(_local3.y);
}
var _local4 = $w.wp.curr.plusNew(_local3.mult($w.wr));
if (segmentInequality(_local4)) {
var _local7 = _local4.x - $w.closestPoint.x;
var _local6 = _local4.y - $w.closestPoint.y;
$w.wp.curr.x = $w.wp.curr.x - _local7;
$w.wp.curr.y = $w.wp.curr.y - _local6;
$w.resolve(normal);
}
}
}
function resolveParticleCollision($p, $sysObj) {
if (boundedSegmentInequality($p.curr)) {
var _local4 = $p.curr.minusNew($p.prev);
var _local3 = normal.dot(_local4);
if (_local3 < 0) {
var _local10 = _local4.minusNew(normal.multNew(_local3));
var _local5 = _local10.multNew($sysObj.coeffFric);
var _local7 = normal.multNew(_local3 * $sysObj.coeffRest);
var _local8 = _local7.plusNew(_local5);
var _local9 = _local4.minusNew(_local8);
var _local6 = normal.dot($p.curr.minusNew(p1)) * $sysObj.coeffRest;
$p.curr.minus(normal.multNew(_local6));
$p.prev = $p.curr.minusNew(_local9);
}
}
}
function segmentInequality($toPoint) {
var _local2 = findU($toPoint);
var _local3 = inequality($toPoint);
return(((_local2 >= 0) && (_local2 <= 1)) && (_local3));
}
function boundedSegmentInequality($toPoint) {
var _local3;
if (isOrientH) {
_local3 = ($toPoint.x >= p1.x) && ($toPoint.x <= p2.x);
} else if (p1.y < p2.y) {
_local3 = ($toPoint.y >= p1.y) && ($toPoint.y <= p2.y);
} else {
_local3 = ($toPoint.y <= p1.y) && ($toPoint.y >= p2.y);
}
if (_local3) {
return(inequality($toPoint));
}
return(false);
}
function inequality($toPoint) {
var _local2 = (slope * ($toPoint.x - p1.x)) + (p1.y - $toPoint.y);
return(_local2 <= 0);
}
function bounds($toPoint, $r) {
return(($toPoint.x >= (p1.x - $r)) && ($toPoint.x <= (p2.x + $r)));
}
function getClosestPoint($toPoint, $returnVect) {
var _local2 = findU($toPoint);
if (_local2 <= 0) {
return(p1);
}
if (_local2 >= 1) {
return(p2);
}
var _local4 = p1.x + (_local2 * (p2.x - p1.x));
var _local3 = p1.y + (_local2 * (p2.y - p1.y));
$returnVect.x = _local4;
$returnVect.y = _local3;
}
function findU($p) {
var _local2 = (($p.x - p1.x) * run) + (($p.y - p1.y) * rise);
return(_local2 * invB);
}
}
Symbol 908 MovieClip [__Packages.Pirrest.PhisicsEngine.Point] Frame 0
class Pirrest.PhisicsEngine.Point extends MovieClip
{
var _y, _x, _parent, x, y, pn;
function Point () {
super();
}
function init($coord_space) {
var _local2 = {x:_x, y:_y};
if (!Pirrest.Common.PiVal.isEmpty($coord_space)) {
_parent.localToGlobal(_local2);
$coord_space.globalToLocal(_local2);
}
x = _local2.x;
y = _local2.y;
pn = new Pirrest.PhisicsEngine.Vector(0, 0);
}
function distance(that) {
return(Pirrest.Common.PiGeo.distance(x, y, that.x, that.y));
}
}
Symbol 909 MovieClip [__Packages.Pirrest.Common.PiVal] Frame 0
class Pirrest.Common.PiVal
{
function PiVal () {
}
static function isEmpty($obj) {
if (($obj == "") || ($obj == undefined)) {
return(true);
}
return(false);
}
}
Symbol 910 MovieClip [__Packages.Pirrest.Common.PiGeo] Frame 0
class Pirrest.Common.PiGeo
{
function PiGeo () {
}
static function distance($x1, $y1, $x2, $y2) {
var _local2 = $x1 - $x2;
var _local1 = $y1 - $y2;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
}
static function angle($x1, $y1, $x2, $y2) {
return(Math.atan2($x2 - $x1, $y2 - $y1) * RADIAN);
}
static var RADIAN = 57.2957795130823;
static var DEGREE = 0.0174532925199433 /* Math.PI/180 */;
}
Symbol 911 MovieClip [__Packages.Pirrest.PhisicsEngine.Graphics] Frame 0
class Pirrest.PhisicsEngine.Graphics
{
function Graphics () {
}
function paintLine($target_mc, $x0, $y0, $x1, $y1) {
$target_mc.moveTo($x0, $y0);
$target_mc.lineTo($x1, $y1);
}
function paintCircle($target_mc, $x, $y, $r) {
var _local4 = 0.414213562373095 * $r;
var _local5 = 0.707106781186547 * $r;
$target_mc.moveTo($x + $r, $y);
$target_mc.curveTo($r + $x, _local4 + $y, _local5 + $x, _local5 + $y);
$target_mc.curveTo(_local4 + $x, $r + $y, $x, $r + $y);
$target_mc.curveTo((-_local4) + $x, $r + $y, (-_local5) + $x, _local5 + $y);
$target_mc.curveTo((-$r) + $x, _local4 + $y, (-$r) + $x, $y);
$target_mc.curveTo((-$r) + $x, (-_local4) + $y, (-_local5) + $x, (-_local5) + $y);
$target_mc.curveTo((-_local4) + $x, (-$r) + $y, $x, (-$r) + $y);
$target_mc.curveTo(_local4 + $x, (-$r) + $y, _local5 + $x, (-_local5) + $y);
$target_mc.curveTo($r + $x, (-_local4) + $y, $r + $x, $y);
}
}
Symbol 912 MovieClip [__Packages.Pirrest.PhisicsEngine.CircleSurface] Frame 0
class Pirrest.PhisicsEngine.CircleSurface extends MovieClip
{
var _y, _x, _parent, cx, cy, r, _width, lineStyle;
function CircleSurface () {
super();
}
function init($coord_space) {
var _local2 = {x:_x, y:_y};
if (!Pirrest.Common.PiVal.isEmpty($coord_space)) {
_parent.localToGlobal(_local2);
$coord_space.globalToLocal(_local2);
}
cx = _local2.x;
cy = _local2.y;
r = _width / 2;
lineStyle(0, 2237064, 100);
}
function paint() {
Pirrest.PhisicsEngine.Graphics.prototype.paintCircle(this, cx, cy, r);
}
function resolveWheelCollision($w) {
var _local3 = cx - $w.wp.curr.x;
var _local2 = cy - $w.wp.curr.y;
var _local5 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
var _local6 = ($w.wr + r) - _local5;
if (_local6 > 0) {
_local3 = _local3 / _local5;
_local2 = _local2 / _local5;
$w.wp.curr.x = $w.wp.curr.x - (_local3 * _local6);
$w.wp.curr.y = $w.wp.curr.y - (_local2 * _local6);
var _local7 = new Pirrest.PhisicsEngine.Vector(-_local3, -_local2);
$w.resolve(_local7);
}
}
function resolveParticleCollision($p) {
var _local2 = new Pirrest.PhisicsEngine.Vector(cx, cy);
var _local5 = _local2.distance($p.curr);
if (_local5 <= r) {
var _local4 = $p.curr.minusNew(_local2).normalize();
var _local6 = _local2.plusNew(_local4.multNew(r));
$p.curr = _local6;
}
}
}
Symbol 913 MovieClip [__Packages.Pirrest.PhisicsEngine.Constraint] Frame 0
class Pirrest.PhisicsEngine.Constraint
{
var p1, p2, restLength, dmc;
function Constraint ($p1, $p2) {
init($p1, $p2);
}
function init($p1, $p2) {
p1 = $p1;
p2 = $p2;
restLength = $p1.curr.distance($p2.curr);
var _local3 = _root.main_mc.main_cont_mc.level_mc.over_mc.getNextHighestDepth();
dmc = _root.main_mc.main_cont_mc.level_mc.over_mc.createEmptyMovieClip("p_" + _local3, _local3);
}
function resolve() {
var _local5 = p1.curr.minusNew(p2.curr);
var _local3 = p1.curr.distance(p2.curr);
var _local4 = (_local3 - restLength) / _local3;
var _local2 = _local5.mult(_local4 * 0.5);
p1.curr.minus(_local2);
p2.curr.plus(_local2);
}
function setRestLength($r) {
restLength = $r;
}
function paint() {
dmc.clear();
dmc.lineStyle(0, 10053171, 100);
Pirrest.PhisicsEngine.Graphics.prototype.paintLine(dmc, p1.curr.x, p1.curr.y, p2.curr.x, p2.curr.y);
}
}
Symbol 914 MovieClip [__Packages.Pirrest.PhisicsEngine.Rectangle] Frame 0
class Pirrest.PhisicsEngine.Rectangle
{
var p0, p1, p2, p3;
function Rectangle ($pSystem, $center, $rWidth, $rHeight) {
init($pSystem, $center, $rWidth, $rHeight);
}
function init($pSystem, $center, $rWidth, $rHeight) {
var _local7 = $pSystem.addParticle($center.x - ($rWidth / 2), $center.y - ($rHeight / 2), 0);
var _local6 = $pSystem.addParticle($center.x + ($rWidth / 2), $center.y - ($rHeight / 2), 0);
var _local5 = $pSystem.addParticle($center.x + ($rWidth / 2), $center.y + ($rHeight / 2), 0);
var _local4 = $pSystem.addParticle($center.x - ($rWidth / 2), $center.y + ($rHeight / 2), 0);
$pSystem.addConstraint(_local7, _local6);
$pSystem.addConstraint(_local6, _local5);
$pSystem.addConstraint(_local5, _local4);
$pSystem.addConstraint(_local4, _local7);
$pSystem.addConstraint(_local7, _local5);
$pSystem.addConstraint(_local6, _local4);
p0 = _local7;
p1 = _local6;
p2 = _local5;
p3 = _local4;
}
}
Symbol 915 MovieClip [__Packages.Pirrest.PhisicsEngine.AngularConstraint] Frame 0
class Pirrest.PhisicsEngine.AngularConstraint
{
var pA, pB, pC, lineA, lineB, pD, lineC, targetTheta, coeffStiff;
function AngularConstraint ($pA, $pB, $pC) {
init($pA, $pB, $pC);
}
function init($pA, $pB, $pC) {
pA = $pA.curr;
pB = $pB.curr;
pC = $pC.curr;
lineA = new Pirrest.PhisicsEngine.Line(pA, pB);
lineB = new Pirrest.PhisicsEngine.Line(pB, pC);
pD = new Pirrest.PhisicsEngine.Vector(pB.x + 0, pB.y - 1);
lineC = new Pirrest.PhisicsEngine.Line(pB, pD);
targetTheta = calcTheta(pA, pB, pC);
coeffStiff = 4;
}
function resolve() {
var _local5 = getCentroid();
lineC.p2.x = lineC.p1.x + 0;
lineC.p2.y = lineC.p1.y - 1;
var _local9 = pA.distance(pB);
var _local8 = pB.distance(pC);
var _local12 = calcTheta(pA, pB, pC);
var _local13 = calcTheta(pA, pB, pD);
var _local11 = calcTheta(pC, pB, pD);
var _local6 = (targetTheta - _local12) / 2;
var _local10 = _local13 + (_local6 * coeffStiff);
var _local4 = _local11 - (_local6 * coeffStiff);
pA.x = (_local9 * Math.sin(_local10)) + pB.x;
pA.y = (_local9 * Math.cos(_local10)) + pB.y;
pC.x = (_local8 * Math.sin(_local4)) + pB.x;
pC.y = (_local8 * Math.cos(_local4)) + pB.y;
var _local7 = getCentroid();
var _local3 = _local7.x - _local5.x;
var _local2 = _local7.y - _local5.y;
pA.x = pA.x - _local3;
pA.y = pA.y - _local2;
pB.x = pB.x - _local3;
pB.y = pB.y - _local2;
pC.x = pC.x - _local3;
pC.y = pC.y - _local2;
}
function calcTheta($pA, $pB, $pC) {
var _local2 = new Pirrest.PhisicsEngine.Vector($pB.x - $pA.x, $pB.y - $pA.y);
var _local3 = new Pirrest.PhisicsEngine.Vector($pC.x - $pB.x, $pC.y - $pB.y);
var _local4 = _local2.dot(_local3);
var _local5 = _local2.cross(_local3);
return(Math.atan2(_local5, _local4));
}
function set theta($t) {
targetTheta = $t;
//return(theta);
}
function get theta() {
return(targetTheta);
}
function paint() {
}
function getCentroid() {
var _local3 = ((pA.x + pB.x) + pC.x) / 3;
var _local2 = ((pA.y + pB.y) + pC.y) / 3;
return(new Pirrest.PhisicsEngine.Vector(_local3, _local2));
}
}
Symbol 916 MovieClip [__Packages.Pirrest.PhisicsEngine.Line] Frame 0
class Pirrest.PhisicsEngine.Line
{
var p1, p2;
function Line ($p1, $p2) {
p1 = $p1;
p2 = $p2;
}
}
Symbol 917 MovieClip [__Packages.Pirrest.PhisicsEngine.RimParticle] Frame 0
class Pirrest.PhisicsEngine.RimParticle
{
var curr, prev, vs, speed, maxTorque, wr;
function RimParticle ($r, $mt) {
init($r, $mt);
}
function init($r, $mt) {
curr = new Pirrest.PhisicsEngine.Vector($r, 0);
prev = new Pirrest.PhisicsEngine.Vector(0, 0);
vs = 0;
speed = 0;
maxTorque = $mt;
wr = $r;
}
function verlet($sysObj) {
speed = Math.max(-maxTorque, Math.min(maxTorque, speed + vs));
var _local3 = -curr.y;
var _local2 = curr.x;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
_local3 = _local3 / _local4;
_local2 = _local2 / _local4;
curr.x = curr.x + (speed * _local3);
curr.y = curr.y + (speed * _local2);
var _local10 = prev.x;
var _local9 = prev.y;
var _local8 = (prev.x = curr.x);
var _local7 = (prev.y = curr.y);
curr.x = curr.x + ($sysObj.coeffDamp * (_local8 - _local10));
curr.y = curr.y + ($sysObj.coeffDamp * (_local7 - _local9));
var _local6 = Math.sqrt((curr.x * curr.x) + (curr.y * curr.y));
var _local5 = (_local6 - wr) / _local6;
curr.x = curr.x - (curr.x * _local5);
curr.y = curr.y - (curr.y * _local5);
}
}
Symbol 918 MovieClip [__Packages.classes.Pirrest.BigFoot.Medkit] Frame 0
class classes.Pirrest.BigFoot.Medkit extends MovieClip
{
var fillUp, active, __get__setActive, gotoAndPlay;
function Medkit () {
super();
init();
}
function init() {
MEDKITS.push(this);
_global.MEDKITS = MEDKITS;
fillUp = _global.med;
active = true;
}
function get getActive() {
return(active);
}
function set setActive(a) {
active = a;
//return(__get__setActive());
}
function destroy() {
gotoAndPlay("destroy");
}
static var MEDKITS = [];
}
Symbol 919 MovieClip [__Packages.Pirrest.BigFoot.Level] Frame 0
class Pirrest.BigFoot.Level extends MovieClip
{
var p_system, under_mc, globalToLocal, jeep_wheel_1_mc, jeep_cont_mc, jeep_wheel_2_mc, jeep_body_mc, part, over_mc, _x, _y;
function Level () {
super();
}
function init() {
p_system = new Pirrest.PhisicsEngine.ParticleSystem();
p_system.setDamping(_global.gl_level.damping);
p_system.setGravity(_global.gl_level.gravity.x, _global.gl_level.gravity.y);
p_system.setKfr(_global.gl_level.kfr);
p_system.setFriction(_global.gl_level.friction);
var _local5;
for (_local5 in under_mc) {
var _local3 = under_mc[_local5];
_local3._visible = false;
if (_local3 instanceof Pirrest.PhisicsEngine.Surface) {
_local3.init(under_mc);
p_system.addSurface(_local3);
}
if (_local3 instanceof Pirrest.PhisicsEngine.CircleSurface) {
_local3.init(under_mc);
p_system.addCircleSurface(_local3);
}
}
under_mc.ground_mc._visible = false;
under_mc.star_mc._visible = true;
var _local8 = under_mc.jeep_dummy_mc.wheel_1_dummy_mc;
var _local9 = under_mc.jeep_dummy_mc.wheel_2_dummy_mc;
var _local7 = {x:_local8._x, y:_local8._y};
var _local6 = {x:_local9._x, y:_local9._y};
under_mc.jeep_dummy_mc.localToGlobal(_local7);
under_mc.jeep_dummy_mc.localToGlobal(_local6);
globalToLocal(_local7);
globalToLocal(_local6);
jeep_wheel_1_mc = jeep_cont_mc.attachMovie("lib_jeep_wheel1", "wheel_1_mc", jeep_cont_mc.getNextHighestDepth());
jeep_wheel_1_mc._x = _local7.x;
jeep_wheel_1_mc._y = _local7.y;
jeep_wheel_1_mc.init(jeep_cont_mc, 0);
p_system.addWheel(jeep_wheel_1_mc);
jeep_wheel_2_mc = jeep_cont_mc.attachMovie("lib_jeep_wheel2", "wheel_2_mc", jeep_cont_mc.getNextHighestDepth());
jeep_wheel_2_mc._x = _local6.x;
jeep_wheel_2_mc._y = _local6.y;
jeep_wheel_2_mc.init(jeep_cont_mc, 0);
p_system.addWheel(jeep_wheel_2_mc);
jeep_body_mc = jeep_cont_mc.attachMovie("lib_jeep_body", "jeep_body_mc", jeep_cont_mc.getNextHighestDepth());
var _local4 = {};
_local4.left = jeep_wheel_1_mc._x;
_local4.right = jeep_wheel_2_mc._x;
_local4.top = jeep_wheel_1_mc._y;
_local4.width = _local4.right - _local4.left;
_local4.mid = _local4.left + (_local4.width / 2);
part = p_system.addParticle(_local4.mid, _local4.top - 40);
p_system.addConstraint(jeep_wheel_1_mc.wp, part);
p_system.addConstraint(jeep_wheel_2_mc.wp, part);
p_system.addConstraint(jeep_wheel_2_mc.wp, jeep_wheel_1_mc.wp);
over_mc.onEnterFrame = function () {
this._x = this._parent.under_mc._x;
this._y = this._parent.under_mc._y;
};
jeep_cont_mc.onEnterFrame = function () {
this._x = this._parent.under_mc._x;
this._y = this._parent.under_mc._y;
};
}
function start() {
}
function moveCamera() {
var _local7;
var _local5 = 200 - jeep_body_mc._x;
var _local4 = 250 - jeep_body_mc._y;
var _local9 = _local5 - _x;
var _local8 = _local4 - _y;
var _local6 = Pirrest.Common.PiGeo.distance(_local5, _local4, _x, _y);
var _local3 = _local6 * 0.35;
if (_local3 > 50) {
_local3 = 50;
}
_local7 = _local3 / _local6;
_x = _x + (_local9 * _local7);
_y = _y + (_local8 * _local7);
_global.pBar.update(_x, under_mc.star_mc._x - under_mc.jeep_dummy_mc._x, under_mc.jeep_dummy_mc._x - (under_mc.jeep_dummy_mc._width / 2));
}
}
Symbol 920 MovieClip [__Packages.classes.Pirrest.BigFoot.EnergyBar] Frame 0
class classes.Pirrest.BigFoot.EnergyBar extends MovieClip
{
var bar;
function EnergyBar () {
super();
}
function toReduce() {
if (bar._xscale > 0) {
bar._xscale = bar._xscale - _global.lossOfEnergy;
_root.levelScore = _root.levelScore + Math.round(bar._xscale / 100);
} else if (bar._xscale <= 0) {
_global.gl_game_info.is_game_over = true;
_root.main_mc.messages_mc.gotoAndStop("game_over");
_global.driver.drive_mc.stop();
}
}
function toIncrease(h) {
if (bar._xscale < (100 - h)) {
bar._xscale = bar._xscale + h;
} else {
bar._xscale = bar._xscale + (100 - bar._xscale);
}
}
}
Symbol 921 MovieClip [__Packages.classes.Pirrest.BigFoot.Bar] Frame 0
class classes.Pirrest.BigFoot.Bar
{
var cursor, body;
function Bar () {
}
function update($x, $w, l) {
var _local2 = ((((Stage.width / 2) - $x) - l) / $w) * 100;
var _local3 = (body._width - cursor._width) / 100;
cursor._x = _local3 * _local2;
}
}
Symbol 922 MovieClip [__Packages.Pirrest.BigFoot.JeepBody] Frame 0
class Pirrest.BigFoot.JeepBody extends MovieClip
{
var damage, max_damage, driver_mc, createEmptyMovieClip, onEnterFrame, active, level, _parent, swapped, globalToLocal, stick_back_mc, stick_front_mc, stick_back_point_mc, stick_front_point_mc, _rotation, _y, _x, hitTest;
function JeepBody () {
super();
damage = 0;
max_damage = 200;
init();
_global.driver = driver_mc;
}
function init() {
createEmptyMovieClip("sync_mc", 5);
onEnterFrame = syncOnEnterFrame;
active = false;
level = _parent._parent;
}
function linstenKeys() {
var _local4 = 1;
driver_mc.drive_mc.stop();
var _local3 = 1.4;
if (Key.isDown(37)) {
driver_mc.move("back");
level.jeep_wheel_1_mc.wp.mass = _local3;
level.jeep_wheel_2_mc.wp.mass = -_local3;
} else if (Key.isDown(39)) {
driver_mc.move("front");
level.jeep_wheel_1_mc.wp.mass = (-_local3) / 2;
level.jeep_wheel_2_mc.wp.mass = _local3 / 1.5;
} else {
driver_mc.move("normal");
level.jeep_wheel_1_mc.wp.mass = 0;
level.jeep_wheel_2_mc.wp.mass = 0;
}
if (Key.isDown(38)) {
driver_mc.drive_mc.play();
_global.eBar.toReduce();
level.jeep_wheel_1_mc.rp.vs = _local4;
level.jeep_wheel_2_mc.rp.vs = _local4 / 6;
} else if (Key.isDown(40)) {
level.jeep_wheel_1_mc.rp.vs = (-_local4) / 2;
level.jeep_wheel_2_mc.rp.vs = 0;
} else {
level.jeep_wheel_1_mc.rp.vs = 0;
level.jeep_wheel_2_mc.rp.vs = 0;
}
}
function syncOnEnterFrame() {
if (_global.gl_game_info.is_game_over || (_global.gl_game_info.is_pause)) {
return(undefined);
}
var _local5 = (swapped ? ({x:level.jeep_wheel_2_mc._x, y:level.jeep_wheel_2_mc._y}) : ({x:level.jeep_wheel_1_mc._x, y:level.jeep_wheel_1_mc._y}));
var _local6 = (swapped ? ({x:level.jeep_wheel_1_mc._x, y:level.jeep_wheel_1_mc._y}) : ({x:level.jeep_wheel_2_mc._x, y:level.jeep_wheel_2_mc._y}));
level.jeep_cont_mc.localToGlobal(_local5);
globalToLocal(_local5);
level.jeep_cont_mc.localToGlobal(_local6);
globalToLocal(_local6);
stick_back_mc._x = _local5.x;
stick_back_mc._y = _local5.y;
stick_front_mc._x = _local6.x;
stick_front_mc._y = _local6.y;
var _local11 = (-Pirrest.Common.PiGeo.angle(_local5.x, _local5.y, stick_back_point_mc._x, stick_back_point_mc._y)) + 90;
stick_back_mc._rotation = _local11;
var _local9 = (-Pirrest.Common.PiGeo.angle(_local6.x, _local6.y, stick_front_point_mc._x, stick_front_point_mc._y)) + 90;
stick_front_mc._rotation = _local9;
level.moveCamera();
linstenKeys();
level.p_system.timeStep();
level.p_system.paintWheels();
var _local10 = (-Pirrest.Common.PiGeo.angle(level.jeep_wheel_1_mc._x, level.jeep_wheel_1_mc._y, level.jeep_wheel_2_mc._x, level.jeep_wheel_2_mc._y)) + 90;
_rotation = _local10;
_y = level.part.curr.y;
_x = level.part.curr.x;
var _local7 = {x:driver_mc.headhit_mc._x, y:driver_mc.headhit_mc._y};
driver_mc.localToGlobal(_local7);
if (level.under_mc.ground_mc.hitTest(_local7.x, _local7.y, true)) {
if (_root.sunet == true) {
_root.ouch.start(0, 1);
}
_root.lifesLeft--;
_global.gl_game_info.is_game_over = true;
_root.main_mc.messages_mc.gotoAndStop("game_over");
driver_mc.drive_mc.stop();
}
var _local8 = {x:level.under_mc.star_mc._x, y:level.under_mc.star_mc._y};
level.under_mc.localToGlobal(_local8);
if (level.jeep_cont_mc.hitTest(_local8.x, _local8.y, true)) {
_global.gl_game_info.is_game_over = true;
_global.gl_user_info.curr_level++;
_global.gl_level = _global.gl_user_info.levels["level_" + _global.gl_user_info.curr_level];
if (Pirrest.Common.PiVal.isEmpty(_global.gl_level)) {
_root.main_mc.messages_mc.gotoAndStop("game_completed");
_global.gl_user_info.curr_level = 1;
driver_mc.drive_mc.stop();
} else {
_root.main_mc.messages_mc.gotoAndStop("level_completed");
driver_mc.drive_mc.stop();
}
}
var _local4 = 0;
while (_local4 < _global.MEDKITS.length) {
if (hitTest(_global.MEDKITS[_local4]) && (_global.MEDKITS[_local4].getActive)) {
_global.MEDKITS[_local4].setActive = false;
_global.MEDKITS[_local4].destroy();
_global.eBar.toIncrease(_global.MEDKITS[_local4].fillUp);
}
_local4++;
}
}
}
Instance of Symbol 143 MovieClip "mcNotice" in Symbol 185 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 185 MovieClip Frame 120
_root.play();
Symbol 187 MovieClip Frame 60
stop();
var fogsound = new Sound();
fogsound.attachSound("fogaudio");
fogsound.start(0, 1);
Symbol 192 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 1
function move(to) {
if (position == to) {
return(undefined);
}
if (!is_moving) {
movement = to;
if (position == "normal") {
gotoAndPlay("move_" + to);
} else {
gotoAndPlay(position + "_to_normal");
}
} else {
movement = to;
}
}
position = "normal";
is_moving = false;
stop();
Symbol 229 MovieClip Frame 2
is_moving = true;
Symbol 229 MovieClip Frame 10
position = "front";
if (movement == "front") {
movement = "";
is_moving = false;
stop();
}
Symbol 229 MovieClip Frame 11
is_moving = true;
Symbol 229 MovieClip Frame 21
position = "normal";
if (movement == "normal") {
is_moving = false;
stop();
} else {
gotoAndPlay("move_" + movement);
}
Symbol 229 MovieClip Frame 22
is_moving = true;
Symbol 229 MovieClip Frame 31
position = "back";
if (movement == "back") {
movement = "";
is_moving = false;
stop();
}
Symbol 229 MovieClip Frame 32
is_moving = true;
Symbol 229 MovieClip Frame 42
position = "normal";
if (movement == "normal") {
is_moving = false;
stop();
} else {
gotoAndPlay("move_" + movement);
}
Symbol 230 MovieClip [lib_jeep_body] Frame 1
#initclip 41
Object.registerClass("lib_jeep_body", Pirrest.BigFoot.JeepBody);
#endinitclip
Symbol 232 MovieClip [lib_jeep_wheel1] Frame 1
#initclip 26
Object.registerClass("lib_jeep_wheel1", Pirrest.PhisicsEngine.Wheel);
#endinitclip
Symbol 234 MovieClip [lib_jeep_wheel2] Frame 1
#initclip 27
Object.registerClass("lib_jeep_wheel2", Pirrest.PhisicsEngine.Wheel);
#endinitclip
Symbol 241 MovieClip [lib_point] Frame 1
#initclip 28
Object.registerClass("lib_point", Pirrest.PhisicsEngine.Point);
#endinitclip
Symbol 242 MovieClip [lib_surface] Frame 1
#initclip 29
Object.registerClass("lib_surface", Pirrest.PhisicsEngine.Surface);
#endinitclip
Symbol 244 MovieClip [lib_circle] Frame 1
#initclip 30
Object.registerClass("lib_circle", Pirrest.PhisicsEngine.CircleSurface);
#endinitclip
Symbol 313 MovieClip [handicap] Frame 1
#initclip 31
Object.registerClass("handicap", classes.Pirrest.BigFoot.Medkit);
#endinitclip
stop();
Symbol 313 MovieClip [handicap] Frame 10
active = false;
this._visible = false;
Symbol 320 MovieClip [lib_level_1] Frame 1
#initclip 32
Object.registerClass("lib_level_1", Pirrest.BigFoot.Level);
#endinitclip
Symbol 331 MovieClip [lib_level_2] Frame 1
#initclip 33
Object.registerClass("lib_level_2", Pirrest.BigFoot.Level);
#endinitclip
Symbol 337 MovieClip [lib_level_3] Frame 1
#initclip 34
Object.registerClass("lib_level_3", Pirrest.BigFoot.Level);
#endinitclip
Symbol 339 MovieClip [lib_level_3a] Frame 1
#initclip 35
Object.registerClass("lib_level_3a", Pirrest.BigFoot.Level);
#endinitclip
Symbol 345 MovieClip [lib_level_4] Frame 1
#initclip 36
Object.registerClass("lib_level_4", Pirrest.BigFoot.Level);
#endinitclip
Symbol 355 MovieClip [lib_level_5] Frame 1
#initclip 37
Object.registerClass("lib_level_5", Pirrest.BigFoot.Level);
#endinitclip
Symbol 365 MovieClip [lib_level_6] Frame 1
#initclip 38
Object.registerClass("lib_level_6", Pirrest.BigFoot.Level);
#endinitclip
Symbol 374 MovieClip [EnergyBar] Frame 1
#initclip 39
Object.registerClass("EnergyBar", classes.Pirrest.BigFoot.EnergyBar);
#endinitclip
Symbol 378 MovieClip [ms_progressBar] Frame 1
#initclip 40
Object.registerClass("ms_progressBar", classes.Pirrest.BigFoot.Bar);
#endinitclip
Symbol 380 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 381 MovieClip [FScrollBarSymbol] Frame 1
#initclip 42
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
_local2 = Math.min(_local2, this.maxPos);
this.setScrollPosition(Math.max(_local2, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local3 = this.enable;
if (enabledFlag && (!_local3)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (_local3)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local3 = this.smallScroll;
if (inc != "one") {
_local3 = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var _local2 = this.getScrollPosition() + (mode * _local3);
if (_local2 > this.maxPos) {
_local2 = this.maxPos;
} else if (_local2 < this.minPos) {
_local2 = this.minPos;
}
this.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var _local2 = this.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (this._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var _local3 = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxhscroll));
} else {
var _local3 = this.textField.scroll;
var _local2 = this.textField.bottomScroll - this.textField.scroll;
this.setScrollProperties(_local2, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 383 MovieClip Frame 1
stop();
Symbol 391 Button
on (release) {
FOG.AS2.FogServices.TrackClick();
}
Symbol 400 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=19&area=gameover", "_blank");
}
Symbol 404 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 409 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 409 MovieClip Frame 2
wxculoarea2 = new Color(but2);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 409 MovieClip Frame 3
wxculoarea2 = new Color(but2);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 414 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 415 MovieClip Frame 1
stop();
Symbol 416 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/?mountainbike", "_blank");
}
Symbol 420 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 420 MovieClip Frame 2
wxculoarea2 = new Color(but3);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 420 MovieClip Frame 3
wxculoarea2 = new Color(but3);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 421 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 426 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 426 MovieClip Frame 2
wxculoarea2 = new Color(but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 426 MovieClip Frame 3
wxculoarea2 = new Color(but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 430 Button
on (release, keyPress "p") {
instructionsFunction();
}
Symbol 434 Button
on (release) {
FOG.AS2.FogServices.TrackClick("www.freegamesforyourwebsite.com");
}
Symbol 438 Button
on (release) {
FOG.AS2.FogServices.TrackClick();
}
Symbol 439 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 442 MovieClip Frame 1
stop();
Symbol 443 MovieClip Frame 1
function instructionsFunction() {
_parent.instructions._visible = true;
}
stop();
if ((wyasezare == "Orizontal") && (wyinstructions == false)) {
this.gotoAndStop(2);
}
if (((wyasezare == "Vertical") && (wyinstructions == true)) && (wypozitie == "Sus")) {
this.gotoAndStop(3);
}
if (((wyasezare == "Vertical") && (wyinstructions == true)) && (wypozitie == "Jos")) {
this.gotoAndStop(4);
}
if (((wyasezare == "Orizontal") && (wyinstructions == true)) && (wypozitie == "Sus")) {
this.gotoAndStop(5);
}
if (((wyasezare == "Orizontal") && (wyinstructions == true)) && (wypozitie == "Jos")) {
this.gotoAndStop(6);
}
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 443 MovieClip Frame 2
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 443 MovieClip Frame 3
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 443 MovieClip Frame 4
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 443 MovieClip Frame 5
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 443 MovieClip Frame 6
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 449 Button
on (release) {
_parent.instructions._visible = false;
}
Symbol 459 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=19&area=paused", "_blank");
}
Symbol 460 Button
on (release) {
_parent.mainMenuFunction();
}
Symbol 461 Button
on (release, keyPress "p") {
_parent.pauseFunction();
}
Symbol 462 Button
on (release, keyPress "s") {
_parent.soundFunction();
}
Symbol 471 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wxnume;
getURL (targetul3, "_blank");
}
Symbol 472 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wxnume;
getURL (targetul2, "_blank");
}
Symbol 473 MovieClip Frame 1
stop();
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
_parent.wxbutno = 6;
if (((_parent.wxdownload == false) && (_parent.wxpause == true)) && (_parent.wxsound == true)) {
this.gotoAndStop(2);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == false)) && (_parent.wxsound == true)) {
this.gotoAndStop(3);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == true)) && (_parent.wxsound == false)) {
this.gotoAndStop(4);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == false)) && (_parent.wxsound == true)) {
this.gotoAndStop(5);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == true)) && (_parent.wxsound == false)) {
this.gotoAndStop(6);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == false)) && (_parent.wxsound == false)) {
this.gotoAndStop(7);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == false)) && (_parent.wxsound == false)) {
this.gotoAndStop(8);
_parent.wxbutno = 3;
}
Symbol 473 MovieClip Frame 2
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 473 MovieClip Frame 3
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 473 MovieClip Frame 4
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 473 MovieClip Frame 5
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 473 MovieClip Frame 6
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 473 MovieClip Frame 7
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 473 MovieClip Frame 8
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 478 Button
on (press) {
_parent.play();
}
Symbol 482 MovieClip Frame 1
stop();
if (_parent.wxaliniere == "Dreapta-Jos") {
this.gotoAndStop(2);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 6)) {
this.gotoAndStop(3);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 5)) {
this.gotoAndStop(5);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 4)) {
this.gotoAndStop(6);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 3)) {
this.gotoAndStop(7);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 6)) {
this.gotoAndStop(4);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 5)) {
this.gotoAndStop(8);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 4)) {
this.gotoAndStop(9);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 3)) {
this.gotoAndStop(10);
}
Symbol 482 MovieClip Frame 2
tg._x = 147;
tg._y = 1.1;
Symbol 482 MovieClip Frame 3
tg._x = 147;
tg._y = -174.9;
Symbol 482 MovieClip Frame 4
tg._x = 1.5;
tg._y = -174.9;
Symbol 482 MovieClip Frame 5
tg._x = 147;
tg._y = -152.4;
Symbol 482 MovieClip Frame 6
tg._x = 147;
tg._y = -128.9;
Symbol 482 MovieClip Frame 7
tg._x = 147;
tg._y = -104.9;
Symbol 482 MovieClip Frame 8
tg._x = 1.5;
tg._y = -151.4;
Symbol 482 MovieClip Frame 9
tg._x = 1.5;
tg._y = -128.4;
Symbol 482 MovieClip Frame 10
tg._x = 1.5;
tg._y = -104.9;
Symbol 498 Button
on (release) {
FOG.AS2.FogServices.TrackClick("www.freegamesforyourwebsite.com");
}
Symbol 499 Button
on (release) {
FOG.AS2.FogServices.TrackClick();
}
Symbol 501 MovieClip Frame 1
function pauseFunction() {
gl_game_info.is_pause = !gl_game_info.is_pause;
if (gl_game_info.is_pause) {
_root.main_mc.messages_mc.gotoAndPlay("pause");
this.gotoAndStop("deschis");
} else {
_root.main_mc.messages_mc.gotoAndPlay("un_pause");
this.gotoAndStop("inchis");
}
}
function soundFunction() {
if (_root.sunet == true) {
_root.looop.stop();
_root.sunet = false;
} else {
_root.sunet = true;
_root.looop.start(0, 9999);
}
}
function mainMenuFunction() {
_root.main_mc.gotoAndStop("intro");
}
stop();
wxnguides._alpha = 0;
my_color = new Color(my_mc);
my_color.setRGB(wxculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wxnmenu.tg);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3 = new Color(wxnfer);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
Symbol 501 MovieClip Frame 10
stop();
Symbol 501 MovieClip Frame 20
gotoAndStop (1);
Symbol 507 Button
on (keyPress "<Space>") {
_root.main_mc.gotoAndPlay("replay");
}
Symbol 516 Button
on (keyPress "<Space>") {
_root.main_mc.gotoAndPlay("replay");
}
Symbol 517 Button
on (keyPress "<Space>") {
_root.main_mc.gotoAndStop("intro");
}
Symbol 519 Button
on (keyPress "<Space>") {
if (_root.lifesLeft > 0) {
_root.main_mc.gotoAndPlay("replay");
} else {
_root.main_mc.gotoAndStop("intro");
}
}
Symbol 520 MovieClip Frame 8
pause_mc.caption = "PAUSE";
next_btn.onRelease = function () {
_root.main_mc.gotoAndPlay("replay");
};
menu_btn.onRelease = function () {
_root.main_mc.gotoAndStop("intro");
};
text_1_mc.caption = "RESTART";
text_2_mc.caption = "MAIN MENU";
Symbol 520 MovieClip Frame 13
stop();
Symbol 520 MovieClip Frame 21
gotoAndStop ("empty");
Symbol 520 MovieClip Frame 23
_root.looop.stop();
_root.totalScore = _root.totalScore + _root.levelScore;
_root.levelScore = 0;
next_btn.onRelease = function () {
_root.main_mc.gotoAndPlay("replay");
};
menu_btn.onRelease = function () {
_root.main_mc.gotoAndStop("intro");
};
title_mc.caption = "LEVEL COMPLETED!";
text_1_mc.caption = "NEXT";
text_2_mc.caption = "MAIN MENU";
Symbol 520 MovieClip Frame 32
stop();
Symbol 520 MovieClip Frame 34
_root.looop.stop();
menu_btn.onRelease = function () {
_root.main_mc.gotoAndStop("intro");
};
title_mc.caption = "GAME COMPLETED!";
text_1_mc.caption = "";
text_2_mc.caption = "MAIN MENU";
Symbol 520 MovieClip Frame 43
stop();
Symbol 520 MovieClip Frame 45
_root.looop.stop();
next_btn.onRelease = function () {
if (_root.lifesLeft > 0) {
_root.main_mc.gotoAndPlay("replay");
} else {
_root.main_mc.gotoAndStop("intro");
}
};
if (_root.lifesLeft <= 0) {
title_mc.caption = "GAME OVER";
} else {
title_mc.caption = "ONE LIFE LOST";
}
text_1_mc.caption = "AGAIN";
text_2_mc.caption = "MAIN MENU";
Symbol 520 MovieClip Frame 55
stop();
Symbol 521 MovieClip Frame 9
stop();
Symbol 521 MovieClip Frame 10
stopAllSounds();
_root.lifesLeft = 3;
_root.totalScore = 0;
_global.gl_user_info.curr_level = 1;
start_btn.onRelease = function () {
gotoAndStop ("game");
};
Instance of Symbol 443 MovieClip in Symbol 521 MovieClip Frame 10
//component parameters
onClipEvent (construct) {
wynume = "MountainBike";
wyculoare = 13107;
wyasezare = "Vertical";
wyaliniere = "Stanga";
wypozitie = "Jos";
wyinstructions = true;
}
Instance of Symbol 452 MovieClip "instructions" in Symbol 521 MovieClip Frame 10
onClipEvent (load) {
this._visible = false;
}
Symbol 521 MovieClip Frame 14
stop();
Symbol 521 MovieClip Frame 17
_root.looop.start(0, 9999);
_root.startGame();
nextFrame();
_global.pBar = this.pBar;
_global.eBar = this.eBar;
Instance of Symbol 501 MovieClip "meniu" in Symbol 521 MovieClip Frame 17
//component parameters
onClipEvent (construct) {
wxnume = "MountainBike";
wxaliniere = "Dreapta-Jos";
wxculoare = 87083 /* 0x01542B */;
wxdownload = true;
wxpause = true;
wxsound = true;
}
Symbol 521 MovieClip Frame 18
_root.main_mc.main_cont_mc.level_mc.init();
trace("level: " + _global.gl_level);
Symbol 521 MovieClip Frame 27
trace("level: " + _global.gl_level);
stop();
Symbol 527 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 540 MovieClip Frame 1
stop();
Symbol 540 MovieClip Frame 2
stop();
Symbol 551 Button
on (press) {
sboard.dir = "up";
}
on (release) {
sboard.dir = "stop";
}
Symbol 552 Button
on (press) {
sboard.dir = "down";
}
on (release) {
sboard.dir = "stop";
}
Symbol 560 MovieClip Frame 1
scroll1.setScrollProperties(130, 0, 220);
this.chHand1 = function () {
scoresScroll._y = -(scroll1.getScrollPosition() * 2);
};
scroll1.setChangeHandler("chHand1");
i = 1;
while (i <= 30) {
scoresScroll["n" + i].text = _root.monthnume[i];
scoresScroll["s" + i].text = _root.monthscor[i];
i++;
}
Symbol 567 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 872 MovieClip Frame 1
scroll1.setScrollProperties(130, 0, 915);
this.chHand1 = function () {
scoresScroll._y = -(scroll1.getScrollPosition() * 2);
};
scroll1.setChangeHandler("chHand1");
q = 1;
while (q <= 100) {
scoresScroll["n" + q].text = _root.evernume[q];
scoresScroll["s" + q].text = _root.everscor[q];
q++;
}
Instance of Symbol 381 MovieClip [FScrollBarSymbol] "scroll1" in Symbol 872 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
horizontal = false;
}
Symbol 888 Button
on (release) {
i = 1;
while (i <= 100) {
if (_root.best > _root.monthscor[i]) {
k = 100;
while (k >= (i + 1)) {
_root.monthscor[k] = _root.monthscor[k - 1];
_root.monthnume[k] = _root.monthnume[k - 1];
k--;
}
_root.monthscor[i] = _root.best;
_root.monthnume[i] = _root.nickname;
i = 31;
}
i++;
}
i = 1;
while (i <= 100) {
if (_root.best > _root.everscor[i]) {
k = 100;
while (k >= (i + 1)) {
_root.everscor[k] = _root.everscor[k - 1];
_root.evernume[k] = _root.evernume[k - 1];
k--;
}
_root.everscor[i] = _root.best;
_root.evernume[i] = _root.nickname;
i = 31;
}
i++;
}
gotoAndPlay ("submit");
}
Symbol 894 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 898 MovieClip Frame 1
stop();
Symbol 898 MovieClip Frame 9
stop();
Symbol 898 MovieClip Frame 22
stop();
Symbol 898 MovieClip Frame 34
var my_date = new Date();
codul = Math.round(my_date.getTime() / 1000) * _root.best;
cale = (((((("http://www.freeonlinegames.com/scoreboard/update.php?game=" + _root.gameid) + "&name=") + _root.nickname) + "&score=") + _root.best) + "&code=") + codul;
loadVariablesNum (cale, 0, "GET");
gotoAndPlay ("loop");
Symbol 898 MovieClip Frame 45
if (_root.updated != 1) {
gotoAndPlay ("loop");
} else {
_root.best = 0;
_root.score = 0;
_root.xdada = 1;
_root.gotoAndPlay("submitScore");
}