Combined Code
movieClip 9 backback2 {
frame 14 {
this.removeMovieClip();
stop();
}
}
movieClip 11 backback1 {
frame 1 {
stop();
}
frame 14 {
_root.back.removeMovieClip();
_root.places.removeMovieClip();
_root.panel.removeMovieClip();
_root.hero.removeMovieClip();
_root.menumenu.removeMovieClip();
_root.boxs.removeMovieClip();
_root.wall.removeMovieClip();
_root.floo.removeMovieClip();
_root.border.removeMovieClip();
if (_root.keykey == 1) {
_root.gotoAndPlay(3);
}
if (_root.keykey == 2) {
_root.gotoAndPlay(4);
}
if (_root.keykey == 4) {
_root.nextFrame();
}
if (_root.keykey == 3) {
_root.gotoAndPlay(5);
}
if (_root.keykey == 5) {
_root.gotoAndPlay(7);
}
if (_root.keykey == 6) {
_root.gotoAndPlay(9);
}
if (_root.keykey == 7) {
_root.gotoAndPlay(11);
}
if (_root.keykey == 8) {
_root.gotoAndPlay(13);
}
if (_root.keykey == 9) {
_root.gotoAndPlay(15);
}
if (_root.keykey == 10) {
_root.gotoAndPlay(17);
}
if (_root.keykey == 11) {
_root.gotoAndPlay(19);
}
if (_root.keykey == 12) {
_root.gotoAndPlay(21);
}
if (_root.keykey == 13) {
_root.gotoAndPlay(23);
}
if (_root.keykey == 14) {
_root.gotoAndPlay(25);
}
if (_root.keykey == 15) {
_root.gotoAndPlay(27);
}
if (_root.keykey == 16) {
_root.gotoAndPlay(29);
}
if (_root.keykey == 17) {
_root.gotoAndPlay(31);
}
if (_root.keykey == 18) {
_root.gotoAndPlay(33);
}
if (_root.keykey == 19) {
_root.gotoAndPlay(35);
}
if (_root.keykey == 20) {
_root.gotoAndPlay(37);
}
if (_root.keykey == 21) {
_root.gotoAndPlay(39);
}
if (_root.keykey == 22) {
_root.gotoAndPlay(41);
}
if (_root.keykey == 23) {
_root.gotoAndPlay(43);
}
if (_root.keykey == 24) {
_root.gotoAndPlay(45);
}
if (_root.keykey == 25) {
_root.gotoAndPlay(47);
}
if (_root.keykey == 26) {
_root.gotoAndPlay(49);
}
if (_root.keykey == 27) {
_root.gotoAndPlay(51);
}
if (_root.keykey == 28) {
_root.gotoAndPlay(53);
}
if (_root.keykey == 29) {
_root.gotoAndPlay(55);
}
if (_root.keykey == 30) {
_root.gotoAndPlay(57);
}
if (_root.keykey == 31) {
_root.gotoAndPlay(59);
}
if (_root.keykey == 32) {
_root.gotoAndPlay(61);
}
if (_root.keykey == 33) {
_root.gotoAndPlay(63);
}
}
}
movieClip 15 progress {
frame 1 {
stop();
}
}
movieClip 17 sound_step {
frame 1 {
stop();
}
}
movieClip 19 sound_swamp {
frame 1 {
stop();
}
}
movieClip 27 {
frame 1 {
stop();
}
frame 20 {
stop();
}
}
movieClip 33 wall_05 {
}
movieClip 36 {
}
movieClip 39 {
}
movieClip 40 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 41 boxs_04 {
}
movieClip 44 {
}
movieClip 45 places_04 {
}
movieClip 48 wall_04 {
}
movieClip 52 {
frame 1 {
this._visible = 0;
}
}
movieClip 53 floo_04 {
}
movieClip 54 boxs_03 {
}
movieClip 56 places_03 {
}
movieClip 60 wall_03 {
}
movieClip 63 floo_03 {
}
movieClip 64 boxs_02 {
}
movieClip 65 places_02 {
}
movieClip 73 {
frame 1 {
stop();
}
frame 20 {
stop();
}
}
movieClip 75 wall_02 {
}
movieClip 77 floo_02 {
}
button 83 {
on (release) {
_root.keykey = 4;
_root.backback1.gotoAndPlay(2);
}
}
button 86 {
on (release) {
_root.s_sound.stop();
_root.sss = 0;
gotoAndPlay(2);
}
}
button 89 {
on (release) {
_root.s_sound.start(0, 99999);
_root.sss = 1;
gotoAndPlay(1);
}
}
movieClip 90 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 93 {
on (release) {
_root.keykey = 1;
_root.backback1.gotoAndPlay(2);
}
}
// unknown tag 88 length 209
movieClip 98 panel {
}
movieClip 99 places1 {
}
movieClip 100 boxs1 {
}
movieClip 111 {
}
movieClip 122 {
}
movieClip 133 {
}
movieClip 144 {
}
movieClip 145 {
}
movieClip 146 hero {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 149 wall_01 {
}
// unknown tag 88 length 63
movieClip 155 floo {
}
movieClip 158 border {
}
frame 1 {
sss = 1;
stop();
}
button 160 {
on (release) {
getURL('http://www.freegamesjungle.com', '_blank');
}
}
movieClip 162 {
}
movieClip 164 {
}
movieClip 165 {
}
movieClip 167 {
}
movieClip 169 {
}
movieClip 172 {
}
movieClip 175 {
}
movieClip 176 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 178 {
}
movieClip 180 {
}
movieClip 182 {
}
movieClip 184 {
}
movieClip 186 {
}
movieClip 188 {
}
movieClip 190 {
}
movieClip 192 {
}
movieClip 194 {
}
movieClip 197 {
}
movieClip 198 {
}
movieClip 200 {
}
movieClip 202 {
}
movieClip 205 {
frame 2 {
if (_root.getBytesLoaded() / _root.getBytesTotal() >= 1) {
loaderbar.gotoAndStop(100);
gotoAndPlay(2);
} else {
total_loaded = _root.getBytesLoaded() / _root.getBytesTotal();
total_loaded = Math.round(total_loaded * 100);
loaderbar.gotoAndStop(total_loaded);
gotoAndPlay(1);
}
}
frame 328 {
_root.gotoAndStop(3);
stop();
}
}
instance of movieClip 205 {
}
frame 2 {
gotoAndPlay(1);
}
frame 3 {
stop();
stopAllSounds();
attachMovie('menumenu', 'menumenu', 1);
menumenu._x = 0;
menumenu._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('border', 'border', 999999);
if (sss == 2) {
_root.menumenu.key_sound2._visible = 1;
_root.menumenu.key_sound3._visible = 0;
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.start(0, 99999);
}
onEnterFrame = function () {
if (sss == 1) {
_root.menumenu.key_sound2._visible = 1;
_root.menumenu.key_sound3._visible = 0;
var v2 = new Sound();
v2.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
v2.start(0, 99999);
sss = 2;
}
if (sss == 0) {
stopAllSounds();
_root.menumenu.key_sound2._visible = 0;
_root.menumenu.key_sound3._visible = 1;
}
};
}
button 212 {
on (release) {
getURL('mailto:in-finity@in-finity.ru', '');
}
}
button 215 {
on (release) {
_root.keykey = 3;
_root.backback1.gotoAndPlay(2);
}
}
button 218 {
on (release) {
_root.sss = 1;
}
}
button 221 {
on (release) {
_root.keykey = 2;
_root.backback1.gotoAndPlay(2);
}
}
button 224 {
on (release) {
getURL('http://www.freegamesjungle.com', '_blank');
}
}
button 227 {
on (release) {
_root.sss = 0;
}
}
movieClip 228 menumenu {
}
movieClip 231 back1 {
}
movieClip 233 {
frame 1 {
stop();
}
}
frame 4 {
stop();
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('border', 'border', 999999);
}
button 237 {
on (release) {
_root.keykey = 3;
_root.backback1.gotoAndPlay(2);
}
}
button 240 {
on (release) {
_root.keykey = 5;
_root.backback1.gotoAndPlay(2);
}
}
button 243 {
on (release) {
_root.keykey = 6;
_root.backback1.gotoAndPlay(2);
}
}
button 246 {
on (release) {
_root.keykey = 7;
_root.backback1.gotoAndPlay(2);
}
}
button 249 {
on (release) {
_root.keykey = 8;
_root.backback1.gotoAndPlay(2);
}
}
button 252 {
on (release) {
_root.keykey = 9;
_root.backback1.gotoAndPlay(2);
}
}
button 255 {
on (release) {
_root.keykey = 10;
_root.backback1.gotoAndPlay(2);
}
}
button 258 {
on (release) {
_root.keykey = 11;
_root.backback1.gotoAndPlay(2);
}
}
button 261 {
on (release) {
_root.keykey = 12;
_root.backback1.gotoAndPlay(2);
}
}
button 264 {
on (release) {
_root.keykey = 13;
_root.backback1.gotoAndPlay(2);
}
}
button 267 {
on (release) {
_root.keykey = 14;
_root.backback1.gotoAndPlay(2);
}
}
button 270 {
on (release) {
_root.keykey = 15;
_root.backback1.gotoAndPlay(2);
}
}
button 273 {
on (release) {
_root.keykey = 16;
_root.backback1.gotoAndPlay(2);
}
}
button 276 {
on (release) {
_root.keykey = 17;
_root.backback1.gotoAndPlay(2);
}
}
button 279 {
on (release) {
_root.keykey = 18;
_root.backback1.gotoAndPlay(2);
}
}
button 282 {
on (release) {
_root.keykey = 19;
_root.backback1.gotoAndPlay(2);
}
}
button 285 {
on (release) {
_root.keykey = 20;
_root.backback1.gotoAndPlay(2);
}
}
button 288 {
on (release) {
_root.keykey = 21;
_root.backback1.gotoAndPlay(2);
}
}
button 291 {
on (release) {
_root.keykey = 22;
_root.backback1.gotoAndPlay(2);
}
}
button 294 {
on (release) {
_root.keykey = 23;
_root.backback1.gotoAndPlay(2);
}
}
button 297 {
on (release) {
_root.keykey = 24;
_root.backback1.gotoAndPlay(2);
}
}
button 300 {
on (release) {
_root.keykey = 25;
_root.backback1.gotoAndPlay(2);
}
}
button 303 {
on (release) {
_root.keykey = 26;
_root.backback1.gotoAndPlay(2);
}
}
button 306 {
on (release) {
_root.keykey = 27;
_root.backback1.gotoAndPlay(2);
}
}
button 309 {
on (release) {
_root.keykey = 28;
_root.backback1.gotoAndPlay(2);
}
}
button 312 {
on (release) {
_root.keykey = 29;
_root.backback1.gotoAndPlay(2);
}
}
button 315 {
on (release) {
_root.keykey = 30;
_root.backback1.gotoAndPlay(2);
}
}
button 318 {
on (release) {
_root.keykey = 31;
_root.backback1.gotoAndPlay(2);
}
}
button 321 {
on (release) {
_root.keykey = 32;
_root.backback1.gotoAndPlay(2);
}
}
button 324 {
on (release) {
_root.keykey = 33;
_root.backback1.gotoAndPlay(2);
}
}
frame 5 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 1) {
movies -= 1;
level = 2;
_root.keykey = 5;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('floo', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places1', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('hero', 'hero', 4);
hero._x = 224;
hero._y = 256;
attachMovie('wall_01', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('boxs1', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 1;
level = 1;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
frame 6 {
gotoAndStop(5);
}
frame 7 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 2) {
movies -= 1;
level = 3;
_root.keykey = 6;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 96;
hero._y = 224;
attachMovie('wall_02', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_02', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_02', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_02', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 2;
level = 2;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
frame 8 {
gotoAndStop(7);
}
frame 9 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 3) {
movies -= 1;
level = 4;
_root.keykey = 7;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 256;
hero._y = 160;
attachMovie('wall_03', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_03', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_03', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_03', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 3;
level = 3;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
frame 10 {
gotoAndStop(9);
}
frame 11 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 4) {
movies -= 1;
level = 5;
_root.keykey = 8;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 480;
hero._y = 320;
attachMovie('wall_04', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_04', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_04', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_04', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 8;
level = 4;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
frame 12 {
gotoAndStop(11);
}
frame 13 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 5) {
movies -= 1;
level = 6;
_root.keykey = 9;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 320;
hero._y = 160;
attachMovie('wall_05', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_05', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_05', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_05', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 3;
level = 5;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 327 floo_05 {
}
movieClip 328 places_05 {
}
movieClip 329 boxs_05 {
}
frame 14 {
gotoAndStop(13);
}
frame 15 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 6) {
movies -= 1;
level = 7;
_root.keykey = 10;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 544;
hero._y = 128;
attachMovie('wall_06', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_06', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_06', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_06', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 5;
level = 6;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 331 floo_06 {
}
movieClip 334 wall_06 {
}
movieClip 335 places_06 {
}
movieClip 336 boxs_06 {
}
frame 16 {
gotoAndStop(15);
}
frame 17 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 7) {
movies -= 1;
level = 8;
_root.keykey = 11;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 352;
hero._y = 160;
attachMovie('wall_07', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_07', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_07', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_07', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 3;
level = 7;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 339 floo_07 {
}
movieClip 342 wall_07 {
}
movieClip 343 places_07 {
}
movieClip 344 boxs_07 {
}
frame 18 {
gotoAndStop(17);
}
frame 19 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 8) {
movies -= 1;
level = 9;
_root.keykey = 12;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 416;
hero._y = 128;
attachMovie('wall_08', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_08', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_08', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_08', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 10;
level = 8;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 346 floo_08 {
}
movieClip 349 wall_08 {
}
movieClip 350 places_08 {
}
movieClip 351 boxs_08 {
}
frame 20 {
gotoAndStop(19);
}
frame 21 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 9) {
movies -= 1;
level = 10;
_root.keykey = 13;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 192;
hero._y = 96;
attachMovie('wall_09', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_09', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_09', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_09', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 3;
level = 9;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 353 floo_09 {
}
movieClip 356 wall_09 {
}
movieClip 357 places_09 {
}
movieClip 358 boxs_09 {
}
frame 22 {
gotoAndStop(21);
}
frame 23 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 10) {
movies -= 1;
level = 11;
_root.keykey = 14;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 224;
hero._y = 128;
attachMovie('wall_10', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_10', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_10', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_10', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 11;
level = 10;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 360 floo_10 {
}
movieClip 363 wall_10 {
}
movieClip 364 places_10 {
}
movieClip 365 boxs_10 {
}
frame 24 {
gotoAndStop(23);
}
frame 25 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 11) {
movies -= 1;
level = 12;
_root.keykey = 15;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 64;
hero._y = 224;
attachMovie('wall_11', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_11', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_11', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_11', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 6;
level = 11;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 368 floo_11 {
}
movieClip 371 wall_11 {
}
movieClip 372 places_11 {
}
movieClip 373 boxs_11 {
}
frame 26 {
gotoAndStop(25);
}
frame 27 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 12) {
movies -= 1;
level = 13;
_root.keykey = 16;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 160;
hero._y = 192;
attachMovie('wall_12', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_12', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_12', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_12', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 10;
level = 12;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 376 floo_12 {
}
movieClip 379 wall_12 {
}
movieClip 380 places_12 {
}
movieClip 381 boxs_12 {
}
frame 28 {
gotoAndStop(27);
}
frame 29 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 13) {
movies -= 1;
level = 14;
_root.keykey = 17;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 352;
hero._y = 96;
attachMovie('wall_13', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_13', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_13', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_13', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 4;
level = 13;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 384 floo_13 {
}
movieClip 387 wall_13 {
}
movieClip 388 places_13 {
}
movieClip 389 boxs_13 {
}
frame 30 {
gotoAndStop(29);
}
frame 31 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 14) {
movies -= 1;
level = 15;
_root.keykey = 18;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 160;
hero._y = 128;
attachMovie('wall_14', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_14', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_14', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_14', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 6;
level = 14;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 391 floo_14 {
}
movieClip 394 wall_14 {
}
movieClip 395 places_14 {
}
movieClip 396 boxs_14 {
}
frame 32 {
gotoAndStop(31);
}
frame 33 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 15) {
movies -= 1;
level = 16;
_root.keykey = 19;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 256;
hero._y = 288;
attachMovie('wall_15', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_15', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_15', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_15', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 3;
level = 15;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 399 floo_15 {
}
movieClip 402 wall_15 {
}
movieClip 403 places_15 {
}
movieClip 404 boxs_15 {
}
frame 34 {
gotoAndStop(33);
}
frame 35 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 16) {
movies -= 1;
level = 17;
_root.keykey = 20;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 160;
hero._y = 288;
attachMovie('wall_16', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_16', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_16', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_16', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 5;
level = 16;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 407 floo_16 {
}
movieClip 410 wall_16 {
}
movieClip 411 places_16 {
}
movieClip 412 boxs_16 {
}
frame 36 {
gotoAndStop(35);
}
frame 37 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 17) {
movies -= 1;
level = 18;
_root.keykey = 21;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 192;
hero._y = 352;
attachMovie('wall_17', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_17', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_17', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_17', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 3;
level = 17;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 414 floo_17 {
}
movieClip 417 wall_17 {
}
movieClip 418 places_17 {
}
movieClip 419 boxs_17 {
}
frame 38 {
gotoAndStop(37);
}
frame 39 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 18) {
movies -= 1;
level = 19;
_root.keykey = 22;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 416;
hero._y = 160;
attachMovie('wall_18', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_18', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_18', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_18', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 5;
level = 18;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 422 floo_18 {
}
movieClip 425 wall_18 {
}
movieClip 426 places_18 {
}
movieClip 427 boxs_18 {
}
frame 40 {
gotoAndStop(39);
}
frame 41 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 19) {
movies -= 1;
level = 20;
_root.keykey = 23;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 192;
hero._y = 192;
attachMovie('wall_19', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_19', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_19', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_19', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 14;
level = 19;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 430 floo_19 {
}
movieClip 433 wall_19 {
}
movieClip 434 places_19 {
}
movieClip 435 boxs_19 {
}
frame 42 {
gotoAndStop(41);
}
frame 43 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 20) {
movies -= 1;
level = 21;
_root.keykey = 24;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 256;
hero._y = 384;
attachMovie('wall_20', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_20', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_20', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_20', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 2;
level = 20;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 437 floo_20 {
}
movieClip 440 wall_20 {
}
movieClip 441 places_20 {
}
movieClip 442 boxs_20 {
}
frame 44 {
gotoAndStop(43);
}
frame 45 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 21) {
movies -= 1;
level = 22;
_root.keykey = 25;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 384;
hero._y = 160;
attachMovie('wall_21', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_21', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_21', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_21', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 10;
level = 21;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 444 floo_21 {
}
movieClip 447 wall_21 {
}
movieClip 448 places_21 {
}
movieClip 449 boxs_21 {
}
frame 46 {
gotoAndStop(45);
}
frame 47 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 22) {
movies -= 1;
level = 23;
_root.keykey = 26;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 256;
hero._y = 128;
attachMovie('wall_22', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_22', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_22', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_22', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 7;
level = 22;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 452 floo_22 {
}
movieClip 455 wall_22 {
}
movieClip 456 places_22 {
}
movieClip 457 boxs_22 {
}
frame 48 {
gotoAndStop(47);
}
frame 49 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 23) {
movies -= 1;
level = 24;
_root.keykey = 27;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 224;
hero._y = 256;
attachMovie('wall_23', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_23', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_23', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_23', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 4;
level = 23;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 460 floo_23 {
}
movieClip 463 wall_23 {
}
movieClip 464 places_23 {
}
movieClip 465 boxs_23 {
}
frame 50 {
gotoAndStop(49);
}
frame 51 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 24) {
movies -= 1;
level = 25;
_root.keykey = 28;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 288;
hero._y = 128;
attachMovie('wall_24', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_24', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_24', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_24', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 7;
level = 24;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 468 floo_24 {
}
movieClip 471 wall_24 {
}
movieClip 472 places_24 {
}
movieClip 473 boxs_24 {
}
frame 52 {
gotoAndStop(51);
}
frame 53 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 25) {
movies -= 1;
level = 26;
_root.keykey = 29;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 64;
hero._y = 224;
attachMovie('wall_25', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_25', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_25', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_25', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 6;
level = 25;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 476 floo_25 {
}
movieClip 479 wall_25 {
}
movieClip 480 places_25 {
}
movieClip 481 boxs_25 {
}
frame 54 {
gotoAndStop(53);
}
frame 55 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 26) {
movies -= 1;
level = 27;
_root.keykey = 30;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 256;
hero._y = 160;
attachMovie('wall_26', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_26', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_26', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_26', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 9;
level = 26;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 484 floo_26 {
}
movieClip 487 wall_26 {
}
movieClip 488 places_26 {
}
movieClip 489 boxs_26 {
}
frame 56 {
gotoAndStop(55);
}
frame 57 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 27) {
movies -= 1;
level = 28;
_root.keykey = 31;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 256;
hero._y = 192;
attachMovie('wall_27', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_27', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_27', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_27', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 3;
level = 27;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 492 floo_27 {
}
movieClip 495 wall_27 {
}
movieClip 496 places_27 {
}
movieClip 497 boxs_27 {
}
frame 58 {
gotoAndStop(57);
}
frame 59 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 28) {
movies -= 1;
level = 29;
_root.keykey = 32;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 352;
hero._y = 160;
attachMovie('wall_28', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_28', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_28', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_28', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 4;
level = 28;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 500 floo_28 {
}
movieClip 503 wall_28 {
}
movieClip 504 places_28 {
}
movieClip 505 boxs_28 {
}
frame 60 {
gotoAndStop(59);
}
frame 61 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 29) {
movies -= 1;
level = 30;
_root.keykey = 33;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 192;
hero._y = 192;
attachMovie('wall_29', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_29', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_29', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_29', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 10;
level = 29;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 507 floo_29 {
}
movieClip 510 wall_29 {
}
movieClip 511 places_29 {
}
movieClip 512 boxs_29 {
}
frame 62 {
gotoAndStop(61);
}
frame 63 {
function KEYS() {
if (Key.isDown(37) && hero._x == herox && hero._y == heroy) {
herox -= 32;
step = -2;
hero.gotoAndStop(2);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(39) && hero._x == herox && hero._y == heroy) {
herox += 32;
step = 2;
hero.gotoAndStop(3);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(38) && hero._x == herox && hero._y == heroy) {
heroy -= 32;
step = -2;
hero.gotoAndStop(4);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
if (Key.isDown(40) && hero._x == herox && hero._y == heroy) {
heroy += 32;
step = 2;
hero.gotoAndStop(1);
count = 0;
sound_step.gotoAndPlay(2);
movies += 1;
}
count += 1;
if (count > 32) {
hero.gotoAndStop(5);
}
}
function MOVE() {
if (hero._x != herox) {
hero._x += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 31, hero._y + 1, true)) {
hero._x -= step;
herox = hero._x;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 31, hero._y + 1, true)) {
(eval('boxs.box' + i))._x += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._x / 32 == Math.ceil((eval('boxs.box' + i))._x / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 31, (eval('boxs.box' + i))._y + 1, true)) {
hero._x -= step;
herox = hero._x;
(eval('boxs.box' + i))._x -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
if (hero._y != heroy) {
hero._y += step;
if (wall.hitTest(hero._x + 1, hero._y + 1, true) || wall.hitTest(hero._x + 1, hero._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
movies -= 1;
}
i = 1;
while (i < total_box + 1) {
if ((eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 1, true) || (eval('boxs.box' + i)).hitTest(hero._x + 1, hero._y + 31, true)) {
(eval('boxs.box' + i))._y += step;
sound_swamp.gotoAndPlay(2);
if ((eval('boxs.box' + i))._y / 32 == Math.ceil((eval('boxs.box' + i))._y / 32)) {
pushes += 1;
}
if (wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || wall.hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
j = 1;
while (j < total_box + 1) {
if (j != i) {
if ((eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 1, true) || (eval('boxs.box' + j)).hitTest((eval('boxs.box' + i))._x + 1, (eval('boxs.box' + i))._y + 31, true)) {
hero._y -= step;
heroy = hero._y;
(eval('boxs.box' + i))._y -= step;
movies -= 1;
}
}
++j;
}
}
++i;
}
}
k = 1;
while (k < total_box + 1) {
if (places.hitTest((eval('boxs.box' + k))._x + 16, (eval('boxs.box' + k))._y + 16, true)) {
box_on_place_count += 1;
(eval('boxs.box' + k)).gotoAndPlay(2);
} else {
(eval('boxs.box' + k)).gotoAndPlay(1);
}
if (box_on_place_count == total_box && open_door == 0) {
wall.door.gotoAndPlay(2);
open_door = 1;
}
++k;
}
if (open_door == 1 && box_on_place_count != total_box) {
open_door = 0;
wall.door.gotoAndPlay(21);
}
box_on_place_count = 0;
if (floo.next_level.hitTest(hero._x + 1, hero._y + 1, true) && level == 30) {
movies -= 1;
level = 1;
_root.keykey = 3;
_root.backback1.gotoAndPlay(2);
}
}
attachMovie('hero', 'hero', 4);
hero._x = 352;
hero._y = 160;
attachMovie('wall_30', 'wall', 5);
wall._x = 0;
wall._y = 0;
attachMovie('floo_30', 'floo', 2);
floo._x = 0;
floo._y = 0;
attachMovie('places_30', 'places', 3);
places._x = 0;
places._y = 0;
attachMovie('boxs_30', 'boxs', 6);
boxs._x = 0;
boxs._y = 0;
attachMovie('panel', 'panel', 10);
panel._x = 0;
panel._y = 0;
attachMovie('back1', 'back', 1);
back._x = 0;
back._y = 0;
attachMovie('backback1', 'backback1', 999992);
backback1._x = 320;
backback1._y = 240;
attachMovie('backback2', 'backback2', 999993);
backback2._x = 320;
backback2._y = 240;
attachMovie('sound_step', 'sound_step', 1000);
attachMovie('sound_swamp', 'sound_swamp', 1001);
attachMovie('border', 'border', 999999);
total_box = 8;
level = 30;
stop();
stopAllSounds();
herox = hero._x;
heroy = hero._y;
panel.text1._visible = 0;
box_on_place_count = 0;
count = 0;
hero.gotoAndStop(5);
open_door = 0;
movies = 0;
pushes = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('Solo_Pia-Justin_B-9423_hifi.mp3');
panel.key_sound.gotoAndStop(2);
}
onEnterFrame = function () {
KEYS();
MOVE();
};
}
movieClip 514 floo_30 {
}
movieClip 517 wall_30 {
}
movieClip 518 places_30 {
}
movieClip 519 boxs_30 {
}
frame 64 {
gotoAndStop(63);
}