Combined Code
movieClip 10 circleclip {
}
frame 1 {
play();
}
movieClip 19 {
frame 2204 {
_root.main.s1.removeMovieClip();
stop();
}
}
movieClip 27 {
frame 735 {
_root.main.s2.removeMovieClip();
stop();
}
}
movieClip 34 {
frame 207 {
_root.main.s3.removeMovieClip();
stop();
}
}
movieClip 37 {
}
movieClip 38 {
frame 849 {
_root.main.s4.removeMovieClip();
stop();
}
}
movieClip 42 {
}
movieClip 46 {
frame 2 {
_root.main.pedestral._visible = false;
}
frame 999 {
_root.main.pedestral._visible = true;
}
frame 1000 {
_root.main.s5.removeMovieClip();
stop();
}
}
movieClip 49 {
}
movieClip 51 {
}
movieClip 52 {
}
movieClip 55 {
}
movieClip 56 {
instance of movieClip 55 {
onClipEvent (load) {
gotoAndPlay(Math.floor(Math.random() * 160));
}
}
}
movieClip 57 {
}
movieClip 60 {
}
movieClip 62 {
}
movieClip 63 {
instance of movieClip 60 {
onClipEvent (load) {
gotoAndPlay(Math.floor(Math.random() * 160));
}
}
instance of movieClip 62 {
onClipEvent (load) {
gotoAndPlay(Math.floor(Math.random() * 160));
}
}
}
movieClip 64 {
}
movieClip 77 {
}
movieClip 88 {
}
movieClip 94 {
frame 2 {
stop();
}
instance girly of movieClip 88 {
onClipEvent (load) {
var trigger = 1;
}
onClipEvent (enterFrame) {
if (trigger == 20) {
_root.main.s6.play();
}
}
onClipEvent (release) {
++trigger;
}
}
frame 46 {
_root.main.gotoAndPlay(2);
}
}
movieClip 115 {
}
movieClip 126 {
}
movieClip 137 {
}
movieClip 138 {
}
movieClip 155 {
}
movieClip 160 {
}
movieClip 171 {
}
movieClip 179 {
}
movieClip 181 {
frame 1 {
_root.main.madotsuki.midget.midgetpress = true;
stop();
}
frame 2 {
_root.main.madotsuki.midget.midgetpress = false;
}
frame 20 {
_root.main.madotsuki.midget.midgetpress = true;
stop();
}
frame 21 {
_root.main.madotsuki.midget.midgetpress = false;
}
frame 39 {
_root.main.madotsuki.midget.midgetpress = true;
stop();
}
frame 40 {
_root.main.madotsuki.midget.midgetpress = false;
}
frame 58 {
_root.main.madotsuki.midget.midgetpress = true;
stop();
}
frame 77 {
_root.main.madotsuki.midget.midgetpress = true;
stop();
}
frame 78 {
_root.main.madotsuki.midget.midgetpress = false;
}
frame 96 {
_root.main.madotsuki.midget.noisepress = true;
stop();
}
}
movieClip 191 {
}
movieClip 192 {
instance of movieClip 191 {
onClipEvent (load) {
_root.main.holder._visible = false;
}
}
}
movieClip 202 {
}
movieClip 203 {
frame 1 {
frogsnd = new Sound(this);
frogsnd.attachSound('frog.wav');
}
frame 2 {
frogsnd.start(0, 0);
}
frame 15 {
gotoAndStop(1);
}
}
movieClip 216 {
}
movieClip 217 {
instance of movieClip 115 {
onClipEvent (load) {
_root.main.lamp = false;
_root.main.holder._visible = false;
_root.main.lightcolor._visible = false;
_root.main.lighting._visible = false;
}
}
instance of movieClip 138 {
onClipEvent (load) {
_root.main.lamp = false;
_root.main.holder._visible = false;
_root.main.lightcolor._visible = false;
_root.main.lighting._visible = false;
}
onClipEvent (keyPress 'a') {
_root.main.pumpkin.play();
}
}
instance of movieClip 155 {
onClipEvent (load) {
_root.main.lamp = false;
_root.main.holder._visible = true;
_root.main.lightcolor._visible = false;
_root.main.lighting._visible = false;
}
}
instance of movieClip 160 {
onClipEvent (load) {
var stoppu = false;
stopsnd1 = new Sound(this);
stopsnd2 = new Sound(this);
stopsnd1.attachSound('go.wav');
stopsnd2.attachSound('stop.wav');
_root.main.lamp = false;
_root.main.holder._visible = false;
_root.main.lightcolor._visible = false;
_root.main.lighting._visible = false;
stop();
}
onClipEvent (keyPress '<Space>') {
if (stoppu == false) {
gotoAndStop(2);
stopsnd2.start(0, 0);
_root.main.pumpkin.pumps.stop();
_root.main.riverlight01.stop();
_root.main.riverlight02.stop();
_root.main.riverlight03.stop();
_root.main.riverlight04.stop();
_root.main.riverlight05.stop();
if (_root.main.s1.okay == true) {
_root.main.s1.stop();
}
if (_root.main.s2.okay == true) {
_root.main.s2.stop();
}
if (_root.main.s3.okay == true) {
_root.main.s3.stop();
}
if (_root.main.s4.okay == true) {
_root.main.s4.stop();
}
if (_root.main.s5.okay == true) {
_root.main.s5.stop();
}
if (_root.main.s6.okay == true) {
_root.main.s6.girly.stop();
}
stoppu = true;
} else {
gotoAndStop(1);
stopsnd1.start(0, 0);
_root.main.pumpkin.pumps.play();
_root.main.riverlight01.play();
_root.main.riverlight02.play();
_root.main.riverlight03.play();
_root.main.riverlight04.play();
_root.main.riverlight05.play();
if (_root.main.s1.okay == true) {
_root.main.s1.play();
}
if (_root.main.s2.okay == true) {
_root.main.s2.play();
}
if (_root.main.s3.okay == true) {
_root.main.s3.play();
}
if (_root.main.s4.okay == true) {
_root.main.s4.play();
}
if (_root.main.s5.okay == true) {
_root.main.s5.play();
}
if (_root.main.s6.okay == true) {
_root.main.s6.girly.play();
}
stoppu = false;
}
}
}
instance of movieClip 171 {
onClipEvent (load) {
_root.main.lamp = false;
_root.main.holder._visible = false;
_root.main.lightcolor._visible = false;
_root.main.lighting._visible = false;
}
}
instance midget of movieClip 181 {
onClipEvent (load) {
noise1 = new Sound(this);
noise2 = new Sound(this);
noise1.attachSound('noise01.wav');
noise2.attachSound('noise02.wav');
var my_sounds = [noise1, noise2];
var midgetpress = true;
var noisepress = false;
_root.main.lamp = false;
_root.main.holder._visible = false;
_root.main.lightcolor._visible = false;
_root.main.lighting._visible = false;
stop();
}
onClipEvent (keyPress '<Space>') {
if (midgetpress == true) {
_root.main.transcircle.gotoAndPlay(1);
play();
}
if (noisepress == true) {
var my_num = Math.floor(Math.random() * 3);
var ChosenSound = my_sounds[my_num];
ChosenSound.start(0, 0);
}
}
}
instance of movieClip 192 {
onClipEvent (load) {
_root.main.lamp = true;
var lamppress = true;
_root.main.holder._visible = false;
_root.main.lightcolor._visible = false;
_root.main.lighting._visible = true;
stop();
}
onClipEvent (keyPress '<Space>') {
if (lamppress == true) {
_root.main.lighting._visible = true;
gotoAndStop(1);
lamppress = false;
} else {
_root.main.lighting._visible = false;
gotoAndStop(2);
lamppress = true;
}
}
}
instance of movieClip 203 {
onClipEvent (load) {
stop();
_root.main.lamp = false;
_root.main.holder._visible = false;
_root.main.lightcolor._visible = false;
_root.main.lighting._visible = false;
}
onClipEvent (keyPress '<Space>') {
play();
}
}
instance of movieClip 216 {
onClipEvent (load) {
_root.main.lamp = false;
_root.main.holder._visible = false;
_root.main.lightcolor._visible = false;
_root.main.lighting._visible = false;
}
}
instance glow of movieClip 115 {
onClipEvent (load) {
glowsnd = new Sound(this);
glowsnd.attachSound('glow.wav');
var glowpress = true;
_root.main.lamp = false;
_root.main.holder._visible = false;
_root.main.lightcolor._visible = true;
_root.main.lighting._visible = false;
}
onClipEvent (keyPress '<Space>') {
if (glowpress == true) {
glowsnd.start(0, 0);
_root.main.lightcolor.play();
}
}
}
}
movieClip 222 {
}
movieClip 231 {
}
movieClip 232 {
frame 23 {
stop();
}
}
movieClip 234 {
}
movieClip 252 {
frame 1 {
_root.main.madotsuki.glow.glowpress = true;
stop();
}
frame 2 {
_root.main.madotsuki.glow.glowpress = false;
}
frame 20 {
_root.main.madotsuki.glow.glowpress = true;
stop();
}
frame 21 {
_root.main.madotsuki.glow.glowpress = false;
}
frame 40 {
_root.main.madotsuki.glow.glowpress = true;
stop();
}
frame 41 {
_root.main.madotsuki.glow.glowpress = false;
}
frame 60 {
_root.main.madotsuki.glow.glowpress = true;
stop();
}
frame 61 {
_root.main.madotsuki.glow.glowpress = false;
}
frame 80 {
_root.main.madotsuki.glow.glowpress = true;
stop();
}
frame 81 {
_root.main.madotsuki.glow.glowpress = false;
}
frame 100 {
_root.main.madotsuki.glow.glowpress = true;
stop();
}
frame 101 {
_root.main.madotsuki.glow.glowpress = false;
}
frame 120 {
_root.main.madotsuki.glow.glowpress = true;
stop();
}
frame 121 {
_root.main.madotsuki.glow.glowpress = false;
}
frame 140 {
_root.main.madotsuki.glow.glowpress = true;
stop();
}
frame 141 {
_root.main.madotsuki.glow.glowpress = false;
}
frame 160 {
_root.main.madotsuki.glow.glowpress = true;
gotoAndStop(20);
}
}
movieClip 260 {
frame 1 {
_root.main.madotsuki.buttpress = false;
}
frame 26 {
_root.main.madotsuki.buttpress = true;
stop();
}
}
movieClip 278 {
frame 156 {
stop();
}
}
movieClip 294 {
}
movieClip 309 {
frame 1 {
function movedrop() {
i = 0;
for (;;) {
if (i >= _root.main.holder.maxdrops) {
return undefined;
}
focuseddrop = _root.main.holder['drop' + i];
focuseddrop._rotation = -dropslop;
focuseddrop._y += 25 + downspeed / focuseddrop._yscale;
focuseddrop.x += Math.tan(dropslop);
if (focuseddrop._y >= Stage.height + 20) {
focuseddrop._y = random(30);
focuseddrop._x = random(Stage.width);
}
++i;
}
}
stop();
transforma = new Sound(this);
transforma.attachSound('transform.wav');
bgm = new Sound(this);
bgm.attachSound('bgm.wav');
bgm.start(0, 9999);
var lamp = true;
_root.main.createEmptyMovieClip('holder', this.getNextHighestDepth());
_root.main.holder.maxdrops = 150;
var downspeed = 900;
var dropslop = 10;
i = 0;
while (i < holder.maxdrops) {
_root.main.holder.attachMovie('circleclip', 'drop' + i, i + 5);
focuseddrop = _root.main.holder['drop' + i];
focuseddrop.cacheAsBitmap = true;
focuseddrop._x = random(Stage.width);
focuseddrop._y = random(Stage.height);
focuseddrop._yscale = random(100);
focuseddrop._rotation = -dropslop;
++i;
}
var dropup = setInterval(movedrop, 1);
}
instance s1 of movieClip 19 {
onClipEvent (load) {
function myMethode() {
this.play();
okay = true;
clearInterval(myInterval);
}
stop();
var myInterval;
var okay = false;
myInterval = setInterval(this, 'myMethode', 60000);
}
}
instance s2 of movieClip 27 {
onClipEvent (load) {
function myMethode() {
this.play();
okay = true;
clearInterval(myInterval);
}
stop();
var myInterval;
var okay = false;
myInterval = setInterval(this, 'myMethode', 120000);
}
}
instance s3 of movieClip 34 {
onClipEvent (load) {
function myMethode() {
this.play();
okay = true;
clearInterval(myInterval);
}
stop();
var myInterval;
var okay = false;
myInterval = setInterval(this, 'myMethode', 180000);
}
}
instance s4 of movieClip 38 {
onClipEvent (load) {
function myMethode() {
this.play();
okay = true;
clearInterval(myInterval);
}
stop();
var myInterval;
var okay = false;
myInterval = setInterval(this, 'myMethode', 240000);
}
}
instance s5 of movieClip 46 {
onClipEvent (load) {
function myMethode() {
this.play();
okay = true;
clearInterval(myInterval);
}
stop();
var myInterval;
var okay = false;
myInterval = setInterval(this, 'myMethode', 300000);
}
}
instance riverlight02 of movieClip 52 {
onClipEvent (load) {
gotoAndPlay(Math.floor(Math.random() * 240));
}
}
instance riverlight03 of movieClip 57 {
onClipEvent (load) {
gotoAndPlay(Math.floor(Math.random() * 240));
}
}
instance riverlight01 of movieClip 64 {
onClipEvent (load) {
gotoAndPlay(Math.floor(Math.random() * 240));
}
}
instance riverlight05 of movieClip 77 {
onClipEvent (load) {
gotoAndPlay(12);
}
}
instance s6 of movieClip 94 {
onClipEvent (load) {
function myMethode() {
this.play();
okay = true;
}
stop();
var okay = false;
}
}
instance madotsuki of movieClip 217 {
onClipEvent (load) {
var buttpress = true;
stop();
}
onClipEvent (release) {
if (buttpress == true) {
_root.main.transforma.start(0, 0);
gotoAndStop(Math.floor(Math.random() * 11));
_root.main.transcircle.gotoAndPlay(1);
}
}
}
instance lamp of movieClip 222 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.main.lamp == false) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
}
instance pumpkin of movieClip 232 {
onClipEvent (load) {
stop();
}
}
instance transcircle of movieClip 260 {
onClipEvent (load) {
gotoAndStop(26);
}
}
frame 244 {
stop();
}
}
movieClip 310 {
frame 1 {
function camControl() {
rp.x = _x;
rp.y = _y;
var v5 = camH * (_yscale * 0.01);
var v6 = camW * (_xscale * 0.01);
var v3 = sH / v5;
var v4 = sW / v6;
_x2 = (v6 / 2) * v4;
_y2 = (v5 / 2) * v3;
_xscale2 = v4 * 100;
_yscale2 = v3 * 100;
_rotation2 = -_rotation;
_parent.filters = this.filters;
_parent.transform.colorTransform = this.transform.colorTransform;
}
function reset() {
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
_parent._rotation = 0;
_parent._visible = true;
}
function set_x2(value) {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._x += value - v2.x;
}
function get_x2() {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
return v2.x;
}
function set_y2(value) {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._y += value - v2.y;
}
function get_y2() {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
return v2.y;
}
function get_xscale2() {
return _parent._xscale;
}
function set_xscale2(value) {
setProperty2('_xscale', value);
}
function get_yscale2() {
return _parent._yscale;
}
function set_yscale2(value) {
setProperty2('_yscale', value);
}
function get_rotation2() {
return parent.rotation;
}
function set_rotation2(value) {
setProperty2('_rotation', value);
}
function setProperty2(prop, n) {
var v3 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v3);
_parent[prop] = n;
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._x -= v2.x - v3.x;
_parent._y -= v2.y - v3.y;
}
_visible = true;
addProperty('_x2', get_x2, set_x2);
addProperty('_y2', get_y2, set_y2);
addProperty('_xscale2', get_xscale2, set_xscale2);
addProperty('_yscale2', get_yscale2, set_yscale2);
addProperty('_rotation2', get_rotation2, set_rotation2);
var oldScaleMode = stage.scaleMode;
stage.scaleMode = 'exactFit';
var sW = Stage.width;
var sH = Stage.height;
stage.scaleMode = oldScaleMode;
var bounds_obj = this.getBounds(this);
var camH = Math.abs(bounds_obj.yMax - bounds_obj.yMin);
var camW = Math.abs(bounds_obj.xMax - bounds_obj.xMin);
var rp = {'x': this._x, 'y': this._y};
onEnterFrame = function () {
camControl();
};
this.onUnload = reset;
}
}
frame 25 {
stop();
}