Frame 1
fscommand (allowscale, false);
_root.creditsLoaded = false;
play();
function __com_mochibot__(swfid, mc, lv) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = ((((((((((("http://" + mbc) + "/my/core.swf?mv=5&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("200b0e9a", this, 10301);
Frame 6
function onPreloaderOut() {
preloader_mc.removeEventListener("onPreloaderOut", this);
gotoAndStop ("intro_loaded");
}
preloader_mc.addEventListener("onPreloaderOut", this);
preloader_mc.startPreload(this);
stop();
Frame 11
stop();
this.cork_sound = new Sound(this);
this.cork_sound.attachSound("cork");
this.missed_sound = new Sound(this);
this.missed_sound.attachSound("missed");
this.gliss_sound = new Sound(this);
this.gliss_sound.attachSound("gliss");
this.melody_sound = new Sound(melody_mc);
melody_sound.attachSound("melody");
this.falldrum_sound = new Sound(falldrum_mc);
falldrum_sound.attachSound("falldrum");
this.winterdrum_sound = new Sound(winterdrum_mc);
winterdrum_sound.attachSound("winterdrum");
this.melody_sound.stop();
this.falldrum_sound.stop();
this.winterdrum_sound.stop();
Frame 33
function onPreloaderOut() {
preloader_mc.removeEventListener("onPreloaderOut", this);
incoming_mc._alpha = 100;
_root.creditsLoaded = true;
gotoAndStop ("creditsLoaded");
}
var incoming_mc = this.creditsHolder_mc;
incoming_mc._alpha = 0;
var thePath = "swf/credits.swf";
incoming_mc.loadMovie(thePath);
preloader_mc.addEventListener("onPreloaderOut", this);
preloader_mc.startPreload(incoming_mc);
stop();
Frame 41
this.creditsLoaded = true;
stop();
Frame 64
stop();
Frame 77
this.gotoAndPlay("game");
Frame 86
this.melody_sound.start(0, 999);
this.falldrum_sound.start(0, 999);
this.winterdrum_sound.start(0, 999);
this.melody_sound.setVolume(100);
this.falldrum_sound.setVolume(100);
this.winterdrum_sound.setVolume(0);
Frame 98
stop();
Frame 106
stop();
Frame 120
if (_root.nextSection == "scores") {
_root.getURL("/scores");
} else {
this.gotoAndPlay(_root.nextSection);
}
Symbol 3 MovieClip [cloud_mc] Frame 1
this.cacheAsBitmap = true;
var scene = _root.gameHolder_mc.scene_mc;
var randomX = (Math.round(Math.random() * 200) + 600);
var randomY = (Math.round(Math.random() * -1450) + 0);
var randomSpeed = (Math.round(Math.random() * 0.5) + 0.25);
this._y = randomY;
this.onEnterFrame = function () {
if ((this._x > -200) && (!scene.paused)) {
this._x = this._x - (this._parent._parent.squirrel_mc.hSpeed * randomSpeed);
if ((this._x < randomX) && (cloudCreated == 0)) {
var _local2 = this._parent.createCloud();
this.cloudCreated = 1;
}
} else if (!scene.paused) {
this.removeMovieClip();
delete this.onEnterFrame;
}
};
Symbol 10 MovieClip [bush_mc] Frame 1
this.cacheAsBitmap = true;
var scene = _root.gameHolder_mc.scene_mc;
var randomX = (Math.round(Math.random() * 400) + 350);
var range = Math.ceil(this._parent._parent._parent.eTime / 10000);
var randomT = (Math.floor(Math.random() * 4) + range);
this.gotoAndStop(randomT);
this.onEnterFrame = function () {
if ((this._x > -200) && (!scene.paused)) {
this._x = this._x - (this._parent._parent.squirrel_mc.hSpeed * 0.45);
if ((this._x < randomX) && (bushCreated == 0)) {
var _local2 = this._parent.createBush();
this.bushCreated = 1;
}
} else if (!scene.paused) {
this.removeMovieClip();
delete this.onEnterFrame;
}
};
stop();
Symbol 10 MovieClip [bush_mc] Frame 2
stop();
Symbol 10 MovieClip [bush_mc] Frame 3
stop();
Symbol 10 MovieClip [bush_mc] Frame 4
stop();
Symbol 10 MovieClip [bush_mc] Frame 5
stop();
Symbol 10 MovieClip [bush_mc] Frame 6
stop();
Symbol 10 MovieClip [bush_mc] Frame 7
stop();
Symbol 10 MovieClip [bush_mc] Frame 8
stop();
Symbol 10 MovieClip [bush_mc] Frame 9
stop();
Symbol 10 MovieClip [bush_mc] Frame 10
stop();
Symbol 10 MovieClip [bush_mc] Frame 11
stop();
Symbol 10 MovieClip [bush_mc] Frame 12
stop();
Symbol 10 MovieClip [bush_mc] Frame 13
stop();
Symbol 10 MovieClip [bush_mc] Frame 14
stop();
Symbol 10 MovieClip [bush_mc] Frame 15
stop();
Symbol 10 MovieClip [bush_mc] Frame 16
stop();
Symbol 10 MovieClip [bush_mc] Frame 17
stop();
Symbol 10 MovieClip [bush_mc] Frame 18
stop();
Symbol 10 MovieClip [bush_mc] Frame 19
stop();
Symbol 10 MovieClip [bush_mc] Frame 20
stop();
Symbol 10 MovieClip [bush_mc] Frame 21
stop();
Symbol 10 MovieClip [bush_mc] Frame 22
stop();
Symbol 10 MovieClip [bush_mc] Frame 23
stop();
Symbol 10 MovieClip [bush_mc] Frame 24
stop();
Symbol 15 MovieClip Frame 1
this.go_btn.onRelease = function () {
_root.getURL("http://www.fusionary.com");
};
Symbol 293 MovieClip [__Packages.Preloader] Frame 0
class Preloader extends MovieClip
{
var target_mc, gotoAndPlay, stop, onEnterFrame, progress_mc, pct_str, dispatchEvent;
function Preloader () {
super();
mx.events.EventDispatcher.initialize(this);
}
function startPreload(t) {
target_mc = t;
gotoAndPlay("IN");
}
function onAnimateIn() {
stop();
onEnterFrame = checkLoadProgress;
}
function checkLoadProgress() {
var _local5 = target_mc.getBytesLoaded();
var _local4 = target_mc.getBytesTotal();
var _local6 = _local5 / _local4;
var _local3 = progress_mc._currentframe;
var _local2 = progress_mc._totalframes;
var _local7 = Math.ceil(_local2 * _local6);
if (_local7 > _local3) {
progress_mc.play();
} else {
progress_mc.stop();
}
pct_str = Math.round((_local3 / _local2) * 100).toString();
if ((((_local4 > 20) && (_local5 == _local4)) && (_local3 == _local2)) && (progress_mc)) {
onPreloadComplete();
}
}
function onPreloadComplete() {
onEnterFrame = null;
gotoAndPlay("OUT");
}
function onAnimateOut() {
stop();
dispatchEvent({target:this, type:"onPreloaderOut"});
}
}
Symbol 294 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 295 MovieClip [__Packages.FlyingSquirrel] Frame 0
class FlyingSquirrel extends MovieClip
{
var mouseX, gotoAndStop, _rotation, _y, _parent, _x;
function FlyingSquirrel () {
super();
mouseX = _root._xmouse;
}
function onEnterFrame() {
if (paused) {
gotoAndStop(1);
_rotation = 3;
hSpeed = 20;
if (_y < -120) {
_parent.gotoAndStop("start");
}
} else {
trackMouse();
}
if (_rotation < 20) {
flyUp();
} else if (_rotation > 20) {
flyDown();
} else {
flyLevel();
}
var _local2 = _y + ySpeed;
if (_local2 > 333) {
_y = 333;
_rotation = 3;
gotoAndStop("crash");
onEnterFrame = function () {
if (this.hSpeed > 0) {
this.hSpeed = this.hSpeed - 1;
} else {
this.hSpeed = 0;
}
};
} else {
_y = _local2;
}
var _local3 = 45 + ((hSpeed / maxHSpeed) * 250);
var _local4 = _x - _local3;
_x = _x - (_local4 / 10);
}
function trackMouse() {
var _local4 = Stage.width / 2;
var _local9 = Stage.height / 2;
var _local3 = (_root._xmouse - _local4) / (_local4 / 3);
var _local6 = Math.abs(_local3);
if (_local6 >= 1) {
if (_local3 > 0) {
_local3 = 1;
} else {
_local3 = -1;
}
}
if (_local6 <= 0.05) {
_local3 = 0;
}
var _local8 = 20;
var _local7 = 18;
_rotation = (_local8 * _local3) + 20;
var _local5 = Math.round(_local7 * _local3);
if (_local5 > 0) {
gotoAndStop(_local5);
} else {
gotoAndStop(1);
}
}
function flyUp() {
var _local4 = calculateLift();
var _local2;
if (hSpeed > 22) {
_local2 = (ySpeed + gravity) + (_local4 / 80);
} else {
_local2 = (ySpeed + gravity) + (_local4 / 120);
}
if (_local2 < maxYSpeed) {
ySpeed = _local2;
} else {
ySpeed = maxYSpeed;
}
var _local3 = hSpeed + ((_rotation - 20) / airBrake);
if (_local3 > 0) {
hSpeed = _local3;
} else {
hSpeed = 0;
}
}
function flyDown() {
var _local2 = calculateLift();
ySpeed = ySpeed + (gravity + (_local2 / 85));
if (hSpeed < maxHSpeed) {
hSpeed = hSpeed + (((_local2 / 40) + 0.05) + Math.abs(_rotation / 95));
}
}
function flyLevel() {
if (hSpeed < maxHSpeed) {
hSpeed = hSpeed + glide;
}
ySpeed = ySpeed + (gravity / 1.5);
}
function calculateLift() {
var _local4;
var _local2;
var _local5 = calcAirDensity();
var _local3 = 0.75;
var _local6 = getLiftAngle();
_local4 = (Math.PI*2) * _local6;
_local2 = (((0.5 * _local5) * Math.pow(hSpeed, 2)) * _local3) * _local4;
if (_parent._parent.energyLevel < 1) {
_local2 = _local2 / 2;
}
return(_local2);
}
function getLiftAngle() {
var _local2 = (_rotation - 20) / 4;
_local2 = (_local2 * Math.PI) / 180;
return(_local2);
}
function calcAirDensity() {
if (_y < -500) {
var _local2 = 0.75 - Math.abs(_y / 2000);
return(_local2);
}
return(0.75);
}
var hSpeed = 25;
var ySpeed = -10;
var gravity = 0.5;
var glide = 0.2;
var maxHSpeed = 30;
var maxYSpeed = 5;
var airBrake = 40;
var paused = true;
}
Symbol 40 MovieClip [preloader2_mc] Frame 1
#initclip 4
Object.registerClass("preloader2_mc", Preloader);
#endinitclip
stop();
Symbol 40 MovieClip [preloader2_mc] Frame 3
onAnimateIn();
Symbol 40 MovieClip [preloader2_mc] Frame 6
onAnimateOut();
Symbol 67 MovieClip Frame 1
stop();
this.play_btn.onRelease = function () {
_root.gotoAndPlay("game");
};
this.how_btn.onRelease = function () {
_root.gotoAndPlay("instructions");
};
this.view_btn.onRelease = function () {
_root.getURL("/scores");
};
this.credits_btn.onRelease = function () {
trace(_root.creditsLoaded);
if (_root.creditsLoaded) {
_root.gotoAndStop("creditsLoaded");
} else {
_root.gotoAndPlay("credits");
}
};
Symbol 76 MovieClip [preloader_mc] Frame 1
#initclip 5
Object.registerClass("preloader_mc", Preloader);
#endinitclip
stop();
Symbol 76 MovieClip [preloader_mc] Frame 11
onAnimateIn();
Symbol 76 MovieClip [preloader_mc] Frame 24
onAnimateOut();
Symbol 99 MovieClip Frame 7
stop();
Symbol 127 MovieClip Frame 8
Symbol 166 MovieClip Frame 1
this.go_btn.onRelease = function () {
_root.play();
};
Symbol 171 MovieClip Frame 1
this.cacheAsBitmap = true;
this.onEnterFrame = function () {
var _local2 = Math.ceil(this._parent.eTime / 1100);
var _local3 = _local2;
this.gotoAndStop(_local3);
};
stop();
Symbol 171 MovieClip Frame 57
Symbol 171 MovieClip Frame 200
stop();
Symbol 172 MovieClip Frame 1
this.createCloud = function () {
var _local3 = this.getNextHighestDepth();
var _local2 = this.attachMovie("cloud_mc", "cloud" + _local3, _local3);
_local2._x = 855;
_local2.cloudCreated = 0;
};
this.createCloud();
stop();
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 30
stop();
Symbol 179 MovieClip [star_mc] Frame 1
this.burst_mc._visible = false;
stop();
this.beenHit = false;
this.passed = false;
var squirrel_mc = this._parent._parent.squirrel_mc;
var gameHolder_mc = this._parent._parent._parent;
var scene = gameHolder_mc.scene_mc;
var randomX = 400;
this.onEnterFrame = function () {
if ((this._x > -200) && (!scene.paused)) {
this._x = this._x - (this._parent._parent.squirrel_mc.hSpeed * 0.225);
if (((this._x < (squirrel_mc._x - 30)) && (this.beenHit == false)) && (this.passed == false)) {
this.passed = true;
}
if ((this._x < randomX) && (starCreated == 0)) {
var _local4 = this._parent.createStar();
this.starCreated = 1;
}
} else if (!scene.paused) {
this.removeMovieClip();
delete this.onEnterFrame;
}
if (this.myStar.hitTest(squirrel_mc) && (this.beenHit == false)) {
_root.gliss_sound.start();
if (this._currentframe > 1) {
var _local3 = Number(gameHolder_mc.score_txt.text) + 5000;
} else {
var _local3 = Number(gameHolder_mc.score_txt.text) + 2000;
}
gameHolder_mc.score_txt.text = _local3;
this.beenHit = true;
this.myStar._visible = false;
this.burst_mc.play();
this.burst_mc._visible = true;
}
};
Symbol 179 MovieClip [star_mc] Frame 2
this.burst_mc._visible = false;
stop();
Symbol 180 MovieClip Frame 1
this.startStar.starCreated = 1;
this.bigStar = true;
this.createStar = function () {
this.bigStar = !this.bigStar;
var _local3 = this.getNextHighestDepth();
var _local2 = this.attachMovie("star_mc", "star" + _local3, _local3);
if (this.bigStar) {
_local2._x = 725;
_local2._y = -800;
_local2.starCreated = 0;
_local2.gotoAndStop(2);
} else {
_local2._x = 725;
_local2._y = -400;
_local2.starCreated = 0;
}
};
this.createStar();
stop();
Symbol 182 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
var _local2 = Math.ceil(this._parent._parent._parent._parent.eTime / 1575);
var _local3 = _local2;
this.gotoAndStop(_local3);
};
Symbol 182 MovieClip Frame 128
stop();
Symbol 183 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
var _local2 = Math.ceil(this._parent._parent._parent._parent.eTime / 1575);
var _local3 = _local2;
this.gotoAndStop(_local3);
};
Symbol 183 MovieClip Frame 40
Symbol 183 MovieClip Frame 80
Symbol 183 MovieClip Frame 127
stop();
Symbol 184 MovieClip [hill_mc] Frame 1
this.cacheAsBitmap = true;
var scene = _root.gameHolder_mc.scene_mc;
var hideMe = Math.random();
if (hideMe >= 0.5) {
this.dHill_mc._visible = false;
} else {
this.lHill_mc._visible = false;
}
var randomY = (Math.round(Math.random() * 200) + 343);
var randomX = (Math.round(Math.random() * 400) + 200);
if (randomX > 450) {
randomX = 750;
}
this._y = randomY;
this.onEnterFrame = function () {
if ((this._x > -200) && (!scene.paused)) {
this._x = this._x - (this._parent._parent.squirrel_mc.hSpeed * 0.1875);
if ((this._x < randomX) && (hillCreated == 0)) {
var _local2 = this._parent.createHill();
this.hillCreated = 1;
}
} else if (!scene.paused) {
this.removeMovieClip();
delete this.onEnterFrame;
}
};
stop();
Symbol 185 MovieClip Frame 1
this.startHill01_mc.hillCreated = 1;
this.startHill02_mc.hillCreated = 1;
this.createHill = function () {
var _local3 = this.getNextHighestDepth();
var _local2 = this.attachMovie("hill_mc", "hill" + _local3, _local3);
_local2._x = 850;
_local2.hillCreated = 0;
};
this.createHill();
stop();
Symbol 189 MovieClip [mound_mc] Frame 1
this.cacheAsBitmap = true;
var scene = _root.gameHolder_mc.scene_mc;
var randomX = (Math.round(Math.random() * 400) + 300);
var range = Math.ceil(this._parent._parent._parent.eTime / 1000);
var randomT = range;
this.gotoAndStop(randomT);
this.onEnterFrame = function () {
if ((this._x > -800) && (!scene.paused)) {
this._x = this._x - (this._parent._parent.squirrel_mc.hSpeed * 0.20625);
if ((this._x < randomX) && (moundCreated == 0)) {
var _local2 = this._parent.createMound();
this.moundCreated = 1;
}
} else if (!scene.paused) {
this.removeMovieClip();
delete this.onEnterFrame;
}
};
stop();
Symbol 190 MovieClip Frame 1
this.startMound_mc.moundCreated = 1;
this.startMound01_mc.moundCreated = 1;
this.createMound = function () {
var _local3 = this.getNextHighestDepth();
var _local2 = this.attachMovie("mound_mc", "mound" + _local3, _local3);
_local2.moundCreated = 0;
_local2._x = 850;
_local2._y = 363;
};
this.createMound();
stop();
Symbol 191 MovieClip [mound2_mc] Frame 1
this.cacheAsBitmap = true;
var scene = _root.gameHolder_mc.scene_mc;
var randomX = (Math.round(Math.random() * 400) + 300);
var range = Math.ceil(this._parent._parent._parent.eTime / 1000);
var randomT = range;
this.gotoAndStop(randomT);
this.onEnterFrame = function () {
if ((this._x > -800) && (!scene.paused)) {
this._x = this._x - (this._parent._parent.squirrel_mc.hSpeed * 0.225);
if ((this._x < randomX) && (moundCreated == 0)) {
var _local2 = this._parent.createMound();
this.moundCreated = 1;
}
} else if (!scene.paused) {
this.removeMovieClip();
delete this.onEnterFrame;
}
};
stop();
Symbol 192 MovieClip Frame 1
this.startMound_mc.moundCreated = 1;
this.startMound01_mc.moundCreated = 1;
this.createMound = function () {
var _local3 = this.getNextHighestDepth();
var _local2 = this.attachMovie("mound2_mc", "mound2" + _local3, _local3);
_local2._x = 850;
_local2._y = 363;
_local2.moundCreated = 0;
};
this.createMound();
stop();
Symbol 215 MovieClip [tree_mc] Frame 1
this.rLeaves = function () {
var _local2 = Math.round(Math.random() * 25) + 45;
var _local3 = Math.round(Math.random() * 20);
this.tree_mc.leaves_mc._xscale = _local2;
this.tree_mc.leaves_mc._yscale = _local2;
this.tree_mc.leaves_mc._rotation = _local3;
};
this.cacheAsBitmap = true;
var scene = _root.gameHolder_mc.scene_mc;
var randomX = (Math.round(Math.random() * 300) + 400);
if (randomX > 650) {
Math.round(Math.random() * 100) + 725;
}
var range = Math.ceil(this._parent._parent._parent.eTime / 10000);
var randomT = (Math.floor(Math.random() * 4) + range);
this.gotoAndStop(randomT);
this.onEnterFrame = function () {
if ((this._x > -200) && (!scene.paused)) {
this._x = this._x - (this._parent._parent.squirrel_mc.hSpeed * 0.3);
if ((this._x < randomX) && (treeCreated == 0)) {
var _local2 = this._parent.createTree();
this.treeCreated = 1;
}
} else if (!scene.paused) {
this.removeMovieClip();
delete this.onEnterFrame;
}
};
stop();
Symbol 215 MovieClip [tree_mc] Frame 2
this.rLeaves();
stop();
Symbol 215 MovieClip [tree_mc] Frame 3
this.rLeaves();
stop();
Symbol 215 MovieClip [tree_mc] Frame 4
this.rLeaves();
stop();
Symbol 215 MovieClip [tree_mc] Frame 5
this.rLeaves();
stop();
Symbol 215 MovieClip [tree_mc] Frame 6
this.rLeaves();
stop();
Symbol 215 MovieClip [tree_mc] Frame 7
this.rLeaves();
stop();
Symbol 215 MovieClip [tree_mc] Frame 8
this.rLeaves();
stop();
Symbol 215 MovieClip [tree_mc] Frame 9
this.rLeaves();
stop();
Symbol 215 MovieClip [tree_mc] Frame 10
this.rLeaves();
stop();
Symbol 215 MovieClip [tree_mc] Frame 11
this.rLeaves();
stop();
Symbol 215 MovieClip [tree_mc] Frame 12
this.rLeaves();
stop();
Symbol 215 MovieClip [tree_mc] Frame 13
this.rLeaves();
stop();
Symbol 215 MovieClip [tree_mc] Frame 14
this.rLeaves();
stop();
Symbol 215 MovieClip [tree_mc] Frame 15
this.rLeaves();
stop();
Symbol 215 MovieClip [tree_mc] Frame 16
this.rLeaves();
stop();
Symbol 215 MovieClip [tree_mc] Frame 17
this.rLeaves();
stop();
Symbol 215 MovieClip [tree_mc] Frame 18
this.rLeaves();
stop();
Symbol 215 MovieClip [tree_mc] Frame 19
stop();
Symbol 215 MovieClip [tree_mc] Frame 20
stop();
Symbol 215 MovieClip [tree_mc] Frame 21
stop();
Symbol 215 MovieClip [tree_mc] Frame 22
stop();
Symbol 215 MovieClip [tree_mc] Frame 23
stop();
Symbol 215 MovieClip [tree_mc] Frame 24
stop();
Symbol 216 MovieClip Frame 1
this.startTree01_mc.treeCreated = 1;
this.startTree02_mc.treeCreated = 1;
this.createTree = function () {
var _local3 = this.getNextHighestDepth();
var _local2 = this.attachMovie("tree_mc", "tree" + _local3, _local3);
_local2._x = 850;
_local2._y = 337;
_local2._xscale = 90;
_local2._yscale = 90;
_local2.treeCreated = 0;
};
this.createTree();
stop();
Symbol 218 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 30
stop();
Symbol 222 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 5
stop();
Symbol 224 MovieClip [acorn_mc] Frame 1
this.burst_mc._visible = false;
stop();
this.acornCreated = 0;
this.beenHit = false;
this.passed = false;
var squirrel_mc = this._parent._parent.squirrel_mc;
var gameHolder_mc = this._parent._parent._parent;
var scene = _root.gameHolder_mc.scene_mc;
var aFall = Math.round(this._parent._parent._parent.eTime / 1000);
var updown = (Math.random() * 1);
if (updown > 0.5) {
updown = 1;
} else {
updown = -1;
}
var randomY = (75 + aFall);
randomY = randomY + (Math.round((Math.random() * 20) + (aFall / 4)) * updown);
if (isNaN(randomY)) {
randomY = 61;
}
if ((randomY < 60) || (randomY >= 300)) {
if (randomY < 60) {
randomY = 60;
} else {
randomY = 300;
}
}
this._y = randomY;
this.onEnterFrame = function () {
_root.winterdrum_sound.setVolume;
if ((this._x > -200) && (!scene.paused)) {
this._x = this._x - (this._parent._parent.squirrel_mc.hSpeed * 0.375);
if (((this._x < (squirrel_mc._x - 60)) && (this.beenHit == false)) && (this.passed == false)) {
this.passed = true;
if (gameHolder_mc.bonusMultiplier > 1) {
_root.missed_sound.start();
}
gameHolder_mc.bonusMultiplier = 0;
}
} else {
this._parent.numAcorns--;
this.removeMovieClip();
delete this.onEnterFrame;
}
if (this.myAcorn.hitTest(squirrel_mc) && (this.beenHit == false)) {
_root.cork_sound.start();
gameHolder_mc.bonusMultiplier++;
this.comboTxt_mc.cTxt_mc.points_txt.text = "x " + gameHolder_mc.bonusMultiplier;
this.comboTxt_mc.play();
if (this.gold) {
gameHolder_mc.energyLevel = gameHolder_mc.energyLevel + (5 * gameHolder_mc.bonusMultiplier);
var _local5 = 50 * gameHolder_mc.bonusMultiplier;
var _local4 = Number(gameHolder_mc.score_txt.text) + _local5;
} else {
gameHolder_mc.energyLevel = gameHolder_mc.energyLevel + (2 * gameHolder_mc.bonusMultiplier);
var _local5 = 10 * gameHolder_mc.bonusMultiplier;
var _local4 = Number(gameHolder_mc.score_txt.text) + _local5;
}
gameHolder_mc.score_txt.text = _local4;
if (gameHolder_mc.energyLevel > 100) {
gameHolder_mc.energyLevel = 100;
}
var _local3 = 250 - Math.round(250 * (gameHolder_mc.energyLevel / 100));
gameHolder_mc.energyMeter_mc.gotoAndStop(_local3);
this.beenHit = true;
this.myAcorn._visible = false;
this.burst_mc.play();
this.burst_mc._visible = true;
}
};
Symbol 224 MovieClip [acorn_mc] Frame 2
this.burst_mc._visible = false;
stop();
Symbol 225 MovieClip Frame 1
this.numAcorns = 0;
this.createAcorn = function () {
if (this.numAcorns < 5) {
clearInterval(this.aInt);
var _local3 = this.getNextHighestDepth();
var _local5 = Math.random() * 100;
var _local2 = this.attachMovie("acorn_mc", "acorn" + _local3, _local3);
this.numAcorns++;
if (_local5 < 87) {
_local2.gold = false;
} else {
_local2.gotoAndStop(2);
_local2.gold = true;
}
_local2._x = 725;
if (this._parent._parent.eTime) {
var _local4 = 600 + (this._parent._parent.eTime / 75);
} else {
var _local4 = 600;
}
this.aInt = setInterval(this, "createAcorn", _local4);
}
};
this.createAcorn();
stop();
Symbol 234 MovieClip Frame 4
Symbol 252 MovieClip Frame 3
this.onEnterFrame = function () {
if (this._parent.hSpeed < 6) {
this.gotoAndStop("sit");
delete this.onEnterFrame;
}
};
stop();
Symbol 252 MovieClip Frame 7
stop();
Symbol 253 MovieClip [squirrel_mc] Frame 1
#initclip 6
Object.registerClass("squirrel_mc", FlyingSquirrel);
#endinitclip
stop();
Symbol 253 MovieClip [squirrel_mc] Frame 31
this._parent._parent.gameOver();
stop();
Symbol 255 MovieClip Frame 1
this.cacheAsBitmap = true;
this.onEnterFrame = function () {
var _local2 = Math.ceil(this._parent._parent.eTime / 1000);
var _local3 = _local2;
this.gotoAndStop(_local3);
};
stop();
Symbol 255 MovieClip Frame 185
stop();
Symbol 256 MovieClip Frame 2
this.startBush01_mc.bushCreated = 1;
this.startBush02_mc.bushCreated = 1;
this.startBush03_mc.bushCreated = 1;
this.createBush = function () {
var _local3 = this.getNextHighestDepth();
var _local2 = this.attachMovie("bush_mc", "bush" + _local3, _local3);
_local2._x = 850;
_local2._y = 328;
_local2.bushCreated = 0;
};
this.createBush();
stop();
Symbol 257 MovieClip Frame 1
this.paused = true;
stop();
Symbol 257 MovieClip Frame 5
this.paused = false;
this.squirrel_mc.paused = false;
this._parent.init();
stop();
Symbol 259 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 250
stop();
Symbol 262 MovieClip Frame 1
this.init = function () {
this.bonusMultiplier = 0;
this.energyLevel = 100;
this.startTime = getTimer();
this.gameover = false;
};
this.onEnterFrame = function () {
var _local3 = 100;
var _local4 = this.scene_mc.squirrel_mc._y;
this.eTime = (getTimer() - this.startTime) * 2;
this.time_txt.text = Math.round(eTime / 1000);
if (((Math.round(eTime / 1000) > 120) && (_root.falldrum_sound.getVolume() > 0)) && (!this.gameover)) {
_root.falldrum_sound.setVolume(_root.falldrum_sound.getVolume() - 1);
_root.winterdrum_sound.setVolume(_root.winterdrum_sound.getVolume() + 2);
}
if (_local4 < _local3) {
this.scene_mc._y = (groundLevel + _local3) - _local4;
} else {
this.scene_mc._y = groundLevel;
}
};
this.drainEnergy = function () {
if (this.energyLevel > 0) {
this.energyLevel = this.energyLevel - 0.25;
}
var _local2 = 250 - Math.round(250 * (this.energyLevel / 100));
this.energyMeter_mc.gotoAndStop(_local2);
};
this.dInt = setInterval(this, "drainEnergy", 50);
this.gameOver = function () {
clearInterval(this.dInt);
delete this.onEnterFrame;
this._parent.melody_sound.stop();
this._parent.falldrum_sound.stop();
this._parent.winterdrum_sound.stop();
this.gameover = true;
this._parent.finalScore = score_txt.text;
this.eg = setInterval(this, "endGame", 3000);
};
this.endGame = function () {
clearInterval(this.eg);
_root.gotoAndStop("gameover");
};
Symbol 262 MovieClip Frame 2
var groundLevel = this.scene_mc._y;
this.init();
stop();
Symbol 292 MovieClip Frame 1
if ((_root.gameHolder_mc.eTime / 1000) > 15) {
this.gotoAndStop("submit");
}
stop();
this.submitScore = function () {
var _local4 = new LoadVars();
var _local3 = new LoadVars();
_local3["score[game_id]"] = "1";
_local3["score[player]"] = this.name_txt.text;
_local3["score[score]"] = _root.gameHolder_mc.score_txt.text;
_local3.sendAndLoad("/scores/create", _local4, "POST");
_local4.onLoad = function (success) {
if (success) {
}
};
return(true);
};
this.play_btn.onRelease = function () {
_root.nextSection = "game";
_root.play();
};
this.menu_btn.onRelease = function () {
_root.nextSection = "intro_loaded";
_root.play();
};
Symbol 292 MovieClip Frame 8
this.finalScore_txt.text = _root.gameHolder_mc.score_txt.text;
stop();
var myMC = this;
this.ok_btn.onRelease = function () {
this._parent.gotoAndStop("continue");
};
this.skip_btn.onRelease = function () {
this._parent.gotoAndStop("continue");
};
Symbol 292 MovieClip Frame 16
this.submitScore();
play();
Symbol 292 MovieClip Frame 24
this.play_btn.onRelease = function () {
_root.nextSection = "game";
_root.play();
};
this.menu_btn.onRelease = function () {
_root.nextSection = "intro_loaded";
_root.play();
};
stop();