STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/21908090?noj=FRM21908090-22DC" width="1" height="1"></div>

Dead Drunk v1.9.swf

This is the info page for
Flash #244294

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
frame 1 { function getFPS() { if (signal == true) { time = getTimer(); } else { rate = int(1000 / (getTimer() - time)); } signal = !signal; if (rate == 0) { return 1; } else { return rate; } } function zn(a) { if (isNaN(a) || undefined == a) { return 0; } else { return a; } } function firtim() { totalseconds += 1; waitfor = Math.round((totalseconds / (_root.getBytesLoaded() + (zn(main_music1.getBytesLoaded()) + zn(main_music2.getBytesLoaded()) + zn(main_music3.getBytesLoaded()) + zn(main_music4.getBytesLoaded()) + zn(main_music5.getBytesLoaded()) + zn(main_music.getBytesLoaded())))) * (_root.getBytesTotal() + (zn(main_music1.getBytesTotal()) + zn(main_music2.getBytesTotal()) + zn(main_music3.getBytesTotal()) + zn(main_music4.getBytesTotal()) + zn(main_music5.getBytesTotal()) + zn(main_music.getBytesTotal())) - (_root.getBytesLoaded() + (zn(main_music1.getBytesLoaded()) + zn(main_music2.getBytesLoaded()) + zn(main_music3.getBytesLoaded()) + zn(main_music4.getBytesLoaded()) + zn(main_music5.getBytesLoaded()) + zn(main_music.getBytesLoaded()))))); if (waitfor < 60) { _root.loa2.htmlText = waitfor + ' seconds'; } else { if (waitfor / 60 < 60) { _root.loa2.htmlText = Math.floor(waitfor / 60) + ' minutes ' + (waitfor - Math.floor(waitfor / 60) * 60) + ' seconds'; } } } _lockroot = true; var time = 0; var signal = true; var rate = 30; _root.fg2._alpha = 0; _root.gotoAndStop(1); var my_so = SharedObject.getLocal('dead_drunk_13b'); if (_root.my_so.data.snd == undefined) { _root.my_so.data.snd = 1; } if (_root.my_so.data.snd2 == undefined) { _root.my_so.data.snd2 = 1; } if (_root.my_so.data.myname == undefined) { _root.my_so.data.myname = 'Type Your Name Here'; } _root.kongregateServices.connect(); lasts = 0; times = 0; someListener = new Object(); Mouse.addListener(someListener); totalseconds = 0; fir = setInterval(firtim, 1000); var game_speed = 1; _root.onEnterFrame = function () { game_speed = 30 / getFPS(); cur = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); if (cur != lasts) { times = 10; } else { times -= 1; } if (times > 0) { _root.loa.htmlText = '<font color="#AAAAAA"><B>.:</B></font> ' + cur + ' <font color="#AAAAAA"><B>:.</B></font>'; } else { if (times > -5) { _root.loa.htmlText = '<font color="#CCCCCC"><B>.:</B></font> ' + cur + ' <font color="#CCCCCC"><B>:.</B></font>'; } else { if (times > -40) { _root.loa.htmlText = '<B>.:</B> ' + cur + ' <B>:.</B>'; } else { _root.loa.htmlText = '<font color="#FF0000"><B>.:</B></font> ' + cur + ' <font color="#FF0000"><B>:.</B></font>'; } } } lasts = cur; if (_root.getBytesLoaded() == _root.getBytesTotal()) { clearInterval(fir); _root.fg2._alpha += 2 * game_speed; if (_root.fg2._alpha > 100) { _root.gotoAndStop(2); } } }; } // unknown tag 88 length 63 movieClip 6 { } frame 2 { function RQ_Prepare() { _root.lastreq = _root.score_server; _root.tasks = 0; } function RQ_Set(a, b) { _root.lastreq += 'op' + _root.tasks + '=set&var' + _root.tasks + '=' + a + '&val' + _root.tasks + '=' + b + '&'; ++_root.tasks; } function RQ_Get(a, b) { _root.lastreq += 'op' + _root.tasks + '=get&var' + _root.tasks + '=' + a + '&val' + _root.tasks + '=' + b + '&'; ++_root.tasks; } function RQ_Param(a, b) { _root.lastreq += a + '=' + b + '&'; } function RQ_Send(a) { _root.lastreq += 'tot=' + _root.tasks; callafter = a; _root.busy = true; my_xml2.load(_root.lastreq); } if (_root.getBytesLoaded() != _root.getBytesTotal()) { _root.gotoAndStop(1); } _root.muz.onRelease = function () { if (_root.muz._currentframe == 3) { _root.muz.gotoAndStop(2); } else { _root.muz.gotoAndStop(3); } }; _root.muz2.onRelease = function () { if (_root.muz2._currentframe == 3) { _root.muz2.gotoAndStop(2); } else { _root.muz2.gotoAndStop(3); } }; _root.g_server_dir = 'Dead Drunk official server'; _root.g_server_url = 'http://195.248.234.113/~server/dd/'; _root.score_server = _root.g_server_url + 'serv.php?'; _root.conn.htmlText = 'Connecting to \'\'' + _root.g_server_dir + '\'\''; var my_xml2 = new XML(); System.useCodepage = true; my_xml2.ignoreWhite = true; _root.busy = false; _root.lastreq = ''; _root.tasks = 0; _root.myid = -1; callafter = function () {}; _root.ping_last = 1; _root.ping = 0; my_xml2.onLoad = function (success) { _root.ping_last = _root.ping; _root.ping = 0; _root.busy = false; if (success) { curpl = 1; i = 0; while (i < my_xml2.childNodes.length) { if (my_xml2.childNodes[i].nodeName == 'getset') { eval(my_xml2.childNodes[i].attributes.varr) = my_xml2.childNodes[i].attributes.val; } if (my_xml2.childNodes[i].nodeName == 'trace') { } if (my_xml2.childNodes[i].nodeName == 'plpos') { i2 = 0; while (i2 < 11) { if (_root.ax_next[i2 + curpl * 11] == undefined) { _root.ax[i2 + curpl * 11] = my_xml2.childNodes[i].attributes['ax' + i2] * 1; _root.ay[i2 + curpl * 11] = my_xml2.childNodes[i].attributes['ay' + i2] * 1; } _root.ax[i2 + curpl * 11] = _root.ax_next[i2 + curpl * 11]; _root.ay[i2 + curpl * 11] = _root.ay_next[i2 + curpl * 11]; _root.ax_next[i2 + curpl * 11] = my_xml2.childNodes[i].attributes['ax' + i2] * 1; _root.ay_next[i2 + curpl * 11] = my_xml2.childNodes[i].attributes['ay' + i2] * 1; if (_root.ping_last > 0) { _root.atox[i2 + curpl * 11] = (_root.ax_next[i2 + curpl * 11] - _root.ax[i2 + curpl * 11]) / _root.ping_last; _root.atoy[i2 + curpl * 11] = (_root.ay_next[i2 + curpl * 11] - _root.ay[i2 + curpl * 11]) / _root.ping_last; _root.Init_a_moving(i2 + curpl * 11); } else { _root.atox[i2 + curpl * 11] = 0; _root.atoy[i2 + curpl * 11] = 0; } _root.aio[i2 + curpl * 11] = true; ++i2; } _root.game['pl' + curpl].hea2 = my_xml2.childNodes[i].attributes.hea; _root.game['pl' + curpl].nm = my_xml2.childNodes[i].attributes.nm; _root.game['pl' + curpl]._visible = true; ++curpl; } ++i; } i = curpl; while (i < pltot) { _root.game['pl' + i]._visible = false; ++i; } callafter.call(); _root.conn.htmlText = '<font color="660000">Connected to server "' + _root.g_server_dir + '". Have a fun! ;)</font>'; } else { _root.conn.htmlText = '<font color="660000">Can`t connect to server "' + _root.g_server_dir + '". :( </font>'; } }; RQ_Prepare(); RQ_Get('x_init', '_root.myid'); RQ_Send(function () {}); } frame 2 { _root.stop(); gaction = 0; _root.egurtlink.onRelease = function () { getURL('http://www.gevanni.com/', '_blank'); }; _root.onEnterFrame = function () { game_speed = 30 / getFPS(); if (gaction == 0) { if (_root.fg2._alpha > 0) { _root.fg2._alpha -= 2 * game_speed; _root.fg2._visible = true; } else { _root.fg2._visible = false; gaction = -1; } } if (gaction == 1) { if (_root.fg2._alpha < 100) { _root.fg2._alpha += 2 * game_speed; _root.fg2._visible = true; } else { _root.gotoAndStop(3); gaction = -1; } } _root.start.onRelease = function () { gaction = 1; }; _root.start2.onRelease = function () { _root.my_so.clear(); _root.my_so.data.myname = 'Your Name Here'; gaction = 1; }; _root.loa.text = 'Loading: ' + Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + '%'; }; } movieClip 9 { frame 1 { this.stop(); } } // unknown tag 88 length 68 movieClip 32 { frame 1 { this.stop(); if (_root.my_so.data.snd2 == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } frame 2 { _root.my_so.data.snd2 = 1; } frame 3 { _root.my_so.data.snd2 = 2; } } movieClip 36 { frame 1 { this.stop(); if (_root.my_so.data.snd == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } frame 2 { _root.my_so.data.snd = 1; } frame 3 { _root.my_so.data.snd = 2; } } frame 3 { _root.stop(); _root.mmm.stop(); var float_frame = 1; _root.onEnterFrame = function () { game_speed = 30 / getFPS(); float_frame += game_speed; if (float_frame >= _root.mmm._totalframes) { _root.gotoAndStop(4); } else { _root.mmm.gotoAndStop(Math.floor(float_frame)); } }; _root.mmm.start.onRelease = function () { if (float_frame > 30) { if (float_frame < 280) { float_frame = 280; } } else { float_frame = 310 - float_frame; } }; } movieClip 38 { } movieClip 44 { } frame 4 { function KeyControl() { return Key.isDown(17) || Key.isDown(18); } function KeyLeft() { return Key.isDown(37) || Key.isDown(65); } function KeyRight() { return Key.isDown(39) || Key.isDown(68); } function KeyUp() { return Key.isDown(38) || Key.isDown(87); } function KeyDown() { return Key.isDown(40) || Key.isDown(83); } function WorldHitTest(xx, yy, ff) { var v2 = xx - _root.game._x; if (v2 > _root.game.connector13._x) { return _root.game.colmap3.hitTest(xx, yy, ff); } if (v2 > _root.game.connector12._x) { return _root.game.colmap.hitTest(xx, yy, ff); } return _root.game.colmap2.hitTest(xx, yy, ff); } function Init_a_moving(aa) { ready = true; ii = 0; for (;;) { if (!(ii < _root.othera_tot && ready == true)) break; if (aa == _root.othera_a[ii]) { ready = false; } ++ii; } if (ready) { _root.othera_a[_root.othera_tot] = aa; ++_root.othera_tot; } } function LinkMcTo(mc, ch, pan, flip, scale) { mcto_mc[mcto_tot] = mc; mcto_ch[mcto_tot] = ch; mcto_an[mcto_tot] = pan; mcto_filp[mcto_tot] = flip; mcto_scale[mcto_tot] = scale; ++mcto_tot; } function Dist2D(p1x, p1y, p2x, p2y) { return Math.sqrt(Math.pow(p1x - p2x, 2) + Math.pow(p1y - p2y, 2)); } function Effect(x, y, type, param1, param2) { if (type == 0) { duplicateMovieClip(_root.game.blood, 'bl' + eff, 100 + eff); } if (type == 1) { duplicateMovieClip(_root.game.drop, 'bl' + eff, 100 + eff); } _root.game['bl' + eff]._x = x; _root.game['bl' + eff]._y = y; if (type == 0) { _root.game['bl' + eff]._rotation = param1; _root.game['bl' + eff]._xscale = 100 + param2 * 10; } if (type == 1) { _root.game['bl' + eff].power = param1; } ++eff; if (eff > 128) { eff = 0; } } function Draw() { i = 0; while (i < mantot) { _root.game['pl' + i]._x = 0; _root.game['pl' + i]._y = 0; ++i; } i = 0; while (i < mcto_tot) { if (mcto_mc[i]._parent._visible == true) { if (aio[chP[mcto_ch[i]]] == true || aio[chC[mcto_ch[i]]] == true) { mcto_mc[i]._xscale = Math.abs(mcto_mc[i]._xscale) * mcto_filp[i]; mcto_mc[i]._x = ax[chP[mcto_ch[i]]]; mcto_mc[i]._y = ay[chP[mcto_ch[i]]]; an = mcto_an[i] - (Math.atan2(ax[chP[mcto_ch[i]]] - ax[chC[mcto_ch[i]]], ay[chP[mcto_ch[i]]] - ay[chC[mcto_ch[i]]]) / Math.PI) * 180; mcto_mc[i]._rotation = an; if (mcto_scale[i]) { mcto_mc[i]._yscale = Dist2D(ax[chP[mcto_ch[i]]], ay[chP[mcto_ch[i]]], ax[chC[mcto_ch[i]]], ay[chC[mcto_ch[i]]]); } } } ++i; } if (-_root.game._x < _root.game.connector12._x) { _root.game.colmap2._visible = true; if (-_root.game._x < _root.game.connector12._x - 600) { _root.game.colmap._visible = false; } else { _root.game.colmap._visible = true; } _root.game.colmap3._visible = false; } else { _root.game.colmap2._visible = false; if (-_root.game._x > _root.game.connector13._x - 600) { _root.game.colmap3._visible = true; } else { _root.game.colmap3._visible = false; } if (-_root.game._x > _root.game.connector13._x) { _root.game.colmap._visible = false; } else { _root.game.colmap._visible = true; } } } function CreatePoint(x, y, sx, sy, rad) { ax[atotal] = x; ay[atotal] = y; ax_next[atotal] = undefined; ay_next[atotal] = undefined; atox[atotal] = sx; atoy[atotal] = sy; aio[atotal] = false; if (rad != undefined) { arad[atotal] = rad; ++atotal; return atotal - 1; } arad[atotal] = 0; ++atotal; return atotal - 1; } function Connect(a, a2, type, di, power) { chP[chtotal] = a; chC[chtotal] = a2; if (di != undefined) { chdef[chtotal] = di; } else { chdef[chtotal] = Dist2D(ax[a], ay[a], ax[a2], ay[a2]); } if (power == undefined) { chdamp[chtotal] = 0.1; chtypa[chtotal] = type; chio[chtotal] = true; ++chtotal; return chtotal - 1; } chdamp[chtotal] = power * 0.1; chtypa[chtotal] = type; chio[chtotal] = true; ++chtotal; return chtotal - 1; } function MkPlayer() { fst = CreatePoint(smx, smy, 0, 0); CreatePoint(smx - 2, smy + 7, 0, 0); CreatePoint(smx + 2, smy + 7, 0, 0); CreatePoint(smx - 4, smy + 12, 0, 0); CreatePoint(smx + 4, smy + 12, 0, 0); CreatePoint(smx, smy - 5, 0, 0); CreatePoint(smx, smy - 10, 0, 0); CreatePoint(smx - 5, smy - 5, 0, 0); CreatePoint(smx + 5, smy - 5, 0, 0); CreatePoint(smx - 10, smy - 5, 0, 0); CreatePoint(smx + 10, smy - 5, 0, 0); leg1 = Connect(fst + 0, fst + 1, 0); leg2 = Connect(fst + 0, fst + 2, 0); subleg1 = Connect(fst + 1, fst + 3, 0); subleg2 = Connect(fst + 2, fst + 4, 0); spine1 = Connect(fst + 0, fst + 5, 0); spine2 = Connect(fst + 6, fst + 5, 0); arm1 = Connect(fst + 5, fst + 7, 0); arm2 = Connect(fst + 5, fst + 8, 0); subarm1 = Connect(fst + 7, fst + 9, 0); subarm2 = Connect(fst + 8, fst + 10, 0); allleg1 = Connect(fst + 0, fst + 4, 1, undefined, 0.5); allleg2 = Connect(fst + 0, fst + 3, 1, undefined, 0.5); if (fst == 0) { legs = chdef[allleg1]; curlegs = legs; } Connect(fst + 0, fst + 6, 1, undefined, 1); Connect(fst + 1, fst + 2, 1, 2, 2); Connect(fst + 1, fst + 2, 2, 10, 1); Connect(fst + 3, fst + 4, 2, 10, 1); Connect(fst + 1, fst + 5, 1, 10, 1); Connect(fst + 2, fst + 5, 1, 10, 1); Connect(fst + 7, fst + 8, 1, 5, 1); duplicateMovieClip(_root.game.player, 'pl' + mantot, 50 - mantot); if (mantot != 0) { _root.game['pl' + mantot]._visible = false; } LinkMcTo(_root.game['pl' + mantot].body0.leg1, leg1, 180, 1, true); LinkMcTo(_root.game['pl' + mantot].body0.leg2, leg2, 180, 1, true); LinkMcTo(_root.game['pl' + mantot].body0.arm1, arm1, 180, 1, true); LinkMcTo(_root.game['pl' + mantot].body0.arm2, arm2, 180, 1, true); LinkMcTo(_root.game['pl' + mantot].body0.subleg1, subleg1, 180, 1, true); LinkMcTo(_root.game['pl' + mantot].body0.subleg2, subleg2, 180, 1, true); LinkMcTo(_root.game['pl' + mantot].body0.subarm1, subarm1, 180, 1, true); LinkMcTo(_root.game['pl' + mantot].body0.subarm2, subarm2, 180, 1, true); LinkMcTo(_root.game['pl' + mantot].body0.spine1, spine1, 180, 1, true); LinkMcTo(_root.game['pl' + mantot].body0.spine2, spine2, 180, 1, true); LinkMcTo(_root.game['pl' + mantot].body0.head, spine2, 0, 1); if (mantot == 0) { _root.game['pl' + mantot].gotoAndStop(1); } else { _root.game['pl' + mantot].gotoAndStop(2); } ++mantot; } function VIS(a) { if (_root.fg.hitTest(ax[a] + _root.game._x, ay[a] + _root.game._y, false)) { return true; } else { return false; } } _root.game.connector13._visible = false; _root.game.connector12._visible = false; if (_root.my_so.data.qua == 'LOW') { _root._quality = 'LOW'; } else { _root._quality = 'MEDIUM'; } ax = new Array(); ay = new Array(); ax_next = new Array(); ay_next = new Array(); atox = new Array(); atoy = new Array(); aio = new Array(); aof = new Array(); arad = new Array(); legposang = 0; _root.game.player._visible = false; _root.game.easyphys._visible = false; if (_root.my_so.data.lsteps != undefined) { steps = _root.my_so.data.lsteps; } else { steps = 2; } _root.lastside = 1; _root.totaldrunk = 0; gravity = 0.03; bounce = 0.5; friction = 0.6; trytim = 0; chtypa = new Array(); chP = new Array(); chC = new Array(); chdef = new Array(); chdamp = new Array(); chio = new Array(); chtsilp = new Array(); atotal = 0; chtotal = 0; antotal = 0; mcto_tot = 0; mcto_ch = new Array(); mcto_mc = new Array(); mcto_an = new Array(); mcto_scale = new Array(); mcto_filp = new Array(); var othera_tot = 0; var othera_a = new Array(); var awake = true; _root.game.blood._visible = false; _root.game.drop._visible = false; _root.game.finzone._visible = false; _root.game.finzone2._visible = false; eff = 0; _root.rise.onRelease = function () { gaction = 1; }; _root.rise2.onRelease = function () { gaction = 2; }; _root.qualities.onRelease = function () { if (_root._quality == 'MEDIUM') { _root._quality = 'LOW'; _root.my_so.data.qua = 'LOW'; } else { _root._quality = 'MEDIUM'; _root.my_so.data.qua = 'MEDIUM'; } }; _root.speeds1.onRelease = function () { steps = 1; _root.my_so.data.lsteps = 1; }; _root.speeds2.onRelease = function () { steps = 2; _root.my_so.data.lsteps = 2; }; _root.speeds3.onRelease = function () { steps = 3; _root.my_so.data.lsteps = 3; }; _root.speeds4.onRelease = function () { steps = 4; _root.my_so.data.lsteps = 4; }; _root.game.colmap3.lift.gotoAndPlay(140); _root.game.killzone._visible = false; hea = 100; i = 0; while (i < 6) { _root.game['spawn' + i]._visible = false; ++i; } i = Math.floor(Math.random() * 5.999); smx = _root.game['spawn' + i]._x; smy = _root.game['spawn' + i]._y; if (_root.my_so.data.hea != undefined && !isNaN(_root.my_so.data.hea)) { _root.hea = _root.my_so.data.hea; smx = _root.my_so.data.x; smy = _root.my_so.data.y; _root.totaldrunk = _root.my_so.data.totaldrunk; } mantot = 0; pltot = 32; i = 0; while (i < pltot) { MkPlayer(); ++i; } ++pltot; hscreenX = 300; hscreenY = 150; gaction = 0; _root.game._x = Math.round(-ax[0] + hscreenX); _root.game._y = Math.round(-ay[0] + hscreenY); datasend = 0; _root.last_ping = 1; _root.ping = 0; _root.onEnterFrame = function () { game_speed = 30 / getFPS(); if (_root.ping < _root.ping_last) { i = 0; while (i < _root.othera_tot) { if (Math.abs(_root.atox[_root.othera_a[i]]) < 4) { if (Math.abs(_root.atoy[_root.othera_a[i]]) < 4) { _root.ax[_root.othera_a[i]] += _root.atox[_root.othera_a[i]]; _root.ay[_root.othera_a[i]] += _root.atoy[_root.othera_a[i]]; } } ++i; } } _root.ping += 1; datasend += 1; if (myid != undefined && !isNaN(myid)) { if (datasend > 10) { if (!_root.busy) { datasend = 0; _root.RQ_Prepare(); i = 0; while (i < 11) { _root.RQ_Set(myid + '_p_ax' + i, Math.round(ax[i])); _root.RQ_Set(myid + '_p_ay' + i, Math.round(ay[i])); ++i; } _root.RQ_Set(myid + '_p_hea', Math.ceil(hea)); _root.RQ_Set(myid + '_p_timeout', 'TIME'); _root.RQ_Param('myid', myid); _root.RQ_Send(); } } } i = 0; while (i < pltot) { if (_root.game['pl' + i]._visible) { hh = 0; if (i == 0) { hh = hea; } else { hh = _root.game['pl' + i].hea2; } } ++i; } if (gaction == -1) { if (Key.isDown(13)) { gaction = 2; } } if (gaction == 0) { if (_root.fg._alpha > 0) { _root.fg._alpha -= 2 * game_speed; _root.fg._visible = true; } else { _root.fg._visible = false; gaction = -1; } } if (gaction == 2) { if (_root.fg._alpha < 100) { _root.fg._alpha += 2 * game_speed; _root.fg._visible = true; } else { _root.gotoAndStop(2); _root.gotoAndStop(4); gaction = -1; } } if (gaction == 1) { if (_root.fg._alpha < 100) { _root.fg._alpha += 2 * game_speed; _root.fg._visible = true; } else { _root.kongregateStats.submit('Suicides', 1); _root.gotoAndStop(2); gaction = -1; } } if (gaction == 3) { if (_root.fg._alpha < 100) { _root.fg._alpha += 2 * game_speed; _root.fg._visible = true; } else { _root.kongregateScores.submit(_root.totaldrunk); _root.gotoAndStop(5); gaction = -1; } } if (gaction == 4) { if (_root.fg._alpha < 100) { _root.fg._alpha += 1 * game_speed; _root.fg._visible = true; } else { _root.kongregateScores.submit(_root.totaldrunk); _root.gotoAndStop(6); gaction = -1; } } if (hea > 0) { _root.thea.text = Math.ceil(hea) + ' HP'; } else { if (hea > -100) { _root.thea.text = 'Unconscious'; } else { _root.thea.text = 'Dead'; gaction = 2; } } _root.game._x = Math.round((-ax[0] + hscreenX + _root.game._x * 10) / 11); _root.game._y = Math.round((-ay[0] + hscreenY + _root.game._y * 10) / 11); iter = 0; while (iter < steps) { if (hea > 100) { hea = Math.max(100, hea - 0.0125); } if (hea > 0) { sleeptim = 300; } if (hea <= 0) { if (hea > -100) { --sleeptim; if (sleeptim < 0) { hea += 1; } } } stand = false; if (WorldHitTest(_root.game._x + ax[3], _root.game._y + ay[3] + 2, true) || WorldHitTest(_root.game._x + ax[4], _root.game._y + ay[4] + 2, true)) { stand = true; } if (!awake) { stand = false; } if (atox[0] > 1 || atox[0] < -1) { stand = false; } if (trytim >= 20) { ++trytim; if (trytim > 30) { trytim = 0; } } if (hea > 0) { if (awake) { if (KeyLeft()) { _root.lastside = -1; } if (KeyRight()) { _root.lastside = 1; } if (Key.isDown(16)) { atoy[10] -= 0.2; atoy[9] -= 0.2; atox[10] += 0.2; atox[9] -= 0.2; atoy[8] -= 0.2; atoy[7] -= 0.2; atoy[0] += 0.8; } if (KeyControl()) { di = 0; if (WorldHitTest(_root.game._x + ax[10] + 4, _root.game._y + ay[10] + 4, true) || WorldHitTest(_root.game._x + ax[10] - 4, _root.game._y + ay[10] + 4, true) || WorldHitTest(_root.game._x + ax[10] + 4, _root.game._y + ay[10] - 4, true) || WorldHitTest(_root.game._x + ax[10] - 4, _root.game._y + ay[10] - 4, true)) { ay[10] -= atoy[10] - gravity; atoy[10] = 0; ax[10] -= atox[10]; atox[10] = 0; ++di; } if (WorldHitTest(_root.game._x + ax[9] + 4, _root.game._y + ay[9] + 4, true) || WorldHitTest(_root.game._x + ax[9] - 4, _root.game._y + ay[9] + 4, true) || WorldHitTest(_root.game._x + ax[9] + 4, _root.game._y + ay[9] - 4, true) || WorldHitTest(_root.game._x + ax[9] - 4, _root.game._y + ay[9] - 4, true)) { ay[9] -= atoy[9] - gravity; atoy[9] = 0; ax[9] -= atox[9]; atox[9] = 0; ++di; } if (di != 0) { if (di == 2) { cx = (ax[9] + ax[10]) / 2; cy = (ay[9] + ay[10]) / 2; ax[9] = (cx + ax[9] * 3) / 4; ay[9] = (cy + ay[9] * 3) / 4; ax[10] = (cx + ax[10] * 3) / 4; ay[10] = (cy + ay[10] * 3) / 4; } if (KeyLeft()) { atox[5] -= 0.5; atox[0] -= 0.03; atox[4] -= 0.05; atox[3] -= 0.05; } if (KeyRight()) { atox[5] += 0.5; atox[0] += 0.03; atox[4] += 0.05; atox[3] += 0.05; } if (KeyUp()) { atoy[5] -= 0.5; atoy[0] -= 0.03; atoy[4] -= 0.05; atoy[3] -= 0.05; } if (KeyDown()) { atoy[5] += 0.5; atoy[0] += 0.03; atoy[4] += 0.05; atoy[3] += 0.05; } } } } } if (hea > 0 && stand) { if (Math.abs((ax[3] + ax[4]) / 2 - ax[0]) > 3 && trytim < 20) { if (Math.abs((ax[3] + ax[4]) / 2 - ax[0]) > 6) { stand = false; } if (!stand) { ++trytim; } if (ax[0] < (ax[3] + ax[4]) / 2) { side = -1; } else { side = 1; } koncur = 3; sybdister = 2; dister = 4; if (Math.abs(ax[0] - ax[3]) > Math.abs(ax[0] - ax[4])) { koncur = 4; dister = 3; sybdister = 1; } atox[dister] += side * 0.5; atox[sybdister] -= side * 0.5; atoy[6] -= 0.2; atoy[5] -= 0.2; atoy[0] += 0.2; if (ay[0] > ay[5]) { atox[0] -= (ax[0] - ax[5]) * 0.2; atox[5] += (ax[0] - ax[5]) * 0.2; } if (ay[dister] > ay[koncur] - 2) { astoy[dister] -= 0.2; astoy[sybdister] += 0.2; } else { astoy[dister] += 0.2; astoy[sybdister] -= 0.2; } } } if (hea > 0) { if (KeyDown()) { curlegs = legs / 4; atox[1] -= (ax[1] - ax[2]) * 0.1; atox[2] += (ax[1] - ax[2]) * 0.1; } else { curlegs = legs; } } else { curlegs = legs; } chdef[allleg1] = curlegs; chdef[allleg2] = curlegs; if (ay[0] > ay[5]) { if (hea > 0) { if (stand) { if (ax[0] - ax[5] < 4) { atox[0] -= (ax[0] - ax[5]) * 0.3; atox[5] += (ax[0] - ax[5]) * 0.3; } else { atox[0] -= (ax[0] - ax[5]) * 0.1; atox[5] += (ax[0] - ax[5]) * 0.1; } atoy[3] += 0.2; atoy[4] += 0.2; atoy[1] -= 0.15; atoy[2] -= 0.15; atoy[0] -= 0.1; pw = 0.1; if (KeyRight()) { atox[5] += 0.1; atoy[0] += 0.1; atox[3] += Math.sin(legposang) * pw; atoy[3] += Math.cos(legposang) * pw; atox[4] -= Math.sin(legposang) * pw; atoy[4] -= Math.cos(legposang) * pw; legposang += 0.15; } if (KeyLeft()) { atox[5] -= 0.1; atoy[0] -= 0.1; atox[3] -= Math.sin(legposang) * pw; atoy[3] -= Math.cos(legposang) * pw; atox[4] += Math.sin(legposang) * pw; atoy[4] += Math.cos(legposang) * pw; legposang -= 0.15; } if (Key.isDown(32)) { if (lpressed) { vecx = (ax[6] - (ax[3] + ax[4]) / 2) * 0.25; vecy = (ay[6] - (ay[3] + ay[4]) / 2) * 0.25; atox[0] += vecx; atox[6] += vecx; atox[5] += vecx; atoy[0] += vecy; atoy[6] += vecy; atoy[5] += vecy; lpressed = false; } } else { lpressed = true; } } else { spx = 0; spy = 0; if (KeyUp()) { spy = -1; } if (KeyDown()) { spy = 1; } if (KeyLeft()) { spx = -1; } if (KeyRight()) { spx = 1; } atox[0] -= spx * 0.1 / steps; atoy[0] -= spy * 0.1 / steps; atox[6] += spx * 0.2 / steps; atoy[6] += spy * 0.2 / steps; } } } if (hea <= 0 && hea > -100) { if (Math.random() > 0.95) { atoy[5] -= 1; } } a = 0; while (a < 11) { if (a < 11) { aio[a] = true; } if (aio[a] == true) { ax[a] += atox[a]; ay[a] += atoy[a]; if (a < 11) { if (_root.game.killzone.hitTest(_root.game._x + ax[a], _root.game._y + ay[a], true)) { hea = -200; } if (_root.game.finzone.hitTest(_root.game._x + ax[a], _root.game._y + ay[a], true)) { hea = 100; gaction = 3; _root.kongregateStats.submit('Levels passed', 1); } if (_root.game.finzone2.hitTest(_root.game._x + ax[a], _root.game._y + ay[a], true)) { awake = false; hea = 100; gaction = 4; } } di = Dist2D(atox[a], atoy[a], 0, 0); if (di > collision_tolerance) { atox[a] /= di * collision_tolerance; atoy[a] /= di * collision_tolerance; } if (di > 30) { atox[a] = (atox[a] / di) * 30; atoy[a] = (atoy[a] / di) * 30; } atoy[a] += gravity; if (arad[a] > 0) { arad[a] = 0; } if (WorldHitTest(_root.game._x + ax[a], _root.game._y + ay[a], true)) { dd = 5; acy = 0; acx = 0; x = -1; while (x <= 1) { y = -1; while (y <= 1) { if (!WorldHitTest(_root.game._x + ax[a] + Math.abs(atox[a]) * x, _root.game._y + ay[a] + Math.abs(atoy[a]) * y, true)) { acx += x; acy += y; } y += 1; } x += 1; } normx; normy; speed = 0.05; nostop = 0.75; lasttox = atox[a]; lasttoy = atoy[a]; if (_root.game.easyphys.hitTest(_root.game._x + ax[a], _root.game._y + ay[a], true)) { speed = 0.2; } d = 0.05; while (d < 10) { if (!WorldHitTest(_root.game._x + ax[a] + d, _root.game._y + ay[a], true)) { atox[a] += d / nostop; ax[a] += d * nostop; d = 10; normx = 1; normy = 0; } else { if (!WorldHitTest(_root.game._x + ax[a] - d, _root.game._y + ay[a], true)) { atox[a] -= d / nostop; ax[a] -= d * nostop; d = 10; normx = -1; normy = 0; } else { if (!WorldHitTest(_root.game._x + ax[a], _root.game._y + ay[a] + d, true)) { atoy[a] += d / nostop; ay[a] += d * nostop; d = 10; normx = 0; normy = 1; } else { if (!WorldHitTest(_root.game._x + ax[a], _root.game._y + ay[a] - d, true)) { atoy[a] -= d / nostop; ay[a] -= d * nostop; d = 10; normx = 0; normy = -1; } else { if (!WorldHitTest(_root.game._x + ax[a] + d, _root.game._y + ay[a] + d, true)) { atox[a] += d / nostop; atoy[a] += d / nostop; ax[a] += d * nostop; ay[a] += d * nostop; d = 10; normx = 1; normy = 1; } else { if (!WorldHitTest(_root.game._x + ax[a] - d, _root.game._y + ay[a] + d, true)) { atox[a] -= d / nostop; atoy[a] += d / nostop; ax[a] -= d * nostop; ay[a] += d * nostop; d = 10; normx = -1; normy = 1; } else { if (!WorldHitTest(_root.game._x + ax[a] + d, _root.game._y + ay[a] - d, true)) { atox[a] += d / nostop; atoy[a] -= d / nostop; ax[a] += d * nostop; ay[a] -= d * nostop; d = 10; normx = 1; normy = -1; } else { if (!WorldHitTest(_root.game._x + ax[a] - d, _root.game._y + ay[a] - d, true)) { atox[a] -= d / nostop; atoy[a] -= d / nostop; ax[a] -= d * nostop; ay[a] -= d * nostop; d = 10; normx = -1; normy = -1; } } } } } } } } d += speed; } if (a < 11) { mnoj = 1; if (a == 3 || a == 4) { mnoj = 0.4; } if (a == 6) { mnoj = 5; } lhea = hea; if (Math.abs(normx) > Math.abs(normy)) { hea -= Math.floor(Math.abs(lasttox) * 0.6 * mnoj * nostop) * 10; } else { hea -= Math.floor(Math.abs(lasttoy) * 0.6 * mnoj * nostop) * 10; } if (lhea - hea < mnoj) { hea = lhea; } if (Math.abs(normx) > Math.abs(normy)) { pwr = Math.abs(lasttox); } else { pwr = Math.abs(lasttoy); } if (_root.muz2._currentframe == 2) { if (pwr > 2) { if (Math.random() > 0.5) { _root.sou.gotoAndStop(2); } else { _root.sou.gotoAndStop(3); } } else { if (pwr > 1.2) { if (Math.random() > 0.5) { _root.sou.gotoAndStop(4); } else { _root.sou.gotoAndStop(5); } } else { if (pwr > 1.1 || lhea > hea) { _root.sou.gotoAndStop(6); } } } } if (lhea > hea) { if (Math.abs(normx) > Math.abs(normy)) { Effect(ax[a], ay[a], 0, 90, lhea - hea); } else { Effect(ax[a], ay[a], 0, 0, lhea - hea); } } } if (Math.abs(normx) > Math.abs(normy)) { atox[a] *= 0.75; if (atoy[a] > 0) { atoy[a] = Math.max(atoy[a] - friction * Math.abs(atox[a]), 0); } else { atoy[a] = Math.min(atoy[a] + friction * Math.abs(atox[a]), 0); } } else { if (Math.abs(normx) < Math.abs(normy)) { if (atox[a] > 0) { atox[a] = Math.max(atox[a] - friction * Math.abs(atoy[a]), 0); } else { atox[a] = Math.min(atox[a] + friction * Math.abs(atoy[a]), 0); } atoy[a] *= 0.75; } } } } ++a; } ch = 0; for (;;) { if (!(ch < 19 || iter == 0 && ch < chtotal)) break; dis = Dist2D(ax[chP[ch]], ay[chP[ch]], ax[chC[ch]], ay[chC[ch]]); bounce = 5 * chdamp[ch]; bnc = bounce * Math.abs(dis - chdef[ch]); if (dis < 1) { dis = 1; } if (ch >= 19) { bnc = 0.5 * Math.abs(dis - chdef[ch]); if (dis > chdef[ch] && (chtypa[ch] == 0 || chtypa[ch] == 3 || chtypa[ch] == 4 || chtypa[ch] == 2)) { ax[chC[ch]] += ((ax[chP[ch]] - ax[chC[ch]]) / dis) * bnc; ay[chC[ch]] += ((ay[chP[ch]] - ay[chC[ch]]) / dis) * bnc; ax[chP[ch]] -= ((ax[chP[ch]] - ax[chC[ch]]) / dis) * bnc; ay[chP[ch]] -= ((ay[chP[ch]] - ay[chC[ch]]) / dis) * bnc; } if (dis < chdef[ch] && (chtypa[ch] == 0 || chtypa[ch] == 3 || chtypa[ch] == 4 || chtypa[ch] == 1)) { ax[chC[ch]] -= ((ax[chP[ch]] - ax[chC[ch]]) / dis) * bnc; ay[chC[ch]] -= ((ay[chP[ch]] - ay[chC[ch]]) / dis) * bnc; ax[chP[ch]] += ((ax[chP[ch]] - ax[chC[ch]]) / dis) * bnc; ay[chP[ch]] += ((ay[chP[ch]] - ay[chC[ch]]) / dis) * bnc; } } else { if (dis > chdef[ch] && (chtypa[ch] == 0 || chtypa[ch] == 3 || chtypa[ch] == 4 || chtypa[ch] == 2)) { atox[chC[ch]] += ((ax[chP[ch]] - ax[chC[ch]]) / dis) * bnc; atoy[chC[ch]] += ((ay[chP[ch]] - ay[chC[ch]]) / dis) * bnc; atox[chP[ch]] -= ((ax[chP[ch]] - ax[chC[ch]]) / dis) * bnc; atoy[chP[ch]] -= ((ay[chP[ch]] - ay[chC[ch]]) / dis) * bnc; } if (dis < chdef[ch] && (chtypa[ch] == 0 || chtypa[ch] == 3 || chtypa[ch] == 4 || chtypa[ch] == 1)) { atox[chC[ch]] -= ((ax[chP[ch]] - ax[chC[ch]]) / dis) * bnc; atoy[chC[ch]] -= ((ay[chP[ch]] - ay[chC[ch]]) / dis) * bnc; atox[chP[ch]] += ((ax[chP[ch]] - ax[chC[ch]]) / dis) * bnc; atoy[chP[ch]] += ((ay[chP[ch]] - ay[chC[ch]]) / dis) * bnc; } if ((chtypa[ch] == 0 || chtypa[ch] == 3 || chtypa[ch] == 4) && chdamp[ch] >= 0.1) { tarx = (ax[chP[ch]] + ax[chC[ch]]) / 2; tary = (ay[chP[ch]] + ay[chC[ch]]) / 2; ax[chP[ch]] = tarx + (ax[chP[ch]] - tarx) * chdef[ch] / dis; ay[chP[ch]] = tary + (ay[chP[ch]] - tary) * chdef[ch] / dis; ax[chC[ch]] = tarx + (ax[chC[ch]] - tarx) * chdef[ch] / dis; ay[chC[ch]] = tary + (ay[chC[ch]] - tary) * chdef[ch] / dis; } } ++ch; } ++iter; } Draw(); }; } frame 4 { } movieClip 64 { } movieClip 67 { } movieClip 72 { } movieClip 73 { frame 1 { this.gotoAndStop(1); this.frm = 1; this.onEnterFrame = function () { this.frm += _root.steps / 2; this.gotoAndStop(Math.round(this.frm)); if (this.frm > 320) { this.frm = 1; } }; } } movieClip 76 { } movieClip 77 { } movieClip 78 { frame 1 { this.gotoAndStop(1); this.frm = 1; this.onEnterFrame = function () { if (Math.abs(_root.ax[0] - (this._parent._x + this._x)) < 630) { this.frm += _root.steps / 2; this.gotoAndStop(Math.round(this.frm)); if (this.frm >= 20) { this.frm = 1; } } }; } } movieClip 80 { } movieClip 85 { frame 1 { this.gotoAndStop(1); this.frm = 1; this.onEnterFrame = function () { this.frm += _root.steps / 2; this.gotoAndStop(Math.round(this.frm)); if (this.frm > 633) { this.frm = 1; } }; } } movieClip 91 { } movieClip 92 { } movieClip 94 { } movieClip 95 { } movieClip 96 { } movieClip 98 { } movieClip 102 { frame 1 { if (this + '' != '_level0.game.blood') { _root.Effect(this._x, this._y, 1, this._xscale); _root.Effect(this._x, this._y, 1, this._xscale); _root.Effect(this._x, this._y, 1, this._xscale); _root.Effect(this._x, this._y, 1, this._xscale); _root.Effect(this._x, this._y, 1, this._xscale); if (_root.muz2._currentframe != 2) { this.gotoAndStop(3); } this.onEnterFrame = function () { if (!_root.WorldHitTest(this._x + _root.game._x, this._y + _root.game._y, true)) { this.gotoAndStop(41); } }; } else { this.stop(); } } frame 40 { this.stop(); } frame 41 { this.stop(); this.onEnterFrame = function () {}; } } movieClip 107 { frame 1 { this.stop(); this.picked = false; this.bstate = 0; this.power = 0; this.vikid = false; this.isnue = true; this.nearer = 9; this.onEnterFrame = function () { if (!picked) { if (Math.abs(_root.ax[0] - this._x) < 20 && Math.abs(_root.ay[0] - this._y) < 20) { if ((_root.Dist2D(_root.ax[9], _root.ay[9], this._x, this._y) < 15 || _root.Dist2D(_root.ax[10], _root.ay[10], this._x, this._y) < 15) && _root.hea > 0 || (_root.Dist2D(_root.ax[9], _root.ay[9], this._x, this._y) < 20 || _root.Dist2D(_root.ax[10], _root.ay[10], this._x, this._y) < 20) && _root.hea <= 0 && _root.hea > -100) { if (_root.Dist2D(_root.ax[9], _root.ay[9], this._x, this._y) < 3 || _root.Dist2D(_root.ax[10], _root.ay[10], this._x, this._y) < 3) { this.picked = true; this.isnue = false; ++_root.totaldrunk; _root.kongregateStats.submit('Drunk bottles', 1); _root.kongregateScores.submit(_root.totaldrunk); } else { this.nearer = 9; if (_root.Dist2D(_root.ax[10], _root.ay[10], this._x, this._y) < _root.Dist2D(_root.ax[9], _root.ay[9], this._x, this._y)) { this.nearer = 10; } this.power = 2; dis = _root.Dist2D(_root.ax[this.nearer], _root.ay[this.nearer], this._x, this._y); if (dis < 1) { dis = 1; } if (_root.hea > -100) { if (dis < 5) { _root.atox[this.nearer] += ((this._x - _root.ax[this.nearer]) / dis) * this.power * _root.steps / 2; _root.atoy[this.nearer] += ((this._y - _root.ay[this.nearer]) / dis) * this.power * _root.steps / 2; } else { _root.atox[this.nearer] += ((this._x - _root.ax[this.nearer]) / dis) * this.power * _root.steps / 4; _root.atoy[this.nearer] += ((this._y - _root.ay[this.nearer]) / dis) * this.power * _root.steps / 4; } } } } } } else { this.lx = this._x; this.ly = this._y; this.lr = this._rotation; this.bstate += _root.steps / 2; if (!this.vikid) { this._x = _root.ax[this.nearer] + _root.atox[this.nearer] * _root.steps; this._y = _root.ay[this.nearer] + _root.atoy[this.nearer] * _root.steps; this._rotation = (-Math.atan2(_root.ax[this.nearer] - _root.ax[this.nearer - 2], _root.ay[this.nearer] - _root.ay[this.nearer - 2]) / Math.PI) * 180 + 90; } else { this._x += this.tox; this._y += this.toy; this._rotation += this.rot; this.toy += _root.gravity * _root.steps; } if (this.bstate > 10) { if (this.bstate < 110) { if (this.bstate < 100) { this.power = 0.5; } else { this.power = -1; } if (this.bstate < 100) { this.power = 0.25; } else { this.power = -0.5; } this.power *= 0.5; dis = _root.Dist2D(_root.ax[this.nearer], _root.ay[this.nearer], _root.ax[6], _root.ay[6]); if (dis < 1) { dis = 1; } if (_root.hea > -100) { _root.atox[this.nearer] += ((_root.ax[6] - _root.ax[this.nearer]) / dis) * this.power * _root.steps / 2; _root.atoy[this.nearer] += ((_root.ay[6] - _root.ay[this.nearer]) / dis) * this.power * _root.steps / 2; _root.atox[6] -= ((_root.ax[6] - _root.ax[this.nearer]) / dis) * this.power * _root.steps / 2; _root.atoy[6] -= ((_root.ay[6] - _root.ay[this.nearer]) / dis) * this.power * _root.steps / 2; } } } if (this.bstate > 50) { if (this.bstate < 100) { if (_root.hea > -100) { if (_root.hea <= 0) { _root.hea = 1; } _root.hea = Math.min(_root.hea + _root.steps / 2, 200); } } } if (this.bstate > 102) { if (!this.vikid) { this.tox = -this.lx + this._x; this.toy = -this.ly + this._y; this.rot = -this.lr + this._rotation; this.vikid = true; if (_root.muz2._currentframe == 2) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } } if (this.bstate > 200) { if (_root.muz2._currentframe == 2) { this.gotoAndStop(4); } else { this.gotoAndStop(5); } } } }; } frame 4 { this.onEnterFrame = function () {}; this.gotoAndStop(5); } frame 5 { this.onEnterFrame = function () {}; } } movieClip 109 { frame 1 { if (this + '' != '_level0.game.drop') { power = (power - 100) * 0.004; this.tox = -1 * power + Math.random() * 2 * power; this.toy = -1 * power + Math.random() * 2 * power; if (!_root.WorldHitTest(this._x + _root.game._x, this._y + _root.game._y - 5, true)) { this.toy -= 1 * power; } if (!_root.WorldHitTest(this._x + _root.game._x, this._y + _root.game._y + 5, true)) { this.toy += 1 * power; } if (!_root.WorldHitTest(this._x + _root.game._x + 5, this._y + _root.game._y, true)) { this.tox += 1 * power; } if (!_root.WorldHitTest(this._x + _root.game._x - 5, this._y + _root.game._y, true)) { this.tox -= 1 * power; } this.spawned = false; this.undertime = 0; this._alpha = 100; this.onEnterFrame = function () { this._x += this.tox * _root.steps / 2; this._y += this.toy * _root.steps / 2; this.toy += _root.gravity * _root.steps; this._xscale = _root.Dist2D(this.tox, this.toy, 0, 0) * 200 + 100; this._rotation = (-Math.atan2(this.tox, this.toy) / Math.PI) * 180 + 90; if (this.spawned) { if (_root.WorldHitTest(this._x + _root.game._x, this._y + _root.game._y, true)) { this._xscale = 200; this._yscale = 200; this.onEnterFrame = function () { if (this._alpha > 0) { this._alpha -= 5; } else { this.onEnterFrame = function () {}; } }; } } else { if (!_root.WorldHitTest(this._x + _root.game._x, this._y + _root.game._y, true) || this.undertime > 5) { this.spawned = true; } else { ++this.undertime; } } }; } } } movieClip 111 { } movieClip 113 { } movieClip 116 { } movieClip 117 { frame 1 { this._visible = false; this.stop(); this.onEnterFrame = function () { if (Math.abs(_root.ax[0] - this._x) < 40) { if (this.hitTest(_root.ax[0] + _root.game._x, _root.ay[0] + _root.game._y, false)) { if (_root.hea > 0) { if (_root.my_so.data.x != this._x || _root.my_so.data.y != this._y || _root.hea > _root.my_so.data.hea) { _root.my_so.data.hea = _root.hea; _root.my_so.data.x = this._x; _root.my_so.data.y = this._y; _root.my_so.data.totaldrunk = _root.totaldrunk; this._visible = true; this.gotoAndPlay(2); } } } } }; } frame 2 { this._visible = true; this.onEnterFrame = 0; } frame 61 { this.stop(); } } movieClip 119 { } movieClip 122 { } movieClip 125 { } movieClip 133 { frame 1 { this.stop(); } frame 2 { this.gotoAndStop(1); } frame 3 { this.gotoAndStop(1); } frame 4 { this.gotoAndStop(1); } frame 5 { this.gotoAndStop(1); } frame 6 { this.gotoAndStop(1); } } frame 5 { gaction = 0; _root.rise.onRelease = function () { gaction = 1; }; _root.onEnterFrame = function () { if (gaction == 0) { if (_root.fg2._alpha > 0) { _root.fg2._alpha -= 2; _root.fg2._visible = true; } else { _root.fg2._visible = false; gaction = -1; } } if (gaction == 1) { if (_root.fg2._alpha < 100) { _root.fg2._alpha += 2; _root.fg2._visible = true; } else { _root.gotoAndStop(2); gaction = -1; } } }; } frame 6 { gaction = 0; _root.rise.onRelease = function () { gaction = 1; }; _root.onEnterFrame = function () { if (gaction == 0) { if (_root.fg2._alpha > 0) { _root.fg2._alpha -= 2; _root.fg2._visible = true; } else { _root.fg2._visible = false; gaction = -1; } } if (gaction == 1) { if (_root.fg2._alpha < 100) { _root.fg2._alpha += 2; _root.fg2._visible = true; } else { _root.gotoAndStop(2); gaction = -1; } } }; }




http://swfchan.com/49/244294/info.shtml
Created: 8/2 -2022 03:44:19 Last modified: 8/2 -2022 03:44:19 Server time: 22/12 -2024 19:28:26