home *** CD-ROM | disk | FTP | other *** search
Wrap
function work() { _root.stop(); _root.micon.onMouseMove = function() { if(_root.fade._currentframe == 10) { this._x = _root._xmouse; if(_root.txt_number > 1 && _root._ymouse < 100) { this._y = 100; } else { this._y = _root._ymouse; } Mouse.hide(); } }; onMouseDown = function() { _root.answer = random(3) + 1; if(_root.conditions == true && _root._currentframe < 40) { if(_root._ymouse > 100 && _root.txt_number <= 1) { if(_root.micon._currentframe != 3) { if(_root.txt_number == 0) { _root.txt_number = 1; } _root.next_dis1 = 2; _root.di1 = 1; } if(_root.micon._currentframe > 4) { if(_root.range == true) { _root.answer != 1 ? (_root.answer != 2 ? (_root.next_txt1 = "Whats that going to achieve?") : (_root.next_txt1 = "Hmm... somehow I just dont think that will work")) : (_root.next_txt1 = "I can\'t use this here"); } else { _root.next_txt1 = "I can\'t reach that far unless you want me to throw it over there"; } } if(_root.micon._currentframe == 1) { if(_root.range == true) { _root.answer != 1 ? (_root.answer != 2 ? (_root.next_txt1 = "IΓÇÖd rather not.") : (_root.next_txt1 = "I think this time it would just be better to keep my hands to myself")) : (_root.next_txt1 = "IΓÇÖve always wanted to know what that felt like"); } else { _root.next_txt1 = "I can\'t reach that far"; } } if(_root.micon._currentframe == 2) { _root.answer != 1 ? (_root.answer != 2 ? (_root.next_txt1 = "Are my glasses broken, or am I just looking at complete junk") : (_root.next_txt1 = "IΓÇÖve seen more interesting stuff on a bathroom stall")) : (_root.next_txt1 = "Nothing really important"); } if(_root.micon._currentframe == 4) { if(_root.range == true) { _root.answer != 1 ? (_root.answer != 2 ? (_root.next_txt1 = "Everybody in the house say yo...") : (_root.next_txt1 = "Is anybody there?")) : (_root.next_txt1 = "Hello?"); } else { _root.next_txt1 = "I should get closer"; } } } } }; onEnterFrame = function() { if(_root.togglet > 0) { _root.togglet = _root.togglet - 1; } if(_root.take > 4) { i = 1; while(i < 40) { if(_root.inven["box" + i]._currentframe < 5) { _root.inven["box" + i].gotoAndStop(_root.take); _root.take = 0; } i++; } } !(_root.inven._currentframe == 1 && _root.fade._currentframe == 10) ? (_root.conditions = false) : (_root.conditions = true); if(_root.txt_number == 0) { i = 1; while(i < 10) { if(_root["di" + i] > 0) { _root["di" + i] = 0; } i++; } if(_root.dialogue._currentframe > 1) { _root.dialogue.gotoAndStop(1); } if(text_box._visible == true) { text_box._visible = false; } } else { if(text_box._visible == false) { text_box._visible = true; } if(_root.dialogue._currentframe != _root["di" + _root.txt_number]) { _root.dialogue.gotoAndStop(_root["di" + _root.txt_number]); } if(_root.txt != _root["next_txt" + _root.txt_number]) { _root.txt = _root["next_txt" + _root.txt_number]; } if(_root.dis != _root["next_dis" + _root.txt_number]) { _root.dis = _root["next_dis" + _root.txt_number]; } } if(_currentframe > 40) { if(_root.range == false) { _root.range = true; } } if(_currentframe > 1) { if(_root.conditions == true) { down = Key.isDown(40) || Key.isDown(83); up = Key.isDown(38) || Key.isDown(87); left = Key.isDown(37) || Key.isDown(65); right = Key.isDown(39) || Key.isDown(68); if(_root.nogo._currentframe != _root._currentframe) { _root.nogo.gotoAndStop(_root._currentframe); } } else { if(_root.txt_number > 0) { _root.txt_number = 0; } if(_root.txt != "") { _root.txt = ""; } } } }; _root.lvl.hewitt.onEnterFrame = function() { if(_root.txt_number <= 1 && _root.inven._currentframe == 1) { if(calc != (this._y - 144) / 3.5) { calc = (this._y - 144) / 3.5; } if(spd != calc / 14 * _root.speed_calc) { spd = calc / 14 * _root.speed_calc; } if(_root.fade._currentframe < 10 && this.walk._currentframe > 1) { this.walk.gotoAndStop(1); } if(this._xscale != calc * turn) { this._xscale = calc * turn; } if(this._yscale != calc) { this._yscale = calc; } this.swapDepths(this._y); if(_root.conditions == true) { i = 1; while(i < 5) { if(_root.nogo["exit" + i].hitTest(this.bot)) { _root.fade.gotoAndPlay(1); _root.gotoAndStop(_root.nogo["exit" + i].frame); _root.load_x = _root.nogo["exit" + i].load_x; _root.load_y = _root.nogo["exit" + i].load_y; down = _root.nogo["exit" + i].down; up = _root.nogo["exit" + i].up; left = _root.nogo["exit" + i].lefft; right = _root.nogo["exit" + i].rite; } i++; } if(down && !_root.nogo.hitTest(this._x,this._y + spd,true)) { this._y += spd / 2; } if(up && !_root.nogo.hitTest(this._x,this._y - spd,true)) { this._y -= spd / 2; } if(left && !_root.nogo.hitTest(this._x - spd,this._y,true)) { if(turn != 1) { turn = 1; } this._x -= spd; } if(right && !_root.nogo.hitTest(this._x + spd,this._y,true)) { if(turn != -1) { turn = -1; } this._x += spd; } if(!down && !up && !left && !right) { if(this.walk._currentframe > 1) { this.walk.gotoAndStop(1); } } else { this.walk.play(); } if((left || right) && !down && !up && this._currentframe != 3) { this.gotoAndStop(3); } if(down) { if(!left && !right) { if(this._currentframe != 5) { this.gotoAndStop(5); } } else if(this._currentframe != 4) { this.gotoAndStop(4); } } if(up) { if(!left && !right) { if(this._currentframe != 1) { this.gotoAndStop(1); } } else if(this._currentframe != 2) { this.gotoAndStop(2); } } } } else if(this.walk._currentframe != 1) { this.walk.gotoAndStop(1); } }; i = 1; while(i <= 11) { _root.lvl["ob" + i].onEnterFrame = function() { this.swapDepths(this._y); if(this._currentframe != _root["taken" + this.frame] + 1) { this.gotoAndStop(_root["taken" + this.frame] + 1); } }; _root.lvl["ob" + i].onMouseDown = function() { if(_root.even7 >= 5 && _root.conditions == true && this.frame > 1 && _root.range == true && this.hitTest(_xmouse,_ymouse,true) && _root.micon._currentframe == 1) { _root.take = this.frame; _root["taken" + this.frame] = 1; } }; i++; } i = _root.min_objects; while(i <= _root.max_objects) { _root.inven["box" + i].onMouseUp = function() { if(this.hitTest(_xmouse,_ymouse,true) && _root.inven._currentframe == 2 && this._y > 120 && this._y < 400) { if(_root.micon._currentframe == 1 && _root.even7 >= 8) { if(_root.inven.large._currentframe == this._currentframe) { _root.inven.large.gotoAndStop(1); } _root.micon.gotoAndStop(this._currentframe); this.gotoAndStop(1); } else if(this._currentframe == 1 && _root.micon._currentframe > 4) { _root.inven.large.gotoAndStop(_root.micon._currentframe); this.gotoAndStop(_root.micon._currentframe); _root.micon.gotoAndStop(1); } if(_root.micon._currentframe == 2) { _root.inven.large.gotoAndStop(this._currentframe); } } }; i++; } } function load_vars() { savefile = SharedObject.getLocal("Hewitt_file" + _root.load_file_chosen); init_even7 = _root.even7; i = 1; while(i < 100) { _root.inven["box" + i].gotoAndStop(savefile.data["box_frame" + i]); _root["taken" + i] = savefile.data["taken" + i]; _root["even" + i] = savefile.data["even" + i]; _root["talk" + i] = savefile.data["talk" + i]; i++; } if(_root._currentframe == 2) { _root.even7 = init_even7; } _root.success_type = 1; _root.fade_success = 50; _root.inven.loader.gotoAndStop(1); if(_root.even37 == 2) { _root.inven.gotoAndStop(4); } else { _root.inven.gotoAndStop(6); } _root.sfx.gotoAndStop(2); if(_root._currentframe == 1) { _root.loadeding = 1; _root.gotoAndStop(2); } else if(_root._currentframe != _root.even37) { _root.gotoAndStop(_root.even37); } } stop(); _root.happystream = 3; _root.togglet = 0; _root.total_objects = 20; turn = 1; _root.demo = 0; _root.txt_number = 0; _root.bend_clicky = 0; _root.inven._visible = false; _root.nogo._visible = false; Stage.showMenu = false; getUrl("FSCommand:fullscreen", "true"); _root.ful = 1; _root.bgSound = new Sound(); _root.snd_calc = 85; _root.saveing = 0; _root.speed_calc = 1; _root.load_x = 275; _root.load_y = 475; i = 1; while(i < 100) { _root.inven["box" + i].gotoAndStop(1); _root["talk" + i] = 0; _root["even" + i] = 0; _root["taken" + i] = 0; i++; } i = 1; while(i < 15) { _root.inven["box" + i].work_frame = 2; i++; } i = 15; while(i < 29) { _root.inven["box" + e].work_frame = 3; i++; } my_listener = new Object(); Mouse.addListener(my_listener); my_listener.onMouseWheel = function(counter) { if(counter != 0 && _root.togglet == 0 && _root.even7 == 20 && _root._currentframe > 1 && _root._currentframe < 40 && _root.inven._currentframe == 1 && _root.txt_number <= 1) { _root.TUTS.nextFrame(); _root.even41 = 1; new_frame = _root.micon._currentframe; foundframe = 0; if(new_frame > 4) { _root.take = new_frame; } if(counter > 0) { while(foundframe == 0) { new_frame--; if(new_frame < 1) { new_frame = 62; } else if(new_frame < 5) { foundframe = new_frame; } i = 1; while(i < 100) { if(_root.inven["box" + i]._currentframe == new_frame) { _root.inven["box" + i].gotoAndStop(1); foundframe = new_frame; } i++; } if(foundframe == 3) { foundframe = 2; } } } else { while(foundframe == 0) { new_frame++; if(new_frame > 62) { new_frame = 1; } else if(new_frame < 5) { foundframe = new_frame; } i = 1; while(i < 100) { if(_root.inven["box" + i]._currentframe == new_frame) { _root.inven["box" + i].gotoAndStop(1); foundframe = new_frame; } i++; } if(foundframe == 3) { foundframe = 4; } } } _root.micon.gotoAndStop(foundframe); _root.togglet = 2; } };