Frame 1
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
stop();
firsttime = 0;
blue = 0;
green = 0;
purple = 0;
yellow = 0;
crash = 0;
freeze = 0;
sky_a_crash = 0;
sky_b_crash = 0;
sky_c_crash = 0;
sky_d_crash = 0;
tree_crash = 0;
snow_crash = 0;
water_crash = 0;
pipe_crash = 0;
health_crash = 0;
health_enter = 0;
sky_a_behind = 0;
sky_a_open = 0;
sky_chest_crash = 0;
sky_d_crash = 0;
sky_table_crash = 0;
sky_chair_crash = 0;
sky_b_sit = 0;
sky_kid_crash = 0;
sky_cat_crash = 0;
sky_c_play = 0;
kid_tree = 0;
kid_snow = 0;
kid_grass = 0;
kid_swamp = 0;
kid_find = 0;
stopd = 0;
stopu = 0;
stopr = 0;
stopl = 0;
behind = 0;
pink_behind = 0;
snow_behind = 0;
water_behind = 0;
pipe_behind = 0;
pink_behind1 = 0;
health_behind = 0;
win_1 = 0;
win_2 = 0;
win_3 = 0;
win_4 = 0;
w1 = 0;
wm1 = 0;
w2 = 0;
wm2 = 0;
w3 = 0;
wm3 = 0;
w4 = 0;
wm4 = 0;
w5 = -1;
wm5 = 0;
w6 = 0;
wm6 = 0;
w7 = 0;
wm7 = 0;
w8 = 0;
wm8 = 0;
w9 = 0;
wm9 = 0;
r1 = 0;
rm1 = 0;
r2 = 0;
rm2 = 0;
r3 = 0;
rm3 = 0;
r4 = 0;
rm4 = 0;
receive_key = 0;
snow_key = 0;
grass_key = 0;
tree_key = 0;
swamp_key = 0;
key_n = 0;
snow_key_appear = 0;
grass_key_appear = 0;
swamp_key_appear = 0;
tree_key_appear = 0;
tree_hole1 = 0;
tree_hole2 = 0;
tree_hole3 = 0;
tree_hole4 = 0;
tree_hole5 = 0;
keycount = 0;
tree_key_x = 0;
tree_key_y = 0;
sky_jewel = randRange(1, 2);
gold = 0;
a_lock = 0;
b_lock = 0;
c_lock = 0;
d_lock = 0;
a_crash = 0;
b_crash = 0;
c_crash = 0;
d_crash = 0;
fss = "0";
Frame 2
stop();
Frame 3
mainroomsound = new Sound();
mainroomsound.attachSound("main_room");
mainroomsound.start(0, 0);
musicposition = 0;
doorsmall = new Sound();
doorsmall.attachSound("door_small");
doorlarge = new Sound();
doorlarge.attachSound("door_large");
doorlock = new Sound();
doorlock.attachSound("door_lock");
stop();
Instance of Symbol 443 MovieClip "sky_c" in Frame 3
/* no clip actions */
Instance of Symbol 634 MovieClip "sky_a" in Frame 3
/* no clip actions */
Instance of Symbol 1305 MovieClip "sky_b" in Frame 3
/* no clip actions */
Instance of Symbol 1391 MovieClip "red" in Frame 3
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
_root.musicposition = _root.mainroomsound.position / 1000;
if (_root.musicposition == 40.8) {
_root.mainroomsound.start(0, 0);
}
if ((((((((hitTest(_root.water.base._x, _root.water.base._y, true) or hitTest(_root.sun.base._x, _root.sun.base._y, true)) or hitTest(_root.snow.base._x, _root.snow.base._y, true)) or hitTest(_root.grass.base._x, _root.grass.base._y, true)) or hitTest(_root.pipe.base._x, _root.pipe.base._y, true)) or hitTest(_root.swamp.base._x, _root.swamp.base._y, true)) or hitTest(_root.tree.base._x, _root.tree.base._y, true)) or hitTest(_root.health.base._x, _root.health.base._y, true)) or hitTest(_root.pink.base._x, _root.pink.base._y, true)) {
_root.crash = 1;
} else {
_root.crash = 0;
}
}
Instance of Symbol 1393 MovieClip "purple" in Frame 3
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.water.base._x, _root.water.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w2 = 2;
_root.water.play();
_root.sun.play();
}
if (hitTest(_root.sun.base._x, _root.sun.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w3 = 2;
_root.sun.play();
_root.snow.play();
}
if (hitTest(_root.snow.base._x, _root.snow.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w1 = 2;
_root.snow.play();
_root.water.play();
}
if (hitTest(_root.grass.base._x, _root.grass.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w5 = 2;
_root.grass.play();
_root.pipe.play();
}
if (hitTest(_root.pipe.base._x, _root.pipe.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w6 = 2;
_root.pipe.play();
_root.swamp.play();
}
if (hitTest(_root.swamp.base._x, _root.swamp.base._y, true)) {
if ((_root.key_n > 0) && (_root.b_lock == 0)) {
_root.b_lock = 1;
_root.key_n--;
}
if (_root.b_lock == 1) {
stopAllSounds();
_root.doorlarge.start(0, 0);
_root.r2 = 1;
_root.swamp.play();
_root.sky_b.play();
} else {
_root.doorlock.start(0, 0);
_root.b_crash = 1;
}
} else {
_root.b_crash = 0;
}
if (hitTest(_root.tree.base._x, _root.tree.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w8 = 2;
_root.tree.play();
_root.health.play();
}
if (hitTest(_root.health.base._x, _root.health.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w9 = 2;
_root.health.play();
_root.pink.play();
}
if (hitTest(_root.pink.base._x, _root.pink.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w7 = 2;
_root.pink.play();
_root.tree.play();
}
}
Instance of Symbol 1395 MovieClip "green" in Frame 3
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.water.base._x, _root.water.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w7 = 4;
_root.water.play();
_root.tree.play();
}
if (hitTest(_root.grass.base._x, _root.grass.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w1 = 4;
_root.grass.play();
_root.water.play();
}
if (hitTest(_root.tree.base._x, _root.tree.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w4 = 4;
_root.tree.play();
_root.grass.play();
}
if (hitTest(_root.sun.base._x, _root.sun.base._y, true)) {
if ((_root.key_n > 0) && (_root.a_lock == 0)) {
_root.a_lock = 1;
_root.key_n--;
}
if (_root.a_lock == 1) {
stopAllSounds();
_root.doorlarge.start(0, 0);
_root.r1 = 1;
_root.sun.play();
_root.sky_a.play();
} else {
_root.doorlock.start(0, 0);
_root.a_crash = 1;
}
} else {
_root.a_crash = 0;
}
if (hitTest(_root.pipe.base._x, _root.pipe.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w2 = 4;
_root.pipe.play();
_root.sun.play();
}
if (hitTest(_root.health.base._x, _root.health.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w5 = 4;
_root.health.play();
_root.pipe.play();
}
if (hitTest(_root.snow.base._x, _root.snow.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w9 = 4;
_root.snow.play();
_root.pink.play();
}
if (hitTest(_root.swamp.base._x, _root.swamp.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w3 = 4;
_root.swamp.play();
_root.snow.play();
}
if (hitTest(_root.pink.base._x, _root.pink.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w6 = 4;
_root.pink.play();
_root.swamp.play();
}
}
Instance of Symbol 1397 MovieClip "blue" in Frame 3
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.water.base._x, _root.water.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w3 = 3;
_root.water.play();
_root.snow.play();
}
if (hitTest(_root.sun.base._x, _root.sun.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w1 = 3;
_root.sun.play();
_root.water.play();
}
if (hitTest(_root.snow.base._x, _root.snow.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w2 = 3;
_root.snow.play();
_root.sun.play();
}
if (hitTest(_root.grass.base._x, _root.grass.base._y, true)) {
if ((_root.key_n > 0) && (_root.c_lock == 0)) {
_root.c_lock = 1;
_root.key_n--;
}
if (_root.c_lock == 1) {
stopAllSounds();
_root.doorlarge.start(0, 0);
_root.r3 = 1;
_root.grass.play();
_root.sky_c.play();
} else {
_root.doorlock.start(0, 0);
_root.c_crash = 1;
}
} else {
_root.c_crash = 0;
}
if (hitTest(_root.pipe.base._x, _root.pipe.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w4 = 3;
_root.pipe.play();
_root.grass.play();
}
if (hitTest(_root.swamp.base._x, _root.swamp.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w5 = 3;
_root.swamp.play();
_root.pipe.play();
}
if (hitTest(_root.tree.base._x, _root.tree.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w9 = 3;
_root.tree.play();
_root.pink.play();
}
if (hitTest(_root.health.base._x, _root.health.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w7 = 3;
_root.health.play();
_root.tree.play();
}
if (hitTest(_root.pink.base._x, _root.pink.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w8 = 3;
_root.pink.play();
_root.health.play();
}
}
Instance of Symbol 1399 MovieClip "yellow" in Frame 3
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.water.base._x, _root.water.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w4 = 1;
_root.water.play();
_root.grass.play();
}
if (hitTest(_root.grass.base._x, _root.grass.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w7 = 1;
_root.grass.play();
_root.tree.play();
}
if (hitTest(_root.tree.base._x, _root.tree.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w1 = 1;
_root.tree.play();
_root.water.play();
}
if (hitTest(_root.sun.base._x, _root.sun.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w5 = 1;
_root.sun.play();
_root.pipe.play();
}
if (hitTest(_root.pipe.base._x, _root.pipe.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w8 = 1;
_root.pipe.play();
_root.health.play();
}
if (hitTest(_root.health.base._x, _root.health.base._y, true)) {
if ((_root.key_n > 0) && (_root.d_lock == 0)) {
_root.d_lock = 1;
_root.key_n--;
}
if (_root.d_lock == 1) {
stopAllSounds();
_root.doorlarge.start(0, 0);
_root.r4 = 1;
_root.health.play();
_root.sky_d.play();
} else {
_root.doorlock.start(0, 0);
_root.d_crash = 1;
}
} else {
_root.d_crash = 0;
}
if (hitTest(_root.snow.base._x, _root.snow.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w6 = 1;
_root.snow.play();
_root.swamp.play();
}
if (hitTest(_root.swamp.base._x, _root.swamp.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w9 = 1;
_root.swamp.play();
_root.pink.play();
}
if (hitTest(_root.pink.base._x, _root.pink.base._y, true)) {
stopAllSounds();
_root.doorsmall.start(0, 0);
_root.mainroomsound.start(_root.musicposition, 0);
_root.w3 = 1;
_root.pink.play();
_root.snow.play();
}
}
Instance of Symbol 1401 MovieClip "tree_red" in Frame 3
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.tree_red.hitTest(_root.tree.base._x, _root.tree.base._y, true)) {
_root.tree_crash = 1;
} else {
_root.tree_crash = 0;
}
}
Instance of Symbol 1403 MovieClip "tree_blue" in Frame 3
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.tree.base._x, _root.tree.base._y, true)) {
_root.behind = 1;
} else {
_root.behind = 0;
}
}
Instance of Symbol 621 MovieClip in Frame 3
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.health.base._x, _root.health.base._y, true)) {
_root.health_behind = 1;
} else {
_root.health_behind = 0;
}
}
Instance of Symbol 1405 MovieClip "health_yel" in Frame 3
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.health_yel.hitTest(_root.health.base._x, _root.health.base._y, true)) {
_root.health_enter = 1;
} else {
_root.health_enter = 0;
}
}
Instance of Symbol 619 MovieClip "health_red" in Frame 3
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.health_red.hitTest(_root.health.base._x, _root.health.base._y, true)) {
_root.health_crash = 1;
} else {
_root.health_crash = 0;
}
}
Instance of Symbol 1407 MovieClip in Frame 3
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.snow.base._x, _root.snow.base._y, true)) {
_root.snow_crash = 1;
} else {
_root.snow_crash = 0;
}
}
Instance of Symbol 1409 MovieClip in Frame 3
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.snow.base._x, _root.snow.base._y, true)) {
_root.snow_behind = 1;
} else {
_root.snow_behind = 0;
}
}
Instance of Symbol 1411 MovieClip in Frame 3
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.pink.base._x, _root.pink.base._y, true)) {
_root.pink_behind = 1;
} else {
_root.pink_behind = 0;
}
}
Instance of Symbol 1413 MovieClip in Frame 3
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.pink.base._x, _root.pink.base._y, true)) {
_root.pink_behind1 = 1;
} else {
_root.pink_behind1 = 0;
}
}
Instance of Symbol 1415 MovieClip "water_blue" in Frame 3
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.water.base._x, _root.water.base._y, true)) {
_root.water_behind = 1;
} else {
_root.water_behind = 0;
}
}
Instance of Symbol 1417 MovieClip "water_red" in Frame 3
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.water.base._x, _root.water.base._y, true)) {
_root.water_crash = 1;
} else {
_root.water_crash = 0;
}
}
Instance of Symbol 1419 MovieClip in Frame 3
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.pipe.base._x, _root.pipe.base._y, true)) {
_root.pipe_crash = 1;
} else {
_root.pipe_crash = 0;
}
}
Instance of Symbol 1421 MovieClip in Frame 3
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.pipe.base._x, _root.pipe.base._y, true)) {
_root.pipe_behind = 1;
} else {
_root.pipe_behind = 0;
}
}
Symbol 102 MovieClip [leaf] Frame 1
rand = random(30) + 1;
gotoAndPlay(rand);
Symbol 102 MovieClip [leaf] Frame 60
gotoAndPlay (2);
Symbol 115 MovieClip [fish] Frame 1
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
gotoAndPlay(randRange(2, 45));
Symbol 115 MovieClip [fish] Frame 45
this.gotoAndPlay(2);
Symbol 154 MovieClip Frame 1
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
gotoAndPlay(randRange(1, 11));
Symbol 168 MovieClip Frame 113
stop();
Symbol 174 MovieClip Frame 15
_root.fade_outro.intro.intro_anim.cacheAsBitmap = true;
_root.fade_outro.intro.intro_mask.cacheAsBitmap = true;
_root.fade_outro.intro.intro_anim.setMask("fade_outro.intro.intro_mask");
Symbol 174 MovieClip Frame 73
_root.fade_outro.intro.little.cacheAsBitmap = true;
_root.fade_outro.intro.little_mask.cacheAsBitmap = true;
_root.fade_outro.intro.little.setMask("fade_outro.intro.little_mask");
Symbol 174 MovieClip Frame 127
stop();
Symbol 182 MovieClip Frame 76
stop();
Symbol 183 MovieClip Frame 140
_root.fade_outro.fade_room.cacheAsBitmap = true;
_root.fade_outro.fade.cacheAsBitmap = true;
_root.fade_outro.fade_room.setMask("fade_outro.fade");
Symbol 183 MovieClip Frame 215
stop();
Symbol 193 MovieClip Frame 11
stop();
Symbol 200 MovieClip Frame 30
this.gotoAndPlay(1);
Symbol 200 MovieClip Frame 37
stop();
Symbol 201 MovieClip Frame 165
stop();
Instance of Symbol 200 MovieClip in Symbol 201 MovieClip Frame 165
on (rollOver) {
this.gotoAndPlay(31);
}
on (rollOut) {
this.gotoAndPlay(1);
}
on (press) {
_parent.play();
}
Symbol 201 MovieClip Frame 175
stop();
_root.play();
Symbol 253 MovieClip Frame 15
stop();
Symbol 264 MovieClip Frame 25
kirupaSound = new Sound(this);
kirupaSound.attachSound("pipe_pop");
kirupaSound.start(0, 1);
Instance of Symbol 253 MovieClip in Symbol 264 MovieClip Frame 26
on (press) {
_parent.play();
_parent.man.play();
}
Symbol 264 MovieClip Frame 29
stop();
man.stop();
Symbol 264 MovieClip Frame 33
kirupaSound = new Sound(this);
kirupaSound.attachSound("boy_grunts");
kirupaSound.start(0, 1);
Symbol 264 MovieClip Frame 51
this._parent.play();
Symbol 280 MovieClip Frame 9
stop();
Symbol 325 MovieClip Frame 6
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
if (randRange(1, 5) == 1) {
} else {
this.gotoAndPlay(1);
}
Symbol 326 MovieClip Frame 1
this.createEmptyMovieClip("s1", 1);
my_sound1 = new Sound(s1);
my_sound1.attachSound("cat_purr");
my_sound1.start(0, 999);
my_sound1.setVolume(100);
Symbol 374 MovieClip Frame 6
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
if (randRange(1, 2) == 1) {
this.gotoAndPlay(1);
}
Symbol 374 MovieClip Frame 20
this.gotoAndPlay(1);
Symbol 374 MovieClip Frame 33
stop();
Symbol 374 MovieClip Frame 48
this._visible = false;
_root.kid_find = 1;
stop();
Symbol 387 MovieClip Frame 1
stop();
Symbol 387 MovieClip Frame 15
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
if (randRange(1, 10) == 1) {
this.gotoAndPlay(12);
}
Symbol 387 MovieClip Frame 38
this.gotoAndPlay(12);
Symbol 396 MovieClip Frame 1
kirupaSound = new Sound(this);
kirupaSound.attachSound("step_01_" + _root.fss);
kirupaSound.start(0, 1);
Symbol 396 MovieClip Frame 5
kirupaSound = new Sound(this);
kirupaSound.attachSound("step_02_" + _root.fss);
kirupaSound.start(0, 1);
Symbol 412 MovieClip Frame 9
this.createEmptyMovieClip("s1", 1);
my_sound1 = new Sound(s1);
my_sound1.attachSound("key_get");
if (_root.receive_key == 1) {
my_sound1.setVolume(20);
my_sound1.start(0, 1);
}
Symbol 412 MovieClip Frame 38
if (_root.receive_key == 1) {
_root.key_collect.play();
}
_root.receive_key = 0;
_root.freeze = 0;
Symbol 421 MovieClip Frame 1
kirupaSound = new Sound(this);
kirupaSound.attachSound("step_01_" + _root.fss);
kirupaSound.start(0, 1);
Symbol 421 MovieClip Frame 5
kirupaSound = new Sound(this);
kirupaSound.attachSound("step_02_" + _root.fss);
kirupaSound.start(0, 1);
Symbol 429 MovieClip Frame 9
this.createEmptyMovieClip("s1", 1);
my_sound1 = new Sound(s1);
my_sound1.attachSound("key_get");
if (_root.receive_key == 1) {
my_sound1.setVolume(20);
my_sound1.start(0, 1);
}
Symbol 429 MovieClip Frame 38
if (_root.receive_key == 1) {
_root.key_collect.play();
}
_root.receive_key = 0;
_root.freeze = 0;
Symbol 432 MovieClip Frame 9
this.createEmptyMovieClip("s1", 1);
my_sound1 = new Sound(s1);
my_sound1.attachSound("key_get");
if (_root.receive_key == 1) {
my_sound1.setVolume(20);
my_sound1.start(0, 1);
}
Symbol 432 MovieClip Frame 38
if (_root.receive_key == 1) {
_root.key_collect.play();
}
_root.receive_key = 0;
_root.freeze = 0;
Symbol 435 MovieClip Frame 9
this.createEmptyMovieClip("s1", 1);
my_sound1 = new Sound(s1);
my_sound1.attachSound("key_get");
if (_root.receive_key == 1) {
my_sound1.setVolume(20);
my_sound1.start(0, 1);
}
Symbol 435 MovieClip Frame 38
if (_root.receive_key == 1) {
_root.key_collect.play();
}
_root.receive_key = 0;
_root.freeze = 0;
Symbol 443 MovieClip Frame 1
stop();
Instance of Symbol 280 MovieClip in Symbol 443 MovieClip Frame 1
onClipEvent (load) {
if (_root.r3 != 0) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 443 MovieClip Frame 2
kirupasound = new Sound(this);
kirupasound.attachSound("secret_room");
kirupasound.setVolume(40);
kirupaSound1 = new Sound(this);
kirupaSound1.attachSound("swamp_lowpass");
kirupaSound1.start(0, 999);
stop();
_root.fss = "tile";
if (_root.r3 == 1) {
_root.sky_a.base._y = 844;
_root.sky_a.base._x = 224;
_root.sky_a.up._y = 823;
_root.sky_a.up._x = 224;
_root.sky_a.right._y = 823;
_root.sky_a.right._x = 224;
_root.sky_a.left._y = 823;
_root.sky_a.left._x = 224;
_root.sky_a.down._y = 823;
_root.sky_a.down._x = 224;
_root.sky_a.up._visible = true;
}
if (_root.r3 == 2) {
_root.sky_a.base._y = 844;
_root.sky_a.base._x = 333.2;
_root.sky_a.up._y = 823;
_root.sky_a.up._x = 333.2;
_root.sky_a.right._y = 823;
_root.sky_a.right._x = 333.2;
_root.sky_a.left._y = 823;
_root.sky_a.left._x = 333.2;
_root.sky_a.down._y = 823;
_root.sky_a.down._x = 333.2;
_root.sky_a.right._visible = true;
}
Instance of Symbol 288 MovieClip in Symbol 443 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
behind1 = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.sky_c.base._x + _parent._x, _root.sky_c.base._y + _parent._y, true)) {
behind1++;
if (behind1 == 1) {
_parent.ball_null.swapDepths(_parent.ball);
}
}
if ((hitTest(_root.sky_c.base._x + _parent._x, _root.sky_c.base._y + _parent._y, true) == false) && (behind1 > 1)) {
behind1 = 0;
_parent.ball_null.swapDepths(_parent.ball);
}
}
Instance of Symbol 290 MovieClip in Symbol 443 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
behind2 = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.sky_c.base._x + _parent._x, _root.sky_c.base._y + _parent._y, true)) {
behind2++;
if (behind2 == 1) {
_parent.mouse_null.swapDepths(_parent.mouse);
}
}
if ((hitTest(_root.sky_c.base._x + _parent._x, _root.sky_c.base._y + _parent._y, true) == false) && (behind2 > 1)) {
behind2 = 0;
_parent.mouse_null.swapDepths(_parent.mouse);
}
}
Instance of Symbol 292 MovieClip in Symbol 443 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sky_c.base._x + _parent._x, _root.sky_c.base._y + _parent._y, true)) {
_root.sky_cat_crash = 1;
} else {
_root.sky_cat_crash = 0;
}
}
Instance of Symbol 294 MovieClip in Symbol 443 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
behind = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.sky_c.base._x + _parent._x, _root.sky_c.base._y + _parent._y, true)) {
behind++;
if (behind == 1) {
_parent.cat_null.swapDepths(_parent.big_cat);
}
}
if ((hitTest(_root.sky_c.base._x + _parent._x, _root.sky_c.base._y + _parent._y, true) == false) && (behind > 1)) {
behind = 0;
_parent.cat_null.swapDepths(_parent.big_cat);
}
}
Instance of Symbol 296 MovieClip "kd_cat" in Symbol 443 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sky_c.base._x + _parent._x, _root.sky_c.base._y + _parent._y, true)) {
if (Key.isDown(37)) {
_root.stopr = 0;
}
if (_parent.kid._visible == true) {
_root.sky_kid_crash = 1;
}
if (_parent.kid._visible == false) {
_parent.pet._visible = true;
_parent.pet.play();
_parent.left._visible = false;
_parent.right._visible = false;
_parent.up._visible = false;
_parent.down._visible = false;
_parent.base._visible = false;
}
} else {
_parent.base._visible = true;
_parent.pet._visible = false;
_parent.pet.gotoAndStop(1);
}
if (_parent.kid._visible == false) {
_root.sky_kid_crash = 0;
}
}
Instance of Symbol 300 MovieClip "ball" in Symbol 443 MovieClip Frame 2
onClipEvent (load) {
this.stop();
}
on (press) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == 15) {
this.gotoAndStop(1);
}
}
Instance of Symbol 326 MovieClip "big_cat" in Symbol 443 MovieClip Frame 2
onClipEvent (load) {
this.stop();
}
Instance of Symbol 344 MovieClip "mouse" in Symbol 443 MovieClip Frame 2
onClipEvent (load) {
this.stop();
}
on (press) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == 10) {
this.gotoAndStop(1);
}
}
Instance of Symbol 346 MovieClip in Symbol 443 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sky_c.base._x + _parent._x, _root.sky_c.base._y + _parent._y, true)) {
if ((_parent.kid._currentframe <= 20) && (_root.kid_find == 0)) {
_parent.kid.gotoAndPlay(21);
}
}
}
Instance of Symbol 348 MovieClip in Symbol 443 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
once = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sky_c.base._x + _parent._x, _root.sky_c.base._y + _parent._y, true)) {
if ((once != 1) && (_root.kid_find == 0)) {
once = 1;
_parent.kid.gotoAndPlay(34);
}
}
}
Instance of Symbol 374 MovieClip "kid" in Symbol 443 MovieClip Frame 2
onClipEvent (load) {
if (_root.kid_find >= 1) {
this._visible = false;
}
}
Instance of Symbol 387 MovieClip "pet" in Symbol 443 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 412 MovieClip "up" in Symbol 443 MovieClip Frame 2
onClipEvent (load) {
if (_root.r3 != 4) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopd = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if ((((_root.crash == 1) or (_root.sky_c_crash == 1)) or (_root.sky_kid_crash == 1)) or (_root.sky_cat_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopu = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
}
} else {
gotoAndStop (3);
}
if (((((_root.crash == 1) or (_root.sky_c_crash == 1)) or (_root.sky_kid_crash == 1)) or (_root.sky_cat_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
Instance of Symbol 429 MovieClip "left" in Symbol 443 MovieClip Frame 2
onClipEvent (load) {
if (_root.r3 != 2) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
_root.stopr = 0;
_root.stopu = 0;
_root.stopc = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
if ((((_root.crash == 1) or (_root.sky_c_crash == 1)) or (_root.sky_kid_crash == 1)) or (_root.sky_cat_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopl = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.up._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
}
}
}
} else {
gotoAndStop (3);
}
if (((((_root.crash == 1) or (_root.sky_c_crash == 1)) or (_root.sky_kid_crash == 1)) or (_root.sky_cat_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
}
}
Instance of Symbol 432 MovieClip "right" in Symbol 443 MovieClip Frame 2
onClipEvent (load) {
if (_root.r3 != 3) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
_root.stopl = 0;
_root.stopu = 0;
_root.stopd = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
if ((((_root.crash == 1) or (_root.sky_c_crash == 1)) or (_root.sky_kid_crash == 1)) or (_root.sky_cat_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopr = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.up._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else {
gotoAndStop (3);
}
if (((((_root.crash == 1) or (_root.sky_c_crash == 1)) or (_root.sky_kid_crash == 1)) or (_root.sky_cat_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x - 6;
}
}
Instance of Symbol 435 MovieClip "down" in Symbol 443 MovieClip Frame 2
onClipEvent (load) {
if (_root.r3 != 1) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopu = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if ((((_root.crash == 1) or (_root.sky_c_crash == 1)) or (_root.sky_kid_crash == 1)) or (_root.sky_cat_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopd = 1;
}
} else {
this._visible = true;
_parent.up._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else {
gotoAndStop (3);
}
if (((((_root.crash == 1) or (_root.sky_c_crash == 1)) or (_root.sky_kid_crash == 1)) or (_root.sky_cat_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
Instance of Symbol 439 MovieClip in Symbol 443 MovieClip Frame 2
onClipEvent (enterFrame) {
if (hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true)) {
stopAllSounds();
_root.w4 = 2;
_root.grass.play();
_root.sky_c.play();
_root.mainroomsound.start(_root.musicposition, 0);
}
}
Instance of Symbol 441 MovieClip in Symbol 443 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.sky_c.base._x + _parent._x, _root.sky_c.base._y + _parent._y, true)) {
_root.sky_c_crash = 1;
} else {
_root.sky_c_crash = 0;
}
}
Symbol 515 MovieClip Frame 2
_root.sky_a.base._visible = false;
_root.sky_a.down._visible = false;
_root.sky_a.left._visible = false;
_root.sky_a.right._visible = false;
_root.sky_a.up._visible = false;
Symbol 515 MovieClip Frame 41
_root.sky_a.fade.play();
Symbol 515 MovieClip Frame 55
_root.gold = 1;
Symbol 515 MovieClip Frame 79
_root.sky_a.freeze = 0;
_root.sky_a.base._visible = true;
_root.sky_a.left._visible = true;
_root.stopd = 0;
_root.stopl = 0;
_root.stopr = 0;
_root.stopu = 0;
_root.sky_a.base._y = 904;
_root.sky_a.base._x = 305.4;
_root.sky_a.up._y = 883;
_root.sky_a.up._x = 305.4;
_root.sky_a.right._y = 883;
_root.sky_a.right._x = 305.4;
_root.sky_a.left._y = 883;
_root.sky_a.left._x = 305.4;
_root.sky_a.down._y = 883;
_root.sky_a.down._x = 305.4;
Symbol 515 MovieClip Frame 90
stop();
Instance of Symbol 515 MovieClip "money" in Symbol 526 MovieClip Frame 1
onClipEvent (load) {
this.stop();
if (_root.sky_jewel == 1) {
this._visible = false;
}
}
Symbol 526 MovieClip Frame 2
opensound = new Sound(this);
opensound.attachSound("chest_open");
opensound.start(0, 1);
Instance of Symbol 515 MovieClip "money" in Symbol 526 MovieClip Frame 9
onClipEvent (load) {
this.stop();
if (_root.sky_jewel == 1) {
this._visible = false;
}
}
Instance of Symbol 515 MovieClip "money" in Symbol 526 MovieClip Frame 11
onClipEvent (load) {
this.stop();
if (_root.sky_jewel == 1) {
this._visible = false;
}
}
Instance of Symbol 515 MovieClip "money" in Symbol 526 MovieClip Frame 12
onClipEvent (load) {
this.stop();
if (_root.sky_jewel == 1) {
this._visible = false;
}
}
Symbol 526 MovieClip Frame 30
stop();
if (_root.sky_jewel == 1) {
_parent.gem_scene.gem.play();
_parent.gem_scene.gem._visible = true;
}
Instance of Symbol 539 MovieClip in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == 25) {
this.gotoAndStop(1);
}
}
Instance of Symbol 546 MovieClip in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == 25) {
this.gotoAndStop(1);
}
}
Instance of Symbol 553 MovieClip in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == 25) {
this.gotoAndStop(1);
}
}
Instance of Symbol 560 MovieClip in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == 25) {
this.gotoAndStop(1);
}
}
Instance of Symbol 567 MovieClip in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == 25) {
this.gotoAndStop(1);
}
}
Instance of Symbol 574 MovieClip in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == 25) {
this.gotoAndStop(1);
}
}
Instance of Symbol 581 MovieClip in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == 25) {
this.gotoAndStop(1);
}
}
Instance of Symbol 588 MovieClip in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == 25) {
this.gotoAndStop(1);
}
}
Instance of Symbol 595 MovieClip in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == 25) {
this.gotoAndStop(1);
}
}
Instance of Symbol 602 MovieClip in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == 25) {
this.gotoAndStop(1);
}
}
Instance of Symbol 611 MovieClip "gem_shad_col" in Symbol 612 MovieClip Frame 1
onClipEvent (load) {
_root.sky_a.shadow.stop();
touch = 0;
}
onClipEvent (enterFrame) {
if (((hitTest(_root.sky_a._xmouse, _root.sky_a._ymouse, true) && (_parent._visible == true)) && (touch == 0)) && (_root.sky_a.shadow._currentframe >= 1)) {
touch = 1;
_root.sky_a.shadow.gotoAndPlay(1);
}
if ((hitTest(_root.sky_a._xmouse, _root.sky_a._ymouse, true) == false) && (touch == 1)) {
endsound = new Sound(this);
endsound.attachSound("chant_end");
endsound.start(0, 1);
_root.sky_a.shadow.midsound.stop();
_root.sky_a.shadow.gotoAndPlay(16);
touch = 0;
_root.sky_a.shadow.gotoAndPlay(16);
}
if (_root.sky_a.shadow._currentframe == 15) {
_root.sky_a.shadow.stop();
}
if (_root.sky_a.shadow._currentframe == 25) {
_root.sky_a.shadow.gotoAndStop(1);
}
}
Instance of Symbol 611 MovieClip "gem_shad_col" in Symbol 612 MovieClip Frame 69
onClipEvent (load) {
_root.sky_a.shadow.stop();
touch = 0;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.sky_a._xmouse, _root.sky_a._ymouse, true) && (_parent._visible == true)) && (touch == 0)) {
touch = 1;
_root.sky_a.shadow.gotoAndPlay(1);
}
if ((hitTest(_root.sky_a._xmouse, _root.sky_a._ymouse, true) == false) && (touch == 1)) {
touch = 0;
endsound = new Sound(this);
endsound.attachSound("chant_end");
endsound.start(0, 1);
_root.sky_a.shadow.midsound.stop();
_root.sky_a.shadow.gotoAndPlay(16);
}
if (_root.sky_a.shadow._currentframe == 15) {
_root.sky_a.shadow.stop();
}
if (_root.sky_a.shadow._currentframe == 25) {
_root.sky_a.shadow.gotoAndStop(1);
}
}
Symbol 612 MovieClip Frame 130
gotoAndPlay (70);
Instance of Symbol 612 MovieClip "gem" in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
}
Symbol 627 MovieClip Frame 11
midsound = new Sound(this);
midsound.attachSound("chant_mid");
midsound.start(0, 999);
Symbol 633 MovieClip Frame 1
stop();
Symbol 634 MovieClip Frame 1
stop();
Instance of Symbol 280 MovieClip in Symbol 634 MovieClip Frame 1
onClipEvent (load) {
if (_root.r1 != 0) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 634 MovieClip Frame 2
kirupasound = new Sound(this);
kirupasound.attachSound("secret_room");
kirupasound.start(0, 999);
kirupaSound1 = new Sound(this);
kirupaSound1.attachSound("swamp_lowpass");
kirupaSound1.start(0, 999);
stop();
freeze = 0;
_root.fss = "tile";
if (_root.r1 == 1) {
_root.sky_a.base._y = 924;
_root.sky_a.base._x = 318;
_root.sky_a.up._y = 903;
_root.sky_a.up._x = 318;
_root.sky_a.right._y = 903;
_root.sky_a.right._x = 318;
_root.sky_a.left._y = 903;
_root.sky_a.left._x = 318;
_root.sky_a.down._y = 903;
_root.sky_a.down._x = 318;
_root.sky_a.up._visible = true;
}
Instance of Symbol 447 MovieClip in Symbol 634 MovieClip Frame 2
onClipEvent (load) {
if (_root.gold == 0) {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.gold == 1) {
this._visible = true;
}
}
Instance of Symbol 526 MovieClip "chest_top" in Symbol 634 MovieClip Frame 2
onClipEvent (load) {
if (_root.sky_a_open == 1) {
this.gotoAndStop(30);
this.enabled = false;
} else {
this.stop();
}
}
on (press) {
_root.sky_a_open = 1;
this.play();
this.enabled = false;
}
Instance of Symbol 613 MovieClip "gem_scene" in Symbol 634 MovieClip Frame 2
onClipEvent (load) {
if (_root.sky_a_open == 1) {
this.gem.gotoAndPlay(70);
}
}
Instance of Symbol 615 MovieClip in Symbol 634 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.sky_a.base._x + _parent._x, _root.sky_a.base._y + _parent._y, true)) {
_root.sky_a_crash = 1;
} else {
_root.sky_a_crash = 0;
}
}
Instance of Symbol 617 MovieClip in Symbol 634 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sky_a.base._x + _parent._x, _root.sky_a.base._y + _parent._y, true) && (_root.sky_jewel == 2)) {
if (_parent.chest_top._currentframe >= 12) {
_parent.chest_top.money.play();
this._visible = false;
_root.sky_a.freeze = 1;
}
}
}
Instance of Symbol 439 MovieClip in Symbol 634 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true)) {
stopAllSounds();
_root.w2 = 1;
_root.sky_a.play();
_root.sun.play();
_root.mainroomsound.start(_root.musicposition, 0);
}
}
Instance of Symbol 619 MovieClip "health_red" in Symbol 634 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sky_a.base._x + _parent._x, _root.sky_a.base._y + _parent._y, true)) {
_root.sky_chest_crash = 1;
} else {
_root.sky_chest_crash = 0;
}
}
Instance of Symbol 621 MovieClip "blue_col" in Symbol 634 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
behind = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.sky_a.base._x + _parent._x, _root.sky_a.base._y + _parent._y, true)) {
behind++;
if (behind == 1) {
_parent.chest_null.swapDepths(_parent.chest_top);
_parent.gem_null.swapDepths(_parent.gem_scene);
}
}
if ((hitTest(_root.sky_a.base._x + _parent._x, _root.sky_a.base._y + _parent._y, true) == false) && (behind > 1)) {
behind = 0;
_parent.chest_null.swapDepths(_parent.chest_top);
_parent.gem_null.swapDepths(_parent.gem_scene);
}
}
Instance of Symbol 412 MovieClip "up" in Symbol 634 MovieClip Frame 2
onClipEvent (load) {
if (_root.r1 != 4) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.sky_a.freeze == 0) {
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopd = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if (((_root.crash == 1) or (_root.sky_a_crash == 1)) or (_root.sky_chest_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopu = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
}
} else {
gotoAndStop (3);
}
if ((((_root.crash == 1) or (_root.sky_a_crash == 1)) or (_root.sky_chest_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
Instance of Symbol 429 MovieClip "left" in Symbol 634 MovieClip Frame 2
onClipEvent (load) {
if (_root.r1 != 2) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.sky_a.freeze == 0) {
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
_root.stopr = 0;
_root.stopu = 0;
_root.stopd = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
if (((_root.crash == 1) or (_root.sky_a_crash == 1)) or (_root.sky_chest_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopl = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.up._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
}
}
}
} else {
gotoAndStop (3);
}
if ((((_root.crash == 1) or (_root.sky_a_crash == 1)) or (_root.sky_chest_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
}
}
}
Instance of Symbol 432 MovieClip "right" in Symbol 634 MovieClip Frame 2
onClipEvent (load) {
if (_root.r1 != 3) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.sky_a.freeze == 0) {
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
_root.stopl = 0;
_root.stopu = 0;
_root.stopd = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
if (((_root.crash == 1) or (_root.sky_a_crash == 1)) or (_root.sky_chest_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopr = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.up._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else {
gotoAndStop (3);
}
if ((((_root.crash == 1) or (_root.sky_a_crash == 1)) or (_root.sky_chest_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x - 6;
}
}
}
Instance of Symbol 435 MovieClip "down" in Symbol 634 MovieClip Frame 2
onClipEvent (load) {
if (_root.r1 != 1) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.sky_a.freeze == 0) {
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopu = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if (((_root.crash == 1) or (_root.sky_a_crash == 1)) or (_root.sky_chest_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopd = 1;
}
} else {
this._visible = true;
_parent.up._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else {
gotoAndStop (3);
}
if ((((_root.crash == 1) or (_root.sky_a_crash == 1)) or (_root.sky_chest_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
}
Instance of Symbol 627 MovieClip "shadow" in Symbol 634 MovieClip Frame 2
onClipEvent (load) {
this.stop();
}
Symbol 650 MovieClip Frame 9
stop();
Symbol 662 MovieClip Frame 1
_root.water.filter1.occu.cacheAsBitmap = true;
_root.water.filter1.mask_occu.cacheAsBitmap = true;
_root.water.filter1.occu.setMask("_root.water.filter1.mask_occu");
Symbol 663 MovieClip Frame 1
_root.water.filter.occu.cacheAsBitmap = true;
_root.water.filter.mask_occu.cacheAsBitmap = true;
_root.water.filter.occu.setMask("_root.water.filter.mask_occu");
Symbol 665 MovieClip Frame 1
kirupaSound = new Sound(this);
kirupaSound.attachSound("swamp_lowpass");
kirupaSound.stop();
kirupaSound = new Sound(this);
kirupaSound.attachSound("water_lapping_lowpass");
kirupaSound.stop();
stop();
Instance of Symbol 650 MovieClip in Symbol 665 MovieClip Frame 1
onClipEvent (load) {
if (_root.w1 != 0) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 665 MovieClip Frame 2
kirupaSound = new Sound(this);
kirupaSound.attachSound("swamp_lowpass");
kirupaSound.start(0, 999);
kirupaSound = new Sound(this);
kirupaSound.attachSound("water_lapping_lowpass");
kirupaSound.start(0, 999);
stop();
_root.fss = "w1";
if (_root.w1 == 1) {
_root.water.base._y = 844;
_root.water.base._x = 224;
_root.water.up._y = 823;
_root.water.up._x = 224;
_root.water.right._y = 823;
_root.water.right._x = 224;
_root.water.left._y = 823;
_root.water.left._x = 224;
_root.water.down._y = 823;
_root.water.down._x = 224;
_root.water.up._visible = true;
}
if (_root.w1 == 2) {
_root.water.base._y = 844;
_root.water.base._x = 333.2;
_root.water.up._y = 823;
_root.water.up._x = 333.2;
_root.water.right._y = 823;
_root.water.right._x = 333.2;
_root.water.left._y = 823;
_root.water.left._x = 333.2;
_root.water.down._y = 823;
_root.water.down._x = 333.2;
_root.water.right._visible = true;
}
if (_root.w1 == 3) {
_root.water.base._y = 928;
_root.water.base._x = 230;
_root.water.up._y = 907;
_root.water.up._x = 230;
_root.water.right._y = 907;
_root.water.right._x = 230;
_root.water.left._y = 907;
_root.water.left._x = 230;
_root.water.down._y = 907;
_root.water.down._x = 230;
_root.water.left._visible = true;
}
if (_root.w1 == 4) {
_root.water.base._y = 928;
_root.water.base._x = 333.2;
_root.water.up._y = 907;
_root.water.up._x = 333.2;
_root.water.right._y = 907;
_root.water.right._x = 333.2;
_root.water.left._y = 907;
_root.water.left._x = 333.2;
_root.water.down._y = 907;
_root.water.down._x = 333.2;
_root.water.down._visible = true;
}
Instance of Symbol 412 MovieClip "up" in Symbol 665 MovieClip Frame 2
onClipEvent (load) {
if (_root.w1 != 4) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopd = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if ((_root.crash == 1) or (_root.water_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopu = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
}
} else {
gotoAndStop (3);
}
if (((_root.crash == 1) or (_root.water_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
Instance of Symbol 429 MovieClip "left" in Symbol 665 MovieClip Frame 2
onClipEvent (load) {
if (_root.w1 != 2) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
_root.stopr = 0;
_root.stopu = 0;
_root.stopd = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
if ((_root.crash == 1) or (_root.water_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopl = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.up._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
}
}
}
} else {
gotoAndStop (3);
}
if (((_root.crash == 1) or (_root.water_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
}
}
Instance of Symbol 432 MovieClip "right" in Symbol 665 MovieClip Frame 2
onClipEvent (load) {
if (_root.w1 != 3) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
_root.stopl = 0;
_root.stopu = 0;
_root.stopd = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
if ((_root.crash == 1) or (_root.water_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopr = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.up._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else {
gotoAndStop (3);
}
if (((_root.crash == 1) or (_root.water_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x - 6;
}
}
Instance of Symbol 435 MovieClip "down" in Symbol 665 MovieClip Frame 2
onClipEvent (load) {
if (_root.w1 != 1) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopu = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if ((_root.crash == 1) or (_root.water_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopd = 1;
}
} else {
this._visible = true;
_parent.up._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else {
gotoAndStop (3);
}
if (((_root.crash == 1) or (_root.water_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
Instance of Symbol 654 MovieClip in Symbol 665 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.water_behind == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 673 MovieClip Frame 1
stop();
Symbol 673 MovieClip Frame 9
stop();
Symbol 673 MovieClip Frame 18
stop();
Symbol 673 MovieClip Frame 27
stop();
Symbol 673 MovieClip Frame 36
stop();
Symbol 690 MovieClip Frame 1
stop();
Symbol 690 MovieClip Frame 2
this.createEmptyMovieClip("s1", 1);
my_sound1 = new Sound(s1);
my_sound1.attachSound("open_window");
my_sound1.start(0, 1);
my_sound1.setVolume(70);
Symbol 690 MovieClip Frame 9
stop();
Symbol 693 MovieClip Frame 1
stop();
Symbol 693 MovieClip Frame 9
stop();
Symbol 693 MovieClip Frame 18
stop();
Symbol 693 MovieClip Frame 28
stop();
Symbol 693 MovieClip Frame 36
stop();
Symbol 694 MovieClip Frame 1
this.createEmptyMovieClip("s1", 1);
my_sound1 = new Sound(s1);
my_sound1.attachSound("underground");
my_sound1.stop();
stop();
Instance of Symbol 650 MovieClip in Symbol 694 MovieClip Frame 1
onClipEvent (load) {
if (_root.w2 != 0) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 694 MovieClip Frame 2
this.createEmptyMovieClip("s1", 1);
my_sound1 = new Sound(s1);
my_sound1.attachSound("underground");
this.createEmptyMovieClip("s2", 2);
my_sound2 = new Sound(s2);
my_sound2.attachSound("open_window");
my_sound1.start(0, 999);
my_sound1.setVolume(100);
my_sound2.setVolume(100);
stop();
_root.fss = "w2";
if (_root.w2 == 1) {
_root.sun.base._y = 844;
_root.sun.base._x = 224;
_root.sun.up._y = 823;
_root.sun.up._x = 224;
_root.sun.right._y = 823;
_root.sun.right._x = 224;
_root.sun.left._y = 823;
_root.sun.left._x = 224;
_root.sun.down._y = 823;
_root.sun.down._x = 224;
_root.sun.up._visible = true;
}
if (_root.w2 == 2) {
_root.sun.base._y = 844;
_root.sun.base._x = 333.2;
_root.sun.up._y = 823;
_root.sun.up._x = 333.2;
_root.sun.right._y = 823;
_root.sun.right._x = 333.2;
_root.sun.left._y = 823;
_root.sun.left._x = 333.2;
_root.sun.down._y = 823;
_root.sun.down._x = 333.2;
_root.sun.right._visible = true;
}
if (_root.w2 == 3) {
_root.sun.base._y = 928;
_root.sun.base._x = 230;
_root.sun.up._y = 907;
_root.sun.up._x = 230;
_root.sun.right._y = 907;
_root.sun.right._x = 230;
_root.sun.left._y = 907;
_root.sun.left._x = 230;
_root.sun.down._y = 907;
_root.sun.down._x = 230;
_root.sun.left._visible = true;
}
if (_root.w2 == 4) {
_root.sun.base._y = 928;
_root.sun.base._x = 333.2;
_root.sun.up._y = 907;
_root.sun.up._x = 333.2;
_root.sun.right._y = 907;
_root.sun.right._x = 333.2;
_root.sun.left._y = 907;
_root.sun.left._x = 333.2;
_root.sun.down._y = 907;
_root.sun.down._x = 333.2;
_root.sun.down._visible = true;
}
Instance of Symbol 673 MovieClip "wall" in Symbol 694 MovieClip Frame 2
onClipEvent (load) {
if ((((_root.win_1 + _root.win_2) + _root.win_3) + _root.win_4) == 1) {
this.gotoAndStop(9);
}
if ((((_root.win_1 + _root.win_2) + _root.win_3) + _root.win_4) == 2) {
this.gotoAndStop(18);
}
if ((((_root.win_1 + _root.win_2) + _root.win_3) + _root.win_4) == 3) {
this.gotoAndStop(27);
}
if ((((_root.win_1 + _root.win_2) + _root.win_3) + _root.win_4) == 4) {
this.gotoAndStop(36);
}
}
Instance of Symbol 412 MovieClip "up" in Symbol 694 MovieClip Frame 2
onClipEvent (load) {
if (_root.w2 != 4) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopd = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if (((_root.crash == 1) or (_root.sun_crash == 1)) or (_root.a_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopu = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
}
} else {
gotoAndStop (3);
}
if ((((_root.crash == 1) or (_root.sun_crash == 1)) or (_root.a_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
Instance of Symbol 429 MovieClip "left" in Symbol 694 MovieClip Frame 2
onClipEvent (load) {
if (_root.w2 != 2) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
_root.stopr = 0;
_root.stopu = 0;
_root.stopd = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
if (((_root.crash == 1) or (_root.sun_crash == 1)) or (_root.a_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopl = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.up._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
}
}
}
} else {
gotoAndStop (3);
}
if ((((_root.crash == 1) or (_root.sun_crash == 1)) or (_root.a_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
}
}
Instance of Symbol 432 MovieClip "right" in Symbol 694 MovieClip Frame 2
onClipEvent (load) {
if (_root.w2 != 3) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
_root.stopl = 0;
_root.stopu = 0;
_root.stopd = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
if (((_root.crash == 1) or (_root.sun_crash == 1)) or (_root.a_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopr = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.up._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else {
gotoAndStop (3);
}
if ((((_root.crash == 1) or (_root.sun_crash == 1)) or (_root.a_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x - 6;
}
}
Instance of Symbol 435 MovieClip "down" in Symbol 694 MovieClip Frame 2
onClipEvent (load) {
if (_root.w2 != 1) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopu = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if (((_root.crash == 1) or (_root.sun_crash == 1)) or (_root.a_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopd = 1;
}
} else {
this._visible = true;
_parent.up._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else {
gotoAndStop (3);
}
if ((((_root.crash == 1) or (_root.sun_crash == 1)) or (_root.a_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
Instance of Symbol 690 MovieClip in Symbol 694 MovieClip Frame 2
onClipEvent (load) {
time = 0;
if (_root.win_1 == 1) {
this.gotoAndStop(9);
this.enabled = false;
}
}
on (release) {
if (time == 0) {
time = 1;
this.play();
_parent.wall.play();
_root.win_1 = 1;
}
}
Instance of Symbol 690 MovieClip in Symbol 694 MovieClip Frame 2
onClipEvent (load) {
time = 0;
if (_root.win_2 == 1) {
this.gotoAndStop(9);
this.enabled = false;
}
}
on (release) {
if (time == 0) {
time = 1;
this.play();
_parent.wall.play();
_root.win_2 = 1;
}
}
Instance of Symbol 690 MovieClip in Symbol 694 MovieClip Frame 2
onClipEvent (load) {
time = 0;
if (_root.win_3 == 1) {
this.gotoAndStop(9);
this.enabled = false;
}
}
on (release) {
if (time == 0) {
time = 1;
this.play();
_parent.wall.play();
_root.win_3 = 1;
}
}
Instance of Symbol 690 MovieClip in Symbol 694 MovieClip Frame 2
onClipEvent (load) {
time = 0;
if (_root.win_4 == 1) {
this.gotoAndStop(9);
this.enabled = false;
}
}
on (release) {
if (time == 0) {
time = 1;
this.play();
_parent.wall.play();
_parent.wall1.play();
_root.win_4 = 1;
}
}
Symbol 706 MovieClip Frame 1
init = function () {
width = this._width;
height = this._height;
max_snowsize = 10;
snowflakes = 50;
i = 0;
while (i < snowflakes) {
t = attachMovie("snow", "snow" + i, i);
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.k = 1 + (Math.random() * 2);
t.wind = -1.5 + (Math.random() * 4.2);
t.onEnterFrame = mover;
i++;
}
};
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();
Symbol 716 MovieClip Frame 2
this.createEmptyMovieClip("s1", 1);
my_sound1 = new Sound(s1);
my_sound1.attachSound("electricity_short");
my_sound1.start(0, 1);
my_sound1.setVolume(70);
Symbol 716 MovieClip Frame 20
this.createEmptyMovieClip("s1", 1);
my_sound1 = new Sound(s1);
my_sound1.attachSound("electricity_short");
my_sound1.start(0, 1);
my_sound1.setVolume(70);
Symbol 716 MovieClip Frame 40
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
gotoAndPlay(randRange(26, 41));
Symbol 716 MovieClip Frame 41
gotoAndPlay (19);
Symbol 716 MovieClip Frame 43
Symbol 716 MovieClip Frame 96
stop();
_parent.appear = 1;
Symbol 718 MovieClip Frame 1
snowSound = new Sound(this);
snowSound.attachSound("desert_wind");
snowSound.stop();
snowSound.setVolume(0);
this.light_flick.gotoAndStop(97);
_root.sky_b.book_hair.gotoAndStop(1);
stop();
Instance of Symbol 650 MovieClip in Symbol 718 MovieClip Frame 1
onClipEvent (load) {
if (_root.w3 != 0) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 718 MovieClip Frame 2
snowSound = new Sound(this);
snowSound.attachSound("desert_wind");
snowSound.start(0, 999);
snowSound.setVolume(100);
stop();
appear = 0;
_root.fss = "w3";
if (_root.w3 == 1) {
_root.snow.base._y = 844;
_root.snow.base._x = 224;
_root.snow.up._y = 823;
_root.snow.up._x = 224;
_root.snow.right._y = 823;
_root.snow.right._x = 224;
_root.snow.left._y = 823;
_root.snow.left._x = 224;
_root.snow.down._y = 823;
_root.snow.down._x = 224;
_root.snow.up._visible = true;
}
if (_root.w3 == 2) {
_root.snow.base._y = 844;
_root.snow.base._x = 333.2;
_root.snow.up._y = 823;
_root.snow.up._x = 333.2;
_root.snow.right._y = 823;
_root.snow.right._x = 333.2;
_root.snow.left._y = 823;
_root.snow.left._x = 333.2;
_root.snow.down._y = 823;
_root.snow.down._x = 333.2;
_root.snow.right._visible = true;
}
if (_root.w3 == 3) {
_root.snow.base._y = 928;
_root.snow.base._x = 230;
_root.snow.up._y = 907;
_root.snow.up._x = 230;
_root.snow.right._y = 907;
_root.snow.right._x = 230;
_root.snow.left._y = 907;
_root.snow.left._x = 230;
_root.snow.down._y = 907;
_root.snow.down._x = 230;
_root.snow.left._visible = true;
}
if (_root.w3 == 4) {
_root.snow.base._y = 928;
_root.snow.base._x = 333.2;
_root.snow.up._y = 907;
_root.snow.up._x = 333.2;
_root.snow.right._y = 907;
_root.snow.right._x = 333.2;
_root.snow.left._y = 907;
_root.snow.left._x = 333.2;
_root.snow.down._y = 907;
_root.snow.down._x = 333.2;
_root.snow.down._visible = true;
}
Instance of Symbol 436 MovieClip in Symbol 718 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((this._y < _parent.base._y) && (this.getDepth() < _parent.key.getDepth())) {
this.swapDepths(_parent.key);
}
if ((this._y > _parent.base._y) && (this.getDepth() > _parent.key.getDepth())) {
this.swapDepths(_parent.key);
}
}
Instance of Symbol 699 MovieClip in Symbol 718 MovieClip Frame 2
onClipEvent (load) {
if ((_root.kid_find == 1) && (_root.kid_swamp == 2)) {
this._visible = true;
} else {
this._visible = false;
}
}
on (press) {
_root.sky_b.book_hair.play();
}
Instance of Symbol 412 MovieClip "up" in Symbol 718 MovieClip Frame 2
onClipEvent (load) {
if (_root.w3 != 4) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.freeze == 0) {
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopd = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if ((_root.crash == 1) or (_root.snow_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopu = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
}
} else if (_root.receive_key != 1) {
gotoAndStop (3);
}
}
if (((_root.crash == 1) or (_root.snow_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
Instance of Symbol 429 MovieClip "left" in Symbol 718 MovieClip Frame 2
onClipEvent (load) {
if (_root.w3 != 2) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.freeze == 0) {
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
_root.stopr = 0;
_root.stopu = 0;
_root.stopd = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
if ((_root.crash == 1) or (_root.snow_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopl = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.up._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
}
}
}
} else if (_root.receive_key != 1) {
gotoAndStop (3);
}
}
if (((_root.crash == 1) or (_root.snow_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
}
}
Instance of Symbol 432 MovieClip "right" in Symbol 718 MovieClip Frame 2
onClipEvent (load) {
if (_root.w3 != 3) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.freeze == 0) {
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
_root.stopl = 0;
_root.stopu = 0;
_root.stopd = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
if ((_root.crash == 1) or (_root.snow_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopr = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.up._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else if (_root.receive_key != 1) {
gotoAndStop (3);
}
}
if (((_root.crash == 1) or (_root.snow_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x - 6;
}
}
Instance of Symbol 435 MovieClip "down" in Symbol 718 MovieClip Frame 2
onClipEvent (load) {
if (_root.w3 != 1) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.freeze == 0) {
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopu = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if ((_root.crash == 1) or (_root.snow_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopd = 1;
}
} else {
this._visible = true;
_parent.up._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else if (_root.receive_key != 1) {
gotoAndStop (3);
}
}
if (((_root.crash == 1) or (_root.snow_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
Instance of Symbol 411 MovieClip "key" in Symbol 718 MovieClip Frame 2
onClipEvent (load) {
this._alpha = 0;
if (_root.snow_key == 1) {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_parent.appear == 1) {
this._alpha = Math.ceil(this._alpha + 5);
}
if (this._alpha >= 100) {
appear = 0;
}
if (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true) && (this._alpha >= 100)) {
if (_root.snow_key == 0) {
_root.freeze = 1;
_root.key_n++;
_root.receive_key = 1;
_root.snow_key = 1;
_parent.up.gotoAndPlay(5);
_parent.down.gotoAndPlay(5);
_parent.left.gotoAndPlay(5);
_parent.right.gotoAndPlay(5);
_parent.key._visible = false;
}
}
}
Instance of Symbol 697 MovieClip in Symbol 718 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.snow_behind == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 701 MovieClip "light_button" in Symbol 718 MovieClip Frame 2
onClipEvent (load) {
if (_root.snow_key_appear == 1) {
_root.snow.light_button._visible = false;
_root.snow.light_flick.gotoAndPlay(75);
_parent.key._alpha = 100;
}
}
on (press) {
_root.snow.light_flick.gotoAndPlay(42);
_root.snow.light_button._visible = false;
_root.snow_key_appear = 1;
}
Instance of Symbol 706 MovieClip in Symbol 718 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
varName = "defaultValue";
}
Instance of Symbol 716 MovieClip "light_flick" in Symbol 718 MovieClip Frame 2
/* no clip actions */
Symbol 732 MovieClip Frame 1
stop();
Symbol 732 MovieClip Frame 95
stop();
Symbol 747 MovieClip Frame 28
stop();
Symbol 754 MovieClip Frame 20
stop();
Symbol 755 MovieClip Frame 1
stop();
Symbol 755 MovieClip Frame 94
_root.grass.plant.vine.cacheAsBitmap = true;
_root.grass.plant.mask_p.cacheAsBitmap = true;
_root.grass.plant.vine.setMask("_root.grass.plant.mask_p");
Symbol 755 MovieClip Frame 125
this.createEmptyMovieClip("s1", 1);
my_sound1 = new Sound(s1);
my_sound1.attachSound("pop");
my_sound1.start(0, 1);
Symbol 755 MovieClip Frame 130
this.createEmptyMovieClip("s1", 1);
my_sound1 = new Sound(s1);
my_sound1.attachSound("pop_2");
my_sound1.start(0, 1);
Symbol 755 MovieClip Frame 135
this.createEmptyMovieClip("s1", 1);
my_sound1 = new Sound(s1);
my_sound1.attachSound("pop_3");
my_sound1.start(0, 1);
Symbol 755 MovieClip Frame 140
this.createEmptyMovieClip("s1", 1);
my_sound1 = new Sound(s1);
my_sound1.attachSound("pop");
my_sound1.start(0, 1);
Symbol 755 MovieClip Frame 145
this.createEmptyMovieClip("s1", 1);
my_sound1 = new Sound(s1);
my_sound1.attachSound("pop_2");
my_sound1.start(0, 1);
Symbol 755 MovieClip Frame 157
this.createEmptyMovieClip("s1", 1);
my_sound1 = new Sound(s1);
my_sound1.attachSound("pipe_pop");
my_sound1.start(0, 1);
Symbol 755 MovieClip Frame 164
stop();
if (_root.grass_key != 1) {
_parent.key._visible = true;
}
Symbol 761 MovieClip Frame 1
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
init = function () {
width = this._width;
height = this._height;
max_rainsize = 10;
rainflakes = 150;
i = 0;
while (i < rainflakes) {
t = attachMovie("rain", "rain" + i, i);
t._alpha = 20 + (Math.random() * 60);
t._x = (-(width / 2)) + (Math.random() * (1.5 * width));
t._y = randRange(0, 200);
t.k = randRange(20, 40);
t.onEnterFrame = mover;
i++;
}
};
mover = function () {
this._y = this._y + this.k;
if (this._y > (height + 10)) {
removeMovieClip(this);
}
if (this._x > (width + 20)) {
this._y = -20;
}
};
init();
Symbol 763 MovieClip Frame 1
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
init = function () {
width = this._width;
height = this._height;
max_rainsize = 10;
rainflakes = 100;
i = 0;
while (i < rainflakes) {
t = attachMovie("rain", "rain" + i, i);
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.k = randRange(10, 20);
t.onEnterFrame = mover;
i++;
}
};
mover = function () {
this._y = this._y + this.k;
if (this._y > (height + 10)) {
removeMovieClip(this);
}
if (this._x > (width + 20)) {
this._y = -20;
}
};
init();
Symbol 764 MovieClip Frame 1
stop();
Instance of Symbol 758 MovieClip "rope_bot" in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
if (_root.grass_key_appear >= 1) {
this.enabled = false;
}
}
on (press) {
startDrag (this);
zipperSound = new Sound(this);
zipperSound.attachSound("zipper");
zipperSound.start(0, 1);
}
on (release, releaseOutside) {
stopDrag();
zipperSound.start(0, 1);
}
Instance of Symbol 761 MovieClip in Symbol 764 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
varName = "defaultValue";
}
Symbol 764 MovieClip Frame 12
stop();
Instance of Symbol 763 MovieClip in Symbol 764 MovieClip Frame 12
//component parameters
onClipEvent (construct) {
varName = "defaultValue";
}
Symbol 785 MovieClip Frame 48
stop();
Symbol 787 MovieClip Frame 1
kirupaSound = new Sound(this);
kirupaSound.attachSound("wind_thru_leaves");
kirupaSound.stop();
stop();
Instance of Symbol 650 MovieClip in Symbol 787 MovieClip Frame 1
onClipEvent (load) {
if (_root.w4 != 0) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 787 MovieClip Frame 2
grassSound = new Sound(this);
grassSound.attachSound("wind_thru_leaves");
grassSound.start(0, 999);
stop();
_root.fss = "w4";
if (_root.w4 == 1) {
_root.grass.base._y = 844;
_root.grass.base._x = 224;
_root.grass.up._y = 823;
_root.grass.up._x = 224;
_root.grass.right._y = 823;
_root.grass.right._x = 224;
_root.grass.left._y = 823;
_root.grass.left._x = 224;
_root.grass.down._y = 823;
_root.grass.down._x = 224;
_root.grass.up._visible = true;
}
if (_root.w4 == 2) {
_root.grass.base._y = 844;
_root.grass.base._x = 333.2;
_root.grass.up._y = 823;
_root.grass.up._x = 333.2;
_root.grass.right._y = 823;
_root.grass.right._x = 333.2;
_root.grass.left._y = 823;
_root.grass.left._x = 333.2;
_root.grass.down._y = 823;
_root.grass.down._x = 333.2;
_root.grass.right._visible = true;
}
if (_root.w4 == 3) {
_root.grass.base._y = 928;
_root.grass.base._x = 230;
_root.grass.up._y = 907;
_root.grass.up._x = 230;
_root.grass.right._y = 907;
_root.grass.right._x = 230;
_root.grass.left._y = 907;
_root.grass.left._x = 230;
_root.grass.down._y = 907;
_root.grass.down._x = 230;
_root.grass.left._visible = true;
}
if (_root.w4 == 4) {
_root.grass.base._y = 928;
_root.grass.base._x = 333.2;
_root.grass.up._y = 907;
_root.grass.up._x = 333.2;
_root.grass.right._y = 907;
_root.grass.right._x = 333.2;
_root.grass.left._y = 907;
_root.grass.left._x = 333.2;
_root.grass.down._y = 907;
_root.grass.down._x = 333.2;
_root.grass.down._visible = true;
}
Instance of Symbol 732 MovieClip "dirt" in Symbol 787 MovieClip Frame 2
onClipEvent (load) {
if (_root.grass_key_appear >= 1) {
this.gotoAndStop(95);
}
}
Instance of Symbol 436 MovieClip in Symbol 787 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((this._y < _parent.base._y) && (this.getDepth() < _parent.key.getDepth())) {
this.swapDepths(_parent.key);
}
if ((this._y > _parent.base._y) && (this.getDepth() > _parent.key.getDepth())) {
this.swapDepths(_parent.key);
}
}
Instance of Symbol 436 MovieClip in Symbol 787 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((this._y < _parent.base._y) && (this.getDepth() < _parent.plant.getDepth())) {
this.swapDepths(_parent.plant);
}
if ((this._y > _parent.base._y) && (this.getDepth() > _parent.plant.getDepth())) {
this.swapDepths(_parent.plant);
}
}
Instance of Symbol 412 MovieClip "up" in Symbol 787 MovieClip Frame 2
onClipEvent (load) {
if (_root.w4 != 4) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.freeze == 0) {
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopd = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if (((_root.crash == 1) or (_root.grass_crash == 1)) or (_root.c_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopu = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
}
} else if (_root.receive_key != 1) {
gotoAndStop (3);
}
}
if ((((_root.crash == 1) or (_root.grass_crash == 1)) or (_root.c_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
Instance of Symbol 429 MovieClip "left" in Symbol 787 MovieClip Frame 2
onClipEvent (load) {
if (_root.w4 != 2) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.freeze == 0) {
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
_root.stopr = 0;
_root.stopu = 0;
_root.stopd = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
if (((_root.crash == 1) or (_root.grass_crash == 1)) or (_root.c_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopl = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.up._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
}
}
}
} else if (_root.receive_key != 1) {
gotoAndStop (3);
}
}
if ((((_root.crash == 1) or (_root.grass_crash == 1)) or (_root.c_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
}
}
Instance of Symbol 432 MovieClip "right" in Symbol 787 MovieClip Frame 2
onClipEvent (load) {
if (_root.w4 != 3) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.freeze == 0) {
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
_root.stopl = 0;
_root.stopu = 0;
_root.stopd = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
if (((_root.crash == 1) or (_root.grass_crash == 1)) or (_root.c_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopr = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.up._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else if (_root.receive_key != 1) {
gotoAndStop (3);
}
}
if ((((_root.crash == 1) or (_root.grass_crash == 1)) or (_root.c_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x - 6;
}
}
Instance of Symbol 435 MovieClip "down" in Symbol 787 MovieClip Frame 2
onClipEvent (load) {
if (_root.w4 != 1) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.freeze == 0) {
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopu = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if (((_root.crash == 1) or (_root.grass_crash == 1)) or (_root.c_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopd = 1;
}
} else {
this._visible = true;
_parent.up._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else if (_root.receive_key != 1) {
gotoAndStop (3);
}
}
if ((((_root.crash == 1) or (_root.grass_crash == 1)) or (_root.c_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
Instance of Symbol 755 MovieClip "plant" in Symbol 787 MovieClip Frame 2
onClipEvent (load) {
if ((_root.grass_key_appear == 1) || (_root.grass_key_appear == 2)) {
this.gotoAndStop(164);
}
}
Instance of Symbol 411 MovieClip "key" in Symbol 787 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
if (_root.grass_key_appear == 2) {
this._y = 871;
this.enabled = false;
}
}
on (press) {
ground = 897;
yVol = 0;
sound = 0;
if (_root.grass_key_appear == 2) {
grav = 0;
} else {
grav = 1;
}
radius = _parent.key._height / 2;
bounce = -0.15;
this.enabled = false;
_root.grass_key_appear = 2;
}
onClipEvent (enterFrame) {
yVol = yVol + grav;
_parent.key._y = _parent.key._y + yVol;
if ((_parent.key._y + radius) > ground) {
if ((sound <= 0) && (this._visible == true)) {
key_bounce = new Sound(this);
key_bounce.attachSound("bounce");
key_bounce.start(0, 0);
grass = new Sound(this);
grass.attachSound("step_01_w4");
grass.start(0, 0);
sound++;
}
yVol = yVol * bounce;
_parent.key._y = ground - radius;
}
if (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true) && (this._alpha >= 100)) {
if (_root.grass_key == 0) {
_root.freeze = 1;
_root.key_n++;
_root.receive_key = 1;
_root.grass_key = 1;
_parent.up.gotoAndPlay(5);
_parent.down.gotoAndPlay(5);
_parent.left.gotoAndPlay(5);
_parent.right.gotoAndPlay(5);
_parent.key._visible = false;
}
}
}
Instance of Symbol 764 MovieClip "door" in Symbol 787 MovieClip Frame 2
onClipEvent (load) {
if (_root.grass_key_appear >= 1) {
this.rope_bot._y = 417;
}
lineStyle(3.5, 5614165, 100);
ropex = _root.grass.door.rope._x;
ropey = _root.grass.door.rope._y;
moveTo(ropex, ropey);
pullx = _root.grass.door.rope_bot._x;
pully = _root.grass.door.rope_bot._y;
lineTo(pullx, pully);
updateAfterEvent();
}
onClipEvent (mouseMove) {
clear();
_root.grass.door.rope_bot._x = 284.9;
lineStyle(3.5, 5614165, 100);
ropex = _root.grass.door.rope._x;
ropey = _root.grass.door.rope._y;
moveTo(ropex, ropey);
pullx = _root.grass.door.rope_bot._x;
pully = _root.grass.door.rope_bot._y;
lineTo(pullx, pully);
updateAfterEvent();
square = ((pullx - ropex) * (pullx - ropex)) + ((pully - ropey) * (pully - ropey));
rope_l = Math.sqrt(square);
if (((rope_l >= 290) && (opened != 1)) && (_root.grass_key_appear < 1)) {
rainSound = new Sound(this);
rainSound.attachSound("rain_fall");
rainSound.start(0, 1);
shutSound = new Sound(this);
shutSound.attachSound("shut");
shutSound.start(0, 1);
opened = 1;
this.play();
_parent.dirt.play();
_parent.plant.play();
_root.grass_key_appear = 1;
} else if (rope_l >= 290) {
stopDrag();
this.rope_bot.enabled = false;
}
}
Instance of Symbol 785 MovieClip in Symbol 787 MovieClip Frame 2
onClipEvent (load) {
if ((_root.kid_find == 1) && (_root.kid_grass == 0)) {
this._visible = true;
_root.kid_grass = 1;
} else {
this._visible = false;
}
}
Symbol 793 MovieClip Frame 2
kirupaSound = new Sound(this);
kirupaSound.attachSound("chime_1");
kirupaSound.start(0, 1);
Symbol 796 MovieClip Frame 2
kirupaSound = new Sound(this);
kirupaSound.attachSound("chime_2");
kirupaSound.start(0, 1);
Symbol 799 MovieClip Frame 2
kirupaSound = new Sound(this);
kirupaSound.attachSound("chime_3");
kirupaSound.start(0, 1);
Symbol 802 MovieClip Frame 2
kirupaSound = new Sound(this);
kirupaSound.attachSound("chime_4");
kirupaSound.start(0, 1);
Symbol 804 MovieClip Frame 1
stop();
_root.fss = "tile";
if (_root.w5 == 1) {
_root.pipe.base._y = 844;
_root.pipe.base._x = 224;
_root.pipe.up._y = 823;
_root.pipe.up._x = 224;
_root.pipe.right._y = 823;
_root.pipe.right._x = 224;
_root.pipe.left._y = 823;
_root.pipe.left._x = 224;
_root.pipe.down._y = 823;
_root.pipe.down._x = 224;
_root.pipe.up._visible = true;
}
if (_root.w5 == 2) {
_root.pipe.base._y = 844;
_root.pipe.base._x = 333.2;
_root.pipe.up._y = 823;
_root.pipe.up._x = 333.2;
_root.pipe.right._y = 823;
_root.pipe.right._x = 333.2;
_root.pipe.left._y = 823;
_root.pipe.left._x = 333.2;
_root.pipe.down._y = 823;
_root.pipe.down._x = 333.2;
_root.pipe.right._visible = true;
}
if (_root.w5 == 3) {
_root.pipe.base._y = 928;
_root.pipe.base._x = 230;
_root.pipe.up._y = 907;
_root.pipe.up._x = 230;
_root.pipe.right._y = 907;
_root.pipe.right._x = 230;
_root.pipe.left._y = 907;
_root.pipe.left._x = 230;
_root.pipe.down._y = 907;
_root.pipe.down._x = 230;
_root.pipe.left._visible = true;
}
if (_root.w5 == 4) {
_root.pipe.base._y = 928;
_root.pipe.base._x = 333.2;
_root.pipe.up._y = 907;
_root.pipe.up._x = 333.2;
_root.pipe.right._y = 907;
_root.pipe.right._x = 333.2;
_root.pipe.left._y = 907;
_root.pipe.left._x = 333.2;
_root.pipe.down._y = 907;
_root.pipe.down._x = 333.2;
_root.pipe.down._visible = true;
}
Instance of Symbol 412 MovieClip "up" in Symbol 804 MovieClip Frame 1
onClipEvent (load) {
if (_root.w5 != 4) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopd = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if ((_root.crash == 1) || (_root.pipe_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopu = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
}
} else {
gotoAndStop (3);
}
if (((_root.crash == 1) || (_root.pipe_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
Instance of Symbol 429 MovieClip "left" in Symbol 804 MovieClip Frame 1
onClipEvent (load) {
if ((_root.w5 != 2) && (_root.w5 != -1)) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
_root.stopr = 0;
_root.stopd = 0;
_root.stopu = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
if ((_root.crash == 1) || (_root.pipe_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopl = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.up._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
}
}
}
} else {
gotoAndStop (3);
}
if (((_root.crash == 1) || (_root.pipe_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
}
}
Instance of Symbol 432 MovieClip "right" in Symbol 804 MovieClip Frame 1
onClipEvent (load) {
if (_root.w5 != 3) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
_root.stopl = 0;
_root.stopd = 0;
_root.stopu = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
if ((_root.crash == 1) || (_root.pipe_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopr = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.up._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else {
gotoAndStop (3);
}
if (((_root.crash == 1) || (_root.pipe_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x - 6;
}
}
Instance of Symbol 435 MovieClip "down" in Symbol 804 MovieClip Frame 1
onClipEvent (load) {
if (_root.w5 != 1) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopu = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if ((_root.crash == 1) || (_root.pipe_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopd = 1;
}
} else {
this._visible = true;
_parent.up._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else {
gotoAndStop (3);
}
if (((_root.crash == 1) || (_root.pipe_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
Instance of Symbol 790 MovieClip in Symbol 804 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.pipe_behind == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 793 MovieClip in Symbol 804 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == 28) {
this.gotoAndStop(1);
}
}
Instance of Symbol 796 MovieClip in Symbol 804 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == 27) {
this.gotoAndStop(1);
}
}
Instance of Symbol 799 MovieClip in Symbol 804 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == 27) {
this.gotoAndStop(1);
}
}
Instance of Symbol 802 MovieClip in Symbol 804 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == 21) {
this.gotoAndStop(1);
}
}
Symbol 804 MovieClip Frame 2
stop();
Symbol 810 MovieClip Frame 1
play();
Symbol 810 MovieClip Frame 60
stop();
Instance of Symbol 810 MovieClip "ripple" in Symbol 814 MovieClip Frame 1
onClipEvent (load) {
this._x = _root.swamp.base._x;
this._y = _root.swamp.base._y;
}
onClipEvent (enterFrame) {
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
if (this._xscale >= 700) {
removeMovieClip(this);
}
}
Instance of Symbol 813 MovieClip "engine" in Symbol 814 MovieClip Frame 1
onClipEvent (load) {
count = 0;
pos = 0;
lastTime = Math.floor(getTimer() / 1000);
wait = 1;
delay = false;
}
onClipEvent (enterFrame) {
if (_root.delay) {
if (Math.floor(getTimer() / 1000) == (lastTime + 1)) {
delay = false;
}
} else if (Math.floor(getTimer() / 1000) == (lastTime + wait)) {
lastTime = Math.floor(getTimer() / 1000);
delay = true;
count++;
_root.swamp.ripple_floor.ripple.duplicateMovieClip("ripple" + count, _root.swamp.ripple_floor.getNextHighestDepth());
_root.swamp.ripple_floor["ripple" + count]._x = _root.swamp.base._x;
_root.swamp.ripple_floor["ripple" + count]._y = _root.swamp.base._y;
_root.swamp.ripple_floor["ripple" + count]._xscale = 1;
_root.swamp.ripple_floor["ripple" + count]._yscale = 1;
}
if (pos != _root.swamp.base._x) {
count++;
_root.swamp.ripple_floor.ripple.duplicateMovieClip("ripple" + count, _root.swamp.ripple_floor.getNextHighestDepth());
_root.swamp.ripple_floor["ripple" + count]._x = _root.swamp.base._x;
_root.swamp.ripple_floor["ripple" + count]._y = _root.swamp.base._y;
_root.swamp.ripple_floor["ripple" + count]._xscale = 0.5;
_root.swamp.ripple_floor["ripple" + count]._yscale = 0.5;
pos = _root.swamp.base._x;
}
}
Symbol 837 MovieClip Frame 15
stop();
Symbol 838 MovieClip Frame 75
stop();
Symbol 840 MovieClip Frame 1
kirupaSound = new Sound(this);
kirupaSound.attachSound("swamp_night");
kirupaSound.stop();
kirupaSound = new Sound(this);
kirupaSound.attachSound("water_lapping");
kirupaSound.stop();
stop();
Instance of Symbol 650 MovieClip in Symbol 840 MovieClip Frame 1
onClipEvent (load) {
if (_root.w6 != 0) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 840 MovieClip Frame 2
kirupaSound = new Sound(this);
kirupaSound.attachSound("swamp_night");
kirupaSound.start(0, 999);
kirupaSound.setVolume(40);
kirupaSound = new Sound(this);
kirupaSound.attachSound("water_lapping");
kirupaSound.start(0, 999);
stop();
_root.fss = "w6";
if (_root.w6 == 1) {
_root.swamp.base._y = 844;
_root.swamp.base._x = 224;
_root.swamp.up._y = 823;
_root.swamp.up._x = 224;
_root.swamp.right._y = 823;
_root.swamp.right._x = 224;
_root.swamp.left._y = 823;
_root.swamp.left._x = 224;
_root.swamp.down._y = 823;
_root.swamp.down._x = 224;
_root.swamp.up._visible = true;
}
if (_root.w6 == 2) {
_root.swamp.base._y = 844;
_root.swamp.base._x = 333.2;
_root.swamp.up._y = 823;
_root.swamp.up._x = 333.2;
_root.swamp.right._y = 823;
_root.swamp.right._x = 333.2;
_root.swamp.left._y = 823;
_root.swamp.left._x = 333.2;
_root.swamp.down._y = 823;
_root.swamp.down._x = 333.2;
_root.swamp.right._visible = true;
}
if (_root.w6 == 3) {
_root.swamp.base._y = 928;
_root.swamp.base._x = 230;
_root.swamp.up._y = 907;
_root.swamp.up._x = 230;
_root.swamp.right._y = 907;
_root.swamp.right._x = 230;
_root.swamp.left._y = 907;
_root.swamp.left._x = 230;
_root.swamp.down._y = 907;
_root.swamp.down._x = 230;
_root.swamp.left._visible = true;
}
if (_root.w6 == 4) {
_root.swamp.base._y = 928;
_root.swamp.base._x = 333.2;
_root.swamp.up._y = 907;
_root.swamp.up._x = 333.2;
_root.swamp.right._y = 907;
_root.swamp.right._x = 333.2;
_root.swamp.left._y = 907;
_root.swamp.left._x = 333.2;
_root.swamp.down._y = 907;
_root.swamp.down._x = 333.2;
_root.swamp.down._visible = true;
}
Instance of Symbol 412 MovieClip "up_r" in Symbol 840 MovieClip Frame 2
onClipEvent (load) {
pos = 0;
this._y = _root.swamp.up._y + 40;
this._x = _root.swamp.up._x;
if (_root.w6 != 4) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.freeze == 0) {
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if (Key.isDown(38) && (pos != _root.swamp.base._x)) {
this._visible = true;
_root.swamp.down_r._visible = false;
_root.swamp.right_r._visible = false;
_root.swamp.left_r._visible = false;
}
}
}
gotoAndPlay(_root.swamp.up._currentframe);
this._y = _root.swamp.up._y + 40;
this._x = _root.swamp.up._x;
_root.swamp.down_r._y = _root.swamp.down._y + 40;
_root.swamp.down_r._x = _root.swamp.down._x;
_root.swamp.right_r._y = _root.swamp.right._y + 40;
_root.swamp.right_r._x = _root.swamp.right._x;
_root.swamp.left_r._y = _root.swamp.left._y + 40;
_root.swamp.left_r._x = _root.swamp.left._x;
pos = _root.swamp.base._x;
}
Instance of Symbol 429 MovieClip "left_r" in Symbol 840 MovieClip Frame 2
onClipEvent (load) {
pos = 0;
this._y = _root.swamp.left._y + 40;
this._x = _root.swamp.left._x;
if (_root.w6 != 2) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.freeze == 0) {
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
if (Key.isDown(37) && (pos != _root.swamp.base._x)) {
this._visible = true;
_root.swamp.down_r._visible = false;
_root.swamp.right_r._visible = false;
_root.swamp.up_r._visible = false;
}
}
}
gotoAndPlay(_root.swamp.left._currentframe);
this._y = _root.swamp.left._y + 40;
this._x = _root.swamp.left._x;
_root.swamp.down_r._y = _root.swamp.down._y + 40;
_root.swamp.down_r._x = _root.swamp.down._x;
_root.swamp.right_r._y = _root.swamp.right._y + 40;
_root.swamp.right_r._x = _root.swamp.right._x;
_root.swamp.up_r._y = _root.swamp.up._y + 40;
_root.swamp.up_r._x = _root.swamp.up._x;
pos = _root.swamp.base._x;
}
Instance of Symbol 432 MovieClip "right_r" in Symbol 840 MovieClip Frame 2
onClipEvent (load) {
pos = 0;
this._y = _root.swamp.right._y + 40;
this._x = _root.swamp.right._x;
if (_root.w6 != 3) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.freeze == 0) {
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
if (Key.isDown(39) && (pos != _root.swamp.base._x)) {
this._visible = true;
_root.swamp.down_r._visible = false;
_root.swamp.up_r._visible = false;
_root.swamp.left_r._visible = false;
}
}
}
gotoAndPlay(_root.swamp.right._currentframe);
this._y = _root.swamp.right._y + 40;
this._x = _root.swamp.right._x;
_root.swamp.down_r._y = _root.swamp.down._y + 40;
_root.swamp.down_r._x = _root.swamp.down._x;
_root.swamp.up_r._y = _root.swamp.up._y + 40;
_root.swamp.up_r._x = _root.swamp.up._x;
_root.swamp.left_r._y = _root.swamp.left._y + 40;
_root.swamp.left_r._x = _root.swamp.left._x;
pos = _root.swamp.base._x;
}
Instance of Symbol 435 MovieClip "down_r" in Symbol 840 MovieClip Frame 2
onClipEvent (load) {
pos = 0;
this._y = _root.swamp.down._y + 40;
this._x = _root.swamp.down._x;
if (_root.w6 != 1) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.freeze == 0) {
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if (Key.isDown(40) && (pos != _root.swamp.base._x)) {
this._visible = true;
_root.swamp.up_r._visible = false;
_root.swamp.right_r._visible = false;
_root.swamp.left_r._visible = false;
}
}
}
gotoAndPlay(_root.swamp.down._currentframe);
this._y = _root.swamp.down._y + 40;
this._x = _root.swamp.down._x;
_root.swamp.up_r._y = _root.swamp.up._y + 40;
_root.swamp.up_r._x = _root.swamp.up._x;
_root.swamp.right_r._y = _root.swamp.right._y + 40;
_root.swamp.right_r._x = _root.swamp.right._x + 40;
_root.swamp.left_r._y = _root.swamp.left._y + 40;
_root.swamp.left_r._x = _root.swamp.left._x;
pos = _root.swamp.base._x;
}
Instance of Symbol 436 MovieClip in Symbol 840 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((this._y < _parent.base._y) && (this.getDepth() < _parent.key.getDepth())) {
this.swapDepths(_parent.key);
}
if ((this._y > _parent.base._y) && (this.getDepth() > _parent.key.getDepth())) {
this.swapDepths(_parent.key);
}
}
Instance of Symbol 412 MovieClip "up" in Symbol 840 MovieClip Frame 2
onClipEvent (load) {
if (_root.w6 != 4) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.freeze == 0) {
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopd = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if (((_root.crash == 1) or (_root.swamp_crash == 1)) or (_root.b_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopu = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
}
} else if (_root.receive_key != 1) {
gotoAndStop (3);
}
}
if ((((_root.crash == 1) or (_root.swamp_crash == 1)) or (_root.b_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
Instance of Symbol 429 MovieClip "left" in Symbol 840 MovieClip Frame 2
onClipEvent (load) {
if (_root.w6 != 2) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.freeze == 0) {
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
_root.stopr = 0;
_root.stopu = 0;
_root.stopd = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
if (((_root.crash == 1) or (_root.swamp_crash == 1)) or (_root.b_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopl = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.up._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
}
}
}
} else if (_root.receive_key != 1) {
gotoAndStop (3);
}
}
if ((((_root.crash == 1) or (_root.swamp_crash == 1)) or (_root.b_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
}
}
Instance of Symbol 432 MovieClip "right" in Symbol 840 MovieClip Frame 2
onClipEvent (load) {
if (_root.w6 != 3) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.freeze == 0) {
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
_root.stopl = 0;
_root.stopu = 0;
_root.stopd = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
if (((_root.crash == 1) or (_root.swamp_crash == 1)) or (_root.b_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopr = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.up._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else if (_root.receive_key != 1) {
gotoAndStop (3);
}
}
if ((((_root.crash == 1) or (_root.swamp_crash == 1)) or (_root.b_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x - 6;
}
}
Instance of Symbol 435 MovieClip "down" in Symbol 840 MovieClip Frame 2
onClipEvent (load) {
if (_root.w6 != 1) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.freeze == 0) {
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopu = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if (((_root.crash == 1) or (_root.swamp_crash == 1)) or (_root.b_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopd = 1;
}
} else {
this._visible = true;
_parent.up._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else if (_root.receive_key != 1) {
gotoAndStop (3);
}
}
if ((((_root.crash == 1) or (_root.swamp_crash == 1)) or (_root.b_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
Instance of Symbol 411 MovieClip "key" in Symbol 840 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true) && (this._alpha >= 100)) {
if (_root.swamp_key == 0) {
_root.freeze = 1;
_root.key_n++;
_root.receive_key = 1;
_root.swamp_key = 1;
_parent.up.gotoAndPlay(5);
_parent.down.gotoAndPlay(5);
_parent.left.gotoAndPlay(5);
_parent.right.gotoAndPlay(5);
_parent.key._visible = false;
}
}
}
Instance of Symbol 817 MovieClip in Symbol 840 MovieClip Frame 2
onClipEvent (load) {
if (_root.swamp_key_appear == 1) {
this._visible = false;
grav = 0;
_parent.key._y = 894.5;
}
if (_root.swamp_key == 1) {
_parent.key._visible = false;
}
}
on (press) {
cutSound = new Sound(this);
cutSound.attachSound("cut_rope");
cutSound.start(0, 1);
ground = 920;
yVol = 0;
grav = 1;
radius = _root.swamp.key._height / 2;
bounce = -0.15;
sound = 0;
this._visible = false;
_root.swamp_key_appear = 1;
}
onClipEvent (enterFrame) {
yVol = yVol + grav;
_root.swamp.key._y = _root.swamp.key._y + yVol;
if ((_root.swamp.key._y + radius) > ground) {
yVol = yVol * bounce;
_root.swamp.key._y = ground - radius;
}
if (_parent.key._y == 894) {
if ((sound <= 2) && (_parent.key._visible == true)) {
key_bounce = new Sound(this);
key_bounce.attachSound("bounce");
key_bounce.start(0, 0);
ripple = new Sound(this);
ripple.attachSound("step_01_w6");
ripple.start(0, 0);
sound++;
}
}
}
Instance of Symbol 838 MovieClip "kid_in_tree" in Symbol 840 MovieClip Frame 2
onClipEvent (load) {
if ((_root.kid_find == 1) && (_root.kid_swamp == 0)) {
this._visible = true;
_root.kid_swamp = 1;
} else {
this._visible = false;
}
}
Symbol 846 MovieClip Frame 1
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
this.gotoAndPlay(randRange(1, 35));
Symbol 848 MovieClip Frame 1
stop();
Symbol 848 MovieClip Frame 2
kirupaSound = new Sound(this);
kirupaSound.attachSound("branch_open");
kirupaSound.start(0, 1);
Symbol 848 MovieClip Frame 20
stop();
Symbol 853 MovieClip Frame 1
stop();
Symbol 853 MovieClip Frame 2
kirupaSound = new Sound(this);
kirupaSound.attachSound("branch_open");
kirupaSound.start(0, 1);
Symbol 853 MovieClip Frame 20
stop();
Symbol 859 Button
on (press) {
play();
_root.tree.log_button_02.key_count++;
}
Symbol 861 MovieClip Frame 1
stop();
Symbol 861 MovieClip Frame 2
kirupaSound = new Sound(this);
kirupaSound.attachSound("branch_open");
kirupaSound.start(0, 1);
Symbol 861 MovieClip Frame 20
stop();
Symbol 866 MovieClip Frame 1
stop();
Symbol 866 MovieClip Frame 2
kirupaSound = new Sound(this);
kirupaSound.attachSound("branch_open");
kirupaSound.start(0, 1);
Symbol 866 MovieClip Frame 20
stop();
Symbol 872 MovieClip Frame 1
stop();
Symbol 872 MovieClip Frame 2
kirupaSound = new Sound(this);
kirupaSound.attachSound("branch_open");
kirupaSound.start(0, 1);
Symbol 872 MovieClip Frame 20
stop();
Symbol 885 MovieClip Frame 60
stop();
Symbol 888 MovieClip Frame 1
init = function () {
width = this._width;
height = this._height;
max_snowsize = 20;
snowflakes = 50;
i = 0;
while (i < snowflakes) {
t = attachMovie("leaf", "leaf" + i, i);
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.k = 1 + (Math.random() * 2);
t.wind = -1.5 + (Math.random() * 4.2);
t.onEnterFrame = mover;
i++;
}
};
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();
Symbol 894 MovieClip Frame 1
kirupaSound = new Sound(this);
kirupaSound.attachSound("wind_thru_leaves_2");
kirupaSound.stop();
stop();
Instance of Symbol 650 MovieClip in Symbol 894 MovieClip Frame 1
onClipEvent (load) {
if (_root.w7 != 0) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 894 MovieClip Frame 2
kirupaSound = new Sound(this);
kirupaSound.attachSound("wind_thru_leaves_2");
kirupaSound.start(0, 999);
stop();
fall = 0;
_root.fss = "w7";
if (_root.w7 == 1) {
_root.tree.base._y = 844;
_root.tree.base._x = 224;
_root.tree.up._y = 823;
_root.tree.up._x = 224;
_root.tree.right._y = 823;
_root.tree.right._x = 224;
_root.tree.left._y = 823;
_root.tree.left._x = 224;
_root.tree.down._y = 823;
_root.tree.down._x = 224;
_root.tree.up._visible = true;
}
if (_root.w7 == 2) {
_root.tree.base._y = 844;
_root.tree.base._x = 333.2;
_root.tree.up._y = 823;
_root.tree.up._x = 333.2;
_root.tree.right._y = 823;
_root.tree.right._x = 333.2;
_root.tree.left._y = 823;
_root.tree.left._x = 333.2;
_root.tree.down._y = 823;
_root.tree.down._x = 333.2;
_root.tree.right._visible = true;
}
if (_root.w7 == 3) {
_root.tree.base._y = 928;
_root.tree.base._x = 230;
_root.tree.up._y = 907;
_root.tree.up._x = 230;
_root.tree.right._y = 907;
_root.tree.right._x = 230;
_root.tree.left._y = 907;
_root.tree.left._x = 230;
_root.tree.down._y = 907;
_root.tree.down._x = 230;
_root.tree.left._visible = true;
}
if (_root.w7 == 4) {
_root.tree.base._y = 928;
_root.tree.base._x = 333.2;
_root.tree.up._y = 907;
_root.tree.up._x = 333.2;
_root.tree.right._y = 907;
_root.tree.right._x = 333.2;
_root.tree.left._y = 907;
_root.tree.left._x = 333.2;
_root.tree.down._y = 907;
_root.tree.down._x = 333.2;
_root.tree.down._visible = true;
}
Instance of Symbol 848 MovieClip in Symbol 894 MovieClip Frame 2
onClipEvent (load) {
if (_root.tree_hole4 >= 1) {
this.gotoAndStop(20);
this.enabled = false;
}
}
on (press) {
this.enabled = false;
play();
_root.keycount++;
_root.tree_hole4 = 1;
if (_root.keycount == 5) {
_parent.key._visible = true;
ground = 885;
yVol = 0;
grav = 1;
sound = 0;
radius = _parent.key._height / 2;
bounce = -0.15;
_parent.key._y = this._y + 15;
_parent.key._x = this._x + 15;
_root.tree_key_y = ground;
_root.tree_key_x = _parent.key._x;
}
}
onClipEvent (enterFrame) {
yVol = yVol + grav;
_parent.key._y = _parent.key._y + yVol;
if ((_parent.key._y + radius) > ground) {
if ((sound <= 1) && (_parent.key._visible == true)) {
key_bounce = new Sound(this);
key_bounce.attachSound("bounce");
key_bounce.start(0, 0);
sound++;
}
yVol = yVol * bounce;
_parent.key._y = ground - radius;
_parent.fall = 1;
}
}
Instance of Symbol 853 MovieClip in Symbol 894 MovieClip Frame 2
onClipEvent (load) {
if (_root.tree_hole1 >= 1) {
this.gotoAndStop(20);
this.enabled = false;
}
}
on (press) {
this.enabled = false;
play();
_root.keycount++;
_root.tree_hole1 = 1;
if (_root.keycount == 5) {
_parent.key._visible = true;
ground = 875;
_root.tree_key_x = ground;
_root.tree_key_y = (yVol = 0);
grav = 1;
sound = 0;
radius = _parent.key._height / 2;
bounce = -0.15;
_parent.key._y = this._y + 15;
_parent.key._x = this._x + 15;
_root.tree_key_y = ground;
_root.tree_key_x = _parent.key._x;
}
}
onClipEvent (enterFrame) {
yVol = yVol + grav;
_parent.key._y = _parent.key._y + yVol;
if ((_parent.key._y + radius) > ground) {
if ((sound <= 1) && (_parent.key._visible == true)) {
key_bounce = new Sound(this);
key_bounce.attachSound("bounce");
key_bounce.start(0, 0);
sound++;
}
yVol = yVol * bounce;
_parent.key._y = ground - radius;
_parent.fall = 1;
}
}
Instance of Symbol 436 MovieClip in Symbol 894 MovieClip Frame 2
onClipEvent (enterFrame) {
this._y = _parent.key._y;
this._x = _parent.key._x;
if (_parent.fall == 1) {
if ((this._y < _parent.base._y) && (this.getDepth() < _parent.key.getDepth())) {
this.swapDepths(_parent.key);
}
if ((this._y > _parent.base._y) && (this.getDepth() > _parent.key.getDepth())) {
this.swapDepths(_parent.key);
}
}
}
Instance of Symbol 412 MovieClip "up" in Symbol 894 MovieClip Frame 2
onClipEvent (load) {
if (_root.w7 != 4) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.freeze == 0) {
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopd = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if ((_root.crash == 1) or (_root.tree_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopu = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
}
} else if (_root.receive_key != 1) {
gotoAndStop (3);
}
}
if (((_root.crash == 1) or (_root.tree_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
Instance of Symbol 429 MovieClip "left" in Symbol 894 MovieClip Frame 2
onClipEvent (load) {
if (_root.w7 != 2) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.freeze == 0) {
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
_root.stopr = 0;
_root.stopu = 0;
_root.stopd = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
if ((_root.crash == 1) or (_root.tree_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopl = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.up._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
}
}
}
} else if (_root.receive_key != 1) {
gotoAndStop (3);
}
}
if (((_root.crash == 1) or (_root.tree_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
}
}
Instance of Symbol 432 MovieClip "right" in Symbol 894 MovieClip Frame 2
onClipEvent (load) {
if (_root.w7 != 3) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.freeze == 0) {
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
_root.stopl = 0;
_root.stopu = 0;
_root.stopd = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
if ((_root.crash == 1) or (_root.tree_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopr = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.up._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else if (_root.receive_key != 1) {
gotoAndStop (3);
}
}
if (((_root.crash == 1) or (_root.tree_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x - 6;
}
}
Instance of Symbol 435 MovieClip "down" in Symbol 894 MovieClip Frame 2
onClipEvent (load) {
if (_root.w7 != 1) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.freeze == 0) {
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopu = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if ((_root.crash == 1) or (_root.tree_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopd = 1;
}
} else {
this._visible = true;
_parent.up._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else if (_root.receive_key != 1) {
gotoAndStop (3);
}
}
if (((_root.crash == 1) or (_root.tree_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
Instance of Symbol 855 MovieClip "tree_tree" in Symbol 894 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.behind == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 861 MovieClip in Symbol 894 MovieClip Frame 2
onClipEvent (load) {
if (_root.tree_hole3 >= 1) {
this.gotoAndStop(20);
this.enabled = false;
}
}
on (press) {
this.enabled = false;
play();
_root.keycount++;
_root.tree_hole3 = 1;
if (_root.keycount == 5) {
_parent.key._visible = true;
ground = 895;
yVol = 0;
grav = 1;
sound = 0;
radius = _parent.key._height / 2;
bounce = -0.15;
_parent.key._y = this._y + 15;
_parent.key._x = this._x + 15;
_root.tree_key_y = ground;
_root.tree_key_x = _parent.key._x;
}
}
onClipEvent (enterFrame) {
yVol = yVol + grav;
_parent.key._y = _parent.key._y + yVol;
if ((_parent.key._y + radius) > ground) {
if ((sound <= 1) && (_parent.key._visible == true)) {
key_bounce = new Sound(this);
key_bounce.attachSound("bounce");
key_bounce.start(0, 0);
sound++;
}
yVol = yVol * bounce;
_parent.key._y = ground - radius;
_parent.fall = 1;
}
}
Instance of Symbol 866 MovieClip in Symbol 894 MovieClip Frame 2
onClipEvent (load) {
if (_root.tree_hole2 >= 1) {
this.gotoAndStop(20);
this.enabled = false;
}
}
on (press) {
this.enabled = false;
play();
_root.keycount++;
_root.tree_hole2 = 1;
if (_root.keycount == 5) {
_parent.key._visible = true;
ground = 885;
yVol = 0;
grav = 1;
sound = 0;
radius = _parent.key._height / 2;
bounce = -0.15;
_parent.key._y = this._y + 15;
_parent.key._x = this._x + 15;
_root.tree_key_y = ground;
_root.tree_key_x = _parent.key._x;
}
}
onClipEvent (enterFrame) {
yVol = yVol + grav;
_parent.key._y = _parent.key._y + yVol;
if ((_parent.key._y + radius) > ground) {
if ((sound <= 1) && (_parent.key._visible == true)) {
key_bounce = new Sound(this);
key_bounce.attachSound("bounce");
key_bounce.start(0, 0);
sound++;
}
yVol = yVol * bounce;
_parent.key._y = ground - radius;
_parent.fall = 1;
}
}
Instance of Symbol 872 MovieClip in Symbol 894 MovieClip Frame 2
onClipEvent (load) {
if (_root.tree_hole5 >= 1) {
this.gotoAndStop(20);
this.enabled = false;
}
}
on (press) {
this.enabled = false;
play();
_root.keycount++;
_root.tree_hole5 = 1;
if (_root.keycount == 5) {
_parent.key._visible = true;
ground = 945;
yVol = 0;
grav = 1;
sound = 0;
radius = _parent.key._height / 2;
bounce = -0.15;
_parent.key._y = this._y + 15;
_parent.key._x = this._x + 15;
_root.tree_key_y = ground;
_root.tree_key_x = _parent.key._x;
}
}
onClipEvent (enterFrame) {
yVol = yVol + grav;
_parent.key._y = _parent.key._y + yVol;
if ((_parent.key._y + radius) > ground) {
if ((sound <= 1) && (_parent.key._visible == true)) {
key_bounce = new Sound(this);
key_bounce.attachSound("bounce");
key_bounce.start(0, 0);
leaf = new Sound(this);
leaf.attachSound("step_02_w7");
leaf.start(0, 0);
sound++;
}
yVol = yVol * bounce;
_parent.key._y = ground - radius;
_parent.fall = 1;
}
}
Instance of Symbol 885 MovieClip "kid" in Symbol 894 MovieClip Frame 2
onClipEvent (load) {
if ((_root.kid_find == 1) && (_root.kid_tree == 0)) {
this._visible = true;
_root.kid_tree = 1;
} else {
this._visible = false;
_root.tree.kid.gotoAndStop(1);
}
}
Instance of Symbol 411 MovieClip "key" in Symbol 894 MovieClip Frame 2
onClipEvent (load) {
if ((_root.keycount == 5) && (_root.tree_key != 1)) {
_parent.key._y = _root.tree_key_y - 18;
_parent.key._x = _root.tree_key_x;
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true) && (this._alpha >= 100)) {
if (_root.tree_key == 0) {
_root.freeze = 1;
_root.key_n++;
_root.receive_key = 1;
_root.tree_key = 1;
_parent.up.gotoAndPlay(5);
_parent.down.gotoAndPlay(5);
_parent.left.gotoAndPlay(5);
_parent.right.gotoAndPlay(5);
_parent.key._visible = false;
}
}
}
Instance of Symbol 888 MovieClip in Symbol 894 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
varName = "defaultValue";
}
Symbol 906 MovieClip Frame 2
kirupaSound = new Sound(this);
kirupaSound.attachSound("sizzle_burn");
kirupaSound.start(0, 1);
Symbol 924 MovieClip Frame 1
stop();
Symbol 927 MovieClip Frame 1
choice = Math.floor(Math.random() * 20);
this.gotoAndPlay(choice);
Symbol 927 MovieClip Frame 21
this.gotoAndPlay(2);
Symbol 935 MovieClip Frame 1
stop();
Instance of Symbol 906 MovieClip in Symbol 935 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == 30) {
this.gotoAndStop(1);
}
}
Instance of Symbol 906 MovieClip in Symbol 935 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == 30) {
this.gotoAndStop(1);
}
}
Instance of Symbol 906 MovieClip in Symbol 935 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == 30) {
this.gotoAndStop(1);
}
}
Instance of Symbol 906 MovieClip in Symbol 935 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == 30) {
this.gotoAndStop(1);
}
}
Symbol 935 MovieClip Frame 2
_parent.base._visible = false;
_parent.down._visible = false;
_parent.left._visible = false;
_parent.right._visible = false;
_parent.up._visible = false;
_parent.base._y = 928;
_parent.base._x = 333.2;
_parent.up._y = 907;
_parent.up._x = 333.2;
_parent.right._y = 907;
_parent.right._x = 333.2;
_parent.left._y = 907;
_parent.left._x = 333.2;
_parent.down._y = 907;
_parent.down._x = 333.2;
Symbol 935 MovieClip Frame 27
stop();
Instance of Symbol 924 MovieClip in Symbol 935 MovieClip Frame 27
onClipEvent (load) {
choice = 0;
}
on (press) {
choice = Math.floor(Math.random() * 2);
if (choice == 1) {
_root.health.bed_enter.play();
} else {
this.play();
}
}
Symbol 935 MovieClip Frame 58
_root.health.freeze = 0;
_root.health.base._y = 904;
_root.health.base._x = 253;
_root.health.up._y = 883;
_root.health.up._x = 253;
_root.health.right._y = 883;
_root.health.right._x = 253;
_root.health.left._y = 883;
_root.health.left._x = 253;
_root.health.down._y = 883;
_root.health.down._x = 253;
_parent.left._visible = true;
_parent.base._visible = true;
Symbol 937 MovieClip Frame 1
this.createEmptyMovieClip("s1", 1);
my_sound1 = new Sound(s1);
my_sound1.attachSound("hospital");
my_sound1.stop();
stop();
Instance of Symbol 650 MovieClip in Symbol 937 MovieClip Frame 1
onClipEvent (load) {
if (_root.w8 != 0) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 937 MovieClip Frame 2
this.createEmptyMovieClip("s1", 1);
my_sound1 = new Sound(s1);
my_sound1.attachSound("hospital");
this.createEmptyMovieClip("s2", 2);
my_sound2 = new Sound(s2);
my_sound2.attachSound("sizzle_burn");
my_sound1.start(0, 999);
my_sound1.setVolume(50);
my_sound2.setVolume(100);
stop();
freeze = 0;
_root.fss = "tile";
if (_root.w8 == 1) {
_root.health.base._y = 844;
_root.health.base._x = 224;
_root.health.up._y = 823;
_root.health.up._x = 224;
_root.health.right._y = 823;
_root.health.right._x = 224;
_root.health.left._y = 823;
_root.health.left._x = 224;
_root.health.down._y = 823;
_root.health.down._x = 224;
}
if (_root.w8 == 2) {
_root.health.base._y = 844;
_root.health.base._x = 333.2;
_root.health.up._y = 823;
_root.health.up._x = 333.2;
_root.health.right._y = 823;
_root.health.right._x = 333.2;
_root.health.left._y = 823;
_root.health.left._x = 333.2;
_root.health.down._y = 823;
_root.health.down._x = 333.2;
}
if (_root.w8 == 3) {
_root.health.base._y = 928;
_root.health.base._x = 230;
_root.health.up._y = 907;
_root.health.up._x = 230;
_root.health.right._y = 907;
_root.health.right._x = 230;
_root.health.left._y = 907;
_root.health.left._x = 230;
_root.health.down._y = 907;
_root.health.down._x = 230;
}
if (_root.w8 == 4) {
_root.health.base._y = 928;
_root.health.base._x = 333.2;
_root.health.up._y = 907;
_root.health.up._x = 333.2;
_root.health.right._y = 907;
_root.health.right._x = 333.2;
_root.health.left._y = 907;
_root.health.left._x = 333.2;
_root.health.down._y = 907;
_root.health.down._x = 333.2;
}
Instance of Symbol 412 MovieClip "up" in Symbol 937 MovieClip Frame 2
onClipEvent (load) {
if (_root.w8 != 4) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.health.freeze == 0) {
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopd = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if (((_root.crash == 1) or (_root.health_crash == 1)) or (_root.d_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopu = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
}
} else {
gotoAndStop (3);
}
if ((((_root.crash == 1) or (_root.health_crash == 1)) or (_root.d_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
Instance of Symbol 429 MovieClip "left" in Symbol 937 MovieClip Frame 2
onClipEvent (load) {
if (_root.w8 != 2) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.health.freeze == 0) {
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
_root.stopr = 0;
_root.stopu = 0;
_root.stopd = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
if (((_root.crash == 1) or (_root.health_crash == 1)) or (_root.d_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopl = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.up._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
}
}
}
} else {
gotoAndStop (3);
}
if ((((_root.crash == 1) or (_root.health_crash == 1)) or (_root.d_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
}
}
}
Instance of Symbol 432 MovieClip "right" in Symbol 937 MovieClip Frame 2
onClipEvent (load) {
if (_root.w8 != 3) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.health.freeze == 0) {
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
_root.stopl = 0;
_root.stopu = 0;
_root.stopd = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
if (((_root.crash == 1) or (_root.health_crash == 1)) or (_root.d_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopr = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.up._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else {
gotoAndStop (3);
}
if ((((_root.crash == 1) or (_root.health_crash == 1)) or (_root.d_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x - 6;
}
}
}
Instance of Symbol 435 MovieClip "down" in Symbol 937 MovieClip Frame 2
onClipEvent (load) {
if (_root.w8 != 1) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.health.freeze == 0) {
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopu = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if (((_root.crash == 1) or (_root.health_crash == 1)) or (_root.d_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopd = 1;
}
} else {
this._visible = true;
_parent.up._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else {
gotoAndStop (3);
}
if ((((_root.crash == 1) or (_root.health_crash == 1)) or (_root.d_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
}
Instance of Symbol 897 MovieClip in Symbol 937 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.health_behind == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 935 MovieClip "bed_enter" in Symbol 937 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.health_enter == 1) {
_root.health.freeze = 1;
this._visible = true;
this.play();
}
}
Symbol 1004 MovieClip Frame 1
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
init = function () {
width = this._width;
height = this._height;
max_rainsize = 10;
rainflakes = 50;
i = 0;
while (i < rainflakes) {
t = attachMovie("spark", "spark" + i, i);
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.k = randRange(9, 10);
t.onEnterFrame = mover;
i++;
}
};
mover = function () {
this._y = this._y + this.k;
if (this._y > (height + 10)) {
this._y = -10;
}
if (this._x > (width + 20)) {
this._x = (-(width / 2)) + (Math.random() * (1.5 * width));
this._y = -10;
} else if (this._x < -20) {
this._x = (-(width / 2)) + (Math.random() * (1.5 * width));
this._y = -10;
}
};
init();
Symbol 1006 MovieClip Frame 1
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
init = function () {
width = this._width;
height = this._height;
max_rainsize = 10;
rainflakes = 50;
i = 0;
while (i < rainflakes) {
t = attachMovie("spark", "spark" + i, i);
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.k = randRange(9, 10);
t.onEnterFrame = mover;
i++;
}
};
mover = function () {
this._y = this._y + this.k;
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();
Symbol 1012 MovieClip Frame 1
kirupaSound = new Sound(this);
kirupaSound.attachSound("teleporter_room");
kirupaSound.stop();
stop();
Instance of Symbol 650 MovieClip in Symbol 1012 MovieClip Frame 1
onClipEvent (load) {
if (_root.w9 != 0) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 1012 MovieClip Frame 2
kirupaSound = new Sound(this);
kirupaSound.attachSound("teleporter_room");
kirupaSound.start(0, 999);
stop();
_root.fss = "w9";
if (_root.w9 == 1) {
_root.pink.base._y = 844;
_root.pink.base._x = 224;
_root.pink.up._y = 823;
_root.pink.up._x = 224;
_root.pink.right._y = 823;
_root.pink.right._x = 224;
_root.pink.left._y = 823;
_root.pink.left._x = 224;
_root.pink.down._y = 823;
_root.pink.down._x = 224;
_root.pink.up._visible = true;
}
if (_root.w9 == 2) {
_root.pink.base._y = 844;
_root.pink.base._x = 333.2;
_root.pink.up._y = 823;
_root.pink.up._x = 333.2;
_root.pink.right._y = 823;
_root.pink.right._x = 333.2;
_root.pink.left._y = 823;
_root.pink.left._x = 333.2;
_root.pink.down._y = 823;
_root.pink.down._x = 333.2;
_root.pink.right._visible = true;
}
if (_root.w9 == 3) {
_root.pink.base._y = 928;
_root.pink.base._x = 230;
_root.pink.up._y = 907;
_root.pink.up._x = 230;
_root.pink.right._y = 907;
_root.pink.right._x = 230;
_root.pink.left._y = 907;
_root.pink.left._x = 230;
_root.pink.down._y = 907;
_root.pink.down._x = 230;
_root.pink.left._visible = true;
}
if (_root.w9 == 4) {
_root.pink.base._y = 928;
_root.pink.base._x = 333.2;
_root.pink.up._y = 907;
_root.pink.up._x = 333.2;
_root.pink.right._y = 907;
_root.pink.right._x = 333.2;
_root.pink.left._y = 907;
_root.pink.left._x = 333.2;
_root.pink.down._y = 907;
_root.pink.down._x = 333.2;
_root.pink.down._visible = true;
}
Instance of Symbol 944 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 951 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 944 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 944 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 958 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 944 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 958 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 944 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 944 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 951 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 944 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 951 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 958 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 944 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 958 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 944 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + 303.4, _parent.base._y + 455.5, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 966 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 969 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 966 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 969 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 972 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 966 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 972 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 966 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 966 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 969 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 966 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 969 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 972 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 966 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 972 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 966 MovieClip in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true) == false)) {
light = 0;
this.gotoAndStop(6);
play();
}
if (this._currentframe == 5) {
this.stop();
}
if (this._currentframe == 1) {
this.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true))) {
light++;
this.gotoAndStop(1);
play();
}
}
Instance of Symbol 976 MovieClip "shadow_l" in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
_parent.sl1.stop();
_parent.sl2.stop();
_parent.sl3.stop();
}
onClipEvent (enterFrame) {
_currentframe;
if ((light == 1) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true) == false)) {
light = 0;
this.gotoAndStop(6);
this.play();
_parent.sl1.gotoAndStop(6);
_parent.sl3.gotoAndStop(6);
_parent.sl1.play();
_parent.sl3.play();
}
if (this._currentframe == 5) {
this.stop();
_parent.sl1.stop();
_parent.sl3.stop();
}
if (this._currentframe == 1) {
this.stop();
_parent.sl1.stop();
_parent.sl3.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true))) {
light++;
this.gotoAndStop(1);
this.play();
_parent.sl1.gotoAndStop(1);
_parent.sl3.gotoAndStop(1);
_parent.sl1.play();
_parent.sl3.play();
}
}
Instance of Symbol 980 MovieClip "shadow_r" in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
light = 0;
this.stop();
_parent.sr1.stop();
_parent.sr2.stop();
_parent.sr3.stop();
}
onClipEvent (enterFrame) {
if ((light == 1) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true) == false)) {
light = 0;
this.gotoAndStop(6);
this.play();
_parent.sr1.gotoAndStop(6);
_parent.sr3.gotoAndStop(6);
_parent.sr1.play();
_parent.sr3.play();
}
if (this._currentframe == 5) {
this.stop();
_parent.sr1.stop();
_parent.sr3.stop();
}
if (this._currentframe == 1) {
this.stop();
_parent.sr1.stop();
_parent.sr3.stop();
}
if ((light == 0) && (this.hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true))) {
light++;
this.gotoAndStop(1);
this.play();
_parent.sr1.gotoAndStop(1);
_parent.sr3.gotoAndStop(1);
_parent.sr1.play();
_parent.sr3.play();
}
}
Instance of Symbol 995 MovieClip "sl2" in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
this._visible = true;
}
onClipEvent (enterFrame) {
if (_root.pink_behind == 1) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 1001 MovieClip "sr2" in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
this._visible = true;
}
onClipEvent (enterFrame) {
if (_root.pink_behind1 == 1) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 412 MovieClip "up" in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
if (_root.w9 != 4) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopd = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if ((_root.crash == 1) or (_root.pink_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopu = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
}
} else {
gotoAndStop (3);
}
if (((_root.crash == 1) or (_root.pink_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
Instance of Symbol 429 MovieClip "left" in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
if (_root.w9 != 2) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
_root.stopr = 0;
_root.stopu = 0;
_root.stopd = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
if ((_root.crash == 1) or (_root.pink_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopl = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.up._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
}
}
}
} else {
gotoAndStop (3);
}
if (((_root.crash == 1) or (_root.pink_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
}
}
Instance of Symbol 432 MovieClip "right" in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
if (_root.w9 != 3) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
_root.stopl = 0;
_root.stopu = 0;
_root.stopd = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
if ((_root.crash == 1) or (_root.pink_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopr = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.up._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else {
gotoAndStop (3);
}
if (((_root.crash == 1) or (_root.pink_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x - 6;
}
}
Instance of Symbol 435 MovieClip "down" in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
if (_root.w9 != 1) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopu = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if ((_root.crash == 1) or (_root.pink_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopd = 1;
}
} else {
this._visible = true;
_parent.up._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else {
gotoAndStop (3);
}
if (((_root.crash == 1) or (_root.pink_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
Instance of Symbol 1001 MovieClip "sr1" in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.pink_behind1 == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 995 MovieClip "sl1" in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.pink_behind == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1004 MovieClip in Symbol 1012 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
varName = "defaultValue";
}
Instance of Symbol 1006 MovieClip in Symbol 1012 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
varName = "defaultValue";
}
Instance of Symbol 1009 MovieClip "telel" in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
butn = 0;
}
on (press) {
if ((_root.pink_behind == 1) && (_parent.teler.butn1 < 1)) {
butn++;
_root.stopd = 1;
_root.stopl = 1;
_root.stopr = 1;
_root.stopu = 1;
this.createEmptyMovieClip("s1", 1);
my_sound1 = new Sound(s1);
my_sound1.attachSound("teleporter");
my_sound1.start(0, 1);
}
}
onClipEvent (enterFrame) {
if ((butn == 1) && (_parent.down._alpha > 0)) {
_parent.base._alpha = Math.ceil(_parent.base._alpha - 20);
_parent.down._alpha = Math.ceil(_parent.down._alpha - 20);
_parent.up._alpha = Math.ceil(_parent.down._alpha - 20);
_parent.right._alpha = Math.ceil(_parent.down._alpha - 20);
_parent.left._alpha = Math.ceil(_parent.down._alpha - 20);
}
if ((_parent.down._alpha == 0) && (butn == 1)) {
butn = 2;
_parent.base._x = 332;
_parent.base._y = 873;
_parent.down._x = 332;
_parent.down._y = 852;
_parent.up._x = 332;
_parent.up._y = 852;
_parent.right._x = 332;
_parent.right._y = 852;
_parent.left._x = 332;
_parent.left._y = 852;
}
if (((_root.pink_behind == 0) && (_parent.down._alpha < 100)) && (butn == 2)) {
_parent.base._alpha = Math.ceil(_parent.base._alpha + 20);
_parent.down._alpha = Math.ceil(_parent.down._alpha + 20);
_parent.up._alpha = Math.ceil(_parent.down._alpha + 20);
_parent.right._alpha = Math.ceil(_parent.down._alpha + 20);
_parent.left._alpha = Math.ceil(_parent.down._alpha + 20);
}
if (((_root.pink_behind == 0) && (_parent.down._alpha == 100)) && (butn != 0)) {
butn = 0;
_root.stopd = 0;
_root.stopl = 0;
_root.stopr = 0;
_root.stopu = 0;
}
}
Instance of Symbol 1010 MovieClip "teler" in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
butn1 = 0;
}
on (press) {
if ((_root.pink_behind1 == 1) && (_parent.telel.butn < 1)) {
butn1++;
_root.stopd = 1;
_root.stopl = 1;
_root.stopr = 1;
_root.stopu = 1;
this.createEmptyMovieClip("s1", 1);
my_sound1 = new Sound(s1);
my_sound1.attachSound("teleporter");
my_sound1.start(0, 1);
}
}
onClipEvent (enterFrame) {
if ((butn1 == 1) && (_parent.down._alpha > 0)) {
_parent.base._alpha = Math.ceil(_parent.base._alpha - 20);
_parent.down._alpha = Math.ceil(_parent.down._alpha - 20);
_parent.up._alpha = Math.ceil(_parent.down._alpha - 20);
_parent.right._alpha = Math.ceil(_parent.down._alpha - 20);
_parent.left._alpha = Math.ceil(_parent.down._alpha - 20);
}
if ((_parent.down._alpha == 0) && (butn1 == 1)) {
butn1 = 2;
_parent.base._x = 233;
_parent.base._y = 857;
_parent.down._x = 233;
_parent.down._y = 836;
_parent.up._x = 233;
_parent.up._y = 836;
_parent.right._x = 233;
_parent.right._y = 836;
_parent.left._x = 233;
_parent.left._y = 836;
}
if (((_root.pink_behind1 == 0) && (_parent.down._alpha < 100)) && (butn1 == 2)) {
_parent.base._alpha = Math.ceil(_parent.base._alpha + 20);
_parent.down._alpha = Math.ceil(_parent.down._alpha + 20);
_parent.up._alpha = Math.ceil(_parent.down._alpha + 20);
_parent.right._alpha = Math.ceil(_parent.down._alpha + 20);
_parent.left._alpha = Math.ceil(_parent.down._alpha + 20);
}
if (((_root.pink_behind1 == 0) && (_parent.down._alpha == 100)) && (butn1 != 0)) {
butn1 = 0;
_root.stopd = 0;
_root.stopl = 0;
_root.stopr = 0;
_root.stopu = 0;
}
}
Symbol 1028 MovieClip Frame 9
stop();
Symbol 1044 MovieClip Frame 1
stop();
Symbol 1044 MovieClip Frame 8
stop();
Instance of Symbol 1030 MovieClip in Symbol 1044 MovieClip Frame 8
on (press) {
_parent.play();
}
Instance of Symbol 1032 MovieClip "open" in Symbol 1044 MovieClip Frame 9
on (press) {
_parent.play();
}
Symbol 1044 MovieClip Frame 19
stop();
Instance of Symbol 1036 MovieClip "open" in Symbol 1044 MovieClip Frame 20
on (press) {
_parent.play();
}
Symbol 1044 MovieClip Frame 30
stop();
Instance of Symbol 1039 MovieClip "open" in Symbol 1044 MovieClip Frame 31
on (press) {
_parent.play();
}
Symbol 1044 MovieClip Frame 41
stop();
Instance of Symbol 1059 MovieClip in Symbol 1064 MovieClip Frame 1
on (press) {
_root.sky_b.book_heart.gotoAndStop(1);
_root.sky_b.book_pattern.gotoAndStop(1);
_root.sky_b.book_sky.gotoAndStop(1);
_root.sky_b.book_water.play();
}
Instance of Symbol 1061 MovieClip in Symbol 1064 MovieClip Frame 1
on (press) {
_root.sky_b.book_heart.gotoAndStop(1);
_root.sky_b.book_water.gotoAndStop(1);
_root.sky_b.book_pattern.gotoAndStop(1);
_root.sky_b.book_sky.play();
}
Instance of Symbol 1063 MovieClip in Symbol 1064 MovieClip Frame 1
on (press) {
_root.sky_b.book_heart.gotoAndStop(1);
_root.sky_b.book_sky.gotoAndStop(1);
_root.sky_b.book_water.gotoAndStop(1);
_root.sky_b.book_pattern.play();
}
Symbol 1065 MovieClip Frame 1
stop();
Symbol 1065 MovieClip Frame 2
stop();
Symbol 1075 MovieClip Frame 50
stop();
Symbol 1202 MovieClip Frame 1
stop();
Symbol 1202 MovieClip Frame 2
_root.sky_b.base._visible = false;
_root.sky_b.down._visible = false;
_root.sky_b.left._visible = false;
_root.sky_b.right._visible = false;
_root.sky_b.up._visible = false;
_parent.chair._visible = false;
_parent.books._visible = false;
_parent.books.play();
Symbol 1202 MovieClip Frame 117
kirupaSound = new Sound(this);
kirupaSound.attachSound("boy_grunts");
kirupaSound.start(0, 1);
Instance of Symbol 1179 MovieClip in Symbol 1202 MovieClip Frame 182
onClipEvent (load) {
this._visible = false;
if (_root.kid_swamp == 1) {
this._visible = true;
_root.kid_swamp = 2;
}
}
Instance of Symbol 1075 MovieClip in Symbol 1202 MovieClip Frame 200
onClipEvent (load) {
this._visible = false;
if (_root.kid_swamp == 2) {
this._visible = true;
}
}
Symbol 1202 MovieClip Frame 254
_root.sky_b.freeze = 0;
_parent.left._visible = true;
_parent.base._visible = true;
_parent.chair._visible = true;
_parent.books._visible = true;
_root.stopd = 0;
_root.stopl = 0;
_root.stopr = 0;
_root.stopu = 0;
_parent.base._y = 854.6;
_parent.base._x = 244.6;
_parent.up._y = 833.6;
_parent.up._x = 244.6;
_parent.right._y = 833.6;
_parent.right._x = 244.6;
_parent.left._y = 833.6;
_parent.left._x = 244.6;
_parent.down._y = 833.6;
_parent.down._x = 244.6;
Symbol 1217 MovieClip Frame 1
function flyInit() {
this.speedX = Math.random() * speed;
this.speedY = Math.random() * speed;
this.onEnterFrame = flyMove;
}
function flyMove() {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (Math.abs(this._x - sX) > sWidth) {
this.speedX = -this.speedX;
this._x = Math.acos(this._x) + this.speedX;
}
if (Math.abs(this._y - sY) > sHeight) {
this.speedY = -this.speedY;
this._y = Math.asin(this._y) + this.speedY;
}
if (Math.random() < jitter) {
this.speedX = (Math.random() * speed) - (speed / 2);
this.speedY = (Math.random() * speed) - (speed / 2);
}
}
function flyDie() {
var _local2 = 0;
while (_local2 < numFlies) {
var _local3 = _parent["fly" + _local2];
_local3.removeMovieClip();
_local2++;
}
}
var sWidth = (this._width / 2);
var sHeight = (this._height / 2);
var sX = this._x;
var sY = this._y;
var i = 0;
while (i < numFlies) {
var fly = _parent.attachMovie("fly", "fly" + i, _parent.getNextHighestDepth());
fly._x = (sX + ((Math.random() * sWidth) * 2)) - sWidth;
fly._y = (sY + ((Math.random() * sHeight) * 2)) - sHeight;
fly.onEnterFrame = flyInit;
i++;
}
this._visible = false;
this.onUnload = flyDie;
Instance of Symbol 1217 MovieClip in Symbol 1218 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
jitter = 0.15;
speed = 2;
numFlies = "2";
}
Instance of Symbol 1217 MovieClip in Symbol 1218 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
jitter = 0.15;
speed = 2;
numFlies = "2";
}
Instance of Symbol 1217 MovieClip in Symbol 1218 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
jitter = 0.15;
speed = 2;
numFlies = "2";
}
Symbol 1224 MovieClip Frame 1
stop();
Symbol 1224 MovieClip Frame 8
stop();
Instance of Symbol 1213 MovieClip in Symbol 1224 MovieClip Frame 8
on (press) {
_parent.play();
}
Instance of Symbol 1220 MovieClip "open" in Symbol 1224 MovieClip Frame 9
on (press) {
_parent.play();
}
Symbol 1224 MovieClip Frame 19
stop();
Symbol 1233 MovieClip Frame 1
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function flyInit() {
this.speedX = Math.random() * speed;
this.speedY = Math.random() * speed;
this.onEnterFrame = flyMove;
}
function flyMove() {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (Math.abs(this._x - sX) > sWidth) {
this.speedX = -this.speedX;
this._x = Math.acos(this._x) + this.speedX;
}
if (Math.abs(this._y - sY) > sHeight) {
this.speedY = -this.speedY;
this._y = Math.asin(this._y) + this.speedY;
}
if (Math.random() < jitter) {
this.speedX = (Math.random() * speed) - (speed / 2);
this.speedY = (Math.random() * speed) - (speed / 2);
}
}
function flyDie() {
var _local2 = 0;
while (_local2 < numFlies) {
var _local3 = _parent["fish" + _local2];
_local3.removeMovieClip();
_local2++;
}
}
var sWidth = (this._width / 2);
var sHeight = (this._height / 2);
var sX = this._x;
var sY = this._y;
var i = 0;
while (i < numFlies) {
var fly = _parent.attachMovie("fish", "fish" + i, _parent.getNextHighestDepth());
fly._x = (sX + ((Math.random() * sWidth) * 2)) - sWidth;
fly._y = (sY + ((Math.random() * sHeight) * 2)) - sHeight;
_parent["fish" + i].gotoAndPlay(randRange(2, 45));
fly.onEnterFrame = flyInit;
i++;
}
this._visible = false;
this.onUnload = flyDie;
Instance of Symbol 1233 MovieClip in Symbol 1234 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
jitter = 0;
speed = 0;
numFlies = "4";
}
Symbol 1243 MovieClip Frame 1
_root.sky_b.book_water.open.water.cacheAsBitmap = true;
_root.sky_b.book_water.open.mask.cacheAsBitmap = true;
_root.sky_b.book_water.open.water.setMask("_root.sky_b.book_water.open.mask");
Symbol 1248 MovieClip Frame 1
_root.sky_b.book_water.open.water.cacheAsBitmap = true;
_root.sky_b.book_water.open.mask.cacheAsBitmap = true;
_root.sky_b.book_water.open.water.setMask("_root.sky_b.book_water.open.mask");
Instance of Symbol 659 MovieClip "water" in Symbol 1248 MovieClip Frame 1
/* no clip actions */
Symbol 1252 MovieClip Frame 1
stop();
Symbol 1252 MovieClip Frame 8
stop();
Instance of Symbol 1226 MovieClip in Symbol 1252 MovieClip Frame 8
on (press) {
_parent.play();
}
Instance of Symbol 1243 MovieClip in Symbol 1252 MovieClip Frame 9
on (press) {
_parent.play();
}
Symbol 1252 MovieClip Frame 19
stop();
Instance of Symbol 1248 MovieClip "open" in Symbol 1252 MovieClip Frame 20
on (press) {
_parent.play();
}
Symbol 1252 MovieClip Frame 30
stop();
Symbol 1267 MovieClip Frame 1
stop();
Symbol 1267 MovieClip Frame 8
stop();
Instance of Symbol 1254 MovieClip in Symbol 1267 MovieClip Frame 8
on (press) {
_parent.play();
}
Instance of Symbol 1259 MovieClip "open" in Symbol 1267 MovieClip Frame 9
on (press) {
_parent.play();
}
Symbol 1267 MovieClip Frame 19
stop();
Instance of Symbol 1262 MovieClip "open" in Symbol 1267 MovieClip Frame 20
on (press) {
_parent.play();
}
Symbol 1267 MovieClip Frame 30
stop();
Symbol 1277 MovieClip Frame 1
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
this.gotoAndStop(randRange(2, 7));
Symbol 1282 MovieClip Frame 4
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
if (randRange(1, 20) == 1) {
} else {
this.gotoAndPlay(2);
}
Symbol 1292 MovieClip Frame 1
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
this.gotoAndPlay(randRange(2, 41));
Symbol 1292 MovieClip Frame 40
this.gotoAndPlay(2);
Symbol 1298 MovieClip Frame 1
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
this.gotoAndPlay(randRange(2, 41));
Symbol 1298 MovieClip Frame 40
this.gotoAndPlay(2);
Symbol 1299 MovieClip Frame 1
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
Instance of Symbol 1292 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Symbol 1301 MovieClip Frame 1
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
Instance of Symbol 1292 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1298 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Instance of Symbol 1292 MovieClip in Symbol 1301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(randRange(1, 40));
}
Symbol 1304 MovieClip Frame 1
stop();
Symbol 1304 MovieClip Frame 8
stop();
Instance of Symbol 1269 MovieClip in Symbol 1304 MovieClip Frame 8
on (press) {
_parent.play();
}
Instance of Symbol 1284 MovieClip "open" in Symbol 1304 MovieClip Frame 9
on (press) {
_parent.play();
}
Symbol 1304 MovieClip Frame 19
stop();
Instance of Symbol 1299 MovieClip "open" in Symbol 1304 MovieClip Frame 20
on (press) {
_parent.play();
}
Symbol 1304 MovieClip Frame 30
stop();
Instance of Symbol 1301 MovieClip "open" in Symbol 1304 MovieClip Frame 31
on (press) {
_parent.play();
}
Symbol 1304 MovieClip Frame 41
stop();
Symbol 1305 MovieClip Frame 1
stop();
Instance of Symbol 1028 MovieClip in Symbol 1305 MovieClip Frame 1
onClipEvent (load) {
if (_root.r2 != 0) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 1305 MovieClip Frame 2
kirupasound = new Sound(this);
kirupasound.attachSound("tick_tock");
kirupasound.start(0, 999);
kirupaSound1 = new Sound(this);
kirupaSound1.attachSound("swamp_lowpass");
kirupaSound1.start(0, 999);
stop();
freeze = 0;
_root.fss = "tile";
if (_root.r2 == 1) {
_root.sky_b.base._y = 803;
_root.sky_b.base._x = 313.8;
_root.sky_b.up._y = 782;
_root.sky_b.up._x = 313.8;
_root.sky_b.right._y = 782;
_root.sky_b.right._x = 313.8;
_root.sky_b.left._y = 782;
_root.sky_b.left._x = 313.8;
_root.sky_b.down._y = 782;
_root.sky_b.down._x = 313.8;
_root.sky_b.left._visible = true;
}
Instance of Symbol 1065 MovieClip "books" in Symbol 1305 MovieClip Frame 2
onClipEvent (load) {
if (_root.sky_b_sit == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1075 MovieClip in Symbol 1305 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
if ((_root.sky_b_sit == 1) and (_root.kid_swamp == 1)) {
this._visible = true;
_root.kid_swamp = 2;
}
}
Instance of Symbol 1078 MovieClip in Symbol 1305 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.sky_b.base._x + _parent._x, _root.sky_b.base._y + _parent._y, true)) {
_root.sky_b_crash = 1;
} else {
_root.sky_b_crash = 0;
}
}
Instance of Symbol 1080 MovieClip in Symbol 1305 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (hitTest(_parent.base._x + _parent._x, _parent.base._y + _parent._y, true)) {
stopAllSounds();
_root.w6 = 3;
_root.swamp.play();
_root.sky_b.play();
_root.mainroomsound.start(_root.musicposition, 0);
}
}
Instance of Symbol 619 MovieClip "health_red" in Symbol 1305 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sky_b.base._x + _parent._x, _root.sky_b.base._y + _parent._y, true)) {
_root.sky_table_crash = 1;
} else {
_root.sky_table_crash = 0;
}
}
Instance of Symbol 621 MovieClip "blue_col" in Symbol 1305 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
behind = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.sky_b.base._x + _parent._x, _root.sky_b.base._y + _parent._y, true)) {
behind++;
if (behind == 1) {
_parent.table_null.swapDepths(_parent.table);
}
}
if ((hitTest(_root.sky_b.base._x + _parent._x, _root.sky_b.base._y + _parent._y, true) == false) && (behind > 1)) {
behind = 0;
_parent.table_null.swapDepths(_parent.table);
}
}
Instance of Symbol 1082 MovieClip in Symbol 1305 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sky_b.base._x + _parent._x, _root.sky_b.base._y + _parent._y, true) && (_root.sky_b_sit == 0)) {
if (_parent.table._currentframe == 1) {
_root.sky_b_sit = 1;
_parent.table.play();
_root.sky_b.freeze = 1;
}
}
}
Instance of Symbol 1084 MovieClip in Symbol 1305 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
behind = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.sky_b.base._x + _parent._x, _root.sky_b.base._y + _parent._y, true)) {
behind++;
if (behind == 1) {
_parent.chair_null.swapDepths(_parent.chair);
}
}
if ((hitTest(_root.sky_b.base._x + _parent._x, _root.sky_b.base._y + _parent._y, true) == false) && (behind > 1)) {
behind = 0;
_parent.chair_null.swapDepths(_parent.chair);
}
}
Instance of Symbol 1086 MovieClip in Symbol 1305 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sky_b.base._x + _parent._x, _root.sky_b.base._y + _parent._y, true)) {
_root.sky_chair_crash = 1;
} else {
_root.sky_chair_crash = 0;
}
}
Instance of Symbol 412 MovieClip "up" in Symbol 1305 MovieClip Frame 2
onClipEvent (load) {
if (_root.r2 != 4) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.sky_b.freeze == 0) {
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopd = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if (((((_root.crash == 1) or (_root.sky_b_crash == 1)) or (_root.sky_table_crash == 1)) or (_root.sky_chair_crash == 11)) or (_root.sky_chair_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopu = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
}
} else {
gotoAndStop (3);
}
if ((((((_root.crash == 1) or (_root.sky_b_crash == 1)) or (_root.sky_table_crash == 1)) or (_root.sky_chair_crash == 11)) or (_root.sky_chair_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
Instance of Symbol 429 MovieClip "left" in Symbol 1305 MovieClip Frame 2
onClipEvent (load) {
if (_root.r2 != 1) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.sky_b.freeze == 0) {
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
_root.stopr = 0;
_root.stopu = 0;
_root.stopd = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
if ((((_root.crash == 1) or (_root.sky_b_crash == 1)) or (_root.sky_table_crash == 1)) or (_root.sky_chair_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopl = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.up._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
}
}
}
} else {
gotoAndStop (3);
}
if (((((_root.crash == 1) or (_root.sky_b_crash == 1)) or (_root.sky_table_crash == 1)) or (_root.sky_chair_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
}
}
}
Instance of Symbol 432 MovieClip "right" in Symbol 1305 MovieClip Frame 2
onClipEvent (load) {
if (_root.r2 != 3) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.sky_b.freeze == 0) {
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
_root.stopl = 0;
_root.stopu = 0;
_root.stopd = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
if ((((_root.crash == 1) or (_root.sky_b_crash == 1)) or (_root.sky_table_crash == 1)) or (_root.sky_chair_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopr = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.up._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else {
gotoAndStop (3);
}
if (((((_root.crash == 1) or (_root.sky_b_crash == 1)) or (_root.sky_table_crash == 1)) or (_root.sky_chair_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x - 6;
}
}
}
Instance of Symbol 435 MovieClip "down" in Symbol 1305 MovieClip Frame 2
onClipEvent (load) {
if (_root.r2 != 2) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.sky_b.freeze == 0) {
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopu = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if ((((_root.crash == 1) or (_root.sky_b_crash == 1)) or (_root.sky_table_crash == 1)) or (_root.sky_chair_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopd = 1;
}
} else {
this._visible = true;
_parent.up._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else {
gotoAndStop (3);
}
if (((((_root.crash == 1) or (_root.sky_b_crash == 1)) or (_root.sky_table_crash == 1)) or (_root.sky_chair_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
}
Instance of Symbol 1204 MovieClip in Symbol 1305 MovieClip Frame 2
on (press) {
_root.sky_b.book_sky.gotoAndStop(1);
_root.sky_b.book_water.gotoAndStop(1);
_root.sky_b.book_pattern.gotoAndStop(1);
_root.sky_b.book_heart.play();
}
Symbol 1320 MovieClip Frame 348
_root.sky_d.zoom_grad.play();
_root.sky_d.zoom_button.play();
Symbol 1320 MovieClip Frame 410
stop();
Instance of Symbol 1320 MovieClip "credits" in Symbol 1324 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 1320 MovieClip "credits_02" in Symbol 1324 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 1323 MovieClip "credit_mask_02" in Symbol 1324 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 1323 MovieClip "credit_mask" in Symbol 1324 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 1361 MovieClip Frame 23
stop();
Symbol 1363 MovieClip Frame 2
_parent.base._visible = false;
_parent.up._visible = false;
_parent.down._visible = false;
_parent.left._visible = false;
_parent.right._visible = false;
Symbol 1369 MovieClip Frame 85
stop();
Symbol 1370 MovieClip Frame 1
stop();
if (_root.r4 == 1) {
_parent.base._y = 844;
_parent.base._x = 224;
_parent.up._y = 823;
_parent.up._x = 224;
_parent.right._y = 823;
_parent.right._x = 224;
_parent.left._y = 823;
_parent.left._x = 224;
_parent.down._y = 823;
_parent.down._x = 224;
_parent.up._visible = true;
}
if (_root.r4 == 2) {
_parent.base._y = 844;
_parent.base._x = 333.2;
_parent.up._y = 823;
_parent.up._x = 333.2;
_parent.right._y = 823;
_parent.right._x = 333.2;
_parent.left._y = 823;
_parent.left._x = 333.2;
_parent.down._y = 823;
_parent.down._x = 333.2;
_parent.right._visible = true;
}
_root.sky_d.zoom.credits.cacheAsBitmap = true;
_root.sky_d.zoom.credit_mask.cacheAsBitmap = true;
_root.sky_d.zoom.credits.setMask("_root.sky_d.zoom.credit_mask");
_root.sky_d.zoom.credits_02.cacheAsBitmap = true;
_root.sky_d.zoom.credit_mask_02.cacheAsBitmap = true;
_root.sky_d.zoom.credits_02.setMask("_root.sky_d.zoom.credit_mask_02");
Instance of Symbol 1324 MovieClip "credit_zm" in Symbol 1370 MovieClip Frame 1
onClipEvent (load) {
this.stop();
_root.sky_d.zoom.credit_zm.credits.cacheAsBitmap = true;
_root.sky_d.zoom.credit_zm.credit_mask.cacheAsBitmap = true;
_root.sky_d.zoom.credit_zm.credits.setMask("_root.sky_d.zoom.credit_zm.credit_mask");
_root.sky_d.zoom.credit_zm.credits_02.cacheAsBitmap = true;
_root.sky_d.zoom.credit_zm.credit_mask_02.cacheAsBitmap = true;
_root.sky_d.zoom.credit_zm.credits_02.setMask("_root.sky_d.zoom.credit_zm.credit_mask_02");
}
Instance of Symbol 1363 MovieClip "boat" in Symbol 1370 MovieClip Frame 1
onClipEvent (load) {
this.stop();
vel = 0.002;
scale = 0.5;
once = 0;
}
onClipEvent (enterFrame) {
if (this._currentframe == 40) {
this.stop();
if ((_root.kid_find >= 1) && (once == 0)) {
_parent.kid._visible = true;
_parent.kid.play();
once = 1;
}
if ((this._y >= 800) && (this._y <= 830)) {
_root.sky_d.zoom.credit_zm.credits.play();
_root.sky_d.zoom.credit_zm.credits_02.play();
}
if (scale > 0) {
scale = scale - vel;
} else {
scale = 0;
}
this._y = this._y + 5;
this._x = this._x + 6;
_root.sky_d.zoom._xscale = _root.sky_d.zoom._xscale - scale;
_root.sky_d.zoom._yscale = _root.sky_d.zoom._yscale - scale;
}
}
Instance of Symbol 1369 MovieClip "kid" in Symbol 1370 MovieClip Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
}
Instance of Symbol 412 MovieClip "up" in Symbol 1370 MovieClip Frame 1
onClipEvent (load) {
if (_root.r4 != 4) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.sky_d.freeze == 0) {
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopd = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(38) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if ((_root.crash == 1) or (_root.sky_d_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopu = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
}
} else {
gotoAndStop (3);
}
if (((_root.crash == 1) or (_root.sky_d_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
Instance of Symbol 429 MovieClip "left" in Symbol 1370 MovieClip Frame 1
onClipEvent (load) {
if (_root.r4 != 2) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.sky_d.freeze == 0) {
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
_root.stopr = 0;
_root.stopu = 0;
_root.stopc = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(37) == true) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
if ((_root.crash == 1) or (_root.sky_d_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopl = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.right._visible = false;
_parent.up._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
}
}
}
} else {
gotoAndStop (3);
}
if (((_root.crash == 1) or (_root.sky_d_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
}
}
}
Instance of Symbol 432 MovieClip "right" in Symbol 1370 MovieClip Frame 1
onClipEvent (load) {
if (_root.r4 != 3) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.sky_d.freeze == 0) {
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
_root.stopl = 0;
_root.stopu = 0;
_root.stopd = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(39) == true) && (Key.isDown(40) == false)) && (Key.isDown(37) == false)) && (Key.isDown(38) == false)) {
if ((_root.crash == 1) or (_root.sky_d_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopr = 1;
}
} else {
this._visible = true;
_parent.down._visible = false;
_parent.up._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y - 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x + 6;
_parent.down._y = _parent.down._y - 5;
_parent.down._x = _parent.down._x + 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x + 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else {
gotoAndStop (3);
}
if (((_root.crash == 1) or (_root.sky_d_crash == 1)) && (this._visible == true)) {
this._y = this._y + 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x - 6;
_parent.down._y = _parent.down._y + 5;
_parent.down._x = _parent.down._x - 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x - 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x - 6;
}
}
}
Instance of Symbol 435 MovieClip "down" in Symbol 1370 MovieClip Frame 1
onClipEvent (load) {
if (_root.r4 != 1) {
this._visible = false;
} else {
this._visible = true;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.sky_d.freeze == 0) {
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
_root.stopu = 0;
_root.stopl = 0;
_root.stopr = 0;
if ((((_root.stopd == 0) && (_root.stopu == 0)) && (_root.stopr == 0)) && (_root.stopl == 0)) {
stop();
if ((((Key.isDown(40) == true) && (Key.isDown(38) == false)) && (Key.isDown(37) == false)) && (Key.isDown(39) == false)) {
if ((_root.crash == 1) or (_root.sky_d_crash == 1)) {
gotoAndStop (1);
if (this._visible == true) {
_root.stopd = 1;
}
} else {
this._visible = true;
_parent.up._visible = false;
_parent.right._visible = false;
_parent.left._visible = false;
gotoAndPlay (1);
this._y = this._y + 5;
this._x = this._x + 6;
_parent.base._y = _parent.base._y + 5;
_parent.base._x = _parent.base._x + 6;
_parent.up._y = _parent.up._y + 5;
_parent.up._x = _parent.up._x + 6;
_parent.right._y = _parent.right._y + 5;
_parent.right._x = _parent.right._x + 6;
_parent.left._y = _parent.left._y + 5;
_parent.left._x = _parent.left._x + 6;
}
}
}
} else {
gotoAndStop (3);
}
if (((_root.crash == 1) or (_root.sky_d_crash == 1)) && (this._visible == true)) {
this._y = this._y - 5;
this._x = this._x - 6;
_parent.base._y = _parent.base._y - 5;
_parent.base._x = _parent.base._x - 6;
_parent.up._y = _parent.up._y - 5;
_parent.up._x = _parent.up._x - 6;
_parent.right._y = _parent.right._y - 5;
_parent.right._x = _parent.right._x - 6;
_parent.left._y = _parent.left._y - 5;
_parent.left._x = _parent.left._x - 6;
}
}
}
Symbol 1377 MovieClip Frame 1
stop();
Symbol 1377 MovieClip Frame 10
stopAllSounds();
_root.gotoAndPlay(1);
Symbol 1379 MovieClip Frame 1
stop();
Symbol 1379 MovieClip Frame 100
stop();
Instance of Symbol 1377 MovieClip in Symbol 1379 MovieClip Frame 100
on (press) {
this.play();
}
Symbol 1380 MovieClip Frame 1
stop();
Symbol 1380 MovieClip Frame 100
stop();
Instance of Symbol 1377 MovieClip in Symbol 1380 MovieClip Frame 100
on (press) {
this.play();
}
Symbol 1389 MovieClip Frame 1
stop();
Symbol 1389 MovieClip Frame 2
this.createEmptyMovieClip("s1", 1);
my_sound1 = new Sound(s1);
my_sound1.attachSound("ocean");
this.createEmptyMovieClip("s2", 2);
my_sound2 = new Sound(s2);
my_sound2.attachSound("seagulls");
my_sound1.start(0, 999);
my_sound2.start(0, 999);
my_sound1.setVolume(70);
my_sound2.setVolume(100);
stop();
freeze = 0;
_root.fss = "r4";
if (_root.r4 == 1) {
_root.sky_d.zoom.base._y = 419;
_root.sky_d.zoom.base._x = 225;
_root.sky_d.zoom.up._y = 398;
_root.sky_d.zoom.up._x = 225;
_root.sky_d.zoom.right._y = 398;
_root.sky_d.zoom.right._x = 225;
_root.sky_d.zoom.left._y = 398;
_root.sky_d.zoom.left._x = 225;
_root.sky_d.zoom.down._y = 398;
_root.sky_d.zoom.down._x = 225;
_root.sky_d.zoom.up._visible = true;
}
_root.sky_d.grad_edge.cacheAsBitmap = true;
_root.sky_d.zoom_grad.cacheAsBitmap = true;
_root.sky_d.grad_edge.setMask("_root.sky_d.zoom_grad");
Instance of Symbol 1370 MovieClip "zoom" in Symbol 1389 MovieClip Frame 2
onClipEvent (load) {
vel = 0.04;
scale = 1.3;
}
onClipEvent (enterFrame) {
if (scale <= 0) {
scale = 0;
} else {
scale = scale - vel;
}
this._xscale = this._xscale - scale;
this._yscale = this._yscale - scale;
}
Instance of Symbol 1382 MovieClip in Symbol 1389 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (hitTest((_root.sky_d.zoom.base._x + _root.sky_d._x) + _root.sky_d.zoom._x, (_root.sky_d.zoom.base._y + _root.sky_d._y) + _root.sky_d.zoom._y, true)) {
_root.sky_d_crash = 1;
} else {
_root.sky_d_crash = 0;
}
}
Instance of Symbol 1384 MovieClip in Symbol 1389 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (hitTest((_root.sky_d.zoom.base._x + _root.sky_d._x) + _root.sky_d.zoom._x, (_root.sky_d.zoom.base._y + _root.sky_d._y) + _root.sky_d.zoom._y, true)) {
_root.fss = "w13a";
}
}
Instance of Symbol 1386 MovieClip in Symbol 1389 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (hitTest((_root.sky_d.zoom.base._x + _root.sky_d._x) + _root.sky_d.zoom._x, (_root.sky_d.zoom.base._y + _root.sky_d._y) + _root.sky_d.zoom._y, true)) {
_root.fss = "w13b";
}
}
Instance of Symbol 1080 MovieClip in Symbol 1389 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (hitTest((_root.sky_d.zoom.base._x + _root.sky_d._x) + _root.sky_d.zoom._x, (_root.sky_d.zoom.base._y + _root.sky_d._y) + _root.sky_d.zoom._y, true)) {
stopAllSounds();
_root.w8 = 4;
_root.health.play();
_root.sky_d.play();
_root.mainroomsound.start(_root.musicposition, 0);
}
}
Instance of Symbol 1388 MovieClip in Symbol 1389 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
once = 0;
}
onClipEvent (enterFrame) {
if (hitTest((_root.sky_d.zoom.base._x + _root.sky_d._x) + _root.sky_d.zoom._x, (_root.sky_d.zoom.base._y + _root.sky_d._y) + _root.sky_d.zoom._y, true) && (once == 0)) {
_root.sky_d.freeze = 1;
once = 1;
_parent.zoom.boat.play();
}
}
Symbol 1430 MovieClip Frame 23
stop();
Symbol 1435 MovieClip Frame 1
stop();
Symbol 1435 MovieClip Frame 12
stop();
if (_root.key_n == 2) {
play();
}
Symbol 1435 MovieClip Frame 22
stop();
if (_root.key_n == 3) {
play();
}
Symbol 1435 MovieClip Frame 32
stop();
if (_root.key_n == 4) {
play();
}
Symbol 1435 MovieClip Frame 41
stop();
Symbol 1436 MovieClip Frame 1
stop();
Symbol 1436 MovieClip Frame 100
stop();
Instance of Symbol 1377 MovieClip in Symbol 1436 MovieClip Frame 100
on (press) {
this.play();
}