[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 1 (3.57 KiB) ●
function noFunction() {
}
function getHallpass() {
getURL ("http://www.hallpass.com/", "_blank");
}
function getShirkDeio() {
getURL ("http://shirkdeio.newgrounds.com/", "_blank");
}
function getNewgrounds() {
getURL ("http://www.newgrounds.com/refer/shirkdeio");
}
function contactShirkDeio() {
getURL ("mailto:shirk.deio@yahoo.com", "_blank");
}
function transition(nextScreen) {
removeMovieClip(t);
attachMovie("transition", "t", this.getNextHighestDepth());
t.onEnterFrame = function () {
if (this._currentframe == (this._totalframes / 2)) {
delete menu_mc.onRollOver;
delete menu_mc.onRollOut;
delete menu_mc.onDragOut;
delete menu_mc.onRelease;
delete sound_mc.onRollOver;
delete sound_mc.onRollOut;
delete sound_mc.onDragOut;
delete sound_mc.onRelease;
delete music_mc.onRollOver;
delete music_mc.onRollOut;
delete music_mc.onDragOut;
delete music_mc.onRelease;
delete pause_mc.onRollOver;
delete pause_mc.onRollOut;
delete pause_mc.onDragOut;
delete pause_mc.onRelease;
_root.gotoAndStop(nextScreen);
}
if (this._currentframe == this._totalframes) {
removeMovieClip(this);
}
};
}
function showGameover(nextScreen) {
attachMovie("gameover", "g", this.getNextHighestDepth());
g.onEnterFrame = function () {
g.stuff.points_txt.text = "Points: " + points;
g.stuff.onRelease = function () {
this._parent.play();
transition(nextScreen);
};
if (this._currentframe == this._totalframes) {
removeMovieClip(this);
}
};
}
function showLevelcomplete(nextScreen) {
attachMovie("levelcomplete", "l", this.getNextHighestDepth());
l.onEnterFrame = function () {
this.stuff.onRelease = function () {
if (time <= 0) {
this._parent.play();
transition(nextScreen);
}
};
if (this._currentframe == this._totalframes) {
removeMovieClip(this);
}
};
}
function lightup(object) {
var _local1 = new Color(object);
object = {ra:100, rb:50, ga:100, gb:50, ba:100, bb:50, aa:100, ab:0};
_local1.setTransform(object);
}
function dim(object) {
var _local1 = new Color(object);
object = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
_local1.setTransform(object);
}
function darken(object) {
var _local1 = new Color(object);
object = {ra:100, rb:-230, ga:100, gb:-230, ba:100, bb:-230, aa:100, ab:0};
_local1.setTransform(object);
}
stop();
var contextMenu = new ContextMenu();
contextMenu.hideBuiltInItems();
var cmi1 = new ContextMenuItem("Copyright 2007 Luke Godfrey (ShirkDeio)", noFunction);
var cmi2 = new ContextMenuItem("All Rights Reserved", noFunction);
var cmi3 = new ContextMenuItem("Contact ShirkDeio", contactShirkDeio);
cmi3.separatorBefore = true;
var cmi4 = new ContextMenuItem("Visit ShirkDeio's Newgrounds Page", getShirkDeio);
var cmi5 = new ContextMenuItem("Play More Games", getHallpass);
cmi5.separatorBefore = true;
var cmi6 = new ContextMenuItem("Visit Newgrounds", getNewgrounds);
contextMenu.customItems.push(cmi1, cmi2, cmi3, cmi4, cmi5, cmi6);
_root.menu = contextMenu;
var so = SharedObject.getLocal("NG_Snowflakes_ShirkDeio", "/");
if (so.data.level1 == undefined) {
so.data.level1 = false;
so.data.level1score = 0;
}
if (so.data.level2 == undefined) {
so.data.level2 = false;
so.data.level2score = 0;
}
if (so.data.level3 == undefined) {
so.data.level3 = false;
so.data.level3score = 0;
}
if (so.data.level4 == undefined) {
so.data.level4 = false;
so.data.level4score = 0;
}
if (so.data.level5 == undefined) {
so.data.level5 = false;
so.data.level5score = 0;
}
so.flush();
Frame 9 (35 B)
stop();
gotoAndStop ("hallpass");
Frame 21 (8 B)
stop();
Instance of Symbol 170 MovieClip in Frame 21 (64 B)
on (release) {
getURL ("http://www.hallpass.com/", "_blank");
}
Frame 29 (29 B)
stop();
transition("menu");
Frame 31 (2.9 KiB) ●
stop();
if (cursong != "menu") {
music.stop();
var music = new Sound();
music.attachSound("menu");
musicPlaying = true;
cursong = "menu";
music.start();
music.onSoundComplete = function () {
music.start();
};
}
if (cursor == undefined) {
attachMovie("cursor", "cursor", 999999);
cursor._x = (cursor._y = -100);
Mouse.hide();
cursor.frozen = false;
cursor.onEnterFrame = function () {
if (!this.frozen) {
this.gotoAndStop(1);
this._x = _xmouse;
this._y = _ymouse;
} else {
this.gotoAndStop("frozen");
}
};
cursor.onMouseDown = function () {
Mouse.hide();
};
cursor.onMouseUp = cursor.onMouseDown;
}
instructions_mc.onRollOver = function () {
lightup(this);
};
instructions_mc.onRollOut = function () {
dim(this);
};
instructions_mc.onDragOut = instructions_mc.onRollOut;
instructions_mc.onRelease = function () {
if (t == undefined) {
transition("instructions");
}
};
start_mc.onRollOver = function () {
lightup(this);
};
start_mc.onRollOut = function () {
dim(this);
};
start_mc.onDragOut = start_mc.onRollOut;
start_mc.onRelease = function () {
if (t == undefined) {
transition("level1");
}
};
continue_mc.onRollOver = function () {
lightup(this);
};
continue_mc.onRollOut = function () {
dim(this);
};
continue_mc.onDragOut = continue_mc.onRollOut;
continue_mc.onRelease = function () {
if (t == undefined) {
transition("levelselect");
}
};
scores_mc.onRollOver = function () {
lightup(this);
};
scores_mc.onRollOut = function () {
dim(this);
};
scores_mc.onDragOut = scores_mc.onRollOut;
scores_mc.onRelease = function () {
getURL ("http://rankz.armorbot.com/snowflakes/", "_blank");
};
jukebox_mc.onRollOver = function () {
lightup(this);
};
jukebox_mc.onRollOut = function () {
dim(this);
};
jukebox_mc.onDragOut = jukebox_mc.onRollOut;
jukebox_mc.onRelease = function () {
if (t == undefined) {
transition("jukebox");
}
};
credits_mc.onRollOver = function () {
lightup(this);
};
credits_mc.onRollOut = function () {
dim(this);
};
credits_mc.onDragOut = credits_mc.onRollOut;
credits_mc.onRelease = function () {
if (t == undefined) {
transition("credits");
}
};
more_mc.onRollOver = function () {
lightup(this);
};
more_mc.onRollOut = function () {
dim(this);
};
more_mc.onDragOut = more_mc.onRollOut;
more_mc.onRelease = function () {
getURL ("http://www.hallpass.com", "_blank");
};
more2_mc.onRollOver = function () {
lightup(this);
};
more2_mc.onRollOut = function () {
dim(this);
};
more2_mc.onDragOut = more2_mc.onRollOut;
more2_mc.onRelease = function () {
getURL ("http://www.armorgames.com", "_blank");
};
ng_mc.onRollOver = function () {
lightup(this);
};
ng_mc.onRollOut = function () {
dim(this);
};
ng_mc.onDragOut = ng_mc.onRollOut;
ng_mc.onRelease = function () {
getURL ("http://www.newgrounds.com/collection/christmas2007", "_blank");
};
Frame 41 (494 B)
stop();
menu_mc.onRollOver = function () {
lightup(this);
};
menu_mc.onRollOut = function () {
dim(this);
};
menu_mc.onDragOut = menu_mc.onRollOut;
menu_mc.onRelease = function () {
if (t == undefined) {
transition("menu");
}
};
continue_mc.onRollOver = function () {
lightup(this);
};
continue_mc.onRollOut = function () {
dim(this);
};
continue_mc.onDragOut = continue_mc.onRollOut;
continue_mc.onRelease = function () {
if (t == undefined) {
play();
}
};
Frame 42 (271 B)
stop();
back_mc.onRollOver = function () {
lightup(this);
};
back_mc.onRollOut = function () {
dim(this);
};
back_mc.onDragOut = back_mc.onRollOut;
back_mc.onRelease = function () {
if (t == undefined) {
_root.gotoAndStop(_root._currentframe - 1);
}
};
Frame 43 (8 B)
stop();
Frame 44 (8 B)
stop();
Instance of Symbol 122 MovieClip [snowflake1] in Frame 44 (47 B)
onClipEvent (enterFrame) {
this._rotation++;
}
Instance of Symbol 124 MovieClip [snowflake2] in Frame 44 (47 B)
onClipEvent (enterFrame) {
this._rotation--;
}
Instance of Symbol 126 MovieClip [snowflake3] in Frame 44 (47 B)
onClipEvent (enterFrame) {
this._rotation++;
}
Frame 45 (8 B)
stop();
Instance of Symbol 122 MovieClip [snowflake1] in Frame 45 (66 B)
onClipEvent (enterFrame) {
this._rotation = this._rotation - 1;
}
Instance of Symbol 124 MovieClip [snowflake2] in Frame 45 (68 B)
onClipEvent (enterFrame) {
this._rotation = this._rotation + 2.5;
}
Instance of Symbol 126 MovieClip [snowflake3] in Frame 45 (66 B)
onClipEvent (enterFrame) {
this._rotation = this._rotation - 4;
}
Frame 46 (8 B)
stop();
Instance of Symbol 96 MovieClip [snowflake4] in Frame 46 (66 B)
onClipEvent (enterFrame) {
this._rotation = this._rotation - 2;
}
Instance of Symbol 96 MovieClip [snowflake4] in Frame 46 (66 B)
onClipEvent (enterFrame) {
this._rotation = this._rotation + 2;
}
Frame 47 (8 B)
stop();
Instance of Symbol 127 MovieClip [snowflake5] in Frame 47 (66 B)
onClipEvent (enterFrame) {
this._rotation = this._rotation + 2;
}
Instance of Symbol 127 MovieClip [snowflake5] in Frame 47 (66 B)
onClipEvent (enterFrame) {
this._rotation = this._rotation - 2;
}
Frame 48 (8 B)
stop();
Frame 49 (267 B)
stop();
continue_mc.onRollOver = function () {
lightup(this);
};
continue_mc.onRollOut = function () {
dim(this);
};
continue_mc.onDragOut = continue_mc.onRollOut;
continue_mc.onRelease = function () {
if (t == undefined) {
transition("menu");
}
};
Frame 51 (8.17 KiB) ● ●
function addFlake() {
if (!paused) {
if (i == 100) {
i = 0;
}
var type = Math.floor((Math.random() * 3) + 1);
var flake = flakes.flakes.attachMovie("snowflake" + type, "flake" + i, ++i);
var _local3 = Math.floor((Math.random() * 3) + 1);
flake.gotoAndStop(_local3);
flake._x = (Math.random() * (Stage.width - 150)) + 75;
flake._y = -50;
flake.grab = false;
var dir = ((Math.random() * 2) - 1);
var speed = (Math.abs(dir) * 2);
if (speed < 1) {
speed = 1;
}
var score = 100;
if (type < 4) {
flake.onPress = function () {
if ((((!levelcomplete) && (!gameover)) && (!paused)) && (!flake.grab)) {
flake.grab = true;
if (!muted) {
this.sound = new Sound();
this.sound.attachSound("bells2");
this.sound.start();
}
}
};
} else {
flake.onPress = function () {
if ((((!levelcomplete) && (!gameover)) && (!paused)) && (!flake.grab)) {
flake.grab = true;
if (!muted) {
this.sound = new Sound();
this.sound.attachSound("fireflake1");
this.sound.start();
}
}
};
}
flake.onEnterFrame = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
this._y = this._y + speed;
if (flake.grab) {
if (dir == Math.abs(dir)) {
this._rotation = this._rotation + 10;
} else {
this._rotation = this._rotation - 10;
}
this._alpha = this._alpha - 10;
this._xscale = this._xscale + 5;
this._yscale = this._yscale + 5;
if (this._alpha <= 0) {
if (type < 4) {
_root.points = _root.points + score;
_root.gotten++;
} else {
_root.points = _root.points + 50;
}
removeMovieClip(this);
}
} else {
this._rotation = this._rotation + dir;
}
if (this._y > Stage.height) {
if (type >= 4) {
if (gotten > 0) {
gotten--;
if (points > 500) {
points = points - 500;
} else {
points = 0;
}
}
if (!muted) {
this.sound = new Sound();
this.sound.attachSound("fireflake2");
this.sound.start();
}
}
removeMovieClip(this);
}
}
};
}
}
function timer() {
if (!paused) {
var _local1 = (time / timeLimit) * 100;
if (_local1 > 0) {
timeBar.fill._yscale = _local1;
time--;
} else {
clearInterval(timerInterval);
clearInterval(flakeInterval);
showGameover("menu");
gameover = true;
}
}
}
stop();
i = 0;
music.stop();
var music = new Sound();
music.attachSound("song1");
musicPlaying = true;
cursong = 1;
music.start();
music.onSoundComplete = function () {
music.start();
};
so.data.level1 = true;
so.flush();
var gameover = false;
var levelcomplete = false;
var paused = false;
var muted = false;
var points = 0;
var quota = 20;
var gotten = 0;
var timeLimit = 1500;
var time = 1500;
flakes.createEmptyMovieClip("flakes", 0);
quotaBar.onEnterFrame = function () {
var _local3 = (gotten / quota) * 100;
if (_local3 < 100) {
this.fill._yscale = _local3;
} else {
this.fill._yscale = 100;
clearInterval(timerInterval);
clearInterval(flakeInterval);
delete quotaBar.onEnterFrame;
showLevelcomplete("level2");
removeMovieClip(flakes.flakes);
var timeBonus = 0;
_root.getBonus = function () {
l.stuff.points_txt.text = "Points: " + points;
l.stuff.onRelease = function () {
if (time > 0) {
timeBonus = timeBonus + time;
time = time - time;
timeBar.fill._yscale = 0;
if ((so.data.level1score == undefined) || (Number(points + timeBonus) > Number(so.data.level1score))) {
so.data.level1score = Number(points + timeBonus);
}
so.flush();
}
};
if (time > 0) {
time--;
timeBonus++;
} else {
clearInterval(bonusInterval);
if ((so.data.level1score == undefined) || (Number(points + timeBonus) > Number(so.data.level1score))) {
so.data.level1score = Number(points + timeBonus);
}
so.flush();
}
l.stuff.bonus_txt.text = "Time Bonus: " + timeBonus;
var _local1 = (time / timeLimit) * 100;
if (_local1 > 0) {
timeBar.fill._yscale = _local1;
}
l.stuff.total_txt.text = "Total: " + (points + timeBonus);
};
bonusInterval = setInterval(getBonus, 1);
levelcomplete = true;
}
points_txt.text = points;
};
attachMovie("readygo", "readygo", this.getNextHighestDepth());
readygo.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
timerInterval = setInterval(timer, 10);
flakeInterval = setInterval(addFlake, 500);
menu_mc.onRollOver = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
lightup(this);
}
};
menu_mc.onRollOut = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
dim(this);
}
};
menu_mc.onDragOut = menu_mc.onRollOut;
menu_mc.onRelease = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
clearInterval(timerInterval);
clearInterval(flakeInterval);
showGameover("menu");
gameover = true;
}
};
sound_mc.onRollOver = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
lightup(this);
}
};
sound_mc.onRollOut = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
dim(this);
}
};
sound_mc.onDragOut = sound_mc.onRollOut;
sound_mc.onRelease = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
if (muted) {
muted = false;
} else {
muted = true;
}
}
};
music_mc.onRollOver = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
lightup(this);
}
};
music_mc.onRollOut = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
dim(this);
}
};
music_mc.onDragOut = music_mc.onRollOut;
music_mc.onRelease = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
attachMovie("music", "m", this.getNextHighestDepth());
m.onEnterFrame = function () {
if (musicPlaying) {
m.stuff.on_mc.gotoAndStop(1);
} else {
m.stuff.on_mc.gotoAndStop(2);
}
m.stuff.song_mc.gotoAndStop(cursong);
m.stuff.on_mc.onRelease = function () {
if (musicPlaying) {
musicPlaying = false;
music.stop();
this.gotoAndStop(2);
} else {
musicPlaying = true;
music.start();
this.gotoAndStop(1);
}
};
m.stuff.song_mc.onRelease = function () {
musicPlaying = true;
if ((cursong + 1) <= 4) {
cursong++;
} else {
cursong = 1;
}
music.stop();
music.attachSound("song" + cursong);
music.start();
this.gotoAndStop(cursong);
};
m.stuff.continue_mc.onRelease = function () {
if (m._currentframe == (m._totalframes / 2)) {
m.play();
}
};
if (this._currentframe >= this._totalframes) {
removeMovieClip(this);
paused = false;
}
};
paused = true;
}
dim(this);
};
pause_mc.onRollOver = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
lightup(this);
}
};
pause_mc.onRollOut = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
dim(this);
}
};
pause_mc.onDragOut = pause_mc.onRollOut;
pause_mc.onRelease = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
attachMovie("pause", "p", this.getNextHighestDepth());
p.onRelease = function () {
if (this._currentframe == (this._totalframes / 2)) {
this.play();
}
};
p.onEnterFrame = function () {
if (this._currentframe >= this._totalframes) {
removeMovieClip(this);
paused = false;
}
};
paused = true;
}
dim(this);
};
removeMovieClip(this);
}
};
Frame 61 (8.34 KiB) ● ●
function addFlake() {
if (!paused) {
if (i == 100) {
i = 0;
}
var type = Math.floor((Math.random() * 3) + 1);
var flake = flakes.flakes.attachMovie("snowflake" + type, "flake" + i, ++i);
var _local3 = Math.floor((Math.random() * 3) + 1);
flake.gotoAndStop(_local3);
flake._x = (Math.random() * (Stage.width - 150)) + 75;
flake._y = -50;
flake.grab = false;
var dir = ((Math.random() * 6) - 3);
var speed = (Math.abs(dir) * 2);
if (speed < 1) {
speed = 1;
}
if (speed < 2) {
var score = 100;
} else if ((speed > 2) && (speed < 4)) {
var score = 250;
} else {
var score = 500;
}
if (type < 4) {
flake.onPress = function () {
if ((((!levelcomplete) && (!gameover)) && (!paused)) && (!flake.grab)) {
flake.grab = true;
if (!muted) {
this.sound = new Sound();
this.sound.attachSound("bells2");
this.sound.start();
}
}
};
} else {
flake.onPress = function () {
if ((((!levelcomplete) && (!gameover)) && (!paused)) && (!flake.grab)) {
flake.grab = true;
if (!muted) {
this.sound = new Sound();
this.sound.attachSound("fireflake1");
this.sound.start();
}
}
};
}
flake.onEnterFrame = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
this._y = this._y + speed;
if (flake.grab) {
if (dir == Math.abs(dir)) {
this._rotation = this._rotation + 10;
} else {
this._rotation = this._rotation - 10;
}
this._alpha = this._alpha - 10;
this._xscale = this._xscale + 5;
this._yscale = this._yscale + 5;
if (this._alpha <= 0) {
if (type < 4) {
_root.points = _root.points + score;
_root.gotten++;
} else {
_root.points = _root.points + 50;
}
removeMovieClip(this);
}
} else {
this._rotation = this._rotation + dir;
}
if (this._y > Stage.height) {
if (type >= 4) {
if (gotten > 0) {
gotten--;
if (points > 500) {
points = points - 500;
} else {
points = 0;
}
}
if (!muted) {
this.sound = new Sound();
this.sound.attachSound("fireflake2");
this.sound.start();
}
}
removeMovieClip(this);
}
}
};
}
}
function timer() {
if (!paused) {
var _local1 = (time / timeLimit) * 100;
if (_local1 > 0) {
timeBar.fill._yscale = _local1;
time--;
} else {
clearInterval(timerInterval);
clearInterval(flakeInterval);
showGameover("menu");
gameover = true;
}
}
}
stop();
i = 0;
if (cursong == "menu") {
music.stop();
var music = new Sound();
music.attachSound("song1");
musicPlaying = true;
cursong = 1;
music.start();
music.onSoundComplete = function () {
music.start();
};
}
so.data.level2 = true;
so.flush();
var gameover = false;
var levelcomplete = false;
var paused = false;
var muted = false;
var points = 0;
var quota = 30;
var gotten = 0;
var timeLimit = 1500;
var time = 1500;
flakes.createEmptyMovieClip("flakes", 0);
quotaBar.onEnterFrame = function () {
var _local3 = (gotten / quota) * 100;
if (_local3 < 100) {
this.fill._yscale = _local3;
} else {
this.fill._yscale = 100;
clearInterval(timerInterval);
clearInterval(flakeInterval);
delete quotaBar.onEnterFrame;
showLevelcomplete("level3");
removeMovieClip(flakes.flakes);
var timeBonus = 0;
_root.getBonus = function () {
l.stuff.points_txt.text = "Points: " + points;
l.stuff.onRelease = function () {
if (time > 0) {
timeBonus = timeBonus + time;
time = time - time;
timeBar.fill._yscale = 0;
if ((so.data.level2score == undefined) || (Number(points + timeBonus) > Number(so.data.level2score))) {
so.data.level2score = Number(points + timeBonus);
}
so.flush();
}
};
if (time > 0) {
time--;
timeBonus++;
} else {
clearInterval(bonusInterval);
if ((so.data.level2score == undefined) || (Number(points + timeBonus) > Number(so.data.level2score))) {
so.data.level2score = Number(points + timeBonus);
}
so.flush();
}
l.stuff.bonus_txt.text = "Time Bonus: " + timeBonus;
var _local1 = (time / timeLimit) * 100;
if (_local1 > 0) {
timeBar.fill._yscale = _local1;
}
l.stuff.total_txt.text = "Total: " + (points + timeBonus);
};
bonusInterval = setInterval(getBonus, 1);
levelcomplete = true;
}
points_txt.text = points;
};
attachMovie("readygo", "readygo", this.getNextHighestDepth());
readygo.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
timerInterval = setInterval(timer, 10);
flakeInterval = setInterval(addFlake, 500);
menu_mc.onRollOver = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
lightup(this);
}
};
menu_mc.onRollOut = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
dim(this);
}
};
menu_mc.onDragOut = menu_mc.onRollOut;
menu_mc.onRelease = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
clearInterval(timerInterval);
clearInterval(flakeInterval);
showGameover("menu");
gameover = true;
}
};
sound_mc.onRollOver = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
lightup(this);
}
};
sound_mc.onRollOut = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
dim(this);
}
};
sound_mc.onDragOut = sound_mc.onRollOut;
sound_mc.onRelease = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
if (muted) {
muted = false;
} else {
muted = true;
}
}
};
music_mc.onRollOver = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
lightup(this);
}
};
music_mc.onRollOut = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
dim(this);
}
};
music_mc.onDragOut = music_mc.onRollOut;
music_mc.onRelease = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
attachMovie("music", "m", this.getNextHighestDepth());
m.onEnterFrame = function () {
if (musicPlaying) {
m.stuff.on_mc.gotoAndStop(1);
} else {
m.stuff.on_mc.gotoAndStop(2);
}
m.stuff.song_mc.gotoAndStop(cursong);
m.stuff.on_mc.onRelease = function () {
if (musicPlaying) {
musicPlaying = false;
music.stop();
this.gotoAndStop(2);
} else {
musicPlaying = true;
music.start();
this.gotoAndStop(1);
}
};
m.stuff.song_mc.onRelease = function () {
musicPlaying = true;
if ((cursong + 1) <= 4) {
cursong++;
} else {
cursong = 1;
}
music.stop();
music.attachSound("song" + cursong);
music.start();
this.gotoAndStop(cursong);
};
m.stuff.continue_mc.onRelease = function () {
if (m._currentframe == (m._totalframes / 2)) {
m.play();
}
};
if (this._currentframe >= this._totalframes) {
removeMovieClip(this);
paused = false;
}
};
paused = true;
}
dim(this);
};
pause_mc.onRollOver = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
lightup(this);
}
};
pause_mc.onRollOut = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
dim(this);
}
};
pause_mc.onDragOut = pause_mc.onRollOut;
pause_mc.onRelease = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
attachMovie("pause", "p", this.getNextHighestDepth());
p.onRelease = function () {
if (this._currentframe == (this._totalframes / 2)) {
this.play();
}
};
p.onEnterFrame = function () {
if (this._currentframe >= this._totalframes) {
removeMovieClip(this);
paused = false;
}
};
paused = true;
}
dim(this);
};
removeMovieClip(this);
}
};
Frame 71 (8.33 KiB) ● ●
function addFlake() {
if (!paused) {
if (i == 100) {
i = 0;
}
var type = Math.floor((Math.random() * 4) + 1);
var flake = flakes.flakes.attachMovie("snowflake" + type, "flake" + i, ++i);
var _local3 = Math.floor((Math.random() * 3) + 1);
flake.gotoAndStop(_local3);
flake._x = (Math.random() * (Stage.width - 150)) + 75;
flake._y = -50;
flake.grab = false;
var dir = ((Math.random() * 6) - 3);
var speed = (Math.abs(dir) * 2);
if (speed < 1) {
speed = 1;
}
if (speed < 2) {
var score = 100;
} else if ((speed > 2) && (speed < 4)) {
var score = 250;
} else {
var score = 500;
}
if (type < 4) {
flake.onPress = function () {
if ((((!levelcomplete) && (!gameover)) && (!paused)) && (!flake.grab)) {
flake.grab = true;
if (!muted) {
this.sound = new Sound();
this.sound.attachSound("bells2");
this.sound.start();
}
}
};
} else {
flake.onPress = function () {
if ((((!levelcomplete) && (!gameover)) && (!paused)) && (!flake.grab)) {
flake.grab = true;
if (!muted) {
this.sound = new Sound();
this.sound.attachSound("fireflake1");
this.sound.start();
}
}
};
}
flake.onEnterFrame = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
this._y = this._y + speed;
if (flake.grab) {
if (dir == Math.abs(dir)) {
this._rotation = this._rotation + 10;
} else {
this._rotation = this._rotation - 10;
}
this._alpha = this._alpha - 10;
this._xscale = this._xscale + 5;
this._yscale = this._yscale + 5;
if (this._alpha <= 0) {
if (type < 4) {
_root.points = _root.points + score;
_root.gotten++;
} else {
_root.points = _root.points + 50;
}
removeMovieClip(this);
}
} else {
this._rotation = this._rotation + dir;
}
if (this._y > Stage.height) {
if (type >= 4) {
if (gotten > 0) {
gotten--;
}
if (points > 500) {
points = points - 500;
} else {
points = 0;
}
if (!muted) {
this.sound = new Sound();
this.sound.attachSound("fireflake2");
this.sound.start();
}
}
removeMovieClip(this);
}
}
};
}
}
function timer() {
if (!paused) {
var _local1 = (time / timeLimit) * 100;
if (_local1 > 0) {
timeBar.fill._yscale = _local1;
time--;
} else {
clearInterval(timerInterval);
clearInterval(flakeInterval);
showGameover("menu");
gameover = true;
}
}
}
stop();
i = 0;
if (cursong == "menu") {
music.stop();
var music = new Sound();
music.attachSound("song1");
musicPlaying = true;
cursong = 1;
music.start();
music.onSoundComplete = function () {
music.start();
};
}
so.data.level3 = true;
so.flush();
var gameover = false;
var levelcomplete = false;
var paused = false;
var muted = false;
var points = 0;
var quota = 30;
var gotten = 0;
var timeLimit = 1750;
var time = 1750;
flakes.createEmptyMovieClip("flakes", 0);
quotaBar.onEnterFrame = function () {
var _local3 = (gotten / quota) * 100;
if (_local3 < 100) {
this.fill._yscale = _local3;
} else {
this.fill._yscale = 100;
clearInterval(timerInterval);
clearInterval(flakeInterval);
delete quotaBar.onEnterFrame;
showLevelcomplete("level4");
removeMovieClip(flakes.flakes);
var timeBonus = 0;
_root.getBonus = function () {
l.stuff.points_txt.text = "Points: " + points;
l.stuff.onRelease = function () {
if (time > 0) {
timeBonus = timeBonus + time;
time = time - time;
timeBar.fill._yscale = 0;
if ((so.data.level3score == undefined) || (Number(points + timeBonus) > Number(so.data.level3score))) {
so.data.level3score = Number(points + timeBonus);
}
so.flush();
}
};
if (time > 0) {
time--;
timeBonus++;
} else {
clearInterval(bonusInterval);
if ((so.data.level3score == undefined) || (Number(points + timeBonus) > Number(so.data.level3score))) {
so.data.level3score = Number(points + timeBonus);
}
so.flush();
}
l.stuff.bonus_txt.text = "Time Bonus: " + timeBonus;
var _local1 = (time / timeLimit) * 100;
if (_local1 > 0) {
timeBar.fill._yscale = _local1;
}
l.stuff.total_txt.text = "Total: " + (points + timeBonus);
};
bonusInterval = setInterval(getBonus, 1);
levelcomplete = true;
}
points_txt.text = points;
};
attachMovie("readygo", "readygo", this.getNextHighestDepth());
readygo.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
timerInterval = setInterval(timer, 10);
flakeInterval = setInterval(addFlake, 500);
menu_mc.onRollOver = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
lightup(this);
}
};
menu_mc.onRollOut = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
dim(this);
}
};
menu_mc.onDragOut = menu_mc.onRollOut;
menu_mc.onRelease = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
clearInterval(timerInterval);
clearInterval(flakeInterval);
showGameover("menu");
gameover = true;
}
};
sound_mc.onRollOver = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
lightup(this);
}
};
sound_mc.onRollOut = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
dim(this);
}
};
sound_mc.onDragOut = sound_mc.onRollOut;
sound_mc.onRelease = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
if (muted) {
muted = false;
} else {
muted = true;
}
}
};
music_mc.onRollOver = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
lightup(this);
}
};
music_mc.onRollOut = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
dim(this);
}
};
music_mc.onDragOut = music_mc.onRollOut;
music_mc.onRelease = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
attachMovie("music", "m", this.getNextHighestDepth());
m.onEnterFrame = function () {
if (musicPlaying) {
m.stuff.on_mc.gotoAndStop(1);
} else {
m.stuff.on_mc.gotoAndStop(2);
}
m.stuff.song_mc.gotoAndStop(cursong);
m.stuff.on_mc.onRelease = function () {
if (musicPlaying) {
musicPlaying = false;
music.stop();
this.gotoAndStop(2);
} else {
musicPlaying = true;
music.start();
this.gotoAndStop(1);
}
};
m.stuff.song_mc.onRelease = function () {
musicPlaying = true;
if ((cursong + 1) <= 4) {
cursong++;
} else {
cursong = 1;
}
music.stop();
music.attachSound("song" + cursong);
music.start();
this.gotoAndStop(cursong);
};
m.stuff.continue_mc.onRelease = function () {
if (m._currentframe == (m._totalframes / 2)) {
m.play();
}
};
if (this._currentframe >= this._totalframes) {
removeMovieClip(this);
paused = false;
}
};
paused = true;
}
dim(this);
};
pause_mc.onRollOver = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
lightup(this);
}
};
pause_mc.onRollOut = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
dim(this);
}
};
pause_mc.onDragOut = pause_mc.onRollOut;
pause_mc.onRelease = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
attachMovie("pause", "p", this.getNextHighestDepth());
p.onRelease = function () {
if (this._currentframe == (this._totalframes / 2)) {
this.play();
}
};
p.onEnterFrame = function () {
if (this._currentframe >= this._totalframes) {
removeMovieClip(this);
paused = false;
}
};
paused = true;
}
dim(this);
};
removeMovieClip(this);
}
};
Frame 81 (9.41 KiB) ● ●
function addFlake() {
if (!paused) {
if (i == 100) {
i = 0;
}
var type = Math.floor((Math.random() * 5) + 1);
if (type == 5) {
type = Math.floor((Math.random() * 5) + 1);
}
var flake = flakes.flakes.attachMovie("snowflake" + type, "flake" + i, ++i);
var _local3 = Math.floor((Math.random() * 3) + 1);
flake.gotoAndStop(_local3);
flake._x = (Math.random() * (Stage.width - 150)) + 75;
flake._y = -50;
flake.grab = false;
var dir = ((Math.random() * 6) - 3);
var speed = (Math.abs(dir) * 2);
if (speed < 1) {
speed = 1;
}
if (speed < 2) {
var score = 100;
} else if ((speed > 2) && (speed < 4)) {
var score = 250;
} else {
var score = 500;
}
if (type < 4) {
flake.onPress = function () {
if ((((!levelcomplete) && (!gameover)) && (!paused)) && (!flake.grab)) {
flake.grab = true;
if (!muted) {
this.sound = new Sound();
this.sound.attachSound("bells2");
this.sound.start();
}
}
};
} else if (type == 4) {
flake.onPress = function () {
if ((((!levelcomplete) && (!gameover)) && (!paused)) && (!flake.grab)) {
flake.grab = true;
if (!muted) {
this.sound = new Sound();
this.sound.attachSound("fireflake1");
this.sound.start();
}
}
};
} else if (type == 5) {
flake.onPress = function () {
if ((((!levelcomplete) && (!gameover)) && (!paused)) && (!flake.grab)) {
flake.grab = true;
if (!muted) {
this.sound = new Sound();
this.sound.attachSound("iceflake");
this.sound.start();
}
}
};
}
flake.onEnterFrame = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
this._y = this._y + speed;
if (flake.grab) {
if (dir == Math.abs(dir)) {
this._rotation = this._rotation + 10;
} else {
this._rotation = this._rotation - 10;
}
this._alpha = this._alpha - 10;
this._xscale = this._xscale + 5;
this._yscale = this._yscale + 5;
if (this._alpha <= 0) {
if (type < 4) {
_root.points = _root.points + score;
if (!quotaBar.frozen) {
_root.gotten++;
}
} else if (type == 4) {
_root.points = _root.points + 50;
} else if (type == 5) {
if (!quotaBar.frozen) {
iceflakeSet();
} else {
clearInterval(iceInterval);
iceInterval = setInterval(iceflakeReset, 5000);
}
}
removeMovieClip(this);
}
} else {
this._rotation = this._rotation + dir;
}
if (this._y > Stage.height) {
if ((type == 4) && (!quotaBar.frozen)) {
if (gotten > 0) {
gotten--;
}
if (points > 500) {
points = points - 500;
} else {
points = 0;
}
if (!muted) {
this.sound = new Sound();
this.sound.attachSound("fireflake2");
this.sound.start();
}
}
removeMovieClip(this);
}
}
};
}
}
function iceflakeSet() {
clearInterval(timerInterval);
timeBar.gotoAndStop("frozen");
quotaBar.gotoAndStop("frozen");
quotaBar.frozen = true;
iceInterval = setInterval(iceflakeReset, 5000);
}
function iceflakeReset() {
clearInterval(iceInterval);
timeBar.gotoAndStop(1);
quotaBar.gotoAndStop(1);
quotaBar.frozen = false;
timerInterval = setInterval(timer, 10);
}
function timer() {
if (!paused) {
var _local1 = (time / timeLimit) * 100;
if (_local1 > 0) {
timeBar.fill._yscale = _local1;
time--;
} else {
clearInterval(timerInterval);
clearInterval(flakeInterval);
showGameover("menu");
gameover = true;
}
}
}
stop();
i = 0;
if (cursong == "menu") {
music.stop();
var music = new Sound();
music.attachSound("song1");
musicPlaying = true;
cursong = 1;
music.start();
music.onSoundComplete = function () {
music.start();
};
}
so.data.level4 = true;
so.flush();
var gameover = false;
var levelcomplete = false;
var paused = false;
var muted = false;
var points = 0;
var quota = 20;
var gotten = 0;
var timeLimit = 1500;
var time = 1500;
flakes.createEmptyMovieClip("flakes", 0);
quotaBar.onEnterFrame = function () {
var _local3 = (gotten / quota) * 100;
if (_local3 < 100) {
this.fill._yscale = _local3;
} else {
this.fill._yscale = 100;
clearInterval(timerInterval);
clearInterval(flakeInterval);
delete quotaBar.onEnterFrame;
showLevelcomplete("level5");
removeMovieClip(flakes.flakes);
var timeBonus = 0;
_root.getBonus = function () {
l.stuff.points_txt.text = "Points: " + points;
l.stuff.onRelease = function () {
if (time > 0) {
timeBonus = timeBonus + time;
time = time - time;
timeBar.fill._yscale = 0;
if ((so.data.level4score == undefined) || (Number(points + timeBonus) > Number(so.data.level4score))) {
so.data.level4score = Number(points + timeBonus);
}
so.flush();
}
};
if (time > 0) {
time--;
timeBonus++;
} else {
clearInterval(bonusInterval);
if ((so.data.level4score == undefined) || (Number(points + timeBonus) > Number(so.data.level4score))) {
so.data.level4score = Number(points + timeBonus);
}
so.flush();
}
l.stuff.bonus_txt.text = "Time Bonus: " + timeBonus;
var _local1 = (time / timeLimit) * 100;
if (_local1 > 0) {
timeBar.fill._yscale = _local1;
}
l.stuff.total_txt.text = "Total: " + (points + timeBonus);
};
bonusInterval = setInterval(getBonus, 1);
levelcomplete = true;
}
points_txt.text = points;
};
attachMovie("readygo", "readygo", this.getNextHighestDepth());
readygo.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
timerInterval = setInterval(timer, 10);
flakeInterval = setInterval(addFlake, 500);
menu_mc.onRollOver = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
lightup(this);
}
};
menu_mc.onRollOut = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
dim(this);
}
};
menu_mc.onDragOut = menu_mc.onRollOut;
menu_mc.onRelease = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
clearInterval(timerInterval);
clearInterval(flakeInterval);
showGameover("menu");
gameover = true;
}
};
sound_mc.onRollOver = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
lightup(this);
}
};
sound_mc.onRollOut = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
dim(this);
}
};
sound_mc.onDragOut = sound_mc.onRollOut;
sound_mc.onRelease = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
if (muted) {
muted = false;
} else {
muted = true;
}
}
};
music_mc.onRollOver = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
lightup(this);
}
};
music_mc.onRollOut = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
dim(this);
}
};
music_mc.onDragOut = music_mc.onRollOut;
music_mc.onRelease = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
attachMovie("music", "m", this.getNextHighestDepth());
m.onEnterFrame = function () {
if (musicPlaying) {
m.stuff.on_mc.gotoAndStop(1);
} else {
m.stuff.on_mc.gotoAndStop(2);
}
m.stuff.song_mc.gotoAndStop(cursong);
m.stuff.on_mc.onRelease = function () {
if (musicPlaying) {
musicPlaying = false;
music.stop();
this.gotoAndStop(2);
} else {
musicPlaying = true;
music.start();
this.gotoAndStop(1);
}
};
m.stuff.song_mc.onRelease = function () {
musicPlaying = true;
if ((cursong + 1) <= 4) {
cursong++;
} else {
cursong = 1;
}
music.stop();
music.attachSound("song" + cursong);
music.start();
this.gotoAndStop(cursong);
};
m.stuff.continue_mc.onRelease = function () {
if (m._currentframe == (m._totalframes / 2)) {
m.play();
}
};
if (this._currentframe >= this._totalframes) {
removeMovieClip(this);
paused = false;
}
};
paused = true;
}
dim(this);
};
pause_mc.onRollOver = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
lightup(this);
}
};
pause_mc.onRollOut = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
dim(this);
}
};
pause_mc.onDragOut = pause_mc.onRollOut;
pause_mc.onRelease = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
attachMovie("pause", "p", this.getNextHighestDepth());
p.onRelease = function () {
if (this._currentframe == (this._totalframes / 2)) {
this.play();
}
};
p.onEnterFrame = function () {
if (this._currentframe >= this._totalframes) {
removeMovieClip(this);
paused = false;
}
};
paused = true;
}
dim(this);
};
removeMovieClip(this);
}
};
Frame 91 (11.41 KiB) ● ●
function addFlake() {
if (!paused) {
if (i == 100) {
i = 0;
}
var type = Math.floor((Math.random() * 5) + 1);
if (type != 4) {
type = Math.floor((Math.random() * 5) + 1);
}
if (type == 5) {
type = Math.floor((Math.random() * 5) + 1);
}
var flake = flakes.flakes.attachMovie("snowflake" + type, "flake" + i, ++i);
var _local3 = Math.floor((Math.random() * 3) + 1);
flake.gotoAndStop(_local3);
flake._x = (Math.random() * (Stage.width - 150)) + 75;
flake._y = -50;
flake.grab = false;
var dir = ((Math.random() * 6) - 3);
var speed = (Math.abs(dir) * 2);
if (speed < 1) {
speed = 1;
}
if (speed < 2) {
var score = 100;
} else if ((speed > 2) && (speed < 4)) {
var score = 250;
} else {
var score = 500;
}
if (type < 4) {
flake.onPress = function () {
if ((((!levelcomplete) && (!gameover)) && (!paused)) && (!flake.grab)) {
flake.grab = true;
if (!muted) {
this.sound = new Sound();
this.sound.attachSound("bells2");
this.sound.start();
}
}
};
} else if (type == 4) {
flake.onPress = function () {
if ((((!levelcomplete) && (!gameover)) && (!paused)) && (!flake.grab)) {
flake.grab = true;
if (!muted) {
this.sound = new Sound();
this.sound.attachSound("fireflake1");
this.sound.start();
}
}
};
} else if (type == 5) {
flake.onPress = function () {
if ((((!levelcomplete) && (!gameover)) && (!paused)) && (!flake.grab)) {
flake.grab = true;
if (!muted) {
this.sound = new Sound();
this.sound.attachSound("iceflake");
this.sound.start();
}
}
};
}
flake.onEnterFrame = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
this._y = this._y + speed;
if (flake.grab) {
if (dir == Math.abs(dir)) {
this._rotation = this._rotation + 10;
} else {
this._rotation = this._rotation - 10;
}
this._alpha = this._alpha - 10;
this._xscale = this._xscale + 5;
this._yscale = this._yscale + 5;
if (this._alpha <= 0) {
if (type < 4) {
_root.points = _root.points + score;
if (!quotaBar.frozen) {
_root.gotten++;
}
} else if (type == 4) {
_root.points = _root.points + 50;
} else if (type == 5) {
if (!quotaBar.frozen) {
iceflakeSet();
} else {
clearInterval(iceInterval);
iceInterval = setInterval(iceflakeReset, 5000);
}
}
removeMovieClip(this);
}
} else {
this._rotation = this._rotation + dir;
}
if (this._y > Stage.height) {
if ((type == 4) && (!quotaBar.frozen)) {
if (gotten > 0) {
gotten--;
}
if (points > 500) {
points = points - 500;
} else {
points = 0;
}
if (!muted) {
this.sound = new Sound();
this.sound.attachSound("fireflake2");
this.sound.start();
}
}
removeMovieClip(this);
}
}
};
}
}
function iceflakeSet() {
clearInterval(timerInterval);
timeBar.gotoAndStop("frozen");
quotaBar.gotoAndStop("frozen");
snowman.gotoAndStop("frozen");
quotaBar.frozen = true;
snowman.frozen = true;
iceInterval = setInterval(iceflakeReset, 5000);
}
function iceflakeReset() {
clearInterval(iceInterval);
timeBar.gotoAndStop(1);
quotaBar.gotoAndStop(1);
snowman.gotoAndStop(1);
quotaBar.frozen = false;
snowman.frozen = false;
timerInterval = setInterval(timer, 10);
}
function timer() {
if (!paused) {
var _local1 = (time / timeLimit) * 100;
if (_local1 > 0) {
timeBar.fill._yscale = _local1;
time--;
} else {
clearInterval(timerInterval);
clearInterval(flakeInterval);
showGameover("menu");
gameover = true;
}
}
}
function throwSnowball() {
snowball = attachMovie("snowball", "snowball" + i, ++i);
snowball._x = snowman._x;
snowball._y = snowman._y;
snowball._width = (snowball._height = 20);
snowball.hit = false;
snowball.yspeed = -15;
snowball.xspeed = (_xmouse - snowball._x) / 44;
snowball.onEnterFrame = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
this.yspeed++;
this._width++;
this._height++;
if (this.hitTest(cursor) && (!this.hit)) {
this.hit = true;
if (!muted) {
this.sound = new Sound();
this.sound.attachSound("iceflake");
this.sound.start();
}
if (!cursor.frozen) {
cursor.frozen = true;
cursorInterval = setInterval(reviveCursor, 3000);
}
}
}
if (((this._y > Stage.height) || (gameover)) || (levelcomplete)) {
removeMovieClip(this);
}
};
}
function reviveCursor() {
clearInterval(cursorInterval);
cursor.frozen = false;
}
stop();
i = 0;
if (cursong != "song5") {
music.stop();
var music = new Sound();
music.attachSound("song5");
musicPlaying = true;
cursong = 5;
music.start();
music.onSoundComplete = function () {
music.start();
};
}
so.data.level5 = true;
so.flush();
var gameover = false;
var levelcomplete = false;
var paused = false;
var muted = false;
var points = 0;
var quota = 75;
var gotten = 0;
var timeLimit = 5000;
var time = 5000;
flakes.createEmptyMovieClip("flakes", 0);
quotaBar.onEnterFrame = function () {
var _local3 = (gotten / quota) * 100;
if (_local3 < 100) {
this.fill._yscale = _local3;
} else {
this.fill._yscale = 100;
clearInterval(timerInterval);
clearInterval(flakeInterval);
delete quotaBar.onEnterFrame;
showLevelcomplete("endgame");
removeMovieClip(flakes.flakes);
var timeBonus = 0;
_root.getBonus = function () {
l.stuff.points_txt.text = "Points: " + points;
l.stuff.onRelease = function () {
if (time > 0) {
timeBonus = timeBonus + time;
time = time - time;
timeBar.fill._yscale = 0;
if ((so.data.level5score == undefined) || (Number(points + timeBonus) > Number(so.data.level5score))) {
so.data.level5score = Number(points + timeBonus);
}
so.flush();
}
};
if (time > 0) {
time--;
timeBonus++;
} else {
clearInterval(bonusInterval);
if ((so.data.level5score == undefined) || (Number(points + timeBonus) > Number(so.data.level5score))) {
so.data.level5score = Number(points + timeBonus);
}
so.flush();
}
l.stuff.bonus_txt.text = "Time Bonus: " + timeBonus;
var _local1 = (time / timeLimit) * 100;
if (_local1 > 0) {
timeBar.fill._yscale = _local1;
}
l.stuff.total_txt.text = "Total: " + (points + timeBonus);
};
bonusInterval = setInterval(getBonus, 1);
levelcomplete = true;
}
points_txt.text = points;
};
attachMovie("readygo", "readygo", this.getNextHighestDepth());
readygo.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
timerInterval = setInterval(timer, 10);
flakeInterval = setInterval(addFlake, 500);
menu_mc.onRollOver = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
lightup(this);
}
};
menu_mc.onRollOut = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
dim(this);
}
};
menu_mc.onDragOut = menu_mc.onRollOut;
menu_mc.onRelease = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
clearInterval(timerInterval);
clearInterval(flakeInterval);
showGameover("menu");
gameover = true;
}
};
sound_mc.onRollOver = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
lightup(this);
}
};
sound_mc.onRollOut = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
dim(this);
}
};
sound_mc.onDragOut = sound_mc.onRollOut;
sound_mc.onRelease = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
if (muted) {
muted = false;
} else {
muted = true;
}
}
};
music_mc.onRollOver = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
lightup(this);
}
};
music_mc.onRollOut = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
dim(this);
}
};
music_mc.onDragOut = music_mc.onRollOut;
music_mc.onRelease = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
attachMovie("music", "m", this.getNextHighestDepth());
m.onEnterFrame = function () {
if (musicPlaying) {
m.stuff.on_mc.gotoAndStop(1);
} else {
m.stuff.on_mc.gotoAndStop(2);
}
m.stuff.song_mc.gotoAndStop(cursong);
m.stuff.on_mc.onRelease = function () {
if (musicPlaying) {
musicPlaying = false;
music.stop();
this.gotoAndStop(2);
} else {
musicPlaying = true;
music.start();
this.gotoAndStop(1);
}
};
m.stuff.song_mc.onRelease = function () {
musicPlaying = true;
if ((cursong + 1) <= 5) {
cursong++;
} else {
cursong = 1;
}
music.stop();
music.attachSound("song" + cursong);
music.start();
this.gotoAndStop(cursong);
};
m.stuff.continue_mc.onRelease = function () {
if (m._currentframe == (m._totalframes / 2)) {
m.play();
}
};
if (this._currentframe >= this._totalframes) {
removeMovieClip(this);
paused = false;
}
};
paused = true;
}
dim(this);
};
pause_mc.onRollOver = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
lightup(this);
}
};
pause_mc.onRollOut = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
dim(this);
}
};
pause_mc.onDragOut = pause_mc.onRollOut;
pause_mc.onRelease = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
attachMovie("pause", "p", this.getNextHighestDepth());
p.onRelease = function () {
if (this._currentframe == (this._totalframes / 2)) {
this.play();
}
};
p.onEnterFrame = function () {
if (this._currentframe >= this._totalframes) {
removeMovieClip(this);
paused = false;
}
};
paused = true;
}
dim(this);
};
removeMovieClip(this);
}
};
snowman.throwing = false;
snowman.counter = 0;
snowman.onEnterFrame = function () {
if (((!levelcomplete) && (!gameover)) && (!paused)) {
this.counter++;
if (this.frozen) {
this.counter = 0;
}
if ((((((this.counter >= 150) && ((time > 4000) && (time < 5000))) || ((this.counter >= 125) && ((time > 3000) && (time < 4000)))) || ((this.counter >= 100) && ((time > 2000) && (time < 3000)))) || ((this.counter >= 50) && ((time > 1000) && (time < 2000)))) || ((this.counter >= 25) && (time < 1000))) {
snowman.gotoAndPlay("snowball");
this.counter = 0;
}
if (this.throwing) {
this.throwing = false;
throwSnowball();
}
}
};
Frame 101 (2.77 KiB) ●
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
stop();
if (cursong != "menu") {
music.stop();
var music = new Sound();
music.attachSound("menu");
musicPlaying = true;
cursong = "menu";
music.start();
music.onSoundComplete = function () {
music.start();
};
}
if (so.data.totalscore == undefined) {
so.data.totalscore = 0;
i = 1;
while (i <= 5) {
if (so.data[("level" + i) + "score"] != undefined) {
so.data.totalscore = so.data.totalscore + so.data[("level" + i) + "score"];
}
i++;
}
so.flush();
}
score_txt.text = "Total Score: " + so.data.totalscore;
submit_mc.onRollOver = function () {
lightup(this);
};
submit_mc.onRollOut = function () {
dim(this);
};
submit_mc.onDragOut = submit_mc.onRollOut;
submit_mc.onRelease = function () {
canpost = 0;
rankz_t10_send = new LoadVars();
rankz_t10_receive = new LoadVars();
rankz_t10_send.SU0249 = "MjAyNGolZSVhJW4lcw==";
rankz_t10_send.flashkey = "U3FPV0xTRGg=";
rankz_t10_receive.onLoad = function (success) {
if (success) {
_rankz_ar_ = rankz_t10_receive.top10.split("<u/*/u>");
i = 0;
while (i < _rankz_ar_.length) {
tempv = _rankz_ar_[i].split("</*/>");
if ((tempv[0] == name_txt.text) && (tempv[1] == so.data.totalscore)) {
canpost++;
}
if ((i + 1) >= _rankz_ar_.length) {
if ((((name_txt.text.length >= 2) && (name_txt.text != "Name")) && (name_txt.text != "Error!")) && (canpost == 0)) {
bXlnYW1lX25hbWVfdmFyaWFibGU = name_txt.text;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = so.data.totalscore;
__rankz_send__("MjAyNGolZSVhJW4lcw==", "U3FPV0xTRGg=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
getURL ("http://rankz.armorbot.com/snowflakes/", "_blank");
} else {
name_txt.text = "Error!";
}
}
i++;
}
} else {
trace("ERROR");
}
};
rankz_t10_send.sendAndLoad("http://rankz.armorbot.com/get/top10.php", rankz_t10_receive, "POST");
};
menu_mc.onRollOver = function () {
lightup(this);
};
menu_mc.onRollOut = function () {
dim(this);
};
menu_mc.onDragOut = menu_mc.onRollOut;
menu_mc.onRelease = function () {
if (t == undefined) {
transition("menu");
}
};
Frame 111 (4.55 KiB) ●
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
stop();
i = 1;
while (i <= 5) {
if (so.data[("level" + i) + "score"] == undefined) {
so.data[("level" + i) + "score"] = 0;
}
i++;
}
so.data.totalscore = 0;
i = 1;
while (i <= 5) {
if (so.data[("level" + i) + "score"] != undefined) {
so.data.totalscore = so.data.totalscore + so.data[("level" + i) + "score"];
}
i++;
}
so.flush();
score_txt.text = "Total Score: " + so.data.totalscore;
if (so.data.level1) {
level1_mc.points_txt.text = so.data.level1score;
level1_mc.onRollOver = function () {
lightup(this);
};
level1_mc.onRollOut = function () {
dim(this);
};
level1_mc.onDragOut = level1_mc.onRollOut;
level1_mc.onRelease = function () {
transition("level1");
};
} else {
darken(level1_mc);
}
if (so.data.level2) {
level2_mc.points_txt.text = so.data.level2score;
level2_mc.onRollOver = function () {
lightup(this);
};
level2_mc.onRollOut = function () {
dim(this);
};
level2_mc.onDragOut = level2_mc.onRollOut;
level2_mc.onRelease = function () {
transition("level2");
};
} else {
darken(level2_mc);
}
if (so.data.level3) {
level3_mc.points_txt.text = so.data.level3score;
level3_mc.onRollOver = function () {
lightup(this);
};
level3_mc.onRollOut = function () {
dim(this);
};
level3_mc.onDragOut = level3_mc.onRollOut;
level3_mc.onRelease = function () {
transition("level3");
};
} else {
darken(level3_mc);
}
if (so.data.level4) {
level4_mc.points_txt.text = so.data.level4score;
level4_mc.onRollOver = function () {
lightup(this);
};
level4_mc.onRollOut = function () {
dim(this);
};
level4_mc.onDragOut = level4_mc.onRollOut;
level4_mc.onRelease = function () {
transition("level4");
};
} else {
darken(level4_mc);
}
if (so.data.level5) {
level5_mc.points_txt.text = so.data.level5score;
level5_mc.onRollOver = function () {
lightup(this);
};
level5_mc.onRollOut = function () {
dim(this);
};
level5_mc.onDragOut = level5_mc.onRollOut;
level5_mc.onRelease = function () {
transition("level5");
};
} else {
darken(level5_mc);
}
menu_mc.onRollOver = function () {
lightup(this);
};
menu_mc.onRollOut = function () {
dim(this);
};
menu_mc.onDragOut = menu_mc.onRollOut;
menu_mc.onRelease = function () {
if (t == undefined) {
transition("menu");
}
};
if ((((so.data.level1 && (so.data.level2)) && (so.data.level3)) && (so.data.level4)) && (so.data.level5)) {
submit_mc.onRollOver = function () {
lightup(this);
};
submit_mc.onRollOut = function () {
dim(this);
};
submit_mc.onDragOut = submit_mc.onRollOut;
submit_mc.onRelease = function () {
canpost = 0;
rankz_t10_send = new LoadVars();
rankz_t10_receive = new LoadVars();
rankz_t10_send.SU0249 = "MjAyNGolZSVhJW4lcw==";
rankz_t10_send.flashkey = "U3FPV0xTRGg=";
rankz_t10_receive.onLoad = function (success) {
if (success) {
_rankz_ar_ = rankz_t10_receive.top10.split("<u/*/u>");
i = 0;
while (i < _rankz_ar_.length) {
tempv = _rankz_ar_[i].split("</*/>");
if ((tempv[0] == name_txt.text) && (tempv[1] == so.data.totalscore)) {
canpost++;
}
if ((i + 1) >= _rankz_ar_.length) {
if ((((name_txt.text.length >= 2) && (name_txt.text != "Name")) && (name_txt.text != "Error!")) && (canpost == 0)) {
bXlnYW1lX25hbWVfdmFyaWFibGU = name_txt.text;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = so.data.totalscore;
__rankz_send__("MjAyNGolZSVhJW4lcw==", "U3FPV0xTRGg=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
getURL ("http://rankz.armorbot.com/snowflakes/", "_blank");
} else {
name_txt.text = "Error!";
}
}
i++;
}
} else {
trace("ERROR");
}
};
rankz_t10_send.sendAndLoad("http://rankz.armorbot.com/get/top10.php", rankz_t10_receive, "POST");
};
} else {
submit_mc._visible = false;
name_txt._visible = false;
}
Frame 121 (247 B)
stop();
menu_mc.onRollOver = function () {
lightup(this);
};
menu_mc.onRollOut = function () {
dim(this);
};
menu_mc.onDragOut = menu_mc.onRollOut;
menu_mc.onRelease = function () {
if (t == undefined) {
transition("menu");
}
};
Frame 131 (1.73 KiB) ●
stop();
if (cursong == "menu") {
music.stop();
var music = new Sound();
music.attachSound("song1");
musicPlaying = true;
cursong = 1;
music.start();
music.onSoundComplete = function () {
music.start();
};
}
var musicInfo = [0, ["Christmas Grooves", "cornandbeans"], ["Jingle Bells", "Dj-Seri"], ["Winter Division", "WritersBlock"], ["Christmas Snow", "alertG edited by ShirkDeio"], ["Carol of the Bells", "DjKavi"]];
artist_txt.text = "Artist: " + musicInfo[cursong][1];
song_txt.text = "Song: " + musicInfo[cursong][0];
if (so.data.level5) {
songMax = 5;
} else {
songMax = 4;
}
menu_mc.onRollOver = function () {
lightup(this);
};
menu_mc.onRollOut = function () {
dim(this);
};
menu_mc.onDragOut = menu_mc.onRollOut;
menu_mc.onRelease = function () {
if (t == undefined) {
transition("menu");
}
};
previous_mc.onRollOver = function () {
lightup(this);
};
previous_mc.onRollOut = function () {
dim(this);
};
previous_mc.onDragOut = previous_mc.onRollOut;
previous_mc.onRelease = function () {
music.stop();
if ((cursong - 1) >= 1) {
cursong--;
} else {
cursong = songMax;
}
music.attachSound("song" + cursong);
music.start();
artist_txt.text = "Artist: " + musicInfo[cursong][1];
song_txt.text = "Song: " + musicInfo[cursong][0];
};
next_mc.onRollOver = function () {
lightup(this);
};
next_mc.onRollOut = function () {
dim(this);
};
next_mc.onDragOut = next_mc.onRollOut;
next_mc.onRelease = function () {
music.stop();
if ((cursong + 1) <= songMax) {
cursong++;
} else {
cursong = 1;
}
music.attachSound("song" + cursong);
music.start();
artist_txt.text = "Artist: " + musicInfo[cursong][1];
song_txt.text = "Song: " + musicInfo[cursong][0];
};
Symbol 4 MovieClip [transition] Frame 15 (130 B)
var sound = new Sound();
sound.attachSound("bells1");
sound.start();
sound.onSoundComplete = function () {
delete sound;
};
Symbol 67 Button (81 B)
on (release) {
getURL ("http://www.newgrounds.com/refer/shirkdeio", "_blank");
}
Symbol 69 MovieClip Frame 40 (8 B)
stop();
Symbol 80 Button (31 B)
on (release) {
_root.play();
}
Symbol 81 MovieClip Frame 1 (1.26 KiB) ●
function onEnterFrame() {
if (!loaded) {
var _local3 = _root.getBytesLoaded() / _root.getBytesTotal();
if (_local3 >= 1) {
play();
bar._x = initX;
loaded = true;
} else {
bar._x = initX + ((_local3 - 1) * bar._width);
}
}
var _local4 = getTimer() - time;
timeAccum = timeAccum + _local4;
while (timeAccum >= FRAME_TIME) {
var _local2 = 0;
while (_local2 < timeClips.length) {
if (timeClips[_local2]._currentframe < timeClips[_local2]._totalframes) {
timeClips[_local2].nextFrame();
} else {
timeClips[_local2].gotoAndStop(1);
}
_local2++;
}
if (loaded && (_currentframe < _totalframes)) {
nextFrame();
}
timeAccum = timeAccum - FRAME_TIME;
}
time = time + _local4;
}
stop();
_root.stop();
var initX = bar._x;
var time = getTimer();
var FRAME_TIME = 33.3333333333333;
var timeAccum = 0;
var loaded = false;
timeClips = [bargfx, tank.mc0, tank.mc1, tank.mc2, tank.mc3, tank.mc4, tank.mc4.mc0, tank.mc4.mc1, tank.mc4.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc0.mc2, tank.mc4.mc0.mc0.mc0.mc3, tank.mc4.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc2, tank.mc5.mc0];
var i = 0;
while (i < timeClips.length) {
timeClips[i].stop();
i++;
}
Symbol 81 MovieClip Frame 51 (1 B)
Symbol 424 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0 (5.86 KiB) ● ●
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 96 MovieClip [snowflake4] Frame 1 (8 B)
stop();
Symbol 100 MovieClip [gameover] Frame 19 (8 B)
stop();
Symbol 108 MovieClip [levelcomplete] Frame 19 (8 B)
stop();
Symbol 114 MovieClip [pause] Frame 20 (8 B)
stop();
Instance of Symbol 118 MovieClip in Symbol 121 MovieClip [readygo] Frame 1 (44 B)
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 118 MovieClip in Symbol 121 MovieClip [readygo] Frame 30 (44 B)
onClipEvent (load) {
this.gotoAndStop(2);
}
Symbol 122 MovieClip [snowflake1] Frame 1 (8 B)
stop();
Symbol 124 MovieClip [snowflake2] Frame 1 (8 B)
stop();
Symbol 126 MovieClip [snowflake3] Frame 1 (8 B)
stop();
Symbol 127 MovieClip [snowflake5] Frame 1 (8 B)
stop();
Symbol 130 MovieClip [cursor] Frame 1 (8 B)
stop();
Symbol 139 MovieClip Frame 1 (8 B)
stop();
Symbol 145 MovieClip Frame 1 (8 B)
stop();
Symbol 150 MovieClip [music] Frame 20 (8 B)
stop();
Symbol 170 MovieClip Frame 80 (23 B)
stop();
_root.play();
Symbol 178 MovieClip Frame 61 (18 B)
gotoAndPlay (31);
Symbol 259 MovieClip Frame 1 (8 B)
stop();
Symbol 264 MovieClip Frame 1 (8 B)
stop();
Symbol 294 MovieClip Frame 1 (120 B)
stop();
var counter = 0;
this.onEnterFrame = function () {
counter++;
if (counter >= 200) {
play();
}
};
Symbol 294 MovieClip Frame 71 (26 B)
stop();
var counter = 0;
Symbol 294 MovieClip Frame 125 (26 B)
stop();
var counter = 0;
Symbol 308 MovieClip Frame 1 (120 B)
stop();
var counter = 0;
this.onEnterFrame = function () {
counter++;
if (counter >= 200) {
play();
}
};
Symbol 308 MovieClip Frame 71 (26 B)
stop();
var counter = 0;
Symbol 308 MovieClip Frame 125 (26 B)
stop();
var counter = 0;
Symbol 357 MovieClip Frame 1 (8 B)
stop();
Symbol 357 MovieClip Frame 16 (31 B)
_root.snowman.throwing = true;
Symbol 357 MovieClip Frame 30 (17 B)
gotoAndStop (1);
Symbol 370 MovieClip Frame 70 (8 B)
stop();
Symbol 379 MovieClip Frame 70 (8 B)
stop();
Symbol 384 MovieClip Frame 70 (8 B)
stop();
Symbol 389 MovieClip Frame 70 (8 B)
stop();