Frame 1
stop();
init = function () {
width = 330;
height = 400;
max_snowsize = 10;
snowflakes = 50;
snow = 0;
while (snow < snowflakes) {
t = attachMovie("snow", "snow" + snow, snow);
t._alpha = 20 + (Math.random() * 60);
t._x = (-(width / 2)) + (Math.random() * (1.5 * width));
t._y = (-(height / 2)) + (Math.random() * (1.5 * height));
t._xscale = (t._yscale = 50 + (Math.random() * (max_snowsize * 10)));
t.k = 1 + (Math.random() * 2);
t.wind = -1.5 + (Math.random() * 4.2);
t.onEnterFrame = mover;
snow++;
}
};
mover = function () {
this._y = this._y + this.k;
this._x = this._x + this.wind;
if (this._y > (height + 10)) {
this._y = -20;
}
if (this._x > (width + 20)) {
this._x = (-(width / 2)) + (Math.random() * (1.5 * width));
this._y = -20;
} else if (this._x < -20) {
this._x = (-(width / 2)) + (Math.random() * (1.5 * width));
this._y = -20;
}
};
init();
Instance of Symbol 10 MovieClip "cirno" in Frame 1
onClipEvent (load) {
_root.speed = 8;
_root.cirnoscale = 25;
_root.killed = 0;
_root.icecreamCollected = 0;
b = 0;
timer = 0;
_root.score = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(40)) {
this._y = this._y + _root.speed;
if (hitTest(_root.bottomwall)) {
this._y = this._y - _root.speed;
}
}
if (Key.isDown(38)) {
this._y = this._y - _root.speed;
if (hitTest(_root.topwall)) {
this._y = this._y + _root.speed;
}
}
if (Key.isDown(39)) {
this._xscale = _root.cirnoscale;
if (hitTest(_root.rightwall)) {
this._x = this._x - _root.speed;
}
this._x = this._x + _root.speed;
}
if (Key.isDown(37)) {
this._xscale = -_root.cirnoscale;
if (hitTest(_root.leftwall)) {
this._x = this._x + _root.speed;
}
this._x = this._x - _root.speed;
}
if (!Key.isDown(90)) {
timer = 3;
}
var ebullets = 0;
while (ebullets < 3) {
if (_root.cirno.hitbox.hitTest(_root["ebullet" + ebullets])) {
_root.time = _root.time - 6;
_root["ebullet" + ebullets]._y = (-Math.random()) * 500;
_root["ebullet" + ebullets]._x = (Math.random() * 300) + 25;
}
ebullets++;
}
var enemies = 0;
while (enemies < 5) {
if (_root.cirno.hitbox.hitTest(_root["enemy" + enemies])) {
_root.time = _root.time - 8;
_root["enemy" + enemies]._y = (-Math.random()) * 300;
_root["enemy" + enemies]._x = (Math.random() * 300) + 25;
}
enemies++;
}
if (this.hitTest(_root.icecream)) {
_root.score = _root.score + 300;
_root.icecreamCollected++;
_root.time = _root.time + 15;
_root.icecream._y = ((-Math.random()) * 500) - 2000;
_root.icecream._x = (Math.random() * 300) + 25;
}
if (Key.isDown(90)) {
if (timer >= 3) {
b++;
duplicateMovieClip ("_root.bullet", "bullet" + b, b + 75);
_root["bullet" + b]._x = this._x;
_root["bullet" + b]._y = this._y - 10;
_root["bullet" + b]._visible = true;
timer = 0;
}
timer++;
}
}
Instance of Symbol 12 MovieClip "bullet" in Frame 1
onClipEvent (load) {
bulletspeed = 15;
}
onClipEvent (enterFrame) {
var b = 0;
while (b < bulletspeed) {
_y = (_y-1);
b++;
}
var h = 0;
while (h <= 5) {
if (this.hitTest(_root["enemy" + h])) {
_root["enemy" + h].play();
this.removeMovieClip();
}
h++;
}
if (this._y <= -10) {
this.removeMovieClip();
}
}
Instance of Symbol 14 MovieClip "ebullet1" in Frame 1
onClipEvent (enterFrame) {
this._y = this._y + 10;
if (this._y >= 400) {
this._y = (-Math.random()) * 500;
this._x = (Math.random() * 300) + 25;
}
}
Instance of Symbol 14 MovieClip "ebullet2" in Frame 1
onClipEvent (enterFrame) {
this._y = this._y + 15;
if (this._y >= 400) {
this._y = (-Math.random()) * 500;
this._x = (Math.random() * 300) + 25;
}
}
Instance of Symbol 14 MovieClip "ebullet3" in Frame 1
onClipEvent (enterFrame) {
this._y = this._y + 12.5;
if (this._y >= 400) {
this._y = (-Math.random()) * 500;
this._x = (Math.random() * 300) + 25;
}
}
Instance of Symbol 17 MovieClip "enemy1" in Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 10;
this._y = this._y + 10;
if (this._y >= 400) {
this._y = (-Math.random()) * 300;
this._x = (Math.random() * 300) + 25;
}
}
Instance of Symbol 20 MovieClip "enemy2" in Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 15;
this._y = this._y + 15;
if (this._y >= 400) {
this._y = (-Math.random()) * 300;
this._x = (Math.random() * 300) + 25;
}
}
Instance of Symbol 23 MovieClip "enemy3" in Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 7.5;
this._y = this._y + 7.5;
if (this._y >= 400) {
this._y = (-Math.random()) * 300;
this._x = (Math.random() * 300) + 25;
}
}
Instance of Symbol 26 MovieClip "enemy4" in Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 5;
this._y = this._y + 5;
if (this._y >= 400) {
this._y = (-Math.random()) * 300;
this._x = (Math.random() * 300) + 25;
}
}
Instance of Symbol 29 MovieClip "enemy5" in Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 15;
this._y = this._y + 15;
if (this._y >= 400) {
this._y = (-Math.random()) * 300;
this._x = (Math.random() * 300) + 25;
}
}
Instance of Symbol 31 MovieClip "icecream" in Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 15;
this._y = this._y + 15;
if (this._y >= 400) {
this._y = ((-Math.random()) * 500) - 2000;
this._x = (Math.random() * 300) + 25;
}
}
Instance of Symbol 45 MovieClip in Frame 1
onClipEvent (load) {
_root.time = 175;
}
onClipEvent (enterFrame) {
_root.time = _root.time - 0.2;
this._width = _root.time;
if (_root.time <= 0) {
_root.gotoAndStop(2);
}
}
Frame 4
myLoaded = Math.round(getBytesLoaded());
myTotal = Math.round(getBytesTotal());
myPercent = myLoaded / myTotal;
myBar._width = myPercent * 150;
myText = Math.round(myPercent * 100) + "%";
if (myLoaded == myTotal) {
gotoAndStop (5);
} else {
gotoAndPlay (3);
}
Symbol 17 MovieClip Frame 1
stop();
Symbol 17 MovieClip Frame 8
this._y = (-Math.random()) * 300;
this._x = (Math.random() * 300) + 25;
_root.score = _root.score + 100;
_root.killed++;
_root.time = _root.time + 0.8;
gotoAndStop (1);
Symbol 20 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 8
this._y = (-Math.random()) * 300;
this._x = (Math.random() * 300) + 25;
_root.score = _root.score + 100;
_root.killed++;
_root.time = _root.time + 0.8;
gotoAndStop (1);
Symbol 23 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 8
this._y = (-Math.random()) * 300;
this._x = (Math.random() * 300) + 25;
_root.score = _root.score + 100;
_root.killed++;
_root.time = _root.time + 0.8;
gotoAndStop (1);
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 8
this._y = (-Math.random()) * 300;
this._x = (Math.random() * 300) + 25;
_root.score = _root.score + 100;
_root.killed++;
_root.time = _root.time + 0.8;
gotoAndStop (1);
Symbol 29 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 8
this._y = (-Math.random()) * 300;
this._x = (Math.random() * 300) + 25;
_root.score = _root.score + 100;
_root.killed++;
_root.time = _root.time + 0.8;
gotoAndStop (1);
Symbol 51 Button
on (release) {
getURL ("http://www.walfas.org/", "_blank");
}
Symbol 59 Button
on (release) {
gotoAndStop (1);
}
Symbol 69 Button
on (release) {
play();
}