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

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

1226425507168.swf

This is the info page for
Flash #43800

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


ActionScript [AS1/AS2]
Combined Code
movieClip 25 lineseg { } button 27 { on (release) { if (_root.sound_n == 1) { } else { var my1 = new Sound(); my1.attachSound('1'); my1.setVolume(30); my1.start(); } } on (release) { if (_parent.nom - 1 > _parent['s' + h[1]].n) { } else { if (_parent.nom >= 8) { _parent.al._visible = true; } else { _parent.al._visible = false; } var h = String(this); var h = h.split('g'); if (hs == 1) { if (_parent['s' + h[1]].n + 1 == Number(_parent.nom)) { hs = 0; _parent['s' + h[1]].gotoAndStop(1); _parent['s' + h[1]].n = ''; --_parent.nom; _parent.al._visible = false; var l = _parent.m_gas; var l = l.split(','); i = 0; while (i < l.length) { if (l[i] == '1') { l.splice(i, 1); _parent.m_gas = l; } ++i; } } } else { _parent['s' + h[1]].gotoAndStop(2); _parent['s' + h[1]].n = _parent.nom; f = _parent['s' + h[1]].n; ++_parent.nom; _parent.m_gas += '1,'; hs = 1; } } } } movieClip 29 { } movieClip 30 d1 { frame 1 { stop(); s = 0; onEnterFrame = function () { ++s; if (s == po) { play(); } }; } frame 5 { stop(); var my_sounds1 = new Sound(); my_sounds1.attachSound('1'); my_sounds1.setVolume(30); my_sounds1.start(); } frame 6 { gotoAndPlay(5); } } movieClip 32 { } button 33 { on (release) { if (_root.sound_n == 1) { } else { var my_sounds = new Sound(); my_sounds.attachSound('2'); my_sounds.start(); } } on (release) { if (_parent.nom - 1 > _parent['s' + h[1]].n) { } else { if (_parent.nom >= 8) { _parent.al._visible = true; } else { _parent.al._visible = false; } var h = String(this); var h = h.split('g'); if (hs == 1) { if (_parent['s' + h[1]].n + 1 == Number(_parent.nom)) { hs = 0; _parent['s' + h[1]].gotoAndStop(1); _parent['s' + h[1]].n = ''; --_parent.nom; _parent.al._visible = false; var l = _parent.m_gas; var l = l.split(','); i = 0; while (i < l.length) { if (l[i] == '2') { l.splice(i, 1); _parent.m_gas = l; } ++i; } } } else { _parent['s' + h[1]].gotoAndStop(2); _parent['s' + h[1]].n = _parent.nom; f = _parent['s' + h[1]].n; ++_parent.nom; _parent.m_gas += '2,'; hs = 1; } trace(_parent.m_gas); } } } movieClip 34 d2 { frame 1 { stop(); s = 0; onEnterFrame = function () { ++s; if (s == po) { play(); } }; } frame 5 { stop(); var my_sounds2 = new Sound(); my_sounds2.attachSound('2'); my_sounds2.setVolume(30); my_sounds2.start(); } frame 6 { gotoAndPlay(5); } } movieClip 36 { } button 37 { on (release) { if (_parent.nom - 1 > _parent['s' + h[1]].n) { } else { if (_parent.nom >= 8) { _parent.al._visible = true; } else { _parent.al._visible = false; } var h = String(this); var h = h.split('g'); if (hs == 1) { if (_parent['s' + h[1]].n + 1 == Number(_parent.nom)) { hs = 0; _parent['s' + h[1]].gotoAndStop(1); _parent['s' + h[1]].n = ''; --_parent.nom; _parent.al._visible = false; var l = _parent.m_gas; var l = l.split(','); i = 0; while (i < l.length) { if (l[i] == '3') { l.splice(i, 1); _parent.m_gas = l; } ++i; } } } else { _parent['s' + h[1]].gotoAndStop(2); _parent['s' + h[1]].n = _parent.nom; f = _parent['s' + h[1]].n; ++_parent.nom; _parent.m_gas += '3,'; hs = 1; } trace(_parent.m_gas); } } on (release) { if (_root.sound_n == 1) { } else { var my_sounds = new Sound(); my_sounds.attachSound('3'); my_sounds.start(); } } } movieClip 38 d3 { frame 1 { stop(); s = 0; onEnterFrame = function () { ++s; if (s == po) { play(); } }; } frame 5 { stop(); var my_sounds3 = new Sound(); my_sounds3.attachSound('3'); my_sounds3.setVolume(30); my_sounds3.start(); } frame 6 { gotoAndPlay(5); } } movieClip 40 { } button 41 { on (release) { if (_parent.nom - 1 > _parent['s' + h[1]].n) { } else { if (_parent.nom >= 8) { _parent.al._visible = true; } else { _parent.al._visible = false; } var h = String(this); var h = h.split('g'); if (hs == 1) { if (_parent['s' + h[1]].n + 1 == Number(_parent.nom)) { hs = 0; _parent['s' + h[1]].gotoAndStop(1); _parent['s' + h[1]].n = ''; --_parent.nom; _parent.al._visible = false; var l = _parent.m_gas; var l = l.split(','); i = 0; while (i < l.length) { if (l[i] == '4') { l.splice(i, 1); _parent.m_gas = l; } ++i; } } } else { _parent['s' + h[1]].gotoAndStop(2); _parent['s' + h[1]].n = _parent.nom; f = _parent['s' + h[1]].n; ++_parent.nom; _parent.m_gas += '4,'; hs = 1; } trace(_parent.m_gas); } } on (release) { if (_root.sound_n == 1) { } else { var my_sounds = new Sound(); my_sounds.attachSound('4'); my_sounds.start(); } } } movieClip 42 d4 { frame 1 { stop(); s = 0; onEnterFrame = function () { ++s; if (s == po) { play(); } }; } frame 5 { stop(); var my_sounds4 = new Sound(); my_sounds4.attachSound('4'); my_sounds4.setVolume(30); my_sounds4.start(); } frame 6 { gotoAndPlay(5); } } movieClip 44 { } button 45 { on (release) { if (_parent.nom - 1 > _parent['s' + h[1]].n) { } else { if (_parent.nom >= 8) { _parent.al._visible = true; } else { _parent.al._visible = false; } var h = String(this); var h = h.split('g'); if (hs == 1) { if (_parent['s' + h[1]].n + 1 == Number(_parent.nom)) { hs = 0; _parent['s' + h[1]].gotoAndStop(1); _parent['s' + h[1]].n = ''; --_parent.nom; _parent.al._visible = false; var l = _parent.m_gas; var l = l.split(','); i = 0; while (i < l.length) { if (l[i] == '5') { l.splice(i, 1); _parent.m_gas = l; } ++i; } } } else { _parent['s' + h[1]].gotoAndStop(2); _parent['s' + h[1]].n = _parent.nom; f = _parent['s' + h[1]].n; ++_parent.nom; _parent.m_gas += '5,'; hs = 1; } trace(_parent.m_gas); } } on (release) { if (_root.sound_n == 1) { } else { var my_sounds = new Sound(); my_sounds.attachSound('5'); my_sounds.start(); } } } movieClip 46 d5 { frame 1 { stop(); s = 0; onEnterFrame = function () { ++s; if (s == po) { play(); } }; } frame 5 { stop(); var my_sounds5 = new Sound(); my_sounds5.attachSound('5'); my_sounds5.setVolume(30); my_sounds5.start(); } frame 6 { gotoAndPlay(5); } } movieClip 48 { } button 49 { on (release) { if (_parent.nom - 1 > _parent['s' + h[1]].n) { } else { if (_parent.nom >= 8) { _parent.al._visible = true; } else { _parent.al._visible = false; } var h = String(this); var h = h.split('g'); if (hs == 1) { if (_parent['s' + h[1]].n + 1 == Number(_parent.nom)) { hs = 0; _parent['s' + h[1]].gotoAndStop(1); _parent['s' + h[1]].n = ''; --_parent.nom; _parent.al._visible = false; var l = _parent.m_gas; var l = l.split(','); i = 0; while (i < l.length) { if (l[i] == '6') { l.splice(i, 1); _parent.m_gas = l; } ++i; } } } else { _parent['s' + h[1]].gotoAndStop(2); _parent['s' + h[1]].n = _parent.nom; f = _parent['s' + h[1]].n; ++_parent.nom; _parent.m_gas += '6,'; hs = 1; } trace(_parent.m_gas); } } on (release) { if (_root.sound_n == 1) { } else { var my_sounds = new Sound(); my_sounds.attachSound('6'); my_sounds.start(); } } } movieClip 50 d6 { frame 1 { stop(); s = 0; onEnterFrame = function () { ++s; if (s == po) { play(); } }; } frame 5 { stop(); var my_sounds6 = new Sound(); my_sounds6.attachSound('6'); my_sounds6.setVolume(30); my_sounds6.start(); } frame 6 { gotoAndPlay(5); } } movieClip 52 { } button 53 { on (release) { if (_parent.nom - 1 > _parent['s' + h[1]].n) { } else { if (_parent.nom >= 8) { _parent.al._visible = true; } else { _parent.al._visible = false; } var h = String(this); var h = h.split('g'); if (hs == 1) { if (_parent['s' + h[1]].n + 1 == Number(_parent.nom)) { hs = 0; _parent['s' + h[1]].gotoAndStop(1); _parent['s' + h[1]].n = ''; --_parent.nom; var l = _parent.m_gas; _parent.al._visible = false; var l = l.split(','); i = 0; while (i < l.length) { if (l[i] == '7') { l.splice(i, 1); _parent.m_gas = l; } ++i; } } } else { _parent['s' + h[1]].gotoAndStop(2); _parent['s' + h[1]].n = _parent.nom; f = _parent['s' + h[1]].n; ++_parent.nom; _parent.m_gas += '7,'; hs = 1; } trace(_parent.m_gas); } } on (release) { if (_root.sound_n == 1) { } else { var my_sounds = new Sound(); my_sounds.attachSound('7'); my_sounds.start(); } } } movieClip 54 d7 { frame 1 { stop(); s = 0; onEnterFrame = function () { ++s; if (s == po) { play(); } }; } frame 5 { stop(); var my_sounds7 = new Sound(); my_sounds7.attachSound('7'); my_sounds7.setVolume(30); my_sounds7.start(); } frame 6 { gotoAndPlay(5); } } movieClip 56 { } button 57 { on (release) { if (_parent.nom - 1 > _parent['s' + h[1]].n) { } else { if (_parent.nom >= 8) { _parent.al._visible = true; } else { _parent.al._visible = false; } var h = String(this); var h = h.split('g'); if (hs == 1) { if (_parent['s' + h[1]].n + 1 == Number(_parent.nom)) { hs = 0; _parent['s' + h[1]].gotoAndStop(1); _parent['s' + h[1]].n = ''; --_parent.nom; _parent.al._visible = false; var l = _parent.m_gas; var l = l.split(','); i = 0; while (i < l.length) { if (l[i] == '8') { l.splice(i, 1); _parent.m_gas = l; } ++i; } } } else { _parent['s' + h[1]].gotoAndStop(2); _parent['s' + h[1]].n = _parent.nom; f = _parent['s' + h[1]].n; ++_parent.nom; _parent.m_gas += '8,'; hs = 1; } trace(_parent.m_gas); } } on (release) { if (_root.sound_n == 1) { } else { var my_sounds = new Sound(); my_sounds.attachSound('8'); my_sounds.start(); } } } movieClip 58 d0 { frame 1 { stop(); s = 0; onEnterFrame = function () { ++s; if (s == po) { play(); } }; } frame 5 { stop(); var my_sounds8 = new Sound(); my_sounds8.attachSound('8'); my_sounds8.setVolume(30); my_sounds8.start(); } frame 6 { gotoAndPlay(5); } } movieClip 59 d { } movieClip 146 sekretar { frame 318 { gotoAndPlay(301); } } movieClip 210 manager0 { frame 175 { gotoAndPlay(160); } } movieClip 317 buhgalter { frame 431 { gotoAndPlay(425); } } movieClip 407 hugo_boss { frame 224 { stop(); } } movieClip 412 { frame 1 { stop(); } frame 2 { stop(); } } // unknown tag 88 length 63 movieClip 436 { frame 1 { io = 'sekretar'; } frame 2 { io = 'menedger'; } frame 3 { io = 'local'; } frame 4 { io = 'S'; } frame 5 { io = 'S'; } frame 6 { io = 'S'; } frame 7 { io = 'S'; } frame 8 { io = 'S'; } frame 9 { io = 'S'; } frame 10 { io = 'S'; } frame 11 { io = 'S'; } } movieClip 437 cable { frame 1 { function InitCable() { pts_x = new Array(nseg + 1); pts_y = new Array(nseg + 1); pts_vx = new Array(nseg + 1); pts_vy = new Array(nseg + 1); i = 0; while (i < nseg) { attachMovie('lineseg', 's' + i, 100 + i); ++i; } i = 0; while (i < nseg + 1) { pts_x[i] = jack._x + unplugged_ofs_x; pts_y[i] = jack._y + unplugged_ofs_y + i * seglen; pts_vx[i] = 0; pts_vy[i] = 0; ++i; } deflen = this.s0._width; doUpdate = false; sndPlugIn = new Sound(); sndPlugIn.attachSound('plugin'); sndPlugOut = new Sound(); sndPlugOut.attachSound('plugout'); jack.gotoAndStop(1); jack.onPress = TakeCable; jack.onRelease = DropCable; jack.onReleaseOutside = DropCable; pluggedInto = -1; curve = Math.random() * maxCurve; label.swapDepths(1000); } function TakeCable() { if (label.io == 'local') { return undefined; } if (this._currentframe == 2) { _parent['socket' + pluggedInto].occupied = false; sndPlugOut.start(); _parent['socket' + pluggedInto].s.gotoAndStop(1); _root.m -= 1; var v6 = new Sound(this); v6.attachSound('plugout'); v6.start(); if (label.io == 'sekretar') { _global.sekrsw1.gotoAndStop(2); _root.s = 0; } else { if (label.io == 'menedger') { this._parent._parent._parent.pers.gotoAndStop(2); _global.man_sw1.gotoAndStop(2); } } } this.gotoAndStop(1); this._parent.swapDepths(1000); var v5 = {'x': 0, 'y': 0}; v5.x = _parent._parent.bg._x + 20; v5.y = _parent._parent.bg._y + 40; _parent._parent.localToGlobal(v5); this._parent.globalToLocal(v5); var v8 = _parent._parent.bg._width - 50; var v7 = _parent._parent.bg._height - 50; this.startDrag(true, v5.x, v5.y, v5.x + v8, v5.y + v7); doUpdate = true; UpdateSegments(); _parent.onEnterFrame = UpdateSegments; } function DropCable() { var v12 = 0; var v11 = 1000000; var v14; var v13; var v9; var v7; var v6; var v8; var v5 = {'x': 0, 'y': 0}; var v10 = {'x': 0, 'y': 0}; v10.x = this._parent._x + this._x; v10.y = this._parent._y + this._y + jack_hotspot_ofs_y; i = 0; for (;;) { v8 = _parent['socket' + i]; if (v8 == undefined) { break; } v5.x = v8._x; v5.y = v8._y; v7 = v10.x - v5.x; v6 = v10.y - v5.y; v9 = v7 * v7 + v6 * v6; if (v9 < v11) { v11 = v9; v14 = v7; v13 = v6; v12 = i; } ++i; } if (Math.abs(v13) < jack_hit_dy && Math.abs(v14) < jack_hit_dx && _parent['socket' + v12].occupied != true) { _root.m += 1; var v15 = new Sound(this); v15.attachSound('plugin'); v15.start(); this._parent.swapDepths(500 - v12); this.gotoAndStop(2); sndPlugIn.start(); this._x -= v14; this._y -= v13; pluggedInto = v12; _parent['socket' + pluggedInto].s.gotoAndStop(2); _parent['socket' + pluggedInto].occupied = true; if (label.io == 'sekretar') { _root.s = 1; _global.sekrsw1.gotoAndStop(1); } else { if (label.io == 'menedger') { this._parent._parent._parent.pers.gotoAndStop(1); _global.man_sw1.gotoAndStop(1); } } } this.stopDrag(); doUpdate = false; if (_root.m == 10 && _root.s != 1) { _global.zzz8 = true; _global.swww1.play(); trace(111); } } function UpdateSegments() { pts_x[0] = jack._x; pts_y[0] = jack._y; if (jack._currentframe == 1) { pts_x[0] += unplugged_ofs_x; pts_y[0] += unplugged_ofs_y; } else { pts_x[0] += pluggedin_ofs_x; pts_y[0] += pluggedin_ofs_y; } var v3 = 0; var v2 = 0; i = 1; while (i < nseg + 1) { pts_vx[i] = k_inertia * pts_vx[i] + k_elastic * (pts_x[i - 1] + curve * i * i - pts_x[i]); pts_vy[i] = k_inertia * pts_vy[i] + k_elastic * (pts_y[i - 1] + seglen - pts_y[i]); pts_x[i] += pts_vx[i]; pts_y[i] += pts_vy[i]; v2 = Math.sqrt(pts_vx[i] * pts_vx[i] + pts_vy[i] * pts_vy[i]); if (v2 > v3) { v3 = v2; } ++i; } PositionSegments(); if (v3 < 1 && doUpdate == false) { delete this.onEnterFrame; } } function PositionSegments() { i = 0; while (i < nseg) { this['s' + i]._x = pts_x[i]; this['s' + i]._y = pts_y[i]; var v3 = pts_x[i + 1] - pts_x[i]; var v2 = pts_y[i + 1] - pts_y[i]; var v5 = Math.sqrt(v3 * v3 + v2 * v2); var v4 = Math.atan2(v2, v3); if (i == 2) { label._x = pts_x[i]; label._y = pts_y[i]; label._rotation = 180 * v4 / Math.PI; } this['s' + i]._xscale = 100 * v5 / deflen; this['s' + i]._rotation = 180 * v4 / Math.PI; ++i; } } function dc() { var v12 = 0; var v11 = 1000000; var v14; var v13; var v9; var v7; var v6; var v8; var v5 = {'x': 0, 'y': 0}; var v10 = {'x': 0, 'y': 0}; v10.x = jack._parent._x + jack._x; v10.y = jack._parent._y + jack._y + jack_hotspot_ofs_y; i = 0; for (;;) { v8 = _parent['socket' + i]; if (v8 == undefined) { break; } v5.x = v8._x; v5.y = v8._y; v7 = v10.x - v5.x; v6 = v10.y - v5.y; v9 = v7 * v7 + v6 * v6; if (v9 < v11) { v11 = v9; v14 = v7; v13 = v6; v12 = i; } ++i; } if (Math.abs(v13) < jack_hit_dy && Math.abs(v14) < jack_hit_dx && _parent['socket' + v12].occupied != true) { jack._parent.swapDepths(500 - v12); jack.gotoAndStop(2); sndPlugIn.start(); jack._x -= v14; jack._y -= v13; pluggedInto = v12; _parent['socket' + pluggedInto].s.gotoAndStop(2); _parent['socket' + pluggedInto].occupied = true; if (label.io == 'sekretar') { _root.s = 1; _root.sekretar.gotoAndStop(1); _global.sekrsw1.gotoAndStop(1); } else { if (label.io == 'menedger') { this._parent._parent._parent.pers.gotoAndStop(1); _global.man_sw1.gotoAndStop(1); } } } UpdateSegments(); } nseg = 20; seglen = 20; k_elastic = 0.6; k_inertia = 0.2; maxCurve = 0.04; unplugged_ofs_x = 0; unplugged_ofs_y = 28; pluggedin_ofs_x = -10; pluggedin_ofs_y = 7; jack_hotspot_ofs_y = -10; jack_hit_dx = 20; jack_hit_dy = 40; InitCable(); PositionSegments(); stop(); onEnterFrame = function () { if (label.io == 'sekretar') { _root.sekretar.gotoAndStop(1); _global.sekrsw1.gotoAndStop(1); dc(); delete onEnterFrame; } else { if (label.io == 'menedger') { this._parent._parent._parent.pers.gotoAndStop(1); _global.man_sw1.gotoAndStop(1); dc(); delete onEnterFrame; } else { dc(); delete onEnterFrame; } } }; } } button 440 { on (press) { startDrag(this, true, left, top, right, bottom); } on (release, releaseOutside) { stopDrag(); } } movieClip 441 volume slider { } movieClip 442 volume { instance slider of movieClip 441 volume slider { onClipEvent (load) { if (_global.ist != true) { _global.ist = true; xvol = Math.round(this._x); left = this._x - 72; right = this._x; _global.xvol_g = xvol; _global.left_g = left; _global.right_g = right; } else { this._x = _global.xvol_g; xvol = _global.xvol_g; left = _global.left_g; right = _global.right_g; } } onClipEvent (enterFrame) { if (_global.sndcheck != false) { xvol = Math.round(this._x); _root.alpha = xvol * 3; _root.mys7.setVolume(_root.alpha); if (xvol > 100) { xvol = 100; } } else { _root.mys7.setVolume(0); } } } } movieClip 449 BoundingBox { } movieClip 451 CheckFalseDisabled { } movieClip 453 CheckThemeColor1 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 455 CheckFalseDown { } movieClip 456 CheckFalseOver { } movieClip 458 CheckFalseUp { } movieClip 460 CheckTrueDisabled { } movieClip 461 CheckTrueDown { } movieClip 462 CheckTrueOver { } movieClip 463 CheckTrueUp { } movieClip 464 CheckBoxAssets { #initclip mx.controls.CheckBox.prototype.adjustFocusRect = function () { var v4 = this._parent.focus_mc; var v2 = this.iconName; var v3 = this.getStyle('themeColor'); if (v3 == undefined) { v3 = 8453965; } var v8 = v2._width + 4; var v5 = v2._height + 4; v4.setSize(v8, v5, 0, 100, v3); var v7 = v2._x; var v6 = v2._y; v4.move(this.x - 2 + v7, this.y + v6 - 2); }; #endinitclip frame 1 { } } movieClip 466 BrdrShdw { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'shadowColor'); } } movieClip 468 BrdrFace { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'buttonColor'); } } movieClip 469 SimpleButtonDown { } movieClip 471 BrdrBlk { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'borderColor'); } } movieClip 473 BrdrHilght { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'highlightColor'); } } movieClip 474 SimpleButtonIn { } movieClip 475 SimpleButtonUp { } movieClip 476 Defaults { #initclip Object.registerClass('Defaults', mx.skins.halo.Defaults); #endinitclip } movieClip 477 UIObjectExtensions { #initclip Object.registerClass('UIObjectExtensions', mx.core.ext.UIObjectExtensions); #endinitclip } movieClip 478 UIObject { #initclip Object.registerClass('UIObject', mx.core.UIObject); #endinitclip frame 1 { stop(); } } button 481 { on (keyPress '<Tab>') { this.tabHandler(); } } movieClip 482 { #initclip Object.registerClass('FocusManager', mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, 'focusManager', mx.managers.DepthManager.highestDepth--); } #endinitclip frame 1 { } } movieClip 483 FocusRect { #initclip Object.registerClass('FocusRect', mx.skins.halo.FocusRect); #endinitclip } movieClip 484 FocusManager { #initclip Object.registerClass('FocusManager', mx.managers.FocusManager); #endinitclip frame 1 { stop(); } } movieClip 485 UIComponentExtensions { #initclip Object.registerClass('UIComponentExtensions', mx.core.ext.UIComponentExtensions); #endinitclip } movieClip 486 UIComponent { #initclip Object.registerClass('UIComponent', mx.core.UIComponent); #endinitclip frame 1 { stop(); } } movieClip 487 SimpleButton { #initclip Object.registerClass('SimpleButton', mx.controls.SimpleButton); #endinitclip frame 1 { stop(); } } movieClip 488 Border { #initclip Object.registerClass('Border', mx.skins.Border); #endinitclip frame 1 { stop(); } } movieClip 489 RectBorder { #initclip mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder)); Object.registerClass('RectBorder', mx.skins.halo.RectBorder); #endinitclip frame 1 { stop(); } } movieClip 490 ButtonSkin { #initclip Object.registerClass('ButtonSkin', mx.skins.halo.ButtonSkin); #endinitclip } movieClip 491 Button { #initclip Object.registerClass('Button', mx.controls.Button); #endinitclip frame 1 { stop(); } instance of movieClip 487 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 492 CheckBox { #initclip Object.registerClass('CheckBox', mx.controls.CheckBox); #endinitclip frame 1 { stop(); } instance of movieClip 491 Button { onClipEvent (initialize) { icon = ''; label = 'Button'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } frame 1 { stop(); _root._focusrect = false; _root.tabEnabled = false; _root.tabChildren = false; _global.schem_num = 1; } frame 1 { stop(); _root._focusrect = false; _root.tabEnabled = false; _global.schem_num = 1; } frame 1 { stick._visible = false; var my_cm = new ContextMenu(); my_cm.hideBuiltInItems(); this.menu = my_cm; } movieClip 551 { frame 1 { _root.lds = 1; } frame 61 { _root.lds = 0; } frame 510 { gotoAndPlay(73); } } movieClip 559 { } movieClip 560 { frame 1 { bl = _parent.getBytesLoaded(); bt = _parent.getBytesTotal(); _xscale = 100 - 100 * (bl / bt); mk = Math.round(100 * (bl / bt)); _parent.mk = Number(mk) + '%'; if (bt == bl) { if (_root.lds == 0) { _parent.gotoAndStop(2); } else {} } } frame 2 { gotoAndPlay(1); } } movieClip 565 { } button 567 { on (release) { _global.sndcheck = false; gotoAndStop(2); } } button 568 { on (release) { _global.sndcheck = true; gotoAndStop(1); } } movieClip 569 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 570 { frame 1 { stop(); trace('snd 1 frame'); trace(_global.ssss); trace(this); if (_global.ssss != undefined and _global.ssss != this) { this._y = -5000; this.unloadMovie(); this.removeMovieClip; _global.ssss._visible = true; } else { _global.ssss = this; this._visible = false; } } } movieClip 2674 __Packages.gameDriver { #initclip if (!_global.gameDriver) { var v1 = function () {}; _global.gameDriver = v1; var v2 = v1.prototype; v1.endOfLevel = function (levnum) { if (levnum == 1) { _root.gotoAndStop(31); _root.blok.gotoAndStop(1); _root.blok.ko.gotoAndPlay(1); gameDriver.etap = 'one2'; } else { if (levnum == 2) { gameDriver.etap = 'two2'; _root.blok.gotoAndStop(1); _root.blok.ko.gotoAndPlay(1); _global.phone.nowplay = 60; var v5 = _root.createEmptyMovieClip('timer', _root.getNextHighestDepth()); v5.it = 0; v5.onEnterFrame = function () { ++this.it; if (this.it > 200) { _root.nextFrame(); delete this.onEnterFrame; this.removeMovieClip(); } }; } else { if (levnum == 3) { gameDriver.etap = 'three2'; _global.avir = true; _root.createEmptyMovieClip('nzv', _root.getNextHighestDepth()); var v6 = new Sound(_root.nzv); v6.attachSound('zvuk_new_zadan'); v6.start(); _root.schema_perehod._visible = true; _root.schema_perehod.gotoAndPlay(2); } else { if (levnum == 4) { gameDriver.etap = 'four2'; _global.nowPhone._visible = false; _global.nowPhone._y -= 100; _root.gotoAndStop(36); _root.blok.gotoAndStop(1); _root.blok.ko.gotoAndPlay(1); } else { if (levnum == 5) { gameDriver.etap = 'five2'; _root.gotoAndStop(38); _root.blok.gotoAndStop(1); _root.blok.ko.gotoAndPlay(1); } else { if (levnum == 6) { gameDriver.etap = 'six2'; _global.gteln._visible = false; _global.gteln._y = -5000; _root.gotoAndStop(40); } } } } } } gameDriver.nowLevel = levnum + 1; Console.level = gameDriver.nowLevel; }; v1.nowLevel = 1; v1.etap = 'zero'; ASSetPropFlags(_global.gameDriver.prototype, null, 1); } #endinitclip } movieClip 2675 __Packages.Console { #initclip if (!_global.Console) { var v1 = function (movie) { this.nowPath = '/home/admin/'; this._bounds = new Object(); this._bounds.width = 440; this._bounds.height = 270; this.canva = movie; this.startText = 'admin@admin~ '; this.commands = new ConsoleCommands(); this.keybord = new keybordProcessor(); this.processor = new commandProcessor(this); this.keybord.console = this; this.tNorm = new TextFormat(); this.tSel = new TextFormat(); this.tNorm.color = 16777215; this.tNorm.font = 'Courier'; this.tNorm.size = 11; this.tSel.color = 0; this.tSel.font = 'Courier'; this.tSel.size = 11; this.nowSymbolIndex = 0; this.baseX = 5; this.baseY = 5; this.nowX = this.baseX; this.nowY = this.baseY; this.letterArray = new Array(); this.msk = this.canva.createEmptyMovieClip('msk', this.canva.getNextHighestDepth()); this.msk.beginFill(0); this.msk.moveTo(0, 0); this.msk.lineTo(this._bounds.width, 0); this.msk.lineTo(this._bounds.width, this._bounds.height); this.msk.lineTo(0, this._bounds.height); this.msk.lineTo(0, 0); this.msk.endFill(); this.canva.setMask(this.msk); this.canva.createEmptyMovieClip('ground', this.canva.getNextHighestDepth()); this.canva.ground.beginFill(0); this.canva.ground.moveTo(0, 0); this.canva.ground.lineTo(this._bounds.width, 0); this.canva.ground.lineTo(this._bounds.width, this._bounds.height); this.canva.ground.lineTo(0, this._bounds.height); this.canva.ground.lineTo(0, 0); this.canva.ground.endFill(); this.parent = this.canva.createEmptyMovieClip('parent', this.canva.getNextHighestDepth()); this.selection = this.parent.createEmptyMovieClip('sel', this.parent.getNextHighestDepth()); this.selection.beginFill(43520); this.selection.moveTo(1, 2); this.selection.lineTo(9, 2); this.selection.lineTo(9, 15); this.selection.lineTo(1, 15); this.selection.lineTo(1, 2); this.selection.endFill(); var v2 = this.parent.createTextField('lead', this.parent.getNextHighestDepth(), this.nowX, this.nowY, 30, 10); v2.autoSize = true; v2.setNewTextFormat(this.tNorm); v2.text = this.startText; v2.selectable = false; this.nowX += v2._width; this.leadWidth = v2._width; this.selection._x = this.nowX; this.selection._y = this.nowY; this.setKeyboardListener(); }; _global.Console = v1; var v2 = v1.prototype; v2.setBounds = function (wdt, hght) { this._bounds = new Object(); this._bounds.width = wdt; this._bounds.height = hght; }; v2.removeNowLine = function () { var v2 = 0; while (v2 < this.letterArray.length) { this.letterArray[v2].removeTextField(); ++v2; } this.letterArray = new Array(); this.nowX = this.baseX + this.leadWidth; this.selection._x = this.nowX; this.nowSymbolIndex = 0; }; v2.setSystemAnswer = function (str) { this.nowY += 15; this.nowX = this.baseX; var v2 = this.parent.createTextField('ans' + this.parent.getNextHighestDepth(), this.parent.getNextHighestDepth(), this.nowX, this.nowY, 430, 15); v2.setNewTextFormat(this.tNorm); v2.wordWrap = true; v2.multiline = true; v2.selectable = false; v2.text = str; v2.autoSize = true; this.nowY = v2._y + v2._height - 15; if (this.parent._height > this._bounds.height - 5) { this.parent._y = this._bounds.height - this.parent._height - 5; } }; v2.onMan = function () { this.parent._y -= this._bounds.height; if (this.parent._y + this.parent._height < this._bounds.height - 5) { this.keybord.behavior = keybordProcessor.TYPE; this.parent._y = this._bounds.height - this.parent._height - 5; this.closeRow(); } }; v2.setSystemAnswerMan = function (str) { this.nowY += 15; this.nowX = this.baseX; var v2 = this.parent.createTextField('ans' + this.parent.getNextHighestDepth(), this.parent.getNextHighestDepth(), this.nowX, this.nowY, 430, 15); v2.setNewTextFormat(this.tNorm); v2.wordWrap = true; v2.multiline = true; v2.selectable = false; v2.text = str; v2.autoSize = true; this.nowY = v2._y + v2._height - 15; this.parent._y = -this.parent._height + v2._height - 5; this.keybord.behavior = keybordProcessor.MAN; if (this.parent._y + this.parent._height < this._bounds.height - 5) { this.keybord.behavior = keybordProcessor.TYPE; this.parent._y = this._bounds.height - this.parent._height - 5; this.closeRow(); } }; v2.setSystemAnswerAnim = function (str) { this.nowY += 15; this.nowX = this.baseX; var v2 = this.parent.createTextField('ans' + this.parent.getNextHighestDepth(), this.parent.getNextHighestDepth(), this.nowX, this.nowY, 10, 15); v2.setNewTextFormat(this.tNorm); v2.multiline = true; v2.selectable = false; v2.text = str; v2.autoSize = true; this.nowX += v2._width; this.selection._x = this.nowX; this.selection._y = this.nowY; if (this.parent._height > this._bounds.height - 5) { this.parent._y = this._bounds.height - this.parent._height - 5; } }; v2.setSystemSymbolAnim = function (str) { var v2 = this.parent.createTextField('ans' + this.parent.getNextHighestDepth(), this.parent.getNextHighestDepth(), this.nowX, this.nowY, 10, 15); v2.setNewTextFormat(this.tNorm); v2.multiline = true; v2.selectable = false; v2.text = str; v2.autoSize = true; this.nowX = this.nowX + v2._width - 4; this.selection._x = this.nowX; this.selection._y = this.nowY; if (this.parent._height > this._bounds.height - 5) { this.parent._y = this._bounds.height - this.parent._height - 5; } }; v2.setNowLine = function (str) { var v3 = 0; while (v3 < str.length) { var v2 = this.parent.createTextField('l' + this.parent.getNextHighestDepth(), this.parent.getNextHighestDepth(), this.nowX, this.nowY, 9, 15); v2.setNewTextFormat(this.tNorm); v2.text = str.charAt(v3); v2.selectable = false; v2.autoSize = true; this.nowX += v2._width - 4; this.letterArray.push(v2); this.selection._x = this.nowX + 1; ++this.nowSymbolIndex; ++v3; } }; v2.deleteSymbol = function (symbolIndex) { if (this.letterArray.length > 0) { if (symbolIndex < this.nowSymbolIndex) { if (symbolIndex >= 0) { var v4 = this.letterArray.splice(symbolIndex, 1); var v5 = v4[0]; v5.removeTextField(); --this.nowSymbolIndex; this.nowX = this.baseX + this.leadWidth; if (this.letterArray[0]._y != undefined) { this.nowY = this.letterArray[0]._y; } var v2 = 0; while (v2 < this.letterArray.length) { this.letterArray[v2]._x = this.nowX; this.nowX += this.letterArray[v2]._width - 4; if (this.nowX > this._bounds.width - 9) { this.nowY += 15; this.nowX = this.baseX; } ++v2; } this.letterArray[this.nowSymbolIndex].setTextFormat(this.tSel); if (this.letterArray[this.nowSymbolIndex]._x != undefined) { this.selection._x = this.letterArray[this.nowSymbolIndex]._x + 1; this.selection._y = this.letterArray[this.nowSymbolIndex]._y; } else { this.selection._x = this.nowX; this.selection._y = this.nowY; } } } else { if (symbolIndex < this.letterArray.length) { var v4 = this.letterArray.splice(symbolIndex, 1); var v5 = v4[0]; v5.removeTextField(); this.nowX = this.baseX + this.leadWidth; if (this.letterArray[0]._y != undefined) { this.nowY = this.letterArray[0]._y; } var v2 = 0; while (v2 < this.letterArray.length) { this.letterArray[v2]._x = this.nowX; this.letterArray[v2]._y = this.nowY; this.nowX += this.letterArray[v2]._width - 4; if (this.nowX > this._bounds.width - 9) { this.nowY += 15; this.nowX = this.baseX; } ++v2; } this.letterArray[this.nowSymbolIndex].setTextFormat(this.tSel); } } } }; v2.changeServer = function (srv) { if (srv == 'serv1') { Console.levelNowServer = 'serv1'; this.startText = 'adm@serv1~ '; var v2 = this.parent.createTextField('lead', this.parent.getNextHighestDepth(), 0, 0, 30, 10); v2.autoSize = true; v2._visible = false; v2.setNewTextFormat(this.tNorm); v2.text = this.startText; v2.selectable = false; this.leadWidth = v2._width; } else { if (srv == 'admin') { Console.levelNowServer = 'admin'; this.startText = 'admin@admin~ '; var v2 = this.parent.createTextField('lead', this.parent.getNextHighestDepth(), 0, 0, 30, 10); v2.autoSize = true; v2._visible = false; v2.setNewTextFormat(this.tNorm); v2.text = this.startText; v2.selectable = false; this.leadWidth = v2._width; } else { if (srv == 'webserv') { Console.levelNowServer = 'webserv'; this.startText = 'admin@webserv~ '; var v2 = this.parent.createTextField('lead', this.parent.getNextHighestDepth(), 0, 0, 30, 10); v2.autoSize = true; v2._visible = false; v2.setNewTextFormat(this.tNorm); v2.text = this.startText; v2.selectable = false; this.leadWidth = v2._width; } } } }; v2.timeoutClose = function () { if (Console.levelNowServer != 'admin') { var v2 = 'localhost'; if (Console.levelNowServer == 'webserv') { v2 = '192.168.0.21'; } else { if (Console.levelNowServer == 'serv1') { v2 = '192.168.100.1'; } } this.setSystemAnswer('Session expired. Logging out...\rConnection ' + v2 + ' closed.'); this.changeServer('admin'); this.closeRow(); } }; v2.getNowString = function () { var v3 = ''; var v2 = 0; while (v2 < this.letterArray.length) { v3 += this.letterArray[v2].text; ++v2; } this.letterArray[this.nowSymbolIndex].setTextFormat(this.tNorm); return v3; }; v2.createRequest = function (req) { this.nowY += 15; this.nowX = this.baseX; var v2 = this.parent.createTextField('ans' + this.parent.getNextHighestDepth(), this.parent.getNextHighestDepth(), this.nowX, this.nowY, 5, 15); v2.setNewTextFormat(this.tNorm); v2.autoSize = true; v2.text = req; v2.selectable = false; v2.autoSize = true; this.nowX += v2._width; this.selection._y = this.nowY; this.selection._x = this.nowX; if (this.parent._height > this._bounds.height - 5) { this.parent._y = this._bounds.height - this.parent._height - 5; } }; v2.closeRow = function () { this.keybord.behavior = keybordProcessor.TYPE; this.nowSymbolIndex = 0; this.letterArray = new Array(); this.nowY += 15; this.nowX = this.baseX; var v2 = this.parent.createTextField('lead', this.parent.getNextHighestDepth(), this.nowX, this.nowY, 30, 10); v2.autoSize = true; v2.setNewTextFormat(this.tNorm); v2.text = this.startText; v2.selectable = false; this.nowX += v2._width; this.selection._x = this.nowX; this.selection._y = this.nowY; if (this.parent._height > this._bounds.height - 5) { this.parent._y = this._bounds.height - this.parent._height - 5; } }; v2.setSu = function (str, sut) { this.nowY += 15; this.nowX = this.baseX; var v2 = this.parent.createTextField('ans' + this.parent.getNextHighestDepth(), this.parent.getNextHighestDepth(), this.nowX, this.nowY, 500, 15); v2.setNewTextFormat(this.tNorm); v2.multiline = true; v2.selectable = false; v2.text = str; v2.autoSize = true; this.nowX = v2._width + v2._x; this.selection._x = this.nowX; this.selection._y = this.nowY; this.keybord.sutype = sut; this.keybord.behavior = keybordProcessor.SU; if (this.parent._height > this._bounds.height - 5) { this.parent._y = this._bounds.height - this.parent._height - 5; } }; v2.requestPassword = function () { this.letterArray = new Array(); this.nowSymbolIndex = 0; this.nowY += 15; this.nowX = this.baseX; var v2 = this.parent.createTextField('ans' + this.parent.getNextHighestDepth(), this.parent.getNextHighestDepth(), this.nowX, this.nowY, 500, 15); v2.setNewTextFormat(this.tNorm); v2.multiline = true; v2.selectable = false; v2.text = 'Password: '; v2.autoSize = true; this.nowX = v2._width + v2._x; this.selection._x = this.nowX; this.selection._y = this.nowY; this.keybord.behavior = keybordProcessor.PASSWORD; if (this.parent._height > this._bounds.height - 5) { this.parent._y = this._bounds.height - this.parent._height - 5; } }; v2.requestLogin = function () { this.letterArray = new Array(); this.nowSymbolIndex = 0; this.nowY += 15; this.nowX = this.baseX; var v2 = this.parent.createTextField('ans' + this.parent.getNextHighestDepth(), this.parent.getNextHighestDepth(), this.nowX, this.nowY, 500, 15); v2.setNewTextFormat(this.tNorm); v2.multiline = true; v2.selectable = false; v2.text = 'Login: '; v2.autoSize = true; this.nowX = v2._width + v2._x; this.selection._x = this.nowX; this.selection._y = this.nowY; this.keybord.behavior = keybordProcessor.LOGIN; if (this.parent._height > this._bounds.height - 5) { this.parent._y = this._bounds.height - this.parent._height - 5; } }; v2.setKeyboardListener = function () { this.keybord.onEnterMan = function () { this.console.onMan(); }; this.keybord.onEnterPrinter = function () { if (this.console.nowAns.text == 'S') { if (Console.level2Printer == 'work') { var v3 = 'Document\t\tStatus\t\tOwner\t\t\tQuantity\rnakladn~12.doc\tActive\t\t192.168.100.72\t3\rnakladn~13.doc\tWaiting\t192.168.100.72\t3\rnakladn~14.doc\tWaiting\t192.168.100.72\t3\rnakladn~15.doc\tWaiting\t192.168.100.72\t3\rnakladn~16.doc\tWaiting\t192.168.100.74\t3\rnakladn~21.doc\tWaiting\t192.168.100.70\t1\rnakladn~23.doc\tWaiting\t192.168.100.70\t1\rnakladn~27.doc\tWaiting\t192.168.100.70\t1\rnakladn~8.doc\tWaiting\t192.168.100.70\t1\rnakladn~12.doc\tWaiting\t192.168.100.74\t3\rnakladn~18.doc\tWaiting\t192.168.100.74\t3\rnakladn~17.doc\tWaiting\t192.168.100.74\t3\rnakladn~45.doc\tWaiting\t192.168.100.74\t3\rnakladn~33.doc\tWaiting\t192.168.100.74\t3\rnakladn~46.doc\tWaiting\t192.168.100.74\t3\rch~40282.doc\t\tWaiting\t192.168.100.75\t10000\rnakladn~12.doc\tWaiting\t192.168.100.72\t3\rnakladn~12.doc\tWaiting\t192.168.100.72\t3\r\r* Type "S" to view print spooler\r* Type "C" to clear print spooler\r* Type "Q" to close connection'; } else { var v3 = 'Document\t\tStatus\t\tOwner\t\t\tQuantity\r\r* Type "S" to view print spooler\r* Type "C" to clear print spooler\r* Type "Q" to close connection'; } this.console.setSystemAnswer(v3); this.console.closeRow(); this.behavior = keybordProcessor.PRINTER; } else { if (this.console.nowAns.text == 'C') { Console.level2Printer = 'empty'; this.console.setSystemAnswer('Done.\r\r* Type "S" to view print spooler\r* Type "C" to clear print spooler\r* Type "Q" to close connection'); _global.clear = true; gameDriver.endOfLevel(2); this.console.closeRow(); this.behavior = keybordProcessor.PRINTER; } else { if (this.console.nowAns.text == 'Q') { this.behavior = keybordProcessor.TYPE; this.console.setSystemAnswer('Bye.\rConnection terminated.'); this.console.closeRow(); if (_global.clear == true) { } } } } this.console.nowAns = undefined; }; this.keybord.onEnterS = function () { if (this.console.nowAns == undefined) { this.console.nowAns = this.console.parent.createTextField('l' + this.console.parent.getNextHighestDepth(), this.console.parent.getNextHighestDepth(), this.console.nowX, this.console.nowY, 9, 15); this.console.nowAns.setNewTextFormat(this.console.tNorm); this.console.nowAns.text = 'S'; this.console.nowAns.selectable = false; this.console.nowAns.autoSize = true; this.console.selection._x = this.console.nowX + 9; } }; this.keybord.onEnterC = function () { if (this.console.nowAns == undefined) { this.console.nowAns = this.console.parent.createTextField('l' + this.console.parent.getNextHighestDepth(), this.console.parent.getNextHighestDepth(), this.console.nowX, this.console.nowY, 9, 15); this.console.nowAns.setNewTextFormat(this.console.tNorm); this.console.nowAns.text = 'C'; this.console.nowAns.selectable = false; this.console.nowAns.autoSize = true; this.console.selection._x = this.console.nowX + 9; } }; this.keybord.onEnterQ = function () { if (this.console.nowAns == undefined) { this.console.nowAns = this.console.parent.createTextField('l' + this.console.parent.getNextHighestDepth(), this.console.parent.getNextHighestDepth(), this.console.nowX, this.console.nowY, 9, 15); this.console.nowAns.setNewTextFormat(this.console.tNorm); this.console.nowAns.text = 'Q'; this.console.nowAns.selectable = false; this.console.nowAns.autoSize = true; this.console.selection._x = this.console.nowX + 9; } }; this.keybord.onEnterLogin = function () { this.console.requestPassword(); }; this.keybord.onEnterPassword = function () { this.behavior = keybordProcessor.TYPE; if (this.sutype == 'telnet') { this.console.setSystemAnswer('Authentication failure\rtelnet: Connection refused'); this.console.closeRow(); } else { if (this.sutype == 'ssh') { this.console.setSystemAnswer('Authentication failure\rSorry.'); this.console.closeRow(); } else { this.console.closeRow(); } } }; this.keybord.onEnterLoginLetter = function (let) { this.console.letterArray[this.console.nowSymbolIndex].setTextFormat(this.console.tNorm); var v2 = this.console.parent.createTextField('l' + this.console.parent.getNextHighestDepth(), this.console.parent.getNextHighestDepth(), this.console.nowX, this.console.nowY, 9, 15); v2.setNewTextFormat(this.console.tNorm); v2.text = let; v2.selectable = false; v2.autoSize = true; this.console.nowX += v2._width - 4; if (this.console.nowX > this.console._bounds.width - 9) { this.console.nowY += 15; this.console.nowX = this.console.baseX; this.console.selection._y = this.console.nowY; } this.console.letterArray.push(v2); this.console.selection._x = this.console.nowX + 1; ++this.console.nowSymbolIndex; }; this.keybord.onEnterSu = function () { if (this.sutype == 'sudo') { this.console.setSystemAnswer('Sorry, try again.'); this.console.closeRow(); } else { if (this.sutype == 'su') { this.console.setSystemAnswer('su: Authentication failure\rSorry.'); this.console.closeRow(); } } }; this.keybord.onEnterDeleteAnswer = function () { this.console.selection._x = this.console.nowX; this.console.nowAns.removeTextField(); this.console.nowAns = undefined; }; this.keybord.onEnterTab = function () { this.behavior = keybordProcessor.QUESTION; if (Console.levelNowServer == 'admin') { this.console.createRequest('Display all 11 possibilities? (y or n)'); } else { if (Console.levelNowServer == 'serv1') { this.console.createRequest('Display all 12 possibilities? (y or n)'); } else { this.console.createRequest('Display all 13 possibilities? (y or n)'); } } }; this.keybord.onEnterAnswer = function () { this.behavior = keybordProcessor.TYPE; this.console.nowAns = undefined; if (this.answer == true) { var v2 = 'ssh man ls\rchmod ping sudo\rifconfig ps telnet\rgrep route\t \t\t'; var v4 = 'ssh man ls\rchmod ping sudo\rifconfig ps telnet\rgrep route apachectl\rexit\t\t\t'; var v3 = 'ssh man ls\rchmod ping sudo\rifconfig ps telnet\rgrep route exit'; if (Console.levelNowServer == 'admin') { this.console.setSystemAnswer(v2); } else { if (Console.levelNowServer == 'serv1') { this.console.setSystemAnswer(v3); } else { this.console.setSystemAnswer(v4); } } } this.console.closeRow(); }; this.keybord.onEnterYes = function () { if (this.console.nowAns == undefined) { this.console.nowAns = this.console.parent.createTextField('l' + this.console.parent.getNextHighestDepth(), this.console.parent.getNextHighestDepth(), this.console.nowX, this.console.nowY, 9, 15); this.console.nowAns.setNewTextFormat(this.console.tNorm); this.console.nowAns.text = 'Y'; this.console.nowAns.selectable = false; this.console.nowAns.autoSize = true; this.console.selection._x = this.console.nowX + 9; } }; this.keybord.onEnterNo = function () { if (this.console.nowAns == undefined) { this.console.nowAns = this.console.parent.createTextField('l' + this.console.parent.getNextHighestDepth(), this.console.parent.getNextHighestDepth(), this.console.nowX, this.console.nowY, 9, 15); this.console.nowAns.setNewTextFormat(this.console.tNorm); this.console.nowAns.text = 'N'; this.console.nowAns.selectable = false; this.console.nowAns.autoSize = true; this.console.selection._x = this.console.nowX + 9; } }; this.keybord.onEnterUp = function () { if (this.commandList.length > 0) { this.console.removeNowLine(); this.console.setNowLine(this.commandList[this.nowCommand]); } }; this.keybord.onEnterDown = function () { if (this.commandList.length > 0 and this.commandList[this.nowCommand] != undefined) { this.console.removeNowLine(); this.console.setNowLine(this.commandList[this.nowCommand]); } }; this.keybord.onEnterLetter = function (let) { if (this.console.nowSymbolIndex == this.console.letterArray.length or this.console.letterArray.length == undefined or this.console.letterArray.length == 0) { this.console.letterArray[this.console.nowSymbolIndex].setTextFormat(this.console.tNorm); var v4 = this.console.parent.createTextField('l' + this.console.parent.getNextHighestDepth(), this.console.parent.getNextHighestDepth(), this.console.nowX, this.console.nowY, 9, 15); v4.setNewTextFormat(this.console.tNorm); v4.text = let; v4.selectable = false; v4.autoSize = true; this.console.nowX += v4._width - 4; if (this.console.nowX > this.console._bounds.width - 9) { this.console.nowY += 15; this.console.nowX = this.console.baseX; this.console.selection._y = this.console.nowY; } this.console.letterArray.push(v4); this.console.selection._x = this.console.nowX + 1; ++this.console.nowSymbolIndex; if (this.console.parent._height > this.console._bounds.height - 5) { this.console.parent._y = this.console._bounds.height - this.console.parent._height - 5; } } else { var v3 = new Array(); this.console.letterArray[this.console.nowSymbolIndex].setTextFormat(this.console.tNorm); var v4 = this.console.parent.createTextField('l' + this.console.parent.getNextHighestDepth(), this.console.parent.getNextHighestDepth(), this.console.nowX, this.console.nowY, 9, 15); v4.setNewTextFormat(this.console.tNorm); v4.text = let; v4.selectable = false; v4.autoSize = true; this.console.nowX += v4._width - 4; if (this.console.nowSymbolIndex <= 0) { v3.push(v4); var v2 = 0; while (v2 < this.console.letterArray.length) { v3.push(this.console.letterArray[v2]); ++v2; } } else { var v2 = 0; while (v2 < this.console.letterArray.length) { if (v2 == this.console.nowSymbolIndex) { v3.push(v4); } v3.push(this.console.letterArray[v2]); ++v2; } } this.console.letterArray = v3; this.console.nowX = this.console.baseX + this.console.leadWidth; if (this.console.letterArray[0]._y != undefined) { this.console.nowY = this.console.letterArray[0]._y; } v2 = 0; while (v2 < this.console.letterArray.length) { this.console.letterArray[v2]._x = this.console.nowX; this.console.letterArray[v2]._y = this.console.nowY; this.console.nowX += this.console.letterArray[v2]._width - 4; trace(this.console.nowX); if (this.console.nowX > this.console._bounds.width - 9) { this.console.nowY += 15; this.console.nowX = this.console.baseX; } ++v2; } this.console.letterArray[this.console.nowSymbolIndex].setTextFormat(this.console.tNorm); ++this.console.nowSymbolIndex; this.console.letterArray[this.console.nowSymbolIndex].setTextFormat(this.console.tSel); if (this.console.letterArray[this.console.nowSymbolIndex]._x != undefined) { this.console.selection._x = this.console.letterArray[this.console.nowSymbolIndex]._x + 1; this.console.selection._y = this.console.letterArray[this.console.nowSymbolIndex]._y; } else { this.console.selection._x = this.console.nowX; this.console.selection._y = this.console.nowY; } if (this.console.parent._height > this.console._bounds.height - 5) { this.console.parent._y = this.console._bounds.height - this.console.parent._height - 5; } } }; this.keybord.onEnterLeft = function () { if (this.console.nowSymbolIndex > 0) { this.console.letterArray[this.console.nowSymbolIndex].setTextFormat(this.console.tNorm); --this.console.nowSymbolIndex; this.console.letterArray[this.console.nowSymbolIndex].setTextFormat(this.console.tSel); this.console.selection._x = this.console.letterArray[this.console.nowSymbolIndex]._x + 1; this.console.selection._y = this.console.letterArray[this.console.nowSymbolIndex]._y; } }; this.keybord.onEnterRight = function () { if (this.console.nowSymbolIndex < this.console.letterArray.length - 1) { this.console.letterArray[this.console.nowSymbolIndex].setTextFormat(this.console.tNorm); ++this.console.nowSymbolIndex; this.console.letterArray[this.console.nowSymbolIndex].setTextFormat(this.console.tSel); this.console.selection._x = this.console.letterArray[this.console.nowSymbolIndex]._x + 1; this.console.selection._y = this.console.letterArray[this.console.nowSymbolIndex]._y; } else { this.console.nowSymbolIndex = this.console.letterArray.length; this.console.letterArray[this.console.letterArray.length - 1].setTextFormat(this.console.tNorm); this.console.selection._x = this.console.nowX + 1; this.console.selection._y = this.console.nowY; } }; this.keybord.onEnterDelete = function () { if (this.console.letterArray.length > 0) { this.console.deleteSymbol(this.console.nowSymbolIndex); } }; this.keybord.onEnterBackspace = function () { if (this.console.letterArray.length > 0) { this.console.deleteSymbol(this.console.nowSymbolIndex - 1); } }; this.keybord.onEnterCommand = function () { this.behavior = keybordProcessor.IDLE; this.commandList.push(this.console.getNowString()); this.console.processor.doStringCommand(this.commandList[this.commandList.length - 1]); this.nowCommand = this.commandList.length; }; }; v1.level = 2; v1.level2Printer = 'work'; v1.levelNowServer = 'admin'; v1.level3_eth0 = false; v1.level3_eth1 = true; v1.level3_route = false; v1.level5_serv = false; ASSetPropFlags(_global.Console.prototype, null, 1); } #endinitclip } movieClip 2676 __Packages.ConsoleCommands { #initclip if (!_global.ConsoleCommands) { var v1 = function () { ConsoleCommands.init(); }; _global.ConsoleCommands = v1; var v2 = v1.prototype; v1.init = function () { var v1 = new Object(); v1.number = 1; v1.name = 'man'; v1.isMan = true; ConsoleCommands.commands.push(v1); v1 = new Object(); v1.number = 2; v1.name = 'ping'; v1.isMan = true; ConsoleCommands.commands.push(v1); v1 = new Object(); v1.number = 3; v1.name = 'ifconfig'; v1.isMan = true; ConsoleCommands.commands.push(v1); v1 = new Object(); v1.number = 4; v1.name = 'ls'; v1.isMan = true; ConsoleCommands.commands.push(v1); v1 = new Object(); v1.number = 5; v1.name = 'sudo'; v1.isMan = true; ConsoleCommands.commands.push(v1); v1 = new Object(); v1.number = 6; v1.name = 'su'; v1.isMan = true; ConsoleCommands.commands.push(v1); v1 = new Object(); v1.number = 7; v1.name = 'chmod'; v1.isMan = true; ConsoleCommands.commands.push(v1); v1 = new Object(); v1.number = 8; v1.name = 'grep'; v1.isMan = true; ConsoleCommands.commands.push(v1); v1 = new Object(); v1.number = 9; v1.name = 'ps'; v1.isMan = true; ConsoleCommands.commands.push(v1); v1 = new Object(); v1.number = 10; v1.name = 'route'; v1.isMan = true; ConsoleCommands.commands.push(v1); v1 = new Object(); v1.number = 11; v1.name = 'telnet'; v1.isMan = true; ConsoleCommands.commands.push(v1); v1 = new Object(); v1.number = 12; v1.name = 'ssh'; v1.isMan = true; ConsoleCommands.commands.push(v1); v1 = new Object(); v1.number = 13; v1.name = 'cd'; v1.isMan = false; ConsoleCommands.commands.push(v1); v1 = new Object(); v1.number = 14; v1.name = 'apachectl'; v1.isMan = false; ConsoleCommands.commands.push(v1); v1 = new Object(); v1.number = 15; v1.name = 'list'; v1.isMan = false; ConsoleCommands.commands.push(v1); v1 = new Object(); v1.number = 16; v1.name = 'clear'; v1.isMan = false; ConsoleCommands.commands.push(v1); v1 = new Object(); v1.number = 17; v1.name = 'restart'; v1.isMan = false; ConsoleCommands.commands.push(v1); }; v1.addCommand = function (num, nm, isM) { var v1 = new Object(); v1.number = num; v1.name = nm; v1.isMan = isM; ConsoleCommands.commands.push(v1); }; ASSetPropFlags(_global.ConsoleCommands.prototype, null, 1); } #endinitclip } movieClip 2677 __Packages.keybordProcessor { #initclip if (!_global.keybordProcessor) { var v1 = function (cons) { this.behavior = keybordProcessor.TYPE; this.answer = false; this.console = cons; this.nowCommand = 0; this.commandList = new Array(); this.myListener = new Object(); this.myListener.par = this; this.myListener.onKeyDown = function () { if (_global.consEnabled != false) { if (this.par.behavior != keybordProcessor.MAN) { if (Key.getCode() == 13) { if (this.par.behavior == keybordProcessor.TYPE) { this.par.nowCommand = this.par.commandList.length; this.par.onEnterCommand(); } else { if (this.par.behavior == keybordProcessor.QUESTION) { this.par.onEnterAnswer(); } else { if (this.par.behavior == keybordProcessor.SU) { this.par.onEnterSu(); } else { if (this.par.behavior == keybordProcessor.LOGIN) { this.par.onEnterLogin(); } else { if (this.par.behavior == keybordProcessor.PASSWORD) { this.par.onEnterPassword(); } else { if (this.par.behavior == keybordProcessor.PRINTER) { this.par.onEnterPrinter(); } } } } } } } else { if (Key.getCode() == 46) { if (this.par.behavior == keybordProcessor.TYPE) { this.par.nowCommand = this.par.commandList.length; this.par.onEnterDelete(); } else { if (this.par.behavior == keybordProcessor.QUESTION) { this.par.onEnterDeleteAnswer(); } else { if (this.par.behavior == keybordProcessor.PRINTER) { this.par.onEnterDeleteAnswer(); } } } } else { if (Key.getCode() == 8) { if (this.par.behavior == keybordProcessor.TYPE) { this.par.nowCommand = this.par.commandList.length; this.par.onEnterBackspace(); } else { if (this.par.behavior == keybordProcessor.QUESTION) { this.par.onEnterDeleteAnswer(); } else { if (this.par.behavior == keybordProcessor.PRINTER) { this.par.onEnterDeleteAnswer(); } } } } else { if (Key.getCode() == 37) { if (this.par.behavior == keybordProcessor.TYPE) { this.par.nowCommand = this.par.commandList.length; this.par.onEnterLeft(); } } else { if (Key.getCode() == 39) { if (this.par.behavior == keybordProcessor.TYPE) { this.par.nowCommand = this.par.commandList.length; this.par.onEnterRight(); } } else { if (Key.getCode() == 38) { if (this.par.behavior == keybordProcessor.TYPE) { if (this.par.nowCommand > 0) { --this.par.nowCommand; } this.par.onEnterUp(); } } else { if (Key.getCode() == 40) { if (this.par.behavior == keybordProcessor.TYPE) { if (this.par.nowCommand < this.par.commandList.length - 1) { ++this.par.nowCommand; } this.par.onEnterDown(); } } else { if (Key.getCode() == 9) { this.par.answer = false; this.par.onEnterTab(); } else { if (Key.getCode() == 27) { } else { if (this.par.behavior == keybordProcessor.TYPE) { this.par.nowCommand = this.par.commandList.length; if (Key.getAscii() != undefined and chr(Key.getAscii()) != '') { this.par.onEnterLetter(chr(Key.getAscii())); } } else { if (this.par.behavior == keybordProcessor.LOGIN) { if (Key.getAscii() != undefined and chr(Key.getAscii()) != '') { this.par.onEnterLoginLetter(chr(Key.getAscii())); } } else { if (this.par.behavior == keybordProcessor.QUESTION) { if (Key.getCode() == 89) { this.par.answer = true; this.par.onEnterYes(); } if (Key.getCode() == 78) { this.par.answer = false; this.par.onEnterNo(); } } else { if (this.par.behavior == keybordProcessor.PRINTER) { if (Key.getCode() == 83) { this.par.onEnterS(); } else { if (Key.getCode() == 67) { this.par.onEnterC(); } else { if (Key.getCode() == 81) { this.par.onEnterQ(); } } } } } } } } } } } } } } } } } else { this.par.onEnterMan(); } } }; Key.addListener(this.myListener); }; _global.keybordProcessor = v1; var v2 = v1.prototype; v1.TYPE = 'TYPE'; v1.IDLE = 'IDLE'; v1.QUESTION = 'QUESTION'; v1.SU = 'SU'; v1.LOGIN = 'LOGIN'; v1.PASSWORD = 'PASSWORD'; v1.PRINTER = 'PRINTER'; v1.MAN = 'MAN'; ASSetPropFlags(_global.keybordProcessor.prototype, null, 1); } #endinitclip } movieClip 2678 __Packages.commandProcessor { #initclip if (!_global.commandProcessor) { var v1 = function (cons) { this.console = cons; }; _global.commandProcessor = v1; var v2 = v1.prototype; v2.doStringCommand = function (str) { var v2 = new Command(); if (v2.initCommandFromString(str)) { this.doCommand(v2); } }; v2.doCommand = function (com) { if (com.name == 'man') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('What manual page do you want?'); this.console.closeRow(); } else { if (com.args[0] == 'man') { var v4 = 'NAME\rman - an interface to the on-line reference manuals\r\rDESCRIPTION\rman is the system’s manual pager. Each page argument given to man is normally the name of a program, utility or function. The manual page associated with each of these arguments is then found and displayed. A section, if provided, will direct man to look only in that section of the manual. The default action is to search in all of the available sections, following a predefined order and to show only the first page found, even if page exists in several sections.\r\rman | man\rWhat manual page do you want?'; this.console.setSystemAnswerMan(v4); } else { if (com.args[0] == 'ping') { var v4 = 'NAME\rping, - send ICMP ECHO_REQUEST to network hosts\rSYNOPSIS\rping destination\rDESCRIPTION\rping uses the ICMP protocol’s mandatory ECHO_REQUEST datagram to elicitan ICMP ECHO_RESPONSE from a host or gateway. ECHO_REQUEST datagrams (‘‘pings’’) have an IP and ICMP header, followed by a struct timeval and then an arbitrary number of ‘‘pad’’ bytes used to fill out the packet.'; this.console.setSystemAnswerMan(v4); } else { if (com.args[0] == 'ifconfig') { var v4 = 'NAME\rifconfig - configure a network interface\r\rSYNOPSIS\rifconfig [interface]\r\rifconfig interface options | address ...\r\rDESCRIPTION\rIfconfig is used to configure the kernel-resident network interfaces. It is used at boot time to set up interfaces as necessary. After that, it is usually only needed when debugging or when system tuning is needed.\r\rIf no arguments are given, ifconfig displays the status of the currently active interfaces. If a single interface argument is given, it displays the status of the given interface only; if a single -a argument is given, it displays the status of all interfaces, even those that are down. Otherwise, it configures an interface.\r\rOPTIONS\r-a display all interfaces which are currently available, even if\rdown\r\rinterface\rThe name of the interface. This is usually a driver name followed by a unit number, for example eth0 for the first Ethernet interface. If your kernel supports alias interfaces, you can specify them with eth0:0 for the first alias of eth0. You can use them to assign a second address. To delete an alias interface use ifconfig eth0:0 down aliases are deleted, if you delete the first (primary).\r\rup This flag causes the interface to be activated. It is implicitly specified if an address is assigned to the interface.\r\rdown This flag causes the driver for this interface to be shut down.'; this.console.setSystemAnswerMan(v4); } else { if (com.args[0] == 'ls') { var v4 = 'NAME\rls - list directory contents\r\rSYNOPSIS\rls\r\rDESCRIPTION\rList information about the FILEs (the current directory by default).\r'; this.console.setSystemAnswerMan(v4); } else { if (com.args[0] == 'sudo') { var v4 = 'NAME\rsudo, sudoedit - execute a command as another user\r\rSYNOPSIS\rsudo command\r\rDESCRIPTION\r sudo allows a permitted user to execute a command as the superuser or another user, as specified in the sudoers file. The real and effective uid and gid are set to match those of the target user as specified in the passwd file and the group vector is initialized based on the group file (unless the -P option was specified). If the invoking user is root or if the target user is the same as the invoking user, no password is required. Otherwise, sudo requires that users authenticate themselves with a password by default (NOTE: in the default configuration this is the user’s password, not the root password). Once a user has been authenticated, a timestamp is updated and the user may then use sudo without a password for a short period of time (15 minutes unless overridden in sudoers).'; this.console.setSystemAnswerMan(v4); } else { if (com.args[0] == 'su') { var v4 = 'NAME\rsu - Change user ID or become super-user\r\rSYNOPSIS\rsu [OPTS] [-] [username [ARGS]]\r\rDESCRIPTION\rsu is used to become another user during a login session. Invoked without a username, su defaults to becoming the super user. The optional argument - may be used to provide an environment similiar to what the user would expect had the user logged in directly.\r\rThe user will be prompted for a password, if appropriate. Invalid passwords will produce an error message. All attempts, both valid and invalid, are logged to detect abuses of the system.'; this.console.setSystemAnswerMan(v4); } else { if (com.args[0] == 'chmod') { var v4 = 'NAME\rchmod - change file access permissions\r\r\rSYNOPSIS\rchmod [OPTION]... MODE[,MODE]... FILE...\rchmod [OPTION]... OCTAL-MODE FILE...\rchmod [OPTION]... --reference=RFILE FILE...\r\rDESCRIPTION\rThis manual page documents the GNU version of chmod. chmod changes the permissions of each given file according to mode, which is an octal number representing the bit pattern for the new permissions.\r\rOPTIONS\rChange the mode of each FILE to MODE.\r-R, --recursive\rchange files and directories recursively\r\rEXAMPLE\rchmod -R 444 /var/object'; this.console.setSystemAnswerMan(v4); } else { if (com.args[0] == 'grep') { var v4 = 'NAME\rgrep - print lines matching a pattern\r\rSYNOPSIS\rgrep PATTERN [FILE...]\r\rDESCRIPTION\rgrep searches the named input FILEs (or standard input if no files are named, or the file name - is given) for lines containing a match to the given PATTERN. By default, grep prints the matching lines.'; this.console.setSystemAnswerMan(v4); } else { if (com.args[0] == 'ps') { var v4 = 'NAME\rps - report a snapshot of the current processes.\r\rSYNOPSIS\rps [options]\r\rDESCRIPTION\rps displays information about a selection of the active processes.\r\rEXAMPLES\rTo see every process on the system using standard syntax:\rps -e'; this.console.setSystemAnswerMan(v4); } else { if (com.args[0] == 'route') { var v4 = 'NAME\rroute - show / manipulate the IP routing table\r\rSYNOPSIS\rroute add [-net] target [netmask Nm] [gw Gw]\r\rDESCRIPTION\rRoute manipulates the kernel’s IP routing tables. Its primary use is to set up static routes to specific hosts or networks via an interface after it has been configured with the ifconfig(8) program.\r\rWhen the add or del options are used, route modifies the routing tables. Without these options, route displays the current contents of the routing tables.\r\rOPTIONS\radd add a new route.\r\rtarget the destination network or host. You can provide IP addresses in dotted decimal or host/network names.\r\r-net the target is a network.\r\rgw GW route packets via a gateway. NOTE: The specified gateway must be reachable first. This usually means that you have to set up a static route to the gateway beforehand. If you specify the address of one of your local interfaces, it will be used to decide about the interface to which the packets should be routed to. This is a BSDism compatibility hack.\r\rEXAMPLES\r\rroute add default gw 172.16.0.1\radds a default route (which will be used if no other route matches). All packets using this route will be gatewayed through "mango-gw". The device which will actually be used for that route depends on how we can reach\r"mango-gw" - the static route to "mango-gw" will have to be set up before.'; this.console.setSystemAnswerMan(v4); } else { if (com.args[0] == 'telnet') { var v4 = 'NAME\rtelnet - user interface to the TELNET protocol\r\r\rSYNOPSIS\rtelnet host\r\rDESCRIPTION\rThe telnet command is used for interactive communication with another host using the TELNET protocol. It begins in command mode, where it prints a telnet prompt ("telnet>"). If telnet is invoked with a host argument, it performs an open command implicitly; see the description below.'; this.console.setSystemAnswerMan(v4); } else { if (com.args[0] == 'ssh') { var v4 = 'NAME\rssh - OpenSSH SSH client (remote login program)\r\rSYNOPSIS\rssh [-l login_name] host\r\rDESCRIPTION\rssh (SSH client) is a program for logging into a remote machine and for executing commands on a remote machine. It is intended to replace rlogin and rsh, and provide secure encrypted communications between two untrusted hosts over an insecure network. X11 connections and arbitrary TCP ports can also be forwarded over the secure channel.\r\rssh connects and logs into the specified hostname (with optional user name). The user must prove his/her identity to the remote machine using one of several methods depending on the protocol version used (see below).'; this.console.setSystemAnswerMan(v4); } else { this.console.setSystemAnswer('No manual entry for ' + com.args[0]); this.console.closeRow(); } } } } } } } } } } } } } } else { if (com.name == 'vi') { if (com.args[0] == 'INFO') { this.console.setSystemAnswer('This software was created by random() (INDEE Studio)'); this.console.closeRow(); } else { this.console.setSystemAnswer('-bash: ' + com.name + ': command not found'); this.console.closeRow(); } } else { if (com.name == 'exit') { var v3 = 'localhost'; if (Console.levelNowServer == 'webserv') { v3 = '192.168.0.21'; this.console.setSystemAnswer('logout\rConnection to 192.168.0.21 closed.'); this.console.changeServer('admin'); this.console.closeRow(); } else { if (Console.levelNowServer == 'serv1') { v3 = '192.168.100.1'; this.console.setSystemAnswer('logout\rConnection to 192.168.100.1 closed.'); this.console.changeServer('admin'); this.console.closeRow(); } else { this.console.setSystemAnswer('-bash: ' + com.name + ': command not found'); this.console.closeRow(); } } } else { if (com.name == 'apachectl' or com.name == 'ping' or com.name == 'ifconfig' or com.name == 'ls' or com.name == 'sudo' or com.name == 'su' or com.name == 'chmod' or com.name == 'grep' or com.name == 'ps' or com.name == 'route' or com.name == 'telnet' or com.name == 'ssh') { if (gameDriver.nowLevel >= 1 and gameDriver.nowLevel <= 2) { var v5 = new levelCommands(this.console, com); } else { if (gameDriver.nowLevel >= 3 and gameDriver.nowLevel <= 4) { var v5 = new levelCommands2(this.console, com); } else { var v5 = new levelCommands3(this.console, com); } } } else { if (com.name == '') { this.console.closeRow(); } else { this.console.setSystemAnswer('-bash: ' + com.name + ': command not found'); this.console.closeRow(); } } } } } }; ASSetPropFlags(_global.commandProcessor.prototype, null, 1); } #endinitclip } movieClip 2679 __Packages.Command { #initclip if (!_global.Command) { var v1 = function (nm, ar) { if (nm != undefined) { this.name = nm; } if (ar != undefined) { this.args = ar; } }; _global.Command = v1; var v2 = v1.prototype; v2.initCommandFromString = function (str) { var v3 = str.split(' '); this.args = new Array(); if (v3.length > 0) { this.name = v3[0]; if (v3.length > 1) { var v2 = 1; while (v2 < v3.length) { this.args.push(v3[v2]); ++v2; } } return true; } else { return false; } }; ASSetPropFlags(_global.Command.prototype, null, 1); } #endinitclip } movieClip 2680 __Packages.levelCommands { #initclip if (!_global.levelCommands) { var v1 = function (cons, com) { this.console = cons; this.command = com; this.int = _root.createEmptyMovieClip('int', 9045); if (gameDriver.nowLevel == 1) { if (com.name == 'ping') { if (com.args == undefined or com.args.length <= 0) { this.console.setSystemAnswer('Usage: ping destination'); this.console.closeRow(); } else { if (com.args[0] == '192.168.100.5' or com.args[0] == '192.168.100.1' or com.args[0] == '192.168.100.10' or com.args[0] == '192.168.100.11') { this.console.setSystemAnswer('PING ' + this.command.args[0] + ' (' + this.command.args[0] + ') 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=1 ttl=64 time=1.66 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=2 ttl=64 time=1.00 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=3 ttl=64 time=1.00 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 192.168.100.5 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { if (com.args[0] == '192.168.100.0' or com.args[0] == '192.168.100.255' or com.args[0] == '255.255.255.255') { this.console.setSystemAnswer('Do you want to ping broadcast?'); this.console.closeRow(); } else { if (com.args[0] == '0.0.0.0') { this.console.setSystemAnswer('PING 0.0.0.0 (127.0.0.1) 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.049 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.028 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.030 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 0.0.0.0 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { if (com.args[0] == 'localhost') { this.console.setSystemAnswer('PING localhost (127.0.0.1) 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.049 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.028 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.030 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- localhost ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { if (com.args[0] == '192.168.100.50') { this.console.setSystemAnswer('PING 192.168.100.50 (192.168.100.50) 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('From 192.168.100.5 icmp_seq=1 Destination Host Unreachable'); } else { if (this.step == 2) { this.console.setSystemAnswer('From 192.168.100.5 icmp_seq=2 Destination Host Unreachable'); } else { if (this.step == 3) { this.console.setSystemAnswer('From 192.168.100.5 icmp_seq=3 Destination Host Unreachable'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 192.168.0.6 ping statistics ---\r3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms\r, pipe 3'; this.console.setSystemAnswer(v2); this.console.closeRow(); if (gameDriver.etap == 'one1') { gameDriver.endOfLevel(1); } delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { var v5 = com.args[0].split('.'); if (v5.length < 4) { this.console.setSystemAnswer('ping: unknown host ' + com.args[0]); this.console.closeRow(); } else { if (v5[0] == '192' and v5[1] == '168' and v5[2] == '100') { this.console.setSystemAnswer('PING 192.168.100.' + v5[3] + ' (192.168.100.' + v5[3] + ') 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('From 192.168.100.5 icmp_seq=1 Destination Host Unreachable'); } else { if (this.step == 2) { this.console.setSystemAnswer('From 192.168.100.5 icmp_seq=2 Destination Host Unreachable'); } else { if (this.step == 3) { this.console.setSystemAnswer('From 192.168.100.5 icmp_seq=3 Destination Host Unreachable'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 192.168.0.6 ping statistics ---\r3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms\r, pipe 3'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { var v4 = 'PING ' + com.args[0] + ' (' + com.args[0] + ') 56(84) bytes of data.' + '\n' + '--- {' + com.args[0] + '} ping statistics ---' + '\n' + '3 packets transmitted, 0 received, 100% packet loss, time ' + Math.round(Math.random() * 50 + 1975) + 'ms'; this.console.setSystemAnswer(v4); this.console.closeRow(); } } } } } } } } } else { if (com.name == 'ifconfig') { if (com.args.length <= 0 or com.args == undefined or com.args[0] == 'eth0' and com.args == 1) { var v4 = 'eth0 Link encap:Ethernet HWaddr 00:04:ED:57:B1:0B\r inet addr:192.168.100.5 Bcast:192.168.100.255 Mask:255.255.255.0\r UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r RX packets:2289172 errors:3 dropped:16 overruns:3 frame:0\r TX packets:1400364 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:3241591663 (3.0 GB) TX bytes:114218439 (108.9 MB)\r Interrupt:19 Base address:0x2c00'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (com.args[0] != 'eth0') { this.console.setSystemAnswer(com.args[0] + ': error fetching interface information: Device not found'); this.console.closeRow(); } else { if (com.args[0] == 'eth0' and (com.args[1] == 'down' or com.args[1] == 'up')) { this.console.setSystemAnswer('SIOCSIFFLAGS: Permission denied'); this.console.closeRow(); } else { var v5 = com.args[1].split('.'); if (v5.length < 4 and com.args[1] != 'localhost') { this.console.setSystemAnswer('Try `man ifconfig\' for more information.'); this.console.closeRow(); } else { this.console.setSystemAnswer('SIOCSIFFLAGS: Permission denied'); this.console.closeRow(); } } } } } else { if (com.name == 'ls') { if (com.args.lenght <= 0) { var v4 = 'pass.txt'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { var v4 = 'bash: ls: ' + com.args[0] + ': No such file or directory.'; this.console.setSystemAnswer(v4); this.console.closeRow(); } } else { if (com.name == 'ps') { var v4 = 'PID TTY TIME CMD\r3444 pts/1 00:00:00 bash\r3501 pts/1 00:00:00 ps'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (com.name == 'sudo') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('usage: sudo <command>'); this.console.closeRow(); } else { this.console.setSu('[sudo] password for root:', 'sudo'); } } else { if (com.name == 'su') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSu('Password:', 'su'); } else { this.console.setSystemAnswer('Unknown id: ' + com.args[0]); this.console.closeRow(); } } else { if (com.name == 'chmod') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man chmod\' for more information.'); this.console.closeRow(); } else { this.console.setSystemAnswer('chmod: Permission denied'); this.console.closeRow(); } } else { if (com.name == 'grep') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man grep\' for more information.'); this.console.closeRow(); } else { this.console.closeRow(); } } else { if (com.name == 'route') { if (com.args.length <= 0 or com.args == undefined) { var v4 = 'Kernel IP routing table\rDestination Gateway Genmask Fl Metric R U Iface\r192.168.100.0 * 255.255.255.0 U 0 0 0 eth0\rdefault 192.168.100.1 0.0.0.0 UG 100 0 0 eth0'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (com.args[0] == 'add') { this.console.setSystemAnswer('SIOCADDRT: Operation not permitted'); this.console.closeRow(); } else { if (com.args[0] == 'del') { this.console.setSystemAnswer('SIOCADDRT: Operation not permitted'); this.console.closeRow(); } else { this.console.setSystemAnswer('Try `man route\' for more information.'); this.console.closeRow(); } } } } else { if (com.name == 'telnet') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('usage: telnet <host>'); this.console.closeRow(); } else { if (com.args[0] == '192.168.100.10') { this.console.setSystemAnswer('Trying 192.168.100.10...\rConnected.'); this.console.keybord.sutype = 'telnet'; this.console.requestLogin(); } else { var v5 = com.args[1].split('.'); if (v5.length < 4 and com.args[1] != 'localhost') { this.console.setSystemAnswer('telnet: could not resolve ' + com.args[1] + ': Name or service not known'); this.console.closeRow(); } else { this.console.setSystemAnswer('Trying ' + com.args[1] + '...' + '\n' + 'telnet: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } } } else { if (com.name == 'ssh') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man ssh\' for more information.'); this.console.closeRow(); } else { if (com.args.length == 1) { if (com.args[0] == '192.168.100.1') { this.console.keybord.sutype = 'ssh'; this.console.requestLogin(); } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } else { if (com.args.length == 3 and com.args[0] == '-l' and com.args[2] == '192.168.100.1') { this.console.keybord.sutype = 'ssh'; this.console.requestPassword(); } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } } } else { if (com.name == 'cd') { if (com.args.length <= 0 or com.args == undefined) { this.console.closeRow(); } else { if (com.args[0] == '..' or com.args[0] == '/home/sysadmin/' or com.args[0] == '/home/sysadmin') { this.console.closeRow(); } else { this.console.setSystemAnswer('-bash: cd: ' + com.args[0] + ': No such file or directory'); this.console.closeRow(); } } } else { if (com.name == 'apachectl') { this.console.setSystemAnswer('-bash: apachectl: command not found'); this.console.closeRow(); } } } } } } } } } } } } } } else { if (gameDriver.nowLevel == 2) { if (com.name == 'ping') { if (com.args == undefined or com.args.length <= 0) { this.console.setSystemAnswer('Usage: ping destination'); this.console.closeRow(); } else { if (com.args[0] == '192.168.100.5' or com.args[0] == '192.168.100.1' or com.args[0] == '192.168.100.10' or com.args[0] == '192.168.100.11') { this.console.setSystemAnswer('PING ' + this.command.args[0] + ' (' + this.command.args[0] + ') 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=1 ttl=64 time=1.66 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=2 ttl=64 time=1.00 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=3 ttl=64 time=1.00 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 192.168.100.5 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { if (com.args[0] == '192.168.100.0' or com.args[0] == '192.168.100.255' or com.args[0] == '255.255.255.255') { this.console.setSystemAnswer('Do you want to ping broadcast?'); this.console.closeRow(); } else { if (com.args[0] == '0.0.0.0') { this.console.setSystemAnswer('PING 0.0.0.0 (127.0.0.1) 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.049 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.028 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.030 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 0.0.0.0 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { if (com.args[0] == 'localhost') { this.console.setSystemAnswer('PING localhost (127.0.0.1) 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.049 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.028 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.030 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- localhost ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { if (com.args[0] == '192.168.100.50' or com.args[0] == '192.168.100.70' or com.args[0] == '192.168.100.71' or com.args[0] == '192.168.100.72' or com.args[0] == '192.168.100.73' or com.args[0] == '192.168.100.74' or com.args[0] == '192.168.100.75') { this.console.setSystemAnswer('PING ' + com.args[0] + ' (' + com.args[0] + ') 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from 192.168.100.5: icmp_seq=1 ttl=64 time=1.66 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from 192.168.100.5: icmp_seq=2 ttl=64 time=1.00 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from 192.168.100.5: icmp_seq=3 ttl=64 time=1.00 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 192.168.100.5 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { var v5 = com.args[0].split('.'); if (v5.length < 4) { this.console.setSystemAnswer('ping: unknown host ' + com.args[0]); this.console.closeRow(); } else { if (v5[0] == '192' and v5[1] == '168' and v5[2] == '100') { this.console.setSystemAnswer('PING 192.168.100.' + v5[3] + ' (192.168.100.' + v5[3] + ') 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('From 192.168.100.5 icmp_seq=1 Destination Host Unreachable'); } else { if (this.step == 2) { this.console.setSystemAnswer('From 192.168.100.5 icmp_seq=2 Destination Host Unreachable'); } else { if (this.step == 3) { this.console.setSystemAnswer('From 192.168.100.5 icmp_seq=3 Destination Host Unreachable'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 192.168.0.6 ping statistics ---\r3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms\r, pipe 3'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { var v4 = 'PING ' + com.args[0] + ' (' + com.args[0] + ') 56(84) bytes of data.' + '\n' + '--- {' + com.args[0] + '} ping statistics ---' + '\n' + '3 packets transmitted, 0 received, 100% packet loss, time ' + Math.round(Math.random() * 50 + 1975) + 'ms'; this.console.setSystemAnswer(v4); this.console.closeRow(); } } } } } } } } } else { if (com.name == 'ifconfig') { if (com.args.length <= 0 or com.args == undefined or com.args[0] == 'eth0' and com.args == 1) { var v4 = 'eth0 Link encap:Ethernet HWaddr 00:04:ED:57:B1:0B\r inet addr:192.168.100.5 Bcast:192.168.100.255 Mask:255.255.255.0\r UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r RX packets:2289172 errors:3 dropped:16 overruns:3 frame:0\r TX packets:1400364 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:3241591663 (3.0 GB) TX bytes:114218439 (108.9 MB)\r Interrupt:19 Base address:0x2c00'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (com.args[0] != 'eth0') { this.console.setSystemAnswer(com.args[0] + ': error fetching interface information: Device not found'); this.console.closeRow(); } else { if (com.args[0] == 'eth0' and (com.args[1] == 'down' or com.args[1] == 'up')) { this.console.setSystemAnswer('SIOCSIFFLAGS: Permission denied'); this.console.closeRow(); } else { var v5 = com.args[1].split('.'); if (v5.length < 4 and com.args[1] != 'localhost') { this.console.setSystemAnswer('Try `man ifconfig\' for more information.'); this.console.closeRow(); } else { this.console.setSystemAnswer('SIOCSIFFLAGS: Permission denied'); this.console.closeRow(); } } } } } else { if (com.name == 'ls') { if (com.args.lenght <= 0) { var v4 = 'pass.txt'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { var v4 = 'bash: ls: ' + com.args[0] + ': No such file or directory.'; this.console.setSystemAnswer(v4); this.console.closeRow(); } } else { if (com.name == 'ps') { var v4 = 'PID TTY TIME CMD\r3444 pts/1 00:00:00 bash\r3501 pts/1 00:00:00 ps'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (com.name == 'sudo') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('usage: sudo <command>'); this.console.closeRow(); } else { this.console.setSu('[sudo] password for root:', 'sudo'); } } else { if (com.name == 'su') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSu('Password:', 'su'); } else { this.console.setSystemAnswer('Unknown id: ' + com.args[0]); this.console.closeRow(); } } else { if (com.name == 'chmod') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man chmod\' for more information.'); this.console.closeRow(); } else { this.console.setSystemAnswer('chmod: Permission denied'); this.console.closeRow(); } } else { if (com.name == 'grep') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man grep\' for more information.'); this.console.closeRow(); } else { this.console.closeRow(); } } else { if (com.name == 'route') { if (com.args.length <= 0 or com.args == undefined) { var v4 = 'Kernel IP routing table\rDestination Gateway Genmask Fl Metric R U Iface\r192.168.100.0 * 255.255.255.0 U 0 0 0 eth0\rdefault 192.168.100.1 0.0.0.0 UG 100 0 0 eth0'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (com.args[0] == 'add') { this.console.setSystemAnswer('SIOCADDRT: Operation not permitted'); this.console.closeRow(); } else { if (com.args[0] == 'del') { this.console.setSystemAnswer('SIOCADDRT: Operation not permitted'); this.console.closeRow(); } else { this.console.setSystemAnswer('Try `man route\' for more information.'); this.console.closeRow(); } } } } else { if (com.name == 'telnet') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('usage: telnet <host>'); this.console.closeRow(); } else { if (com.args[0] == '192.168.100.10' and gameDriver.etap != 'two1') { this.console.setSystemAnswer('Trying 192.168.100.10...\rConnected.'); this.console.keybord.sutype = 'telnet'; this.console.requestLogin(); } else { if (com.args[0] == '192.168.100.10') { this.console.keybord.behavior = keybordProcessor.IDLE; this.console.setSystemAnswer('Trying 192.168.100.10...\rConnected.'); this.console.setSystemAnswerAnim('Login:'); this.console.keybord.sutype = 'telnet'; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.step = 'login'; this.int.symb = 0; this.int.onEnterFrame = function () { ++this.counter; if (this.step == 'login') { if (this.counter >= 2) { this.counter = 0; if (this.symb == 0) { this.console.setSystemSymbolAnim('s'); ++this.symb; } else { if (this.symb == 1) { this.console.setSystemSymbolAnim('u'); ++this.symb; } else { if (this.symb == 2) { this.console.setSystemSymbolAnim('p'); ++this.symb; } else { if (this.symb == 3) { this.console.setSystemSymbolAnim('p'); ++this.symb; } else { if (this.symb == 4) { this.console.setSystemSymbolAnim('o'); ++this.symb; } else { if (this.symb == 5) { this.console.setSystemSymbolAnim('r'); ++this.symb; } else { if (this.symb == 6) { this.console.setSystemSymbolAnim('t'); this.console.setSystemAnswerAnim('Password:'); this.symb = 0; this.step = 'password'; } } } } } } } } } else { if (this.step == 'password') { if (this.counter == 20) { this.console.setSystemAnswer('Welcome to print management.\r* Type "S" to view print spooler\r* Type "C" to clear print spooler\r* Type "Q" to close connection'); this.console.closeRow(); this.console.keybord.behavior = keybordProcessor.PRINTER; delete eval(this.onEnterFrame()); this.removeMovieClip(); } } } }; } else { var v5 = com.args[0].split('.'); if (v5.length < 4 and com.args[0] != 'localhost') { this.console.setSystemAnswer('telnet: could not resolve ' + com.args[0] + ': Name or service not known'); this.console.closeRow(); } else { this.console.setSystemAnswer('Trying ' + com.args[0] + '...' + '\n' + 'telnet: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } } } } else { if (com.name == 'ssh') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man ssh\' for more information.'); this.console.closeRow(); } else { if (com.args.length == 1) { if (com.args[0] == '192.168.100.1') { this.console.keybord.sutype = 'ssh'; this.console.requestLogin(); } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } else { if (com.args.length == 3 and com.args[0] == '-l' and com.args[2] == '192.168.100.1') { this.console.keybord.sutype = 'ssh'; this.console.requestPassword(); } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } } } else { if (com.name == 'cd') { if (com.args.length <= 0 or com.args == undefined) { this.console.closeRow(); } else { if (com.args[0] == '..' or com.args[0] == '/home/sysadmin/' or com.args[0] == '/home/sysadmin') { this.console.closeRow(); } else { this.console.setSystemAnswer('-bash: cd: ' + com.args[0] + ': No such file or directory'); this.console.closeRow(); } } } else { if (com.name == 'apachectl') { this.console.setSystemAnswer('-bash: apachectl: command not found'); this.console.closeRow(); } } } } } } } } } } } } } } } }; _global.levelCommands = v1; var v2 = v1.prototype; ASSetPropFlags(_global.levelCommands.prototype, null, 1); } #endinitclip } movieClip 2681 __Packages.levelCommands2 { #initclip do { } while (_global.levelCommands2); var v1 = function (cons, com) { this.console = cons; this.command = com; this.int = _root.createEmptyMovieClip('int', 9045); if (gameDriver.nowLevel == 3) { if (Console.levelNowServer == 'admin') { if (com.name == 'ping') { if (com.args == undefined or com.args.length <= 0) { this.console.setSystemAnswer('Usage: ping destination'); this.console.closeRow(); } else { if (com.args[0] == '192.168.100.5' or com.args[0] == '192.168.100.1' or com.args[0] == '192.168.100.10' or com.args[0] == '192.168.100.11') { this.console.setSystemAnswer('PING ' + this.command.args[0] + ' (' + this.command.args[0] + ') 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=1 ttl=64 time=1.66 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=2 ttl=64 time=1.00 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=3 ttl=64 time=1.00 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 192.168.100.5 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { if (com.args[0] == '192.168.100.0' or com.args[0] == '192.168.100.255' or com.args[0] == '255.255.255.255') { this.console.setSystemAnswer('Do you want to ping broadcast?'); this.console.closeRow(); } else { if (com.args[0] == '0.0.0.0') { this.console.setSystemAnswer('PING 0.0.0.0 (127.0.0.1) 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.049 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.028 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.030 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 0.0.0.0 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { if (com.args[0] == 'localhost') { this.console.setSystemAnswer('PING localhost (127.0.0.1) 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.049 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.028 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.030 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- localhost ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { if (com.args[0] == '192.168.100.50' or com.args[0] == '192.168.100.70' or com.args[0] == '192.168.100.71' or com.args[0] == '192.168.100.72' or com.args[0] == '192.168.100.73' or com.args[0] == '192.168.100.74' or com.args[0] == '192.168.100.75') { this.console.setSystemAnswer('PING ' + com.args[0] + ' (' + com.args[0] + ') 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from 192.168.100.5: icmp_seq=1 ttl=64 time=1.66 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from 192.168.100.5: icmp_seq=2 ttl=64 time=1.00 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from 192.168.100.5: icmp_seq=3 ttl=64 time=1.00 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 192.168.100.5 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { var v5 = com.args[0].split('.'); if (v5.length < 4) { this.console.setSystemAnswer('ping: unknown host ' + com.args[0]); this.console.closeRow(); } else { if (v5[0] == '192' and v5[1] == '168' and v5[2] == '100') { this.console.setSystemAnswer('PING 192.168.100.' + v5[3] + ' (192.168.100.' + v5[3] + ') 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('From 192.168.100.5 icmp_seq=1 Destination Host Unreachable'); } else { if (this.step == 2) { this.console.setSystemAnswer('From 192.168.100.5 icmp_seq=2 Destination Host Unreachable'); } else { if (this.step == 3) { this.console.setSystemAnswer('From 192.168.100.5 icmp_seq=3 Destination Host Unreachable'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 192.168.0.6 ping statistics ---\r3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms\r, pipe 3'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { var v4 = 'PING ' + com.args[0] + ' (' + com.args[0] + ') 56(84) bytes of data.' + '\n' + '--- {' + com.args[0] + '} ping statistics ---' + '\n' + '3 packets transmitted, 0 received, 100% packet loss, time ' + Math.round(Math.random() * 50 + 1975) + 'ms'; this.console.setSystemAnswer(v4); this.console.closeRow(); } } } } } } } } } else { if (com.name == 'ifconfig') { if (com.args.length <= 0 or com.args == undefined or com.args[0] == 'eth0' and com.args == 1) { var v4 = 'eth0 Link encap:Ethernet HWaddr 00:04:ED:57:B1:0B\r inet addr:192.168.100.5 Bcast:192.168.100.255 Mask:255.255.255.0\r UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r RX packets:2289172 errors:3 dropped:16 overruns:3 frame:0\r TX packets:1400364 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:3241591663 (3.0 GB) TX bytes:114218439 (108.9 MB)\r Interrupt:19 Base address:0x2c00'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (com.args[0] != 'eth0') { this.console.setSystemAnswer(com.args[0] + ': error fetching interface information: Device not found'); this.console.closeRow(); } else { if (com.args[0] == 'eth0' and (com.args[1] == 'down' or com.args[1] == 'up')) { this.console.setSystemAnswer('SIOCSIFFLAGS: Permission denied'); this.console.closeRow(); } else { var v5 = com.args[1].split('.'); if (v5.length < 4 and com.args[1] != 'localhost') { this.console.setSystemAnswer('Try `man ifconfig\' for more information.'); this.console.closeRow(); } else { this.console.setSystemAnswer('SIOCSIFFLAGS: Permission denied'); this.console.closeRow(); } } } } } else { if (com.name == 'ls') { if (com.args.lenght <= 0) { var v4 = 'pass.txt'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { var v4 = 'bash: ls: ' + com.args[0] + ': No such file or directory.'; this.console.setSystemAnswer(v4); this.console.closeRow(); } } else { if (com.name == 'ps') { var v4 = 'PID TTY TIME CMD\r3444 pts/1 00:00:00 bash\r3501 pts/1 00:00:00 ps'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (com.name == 'sudo') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('usage: sudo <command>'); this.console.closeRow(); } else { this.console.setSu('[sudo] password for root:', 'sudo'); } } else { if (com.name == 'su') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSu('Password:', 'su'); } else { this.console.setSystemAnswer('Unknown id: ' + com.args[0]); this.console.closeRow(); } } else { if (com.name == 'chmod') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man chmod\' for more information.'); this.console.closeRow(); } else { this.console.setSystemAnswer('chmod: Permission denied'); this.console.closeRow(); } } else { if (com.name == 'grep') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man grep\' for more information.'); this.console.closeRow(); } else { this.console.closeRow(); } } else { if (com.name == 'route') { if (com.args.length <= 0 or com.args == undefined) { var v4 = 'Kernel IP routing table\rDestination Gateway Genmask Fl Metric R U Iface\r192.168.100.0 * 255.255.255.0 U 0 0 0 eth0\rdefault 192.168.100.1 0.0.0.0 UG 100 0 0 eth0'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (com.args[0] == 'add') { this.console.setSystemAnswer('SIOCADDRT: Operation not permitted'); this.console.closeRow(); } else { if (com.args[0] == 'del') { this.console.setSystemAnswer('SIOCADDRT: Operation not permitted'); this.console.closeRow(); } else { this.console.setSystemAnswer('Try `man route\' for more information.'); this.console.closeRow(); } } } } else { if (com.name == 'telnet') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('usage: telnet <host>'); this.console.closeRow(); } else { var v5 = com.args[0].split('.'); if (v5.length < 4 and com.args[0] != 'localhost') { this.console.setSystemAnswer('telnet: could not resolve ' + com.args[0] + ': Name or service not known'); this.console.closeRow(); } else { this.console.setSystemAnswer('Trying ' + com.args[0] + '...' + '\n' + 'telnet: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } } else { if (com.name == 'ssh') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man ssh\' for more information.'); this.console.closeRow(); } else { if (com.args.length == 1) { if (com.args[0] == '192.168.100.1') { this.console.keybord.behavior = keybordProcessor.IDLE; this.console.setSystemAnswerAnim('Login:'); this.console.keybord.sutype = 'telnet'; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.step = 'login'; this.int.symb = 0; this.int.onEnterFrame = function () { ++this.counter; if (this.step == 'login') { if (this.counter >= 2) { this.counter = 0; if (this.symb == 0) { this.console.setSystemSymbolAnim('a'); ++this.symb; } else { if (this.symb == 1) { this.console.setSystemSymbolAnim('d'); ++this.symb; } else { if (this.symb == 2) { this.console.setSystemSymbolAnim('m'); this.console.setSystemAnswerAnim('Password:'); this.symb = 0; this.step = 'password'; } } } } } else { if (this.step == 'password') { if (this.counter == 20) { this.console.changeServer('serv1'); this.console.closeRow(); delete eval(this.onEnterFrame()); this.removeMovieClip(); } } } }; } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } else { if (com.args.length == 2) { if (com.args[0] == '-l') { if (com.args[1] == '192.168.100.1') { this.console.keybord.sutype = 'ssh'; this.console.requestPassword(); } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } else { if (com.args.length == 3) { if (com.args[0] == '-l' and com.args[1] == 'adm' and com.args[2] == '192.168.100.1') { this.console.keybord.behavior = keybordProcessor.IDLE; this.console.setSystemAnswerAnim('Password:'); this.console.keybord.sutype = 'telnet'; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.step = 'password'; this.int.symb = 0; this.int.onEnterFrame = function () { ++this.counter; if (this.step == 'password') { if (this.counter == 20) { this.console.changeServer('serv1'); this.console.closeRow(); delete eval(this.onEnterFrame()); this.removeMovieClip(); } } }; } else { if (com.args[0] == '-l' and com.args[1] != 'adm' and com.args[2] == '192.168.100.1') { this.console.keybord.sutype = 'ssh'; this.console.requestPassword(); } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } } } } else { if (com.name == 'cd') { if (com.args.length <= 0 or com.args == undefined) { this.console.closeRow(); } else { if (com.args[0] == '..' or com.args[0] == '/home/sysadmin/' or com.args[0] == '/home/sysadmin') { this.console.closeRow(); } else { this.console.setSystemAnswer('-bash: cd: ' + com.args[0] + ': No such file or directory'); this.console.closeRow(); } } } else { if (com.name == 'apachectl') { this.console.setSystemAnswer('-bash: apachectl: command not found'); this.console.closeRow(); } } } } } } } } } } } } } } else { if (Console.levelNowServer == 'serv1') { if (com.name == 'ping') { if (com.args == undefined or com.args.length <= 0) { this.console.setSystemAnswer('Usage: ping destination'); this.console.closeRow(); } else { if (com.args[0] == '192.168.100.5' or com.args[0] == '192.168.100.1' or com.args[0] == '192.168.100.10' or com.args[0] == '192.168.100.11') { if (Console.level3_eth1 == true) { this.console.setSystemAnswer('PING ' + this.command.args[0] + ' (' + this.command.args[0] + ') 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=1 ttl=64 time=1.66 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=2 ttl=64 time=1.00 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=3 ttl=64 time=1.00 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 192.168.100.5 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { this.console.setSystemAnswer('connect: Network is unreachable'); this.console.closeRow(); } } else { if (com.args[0] == '192.168.100.0' or com.args[0] == '192.168.100.255' or com.args[0] == '255.255.255.255') { if (Console.level3_eth1 == true) { this.console.setSystemAnswer('Do you want to ping broadcast?'); this.console.closeRow(); } else { this.console.setSystemAnswer('connect: Network is unreachable'); this.console.closeRow(); } } } } if (com.args == undefined or com.args.length <= 0) { this.console.setSystemAnswer('Usage: ping destination'); this.console.closeRow(); } else { if (com.args[0] == '255.255.255.255') { this.console.setSystemAnswer('Do you want to ping broadcast?'); this.console.closeRow(); } else { if (com.args[0] == '0.0.0.0') { this.console.setSystemAnswer('PING 0.0.0.0 (127.0.0.1) 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.049 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.028 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.030 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 0.0.0.0 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { if (com.args[0] == 'localhost') { this.console.setSystemAnswer('PING localhost (127.0.0.1) 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.049 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.028 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.030 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- localhost ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { var v5 = com.args[0].split('.'); if (v5.length < 4) { this.console.setSystemAnswer('ping: unknown host ' + com.args[0]); this.console.closeRow(); } else { if (v5[0] == '192' and v5[1] == '168') { this.console.setSystemAnswer('Network is unreachable'); this.console.closeRow(); } else { var v4 = 'PING ' + com.args[0] + ' (' + com.args[0] + ') 56(84) bytes of data.' + '\n' + '--- {' + com.args[0] + '} ping statistics ---' + '\n' + '3 packets transmitted, 0 received, 100% packet loss, time ' + Math.round(Math.random() * 50 + 1975) + 'ms'; this.console.setSystemAnswer(v4); this.console.closeRow(); } } } } } } } else { if (com.name == 'ifconfig') { if (com.args[0] == 'eth1' and com.args == 1) { if (Console.level3_eth0 == true) { var v4 = 'eth1 Link encap:Ethernet HWaddr 00:1D:60:57:61:2С \r inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0\r UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r RX packets:40779 errors:0 dropped:0 overruns:0 frame:0\r TX packets:26642 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:36111153 (34.4 MB) TX bytes:2450486 (2.3 MB)\r Interrupt:19 Base address:0x4c00'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (Console.level3_eth0 == false) { var v4 = 'eth1 Link encap:Ethernet HWaddr 00:1D:60:57:61:2С \r inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0\r BROADCAST MULTICAST MTU:1500 Metric:1\r RX packets:40779 errors:0 dropped:0 overruns:0 frame:0\r TX packets:26642 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:36111153 (34.4 MB) TX bytes:2450486 (2.3 MB)\r Interrupt:19 Base address:0x4c00'; this.console.setSystemAnswer(v4); this.console.closeRow(); } } } else { if (com.args[0] == 'eth0' and com.args == 1) { if (Console.level3_eth1 == false) { var v4 = 'eth0 Link encap:Ethernet HWaddr 00:1D:60:30:21:A2 \r inet addr:192.168.0.17 Bcast:192.168.0.255 Mask:255.255.255.0\r BROADCAST MULTICAST MTU:1500 Metric:1\r RX packets:877 errors:0 dropped:0 overruns:0 frame:0\r TX packets:350 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:334151 (3.5 MB) TX bytes:24504 (1.1 MB)\r Interrupt:19 Base address:0x4c00'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (Console.level3_eth1 == true) { var v4 = 'eth0 Link encap:Ethernet HWaddr 00:1D:60:30:21:A2 \r inet addr:192.168.0.17 Bcast:192.168.0.255 Mask:255.255.255.0\r UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r RX packets:877 errors:0 dropped:0 overruns:0 frame:0\r TX packets:350 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:334151 (3.5 MB) TX bytes:24504 (1.1 MB)\r Interrupt:19 Base address:0x4c00'; this.console.setSystemAnswer(v4); this.console.closeRow(); } } } else { if (com.args.length <= 0 or com.args == undefined or com.args[0] == '-a') { if (Console.level3_eth0 == false and Console.level3_eth1 == true) { var v4 = 'eth1 Link encap:Ethernet HWaddr 00:1D:60:57:61:2С \r inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0\r UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r RX packets:40779 errors:0 dropped:0 overruns:0 frame:0\r TX packets:26642 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:36111153 (34.4 MB) TX bytes:2450486 (2.3 MB)\r Interrupt:19 Base address:0x4c00'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (Console.level3_eth0 == false and Console.level3_eth1 == false) { var v4 = 'eth1 Link encap:Ethernet HWaddr 00:1D:60:57:61:2С \r inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0\r BROADCAST MULTICAST MTU:1500 Metric:1\r RX packets:40779 errors:0 dropped:0 overruns:0 frame:0\r TX packets:26642 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:36111153 (34.4 MB) TX bytes:2450486 (2.3 MB)\r Interrupt:19 Base address:0x4c00'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (Console.level3_eth0 == true and Console.level3_eth1 == false) { var v4 = 'eth1 Link encap:Ethernet HWaddr 00:1D:60:57:61:2С \r inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0\r BROADCAST MULTICAST MTU:1500 Metric:1\r RX packets:40779 errors:0 dropped:0 overruns:0 frame:0\r TX packets:26642 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:36111153 (34.4 MB) TX bytes:2450486 (2.3 MB)\r Interrupt:19 Base address:0x4c00'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (Console.level3_eth0 == true and Console.level3_eth1 == true) { var v4 = 'eth1 Link encap:Ethernet HWaddr 00:1D:60:57:61:2С \r inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0\r UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r RX packets:40779 errors:0 dropped:0 overruns:0 frame:0\r TX packets:26642 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:36111153 (34.4 MB) TX bytes:2450486 (2.3 MB)\r Interrupt:19 Base address:0x4c00'; this.console.setSystemAnswer(v4); this.console.closeRow(); } } } } } else { if (com.args[0] != 'eth0' and com.args[0] != 'eth1') { this.console.setSystemAnswer(com.args[0] + ': error fetching interface information: Device not found'); this.console.closeRow(); } else { if ((com.args[0] == 'eth0' or com.args[0] == 'eth1') and (com.args[1] == 'down' or com.args[1] == 'up')) { this.console.setSystemAnswer('SIOCSIFFLAGS: Permission denied'); this.console.closeRow(); } else { var v5 = com.args[1].split('.'); if (v5.length < 4 and com.args[1] != 'localhost') { this.console.setSystemAnswer('Try `man ifconfig\' for more information.'); this.console.closeRow(); } else { this.console.setSystemAnswer('SIOCSIFFLAGS: Permission denied'); this.console.closeRow(); } } } } } } } else { if (com.name == 'ls') { var v4 = 'pidgin-guifications_2.14-3_i386.deb\r??????? - black.mp3\r??????? - black normal.mp3 \r??????? - cemetary.mp3 \r??????? - ? ?????? ? ????.mp3 \r????????? - ? ????????? ??? ??????.mp3 \r??????? - ?? ????.mp3 \r??????? - ???? ? ???????.mp3 \r??????? - ????? ? ????????????.mp3 \r??????? - ????? ?????.mp3 \r??????? - ????? ????.mp3 \r??????? - ????? ????.mp3 \r??????? - ?????????.mp3 \r??????? - ????????????.mp3 \r??????? - ??????????.mp3 \r??????? - ??????????? ????.mp3 \r??????? - ????????? ??.mp3 \r??????? - ????????? ??? ??????.mp3 \r??????? - ?????????????.mp3 \r??????? - ???????????????3.mp3 \r??????? - ????????? zsc.mp3 \r??????? - ?????.mp3 \r??????? - ?????.mp3 \r??????? - redivider.mp3 \r??????? - Waiting for tomorrow.mp3 \r??? ?????? - SHAKE.mp3 \r??????? - ??? ???? ? ???????.mp3 \r??????? - ????? ???.mp3 \r??????? - ??????.mp3 \r??????? - ?????.mp3 \r??????? - ?????.mp3'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (com.name == 'ps') { var v4 = 'PID TTY TIME CMD\r3444 pts/1 00:00:00 bash\r3501 pts/1 00:00:00 ps'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (com.name == 'sudo') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('usage: sudo <command>'); this.console.closeRow(); } else { if (com.args[0] == 'ifconfig') { if (com.args[1] == 'eth1' and com.args.length == 2) { if (Console.level3_eth1 == true) { var v4 = 'eth1 Link encap:Ethernet HWaddr 00:1D:60:57:61:2С \r inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0\r UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r RX packets:40779 errors:0 dropped:0 overruns:0 frame:0\r TX packets:26642 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:36111153 (34.4 MB) TX bytes:2450486 (2.3 MB)\r Interrupt:19 Base address:0x4c00'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (Console.level3_eth1 == false) { var v4 = 'eth1 Link encap:Ethernet HWaddr 00:1D:60:57:61:2С \r inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0\r BROADCAST MULTICAST MTU:1500 Metric:1\r RX packets:40779 errors:0 dropped:0 overruns:0 frame:0\r TX packets:26642 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:36111153 (34.4 MB) TX bytes:2450486 (2.3 MB)\r Interrupt:19 Base address:0x4c00'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { this.console.closeRow(); } } } else { if (com.args[1] == 'eth0' and com.args.length == 2) { if (Console.level3_eth0 == false) { var v4 = 'eth0 Link encap:Ethernet HWaddr 00:1D:60:30:21:A2 \r inet addr:192.168.0.17 Bcast:192.168.0.255 Mask:255.255.255.0\r BROADCAST MULTICAST MTU:1500 Metric:1\r RX packets:877 errors:0 dropped:0 overruns:0 frame:0\r TX packets:350 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:334151 (3.5 MB) TX bytes:24504 (1.1 MB)\r Interrupt:19 Base address:0x4c00'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (Console.level3_eth0 == true) { var v4 = 'eth0 Link encap:Ethernet HWaddr 00:1D:60:30:21:A2 \r inet addr:192.168.0.17 Bcast:192.168.0.255 Mask:255.255.255.0\r UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r RX packets:877 errors:0 dropped:0 overruns:0 frame:0\r TX packets:350 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:334151 (3.5 MB) TX bytes:24504 (1.1 MB)\r Interrupt:19 Base address:0x4c00'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { this.console.closeRow(); } } } else { if (com.args[1] == '-a') { if (Console.level3_eth0 == false and Console.level3_eth1 == true) { var v4 = 'eth0 Link encap:Ethernet HWaddr 00:1D:60:30:21:A2 \r inet addr:192.168.0.17 Bcast:192.168.0.255 Mask:255.255.255.0\r BROADCAST MULTICAST MTU:1500 Metric:1\r RX packets:877 errors:0 dropped:0 overruns:0 frame:0\r TX packets:350 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:334151 (3.5 MB) TX bytes:24504 (1.1 MB)\r Interrupt:19 Base address:0x4c00\reth1 Link encap:Ethernet HWaddr 00:1D:60:57:61:2С \r inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0\r UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r RX packets:40779 errors:0 dropped:0 overruns:0 frame:0\r TX packets:26642 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:36111153 (34.4 MB) TX bytes:2450486 (2.3 MB)\r Interrupt:19 Base address:0x4c00'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (Console.level3_eth0 == false and Console.level3_eth1 == false) { var v4 = 'eth0 Link encap:Ethernet HWaddr 00:1D:60:30:21:A2 \r inet addr:192.168.0.17 Bcast:192.168.0.255 Mask:255.255.255.0\r BROADCAST MULTICAST MTU:1500 Metric:1\r RX packets:877 errors:0 dropped:0 overruns:0 frame:0\r TX packets:350 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:334151 (3.5 MB) TX bytes:24504 (1.1 MB)\r Interrupt:19 Base address:0x4c00\reth1 Link encap:Ethernet HWaddr 00:1D:60:57:61:2С \r inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0\r BROADCAST MULTICAST MTU:1500 Metric:1\r RX packets:40779 errors:0 dropped:0 overruns:0 frame:0\r TX packets:26642 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:36111153 (34.4 MB) TX bytes:2450486 (2.3 MB)\r Interrupt:19 Base address:0x4c00'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (Console.level3_eth0 == true and Console.level3_eth1 == false) { var v4 = 'eth0 Link encap:Ethernet HWaddr 00:1D:60:30:21:A2 \r inet addr:192.168.0.17 Bcast:192.168.0.255 Mask:255.255.255.0\r UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r RX packets:877 errors:0 dropped:0 overruns:0 frame:0\r TX packets:350 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:334151 (3.5 MB) TX bytes:24504 (1.1 MB)\r Interrupt:19 Base address:0x4c00\reth1 Link encap:Ethernet HWaddr 00:1D:60:57:61:2С \r inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0\r BROADCAST MULTICAST MTU:1500 Metric:1\r RX packets:40779 errors:0 dropped:0 overruns:0 frame:0\r TX packets:26642 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:36111153 (34.4 MB) TX bytes:2450486 (2.3 MB)\r Interrupt:19 Base address:0x4c00'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (Console.level3_eth0 == true and Console.level3_eth1 == true) { var v4 = 'eth0 Link encap:Ethernet HWaddr 00:1D:60:30:21:A2 \r inet addr:192.168.0.17 Bcast:192.168.0.255 Mask:255.255.255.0\r UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r RX packets:877 errors:0 dropped:0 overruns:0 frame:0\r TX packets:350 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:334151 (3.5 MB) TX bytes:24504 (1.1 MB)\r Interrupt:19 Base address:0x4c00\reth1 Link encap:Ethernet HWaddr 00:1D:60:57:61:2С \r inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0\r UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r RX packets:40779 errors:0 dropped:0 overruns:0 frame:0\r TX packets:26642 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:36111153 (34.4 MB) TX bytes:2450486 (2.3 MB)\r Interrupt:19 Base address:0x4c00'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { this.console.closeRow(); } } } } } else { if (com.args[1] != 'eth0' and com.args[1] != 'eth1') { this.console.setSystemAnswer(com.args[0] + ': error fetching interface information: Device not found'); this.console.closeRow(); } else { if (com.args[1] == 'eth0' and com.args[2] == 'up') { Console.level3_eth0 = true; Console.level3_route = true; if (gameDriver.etap == 'three1') { gameDriver.endOfLevel(3); } this.console.closeRow(); } else { if (com.args[1] == 'eth0' and com.args[2] == 'down') { Console.level3_eth0 = false; this.console.closeRow(); } else { if (com.args[1] == 'eth1' and com.args[2] == 'up') { Console.level3_eth1 = true; this.console.closeRow(); } else { if (com.args[1] == 'eth1' and com.args[2] == 'down') { Console.level3_eth1 = false; this.console.closeRow(); } else { if (com.args[1] == 'eth0' and com.args[2] == '192.168.0.17' and com.args[3] == 'netmask' and com.args[4] == '255.255.255.240' and com.args[5] == 'gw' and com.args[6] == '192.168 0.26' and com.args[7] == 'up') { if (gameDriver.etap == 'three1') { gameDriver.endOfLevel(3); } this.console.closeRow(); } else { if (com.args[1] == 'eth0' and com.args[2] == '192.168.0.17' and com.args[3] == 'netmask' and com.args[4] == '255.255.255.240' and com.args[5] == 'up') { if (gameDriver.etap == 'three1') { gameDriver.endOfLevel(3); } this.console.closeRow(); } else { if (com.args[1] == 'eth0' and com.args[2] == '192.168.0.17' and com.args[3] == 'netmask' and com.args[4] == '255.255.255.240') { this.console.closeRow(); } else { if (com.args[1] == 'eth0' and com.args[2] == '192.168.0.17') { this.console.closeRow(); } else { var v5 = com.args[1].split('.'); if (v5.length < 4 and com.args[1] != 'localhost') { this.console.setSystemAnswer('Try `man ifconfig\' for more information.'); this.console.closeRow(); } else { this.console.setSystemAnswer('SIOCSIFFLAGS: Permission denied'); this.console.closeRow(); } } } } } } } } } } } } } } else { if (com.args[0] == 'route') { if (com.args.length == 1) { if (Console.level3_eth0 == true and Console.level3_eth1 == true) { var v4 = 'Kernel IP routing table\rDestination Gateway Genmask Fl Metric R U Iface\r192.168.0.0 * 255.255.255.0 U 0 0 0 eth0\r192.168.100.0 * 255.255.0.0 U 1000 0 0 eth1'; if (Console.level3_route) { v4 += 'default 192.168.0.26 0.0.0.0 UG 0 0 0 eth0'; } this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (Console.level3_eth0 == false and Console.level3_eth1 == true) { var v4 = 'Kernel IP routing table\rDestination Gateway Genmask Fl Metric R U Iface\r192.168.100.0 * 255.255.0.0 U 1000 0 0 eth1'; if (Console.level3_route) { v4 += 'default 192.168.0.26 0.0.0.0 UG 0 0 0 eth0'; } this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (Console.level3_eth0 == true and Console.level3_eth1 == false) { var v4 = 'Kernel IP routing table\rDestination Gateway Genmask Fl Metric R U Iface\r192.168.0.0 * 255.255.255.0 U 0\t 0 0 eth0'; if (Console.level3_route) { v4 += 'default 192.168.0.26 0.0.0.0 UG 0 0 0 eth0'; } this.console.setSystemAnswer(v4); this.console.closeRow(); } else { var v4 = 'Kernel IP routing table\rDestination Gateway Genmask Fl Metric R U Iface'; if (Console.level3_route) { v4 += 'default 192.168.0.26 0.0.0.0 UG 0 0 0 eth0'; } this.console.setSystemAnswer(v4); this.console.closeRow(); } } } } else { if (com.args[1] == 'add') { this.console.setSystemAnswer('SIOCADDRT: Operation not permitted'); this.console.closeRow(); } else { if (com.args[1] == 'del') { this.console.setSystemAnswer('SIOCADDRT: Operation not permitted'); this.console.closeRow(); } else { this.console.setSystemAnswer('Try `man route\' for more information.'); this.console.closeRow(); } } } } else { this.console.setSystemAnswer('usage: sudo <command>'); this.console.closeRow(); } } } } else { if (com.name == 'su') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSu('Password:', 'su'); } else { if (com.args[0] == 'ifconfig') { if (com.args[1] == 'eth0') { if (com.args[2] == 'up') { Console.level3_eth0 = true; this.console.closeRow(); } else { if (com.args[2] == 'down') { Console.level3_eth0 = false; this.console.closeRow(); } else { this.console.closeRow(); } } } else { if (com.args[1] == 'eth1') { if (com.args[2] == 'up') { Console.level3_eth1 = true; this.console.closeRow(); } else { if (com.args[2] == 'down') { Console.level3_eth1 = false; this.console.closeRow(); } else { this.console.closeRow(); } } } else { this.console.closeRow(); } } } else { this.console.setSystemAnswer('Unknown id: ' + com.args[0]); this.console.closeRow(); } } } else { if (com.name == 'chmod') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man chmod\' for more information.'); this.console.closeRow(); } else { this.console.setSystemAnswer('chmod: Permission denied'); this.console.closeRow(); } } else { if (com.name == 'grep') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man grep\' for more information.'); this.console.closeRow(); } else { this.console.closeRow(); } } else { if (com.name == 'route') { if (com.args.length <= 0 or com.args == undefined) { if (Console.level3_eth0 == true and Console.level3_eth1 == true) { var v4 = 'Kernel IP routing table\rDestination Gateway Genmask Fl Metric R U Iface\r192.168.0.0 * 255.255.255.0 U 0 0 0 eth0\r192.168.100.0 * 255.255.0.0 U 1000 0 0 eth1'; if (Console.level3_route) { v4 += 'default 192.168.0.26 0.0.0.0 UG 0 0 0 eth0'; } this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (Console.level3_eth0 == false and Console.level3_eth1 == true) { var v4 = 'Kernel IP routing table\rDestination Gateway Genmask Fl Metric R U Iface\r192.168.100.0 * 255.255.0.0 U 1000 0 0 eth1'; if (Console.level3_route) { v4 += 'default 192.168.0.26 0.0.0.0 UG 0 0 0 eth0'; } this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (Console.level3_eth0 == true and Console.level3_eth1 == false) { var v4 = 'Kernel IP routing table\rDestination Gateway Genmask Fl Metric R U Iface\r192.168.0.0 * 255.255.255.0 U 0\t 0 0 eth0'; if (Console.level3_route) { v4 += 'default 192.168.0.26 0.0.0.0 UG 0 0 0 eth0'; } this.console.setSystemAnswer(v4); this.console.closeRow(); } else { var v4 = 'Kernel IP routing table\rDestination Gateway Genmask Fl Metric R U Iface'; if (Console.level3_route) { v4 += 'default 192.168.0.26 0.0.0.0 UG 0 0 0 eth0'; } this.console.setSystemAnswer(v4); this.console.closeRow(); } } } } else { if (com.args[0] == 'add' and com.args[1] == 'default' and com.args[2] == 'gw' and com.args[3] == '192.168.0.26') { this.console.setSystemAnswer('SIOCADDRT: Operation not permitted'); this.console.closeRow(); } else { if (com.args[0] == 'add') { this.console.setSystemAnswer('SIOCADDRT: Operation not permitted'); this.console.closeRow(); } else { if (com.args[0] == 'del') { this.console.setSystemAnswer('SIOCADDRT: Operation not permitted'); this.console.closeRow(); } else { this.console.setSystemAnswer('Try `man route\' for more information.'); this.console.closeRow(); } } } } } else { if (com.name == 'telnet') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('usage: telnet <host>'); this.console.closeRow(); } else { var v5 = com.args[0].split('.'); if (v5.length < 4 and com.args[0] != 'localhost') { this.console.setSystemAnswer('telnet: could not resolve ' + com.args[0] + ': Name or service not known'); this.console.closeRow(); } else { this.console.setSystemAnswer('Trying ' + com.args[0] + '...' + '\n' + 'telnet: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } } else { if (com.name == 'ssh') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man ssh\' for more information.'); this.console.closeRow(); } else { if (com.args.length == 1) { if (com.args[0] == '192.168.100.1') { this.console.keybord.sutype = 'ssh'; this.console.requestLogin(); } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } else { if (com.args.length == 3 and com.args[0] == '-l' and com.args[2] == '192.168.100.1') { this.console.keybord.sutype = 'ssh'; this.console.requestPassword(); } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } } } else { if (com.name == 'cd') { if (com.args.length <= 0 or com.args == undefined) { this.console.closeRow(); } else { if (com.args[0] == '..' or com.args[0] == '/home/sysadmin/' or com.args[0] == '/home/sysadmin') { this.console.closeRow(); } else { this.console.setSystemAnswer('-bash: cd: ' + com.args[0] + ': No such file or directory'); this.console.closeRow(); } } } else { if (com.name == 'apachectl') { this.console.setSystemAnswer('-bash: apachectl: command not found'); this.console.closeRow(); } } } } } } } } } } } } } } else { this.console.timeoutClose(); } } } else { if (gameDriver.nowLevel == 4) { if (Console.levelNowServer == 'admin') { if (com.name == 'ping') { if (com.args == undefined or com.args.length <= 0) { this.console.setSystemAnswer('Usage: ping destination'); this.console.closeRow(); } else { if (com.args[0] == '192.168.0.20') { this.console.setSystemAnswer('PING ' + this.command.args[0] + ' (' + this.command.args[0] + ') 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from 192.168.0.20: icmp_seq=1 ttl=64 time=1.66 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from 192.168.0.20: icmp_seq=2 ttl=64 time=1.00 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from 192.168.0.20: icmp_seq=3 ttl=64 time=1.00 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 192.168.0.20 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { if (com.args[0] == '192.168.0.21' or com.args[0] == '192.168.0.28' or com.args[0] == '192.168.0.21') { this.console.setSystemAnswer('PING ' + this.command.args[0] + ' (' + this.command.args[0] + ') 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=1 ttl=64 time=1.66 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=2 ttl=64 time=1.00 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=3 ttl=64 time=1.00 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 192.168.100.5 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { if (com.args[0] == '192.168.100.5' or com.args[0] == '192.168.100.1' or com.args[0] == '192.168.100.10' or com.args[0] == '192.168.100.11') { this.console.setSystemAnswer('PING ' + this.command.args[0] + ' (' + this.command.args[0] + ') 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=1 ttl=64 time=1.66 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=2 ttl=64 time=1.00 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=3 ttl=64 time=1.00 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 192.168.100.5 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { if (com.args[0] == '192.168.100.0' or com.args[0] == '192.168.100.255' or com.args[0] == '255.255.255.255') { this.console.setSystemAnswer('Do you want to ping broadcast?'); this.console.closeRow(); } else { if (com.args[0] == '0.0.0.0') { this.console.setSystemAnswer('PING 0.0.0.0 (127.0.0.1) 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.049 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.028 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.030 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 0.0.0.0 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { if (com.args[0] == 'localhost') { this.console.setSystemAnswer('PING localhost (127.0.0.1) 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.049 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.028 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.030 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- localhost ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { if (com.args[0] == '192.168.100.50' or com.args[0] == '192.168.100.70' or com.args[0] == '192.168.100.71' or com.args[0] == '192.168.100.72' or com.args[0] == '192.168.100.73' or com.args[0] == '192.168.100.74' or com.args[0] == '192.168.100.75') { this.console.setSystemAnswer('PING ' + com.args[0] + ' (' + com.args[0] + ') 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from 192.168.100.5: icmp_seq=1 ttl=64 time=1.66 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from 192.168.100.5: icmp_seq=2 ttl=64 time=1.00 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from 192.168.100.5: icmp_seq=3 ttl=64 time=1.00 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 192.168.100.5 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { var v5 = com.args[0].split('.'); if (v5.length < 4) { this.console.setSystemAnswer('ping: unknown host ' + com.args[0]); this.console.closeRow(); } else { if (v5[0] == '192' and v5[1] == '168' and v5[2] == '100') { this.console.setSystemAnswer('PING 192.168.100.' + v5[3] + ' (192.168.100.' + v5[3] + ') 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('From 192.168.100.5 icmp_seq=1 Destination Host Unreachable'); } else { if (this.step == 2) { this.console.setSystemAnswer('From 192.168.100.5 icmp_seq=2 Destination Host Unreachable'); } else { if (this.step == 3) { this.console.setSystemAnswer('From 192.168.100.5 icmp_seq=3 Destination Host Unreachable'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 192.168.0.6 ping statistics ---\r3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms\r, pipe 3'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { var v4 = 'PING ' + com.args[0] + ' (' + com.args[0] + ') 56(84) bytes of data.' + '\n' + '--- {' + com.args[0] + '} ping statistics ---' + '\n' + '3 packets transmitted, 0 received, 100% packet loss, time ' + Math.round(Math.random() * 50 + 1975) + 'ms'; this.console.setSystemAnswer(v4); this.console.closeRow(); } } } } } } } } } } } else { if (com.name == 'ifconfig') { if (com.args.length <= 0 or com.args == undefined or com.args[0] == 'eth0' and com.args == 1) { var v4 = 'eth0 Link encap:Ethernet HWaddr 00:04:ED:57:B1:0B\r inet addr:192.168.100.5 Bcast:192.168.100.255 Mask:255.255.255.0\r UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r RX packets:2289172 errors:3 dropped:16 overruns:3 frame:0\r TX packets:1400364 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:3241591663 (3.0 GB) TX bytes:114218439 (108.9 MB)\r Interrupt:19 Base address:0x2c00'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (com.args[0] != 'eth0') { this.console.setSystemAnswer(com.args[0] + ': error fetching interface information: Device not found'); this.console.closeRow(); } else { if (com.args[0] == 'eth0' and (com.args[1] == 'down' or com.args[1] == 'up')) { this.console.setSystemAnswer('SIOCSIFFLAGS: Permission denied'); this.console.closeRow(); } else { var v5 = com.args[1].split('.'); if (v5.length < 4 and com.args[1] != 'localhost') { this.console.setSystemAnswer('Try `man ifconfig\' for more information.'); this.console.closeRow(); } else { this.console.setSystemAnswer('SIOCSIFFLAGS: Permission denied'); this.console.closeRow(); } } } } } else { if (com.name == 'ls') { if (com.args.length <= 0) { var v4 = 'pass.txt'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { this.console.setSystemAnswer('bash: ls: ' + com.args[0] + ': No such file or directory'); this.console.closeRow(); } } else { if (com.name == 'ps') { var v4 = 'PID TTY TIME CMD\r3444 pts/1 00:00:00 bash\r3501 pts/1 00:00:00 ps'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (com.name == 'sudo') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('usage: sudo <command>'); this.console.closeRow(); } else { this.console.setSu('[sudo] password for root:', 'sudo'); } } else { if (com.name == 'su') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSu('Password:', 'su'); } else { this.console.setSystemAnswer('Unknown id: ' + com.args[0]); this.console.closeRow(); } } else { if (com.name == 'chmod') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man chmod\' for more information.'); this.console.closeRow(); } else { this.console.setSystemAnswer('chmod: Permission denied'); this.console.closeRow(); } } else { if (com.name == 'grep') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man grep\' for more information.'); this.console.closeRow(); } else { if (com.args[0] == 'kotenok_mur' and (com.args[1] == 'pass.txt' or com.args[1] == '/home/admin/pass.txt')) { this.console.setSystemAnswer('login: kotenok_mur pass: kotenok_mur'); this.console.closeRow(); if (gameDriver.etap == 'four1') { gameDriver.endOfLevel(4); } } else { this.console.closeRow(); } } } else { if (com.name == 'route') { if (com.args.length <= 0 or com.args == undefined) { var v4 = 'Kernel IP routing table\rDestination Gateway Genmask Fl Metric R U Iface\r192.168.100.0 * 255.255.255.0 U 0 0 0 eth0\rdefault 192.168.100.1 0.0.0.0 UG 100 0 0 eth0'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (com.args[0] == 'add') { this.console.setSystemAnswer('SIOCADDRT: Operation not permitted'); this.console.closeRow(); } else { if (com.args[0] == 'del') { this.console.setSystemAnswer('SIOCADDRT: Operation not permitted'); this.console.closeRow(); } else { this.console.setSystemAnswer('Try `man route\' for more information.'); this.console.closeRow(); } } } } else { if (com.name == 'telnet') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('usage: telnet <host>'); this.console.closeRow(); } else { if (com.args[0] == '192.168.100.10') { this.console.keybord.behavior = keybordProcessor.IDLE; this.console.setSystemAnswer('Trying 192.168.100.10...\rConnected.'); this.console.setSystemAnswerAnim('Login:'); this.console.keybord.sutype = 'telnet'; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.step = 'login'; this.int.symb = 0; this.int.onEnterFrame = function () { ++this.counter; if (this.step == 'login') { if (this.counter >= 2) { this.counter = 0; if (this.symb == 0) { this.console.setSystemSymbolAnim('s'); ++this.symb; } else { if (this.symb == 1) { this.console.setSystemSymbolAnim('u'); ++this.symb; } else { if (this.symb == 2) { this.console.setSystemSymbolAnim('p'); ++this.symb; } else { if (this.symb == 3) { this.console.setSystemSymbolAnim('p'); ++this.symb; } else { if (this.symb == 4) { this.console.setSystemSymbolAnim('o'); ++this.symb; } else { if (this.symb == 5) { this.console.setSystemSymbolAnim('r'); ++this.symb; } else { if (this.symb == 6) { this.console.setSystemSymbolAnim('t'); this.console.setSystemAnswerAnim('Password:'); this.symb = 0; this.step = 'password'; } } } } } } } } } else { if (this.step == 'password') { if (this.counter == 20) { this.console.setSystemAnswer('Welcome to print management.\r* Type "S" to view print spooler\r* Type "C" to clear print spooler\r* Type "Q" to close connection'); this.console.closeRow(); this.console.keybord.behavior = keybordProcessor.PRINTER; delete eval(this.onEnterFrame()); this.removeMovieClip(); } } } }; } else { var v5 = com.args[0].split('.'); if (v5.length < 4 and com.args[0] != 'localhost') { this.console.setSystemAnswer('telnet: could not resolve ' + com.args[0] + ': Name or service not known'); this.console.closeRow(); } else { this.console.setSystemAnswer('Trying ' + com.args[0] + '...' + '\n' + 'telnet: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } } } else { if (com.name == 'ssh') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man ssh\' for more information.'); this.console.closeRow(); } else { if (com.args.length == 1) { if (com.args[0] == '192.168.100.1' or com.args[0] == '192.168.0.21' or com.args[0] == '192.168.0.26') { this.console.keybord.sutype = 'ssh'; this.console.requestLogin(); } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } else { if (com.args.length == 3 and com.args[0] == '-l' and com.args[2] == '192.168.100.1') { this.console.keybord.sutype = 'ssh'; this.console.requestPassword(); } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } } } else { if (com.name == 'cd') { if (com.args.length <= 0 or com.args == undefined) { this.console.closeRow(); } else { if (com.args[0] == '..' or com.args[0] == '/home/sysadmin/' or com.args[0] == '/home/sysadmin') { this.console.closeRow(); } else { this.console.setSystemAnswer('-bash: cd: ' + com.args[0] + ': No such file or directory'); this.console.closeRow(); } } } else { if (com.name == 'apachectl') { this.console.setSystemAnswer('-bash: apachectl: command not found'); this.console.closeRow(); } } } } } } } } } } } } } } else { if (Console.levelNowServer == 'serv1') { if (com.name == 'ping') { if (com.args == undefined or com.args.length <= 0) { this.console.setSystemAnswer('Usage: ping destination'); this.console.closeRow(); } else { var v5 = com.args[0].split('.'); if (v5.length < 4) { this.console.setSystemAnswer('ping: unknown host ' + com.args[0]); this.console.closeRow(); } else { if (v5[0] == '192' and v5[1] == '168') { this.console.setSystemAnswer('Network is unreachable'); this.console.closeRow(); } else { var v4 = 'PING ' + com.args[0] + ' (' + com.args[0] + ') 56(84) bytes of data.' + '\n' + '--- {' + com.args[0] + '} ping statistics ---' + '\n' + '3 packets transmitted, 0 received, 100% packet loss, time 2010ms'; this.console.setSystemAnswer(v4); this.console.closeRow(); } } } } else { if (com.name == 'ifconfig') { this.console.setSystemAnswer('SIOCSIFFLAGS: Permission denied'); this.console.closeRow(); } else { if (com.name == 'ls') { var v4 = 'pidgin-guifications_2.14-3_i386.deb\r??????? - black.mp3\r??????? - black normal.mp3 \r??????? - cemetary.mp3 \r??????? - ? ?????? ? ????.mp3 \r????????? - ? ????????? ??? ??????.mp3 \r??????? - ?? ????.mp3 \r??????? - ???? ? ???????.mp3 \r??????? - ????? ? ????????????.mp3 \r??????? - ????? ?????.mp3 \r??????? - ????? ????.mp3 \r??????? - ????? ????.mp3 \r??????? - ?????????.mp3 \r??????? - ????????????.mp3 \r??????? - ??????????.mp3 \r??????? - ??????????? ????.mp3 \r??????? - ????????? ??.mp3 \r??????? - ????????? ??? ??????.mp3 \r??????? - ?????????????.mp3 \r??????? - ???????????????3.mp3 \r??????? - ????????? zsc.mp3 \r??????? - ?????.mp3 \r??????? - ?????.mp3 \r??????? - redivider.mp3 \r??????? - Waiting for tomorrow.mp3 \r??? ?????? - SHAKE.mp3 \r??????? - ??? ???? ? ???????.mp3 \r??????? - ????? ???.mp3 \r??????? - ??????.mp3 \r??????? - ?????.mp3 \r??????? - ?????.mp3'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (com.name == 'ps') { var v4 = 'PID TTY TIME CMD\r3444 pts/1 00:00:00 bash\r3501 pts/1 00:00:00 ps'; this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (com.name == 'sudo') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('usage: sudo <command>'); this.console.closeRow(); } else { if (com.args[0] == 'ifconfig') { var v5 = com.args[1].split('.'); if (v5.length < 4 and com.args[1] != 'localhost') { this.console.setSystemAnswer('Try `man ifconfig\' for more information.'); this.console.closeRow(); } else { this.console.setSystemAnswer('SIOCSIFFLAGS: Permission denied'); this.console.closeRow(); } } else { if (com.args[0] == 'route') { this.console.setSystemAnswer('SIOCADDRT: Operation not permitted'); this.console.closeRow(); } else { this.console.setSystemAnswer('usage: sudo <command>'); this.console.closeRow(); } } } } else { if (com.name == 'su') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSu('Password:', 'su'); } else { if (com.args[0] == 'ifconfig') { if (com.args[1] == 'eth0') { if (com.args[2] == 'up') { Console.level3_eth0 = true; this.console.closeRow(); } else { if (com.args[2] == 'down') { Console.level3_eth0 = false; this.console.closeRow(); } } } else { if (com.args[1] == 'eth1') { if (com.args[2] == 'up') { Console.level3_eth1 = true; this.console.closeRow(); } else { if (com.args[2] == 'down') { Console.level3_eth1 = false; this.console.closeRow(); } } } else { this.console.closeRow(); } } } else { this.console.setSystemAnswer('Unknown id: ' + com.args[0]); this.console.closeRow(); } } } else { if (com.name == 'chmod') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man chmod\' for more information.'); this.console.closeRow(); } else { this.console.setSystemAnswer('chmod: Permission denied'); this.console.closeRow(); } } else { if (com.name == 'grep') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man grep\' for more information.'); this.console.closeRow(); } else { this.console.closeRow(); } } else { if (com.name == 'route') { if (com.args.length <= 0 or com.args == undefined) { if (Console.level3_eth0 == true and Console.level3_eth1 == true) { var v4 = 'Kernel IP routing table\rDestination Gateway\t Genmask Flags Metric Ref\tUse\tIface\r192.168.0.0 * 255.255.255.0 U 0\t 0\t0\teth0\r192.168.100.0 * 255.255.0.0 U 1000 0\t0\teth1'; if (Console.level3_route) { v4 += 'default 192.168.0.26 0.0.0.0 UG 0 0 0 eth0'; } this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (Console.level3_eth0 == false and Console.level3_eth1 == true) { var v4 = 'Kernel IP routing table\rDestination Gateway\t Genmask Flags Metric Ref\tUse\tIface\r192.168.100.0\t * 255.255.0.0 U 1000 0\t0\teth1'; if (Console.level3_route) { v4 += 'default 192.168.0.26 0.0.0.0 UG 0 0 0 eth0'; } this.console.setSystemAnswer(v4); this.console.closeRow(); } else { if (Console.level3_eth0 == true and Console.level3_eth1 == false) { var v4 = 'Kernel IP routing table\rDestination Gateway\t Genmask Flags Metric Ref\tUse\tIface\r192.168.0.0 * 255.255.255.0 U 0\t 0\t0\teth0'; if (Console.level3_route) { v4 += 'default 192.168.0.26 0.0.0.0 UG 0 0 0 eth0'; } this.console.setSystemAnswer(v4); this.console.closeRow(); } else { var v4 = 'Kernel IP routing table\rDestination Gateway\t Genmask Flags Metric Ref\tUse\tIface'; if (Console.level3_route) { v4 += 'default 192.168.0.26 0.0.0.0 UG 0 0 0 eth0'; } this.console.setSystemAnswer(v4); this.console.closeRow(); } } } } else { if (com.args[0] == 'add' and com.args[1] == 'default' and com.args[2] == 'gw' and com.args[3] == '192.168.0.26') { this.console.closeRow(); } else { if (com.args[0] == 'add') { this.console.setSystemAnswer('SIOCADDRT: Operation not permitted'); this.console.closeRow(); } else { if (com.args[0] == 'del') { this.console.setSystemAnswer('SIOCADDRT: Operation not permitted'); this.console.closeRow(); } else { this.console.setSystemAnswer('Try `man route\' for more information.'); this.console.closeRow(); } } } } } else { if (com.name == 'telnet') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('usage: telnet <host>'); this.console.closeRow(); } else { var v5 = com.args[0].split('.'); if (v5.length < 4 and com.args[0] != 'localhost') { this.console.setSystemAnswer('telnet: could not resolve ' + com.args[0] + ': Name or service not known'); this.console.closeRow(); } else { this.console.setSystemAnswer('Trying ' + com.args[0] + '...' + '\n' + 'telnet: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } } else { if (com.name == 'ssh') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man ssh\' for more information.'); this.console.closeRow(); } else { if (com.args.length == 1) { if (com.args[0] == '192.168.100.1') { this.console.keybord.sutype = 'ssh'; this.console.requestLogin(); } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } else { if (com.args.length == 3 and com.args[0] == '-l' and com.args[2] == '192.168.100.1') { this.console.keybord.sutype = 'ssh'; this.console.requestPassword(); } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } } } else { if (com.name == 'cd') { if (com.args.length <= 0 or com.args == undefined) { this.console.closeRow(); } else { if (com.args[0] == '..' or com.args[0] == '/home/sysadmin/' or com.args[0] == '/home/sysadmin') { this.console.closeRow(); } else { this.console.setSystemAnswer('-bash: cd: ' + com.args[0] + ': No such file or directory'); this.console.closeRow(); } } } else { if (com.name == 'apachectl') { this.console.setSystemAnswer('-bash: apachectl: command not found'); this.console.closeRow(); } } } } } } } } } } } } } } else { this.console.timeoutClose(); } } } } }; _global.levelCommands2 = v1; var v2 = v1.prototype; goto 45149; goto 45184; label 45149: label 45184: ASSetPropFlags(_global.levelCommands2.prototype, null, 1); #endinitclip } movieClip 2682 __Packages.levelCommands3 { #initclip if (!_global.levelCommands3) { var v1 = function (cons, com) { this.console = cons; this.command = com; this.int = _root.createEmptyMovieClip('int', 9045); if (gameDriver.nowLevel == 5) { if (Console.levelNowServer == 'admin') { if (com.name == 'ping') { if (com.args == undefined or com.args.length <= 0) { this.console.setSystemAnswer('Usage: ping destination'); this.console.closeRow(); } else { if (com.args[0] == '192.168.100.5' or com.args[0] == '192.168.100.1' or com.args[0] == '192.168.100.10' or com.args[0] == '192.168.100.11' or com.args[0] == '192.168.0.21') { this.console.setSystemAnswer('PING ' + this.command.args[0] + ' (' + this.command.args[0] + ') 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=1 ttl=64 time=1.66 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=2 ttl=64 time=1.00 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=3 ttl=64 time=1.00 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 192.168.100.5 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { if (com.args[0] == '192.168.100.0' or com.args[0] == '192.168.100.255' or com.args[0] == '255.255.255.255') { this.console.setSystemAnswer('Do you want to ping broadcast?'); this.console.closeRow(); } else { if (com.args[0] == '0.0.0.0') { this.console.setSystemAnswer('PING 0.0.0.0 (127.0.0.1) 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.049 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.028 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.030 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 0.0.0.0 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { if (com.args[0] == 'localhost') { this.console.setSystemAnswer('PING localhost (127.0.0.1) 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.049 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.028 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.030 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- localhost ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { if (com.args[0] == '192.168.100.50' or com.args[0] == '192.168.100.70' or com.args[0] == '192.168.100.71' or com.args[0] == '192.168.100.72' or com.args[0] == '192.168.100.73' or com.args[0] == '192.168.100.74' or com.args[0] == '192.168.100.75') { this.console.setSystemAnswer('PING ' + com.args[0] + ' (' + com.args[0] + ') 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from 192.168.100.5: icmp_seq=1 ttl=64 time=1.66 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from 192.168.100.5: icmp_seq=2 ttl=64 time=1.00 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from 192.168.100.5: icmp_seq=3 ttl=64 time=1.00 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 192.168.100.5 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { var v6 = com.args[0].split('.'); if (v6.length < 4) { this.console.setSystemAnswer('ping: unknown host ' + com.args[0]); this.console.closeRow(); } else { if (v6[0] == '192' and v6[1] == '168' and v6[2] == '100') { this.console.setSystemAnswer('PING 192.168.100.' + v6[3] + ' (192.168.100.' + v6[3] + ') 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('From 192.168.100.5 icmp_seq=1 Destination Host Unreachable'); } else { if (this.step == 2) { this.console.setSystemAnswer('From 192.168.100.5 icmp_seq=2 Destination Host Unreachable'); } else { if (this.step == 3) { this.console.setSystemAnswer('From 192.168.100.5 icmp_seq=3 Destination Host Unreachable'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 192.168.0.6 ping statistics ---\r3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms\r, pipe 3'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { var v5 = 'PING ' + com.args[0] + ' (' + com.args[0] + ') 56(84) bytes of data.' + '\n' + '--- {' + com.args[0] + '} ping statistics ---' + '\n' + '3 packets transmitted, 0 received, 100% packet loss, time ' + Math.round(Math.random() * 50 + 1975) + 'ms'; this.console.setSystemAnswer(v5); this.console.closeRow(); } } } } } } } } } else { if (com.name == 'ifconfig') { if (com.args.length <= 0 or com.args == undefined or com.args[0] == 'eth0' and com.args == 1) { var v5 = 'eth0 Link encap:Ethernet HWaddr 00:04:ED:57:B1:0B\r inet addr:192.168.100.5 Bcast:192.168.100.255 Mask:255.255.255.0\r UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r RX packets:2289172 errors:3 dropped:16 overruns:3 frame:0\r TX packets:1400364 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:3241591663 (3.0 GB) TX bytes:114218439 (108.9 MB)\r Interrupt:19 Base address:0x2c00'; this.console.setSystemAnswer(v5); this.console.closeRow(); } else { if (com.args[0] != 'eth0') { this.console.setSystemAnswer(com.args[0] + ': error fetching interface information: Device not found'); this.console.closeRow(); } else { if (com.args[0] == 'eth0' and (com.args[1] == 'down' or com.args[1] == 'up')) { this.console.setSystemAnswer('SIOCSIFFLAGS: Permission denied'); this.console.closeRow(); } else { var v6 = com.args[1].split('.'); if (v6.length < 4 and com.args[1] != 'localhost') { this.console.setSystemAnswer('Try `man ifconfig\' for more information.'); this.console.closeRow(); } else { this.console.setSystemAnswer('SIOCSIFFLAGS: Permission denied'); this.console.closeRow(); } } } } } else { if (com.name == 'ls') { if (com.args.lenght <= 0) { var v5 = 'pass.txt'; this.console.setSystemAnswer(v5); this.console.closeRow(); } else { var v5 = 'bash: ls: ' + com.args[0] + ': No such file or directory.'; this.console.setSystemAnswer(v5); this.console.closeRow(); } } else { if (com.name == 'ps') { var v5 = 'PID TTY TIME CMD\r3444 pts/1 00:00:00 bash\r3501 pts/1 00:00:00 ps'; this.console.setSystemAnswer(v5); this.console.closeRow(); } else { if (com.name == 'sudo') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('usage: sudo <command>'); this.console.closeRow(); } else { this.console.setSu('[sudo] password for root:', 'sudo'); } } else { if (com.name == 'su') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSu('Password:', 'su'); } else { this.console.setSystemAnswer('Unknown id: ' + com.args[0]); this.console.closeRow(); } } else { if (com.name == 'chmod') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man chmod\' for more information.'); this.console.closeRow(); } else { this.console.setSystemAnswer('chmod: Permission denied'); this.console.closeRow(); } } else { if (com.name == 'grep') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man grep\' for more information.'); this.console.closeRow(); } else { this.console.closeRow(); } } else { if (com.name == 'route') { if (com.args.length <= 0 or com.args == undefined) { var v5 = 'Kernel IP routing table\rDestination Gateway Genmask Fl Metric R U Iface\r192.168.100.0 * 255.255.255.0 U 0 0 0 eth0\rdefault 192.168.100.1 0.0.0.0 UG 100 0 0 eth0'; this.console.setSystemAnswer(v5); this.console.closeRow(); } else { if (com.args[0] == 'add') { this.console.setSystemAnswer('SIOCADDRT: Operation not permitted'); this.console.closeRow(); } else { if (com.args[0] == 'del') { this.console.setSystemAnswer('SIOCADDRT: Operation not permitted'); this.console.closeRow(); } else { this.console.setSystemAnswer('Try `man route\' for more information.'); this.console.closeRow(); } } } } else { if (com.name == 'telnet') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('usage: telnet <host>'); this.console.closeRow(); } else { var v6 = com.args[0].split('.'); if (v6.length < 4 and com.args[0] != 'localhost') { this.console.setSystemAnswer('telnet: could not resolve ' + com.args[0] + ': Name or service not known'); this.console.closeRow(); } else { this.console.setSystemAnswer('Trying ' + com.args[0] + '...' + '\n' + 'telnet: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } } else { if (com.name == 'ssh') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man ssh\' for more information.'); this.console.closeRow(); } else { if (com.args.length == 1) { if (com.args[0] == '192.168.0.21') { this.console.keybord.behavior = keybordProcessor.IDLE; this.console.setSystemAnswerAnim('Login:'); this.console.keybord.sutype = 'telnet'; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.step = 'login'; this.int.symb = 0; this.int.onEnterFrame = function () { ++this.counter; if (this.step == 'login') { if (this.counter >= 2) { this.counter = 0; if (this.symb == 0) { this.console.setSystemSymbolAnim('a'); ++this.symb; } else { if (this.symb == 1) { this.console.setSystemSymbolAnim('d'); ++this.symb; } else { if (this.symb == 2) { this.console.setSystemSymbolAnim('m'); this.console.setSystemAnswerAnim('Password:'); this.symb = 0; this.step = 'password'; } } } } } else { if (this.step == 'password') { if (this.counter == 20) { this.console.changeServer('webserv'); this.console.closeRow(); delete eval(this.onEnterFrame()); this.removeMovieClip(); } } } }; } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } else { if (com.args.length == 2) { if (com.args[0] == '-l') { if (com.args[1] == '192.168.0.21') { this.console.keybord.sutype = 'ssh'; this.console.requestPassword(); } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } else { if (com.args.length == 3) { if (com.args[0] == '-l' and com.args[1] == 'adm' and com.args[2] == '192.168.0.21') { this.console.keybord.behavior = keybordProcessor.IDLE; this.console.setSystemAnswerAnim('Password:'); this.console.keybord.sutype = 'telnet'; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.step = 'password'; this.int.symb = 0; this.int.onEnterFrame = function () { ++this.counter; if (this.step == 'password') { if (this.counter == 20) { this.console.changeServer('webserv'); this.console.closeRow(); delete eval(this.onEnterFrame()); this.removeMovieClip(); } } }; } else { if (com.args[0] == '-l' and com.args[1] != 'adm' and com.args[2] == '192.168.0.21') { this.console.keybord.sutype = 'ssh'; this.console.requestPassword(); } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } } } } else { if (com.name == 'cd') { if (com.args.length <= 0 or com.args == undefined) { this.console.closeRow(); } else { if (com.args[0] == '..' or com.args[0] == '/home/sysadmin/' or com.args[0] == '/home/sysadmin') { this.console.closeRow(); } else { this.console.setSystemAnswer('-bash: cd: ' + com.args[0] + ': No such file or directory'); this.console.closeRow(); } } } else { if (com.name == 'apachectl') { this.console.setSystemAnswer('-bash: apachectl: command not found'); this.console.closeRow(); } } } } } } } } } } } } } } else { if (Console.levelNowServer == 'webserv') { if (com.name == 'ping') { if (com.args == undefined or com.args.length <= 0) { this.console.setSystemAnswer('Usage: ping destination'); this.console.closeRow(); } else { if (com.args[0] == '192.168.100.5' or com.args[0] == '192.168.100.1' or com.args[0] == '192.168.100.10' or com.args[0] == '192.168.100.11') { if (Console.level3_eth1 == true) { this.console.setSystemAnswer('PING ' + this.command.args[0] + ' (' + this.command.args[0] + ') 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=1 ttl=64 time=1.66 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=2 ttl=64 time=1.00 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=3 ttl=64 time=1.00 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 192.168.100.5 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { this.console.setSystemAnswer('connect: Network is unreachable'); this.console.closeRow(); } } else { if (com.args[0] == '192.168.100.0' or com.args[0] == '192.168.100.255' or com.args[0] == '255.255.255.255') { if (Console.level3_eth1 == true) { this.console.setSystemAnswer('Do you want to ping broadcast?'); this.console.closeRow(); } else { this.console.setSystemAnswer('connect: Network is unreachable'); this.console.closeRow(); } } } } if (com.args == undefined or com.args.length <= 0) { this.console.setSystemAnswer('Usage: ping destination'); this.console.closeRow(); } else { if (com.args[0] == '255.255.255.255') { this.console.setSystemAnswer('Do you want to ping broadcast?'); this.console.closeRow(); } else { if (com.args[0] == '0.0.0.0') { this.console.setSystemAnswer('PING 0.0.0.0 (127.0.0.1) 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.049 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.028 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.030 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 0.0.0.0 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { if (com.args[0] == 'localhost') { this.console.setSystemAnswer('PING localhost (127.0.0.1) 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.049 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.028 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.030 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- localhost ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { var v6 = com.args[0].split('.'); if (v6.length < 4) { this.console.setSystemAnswer('ping: unknown host ' + com.args[0]); this.console.closeRow(); } else { if (v6[0] == '192' and v6[1] == '168') { this.console.setSystemAnswer('Network is unreachable'); this.console.closeRow(); } else { var v5 = 'PING ' + com.args[0] + ' (' + com.args[0] + ') 56(84) bytes of data.' + '\n' + '--- {' + com.args[0] + '} ping statistics ---' + '\n' + '3 packets transmitted, 0 received, 100% packet loss, time ' + Math.round(Math.random() * 50 + 1975) + 'ms'; this.console.setSystemAnswer(v5); this.console.closeRow(); } } } } } } } else { if (com.name == 'ifconfig') { if (com.args.length <= 0 or com.args == undefined or com.args[0] == 'eth0' and com.args == 1) { var v5 = 'eth0 Link encap:Ethernet HWaddr 00:11:D2:57:B1:0C \r inet addr:192.168.0.21 Bcast:192.168.0.255 Mask:255.255.255.0\r UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r RX packets:2289172 errors:3 dropped:16 overruns:3 frame:0\r TX packets:1400364 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:3241591663 (3.0 GB) TX bytes:114218439 (108.9 MB)\r Interrupt:19 Base address:0x2c00'; this.console.setSystemAnswer(v5); this.console.closeRow(); } else { var v6 = com.args[1].split('.'); if (v6.length < 4 and com.args[1] != 'localhost') { this.console.setSystemAnswer('Try `man ifconfig\' for more information.'); this.console.closeRow(); } else { this.console.setSystemAnswer('SIOCSIFFLAGS: Permission denied'); this.console.closeRow(); } } } else { if (com.name == 'ls') { var v5 = 'pidgin-guifications_2.14-3_i386.deb\r??????? - black.mp3\r??????? - black normal.mp3 \r??????? - cemetary.mp3 \r??????? - ? ?????? ? ????.mp3 \r????????? - ? ????????? ??? ??????.mp3 \r??????? - ?? ????.mp3 \r??????? - ???? ? ???????.mp3 \r??????? - ????? ? ????????????.mp3 \r??????? - ????? ?????.mp3 \r??????? - ????? ????.mp3 \r??????? - ????? ????.mp3 \r??????? - ?????????.mp3 \r??????? - ????????????.mp3 \r??????? - ??????????.mp3 \r??????? - ??????????? ????.mp3 \r??????? - ????????? ??.mp3 \r??????? - ????????? ??? ??????.mp3 \r??????? - ?????????????.mp3 \r??????? - ???????????????3.mp3 \r??????? - ????????? zsc.mp3 \r??????? - ?????.mp3 \r??????? - ?????.mp3 \r??????? - redivider.mp3 \r??????? - Waiting for tomorrow.mp3 \r??? ?????? - SHAKE.mp3 \r??????? - ??? ???? ? ???????.mp3 \r??????? - ????? ???.mp3 \r??????? - ??????.mp3 \r??????? - ?????.mp3 \r??????? - ?????.mp3'; this.console.setSystemAnswer(v5); this.console.closeRow(); } else { if (com.name == 'ps') { if (com.args[0] == '-uac' and com.args[1] == '|' and com.args[2] == 'grep' and com.args[3] == 'httpd') { if (Console.level5_serv == false) { this.console.closeRow(); } else { var v4 = 'www-data 5562 0.0 0.4 29076 4152 ? S 08:42 0:00 httpd\rwww-data 5563 0.0 0.4 29076 4152 ? S 08:42 0:00 httpd\rwww-data 5564 0.0 0.4 29076 4152 ? S 08:42 0:00 httpd\rwww-data 5565 0.0 0.4 29076 4152 ? S 08:42 0:00 httpd\rwww-data 5566 0.0 0.4 29076 4152 ? S 08:42 0:00 httpd'; this.console.setSystemAnswer(v4); this.console.closeRow(); } } else { var v5 = 'PID TTY TIME CMD\r3444 pts/1 00:00:00 bash\r3501 pts/1 00:00:00 ps'; this.console.setSystemAnswer(v5); this.console.closeRow(); } } else { if (com.name == 'sudo') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('usage: sudo <command>'); this.console.closeRow(); } else { if (com.args[0] == 'apachectl') { if (com.args[1] == 'start') { this.console.closeRow(); Console.level5_serv = true; gameDriver.endOfLevel(5); } else { if (com.args[1] == 'stop') { this.console.closeRow(); Console.level5_serv = false; } else { if (com.args[1] == 'restart') { this.console.closeRow(); gameDriver.endOfLevel(5); Console.level5_serv = true; } else { this.console.setSystemAnswer('usage: apachectl <start | restart | stop>'); this.console.closeRow(); } } } } else { this.console.setSu('[sudo] password for root:', 'sudo'); } } } else { if (com.name == 'su') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSu('Password:', 'su'); } else { this.console.setSystemAnswer('Unknown id: ' + com.args[0]); this.console.closeRow(); } } else { if (com.name == 'chmod') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man chmod\' for more information.'); this.console.closeRow(); } else { this.console.setSystemAnswer('chmod: Permission denied'); this.console.closeRow(); } } else { if (com.name == 'grep') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man grep\' for more information.'); this.console.closeRow(); } else { this.console.closeRow(); } } else { if (com.name == 'route') { if (com.args.length <= 0 or com.args == undefined) { var v5 = 'Kernel IP routing table\rDestination Gateway\t Genmask Fl Metric R U Iface\r192.168.100.0 * 255.255.255.0 U 0 0 0 eth0\rdefault 192.168.100.1 0.0.0.0 UG 100 0 0 eth0'; this.console.setSystemAnswer(v5); this.console.closeRow(); } else { this.console.setSystemAnswer('Try `man route\' for more information.'); this.console.closeRow(); } } else { if (com.name == 'telnet') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('usage: telnet <host>'); this.console.closeRow(); } else { var v6 = com.args[0].split('.'); if (v6.length < 4 and com.args[0] != 'localhost') { this.console.setSystemAnswer('telnet: could not resolve ' + com.args[0] + ': Name or service not known'); this.console.closeRow(); } else { this.console.setSystemAnswer('Trying ' + com.args[0] + '...' + '\n' + 'telnet: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } } else { if (com.name == 'ssh') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man ssh\' for more information.'); this.console.closeRow(); } else { if (com.args.length == 1) { if (com.args[0] == '192.168.100.1') { this.console.keybord.sutype = 'ssh'; this.console.requestLogin(); } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } else { if (com.args.length == 3 and com.args[0] == '-l' and com.args[2] == '192.168.100.1') { this.console.keybord.sutype = 'ssh'; this.console.requestPassword(); } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } } } else { if (com.name == 'cd') { if (com.args.length <= 0 or com.args == undefined) { this.console.closeRow(); } else { if (com.args[0] == '..' or com.args[0] == '/home/sysadmin/' or com.args[0] == '/home/sysadmin') { this.console.closeRow(); } else { this.console.setSystemAnswer('-bash: cd: ' + com.args[0] + ': No such file or directory'); this.console.closeRow(); } } } else { if (com.name == 'apachectl') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('usage: apachectl <start | restart | stop>'); this.console.closeRow(); } else { if (com.args[0] == 'start') { this.console.closeRow(); Console.level5_serv = true; gameDriver.endOfLevel(5); } else { if (com.args[0] == 'stop') { this.console.closeRow(); Console.level5_serv = false; } else { if (com.args[0] == 'restart') { this.console.closeRow(); gameDriver.endOfLevel(5); Console.level5_serv = true; } else { this.console.setSystemAnswer('usage: apachectl <start | restart | stop>'); this.console.closeRow(); } } } } } } } } } } } } } } } } } } else { this.console.timeoutClose(); } } } else { if (gameDriver.nowLevel == 6) { if (Console.levelNowServer == 'admin') { if (com.name == 'ping') { if (com.args == undefined or com.args.length <= 0) { this.console.setSystemAnswer('Usage: ping destination'); this.console.closeRow(); } else { if (com.args[0] == '192.168.100.5' or com.args[0] == '192.168.100.1' or com.args[0] == '192.168.100.10' or com.args[0] == '192.168.100.11') { this.console.setSystemAnswer('PING ' + this.command.args[0] + ' (' + this.command.args[0] + ') 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=1 ttl=64 time=1.66 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=2 ttl=64 time=1.00 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=3 ttl=64 time=1.00 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 192.168.100.5 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { if (com.args[0] == '192.168.100.0' or com.args[0] == '192.168.100.255' or com.args[0] == '255.255.255.255') { this.console.setSystemAnswer('Do you want to ping broadcast?'); this.console.closeRow(); } else { if (com.args[0] == '0.0.0.0') { this.console.setSystemAnswer('PING 0.0.0.0 (127.0.0.1) 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.049 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.028 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.030 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 0.0.0.0 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { if (com.args[0] == 'localhost') { this.console.setSystemAnswer('PING localhost (127.0.0.1) 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.049 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.028 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.030 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- localhost ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { if (com.args[0] == '192.168.100.50' or com.args[0] == '192.168.100.70' or com.args[0] == '192.168.100.71' or com.args[0] == '192.168.100.72' or com.args[0] == '192.168.100.73' or com.args[0] == '192.168.100.74' or com.args[0] == '192.168.100.75') { this.console.setSystemAnswer('PING ' + com.args[0] + ' (' + com.args[0] + ') 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from 192.168.100.5: icmp_seq=1 ttl=64 time=1.66 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from 192.168.100.5: icmp_seq=2 ttl=64 time=1.00 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from 192.168.100.5: icmp_seq=3 ttl=64 time=1.00 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 192.168.100.5 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { var v6 = com.args[0].split('.'); if (v6.length < 4) { this.console.setSystemAnswer('ping: unknown host ' + com.args[0]); this.console.closeRow(); } else { if (v6[0] == '192' and v6[1] == '168' and v6[2] == '100') { this.console.setSystemAnswer('PING 192.168.100.' + v6[3] + ' (192.168.100.' + v6[3] + ') 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('From 192.168.100.5 icmp_seq=1 Destination Host Unreachable'); } else { if (this.step == 2) { this.console.setSystemAnswer('From 192.168.100.5 icmp_seq=2 Destination Host Unreachable'); } else { if (this.step == 3) { this.console.setSystemAnswer('From 192.168.100.5 icmp_seq=3 Destination Host Unreachable'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 192.168.0.6 ping statistics ---\r3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms\r, pipe 3'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { var v5 = 'PING ' + com.args[0] + ' (' + com.args[0] + ') 56(84) bytes of data.' + '\n' + '--- {' + com.args[0] + '} ping statistics ---' + '\n' + '3 packets transmitted, 0 received, 100% packet loss, time ' + Math.round(Math.random() * 50 + 1975) + 'ms'; this.console.setSystemAnswer(v5); this.console.closeRow(); } } } } } } } } } else { if (com.name == 'ifconfig') { if (com.args.length <= 0 or com.args == undefined or com.args[0] == 'eth0' and com.args == 1) { var v5 = 'eth0 Link encap:Ethernet HWaddr 00:04:ED:57:B1:0B\r inet addr:192.168.100.5 Bcast:192.168.100.255 Mask:255.255.255.0\r UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r RX packets:2289172 errors:3 dropped:16 overruns:3 frame:0\r TX packets:1400364 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:3241591663 (3.0 GB) TX bytes:114218439 (108.9 MB)\r Interrupt:19 Base address:0x2c00'; this.console.setSystemAnswer(v5); this.console.closeRow(); } else { if (com.args[0] != 'eth0') { this.console.setSystemAnswer(com.args[0] + ': error fetching interface information: Device not found'); this.console.closeRow(); } else { if (com.args[0] == 'eth0' and (com.args[1] == 'down' or com.args[1] == 'up')) { this.console.setSystemAnswer('SIOCSIFFLAGS: Permission denied'); this.console.closeRow(); } else { var v6 = com.args[1].split('.'); if (v6.length < 4 and com.args[1] != 'localhost') { this.console.setSystemAnswer('Try `man ifconfig\' for more information.'); this.console.closeRow(); } else { this.console.setSystemAnswer('SIOCSIFFLAGS: Permission denied'); this.console.closeRow(); } } } } } else { if (com.name == 'ls') { if (com.args.lenght <= 0) { var v5 = 'pass.txt'; this.console.setSystemAnswer(v5); this.console.closeRow(); } else { var v5 = 'bash: ls: ' + com.args[0] + ': No such file or directory.'; this.console.setSystemAnswer(v5); this.console.closeRow(); } } else { if (com.name == 'ps') { var v5 = 'PID TTY TIME CMD\r3444 pts/1 00:00:00 bash\r3501 pts/1 00:00:00 ps'; this.console.setSystemAnswer(v5); this.console.closeRow(); } else { if (com.name == 'sudo') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('usage: sudo <command>'); this.console.closeRow(); } else { this.console.setSu('[sudo] password for root:', 'sudo'); } } else { if (com.name == 'su') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSu('Password:', 'su'); } else { this.console.setSystemAnswer('Unknown id: ' + com.args[0]); this.console.closeRow(); } } else { if (com.name == 'chmod') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man chmod\' for more information.'); this.console.closeRow(); } else { this.console.setSystemAnswer('chmod: Permission denied'); this.console.closeRow(); } } else { if (com.name == 'grep') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man grep\' for more information.'); this.console.closeRow(); } else { this.console.closeRow(); } } else { if (com.name == 'route') { if (com.args.length <= 0 or com.args == undefined) { var v5 = 'Kernel IP routing table\rDestination Gateway Genmask Fl Metric R U Iface\r192.168.100.0 * 255.255.255.0 U 0 0 0 eth0\rdefault 192.168.100.1 0.0.0.0 UG 100 0 0 eth0'; this.console.setSystemAnswer(v5); this.console.closeRow(); } else { if (com.args[0] == 'add') { this.console.setSystemAnswer('SIOCADDRT: Operation not permitted'); this.console.closeRow(); } else { if (com.args[0] == 'del') { this.console.setSystemAnswer('SIOCADDRT: Operation not permitted'); this.console.closeRow(); } else { this.console.setSystemAnswer('Try `man route\' for more information.'); this.console.closeRow(); } } } } else { if (com.name == 'telnet') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('usage: telnet <host>'); this.console.closeRow(); } else { var v6 = com.args[0].split('.'); if (v6.length < 4 and com.args[0] != 'localhost') { this.console.setSystemAnswer('telnet: could not resolve ' + com.args[0] + ': Name or service not known'); this.console.closeRow(); } else { this.console.setSystemAnswer('Trying ' + com.args[0] + '...' + '\n' + 'telnet: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } } else { if (com.name == 'ssh') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man ssh\' for more information.'); this.console.closeRow(); } else { if (com.args.length == 1) { if (com.args[0] == '192.168.0.21') { this.console.keybord.behavior = keybordProcessor.IDLE; this.console.setSystemAnswerAnim('Login:'); this.console.keybord.sutype = 'telnet'; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.step = 'login'; this.int.symb = 0; this.int.onEnterFrame = function () { ++this.counter; if (this.step == 'login') { if (this.counter >= 2) { this.counter = 0; if (this.symb == 0) { this.console.setSystemSymbolAnim('a'); ++this.symb; } else { if (this.symb == 1) { this.console.setSystemSymbolAnim('d'); ++this.symb; } else { if (this.symb == 2) { this.console.setSystemSymbolAnim('m'); this.console.setSystemAnswerAnim('Password:'); this.symb = 0; this.step = 'password'; } } } } } else { if (this.step == 'password') { if (this.counter == 20) { this.console.changeServer('webserv'); this.console.closeRow(); delete eval(this.onEnterFrame()); this.removeMovieClip(); } } } }; } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } else { if (com.args.length == 2) { if (com.args[0] == '-l') { if (com.args[1] == '192.168.0.21') { this.console.keybord.sutype = 'ssh'; this.console.requestPassword(); } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } else { if (com.args.length == 3) { if (com.args[0] == '-l' and com.args[1] == 'adm' and com.args[2] == '192.168.0.21') { this.console.keybord.behavior = keybordProcessor.IDLE; this.console.setSystemAnswerAnim('Password:'); this.console.keybord.sutype = 'telnet'; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.step = 'password'; this.int.symb = 0; this.int.onEnterFrame = function () { ++this.counter; if (this.step == 'password') { if (this.counter == 20) { this.console.changeServer('webserv'); this.console.closeRow(); delete eval(this.onEnterFrame()); this.removeMovieClip(); } } }; } else { if (com.args[0] == '-l' and com.args[1] != 'adm' and com.args[2] == '192.168.0.21') { this.console.keybord.sutype = 'ssh'; this.console.requestPassword(); } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } } } } else { if (com.name == 'cd') { if (com.args.length <= 0 or com.args == undefined) { this.console.closeRow(); } else { if (com.args[0] == '..' or com.args[0] == '/home/sysadmin/' or com.args[0] == '/home/sysadmin') { this.console.closeRow(); } else { this.console.setSystemAnswer('-bash: cd: ' + com.args[0] + ': No such file or directory'); this.console.closeRow(); } } } else { if (com.name == 'apachectl') { this.console.setSystemAnswer('-bash: apachectl: command not found'); this.console.closeRow(); } } } } } } } } } } } } } } else { if (Console.levelNowServer == 'webserv') { if (com.name == 'ping') { if (com.args == undefined or com.args.length <= 0) { this.console.setSystemAnswer('Usage: ping destination'); this.console.closeRow(); } else { if (com.args[0] == '192.168.100.5' or com.args[0] == '192.168.100.1' or com.args[0] == '192.168.100.10' or com.args[0] == '192.168.100.11') { if (Console.level3_eth1 == true) { this.console.setSystemAnswer('PING ' + this.command.args[0] + ' (' + this.command.args[0] + ') 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=1 ttl=64 time=1.66 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=2 ttl=64 time=1.00 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from ' + this.ip + ': icmp_seq=3 ttl=64 time=1.00 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 192.168.100.5 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { this.console.setSystemAnswer('connect: Network is unreachable'); this.console.closeRow(); } } else { if (com.args[0] == '192.168.100.0' or com.args[0] == '192.168.100.255' or com.args[0] == '255.255.255.255') { if (Console.level3_eth1 == true) { this.console.setSystemAnswer('Do you want to ping broadcast?'); this.console.closeRow(); } else { this.console.setSystemAnswer('connect: Network is unreachable'); this.console.closeRow(); } } } } if (com.args == undefined or com.args.length <= 0) { this.console.setSystemAnswer('Usage: ping destination'); this.console.closeRow(); } else { if (com.args[0] == '255.255.255.255') { this.console.setSystemAnswer('Do you want to ping broadcast?'); this.console.closeRow(); } else { if (com.args[0] == '0.0.0.0') { this.console.setSystemAnswer('PING 0.0.0.0 (127.0.0.1) 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.049 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.028 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.030 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- 0.0.0.0 ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { if (com.args[0] == 'localhost') { this.console.setSystemAnswer('PING localhost (127.0.0.1) 56(84) bytes of data.'); this.int.step = 0; this.int.counter = 0; this.int.ip = com.args[0]; this.int.console = this.console; this.int.onEnterFrame = function () { ++this.counter; if (this.counter >= 15) { this.counter = 0; ++this.step; if (this.step == 1) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.049 ms'); } else { if (this.step == 2) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.028 ms'); } else { if (this.step == 3) { this.console.setSystemAnswer('64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.030 ms'); } else { if (this.step == 4) { this.step = 0; var v2 = '\r--- localhost ping statistics ---\r3 packets transmitted, 3 received, 0% packet loss, time 1998ms\rrtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms'; this.console.setSystemAnswer(v2); this.console.closeRow(); delete this.onEnterFrame; this.removeMovieClip(); } } } } } }; } else { var v6 = com.args[0].split('.'); if (v6.length < 4) { this.console.setSystemAnswer('ping: unknown host ' + com.args[0]); this.console.closeRow(); } else { if (v6[0] == '192' and v6[1] == '168') { this.console.setSystemAnswer('Network is unreachable'); this.console.closeRow(); } else { var v5 = 'PING ' + com.args[0] + ' (' + com.args[0] + ') 56(84) bytes of data.' + '\n' + '--- {' + com.args[0] + '} ping statistics ---' + '\n' + '3 packets transmitted, 0 received, 100% packet loss, time ' + Math.round(Math.random() * 50 + 1975) + 'ms'; this.console.setSystemAnswer(v5); this.console.closeRow(); } } } } } } } else { if (com.name == 'ifconfig') { if (com.args.length <= 0 or com.args == undefined or com.args[0] == 'eth0' and com.args == 1) { var v5 = 'eth0 Link encap:Ethernet HWaddr 00:11:D2:57:B1:0C \r inet addr:192.168.0.21 Bcast:192.168.0.255 Mask:255.255.255.0\r UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r RX packets:2289172 errors:3 dropped:16 overruns:3 frame:0\r TX packets:1400364 errors:0 dropped:0 overruns:0 carrier:0\r collisions:0 txqueuelen:1000 \r RX bytes:3241591663 (3.0 GB) TX bytes:114218439 (108.9 MB)\r Interrupt:19 Base address:0x2c00'; this.console.setSystemAnswer(v5); this.console.closeRow(); } else { var v6 = com.args[1].split('.'); if (v6.length < 4 and com.args[1] != 'localhost') { this.console.setSystemAnswer('Try `man ifconfig\' for more information.'); this.console.closeRow(); } else { this.console.setSystemAnswer('SIOCSIFFLAGS: Permission denied'); this.console.closeRow(); } } } else { if (com.name == 'ls') { var v5 = 'pidgin-guifications_2.14-3_i386.deb\r??????? - black.mp3\r??????? - black normal.mp3 \r??????? - cemetary.mp3 \r??????? - ? ?????? ? ????.mp3 \r????????? - ? ????????? ??? ??????.mp3 \r??????? - ?? ????.mp3 \r??????? - ???? ? ???????.mp3 \r??????? - ????? ? ????????????.mp3 \r??????? - ????? ?????.mp3 \r??????? - ????? ????.mp3 \r??????? - ????? ????.mp3 \r??????? - ?????????.mp3 \r??????? - ????????????.mp3 \r??????? - ??????????.mp3 \r??????? - ??????????? ????.mp3 \r??????? - ????????? ??.mp3 \r??????? - ????????? ??? ??????.mp3 \r??????? - ?????????????.mp3 \r??????? - ???????????????3.mp3 \r??????? - ????????? zsc.mp3 \r??????? - ?????.mp3 \r??????? - ?????.mp3 \r??????? - redivider.mp3 \r??????? - Waiting for tomorrow.mp3 \r??? ?????? - SHAKE.mp3 \r??????? - ??? ???? ? ???????.mp3 \r??????? - ????? ???.mp3 \r??????? - ??????.mp3 \r??????? - ?????.mp3 \r??????? - ?????.mp3'; this.console.setSystemAnswer(v5); this.console.closeRow(); } else { if (com.name == 'ps') { if (com.args[0] == '-uac' and com.args[1] == '|' and com.args[2] == 'grep' and com.args[3] == 'httpd') { if (Console.level5_serv == false) { this.console.closeRow(); } else { var v4 = 'www-data 5562 0.0 0.4 29076 4152 ? S 08:42 0:00 httpd\rwww-data 5563 0.0 0.4 29076 4152 ? S 08:42 0:00 httpd\rwww-data 5564 0.0 0.4 29076 4152 ? S 08:42 0:00 httpd\rwww-data 5565 0.0 0.4 29076 4152 ? S 08:42 0:00 httpd\rwww-data 5566 0.0 0.4 29076 4152 ? S 08:42 0:00 httpd'; this.console.setSystemAnswer(v4); this.console.closeRow(); } } else { var v5 = 'PID TTY TIME CMD\r3444 pts/1 00:00:00 bash\r3501 pts/1 00:00:00 ps'; this.console.setSystemAnswer(v5); this.console.closeRow(); } } else { if (com.name == 'sudo') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('usage: sudo <command>'); this.console.closeRow(); } else { if (com.args[0] == 'chmod') { if (com.args[2] == '644' and com.args[3] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[2] == '664' and com.args[3] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[2] == '666' and com.args[3] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[2] == '667' and com.args[3] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[2] == '674' and com.args[3] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[2] == '676' and com.args[3] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[2] == '677' and com.args[3] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[2] == '764' and com.args[3] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[2] == '766' and com.args[3] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[2] == '767' and com.args[3] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[2] == '774' and com.args[3] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[2] == '776' and com.args[3] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[2] == '777' and com.args[3] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[1] == '664' and com.args[2] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[1] == '644' and com.args[2] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[1] == '666' and com.args[2] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[1] == '667' and com.args[2] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[1] == '674' and com.args[2] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[1] == '676' and com.args[2] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[1] == '677' and com.args[2] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[1] == '764' and com.args[2] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[1] == '766' and com.args[2] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[1] == '767' and com.args[2] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[1] == '774' and com.args[2] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[1] == '776' and com.args[2] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { if (com.args[1] == '777' and com.args[2] == '/files') { this.console.closeRow(); gameDriver.endOfLevel(6); } else { this.console.setSystemAnswer('Try `man chmod\' for more information.'); this.console.closeRow(); } } } } } } } } } } } } } } } } } } } } } } } } } } } else { this.console.setSu('[sudo] password for root:', 'sudo'); } } } else { if (com.name == 'su') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSu('Password:', 'su'); } else { this.console.setSystemAnswer('Unknown id: ' + com.args[0]); this.console.closeRow(); } } else { if (com.name == 'chmod') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man chmod\' for more information.'); this.console.closeRow(); } else { this.console.setSystemAnswer('chmod: Permission denied'); this.console.closeRow(); } } else { if (com.name == 'grep') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man grep\' for more information.'); this.console.closeRow(); } else { this.console.closeRow(); } } else { if (com.name == 'route') { if (com.args.length <= 0 or com.args == undefined) { var v5 = 'Kernel IP routing table\rDestination\tGateway\tGenmask\tFlags\tMetric\tRef\tUse\tIface\r192.168.0.0\t*\t\t255.255.255.0\tU\t0\t0\t0\teth0\rlink-local\t*\t\t255.255.0.0\tU\t1000\t0\t0\teth0\rdefault\t\t192.168.0.26\t0.0.0.0\t\tUG\t100\t0\t0\teth0'; this.console.setSystemAnswer(v5); this.console.closeRow(); } else { this.console.setSystemAnswer('Try `man route\' for more information.'); this.console.closeRow(); } } else { if (com.name == 'telnet') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('usage: telnet <host>'); this.console.closeRow(); } else { var v6 = com.args[0].split('.'); if (v6.length < 4 and com.args[0] != 'localhost') { this.console.setSystemAnswer('telnet: could not resolve ' + com.args[0] + ': Name or service not known'); this.console.closeRow(); } else { this.console.setSystemAnswer('Trying ' + com.args[0] + '...' + '\n' + 'telnet: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } } else { if (com.name == 'ssh') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('Try `man ssh\' for more information.'); this.console.closeRow(); } else { if (com.args.length == 1) { if (com.args[0] == '192.168.100.1') { this.console.keybord.sutype = 'ssh'; this.console.requestLogin(); } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } else { if (com.args.length == 3 and com.args[0] == '-l' and com.args[2] == '192.168.100.1') { this.console.keybord.sutype = 'ssh'; this.console.requestPassword(); } else { this.console.setSystemAnswer('ssh: Unable to connect to remote host: Connection refused'); this.console.closeRow(); } } } } else { if (com.name == 'cd') { if (com.args.length <= 0 or com.args == undefined) { this.console.closeRow(); } else { if (com.args[0] == '..' or com.args[0] == '/home/sysadmin/' or com.args[0] == '/home/sysadmin') { this.console.closeRow(); } else { this.console.setSystemAnswer('-bash: cd: ' + com.args[0] + ': No such file or directory'); this.console.closeRow(); } } } else { if (com.name == 'apachectl') { if (com.args.length <= 0 or com.args == undefined) { this.console.setSystemAnswer('usage: apachectl <start | restart | stop>'); this.console.closeRow(); } else { if (com.args[0] == 'start') { this.console.setSystemAnswer('webserver already work! =)'); this.console.closeRow(); } else { if (com.args[0] == 'stop') { this.console.setSystemAnswer('webserver already work! =)'); this.console.closeRow(); } else { if (com.args[0] == 'restart') { this.console.setSystemAnswer('webserver already work! =)'); this.console.closeRow(); } else { this.console.setSystemAnswer('usage: apachectl <start | restart | stop>'); this.console.closeRow(); } } } } } } } } } } } } } } } } } } else { this.console.timeoutClose(); } } } } }; _global.levelCommands3 = v1; var v2 = v1.prototype; ASSetPropFlags(_global.levelCommands3.prototype, null, 1); } #endinitclip } movieClip 443 __Packages.mx.core.UIObject { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.UIObject) { var v1 = function () { super(); this.constructObject(); }; mx.core.UIObject = v1; var v2 = new MovieClip(); mx.core.UIObject.prototype = v2; v2.__get__width = function () { return this._width; }; v2.__get__height = function () { return this._height; }; v2.__get__left = function () { return this._x; }; v2.__get__x = function () { return this._x; }; v2.__get__top = function () { return this._y; }; v2.__get__y = function () { return this._y; }; v2.__get__right = function () { return this._parent.width - (this._x + this.__get__width()); }; v2.__get__bottom = function () { return this._parent.height - (this._y + this.__get__height()); }; v2.getMinHeight = function (Void) { return this._minHeight; }; v2.setMinHeight = function (h) { this._minHeight = h; }; v2.__get__minHeight = function () { return this.getMinHeight(); }; v2.__set__minHeight = function (h) { this.setMinHeight(h); return this.__get__minHeight(); }; v2.getMinWidth = function (Void) { return this._minWidth; }; v2.setMinWidth = function (w) { this._minWidth = w; }; v2.__get__minWidth = function () { return this.getMinWidth(); }; v2.__set__minWidth = function (w) { this.setMinWidth(w); return this.__get__minWidth(); }; v2.setVisible = function (x, noEvent) { if (x != this._visible) { this._visible = x; if (noEvent != true) { this.dispatchEvent({'type': x ? 'reveal' : 'hide'}); } } }; v2.__get__visible = function () { return this._visible; }; v2.__set__visible = function (x) { this.setVisible(x, false); return this.__get__visible(); }; v2.__get__scaleX = function () { return this._xscale; }; v2.__set__scaleX = function (x) { this._xscale = x; return this.__get__scaleX(); }; v2.__get__scaleY = function () { return this._yscale; }; v2.__set__scaleY = function (y) { this._yscale = y; return this.__get__scaleY(); }; v2.doLater = function (obj, fn) { if (this.methodTable == undefined) { this.methodTable = new Array(); } this.methodTable.push({'obj': obj, 'fn': fn}); this.onEnterFrame = this.doLaterDispatcher; }; v2.doLaterDispatcher = function (Void) { delete this.onEnterFrame; if (this.invalidateFlag) { this.redraw(); } var v3 = this.methodTable; this.methodTable = new Array(); if (v3.length > 0) { var v2; v2 = v3.shift(); while (v2 != undefined) { v2.obj[v2.fn](); } } }; v2.cancelAllDoLaters = function (Void) { delete this.onEnterFrame; this.methodTable = new Array(); }; v2.invalidate = function (Void) { this.invalidateFlag = true; this.onEnterFrame = this.doLaterDispatcher; }; v2.invalidateStyle = function (Void) { this.invalidate(); }; v2.redraw = function (bAlways) { if (this.invalidateFlag || bAlways) { this.invalidateFlag = false; var v2; for (v2 in this.tfList) { this.tfList[v2].draw(); } this.draw(); this.dispatchEvent({'type': 'draw'}); } }; v2.draw = function (Void) {}; v2.move = function (x, y, noEvent) { var v3 = this._x; var v2 = this._y; this._x = x; this._y = y; if (noEvent != true) { this.dispatchEvent({'type': 'move', 'oldX': v3, 'oldY': v2}); } }; v2.setSize = function (w, h, noEvent) { var v2 = this.__width; var v3 = this.__height; this.__width = w; this.__height = h; this.size(); if (noEvent != true) { this.dispatchEvent({'type': 'resize', 'oldWidth': v2, 'oldHeight': v3}); } }; v2.size = function (Void) { this._width = this.__width; this._height = this.__height; }; v2.drawRect = function (x1, y1, x2, y2) { this.moveTo(x1, y1); this.lineTo(x2, y1); this.lineTo(x2, y2); this.lineTo(x1, y2); this.lineTo(x1, y1); }; v2.createLabel = function (name, depth, text) { this.createTextField(name, depth, 0, 0, 0, 0); var v2 = this[name]; v2._color = mx.core.UIObject.textColorList; v2._visible = false; v2.__text = text; if (this.tfList == undefined) { this.tfList = new Object(); } this.tfList[name] = v2; v2.invalidateStyle(); this.invalidate(); v2.styleName = this; return v2; }; v2.createObject = function (linkageName, id, depth, initobj) { return this.attachMovie(linkageName, id, depth, initobj); }; v2.createClassObject = function (className, id, depth, initobj) { var v3 = className.symbolName == undefined; if (v3) { Object.registerClass(className.symbolOwner.symbolName, className); } var v4 = this.createObject(className.symbolOwner.symbolName, id, depth, initobj); if (v3) { Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner); } return v4; }; v2.createEmptyObject = function (id, depth) { return this.createClassObject(mx.core.UIObject, id, depth); }; v2.destroyObject = function (id) { var v2 = this[id]; if (v2.getDepth() < 0) { var v4 = this.buildDepthTable(); var v5 = this.findNextAvailableDepth(0, v4, 'up'); var v3 = v5; v2.swapDepths(v3); } v2.removeMovieClip(); delete this[id]; }; v2.getSkinIDName = function (tag) { return this.idNames[tag]; }; v2.setSkin = function (tag, linkageName, initObj) { if (_global.skinRegistry[linkageName] == undefined) { mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement); } return this.createObject(linkageName, this.getSkinIDName(tag), tag, initObj); }; v2.createSkin = function (tag) { var v2 = this.getSkinIDName(tag); this.createEmptyObject(v2, tag); return this[v2]; }; v2.createChildren = function (Void) {}; v2._createChildren = function (Void) { this.createChildren(); this.childrenCreated = true; }; v2.constructObject = function (Void) { if (this._name == undefined) { return undefined; } this.init(); this._createChildren(); this.createAccessibilityImplementation(); this._endInit(); if (this.validateNow) { this.redraw(true); } else { this.invalidate(); } }; v2.initFromClipParameters = function (Void) { var v4 = false; var v2; for (v2 in this.clipParameters) { if (this.hasOwnProperty(v2)) { v4 = true; this['def_' + v2] = this[v2]; delete this[v2]; } } if (v4) { for (v2 in this.clipParameters) { var v3 = this['def_' + v2]; if (v3 != undefined) { this[v2] = v3; } } } }; v2.init = function (Void) { this.__width = this._width; this.__height = this._height; if (this.initProperties == undefined) { this.initFromClipParameters(); } else { this.initProperties(); } if (_global.cascadingStyles == true) { this.stylecache = new Object(); } }; v2.getClassStyleDeclaration = function (Void) { var v4 = this; var v3 = this.className; while (v3 != undefined) { if (this.ignoreClassStyleDeclaration[v3] == undefined) { if (_global.styles[v3] != undefined) { return _global.styles[v3]; } } v4 = v4.__proto__; v3 = v4.className; } }; v2.setColor = function (color) {}; v2.__getTextFormat = function (tf, bAll) { var v8 = this.stylecache.tf; if (v8 != undefined) { var v3; for (v3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v3]) { if (tf[v3] == undefined) { tf[v3] = v8[v3]; } } } return false; } var v6 = false; for (v3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v3]) { if (tf[v3] == undefined) { var v5 = this._tf[v3]; if (v5 != undefined) { tf[v3] = v5; } else { if (v3 == 'font' && this.fontFamily != undefined) { tf[v3] = this.fontFamily; } else { if (v3 == 'size' && this.fontSize != undefined) { tf[v3] = this.fontSize; } else { if (v3 == 'color' && this.color != undefined) { tf[v3] = this.color; } else { if (v3 == 'leftMargin' && this.marginLeft != undefined) { tf[v3] = this.marginLeft; } else { if (v3 == 'rightMargin' && this.marginRight != undefined) { tf[v3] = this.marginRight; } else { if (v3 == 'italic' && this.fontStyle != undefined) { tf[v3] = this.fontStyle == v3; } else { if (v3 == 'bold' && this.fontWeight != undefined) { tf[v3] = this.fontWeight == v3; } else { if (v3 == 'align' && this.textAlign != undefined) { tf[v3] = this.textAlign; } else { if (v3 == 'indent' && this.textIndent != undefined) { tf[v3] = this.textIndent; } else { if (v3 == 'underline' && this.textDecoration != undefined) { tf[v3] = this.textDecoration == v3; } else { if (v3 == 'embedFonts' && this.embedFonts != undefined) { tf[v3] = this.embedFonts; } else { v6 = true; } } } } } } } } } } } } } } } if (v6) { var v9 = this.styleName; if (v9 != undefined) { if (typeof v9 != 'string') { v6 = v9.__getTextFormat(tf, true, this); } else { if (_global.styles[v9] != undefined) { v6 = _global.styles[v9].__getTextFormat(tf, true, this); } } } } if (v6) { var v10 = this.getClassStyleDeclaration(); if (v10 != undefined) { v6 = v10.__getTextFormat(tf, true, this); } } if (v6) { if (_global.cascadingStyles) { if (this._parent != undefined) { v6 = this._parent.__getTextFormat(tf, false); } } } if (v6) { v6 = _global.style.__getTextFormat(tf, true, this); } return v6; }; v2._getTextFormat = function (Void) { var v2 = this.stylecache.tf; if (v2 != undefined) { return v2; } v2 = new TextFormat(); this.__getTextFormat(v2, true); this.stylecache.tf = v2; if (this.enabled == false) { var v3 = this.getStyle('disabledColor'); v2.color = v3; } return v2; }; v2.getStyleName = function (Void) { var v2 = this.styleName; if (v2 != undefined) { if (typeof v2 != 'string') { return v2.getStyleName(); } else { return v2; } } if (this._parent != undefined) { return this._parent.getStyleName(); } else { return undefined; } }; v2.getStyle = function (styleProp) { var v3; ++_global.getStyleCounter; if (this[styleProp] != undefined) { return this[styleProp]; } var v6 = this.styleName; if (v6 != undefined) { if (typeof v6 != 'string') { v3 = v6.getStyle(styleProp); } else { var v7 = _global.styles[v6]; v3 = v7.getStyle(styleProp); } } if (v3 != undefined) { return v3; } v7 = this.getClassStyleDeclaration(); if (v7 != undefined) { v3 = v7[styleProp]; } if (v3 != undefined) { return v3; } if (_global.cascadingStyles) { if (mx.styles.StyleManager.isInheritingStyle(styleProp) || mx.styles.StyleManager.isColorStyle(styleProp)) { var v5 = this.stylecache; if (v5 != undefined) { if (v5[styleProp] != undefined) { return v5[styleProp]; } } if (this._parent != undefined) { v3 = this._parent.getStyle(styleProp); } else { v3 = _global.style[styleProp]; } if (v5 != undefined) { v5[styleProp] = v3; } return v3; } } if (v3 == undefined) { v3 = _global.style[styleProp]; } return v3; }; v1.mergeClipParameters = function (o, p) { for (var v3 in p) { o[v3] = p[v3]; } return true; }; v1.symbolName = 'UIObject'; v1.symbolOwner = mx.core.UIObject; v1.version = '2.0.2.127'; v1.textColorList = {'color': 1, 'disabledColor': 1}; v2.invalidateFlag = false; v2.lineWidth = 1; v2.lineColor = 0; v2.tabEnabled = false; v2.clipParameters = {'visible': 1, 'minHeight': 1, 'minWidth': 1, 'maxHeight': 1, 'maxWidth': 1, 'preferredHeight': 1, 'preferredWidth': 1}; v2.addProperty('bottom', v2.__get__bottom, function () {}); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('left', v2.__get__left, function () {}); v2.addProperty('minHeight', v2.__get__minHeight, v2.__set__minHeight); v2.addProperty('minWidth', v2.__get__minWidth, v2.__set__minWidth); v2.addProperty('right', v2.__get__right, function () {}); v2.addProperty('scaleX', v2.__get__scaleX, v2.__set__scaleX); v2.addProperty('scaleY', v2.__get__scaleY, v2.__set__scaleY); v2.addProperty('top', v2.__get__top, function () {}); v2.addProperty('visible', v2.__get__visible, v2.__set__visible); v2.addProperty('width', v2.__get__width, function () {}); v2.addProperty('x', v2.__get__x, function () {}); v2.addProperty('y', v2.__get__y, function () {}); ASSetPropFlags(mx.core.UIObject.prototype, null, 1); } #endinitclip } movieClip 444 __Packages.mx.core.UIComponent { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.UIComponent) { var v1 = function () { super(); }; mx.core.UIComponent = v1; var v2 = new mx.core.UIObject(); mx.core.UIComponent.prototype = v2; v2.__get__width = function () { return this.__width; }; v2.__get__height = function () { return this.__height; }; v2.setVisible = function (x, noEvent) { super.setVisible(x, noEvent); }; v2.enabledChanged = function (id, oldValue, newValue) { this.setEnabled(newValue); this.invalidate(); delete this.stylecache.tf; return newValue; }; v2.setEnabled = function (enabled) { this.invalidate(); }; v2.getFocus = function () { var selFocus = Selection.getFocus(); return (selFocus === null) ? null : eval(selFocus); }; v2.setFocus = function () { Selection.setFocus(this); }; v2.getFocusManager = function () { var v2 = this; while (v2 != undefined) { if (v2.focusManager != undefined) { return v2.focusManager; } v2 = v2._parent; } return undefined; }; v2.onKillFocus = function (newFocus) { this.removeEventListener('keyDown', this); this.removeEventListener('keyUp', this); this.dispatchEvent({'type': 'focusOut'}); this.drawFocus(false); }; v2.onSetFocus = function (oldFocus) { this.addEventListener('keyDown', this); this.addEventListener('keyUp', this); this.dispatchEvent({'type': 'focusIn'}); if ((this.getFocusManager()).bDrawFocus != false) { this.drawFocus(true); } }; v2.findFocusInChildren = function (o) { if (o.focusTextField != undefined) { return o.focusTextField; } if (o.tabEnabled == true) { return o; } return undefined; }; v2.findFocusFromObject = function (o) { if (o.tabEnabled != true) { if (o._parent == undefined) { return undefined; } if (o._parent.tabEnabled == true) { o = o._parent; return o; } if (o._parent.tabChildren) { o = this.findFocusInChildren(o._parent); return o; } o = this.findFocusFromObject(o._parent); } return o; }; v2.pressFocus = function () { var v3 = this.findFocusFromObject(this); var v2 = this.getFocus(); if (v3 != v2) { v2.drawFocus(false); if ((this.getFocusManager()).bDrawFocus != false) { v3.drawFocus(true); } } }; v2.releaseFocus = function () { var v2 = this.findFocusFromObject(this); if (v2 != this.getFocus()) { v2.setFocus(); } }; v2.isParent = function (o) { while (o != undefined) { if (o == this) { return true; } o = o._parent; } return false; }; v2.size = function () {}; v2.init = function () { super.init(); this._xscale = 100; this._yscale = 100; this._focusrect = _global.useFocusRect == false; this.watch('enabled', this.enabledChanged); if (this.enabled == false) { this.setEnabled(false); } }; v2.dispatchValueChangedEvent = function (value) { this.dispatchEvent({'type': 'valueChanged', 'value': value}); }; v1.symbolName = 'UIComponent'; v1.symbolOwner = mx.core.UIComponent; v1.version = '2.0.2.127'; v1.kStretch = 5000; v2.focusEnabled = true; v2.tabEnabled = true; v2.origBorderStyles = {'themeColor': 16711680}; v2.clipParameters = {}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(mx.core.UIComponent.prototype, null, 1); } #endinitclip } movieClip 445 __Packages.mx.controls.SimpleButton { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.SimpleButton) { var v1 = function () { super(); }; mx.controls.SimpleButton = v1; var v2 = new mx.core.UIComponent(); mx.controls.SimpleButton.prototype = v2; v2.init = function (Void) { super.init(); if (this.preset == undefined) { this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; } this.useHandCursor = false; }; v2.createChildren = function (Void) { if (this.preset != undefined) { var v2 = this[this.idNames[this.preset]]; this[this.refNames[this.preset]] = v2; this.skinName = v2; if (this.falseOverSkin.length == 0) { this.rolloverSkin = this.fus; } if (this.falseOverIcon.length == 0) { this.rolloverIcon = this.fui; } this.initializing = false; } else { if (this.__state == true) { this.setStateVar(true); } else { if (this.falseOverSkin.length == 0) { this.rolloverSkin = this.fus; } if (this.falseOverIcon.length == 0) { this.rolloverIcon = this.fui; } } } }; v2.setIcon = function (tag, linkageName) { return this.setSkin(tag + 8, linkageName); }; v2.changeIcon = function (tag, linkageName) { this.linkLength = linkageName.length; var v2 = this.stateNames[tag] + 'Icon'; this[v2] = linkageName; this[this.idNames[tag + 8]] = v2; this.setStateVar(this.getState()); }; v2.changeSkin = function (tag, linkageName) { var v2 = this.stateNames[tag] + 'Skin'; this[v2] = linkageName; this[this.idNames[tag]] = v2; this.setStateVar(this.getState()); }; v2.viewIcon = function (varName) { var v4 = varName + 'Icon'; var v3 = this[v4]; if (typeof v3 == 'string') { var v5 = v3; if (this.__emphasized) { if (this[v3 + 'Emphasized'].length > 0) { v3 += 'Emphasized'; } } if (this[v3].length == 0) { return undefined; } v3 = this.setIcon(this.tagMap[v5], this[v3]); if (v3 == undefined && _global.isLivePreview) { v3 = this.setIcon(0, 'ButtonIcon'); } this[v4] = v3; } this.iconName._visible = false; this.iconName = v3; this.iconName._visible = true; }; v2.removeIcons = function () { var v3 = 0; while (v3 < 2) { var v2 = 8; while (v2 < 16) { this.destroyObject(this.idNames[v2]); this[this.stateNames[v2 - 8] + 'Icon'] = ''; ++v2; } ++v3; } this.refresh(); }; v2.setSkin = function (tag, linkageName, initobj) { if (initobj == undefined) { var v3 = super.setSkin(tag, linkageName, {'styleName': this}); this.calcSize(tag, v3); return v3; } var v3 = super.setSkin(tag, linkageName, initobj); this.calcSize(tag, v3); return v3; }; v2.calcSize = function (Void) { this.__width = this._width; this.__height = this._height; }; v2.viewSkin = function (varName, initObj) { var v3 = varName + 'Skin'; var v2 = this[v3]; if (typeof v2 == 'string') { var v4 = v2; if (this.__emphasized) { if (this[v2 + 'Emphasized'].length > 0) { v2 += 'Emphasized'; } } if (this[v2].length == 0) { return undefined; } v2 = this.setSkin(this.tagMap[v4], this[v2], (initObj != undefined) ? initObj : {'styleName': this}); this[v3] = v2; } this.skinName._visible = false; this.skinName = v2; this.skinName._visible = true; }; v2.showEmphasized = function (e) { if (e && !this.__emphatic) { if (mx.controls.SimpleButton.emphasizedStyleDeclaration != undefined) { this.__emphaticStyleName = this.styleName; this.styleName = mx.controls.SimpleButton.emphasizedStyleDeclaration; } this.__emphatic = true; } else { if (this.__emphatic) { this.styleName = this.__emphaticStyleName; } this.__emphatic = false; } }; v2.refresh = function (Void) { var v2 = this.getState(); if (this.enabled == false) { this.viewIcon('disabled'); this.viewSkin('disabled'); } else { this.viewSkin(this.phase); this.viewIcon(this.phase); } this.setView(this.phase == 'down'); this.iconName.enabled = this.enabled; }; v2.setView = function (offset) { if (this.iconName == undefined) { return undefined; } var v2 = offset ? this.btnOffset : 0; this.iconName._x = (this.__width - this.iconName._width) / 2 + v2; this.iconName._y = (this.__height - this.iconName._height) / 2 + v2; }; v2.setStateVar = function (state) { if (state) { if (this.trueOverSkin.length == 0) { this.rolloverSkin = this.tus; } else { this.rolloverSkin = this.trs; } if (this.trueOverIcon.length == 0) { this.rolloverIcon = this.tui; } else { this.rolloverIcon = this.tri; } this.upSkin = this.tus; this.downSkin = this.tds; this.disabledSkin = this.dts; this.upIcon = this.tui; this.downIcon = this.tdi; this.disabledIcon = this.dti; } else { if (this.falseOverSkin.length == 0) { this.rolloverSkin = this.fus; } else { this.rolloverSkin = this.frs; } if (this.falseOverIcon.length == 0) { this.rolloverIcon = this.fui; } else { this.rolloverIcon = this.fri; } this.upSkin = this.fus; this.downSkin = this.fds; this.disabledSkin = this.dfs; this.upIcon = this.fui; this.downIcon = this.fdi; this.disabledIcon = this.dfi; } this.__state = state; }; v2.setState = function (state) { if (state != this.__state) { this.setStateVar(state); this.invalidate(); } }; v2.size = function (Void) { this.refresh(); }; v2.draw = function (Void) { if (this.initializing) { this.initializing = false; this.skinName.visible = true; this.iconName.visible = true; } this.size(); }; v2.getState = function (Void) { return this.__state; }; v2.setToggle = function (val) { this.__toggle = val; if (this.__toggle == false) { this.setState(false); } }; v2.getToggle = function (Void) { return this.__toggle; }; v2.__set__toggle = function (val) { this.setToggle(val); return this.__get__toggle(); }; v2.__get__toggle = function () { return this.getToggle(); }; v2.__set__value = function (val) { this.setSelected(val); return this.__get__value(); }; v2.__get__value = function () { return this.getSelected(); }; v2.__set__selected = function (val) { this.setSelected(val); return this.__get__selected(); }; v2.__get__selected = function () { return this.getSelected(); }; v2.setSelected = function (val) { if (this.__toggle) { this.setState(val); } else { this.setState(this.initializing ? val : this.__state); } }; v2.getSelected = function () { return this.__state; }; v2.setEnabled = function (val) { if (this.enabled != val) { super.setEnabled(val); this.invalidate(); } }; v2.onPress = function (Void) { this.pressFocus(); this.phase = 'down'; this.refresh(); this.dispatchEvent({'type': 'buttonDown'}); if (this.autoRepeat) { this.interval = setInterval(this, 'onPressDelay', this.getStyle('repeatDelay')); } }; v2.onPressDelay = function (Void) { this.dispatchEvent({'type': 'buttonDown'}); if (this.autoRepeat) { clearInterval(this.interval); this.interval = setInterval(this, 'onPressRepeat', this.getStyle('repeatInterval')); } }; v2.onPressRepeat = function (Void) { this.dispatchEvent({'type': 'buttonDown'}); updateAfterEvent(); }; v2.onRelease = function (Void) { this.releaseFocus(); this.phase = 'rollover'; if (this.interval != undefined) { clearInterval(this.interval); delete this.interval; } if (this.getToggle()) { this.setState(!this.getState()); } else { this.refresh(); } this.dispatchEvent({'type': 'click'}); }; v2.onDragOut = function (Void) { this.phase = 'up'; this.refresh(); this.dispatchEvent({'type': 'buttonDragOut'}); }; v2.onDragOver = function (Void) { if (this.phase != 'up') { this.onPress(); return undefined; } else { this.phase = 'down'; this.refresh(); } }; v2.onReleaseOutside = function (Void) { this.releaseFocus(); this.phase = 'up'; if (this.interval != undefined) { clearInterval(this.interval); delete this.interval; } }; v2.onRollOver = function (Void) { this.phase = 'rollover'; this.refresh(); }; v2.onRollOut = function (Void) { this.phase = 'up'; this.refresh(); }; v2.getLabel = function (Void) { return this.fui.text; }; v2.setLabel = function (val) { if (typeof this.fui == 'string') { this.createLabel('fui', 8, val); this.fui.styleName = this; } else { this.fui.text = val; } var v4 = this.fui._getTextFormat(); var v2 = v4.getTextExtent2(val); this.fui._width = v2.width + 5; this.fui._height = v2.height + 5; this.iconName = this.fui; this.setView(this.__state); }; v2.__get__emphasized = function () { return this.__emphasized; }; v2.__set__emphasized = function (val) { this.__emphasized = val; var v2 = 0; while (v2 < 8) { this[this.idNames[v2]] = this.stateNames[v2] + 'Skin'; if (typeof this[this.idNames[v2 + 8]] == 'movieclip') { this[this.idNames[v2 + 8]] = this.stateNames[v2] + 'Icon'; } ++v2; } this.showEmphasized(this.__emphasized); this.setStateVar(this.__state); this.invalidateStyle(); return this.__get__emphasized(); }; v2.keyDown = function (e) { if (e.code == 32) { this.onPress(); } }; v2.keyUp = function (e) { if (e.code == 32) { this.onRelease(); } }; v2.onKillFocus = function (newFocus) { super.onKillFocus(); if (this.phase != 'up') { this.phase = 'up'; this.refresh(); } }; v1.symbolName = 'SimpleButton'; v1.symbolOwner = mx.controls.SimpleButton; v1.version = '2.0.2.127'; v2.className = 'SimpleButton'; v2.style3dInset = 4; v2.btnOffset = 1; v2.__toggle = false; v2.__state = false; v2.__emphasized = false; v2.__emphatic = false; v1.falseUp = 0; v1.falseDown = 1; v1.falseOver = 2; v1.falseDisabled = 3; v1.trueUp = 4; v1.trueDown = 5; v1.trueOver = 6; v1.trueDisabled = 7; v2.falseUpSkin = 'SimpleButtonUp'; v2.falseDownSkin = 'SimpleButtonIn'; v2.falseOverSkin = ''; v2.falseDisabledSkin = 'SimpleButtonUp'; v2.trueUpSkin = 'SimpleButtonIn'; v2.trueDownSkin = ''; v2.trueOverSkin = ''; v2.trueDisabledSkin = 'SimpleButtonIn'; v2.falseUpIcon = ''; v2.falseDownIcon = ''; v2.falseOverIcon = ''; v2.falseDisabledIcon = ''; v2.trueUpIcon = ''; v2.trueDownIcon = ''; v2.trueOverIcon = ''; v2.trueDisabledIcon = ''; v2.phase = 'up'; v2.fui = 'falseUpIcon'; v2.fus = 'falseUpSkin'; v2.fdi = 'falseDownIcon'; v2.fds = 'falseDownSkin'; v2.frs = 'falseOverSkin'; v2.fri = 'falseOverIcon'; v2.dfi = 'falseDisabledIcon'; v2.dfs = 'falseDisabledSkin'; v2.tui = 'trueUpIcon'; v2.tus = 'trueUpSkin'; v2.tdi = 'trueDownIcon'; v2.tds = 'trueDownSkin'; v2.trs = 'trueOverSkin'; v2.tri = 'trueOverIcon'; v2.dts = 'trueDisabledSkin'; v2.dti = 'trueDisabledIcon'; v2.rolloverSkin = mx.controls.SimpleButton.prototype.frs; v2.rolloverIcon = mx.controls.SimpleButton.prototype.fri; v2.upSkin = mx.controls.SimpleButton.prototype.fus; v2.downSkin = mx.controls.SimpleButton.prototype.fds; v2.disabledSkin = mx.controls.SimpleButton.prototype.dfs; v2.upIcon = mx.controls.SimpleButton.prototype.fui; v2.downIcon = mx.controls.SimpleButton.prototype.fdi; v2.disabledIcon = mx.controls.SimpleButton.prototype.dfi; v2.initializing = true; v2.idNames = ['fus', 'fds', 'frs', 'dfs', 'tus', 'tds', 'trs', 'dts', 'fui', 'fdi', 'fri', 'dfi', 'tui', 'tdi', 'tri', 'dti']; v2.stateNames = ['falseUp', 'falseDown', 'falseOver', 'falseDisabled', 'trueUp', 'trueDown', 'trueOver', 'trueDisabled']; v2.refNames = ['upSkin', 'downSkin', 'rolloverSkin', 'disabledSkin']; v2.tagMap = {'falseUpSkin': 0, 'falseDownSkin': 1, 'falseOverSkin': 2, 'falseDisabledSkin': 3, 'trueUpSkin': 4, 'trueDownSkin': 5, 'trueOverSkin': 6, 'trueDisabledSkin': 7, 'falseUpIcon': 0, 'falseDownIcon': 1, 'falseOverIcon': 2, 'falseDisabledIcon': 3, 'trueUpIcon': 4, 'trueDownIcon': 5, 'trueOverIcon': 6, 'trueDisabledIcon': 7}; v2.addProperty('emphasized', v2.__get__emphasized, v2.__set__emphasized); v2.addProperty('selected', v2.__get__selected, v2.__set__selected); v2.addProperty('toggle', v2.__get__toggle, v2.__set__toggle); v2.addProperty('value', v2.__get__value, v2.__set__value); ASSetPropFlags(mx.controls.SimpleButton.prototype, null, 1); } #endinitclip } movieClip 446 __Packages.mx.controls.Button { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.Button) { var v1 = function () { super(); }; mx.controls.Button = v1; var v2 = new mx.controls.SimpleButton(); mx.controls.Button.prototype = v2; v2.init = function (Void) { super.init(); }; v2.draw = function () { if (this.initializing) { this.labelPath.visible = true; } super.draw(); if (this.initIcon != undefined) { this._setIcon(this.initIcon); } delete this.initIcon; }; v2.onRelease = function (Void) { super.onRelease(); }; v2.createChildren = function (Void) { super.createChildren(); }; v2.setSkin = function (tag, linkageName, initobj) { return super.setSkin(tag, linkageName, initobj); }; v2.viewSkin = function (varName) { var v3 = this.getState() ? 'true' : 'false'; v3 += this.enabled ? this.phase : 'disabled'; super.viewSkin(varName, {'styleName': this, 'borderStyle': v3}); }; v2.invalidateStyle = function (c) { this.labelPath.invalidateStyle(c); super.invalidateStyle(c); }; v2.setColor = function (c) { var v2 = 0; while (v2 < 8) { this[this.idNames[v2]].redraw(true); ++v2; } }; v2.setEnabled = function (enable) { this.labelPath.enabled = enable; super.setEnabled(enable); }; v2.calcSize = function (tag, ref) { if (this.__width == undefined || this.__height == undefined) { return undefined; } if (tag < 7) { ref.setSize(this.__width, this.__height, true); } }; v2.size = function (Void) { this.setState(this.getState()); this.setHitArea(this.__width, this.__height); var v3 = 0; while (v3 < 8) { var v4 = this.idNames[v3]; if (typeof this[v4] == 'movieclip') { this[v4].setSize(this.__width, this.__height, true); } ++v3; } super.size(); }; v2.__set__labelPlacement = function (val) { this.__labelPlacement = val; this.invalidate(); return this.__get__labelPlacement(); }; v2.__get__labelPlacement = function () { return this.__labelPlacement; }; v2.getLabelPlacement = function (Void) { return this.__labelPlacement; }; v2.setLabelPlacement = function (val) { this.__labelPlacement = val; this.invalidate(); }; v2.getBtnOffset = function (Void) { if (this.getState()) { var v2 = this.btnOffset; return v2; } if (this.phase == 'down') { v2 = this.btnOffset; return v2; } v2 = 0; return v2; }; v2.setView = function (offset) { var v16 = offset ? this.btnOffset : 0; var v12 = this.getLabelPlacement(); var v7 = 0; var v6 = 0; var v9 = 0; var v8 = 0; var v5 = 0; var v4 = 0; var v3 = this.labelPath; var v2 = this.iconName; var v15 = v3.textWidth; var v14 = v3.textHeight; var v10 = this.__width - this.borderW - this.borderW; var v11 = this.__height - this.borderW - this.borderW; if (v2 != undefined) { v7 = v2._width; v6 = v2._height; } if (v12 == 'left' || v12 == 'right') { if (v3 != undefined) { v9 = Math.min(v10 - v7, v15 + 5); v3._width = v9; v8 = Math.min(v11, v14 + 5); v3._height = v8; } if (v12 == 'right') { v5 = v7; if (this.centerContent) { v5 += (v10 - v9 - v7) / 2; } v2._x = v5 - v7; } else { v5 = v10 - v9 - v7; if (this.centerContent) { v5 /= 2; } v2._x = v5 + v9; } v4 = 0; v2._y = v4; if (this.centerContent) { v2._y = (v11 - v6) / 2; v4 = (v11 - v8) / 2; } if (!this.centerContent) { v2._y += Math.max(0, (v8 - v6) / 2); } } else { if (v3 != undefined) { v9 = Math.min(v10, v15 + 5); v3._width = v9; v8 = Math.min(v11 - v6, v14 + 5); v3._height = v8; } v5 = (v10 - v9) / 2; v2._x = (v10 - v7) / 2; if (v12 == 'top') { v4 = v11 - v8 - v6; if (this.centerContent) { v4 /= 2; } v2._y = v4 + v8; } else { v4 = v6; if (this.centerContent) { v4 += (v11 - v8 - v6) / 2; } v2._y = v4 - v6; } } var v13 = this.borderW + v16; v3._x = v5 + v13; v3._y = v4 + v13; v2._x += v13; v2._y += v13; }; v2.__set__label = function (lbl) { this.setLabel(lbl); return this.__get__label(); }; v2.setLabel = function (label) { if (label == '') { this.labelPath.removeTextField(); this.refresh(); return undefined; } if (this.labelPath == undefined) { var v2 = this.createLabel('labelPath', 200, label); v2._width = v2.textWidth + 5; v2._height = v2.textHeight + 5; if (this.initializing) { v2.visible = false; } } else { delete this.labelPath.__text; this.labelPath.text = label; this.refresh(); } }; v2.getLabel = function (Void) { return (this.labelPath.__text != undefined) ? this.labelPath.__text : this.labelPath.text; }; v2.__get__label = function () { return this.getLabel(); }; v2._getIcon = function (Void) { return this._iconLinkageName; }; v2.__get__icon = function () { if (this.initializing) { return this.initIcon; } return this._iconLinkageName; }; v2._setIcon = function (linkage) { if (this.initializing) { if (linkage == '') { return undefined; } this.initIcon = linkage; } else { if (linkage == '') { this.removeIcons(); return undefined; } super.changeIcon(0, linkage); super.changeIcon(1, linkage); super.changeIcon(3, linkage); super.changeIcon(4, linkage); super.changeIcon(5, linkage); this._iconLinkageName = linkage; this.refresh(); } }; v2.__set__icon = function (linkage) { this._setIcon(linkage); return this.__get__icon(); }; v2.setHitArea = function (w, h) { if (this.hitArea_mc == undefined) { this.createEmptyObject('hitArea_mc', 100); } var v2 = this.hitArea_mc; v2.clear(); v2.beginFill(16711680); v2.drawRect(0, 0, w, h); v2.endFill(); v2.setVisible(false); }; v1.symbolName = 'Button'; v1.symbolOwner = mx.controls.Button; v2.className = 'Button'; v1.version = '2.0.2.127'; v2.btnOffset = 0; v2._color = 'buttonColor'; v2.__label = 'default value'; v2.__labelPlacement = 'right'; v2.falseUpSkin = 'ButtonSkin'; v2.falseDownSkin = 'ButtonSkin'; v2.falseOverSkin = 'ButtonSkin'; v2.falseDisabledSkin = 'ButtonSkin'; v2.trueUpSkin = 'ButtonSkin'; v2.trueDownSkin = 'ButtonSkin'; v2.trueOverSkin = 'ButtonSkin'; v2.trueDisabledSkin = 'ButtonSkin'; v2.falseUpIcon = ''; v2.falseDownIcon = ''; v2.falseOverIcon = ''; v2.falseDisabledIcon = ''; v2.trueUpIcon = ''; v2.trueDownIcon = ''; v2.trueOverIcon = ''; v2.trueDisabledIcon = ''; v2.clipParameters = {'labelPlacement': 1, 'icon': 1, 'toggle': 1, 'selected': 1, 'label': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters); v2.centerContent = true; v2.borderW = 1; v2.addProperty('icon', v2.__get__icon, v2.__set__icon); v2.addProperty('label', v2.__get__label, v2.__set__label); v2.addProperty('labelPlacement', v2.__get__labelPlacement, v2.__set__labelPlacement); ASSetPropFlags(mx.controls.Button.prototype, null, 1); } #endinitclip } movieClip 447 __Packages.mx.controls.CheckBox { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.CheckBox) { var v1 = function () { super(); }; mx.controls.CheckBox = v1; var v2 = new mx.controls.Button(); mx.controls.CheckBox.prototype = v2; v2.onRelease = function () { super.onRelease(); }; v2.init = function () { super.init(); }; v2.size = function () { super.size(); }; v2.__get__emphasized = function () { return undefined; }; v2.calcPreferredHeight = function () { var v5 = this._getTextFormat(); var v3 = (v5.getTextExtent2(this.labelPath.text)).height; var v4 = this.iconName._height; var v2 = 0; if (this.__labelPlacement == 'left' || this.__labelPlacement == 'right') { v2 = Math.max(v3, v4); return Math.max(14, v2); } v2 = v3 + v4; return Math.max(14, v2); }; v2.__set__toggle = function (v) { return this.__get__toggle(); }; v2.__get__toggle = function () {}; v2.__set__icon = function (v) { return this.__get__icon(); }; v2.__get__icon = function () {}; v1.symbolName = 'CheckBox'; v1.symbolOwner = mx.controls.CheckBox; v1.version = '2.0.2.127'; v2.className = 'CheckBox'; v2.ignoreClassStyleDeclaration = {'Button': 1}; v2.btnOffset = 0; v2.__toggle = true; v2.__selected = false; v2.__labelPlacement = 'right'; v2.__label = 'CheckBox'; v2.falseUpSkin = ''; v2.falseDownSkin = ''; v2.falseOverSkin = ''; v2.falseDisabledSkin = ''; v2.trueUpSkin = ''; v2.trueDownSkin = ''; v2.trueOverSkin = ''; v2.trueDisabledSkin = ''; v2.falseUpIcon = 'CheckFalseUp'; v2.falseDownIcon = 'CheckFalseDown'; v2.falseOverIcon = 'CheckFalseOver'; v2.falseDisabledIcon = 'CheckFalseDisabled'; v2.trueUpIcon = 'CheckTrueUp'; v2.trueDownIcon = 'CheckTrueDown'; v2.trueOverIcon = 'CheckTrueOver'; v2.trueDisabledIcon = 'CheckTrueDisabled'; v2.clipParameters = {'label': 1, 'labelPlacement': 1, 'selected': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.CheckBox.prototype.clipParameters, mx.controls.Button.prototype.clipParameters); v2.centerContent = false; v2.borderW = 0; v2.addProperty('emphasized', v2.__get__emphasized, function () {}); v2.addProperty('icon', v2.__get__icon, v2.__set__icon); v2.addProperty('toggle', v2.__get__toggle, v2.__set__toggle); ASSetPropFlags(mx.controls.CheckBox.prototype, null, 1); } #endinitclip } movieClip 493 __Packages.mx.skins.SkinElement { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.SkinElement) { var v1 = function () { super(); }; mx.skins.SkinElement = v1; var v2 = new MovieClip(); mx.skins.SkinElement.prototype = v2; v1.registerElement = function (name, className) { Object.registerClass(name, (className == undefined) ? mx.skins.SkinElement : className); _global.skinRegistry[name] = true; }; v2.__set__visible = function (visible) { this._visible = visible; }; v2.move = function (x, y) { this._x = x; this._y = y; }; v2.setSize = function (w, h) { this._width = w; this._height = h; }; ASSetPropFlags(mx.skins.SkinElement.prototype, null, 1); } #endinitclip } movieClip 494 __Packages.mx.styles.CSSTextStyles { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.CSSTextStyles) { var v1 = function () {}; mx.styles.CSSTextStyles = v1; var v2 = v1.prototype; v1.addTextStyles = function (o, bColor) { o.addProperty('textAlign', function () { return this._tf.align; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.align = x; }); o.addProperty('fontWeight', function () { return (this._tf.bold != undefined) ? (this._tf.bold ? 'bold' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.bold = x == 'bold'; }); if (bColor) { o.addProperty('color', function () { return this._tf.color; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.color = x; }); } o.addProperty('fontFamily', function () { return this._tf.font; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.font = x; }); o.addProperty('textIndent', function () { return this._tf.indent; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.indent = x; }); o.addProperty('fontStyle', function () { return (this._tf.italic != undefined) ? (this._tf.italic ? 'italic' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.italic = x == 'italic'; }); o.addProperty('marginLeft', function () { return this._tf.leftMargin; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.leftMargin = x; }); o.addProperty('marginRight', function () { return this._tf.rightMargin; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.rightMargin = x; }); o.addProperty('fontSize', function () { return this._tf.size; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.size = x; }); o.addProperty('textDecoration', function () { return (this._tf.underline != undefined) ? (this._tf.underline ? 'underline' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.underline = x == 'underline'; }); o.addProperty('embedFonts', function () { return this._tf.embedFonts; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.embedFonts = x; }); }; ASSetPropFlags(mx.styles.CSSTextStyles.prototype, null, 1); } #endinitclip } movieClip 495 __Packages.mx.styles.StyleManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.StyleManager) { var v1 = function () {}; mx.styles.StyleManager = v1; var v2 = v1.prototype; v1.registerInheritingStyle = function (styleName) { mx.styles.StyleManager.inheritingStyles[styleName] = true; }; v1.isInheritingStyle = function (styleName) { return mx.styles.StyleManager.inheritingStyles[styleName] == true; }; v1.registerColorStyle = function (styleName) { mx.styles.StyleManager.colorStyles[styleName] = true; }; v1.isColorStyle = function (styleName) { return mx.styles.StyleManager.colorStyles[styleName] == true; }; v1.registerColorName = function (colorName, colorValue) { mx.styles.StyleManager.colorNames[colorName] = colorValue; }; v1.isColorName = function (colorName) { return mx.styles.StyleManager.colorNames[colorName] != undefined; }; v1.getColorName = function (colorName) { return mx.styles.StyleManager.colorNames[colorName]; }; v1.inheritingStyles = {'color': true, 'direction': true, 'fontFamily': true, 'fontSize': true, 'fontStyle': true, 'fontWeight': true, 'textAlign': true, 'textIndent': true}; v1.colorStyles = {'barColor': true, 'trackColor': true, 'borderColor': true, 'buttonColor': true, 'color': true, 'dateHeaderColor': true, 'dateRollOverColor': true, 'disabledColor': true, 'fillColor': true, 'highlightColor': true, 'scrollTrackColor': true, 'selectedDateColor': true, 'shadowColor': true, 'strokeColor': true, 'symbolBackgroundColor': true, 'symbolBackgroundDisabledColor': true, 'symbolBackgroundPressedColor': true, 'symbolColor': true, 'symbolDisabledColor': true, 'themeColor': true, 'todayIndicatorColor': true, 'shadowCapColor': true, 'borderCapColor': true, 'focusColor': true}; v1.colorNames = {'black': 0, 'white': 16777215, 'red': 16711680, 'green': 65280, 'blue': 255, 'magenta': 16711935, 'yellow': 16776960, 'cyan': 65535, 'haloGreen': 8453965, 'haloBlue': 2881013, 'haloOrange': 16761344}; v1.TextFormatStyleProps = {'font': true, 'size': true, 'color': true, 'leftMargin': false, 'rightMargin': false, 'italic': true, 'bold': true, 'align': true, 'indent': true, 'underline': false, 'embedFonts': false}; v1.TextStyleMap = {'textAlign': true, 'fontWeight': true, 'color': true, 'fontFamily': true, 'textIndent': true, 'fontStyle': true, 'lineHeight': true, 'marginLeft': true, 'marginRight': true, 'fontSize': true, 'textDecoration': true, 'embedFonts': true}; ASSetPropFlags(mx.styles.StyleManager.prototype, null, 1); } #endinitclip } movieClip 496 __Packages.mx.styles.CSSStyleDeclaration { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.CSSStyleDeclaration) { var v1 = function () {}; mx.styles.CSSStyleDeclaration = v1; var v2 = v1.prototype; v2.__getTextFormat = function (tf, bAll) { var v5 = false; if (this._tf != undefined) { var v2; for (v2 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v2]) { if (tf[v2] == undefined) { var v3 = this._tf[v2]; if (v3 != undefined) { tf[v2] = v3; } else { v5 = true; } } } } return v5; } v5 = true; return v5; }; v2.getStyle = function (styleProp) { var v2 = this[styleProp]; var v3 = mx.styles.StyleManager.getColorName(v2); return (v3 == undefined) ? v2 : v3; }; v1.classConstruct = function () { mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true); return true; }; v1.classConstructed = mx.styles.CSSStyleDeclaration.classConstruct(); v1.CSSTextStylesDependency = mx.styles.CSSTextStyles; ASSetPropFlags(mx.styles.CSSStyleDeclaration.prototype, null, 1); } #endinitclip } movieClip 497 __Packages.mx.events.EventDispatcher { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.events) { _global.mx.events = new Object(); } if (!_global.mx.events.EventDispatcher) { var v1 = function () {}; mx.events.EventDispatcher = v1; var v2 = v1.prototype; v1._removeEventListener = function (queue, event, handler) { if (queue != undefined) { var v4 = queue.length; var v1; v1 = 0; while (v1 < v4) { var v2 = queue[v1]; if (v2 == handler) { queue.splice(v1, 1); return undefined; } ++v1; } } }; v1.initialize = function (object) { if (mx.events.EventDispatcher._fEventDispatcher == undefined) { mx.events.EventDispatcher._fEventDispatcher = new mx.events.EventDispatcher(); } object.addEventListener = mx.events.EventDispatcher._fEventDispatcher.addEventListener; object.removeEventListener = mx.events.EventDispatcher._fEventDispatcher.removeEventListener; object.dispatchEvent = mx.events.EventDispatcher._fEventDispatcher.dispatchEvent; object.dispatchQueue = mx.events.EventDispatcher._fEventDispatcher.dispatchQueue; }; v2.dispatchQueue = function (queueObj, eventObj) { var v7 = '__q_' + eventObj.type; var v4 = queueObj[v7]; if (v4 != undefined) { var v5; for (v5 in v4) { var v1 = v4[v5]; var v3 = typeof v1; if (v3 == 'object' || v3 == 'movieclip') { if (v1.handleEvent != undefined) { v1.handleEvent(eventObj); } if (v1[eventObj.type] != undefined) { if (mx.events.EventDispatcher.exceptions[eventObj.type] == undefined) { v1[eventObj.type](eventObj); } } } else { v1.apply(queueObj, [eventObj]); } } } }; v2.dispatchEvent = function (eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + 'Handler'](eventObj); this.dispatchQueue(this, eventObj); }; v2.addEventListener = function (event, handler) { var v3 = '__q_' + event; if (this[v3] == undefined) { this[v3] = new Array(); } _global.ASSetPropFlags(this, v3, 1); mx.events.EventDispatcher._removeEventListener(this[v3], event, handler); this[v3].push(handler); }; v2.removeEventListener = function (event, handler) { var v2 = '__q_' + event; mx.events.EventDispatcher._removeEventListener(this[v2], event, handler); }; v1._fEventDispatcher = undefined; v1.exceptions = {'move': 1, 'draw': 1, 'load': 1}; ASSetPropFlags(mx.events.EventDispatcher.prototype, null, 1); } #endinitclip } movieClip 498 __Packages.mx.events.UIEventDispatcher { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.events) { _global.mx.events = new Object(); } if (!_global.mx.events.UIEventDispatcher) { var v1 = function () { super(); }; mx.events.UIEventDispatcher = v1; var v2 = new mx.events.EventDispatcher(); mx.events.UIEventDispatcher.prototype = v2; v1.addKeyEvents = function (obj) { if (obj.keyHandler == undefined) { obj.keyHandler = new Object(); var v1 = obj.keyHandler; v1.owner = obj; v1.onKeyDown = mx.events.UIEventDispatcher._fEventDispatcher.onKeyDown; v1.onKeyUp = mx.events.UIEventDispatcher._fEventDispatcher.onKeyUp; } Key.addListener(obj.keyHandler); }; v1.removeKeyEvents = function (obj) { Key.removeListener(obj.keyHandler); }; v1.addLoadEvents = function (obj) { if (obj.onLoad == undefined) { obj.onLoad = mx.events.UIEventDispatcher._fEventDispatcher.onLoad; obj.onUnload = mx.events.UIEventDispatcher._fEventDispatcher.onUnload; if (obj.getBytesTotal() == obj.getBytesLoaded()) { obj.doLater(obj, 'onLoad'); } } }; v1.removeLoadEvents = function (obj) { delete obj.onLoad; delete obj.onUnload; }; v1.initialize = function (obj) { if (mx.events.UIEventDispatcher._fEventDispatcher == undefined) { mx.events.UIEventDispatcher._fEventDispatcher = new mx.events.UIEventDispatcher(); } obj.addEventListener = mx.events.UIEventDispatcher._fEventDispatcher.__addEventListener; obj.__origAddEventListener = mx.events.UIEventDispatcher._fEventDispatcher.addEventListener; obj.removeEventListener = mx.events.UIEventDispatcher._fEventDispatcher.removeEventListener; obj.dispatchEvent = mx.events.UIEventDispatcher._fEventDispatcher.dispatchEvent; obj.dispatchQueue = mx.events.UIEventDispatcher._fEventDispatcher.dispatchQueue; }; v2.dispatchEvent = function (eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + 'Handler'](eventObj); this.dispatchQueue(mx.events.EventDispatcher, eventObj); this.dispatchQueue(this, eventObj); }; v2.onKeyDown = function (Void) { this.owner.dispatchEvent({'type': 'keyDown', 'code': Key.getCode(), 'ascii': Key.getAscii(), 'shiftKey': Key.isDown(16), 'ctrlKey': Key.isDown(17)}); }; v2.onKeyUp = function (Void) { this.owner.dispatchEvent({'type': 'keyUp', 'code': Key.getCode(), 'ascii': Key.getAscii(), 'shiftKey': Key.isDown(16), 'ctrlKey': Key.isDown(17)}); }; v2.onLoad = function (Void) { if (this.__sentLoadEvent != true) { this.dispatchEvent({'type': 'load'}); } this.__sentLoadEvent = true; }; v2.onUnload = function (Void) { this.dispatchEvent({'type': 'unload'}); }; v2.__addEventListener = function (event, handler) { this.__origAddEventListener(event, handler); var v3 = mx.events.UIEventDispatcher.lowLevelEvents; for (var v5 in v3) { if (mx.events.UIEventDispatcher[v5][event] != undefined) { var v2 = v3[v5][0]; mx.events.UIEventDispatcher[v2](this); } } }; v2.removeEventListener = function (event, handler) { var v6 = '__q_' + event; mx.events.EventDispatcher._removeEventListener(this[v6], event, handler); if (this[v6].length == 0) { var v2 = mx.events.UIEventDispatcher.lowLevelEvents; for (var v5 in v2) { if (mx.events.UIEventDispatcher[v5][event] != undefined) { var v3 = v2[v5][1]; mx.events.UIEventDispatcher[v2[v5][1]](this); } } } }; v1.keyEvents = {'keyDown': 1, 'keyUp': 1}; v1.loadEvents = {'load': 1, 'unload': 1}; v1.lowLevelEvents = {'keyEvents': ['addKeyEvents', 'removeKeyEvents'], 'loadEvents': ['addLoadEvents', 'removeLoadEvents']}; v1._fEventDispatcher = undefined; ASSetPropFlags(mx.events.UIEventDispatcher.prototype, null, 1); } #endinitclip } movieClip 499 __Packages.mx.skins.ColoredSkinElement { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.ColoredSkinElement) { var v1 = function () {}; mx.skins.ColoredSkinElement = v1; var v2 = v1.prototype; v2.setColor = function (c) { if (c != undefined) { var v2 = new Color(this); v2.setRGB(c); } }; v2.draw = function (Void) { this.setColor(this.getStyle(this._color)); this.onEnterFrame = undefined; }; v2.invalidateStyle = function (Void) { this.onEnterFrame = this.draw; }; v1.setColorStyle = function (p, colorStyle) { if (p._color == undefined) { p._color = colorStyle; } p.setColor = mx.skins.ColoredSkinElement.mixins.setColor; p.invalidateStyle = mx.skins.ColoredSkinElement.mixins.invalidateStyle; p.draw = mx.skins.ColoredSkinElement.mixins.draw; p.setColor(p.getStyle(colorStyle)); }; v1.mixins = new mx.skins.ColoredSkinElement(); ASSetPropFlags(mx.skins.ColoredSkinElement.prototype, null, 1); } #endinitclip } movieClip 500 __Packages.mx.core.ext.UIObjectExtensions { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.ext) { _global.mx.core.ext = new Object(); } if (!_global.mx.core.ext.UIObjectExtensions) { var v1 = function () {}; mx.core.ext.UIObjectExtensions = v1; var v2 = v1.prototype; v1.addGeometry = function (tf, ui) { tf.addProperty('width', ui.__get__width, null); tf.addProperty('height', ui.__get__height, null); tf.addProperty('left', ui.__get__left, null); tf.addProperty('x', ui.__get__x, null); tf.addProperty('top', ui.__get__top, null); tf.addProperty('y', ui.__get__y, null); tf.addProperty('right', ui.__get__right, null); tf.addProperty('bottom', ui.__get__bottom, null); tf.addProperty('visible', ui.__get__visible, ui.__set__visible); }; v1.Extensions = function () { if (mx.core.ext.UIObjectExtensions.bExtended == true) { return true; } mx.core.ext.UIObjectExtensions.bExtended = true; var v6 = mx.core.UIObject.prototype; var v9 = mx.skins.SkinElement.prototype; mx.core.ext.UIObjectExtensions.addGeometry(v9, v6); mx.events.UIEventDispatcher.initialize(v6); var v13 = mx.skins.ColoredSkinElement; mx.styles.CSSTextStyles.addTextStyles(v6); var v5 = MovieClip.prototype; v5.getTopLevel = v6.getTopLevel; v5.createLabel = v6.createLabel; v5.createObject = v6.createObject; v5.createClassObject = v6.createClassObject; v5.createEmptyObject = v6.createEmptyObject; v5.destroyObject = v6.destroyObject; _global.ASSetPropFlags(v5, 'getTopLevel', 1); _global.ASSetPropFlags(v5, 'createLabel', 1); _global.ASSetPropFlags(v5, 'createObject', 1); _global.ASSetPropFlags(v5, 'createClassObject', 1); _global.ASSetPropFlags(v5, 'createEmptyObject', 1); _global.ASSetPropFlags(v5, 'destroyObject', 1); v5.__getTextFormat = v6.__getTextFormat; v5._getTextFormat = v6._getTextFormat; v5.getStyleName = v6.getStyleName; v5.getStyle = v6.getStyle; _global.ASSetPropFlags(v5, '__getTextFormat', 1); _global.ASSetPropFlags(v5, '_getTextFormat', 1); _global.ASSetPropFlags(v5, 'getStyleName', 1); _global.ASSetPropFlags(v5, 'getStyle', 1); var v7 = TextField.prototype; mx.core.ext.UIObjectExtensions.addGeometry(v7, v6); v7.addProperty('enabled', function () { return this.__enabled; }, function (x) { this.__enabled = x; this.invalidateStyle(); }); v7.move = v9.move; v7.setSize = v9.setSize; v7.invalidateStyle = function () { this.invalidateFlag = true; }; v7.draw = function () { if (this.invalidateFlag) { this.invalidateFlag = false; var v2 = this._getTextFormat(); this.setTextFormat(v2); this.setNewTextFormat(v2); this.embedFonts = v2.embedFonts == true; if (this.__text != undefined) { if (this.text == '') { this.text = this.__text; } delete this.__text; } this._visible = true; } }; v7.setColor = function (color) { this.textColor = color; }; v7.getStyle = v5.getStyle; v7.__getTextFormat = v6.__getTextFormat; v7.setValue = function (v) { this.text = v; }; v7.getValue = function () { return this.text; }; v7.addProperty('value', function () { return this.getValue(); }, function (v) { this.setValue(v); }); v7._getTextFormat = function () { var v2 = this.stylecache.tf; if (v2 != undefined) { return v2; } v2 = new TextFormat(); this.__getTextFormat(v2); this.stylecache.tf = v2; if (this.__enabled == false) { if (this.enabledColor == undefined) { var v4 = this.getTextFormat(); this.enabledColor = v4.color; } var v3 = this.getStyle('disabledColor'); v2.color = v3; return v2; } if (this.enabledColor != undefined) { if (v2.color == undefined) { v2.color = this.enabledColor; } } return v2; }; v7.getPreferredWidth = function () { this.draw(); return this.textWidth + 4; }; v7.getPreferredHeight = function () { this.draw(); return this.textHeight + 4; }; TextFormat.prototype.getTextExtent2 = function (s) { var v3 = _root._getTextExtent; if (v3 == undefined) { _root.createTextField('_getTextExtent', -2, 0, 0, 1000, 100); v3 = _root._getTextExtent; v3._visible = false; } _root._getTextExtent.text = s; var v4 = this.align; this.align = 'left'; _root._getTextExtent.setTextFormat(this); this.align = v4; return {'width': v3.textWidth, 'height': v3.textHeight}; }; if (_global.style == undefined) { _global.style = new mx.styles.CSSStyleDeclaration(); _global.cascadingStyles = true; _global.styles = new Object(); _global.skinRegistry = new Object(); if (_global._origWidth == undefined) { _global.origWidth = Stage.width; _global.origHeight = Stage.height; } } var v4 = _root; while (v4._parent != undefined) { v4 = v4._parent; } v4.addProperty('width', function () { return Stage.width; }, null); v4.addProperty('height', function () { return Stage.height; }, null); _global.ASSetPropFlags(v4, 'width', 1); _global.ASSetPropFlags(v4, 'height', 1); return true; }; v1.bExtended = false; v1.UIObjectExtended = mx.core.ext.UIObjectExtensions.Extensions(); v1.UIObjectDependency = mx.core.UIObject; v1.SkinElementDependency = mx.skins.SkinElement; v1.CSSTextStylesDependency = mx.styles.CSSTextStyles; v1.UIEventDispatcherDependency = mx.events.UIEventDispatcher; ASSetPropFlags(mx.core.ext.UIObjectExtensions.prototype, null, 1); } #endinitclip } movieClip 501 __Packages.mx.skins.halo.Defaults { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.Defaults) { var v1 = function () {}; mx.skins.halo.Defaults = v1; var v2 = v1.prototype; v1.setThemeDefaults = function () { var v2 = _global.style; v2.themeColor = 8453965; v2.disabledColor = 8684164; v2.modalTransparency = 0; v2.filled = true; v2.stroked = true; v2.strokeWidth = 1; v2.strokeColor = 0; v2.fillColor = 16777215; v2.repeatInterval = 35; v2.repeatDelay = 500; v2.fontFamily = '_sans'; v2.fontSize = 12; v2.selectionColor = 13500353; v2.rollOverColor = 14942166; v2.useRollOver = true; v2.backgroundDisabledColor = 14540253; v2.selectionDisabledColor = 14540253; v2.selectionDuration = 200; v2.openDuration = 250; v2.borderStyle = 'inset'; v2.color = 734012; v2.textSelectedColor = 24371; v2.textRollOverColor = 2831164; v2.textDisabledColor = 16777215; v2.vGridLines = true; v2.hGridLines = false; v2.vGridLineColor = 6710886; v2.hGridLineColor = 6710886; v2.headerColor = 15395562; v2.indentation = 17; v2.folderOpenIcon = 'TreeFolderOpen'; v2.folderClosedIcon = 'TreeFolderClosed'; v2.defaultLeafIcon = 'TreeNodeIcon'; v2.disclosureOpenIcon = 'TreeDisclosureOpen'; v2.disclosureClosedIcon = 'TreeDisclosureClosed'; v2.popupDuration = 150; v2.todayColor = 6710886; _global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.ScrollSelectList; v2.backgroundColor = 16777215; v2.borderColor = 13290186; v2.borderStyle = 'inset'; _global.styles.ComboBox = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.ComboBox; v2.borderStyle = 'inset'; _global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.NumericStepper; v2.textAlign = 'center'; _global.styles.RectBorder = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.RectBorder; v2.borderColor = 14015965; v2.buttonColor = 7305079; v2.shadowColor = 15658734; v2.highlightColor = 12897484; v2.shadowCapColor = 14015965; v2.borderCapColor = 9542041; var v4 = new Object(); v4.borderColor = 16711680; v4.buttonColor = 16711680; v4.shadowColor = 16711680; v4.highlightColor = 16711680; v4.shadowCapColor = 16711680; v4.borderCapColor = 16711680; mx.core.UIComponent.prototype.origBorderStyles = v4; var v3; _global.styles.TextInput = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.TextInput; v3.backgroundColor = 16777215; v3.borderStyle = 'inset'; _global.styles.TextArea = _global.styles.TextInput; _global.styles.Window = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.Window; v3.borderStyle = 'default'; _global.styles.windowStyles = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.windowStyles; v3.fontWeight = 'bold'; _global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.dataGridStyles; v3.fontWeight = 'bold'; _global.styles.Alert = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.Alert; v3.borderStyle = 'alert'; _global.styles.ScrollView = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.ScrollView; v3.borderStyle = 'inset'; _global.styles.View = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.View; v3.borderStyle = 'none'; _global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.ProgressBar; v3.color = 11187123; v3.fontWeight = 'bold'; _global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.AccordionHeader; v3.fontWeight = 'bold'; v3.fontSize = '11'; _global.styles.Accordion = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.Accordion; v3.borderStyle = 'solid'; v3.backgroundColor = 16777215; v3.borderColor = 9081738; v3.headerHeight = 22; v3.marginBottom = -1; v3.marginTop = -1; v3.marginRight = -1; v3.marginLeft = -1; v3.verticalGap = -1; _global.styles.DateChooser = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.DateChooser; v3.borderColor = 9542041; v3.headerColor = 16777215; _global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.CalendarLayout; v3.fontSize = 10; v3.textAlign = 'right'; v3.color = 2831164; _global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.WeekDayStyle; v3.fontWeight = 'bold'; v3.fontSize = 11; v3.textAlign = 'center'; v3.color = 2831164; _global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.TodayStyle; v3.color = 16777215; _global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.HeaderDateText; v3.fontSize = 12; v3.fontWeight = 'bold'; v3.textAlign = 'center'; }; v2.drawRoundRect = function (x, y, w, h, r, c, alpha, rot, gradient, ratios) { if (typeof r == 'object') { var v18 = r.br; var v16 = r.bl; var v15 = r.tl; var v10 = r.tr; } else { var v10 = r; var v15 = v10; var v16 = v15; var v18 = v16; } if (typeof c == 'object') { if (typeof alpha != 'object') { var v9 = [alpha, alpha]; } else { var v9 = alpha; } if (ratios == undefined) { ratios = [0, 255]; } var v14 = h * 0.7; if (typeof rot != 'object') { var v11 = {'matrixType': 'box', 'x': -v14, 'y': v14, 'w': w * 2, 'h': h * 4, 'r': rot * 0.0174532925199433}; } else { var v11 = rot; } if (gradient == 'radial') { this.beginGradientFill('radial', c, v9, ratios, v11); } else { this.beginGradientFill('linear', c, v9, ratios, v11); } } else { if (c != undefined) { this.beginFill(c, alpha); } } r = v18; var v13 = r - r * Math.SQRT1_2; var v12 = r - r * 0.414213562373095; this.moveTo(x + w, y + h - r); this.lineTo(x + w, y + h - r); this.curveTo(x + w, y + h - v12, x + w - v13, y + h - v13); this.curveTo(x + w - v12, y + h, x + w - r, y + h); r = v16; v13 = r - r * Math.SQRT1_2; v12 = r - r * 0.414213562373095; this.lineTo(x + r, y + h); this.curveTo(x + v12, y + h, x + v13, y + h - v13); this.curveTo(x, y + h - v12, x, y + h - r); r = v15; v13 = r - r * Math.SQRT1_2; v12 = r - r * 0.414213562373095; this.lineTo(x, y + r); this.curveTo(x, y + v12, x + v13, y + v13); this.curveTo(x + v12, y, x + r, y); r = v10; v13 = r - r * Math.SQRT1_2; v12 = r - r * 0.414213562373095; this.lineTo(x + w - r, y); this.curveTo(x + w - v12, y, x + w - v13, y + v13); this.curveTo(x + w, y + v12, x + w, y + r); this.lineTo(x + w, y + h - r); if (c != undefined) { this.endFill(); } }; v1.classConstruct = function () { mx.core.ext.UIObjectExtensions.Extensions(); mx.skins.halo.Defaults.setThemeDefaults(); mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return true; }; v1.classConstructed = mx.skins.halo.Defaults.classConstruct(); v1.CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; v1.UIObjectDependency = mx.core.UIObject; ASSetPropFlags(mx.skins.halo.Defaults.prototype, null, 1); } #endinitclip } movieClip 502 __Packages.mx.managers.DepthManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.DepthManager) { var v1 = function () { MovieClip.prototype.createClassChildAtDepth = this.createClassChildAtDepth; MovieClip.prototype.createChildAtDepth = this.createChildAtDepth; MovieClip.prototype.setDepthTo = this.setDepthTo; MovieClip.prototype.setDepthAbove = this.setDepthAbove; MovieClip.prototype.setDepthBelow = this.setDepthBelow; MovieClip.prototype.findNextAvailableDepth = this.findNextAvailableDepth; MovieClip.prototype.shuffleDepths = this.shuffleDepths; MovieClip.prototype.getDepthByFlag = this.getDepthByFlag; MovieClip.prototype.buildDepthTable = this.buildDepthTable; _global.ASSetPropFlags(MovieClip.prototype, 'createClassChildAtDepth', 1); _global.ASSetPropFlags(MovieClip.prototype, 'createChildAtDepth', 1); _global.ASSetPropFlags(MovieClip.prototype, 'setDepthTo', 1); _global.ASSetPropFlags(MovieClip.prototype, 'setDepthAbove', 1); _global.ASSetPropFlags(MovieClip.prototype, 'setDepthBelow', 1); _global.ASSetPropFlags(MovieClip.prototype, 'findNextAvailableDepth', 1); _global.ASSetPropFlags(MovieClip.prototype, 'shuffleDepths', 1); _global.ASSetPropFlags(MovieClip.prototype, 'getDepthByFlag', 1); _global.ASSetPropFlags(MovieClip.prototype, 'buildDepthTable', 1); }; mx.managers.DepthManager = v1; var v2 = v1.prototype; v1.sortFunction = function (a, b) { if (a.getDepth() > b.getDepth()) { return 1; } return -1; }; v1.test = function (depth) { if (depth == mx.managers.DepthManager.reservedDepth) { return false; } else { return true; } }; v1.createClassObjectAtDepth = function (className, depthSpace, initObj) { var v1; switch (depthSpace) { case mx.managers.DepthManager.kCursor: v1 = mx.managers.DepthManager.holder.createClassChildAtDepth(className, mx.managers.DepthManager.kTopmost, initObj); return v1; case mx.managers.DepthManager.kTooltip: v1 = mx.managers.DepthManager.holder.createClassChildAtDepth(className, mx.managers.DepthManager.kTop, initObj); return v1; } return v1; }; v1.createObjectAtDepth = function (linkageName, depthSpace, initObj) { var v1; switch (depthSpace) { case mx.managers.DepthManager.kCursor: v1 = mx.managers.DepthManager.holder.createChildAtDepth(linkageName, mx.managers.DepthManager.kTopmost, initObj); return v1; case mx.managers.DepthManager.kTooltip: v1 = mx.managers.DepthManager.holder.createChildAtDepth(linkageName, mx.managers.DepthManager.kTop, initObj); return v1; } return v1; }; v2.createClassChildAtDepth = function (className, depthFlag, initObj) { if (this._childCounter == undefined) { this._childCounter = 0; } var v3 = this.buildDepthTable(); var v2 = this.getDepthByFlag(depthFlag, v3); var v6 = 'down'; if (depthFlag == mx.managers.DepthManager.kBottom) { v6 = 'up'; } var v5; if (v3[v2] != undefined) { v5 = v2; v2 = this.findNextAvailableDepth(v2, v3, v6); } var v4 = this.createClassObject(className, 'depthChild' + this._childCounter++, v2, initObj); if (v5 != undefined) { v3[v2] = v4; this.shuffleDepths(v4, v5, v3, v6); } if (depthFlag == mx.managers.DepthManager.kTopmost) { v4._topmost = true; } return v4; }; v2.createChildAtDepth = function (linkageName, depthFlag, initObj) { if (this._childCounter == undefined) { this._childCounter = 0; } var v3 = this.buildDepthTable(); var v2 = this.getDepthByFlag(depthFlag, v3); var v6 = 'down'; if (depthFlag == mx.managers.DepthManager.kBottom) { v6 = 'up'; } var v5; if (v3[v2] != undefined) { v5 = v2; v2 = this.findNextAvailableDepth(v2, v3, v6); } var v4 = this.createObject(linkageName, 'depthChild' + this._childCounter++, v2, initObj); if (v5 != undefined) { v3[v2] = v4; this.shuffleDepths(v4, v5, v3, v6); } if (depthFlag == mx.managers.DepthManager.kTopmost) { v4._topmost = true; } return v4; }; v2.setDepthTo = function (depthFlag) { var v2 = this._parent.buildDepthTable(); var v3 = this._parent.getDepthByFlag(depthFlag, v2); if (v2[v3] != undefined) { this.shuffleDepths(this, v3, v2, undefined); } else { this.swapDepths(v3); } if (depthFlag == mx.managers.DepthManager.kTopmost) { this._topmost = true; } else { delete this._topmost; } }; v2.setDepthAbove = function (targetInstance) { if (targetInstance._parent != this._parent) { return undefined; } var v2 = targetInstance.getDepth() + 1; var v3 = this._parent.buildDepthTable(); if (v3[v2] != undefined && this.getDepth() < v2) { v2 -= 1; } if (v2 > mx.managers.DepthManager.highestDepth) { v2 = mx.managers.DepthManager.highestDepth; } if (v2 == mx.managers.DepthManager.highestDepth) { this._parent.shuffleDepths(this, v2, v3, 'down'); } else { if (v3[v2] != undefined) { this._parent.shuffleDepths(this, v2, v3, undefined); } else { this.swapDepths(v2); } } }; v2.setDepthBelow = function (targetInstance) { if (targetInstance._parent != this._parent) { return undefined; } var v6 = targetInstance.getDepth() - 1; var v3 = this._parent.buildDepthTable(); if (v3[v6] != undefined && this.getDepth() > v6) { v6 += 1; } var v4 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; var v5; for (v5 in v3) { var v2 = v3[v5]; if (v2._parent != undefined) { v4 = Math.min(v4, v2.getDepth()); } } if (v6 < v4) { v6 = v4; } if (v6 == v4) { this._parent.shuffleDepths(this, v6, v3, 'up'); } else { if (v3[v6] != undefined) { this._parent.shuffleDepths(this, v6, v3, undefined); } else { this.swapDepths(v6); } } }; v2.findNextAvailableDepth = function (targetDepth, depthTable, direction) { var v5 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; if (targetDepth < v5) { targetDepth = v5; } if (depthTable[targetDepth] == undefined) { return targetDepth; } var v2 = targetDepth; var v1 = targetDepth; if (direction == 'down') { while (depthTable[v1] != undefined) { --v1; } return v1; } while (depthTable[v2] != undefined) { ++v2; } return v2; }; v2.shuffleDepths = function (subject, targetDepth, depthTable, direction) { var v9 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; var v8 = v9; var v5; for (v5 in depthTable) { var v7 = depthTable[v5]; if (v7._parent != undefined) { v9 = Math.min(v9, v7.getDepth()); } } if (direction == undefined) { if (subject.getDepth() > targetDepth) { direction = 'up'; } else { direction = 'down'; } } var v1 = new Array(); for (v5 in depthTable) { v7 = depthTable[v5]; if (v7._parent != undefined) { v1.push(v7); } } v1.sort(mx.managers.DepthManager.sortFunction); if (direction == 'up') { var v3; var v11; while (v1.length > 0) { v3 = v1.pop(); if (v3 == subject) { break; } } while (v1.length > 0) { v11 = subject.getDepth(); v3 = v1.pop(); var v4 = v3.getDepth(); if (v11 > v4 + 1) { if (v4 >= 0) { subject.swapDepths(v4 + 1); } else { if (v11 > v8 && v4 < v8) { subject.swapDepths(v8); } } } subject.swapDepths(v3); if (v4 == targetDepth) { break; } } } else { if (direction == 'down') { var v3; while (v1.length > 0) { v3 = v1.shift(); if (v3 == subject) { break; } } while (v1.length > 0) { var v11 = v3.getDepth(); v3 = v1.shift(); var v4 = v3.getDepth(); if (v11 < v4 - 1 && v4 > 0) { subject.swapDepths(v4 - 1); } subject.swapDepths(v3); if (v4 == targetDepth) { break; } } } } }; v2.getDepthByFlag = function (depthFlag, depthTable) { var v2 = 0; if (depthFlag == mx.managers.DepthManager.kTop || depthFlag == mx.managers.DepthManager.kNotopmost) { var v5 = 0; var v7 = false; var v8; for (v8 in depthTable) { var v9 = depthTable[v8]; var v3 = typeof v9; if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) { if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) { if (!v9._topmost) { v2 = Math.max(v2, v9.getDepth()); } else { if (!v7) { v5 = v9.getDepth(); v7 = true; } else { v5 = Math.min(v5, v9.getDepth()); } } } } } v2 += 20; if (v7) { if (v2 >= v5) { v2 = v5 - 1; } } } else { if (depthFlag == mx.managers.DepthManager.kBottom) { for (var v8 in depthTable) { var v9 = depthTable[v8]; var v3 = typeof v9; if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) { if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) { v2 = Math.min(v2, v9.getDepth()); } } } v2 -= 20; } else { if (depthFlag == mx.managers.DepthManager.kTopmost) { for (var v8 in depthTable) { var v9 = depthTable[v8]; var v3 = typeof v9; if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) { if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) { v2 = Math.max(v2, v9.getDepth()); } } } v2 += 100; } } } if (v2 >= mx.managers.DepthManager.highestDepth) { v2 = mx.managers.DepthManager.highestDepth; } var v6 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; for (v9 in depthTable) { var v4 = depthTable[v9]; if (v4._parent != undefined) { v6 = Math.min(v6, v4.getDepth()); } } if (v2 <= v6) { v2 = v6; } return v2; }; v2.buildDepthTable = function (Void) { var v5 = new Array(); var v4; for (v4 in this) { var v2 = this[v4]; var v3 = typeof v2; if (v3 == 'movieclip' || v3 == 'object' && v2.__getTextFormat != undefined) { if (v2._parent == this) { v5[v2.getDepth()] = v2; } } } return v5; }; v1.reservedDepth = 1048575; v1.highestDepth = 1048574; v1.lowestDepth = -16383; v1.numberOfAuthortimeLayers = 383; v1.kCursor = 101; v1.kTooltip = 102; v1.kTop = 201; v1.kBottom = 202; v1.kTopmost = 203; v1.kNotopmost = 204; v1.holder = _root.createEmptyMovieClip('reserved', mx.managers.DepthManager.reservedDepth); v1.__depthManager = new mx.managers.DepthManager(); ASSetPropFlags(mx.managers.DepthManager.prototype, null, 1); } #endinitclip } movieClip 503 __Packages.mx.managers.SystemManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.SystemManager) { var v1 = function () {}; mx.managers.SystemManager = v1; var v2 = v1.prototype; v1.init = function (Void) { if (mx.managers.SystemManager._initialized == false) { mx.managers.SystemManager._initialized = true; mx.events.EventDispatcher.initialize(mx.managers.SystemManager); Mouse.addListener(mx.managers.SystemManager); Stage.addListener(mx.managers.SystemManager); mx.managers.SystemManager._xAddEventListener = mx.managers.SystemManager.addEventListener; mx.managers.SystemManager.addEventListener = mx.managers.SystemManager.__addEventListener; mx.managers.SystemManager._xRemoveEventListener = mx.managers.SystemManager.removeEventListener; mx.managers.SystemManager.removeEventListener = mx.managers.SystemManager.__removeEventListener; } }; v1.addFocusManager = function (f) { mx.managers.SystemManager.form = f; f.focusManager.activate(); }; v1.removeFocusManager = function (f) {}; v1.onMouseDown = function (Void) { var v1 = mx.managers.SystemManager.form; v1.focusManager._onMouseDown(); }; v1.onResize = function (Void) { var v7 = Stage.width; var v6 = Stage.height; var v9 = _global.origWidth; var v8 = _global.origHeight; var v3 = Stage.align; var v5 = (v9 - v7) / 2; var v4 = (v8 - v6) / 2; if (v3 == 'T') { v4 = 0; } else { if (v3 == 'B') { v4 = v8 - v6; } else { if (v3 == 'L') { v5 = 0; } else { if (v3 == 'R') { v5 = v9 - v7; } else { if (v3 == 'LT') { v4 = 0; v5 = 0; } else { if (v3 == 'TR') { v4 = 0; v5 = v9 - v7; } else { if (v3 == 'LB') { v4 = v8 - v6; v5 = 0; } else { if (v3 == 'RB') { v4 = v8 - v6; v5 = v9 - v7; } } } } } } } } if (mx.managers.SystemManager.__screen == undefined) { mx.managers.SystemManager.__screen = new Object(); } mx.managers.SystemManager.__screen.x = v5; mx.managers.SystemManager.__screen.y = v4; mx.managers.SystemManager.__screen.width = v7; mx.managers.SystemManager.__screen.height = v6; _root.focusManager.relocate(); mx.managers.SystemManager.dispatchEvent({'type': 'resize'}); }; v1.__get__screen = function () { mx.managers.SystemManager.init(); if (mx.managers.SystemManager.__screen == undefined) { mx.managers.SystemManager.onResize(); } return mx.managers.SystemManager.__screen; }; v1._initialized = false; v1.idleFrames = 0; v1.isMouseDown = false; v1.forms = new Array(); v1.addProperty('screen', v1.__get__screen, function () {}); ASSetPropFlags(mx.managers.SystemManager.prototype, null, 1); } #endinitclip } movieClip 504 __Packages.mx.managers.FocusManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.FocusManager) { var v1 = function () { super(); }; mx.managers.FocusManager = v1; var v2 = new mx.core.UIComponent(); mx.managers.FocusManager.prototype = v2; v2.__get__defaultPushButton = function () { return this.__defaultPushButton; }; v2.__set__defaultPushButton = function (x) { if (x != this.__defaultPushButton) { this.__defaultPushButton.__set__emphasized(false); this.__defaultPushButton = x; this.defPushButton = x; x.__set__emphasized(true); } return this.__get__defaultPushButton(); }; v2.getMaxTabIndex = function (o) { var v3 = 0; var v6; for (v6 in o) { var v2 = o[v6]; if (v2._parent == o) { if (v2.tabIndex != undefined) { if (v2.tabIndex > v3) { v3 = v2.tabIndex; } } if (v2.tabChildren == true) { var v4 = this.getMaxTabIndex(v2); if (v4 > v3) { v3 = v4; } } } } return v3; }; v2.getNextTabIndex = function (Void) { return this.getMaxTabIndex(this.form) + 1; }; v2.__get__nextTabIndex = function () { return this.getNextTabIndex(); }; v2.relocate = function (Void) { var v2 = mx.managers.SystemManager.__get__screen(); this.move(v2.x - 1, v2.y - 1); }; v2.init = function (Void) { super.init(); this.tabEnabled = false; this._height = 1; this._width = 1; this._y = -1; this._x = -1; this._alpha = 0; this._parent.focusManager = this; this._parent.tabChildren = true; this._parent.tabEnabled = false; this.form = this._parent; this._parent.addEventListener('hide', this); this._parent.addEventListener('reveal', this); mx.managers.SystemManager.init(); mx.managers.SystemManager.addFocusManager(this.form); this.tabCapture.tabIndex = 0; this.watch('enabled', this.enabledChanged); Selection.addListener(this); this.lastMouse = new Object(); _global.ASSetPropFlags(this._parent, 'focusManager', 1); _global.ASSetPropFlags(this._parent, 'tabChildren', 1); _global.ASSetPropFlags(this._parent, 'tabEnabled', 1); }; v2.enabledChanged = function (id, oldValue, newValue) { this._visible = newValue; return newValue; }; v2.activate = function (Void) { Key.addListener(this); this._visible = true; this.activated = this._visible; if (this.lastFocus != undefined) { this.bNeedFocus = true; if (!mx.managers.SystemManager.isMouseDown) { this.doLater(this, 'restoreFocus'); } } }; v2.deactivate = function (Void) { Key.removeListener(this); this._visible = false; this.activated = this._visible; var v2 = this.getSelectionFocus(); var v3 = this.getActualFocus(v2); if (this.isOurFocus(v3)) { this.lastSelFocus = v2; this.lastFocus = v3; } this.cancelAllDoLaters(); }; v2.isOurFocus = function (o) { if (o.focusManager == this) { return true; } while (o != undefined) { if (o.focusManager != undefined) { return false; } if (o._parent == this._parent) { return true; } o = o._parent; } return false; }; v2.onSetFocus = function (o, n) { if (n == null) { if (this.activated) { this.bNeedFocus = true; } } else { var v2 = this.getFocus(); if (this.isOurFocus(v2)) { this.bNeedFocus = false; this.lastFocus = v2; this.lastSelFocus = n; } } }; v2.restoreFocus = function (Void) { var v2 = this.lastSelFocus.hscroll; if (v2 != undefined) { var v5 = this.lastSelFocus.scroll; var v4 = this.lastSelFocus.background; } this.lastFocus.setFocus(); var v3 = Selection; Selection.setSelection(v3.lastBeginIndex, v3.lastEndIndex); if (v2 != undefined) { this.lastSelFocus.scroll = v5; this.lastSelFocus.hscroll = v2; this.lastSelFocus.background = v4; } }; v2.onUnload = function (Void) { mx.managers.SystemManager.removeFocusManager(this.form); }; v2.setFocus = function (o) { if (o == null) { Selection.setFocus(null); } else { if (o.setFocus == undefined) { Selection.setFocus(o); } else { o.setFocus(); } } }; v2.getActualFocus = function (o) { var v1 = o._parent; while (v1 != undefined) { if (v1.focusTextField != undefined) { while (v1.focusTextField != undefined) { o = v1; v1 = v1._parent; if (v1 == undefined) { return undefined; } if (v1.focusTextField == undefined) { return o; } } } if (v1.tabEnabled != true) { return o; } o = v1; v1 = o._parent; } return undefined; }; v2.getSelectionFocus = function () { var m = Selection.getFocus(); var o = eval(m); return o; }; v2.getFocus = function (Void) { var v2 = this.getSelectionFocus(); return this.getActualFocus(v2); }; v2.walkTree = function (p, index, groupName, dir, lookup, firstChild) { var v5 = true; var v11; for (v11 in p) { var v2 = p[v11]; if (v2._parent == p && v2.enabled != false && v2._visible != false && (v2.tabEnabled == true || v2.tabEnabled != false && (v2.onPress != undefined || v2.onRelease != undefined || v2.onReleaseOutside != undefined || v2.onDragOut != undefined || v2.onDragOver != undefined || v2.onRollOver != undefined || v2.onRollOut != undefined || v2 instanceof TextField))) { if (v2._searchKey == this._searchKey) { continue; } v2._searchKey = this._searchKey; if (v2 != this._lastTarget) { if ((v2.groupName != undefined || groupName != undefined) && v2.groupName == groupName) { continue; } if (v2 instanceof TextField && v2.selectable == false) { continue; } if (v5 || v2.groupName != undefined && v2.groupName == this._firstNode.groupName && v2.selected == true) { if (firstChild) { this._firstNode = v2; firstChild = false; } } if (this._nextIsNext == true) { if (v2.groupName != undefined && v2.groupName == this._nextNode.groupName && v2.selected == true || this._nextNode == undefined && (v2.groupName == undefined || v2.groupName != undefined && v2.groupName != groupName)) { this._nextNode = v2; } } if (v2.groupName == undefined || groupName != v2.groupName) { if (this._lastx.groupName != undefined && v2.groupName == this._lastx.groupName && this._lastx.selected == true) { } else { this._lastx = v2; } } } else { this._prevNode = this._lastx; this._needPrev = false; this._nextIsNext = true; } if (v2.tabIndex != undefined) { if (v2.tabIndex == index) { if (this._foundList[v2._name] == undefined) { if (this._needPrev) { this._prevObj = v2; this._needPrev = false; } this._nextObj = v2; } } if (dir && v2.tabIndex > index) { if (this._nextObj == undefined || this._nextObj.tabIndex > v2.tabIndex && (v2.groupName == undefined || this._nextObj.groupName == undefined || v2.groupName != this._nextObj.groupName) || this._nextObj.groupName != undefined && this._nextObj.groupName == v2.groupName && this._nextObj.selected != true && (v2.selected == true || this._nextObj.tabIndex > v2.tabIndex)) { this._nextObj = v2; } } else { if (!dir && v2.tabIndex < index) { if (this._prevObj == undefined || this._prevObj.tabIndex < v2.tabIndex && (v2.groupName == undefined || this._prevObj.groupName == undefined || v2.groupName != this._prevObj.groupName) || this._prevObj.groupName != undefined && this._prevObj.groupName == v2.groupName && this._prevObj.selected != true && (v2.selected == true || this._prevObj.tabIndex < v2.tabIndex)) { this._prevObj = v2; } } } if (this._firstObj == undefined || v2.tabIndex < this._firstObj.tabIndex && (v2.groupName == undefined || this._firstObj.groupName == undefined || v2.groupName != this._firstObj.groupName) || this._firstObj.groupName != undefined && this._firstObj.groupName == v2.groupName && this._firstObj.selected != true && (v2.selected == true || v2.tabIndex < this._firstObj.tabIndex)) { this._firstObj = v2; } if (this._lastObj == undefined || v2.tabIndex > this._lastObj.tabIndex && (v2.groupName == undefined || this._lastObj.groupName == undefined || v2.groupName != this._lastObj.groupName) || this._lastObj.groupName != undefined && this._lastObj.groupName == v2.groupName && this._lastObj.selected != true && (v2.selected == true || v2.tabIndex > this._lastObj.tabIndex)) { this._lastObj = v2; } } if (v2.tabChildren) { this.getTabCandidateFromChildren(v2, index, groupName, dir, v5 && firstChild); } v5 = false; } else { if (v2._parent == p && v2.tabChildren == true && v2._visible != false) { if (v2 == this._lastTarget) { if (v2._searchKey == this._searchKey) { continue; } v2._searchKey = this._searchKey; if (this._prevNode == undefined) { var v3 = this._lastx; var v7 = false; while (v3 != undefined) { if (v3 == v2) { v7 = true; break; } v3 = v3._parent; } if (v7 == false) { this._prevNode = this._lastx; } } this._needPrev = false; if (this._nextNode == undefined) { this._nextIsNext = true; } } else { if (!(v2.focusManager != undefined && v2.focusManager._parent == v2)) { if (v2._searchKey == this._searchKey) { continue; } v2._searchKey = this._searchKey; this.getTabCandidateFromChildren(v2, index, groupName, dir, v5 && firstChild); } } v5 = false; } } } this._lastNode = this._lastx; if (lookup) { if (p._parent != undefined) { if (p != this._parent) { if (this._prevNode == undefined && dir) { this._needPrev = true; } else { if (this._nextNode == undefined && !dir) { this._nextIsNext = false; } } this._lastTarget = this._lastTarget._parent; this.getTabCandidate(p._parent, index, groupName, dir, true); } } } }; v2.getTabCandidate = function (o, index, groupName, dir, firstChild) { var v2; var v3 = true; if (o == this._parent) { v2 = o; v3 = false; } else { v2 = o._parent; if (v2 == undefined) { v2 = o; v3 = false; } } this.walkTree(v2, index, groupName, dir, v3, firstChild); }; v2.getTabCandidateFromChildren = function (o, index, groupName, dir, firstChild) { this.walkTree(o, index, groupName, dir, false, firstChild); }; v2.getFocusManagerFromObject = function (o) { while (o != undefined) { if (o.focusManager != undefined) { return o.focusManager; } o = o._parent; } return undefined; }; v2.tabHandler = function (Void) { this.bDrawFocus = true; var v5 = this.getSelectionFocus(); var v4 = this.getActualFocus(v5); if (v4 != v5) { v5 = v4; } if (this.getFocusManagerFromObject(v5) != this) { v5 == undefined; } if (v5 == undefined) { v5 = this.form; } else { if (v5.tabIndex != undefined) { if (this._foundList != undefined || this._foundList.tabIndex != v5.tabIndex) { this._foundList = new Object(); this._foundList.tabIndex = v5.tabIndex; } this._foundList[v5._name] = v5; } } var v3 = Key.isDown(16) != true; this._searchKey = getTimer(); this._needPrev = true; this._nextIsNext = false; this._lastx = undefined; this._firstNode = undefined; this._lastNode = undefined; this._nextNode = undefined; this._prevNode = undefined; this._firstObj = undefined; this._lastObj = undefined; this._nextObj = undefined; this._prevObj = undefined; this._lastTarget = v5; var v6 = v5; this.getTabCandidate(v6, (v5.tabIndex == undefined) ? 0 : v5.tabIndex, v5.groupName, v3, true); var v2; if (v3) { if (this._nextObj != undefined) { v2 = this._nextObj; } else { v2 = this._firstObj; } } else { if (this._prevObj != undefined) { v2 = this._prevObj; } else { v2 = this._lastObj; } } if (v2.tabIndex != v5.tabIndex) { this._foundList = new Object(); this._foundList.tabIndex = v2.tabIndex; this._foundList[v2._name] = v2; } else { if (this._foundList == undefined) { this._foundList = new Object(); this._foundList.tabIndex = v2.tabIndex; } this._foundList[v2._name] = v2; } if (v2 == undefined) { if (v3 == false) { if (this._nextNode != undefined) { v2 = this._nextNode; } else { v2 = this._firstNode; } } else { if (this._prevNode == undefined || v5 == this.form) { v2 = this._lastNode; } else { v2 = this._prevNode; } } } if (v2 == undefined) { return undefined; } this.lastTabFocus = v2; this.setFocus(v2); if (v2.emphasized != undefined) { if (this.defPushButton != undefined) { v5 = this.defPushButton; this.defPushButton = v2; v5.emphasized = false; v2.emphasized = true; } } else { if (this.defPushButton != undefined && this.defPushButton != this.__defaultPushButton) { v5 = this.defPushButton; this.defPushButton = this.__defaultPushButton; v5.emphasized = false; this.__defaultPushButton.__set__emphasized(true); } } }; v2.onKeyDown = function (Void) { mx.managers.SystemManager.idleFrames = 0; if (this.defaultPushButtonEnabled) { if (Key.getCode() == 13) { if (this.__get__defaultPushButton() != undefined) { this.doLater(this, 'sendDefaultPushButtonEvent'); } } } }; v2.sendDefaultPushButtonEvent = function (Void) { this.defPushButton.dispatchEvent({'type': 'click'}); }; v2.getMousedComponentFromChildren = function (x, y, o) { for (var v7 in o) { var v2 = o[v7]; if (v2._visible && v2.enabled && v2._parent == o && v2._searchKey != this._searchKey) { v2._searchKey = this._searchKey; if (v2.hitTest(x, y, true)) { if (v2.onPress != undefined || v2.onRelease != undefined) { return v2; } var v3 = this.getMousedComponentFromChildren(x, y, v2); if (v3 != undefined) { return v3; } return v2; } } } return undefined; }; v2.mouseActivate = function (Void) { if (!this.bNeedFocus) { return undefined; } this._searchKey = getTimer(); var v2 = this.getMousedComponentFromChildren(this.lastMouse.x, this.lastMouse.y, this.form); if (v2 instanceof mx.core.UIComponent) { return undefined; } v2 = this.findFocusFromObject(v2); if (v2 == this.lastFocus) { return undefined; } if (v2 == undefined) { this.doLater(this, 'restoreFocus'); return undefined; } var v3 = v2.hscroll; if (v3 != undefined) { var v6 = v2.scroll; var v5 = v2.background; } this.setFocus(v2); var v4 = Selection; Selection.setSelection(v4.lastBeginIndex, v4.lastEndIndex); if (v3 != undefined) { v2.scroll = v6; v2.hscroll = v3; v2.background = v5; } }; v2._onMouseDown = function (Void) { this.bDrawFocus = false; if (this.lastFocus != undefined) { this.lastFocus.drawFocus(false); } mx.managers.SystemManager.idleFrames = 0; var v3 = Selection; v3.lastBeginIndex = Selection.getBeginIndex(); v3.lastEndIndex = Selection.getEndIndex(); this.lastMouse.x = _root._xmouse; this.lastMouse.y = _root._ymouse; _root.localToGlobal(this.lastMouse); }; v2.onMouseUp = function (Void) { if (this._visible) { this.doLater(this, 'mouseActivate'); } }; v2.handleEvent = function (e) { if (e.type == 'reveal') { mx.managers.SystemManager.activate(this.form); } else { mx.managers.SystemManager.deactivate(this.form); } }; v1.enableFocusManagement = function () { if (!mx.managers.FocusManager.initialized) { mx.managers.FocusManager.initialized = true; Object.registerClass('FocusManager', mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, 'focusManager', mx.managers.DepthManager.highestDepth--); } } }; v1.symbolName = 'FocusManager'; v1.symbolOwner = mx.managers.FocusManager; v1.version = '2.0.2.127'; v2.className = 'FocusManager'; v2.bNeedFocus = false; v2.bDrawFocus = false; v2.defaultPushButtonEnabled = true; v2.activated = true; v1.initialized = false; v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; v2.addProperty('defaultPushButton', v2.__get__defaultPushButton, v2.__set__defaultPushButton); v2.addProperty('nextTabIndex', v2.__get__nextTabIndex, function () {}); ASSetPropFlags(mx.managers.FocusManager.prototype, null, 1); } #endinitclip } movieClip 505 __Packages.mx.skins.halo.FocusRect { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.FocusRect) { var v1 = function () { super(); this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; }; mx.skins.halo.FocusRect = v1; var v2 = new mx.skins.SkinElement(); mx.skins.halo.FocusRect.prototype = v2; v2.draw = function (o) { o.adjustFocusRect(); }; v2.setSize = function (w, h, r, a, rectCol) { this._yscale = 100; this._xscale = 100; this.clear(); if (typeof r == 'object') { r.br = r.br > 2 ? r.br - 2 : 0; r.bl = r.bl > 2 ? r.bl - 2 : 0; r.tr = r.tr > 2 ? r.tr - 2 : 0; r.tl = r.tl > 2 ? r.tl - 2 : 0; this.beginFill(rectCol, a * 0.3); this.drawRoundRect(0, 0, w, h, r); this.drawRoundRect(2, 2, w - 4, h - 4, r); this.endFill(); r.br = r.br > 1 ? r.br + 1 : 0; r.bl = r.bl > 1 ? r.bl + 1 : 0; r.tr = r.tr > 1 ? r.tr + 1 : 0; r.tl = r.tl > 1 ? r.tl + 1 : 0; this.beginFill(rectCol, a * 0.3); this.drawRoundRect(1, 1, w - 2, h - 2, r); r.br = r.br > 1 ? r.br - 1 : 0; r.bl = r.bl > 1 ? r.bl - 1 : 0; r.tr = r.tr > 1 ? r.tr - 1 : 0; r.tl = r.tl > 1 ? r.tl - 1 : 0; this.drawRoundRect(2, 2, w - 4, h - 4, r); this.endFill(); } else { var v5; if (r != 0) { v5 = r - 2; } else { v5 = 0; } this.beginFill(rectCol, a * 0.3); this.drawRoundRect(0, 0, w, h, r); this.drawRoundRect(2, 2, w - 4, h - 4, v5); this.endFill(); this.beginFill(rectCol, a * 0.3); if (r != 0) { v5 = r - 2; r -= 1; } else { v5 = 0; r = 0; } this.drawRoundRect(1, 1, w - 2, h - 2, r); this.drawRoundRect(2, 2, w - 4, h - 4, v5); this.endFill(); } }; v2.handleEvent = function (e) { if (e.type == 'unload') { this._visible = true; } else { if (e.type == 'resize') { e.target.adjustFocusRect(); } else { if (e.type == 'move') { e.target.adjustFocusRect(); } } } }; v1.classConstruct = function () { mx.core.UIComponent.prototype.drawFocus = function (focused) { var v2 = this._parent.focus_mc; if (!focused) { v2._visible = false; this.removeEventListener('unload', v2); this.removeEventListener('move', v2); this.removeEventListener('resize', v2); } else { if (v2 == undefined) { v2 = this._parent.createChildAtDepth('FocusRect', mx.managers.DepthManager.kTop); v2.tabEnabled = false; this._parent.focus_mc = v2; } else { v2._visible = true; } v2.draw(this); if (v2.getDepth() < this.getDepth()) { v2.setDepthAbove(this); } this.addEventListener('unload', v2); this.addEventListener('move', v2); this.addEventListener('resize', v2); } }; mx.core.UIComponent.prototype.adjustFocusRect = function () { var v2 = this.getStyle('themeColor'); if (v2 == undefined) { v2 = 8453965; } var v3 = this._parent.focus_mc; v3.setSize(this.width + 4, this.height + 4, 0, 100, v2); v3.move(this.x - 2, this.y - 2); }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect; mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return true; }; v1.classConstructed = mx.skins.halo.FocusRect.classConstruct(); v1.DefaultsDependency = mx.skins.halo.Defaults; v1.UIComponentDependency = mx.core.UIComponent; ASSetPropFlags(mx.skins.halo.FocusRect.prototype, null, 1); } #endinitclip } movieClip 506 __Packages.mx.managers.OverlappedWindows { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.OverlappedWindows) { var v1 = function () {}; mx.managers.OverlappedWindows = v1; var v2 = v1.prototype; v1.checkIdle = function (Void) { if (mx.managers.SystemManager.idleFrames > 10) { mx.managers.SystemManager.dispatchEvent({'type': 'idle'}); } else { ++mx.managers.SystemManager.idleFrames; } }; v1.__addEventListener = function (e, o, l) { if (e == 'idle') { if (mx.managers.SystemManager.interval == undefined) { mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100); } } mx.managers.SystemManager._xAddEventListener(e, o, l); }; v1.__removeEventListener = function (e, o, l) { if (e == 'idle') { if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) { clearInterval(mx.managers.SystemManager.interval); } } else { mx.managers.SystemManager._xRemoveEventListener(e, o, l); } }; v1.onMouseDown = function (Void) { mx.managers.SystemManager.idleFrames = 0; mx.managers.SystemManager.isMouseDown = true; var v5 = _root; var v3; var v8 = _root._xmouse; var v7 = _root._ymouse; if (mx.managers.SystemManager.form.modalWindow == undefined) { if (mx.managers.SystemManager.forms.length > 1) { var v6 = mx.managers.SystemManager.forms.length; var v4; v4 = 0; while (v4 < v6) { var v2 = mx.managers.SystemManager.forms[v4]; if (v2._visible) { if (v2.hitTest(v8, v7)) { if (v3 == undefined) { v3 = v2.getDepth(); v5 = v2; } else { if (v3 < v2.getDepth()) { v3 = v2.getDepth(); v5 = v2; } } } } ++v4; } if (v5 != mx.managers.SystemManager.form) { mx.managers.SystemManager.activate(v5); } } } var v9 = mx.managers.SystemManager.form; v9.focusManager._onMouseDown(); }; v1.onMouseMove = function (Void) { mx.managers.SystemManager.idleFrames = 0; }; v1.onMouseUp = function (Void) { mx.managers.SystemManager.isMouseDown = false; mx.managers.SystemManager.idleFrames = 0; }; v1.activate = function (f) { if (mx.managers.SystemManager.form != undefined) { if (mx.managers.SystemManager.form != f && mx.managers.SystemManager.forms.length > 1) { var v1 = mx.managers.SystemManager.form; v1.focusManager.deactivate(); } } mx.managers.SystemManager.form = f; f.focusManager.activate(); }; v1.deactivate = function (f) { if (mx.managers.SystemManager.form != undefined) { if (mx.managers.SystemManager.form == f && mx.managers.SystemManager.forms.length > 1) { var v5 = mx.managers.SystemManager.form; v5.focusManager.deactivate(); var v3 = mx.managers.SystemManager.forms.length; var v1; var v2; v1 = 0; while (v1 < v3) { if (mx.managers.SystemManager.forms[v1] == f) { v1 += 1; while (v1 < v3) { if (mx.managers.SystemManager.forms[v1]._visible == true) { v2 = mx.managers.SystemManager.forms[v1]; } ++v1; } mx.managers.SystemManager.form = v2; break; } else { if (mx.managers.SystemManager.forms[v1]._visible == true) { v2 = mx.managers.SystemManager.forms[v1]; } } ++v1; } v5 = mx.managers.SystemManager.form; v5.focusManager.activate(); } } }; v1.addFocusManager = function (f) { mx.managers.SystemManager.forms.push(f); mx.managers.SystemManager.activate(f); }; v1.removeFocusManager = function (f) { var v3 = mx.managers.SystemManager.forms.length; var v1; v1 = 0; while (v1 < v3) { if (mx.managers.SystemManager.forms[v1] == f) { if (mx.managers.SystemManager.form == f) { mx.managers.SystemManager.deactivate(f); } mx.managers.SystemManager.forms.splice(v1, 1); return undefined; } ++v1; } }; v1.enableOverlappedWindows = function () { if (!mx.managers.OverlappedWindows.initialized) { mx.managers.OverlappedWindows.initialized = true; mx.managers.SystemManager.checkIdle = mx.managers.OverlappedWindows.checkIdle; mx.managers.SystemManager.__addEventListener = mx.managers.OverlappedWindows.__addEventListener; mx.managers.SystemManager.__removeEventListener = mx.managers.OverlappedWindows.__removeEventListener; mx.managers.SystemManager.onMouseDown = mx.managers.OverlappedWindows.onMouseDown; mx.managers.SystemManager.onMouseMove = mx.managers.OverlappedWindows.onMouseMove; mx.managers.SystemManager.onMouseUp = mx.managers.OverlappedWindows.onMouseUp; mx.managers.SystemManager.activate = mx.managers.OverlappedWindows.activate; mx.managers.SystemManager.deactivate = mx.managers.OverlappedWindows.deactivate; mx.managers.SystemManager.addFocusManager = mx.managers.OverlappedWindows.addFocusManager; mx.managers.SystemManager.removeFocusManager = mx.managers.OverlappedWindows.removeFocusManager; } }; v1.initialized = false; v1.SystemManagerDependency = mx.managers.SystemManager; ASSetPropFlags(mx.managers.OverlappedWindows.prototype, null, 1); } #endinitclip } movieClip 507 __Packages.mx.styles.CSSSetStyle { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.CSSSetStyle) { var v1 = function () {}; mx.styles.CSSSetStyle = v1; var v2 = v1.prototype; v2._setStyle = function (styleProp, newValue) { this[styleProp] = newValue; if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) { if (styleProp == 'color') { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } } _level0.changeTextStyleInChildren(styleProp); return undefined; } if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } if (styleProp == 'themeColor') { var v7 = mx.styles.StyleManager.colorNames.haloBlue; var v6 = mx.styles.StyleManager.colorNames.haloGreen; var v8 = mx.styles.StyleManager.colorNames.haloOrange; var v4 = {}; v4[v7] = 12188666; v4[v6] = 13500353; v4[v8] = 16766319; var v5 = {}; v5[v7] = 13958653; v5[v6] = 14942166; v5[v8] = 16772787; var v9 = v4[newValue]; var v10 = v5[newValue]; if (v9 == undefined) { v9 = newValue; } if (v10 == undefined) { v10 = newValue; } this.setStyle('selectionColor', v9); this.setStyle('rollOverColor', v10); } _level0.changeColorStyleInChildren(this.styleName, styleProp, newValue); } else { if (styleProp == 'backgroundColor' && isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } _level0.notifyStyleChangeInChildren(this.styleName, styleProp, newValue); } }; v2.changeTextStyleInChildren = function (styleProp) { var v4 = getTimer(); var v5; for (v5 in this) { var v2 = this[v5]; if (v2._parent == this) { if (v2.searchKey != v4) { if (v2.stylecache != undefined) { delete v2.stylecache.tf; delete v2.stylecache[styleProp]; } v2.invalidateStyle(styleProp); v2.changeTextStyleInChildren(styleProp); v2.searchKey = v4; } } } }; v2.changeColorStyleInChildren = function (sheetName, colorStyle, newValue) { var v6 = getTimer(); var v7; for (v7 in this) { var v2 = this[v7]; if (v2._parent == this) { if (v2.searchKey != v6) { if (v2.getStyleName() == sheetName || sheetName == undefined || sheetName == '_global') { if (v2.stylecache != undefined) { delete v2.stylecache[colorStyle]; } if (typeof v2._color == 'string') { if (v2._color == colorStyle) { var v4 = v2.getStyle(colorStyle); if (colorStyle == 'color') { if (this.stylecache.tf.color != undefined) { this.stylecache.tf.color = v4; } } v2.setColor(v4); } } else { if (v2._color[colorStyle] != undefined) { if (typeof v2 != 'movieclip') { v2._parent.invalidateStyle(); } else { v2.invalidateStyle(colorStyle); } } } } v2.changeColorStyleInChildren(sheetName, colorStyle, newValue); v2.searchKey = v6; } } } }; v2.notifyStyleChangeInChildren = function (sheetName, styleProp, newValue) { var v5 = getTimer(); var v6; for (v6 in this) { var v2 = this[v6]; if (v2._parent == this) { if (v2.searchKey != v5) { if (v2.styleName == sheetName || v2.styleName != undefined && typeof v2.styleName == 'movieclip' || sheetName == undefined) { if (v2.stylecache != undefined) { delete v2.stylecache[styleProp]; delete v2.stylecache.tf; } delete v2.enabledColor; v2.invalidateStyle(styleProp); } v2.notifyStyleChangeInChildren(sheetName, styleProp, newValue); v2.searchKey = v5; } } } }; v2.setStyle = function (styleProp, newValue) { if (this.stylecache != undefined) { delete this.stylecache[styleProp]; delete this.stylecache.tf; } this[styleProp] = newValue; if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } if (styleProp == 'themeColor') { var v10 = mx.styles.StyleManager.colorNames.haloBlue; var v9 = mx.styles.StyleManager.colorNames.haloGreen; var v11 = mx.styles.StyleManager.colorNames.haloOrange; var v6 = {}; v6[v10] = 12188666; v6[v9] = 13500353; v6[v11] = 16766319; var v7 = {}; v7[v10] = 13958653; v7[v9] = 14942166; v7[v11] = 16772787; var v12 = v6[newValue]; var v13 = v7[newValue]; if (v12 == undefined) { v12 = newValue; } if (v13 == undefined) { v13 = newValue; } this.setStyle('selectionColor', v12); this.setStyle('rollOverColor', v13); } if (typeof this._color == 'string') { if (this._color == styleProp) { if (styleProp == 'color') { if (this.stylecache.tf.color != undefined) { this.stylecache.tf.color = newValue; } } this.setColor(newValue); } } else { if (this._color[styleProp] != undefined) { this.invalidateStyle(styleProp); } } this.changeColorStyleInChildren(undefined, styleProp, newValue); } else { if (styleProp == 'backgroundColor' && isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } this.invalidateStyle(styleProp); } if (mx.styles.StyleManager.isInheritingStyle(styleProp) || styleProp == 'styleName') { var v8; var v5 = newValue; if (styleProp == 'styleName') { v8 = (typeof newValue == 'string') ? _global.styles[newValue] : v5; v5 = v8.themeColor; if (v5 != undefined) { v8.selectionColor = v5; v8.rollOverColor = v8.selectionColor; } } this.notifyStyleChangeInChildren(undefined, styleProp, newValue); } }; v1.enableRunTimeCSS = function () {}; v1.classConstruct = function () { var v2 = MovieClip.prototype; var v3 = mx.styles.CSSSetStyle.prototype; mx.styles.CSSStyleDeclaration.prototype.setStyle = v3._setStyle; v2.changeTextStyleInChildren = v3.changeTextStyleInChildren; v2.changeColorStyleInChildren = v3.changeColorStyleInChildren; v2.notifyStyleChangeInChildren = v3.notifyStyleChangeInChildren; v2.setStyle = v3.setStyle; _global.ASSetPropFlags(v2, 'changeTextStyleInChildren', 1); _global.ASSetPropFlags(v2, 'changeColorStyleInChildren', 1); _global.ASSetPropFlags(v2, 'notifyStyleChangeInChildren', 1); _global.ASSetPropFlags(v2, 'setStyle', 1); var v4 = TextField.prototype; v4.setStyle = v2.setStyle; v4.changeTextStyleInChildren = v3.changeTextStyleInChildren; return true; }; v1.classConstructed = mx.styles.CSSSetStyle.classConstruct(); v1.CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; ASSetPropFlags(mx.styles.CSSSetStyle.prototype, null, 1); } #endinitclip } movieClip 508 __Packages.mx.core.ext.UIComponentExtensions { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.ext) { _global.mx.core.ext = new Object(); } if (!_global.mx.core.ext.UIComponentExtensions) { var v1 = function () {}; mx.core.ext.UIComponentExtensions = v1; var v2 = v1.prototype; v1.Extensions = function () { if (mx.core.ext.UIComponentExtensions.bExtended == true) { return true; } mx.core.ext.UIComponentExtensions.bExtended = true; TextField.prototype.setFocus = function () { Selection.setFocus(this); }; TextField.prototype.onSetFocus = function (oldFocus) { if (this.tabEnabled != false) { if ((this.getFocusManager()).bDrawFocus) { this.drawFocus(true); } } }; TextField.prototype.onKillFocus = function (oldFocus) { if (this.tabEnabled != false) { this.drawFocus(false); } }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager; mx.managers.OverlappedWindows.enableOverlappedWindows(); mx.styles.CSSSetStyle.enableRunTimeCSS(); mx.managers.FocusManager.enableFocusManagement(); }; v1.bExtended = false; v1.UIComponentExtended = mx.core.ext.UIComponentExtensions.Extensions(); v1.UIComponentDependency = mx.core.UIComponent; v1.FocusManagerDependency = mx.managers.FocusManager; v1.OverlappedWindowsDependency = mx.managers.OverlappedWindows; ASSetPropFlags(mx.core.ext.UIComponentExtensions.prototype, null, 1); } #endinitclip } movieClip 509 __Packages.mx.skins.Border { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.Border) { var v1 = function () { super(); }; mx.skins.Border = v1; var v2 = new mx.core.UIObject(); mx.skins.Border.prototype = v2; v2.init = function (Void) { super.init(); }; v1.symbolName = 'Border'; v1.symbolOwner = mx.skins.Border; v2.className = 'Border'; v2.tagBorder = 0; v2.idNames = new Array('border_mc'); ASSetPropFlags(mx.skins.Border.prototype, null, 1); } #endinitclip } movieClip 510 __Packages.mx.skins.RectBorder { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.RectBorder) { var v1 = function () { super(); }; mx.skins.RectBorder = v1; var v2 = new mx.skins.Border(); mx.skins.RectBorder.prototype = v2; v2.__get__width = function () { return this.__width; }; v2.__get__height = function () { return this.__height; }; v2.init = function (Void) { super.init(); }; v2.draw = function (Void) { this.size(); }; v2.getBorderMetrics = function (Void) { var v2 = this.offset; if (this.__borderMetrics == undefined) { this.__borderMetrics = {'left': v2, 'top': v2, 'right': v2, 'bottom': v2}; return this.__borderMetrics; } this.__borderMetrics.left = v2; this.__borderMetrics.top = v2; this.__borderMetrics.right = v2; this.__borderMetrics.bottom = v2; return this.__borderMetrics; }; v2.__get__borderMetrics = function () { return this.getBorderMetrics(); }; v2.drawBorder = function (Void) {}; v2.size = function (Void) { this.drawBorder(); }; v2.setColor = function (Void) { this.drawBorder(); }; v1.symbolName = 'RectBorder'; v1.symbolOwner = mx.skins.RectBorder; v1.version = '2.0.2.127'; v2.className = 'RectBorder'; v2.borderStyleName = 'borderStyle'; v2.borderColorName = 'borderColor'; v2.shadowColorName = 'shadowColor'; v2.highlightColorName = 'highlightColor'; v2.buttonColorName = 'buttonColor'; v2.backgroundColorName = 'backgroundColor'; v2.addProperty('borderMetrics', v2.__get__borderMetrics, function () {}); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(mx.skins.RectBorder.prototype, null, 1); } #endinitclip } movieClip 511 __Packages.mx.skins.halo.RectBorder { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.RectBorder) { var v1 = function () { super(); }; mx.skins.halo.RectBorder = v1; var v2 = new mx.skins.RectBorder(); mx.skins.halo.RectBorder.prototype = v2; v2.init = function (Void) { this.borderWidths.default = 3; super.init(); }; v2.getBorderMetrics = function (Void) { if (this.offset == undefined) { var v3 = this.getStyle(this.borderStyleName); this.offset = this.borderWidths[v3]; } if (this.getStyle(this.borderStyleName) == 'default' || this.getStyle(this.borderStyleName) == 'alert') { this.__borderMetrics = {'left': 3, 'top': 1, 'right': 3, 'bottom': 3}; return this.__borderMetrics; } return super.getBorderMetrics(); }; v2.drawBorder = function (Void) { var v6 = _global.styles[this.className]; if (v6 == undefined) { v6 = _global.styles.RectBorder; } var v5 = this.getStyle(this.borderStyleName); var v7 = this.getStyle(this.borderColorName); if (v7 == undefined) { v7 = v6[this.borderColorName]; } var v8 = this.getStyle(this.backgroundColorName); if (v8 == undefined) { v8 = v6[this.backgroundColorName]; } var v16 = this.getStyle('backgroundImage'); if (v5 != 'none') { var v14 = this.getStyle(this.shadowColorName); if (v14 == undefined) { v14 = v6[this.shadowColorName]; } var v13 = this.getStyle(this.highlightColorName); if (v13 == undefined) { v13 = v6[this.highlightColorName]; } var v12 = this.getStyle(this.buttonColorName); if (v12 == undefined) { v12 = v6[this.buttonColorName]; } var v11 = this.getStyle(this.borderCapColorName); if (v11 == undefined) { v11 = v6[this.borderCapColorName]; } var v10 = this.getStyle(this.shadowCapColorName); if (v10 == undefined) { v10 = v6[this.shadowCapColorName]; } } this.offset = this.borderWidths[v5]; var v9 = this.offset; var v3 = this.__get__width(); var v4 = this.__get__height(); this.clear(); this._color = undefined; if (v5 == 'none') { } else { if (v5 == 'inset') { this._color = this.colorList; this.draw3dBorder(v11, v12, v7, v13, v14, v10); } else { if (v5 == 'outset') { this._color = this.colorList; this.draw3dBorder(v11, v7, v12, v14, v13, v10); } else { if (v5 == 'alert') { var v15 = this.getStyle('themeColor'); this.drawRoundRect(0, 5, v3, v4 - 5, 5, 6184542, 10); this.drawRoundRect(1, 4, v3 - 2, v4 - 5, 4, [6184542, 6184542], 10, 0, 'radial'); this.drawRoundRect(2, 0, v3 - 4, v4 - 2, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(2, 0, v3 - 4, v4 - 2, 3, v15, 50); this.drawRoundRect(3, 1, v3 - 6, v4 - 4, 2, 16777215, 100); } else { if (v5 == 'default') { this.drawRoundRect(0, 5, v3, v4 - 5, {'tl': 5, 'tr': 5, 'br': 0, 'bl': 0}, 6184542, 10); this.drawRoundRect(1, 4, v3 - 2, v4 - 5, {'tl': 4, 'tr': 4, 'br': 0, 'bl': 0}, [6184542, 6184542], 10, 0, 'radial'); this.drawRoundRect(2, 0, v3 - 4, v4 - 2, {'tl': 3, 'tr': 3, 'br': 0, 'bl': 0}, [12897484, 11844796], 100, 0, 'radial'); this.drawRoundRect(3, 1, v3 - 6, v4 - 4, {'tl': 2, 'tr': 2, 'br': 0, 'bl': 0}, 16777215, 100); } else { if (v5 == 'dropDown') { this.drawRoundRect(0, 0, v3 + 1, v4, {'tl': 4, 'tr': 0, 'br': 0, 'bl': 4}, [13290186, 7895160], 100, -10, 'linear'); this.drawRoundRect(1, 1, v3 - 1, v4 - 2, {'tl': 3, 'tr': 0, 'br': 0, 'bl': 3}, 16777215, 100); } else { if (v5 == 'menuBorder') { var v15 = this.getStyle('themeColor'); this.drawRoundRect(4, 4, v3 - 2, v4 - 3, 0, [6184542, 6184542], 10, 0, 'radial'); this.drawRoundRect(4, 4, v3 - 1, v4 - 2, 0, 6184542, 10); this.drawRoundRect(0, 0, v3 + 1, v4, 0, [0, 14342874], 100, 250, 'linear'); this.drawRoundRect(0, 0, v3 + 1, v4, 0, v15, 50); this.drawRoundRect(2, 2, v3 - 3, v4 - 4, 0, 16777215, 100); } else { if (v5 == 'comboNonEdit') { } else { this.beginFill(v7); this.drawRect(0, 0, v3, v4); this.drawRect(1, 1, v3 - 1, v4 - 1); this.endFill(); this._color = this.borderColorName; } } } } } } } } if (v8 != undefined) { this.beginFill(v8); this.drawRect(v9, v9, this.__get__width() - v9, this.__get__height() - v9); this.endFill(); } }; v2.draw3dBorder = function (c1, c2, c3, c4, c5, c6) { var v3 = this.__get__width(); var v2 = this.__get__height(); this.beginFill(c1); this.drawRect(0, 0, v3, v2); this.drawRect(1, 0, v3 - 1, v2); this.endFill(); this.beginFill(c2); this.drawRect(1, 0, v3 - 1, 1); this.endFill(); this.beginFill(c3); this.drawRect(1, v2 - 1, v3 - 1, v2); this.endFill(); this.beginFill(c4); this.drawRect(1, 1, v3 - 1, 2); this.endFill(); this.beginFill(c5); this.drawRect(1, v2 - 2, v3 - 1, v2 - 1); this.endFill(); this.beginFill(c6); this.drawRect(1, 2, v3 - 1, v2 - 2); this.drawRect(2, 2, v3 - 2, v2 - 2); this.endFill(); }; v1.classConstruct = function () { mx.core.ext.UIObjectExtensions.Extensions(); _global.styles.rectBorderClass = mx.skins.halo.RectBorder; _global.skinRegistry.RectBorder = true; return true; }; v1.symbolName = 'RectBorder'; v1.symbolOwner = mx.skins.halo.RectBorder; v1.version = '2.0.2.127'; v2.borderCapColorName = 'borderCapColor'; v2.shadowCapColorName = 'shadowCapColor'; v2.colorList = {'highlightColor': 0, 'borderColor': 0, 'buttonColor': 0, 'shadowColor': 0, 'borderCapColor': 0, 'shadowCapColor': 0}; v2.borderWidths = {'none': 0, 'solid': 1, 'inset': 2, 'outset': 2, 'alert': 3, 'dropDown': 2, 'menuBorder': 2, 'comboNonEdit': 2}; v1.classConstructed = mx.skins.halo.RectBorder.classConstruct(); v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; ASSetPropFlags(mx.skins.halo.RectBorder.prototype, null, 1); } #endinitclip } movieClip 512 __Packages.mx.skins.halo.ButtonSkin { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.ButtonSkin) { var v1 = function () { super(); }; mx.skins.halo.ButtonSkin = v1; var v2 = new mx.skins.RectBorder(); mx.skins.halo.ButtonSkin.prototype = v2; v2.init = function () { super.init(); }; v2.size = function () { this.drawHaloRect(this.__get__width(), this.__get__height()); }; v2.drawHaloRect = function (w, h) { var v6 = this.getStyle('borderStyle'); var v4 = this.getStyle('themeColor'); var v5 = this._parent.emphasized; this.clear(); switch (v6) { case 'falseup': if (v5) { this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 75); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, v4, 75); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16316664, 100); } else { this.drawRoundRect(0, 0, w, h, 5, 9542041, 100); this.drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, 'radial'); this.drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, 'radial'); this.drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100); } break; case 'falsedown': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 50); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, v4, 20); break; case 'falserollover': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 50); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, v4, 50); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16316664, 100); break; case 'falsedisabled': this.drawRoundRect(0, 0, w, h, 5, 13159628, 100); this.drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100); this.drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100); this.drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100); break; case 'trueup': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 10066329, 100); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 50); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16250871, 100); break; case 'truedown': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 10066329, 100); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 50); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, v4, 20); break; case 'truerollover': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 50); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 40); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16316664, 100); break; case 'truedisabled': this.drawRoundRect(0, 0, w, h, 5, 13159628, 100); this.drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100); this.drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100); this.drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100); } }; v1.classConstruct = function () { mx.core.ext.UIObjectExtensions.Extensions(); _global.skinRegistry.ButtonSkin = true; return true; }; v1.symbolName = 'ButtonSkin'; v1.symbolOwner = mx.skins.halo.ButtonSkin; v2.className = 'ButtonSkin'; v2.backgroundColorName = 'buttonColor'; v1.classConstructed = mx.skins.halo.ButtonSkin.classConstruct(); v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; ASSetPropFlags(mx.skins.halo.ButtonSkin.prototype, null, 1); } #endinitclip } frame 2 { stop(); } frame 2 { stop(); } movieClip 583 { frame 4 { stop(); } } button 585 { on (release) { gotoAndPlay(4); } } frame 3 { _global.ssss = so; } frame 3 { } movieClip 588 { } frame 4 { stopAllSounds(); } movieClip 592 { } frame 26 { _root.p = 0; var mys7 = new Sound(); mys7.attachSound('mm'); _root.createEmptyMovieClip('temp', 234); _global.main_theme = new Sound(_root.temp); _global.main_theme.attachSound('mm'); _global.main_theme.setVolume(80); _global.main_theme.start(0, 1000000); so._visible = true; } frame 27 { function generator() { l = 1; m = random(8); var v1 = mas; v1 = v1.split('|'); c = 0; while (c < v1.length) { if (v1[c] == m) { generator(); l = 0; } ++c; } if (l == 1) { mas += m + '|'; ++mo_g; if (mo_g == 8) { } else { generator(); } } } function genD() { _root.p = 0; var v3 = mas; v3 = v3.split('|'); i = 0; while (i < v3.length - 1) { ++_root.p; this.attachMovie('d' + v3[i], 'g' + i + 'g' + _root.p, _root.p); this['g' + i + 'g' + _root.p]._x = 30 + 96 * i; this['g' + i + 'g' + _root.p].po = _root.p * 2; this['g' + i + 'g' + _root.p]._y = 110; ++i; } } stop(); _root.sound_n = 0; al._visible = false; t.t = 40; dg = 0; mas = ''; mo_g = 0; nom = 1; m_gas = ''; generator(); onEnterFrame = function () { if (_root.alpha <= 10) { sol.gotoAndStop(2); } else { sol.gotoAndStop(1); } }; genD(); } movieClip 602 { frame 4 { stop(); } } button 604 { on (release) { if (nom == 9) { trace(m_gas); if (m_gas == '4,3,1,5,6,2,8,7,' || m_gas == '1,2,4,5,6,3,8,7,') { gotoAndStop(29); } else { gotoAndStop(28); } } else {} } } movieClip 613 { frame 3 { stop(); } } // unknown tag 88 length 68 movieClip 616 { frame 1 { stop(); } frame 2 { stop(); } } frame 28 { stop(); s = 0; i = 0; while (i < 9) { ++s; this.attachMovie('d', 'g' + i + 'g' + s, s); this['g' + i + 'g' + s]._x = 30 + 96 * i; this['g' + i + 'g' + s]._y = 110; ++i; } } movieClip 629 { frame 4 { stop(); } } button 631 { on (release) { _root.prevFrame(); } } movieClip 632 { } instance of movieClip 632 { onClipEvent (enterFrame) { if (_parent._currentframe == 27) { removeMovieClip(this); } else { if (_parent._currentframe == 28) { this.swapDepths(10); trace(':'); } else { removeMovieClip(this); } } } } frame 29 { function toEnd() { _global.schFinn.gotoAndPlay(16); _root.gotoAndStop(56); } function theEnd() { _root.gotoAndStop(57); _global.schFinn._visible = false; } _global.scper = schema_perehod; } frame 29 { _root.day2 = function () { _root.txt.text = '45'; _root.gotoAndStop(45); }; _root.day2Start = function () { _root.perehods._visible = true; _root.perehods.gotoAndStop(3); }; _root.day2Begin = function () { _root.perehods._visible = false; _root.schema_perehod._visible = false; _root.schema1._visible = false; _root.gotoAndStop(35); }; _root.day3end = function () { _root.gotoAndStop(42); _root.blok.gotoAndStop(1); _root.blok.ko.gotoAndPlay(1); }; _root.toDay3 = function () { gameDriver.etap = 'six5'; _root.perehods._visible = true; _root.perehods.gotoAndStop(5); }; _root.day4Start = function () { _root.perehods._visible = false; _root.gotoAndStop(43); }; } frame 29 { schema1._visible = false; schema_perehod._visible = false; perehods._visible = false; stop(); } frame 29 { function delChick() { s = 0; i = 0; while (i < 9) { ++s; this.attachMovie('d', 'g' + i + 'g' + s, s); this['g' + i + 'g' + s]._x = 30 + 96 * i; this['g' + i + 'g' + s]._y = 110; ++i; } } stop(); _root.sound_n = 1; } button 635 { on (release) { _root.delChick(); _root.perehods._visible = true; _global.zvon.stop(); _root.perehods.gotoAndPlay(2); } } movieClip 638 { } movieClip 641 { } movieClip 644 { } movieClip 647 { } movieClip 650 { frame 187 { stop(); _parent._visible = false; _root.gotoAndStop(30); } } movieClip 652 { } movieClip 655 { } movieClip 658 { } movieClip 661 { } movieClip 662 { } movieClip 663 { frame 170 { stop(); this._parent._visible = false; _root.day2Begin(); } } movieClip 664 { } movieClip 667 { } movieClip 668 { frame 14 { stop(); this._visible = false; _root.gotoAndStop(53); } } movieClip 671 { } movieClip 678 { } movieClip 681 { } movieClip 682 { frame 167 { stop(); _root.day4Start(); } } movieClip 683 { frame 1 { stop(); } frame 2 { stop(); } instance of movieClip 652 { onClipEvent (load) { this.useHandCursor = false; } onClipEvent (release) { a = 0; } } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 687 { } movieClip 689 { } movieClip 691 { } // unknown tag 88 length 62 movieClip 700 { } movieClip 702 { frame 812 { stop(); } } movieClip 707 { } movieClip 713 { } movieClip 715 { } movieClip 716 { frame 1 { stop(); } frame 21 { stop(); } } movieClip 718 { frame 1 { num = int(random(9)); } } movieClip 719 { } movieClip 720 { } movieClip 721 { frame 1 { stop(); } frame 21 { stop(); } } movieClip 724 { } movieClip 727 { } movieClip 730 { } movieClip 731 { frame 1 { stop(); } frame 20 { stop(); } } movieClip 742 { } movieClip 743 { frame 67 { _parent.mon6.play(); } frame 69 { _parent.aura6.gotoAndPlay(1); } frame 83 { _parent.aura5.gotoAndPlay(1); } frame 84 { _parent.aura4.gotoAndPlay(1); } frame 101 { _parent.aura3.gotoAndPlay(1); } frame 113 { _parent.aura6.gotoAndPlay(1); } frame 123 { _parent.mon3.play(); } frame 128 { _parent.aura5.gotoAndPlay(1); } frame 129 { _parent.aura4.gotoAndPlay(1); } frame 145 { _parent.mon4.play(); _parent.mon5.play(); } frame 146 { _parent.aura3.gotoAndPlay(1); } frame 161 { _parent.aura1.gotoAndPlay(1); } frame 175 { _parent.mon1.play(); } frame 187 { _parent.electro.play(); } frame 198 { _parent.aura2.gotoAndPlay(1); } frame 203 { _parent.mon2.play(); } frame 206 { _parent.aura1.gotoAndPlay(1); } frame 209 { _parent.electro2.play(); } frame 243 { _parent.aura2.gotoAndPlay(1); } frame 244 { stop(); } instance of movieClip 700 { onClipEvent (release) { _root.day2(); _root.schema_perehod.gotoAndPlay(15); _root.schema10.gotoAndStop(15); } } } movieClip 745 { frame 1 { stop(); } frame 16 { _parent.smoke.play(); } frame 31 { _parent.serv1.play(); } frame 131 { stop(); } } movieClip 748 { } movieClip 750 { frame 1 { stop(); } frame 133 { stop(); } } movieClip 751 { frame 1 { stop(); } frame 16 { _parent.smoke2.play(); } frame 36 { _parent.serv2.play(); } frame 131 { stop(); } } movieClip 753 { } movieClip 755 { } movieClip 758 { } movieClip 759 { frame 1 { stop(); } } movieClip 760 { } movieClip 761 { } movieClip 762 { } movieClip 763 { } movieClip 764 { } movieClip 781 { } movieClip 782 { } movieClip 783 { frame 31 { stop(); } } movieClip 785 { } movieClip 788 { frame 1 { tr.cacheAsBitmap = true; msk.cacheAsBitmap = tr.cacheAsBitmap; tr.setMask(msk); } frame 31 { stop(); } } movieClip 790 { } movieClip 792 { } movieClip 794 { } movieClip 796 { } movieClip 798 { } movieClip 800 { } movieClip 802 { } movieClip 804 { } movieClip 806 { } movieClip 808 { } movieClip 810 { } movieClip 812 { } movieClip 814 { } movieClip 816 { } movieClip 818 { } movieClip 819 { frame 1 { tr.cacheAsBitmap = true; msk.cacheAsBitmap = tr.cacheAsBitmap; tr.setMask(msk); } } movieClip 820 { } movieClip 821 { } movieClip 822 { frame 127 { stop(); } } movieClip 825 { } movieClip 826 { } movieClip 828 { frame 94 { stop(); } } movieClip 830 { frame 118 { stop(); } } movieClip 832 { } movieClip 834 { } movieClip 870 { } movieClip 873 { } movieClip 875 { } movieClip 876 { frame 43 { if (_parent.angel) { gotoAndPlay(1); } else { play(); } } frame 61 { stop(); } } movieClip 879 { } movieClip 884 { } movieClip 885 { frame 60 { angel = true; (LSound.getInstance()).start('hell'); } frame 181 { (LSound.getInstance()).start('angel'); } frame 269 { angel = false; } frame 379 { stop(); } instance of movieClip 700 { onClipEvent (release) { _root.shet = 10; _root.day2Start(); _root.schema_perehod.gotoAndPlay(15); _root.schema10.gotoAndStop(15); } } } movieClip 890 { frame 48 { angel = true; } frame 53 { (LSound.getInstance()).start('angel'); } frame 141 { angel = false; } frame 251 { stop(); } instance of movieClip 700 { onClipEvent (release) { _root.nextFrame(); this._parent._parent._parent.gotoAndPlay(15); this._parent.gotoAndStop(15); } } } movieClip 897 { } movieClip 906 { } movieClip 909 { } movieClip 910 { frame 1 { stop(); } frame 15 { stop(); _root.toEnd(); } frame 15 { stop(); } } movieClip 911 { frame 1 { stop(); _global.secretaty_comp = this; } frame 7 { stop(); } frame 22 { stop(); Selection.setFocus('t1'); this.onEnterFrame = function () { var v3 = t1.text; var v4 = v3.substr(0, 12); var v5 = v3.substring(12); if (v4 == '192.168.100.') { var v2 = Number(v5); if (v2 != 1 and v2 != 5 and v2 != 10 and v2 != 11 and v2 != 50 and v2 != 70 and v2 != 71 and v2 != 72 and v2 != 73 and v2 != 74 and v2 != 75 and v2 > 0 and v2 <= 255) { delete this.onEnterFrame; trace('go'); comp1.play(); } } }; } } movieClip 913 { } movieClip 914 { } movieClip 984 { frame 108 { stop(); } } movieClip 1039 { frame 118 { stop(); } } movieClip 1040 { frame 1 { stop(); } } movieClip 1041 { frame 124 { stop(); } frame 133 { stop(); } } button 1043 { on (release) { play(); } } movieClip 1048 { } movieClip 1050 { } movieClip 1054 { } movieClip 1058 { } movieClip 1059 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1060 { } movieClip 1061 { frame 1 { i = 0; while (i < 11) { this['c' + i].label.gotoAndStop(i + 1); ++i; } stop(); } } movieClip 1062 { } movieClip 1069 { frame 60 { this._parent.gotoAndStop(1); } } movieClip 1070 { frame 1 { stop(); _global.sekrsw1 = this; } } movieClip 1135 { frame 175 { stop(); } } movieClip 1136 { frame 1 { stop(); _global.man_sw1 = this; } } movieClip 1139 { frame 1 { stop(); } frame 10 { stop(); _root.m = 3; _global.swww1 = this; } instance of movieClip 1062 { } frame 18 { if (_global.zzz8 != undefined) { this._parent.nextFrame(); _global.secretaty_comp.play(); } else { _parent.gotoAndStop(1); } } } movieClip 1142 { } movieClip 1151 { frame 1 { stop(); } frame 15 { stop(); } frame 15 { stop(); } } movieClip 1152 { frame 20 { stop(); Selection.setFocus('t1'); this.onEnterFrame = function () { var i = 1; while (i <= 8) { var tx = eval('t' + i); var b = true; var ii = 1; while (ii <= 8) { var tx2 = eval('t' + ii); if (tx.text == tx2.text and tx != tx2) { b = false; } ++ii; } var evl = eval('comp' + i); if (b == true and (tx.text == '192.168.0.18' or tx.text == '192.168.0.19' or tx.text == '192.168.0.22' or tx.text == '192.168.0.23' or tx.text == '192.168.0.24' or tx.text == '192.168.0.27' or tx.text == '192.168.0.28' or tx.text == '192.168.0.30')) { if (evl._currentframe < 15) { evl.play(); } else { if (evl._currentframe > 15) { evl.gotoAndPlay(2); } else { evl.stop(); } } } else { if (evl._currentframe != 1) { evl.play(); } } ++i; } if (comp1._currentframe == 15 and comp2._currentframe == 15 and comp3._currentframe == 15 and comp4._currentframe == 15 and comp5._currentframe == 15 and comp6._currentframe == 15 and comp7._currentframe == 15 and comp8._currentframe == 15) { trace(222); t1.type = 'dynamic'; t2.type = 'dynamic'; t3.type = 'dynamic'; t4.type = 'dynamic'; t5.type = 'dynamic'; t6.type = 'dynamic'; t7.type = 'dynamic'; t8.type = 'dynamic'; var zv = new Sound(this); zv.attachSound('zvuk_new_zadan'); zv.start(); delete this.onEnterFrame; this._parent.nextFrame(); } }; } } movieClip 1156 { } movieClip 1159 { frame 1 { _global.bgswitch2 = this; } } movieClip 1174 { frame 1 { io = 'local'; } frame 2 { io = 'buhg'; } frame 3 { io = 'buhg'; } frame 4 { io = 'buhg'; } frame 5 { io = 'buhg'; } frame 6 { io = 'buhg'; } frame 7 { io = 'buhg'; } frame 8 { io = 'sekretary'; } frame 9 { io = 'Printer'; } frame 10 { io = 'Local'; } frame 11 { io = 'S'; } } movieClip 1175 { frame 1 { function InitCable() { pts_x = new Array(nseg + 1); pts_y = new Array(nseg + 1); pts_vx = new Array(nseg + 1); pts_vy = new Array(nseg + 1); i = 0; while (i < nseg) { attachMovie('lineseg', 's' + i, 100 + i); ++i; } i = 0; while (i < nseg + 1) { pts_x[i] = jack._x + unplugged_ofs_x; pts_y[i] = jack._y + unplugged_ofs_y + i * seglen; pts_vx[i] = 0; pts_vy[i] = 0; ++i; } deflen = this.s0._width; doUpdate = false; sndPlugIn = new Sound(); sndPlugIn.attachSound('plugin'); sndPlugOut = new Sound(); sndPlugOut.attachSound('plugout'); jack.gotoAndStop(1); jack.onPress = TakeCable; jack.onRelease = DropCable; jack.onReleaseOutside = DropCable; pluggedInto = -1; curve = Math.random() * maxCurve; label.swapDepths(1000); } function TakeCable() { if (label.io == 'local') { return undefined; } if (this._currentframe == 2) { _parent['socket' + pluggedInto].occupied = false; sndPlugOut.start(); _parent['socket' + pluggedInto].s.gotoAndStop(1); _root.m -= 1; var v6 = new Sound(this); v6.attachSound('plugout'); v6.start(); if (label.io == 'buhg') { _root.bb -= 1; trace('b-=' + _root.bb); } } if (label.io == 'sekretar') { _global.sekrsw2.gotoAndStop(2); _root.s = 0; } else { if (label.io == 'menedger') { } } if (label.io == 'buhg') { trace('b-=' + _root.bb); _global.bugaga.gotoAndStop(2); } this.gotoAndStop(1); this._parent.swapDepths(1000); this._parent.swapDepths(1000); var v5 = {'x': 0, 'y': 0}; v5.x = _parent._parent.bg._x + 20; v5.y = _parent._parent.bg._y + 40; _parent._parent.localToGlobal(v5); this._parent.globalToLocal(v5); var v8 = _parent._parent.bg._width - 50; var v7 = _parent._parent.bg._height - 50; this.startDrag(true, v5.x, v5.y, v5.x + v8, v5.y + v7); doUpdate = true; UpdateSegments(); _parent.onEnterFrame = UpdateSegments; } function DropCable() { trace('drop'); var v12 = 0; var v11 = 1000000; var v14; var v13; var v9; var v7; var v6; var v8; var v5 = {'x': 0, 'y': 0}; var v10 = {'x': 0, 'y': 0}; v10.x = this._parent._x + this._x; v10.y = this._parent._y + this._y + jack_hotspot_ofs_y; i = 0; for (;;) { v8 = _parent['socket' + i]; if (v8 == undefined) { break; } v5.x = v8._x; v5.y = v8._y; v7 = v10.x - v5.x; v6 = v10.y - v5.y; v9 = v7 * v7 + v6 * v6; if (v9 < v11) { v11 = v9; v14 = v7; v13 = v6; v12 = i; } ++i; } if (Math.abs(v13) < jack_hit_dy && Math.abs(v14) < jack_hit_dx && _parent['socket' + v12].occupied != true) { _root.m += 1; var v15 = new Sound(this); v15.attachSound('plugin'); v15.start(); this._parent.swapDepths(500 - v12); this.gotoAndStop(2); sndPlugIn.start(); this._x -= v14; this._y -= v13; trace('in'); if (label.io == 'buhg') { _root.bb += 1; trace('b+=' + _root.bb); } if (_root.bb == 7) { trace('down_buhg'); _global.bugaga.gotoAndStop(1); } pluggedInto = v12; _parent['socket' + pluggedInto].s.gotoAndStop(2); _parent['socket' + pluggedInto].occupied = true; if (label.io == 'sekretar') { _root.s = 1; _root.sekretar.gotoAndStop(1); } else { if (label.io == 'menedger') { _root.menedger.gotoAndStop(1); } } if (label.io == 'sekretary') { _global.sekrsw2.gotoAndStop(1); } } this.stopDrag(); doUpdate = false; if (_root.m == 8) { _global.swww3 = true; _global.sssw.play(); } } function UpdateSegments() { pts_x[0] = jack._x; pts_y[0] = jack._y; if (jack._currentframe == 1) { pts_x[0] += unplugged_ofs_x; pts_y[0] += unplugged_ofs_y; } else { pts_x[0] += pluggedin_ofs_x; pts_y[0] += pluggedin_ofs_y; } var v3 = 0; var v2 = 0; i = 1; while (i < nseg + 1) { pts_vx[i] = k_inertia * pts_vx[i] + k_elastic * (pts_x[i - 1] + curve * i * i - pts_x[i]); pts_vy[i] = k_inertia * pts_vy[i] + k_elastic * (pts_y[i - 1] + seglen - pts_y[i]); pts_x[i] += pts_vx[i]; pts_y[i] += pts_vy[i]; v2 = Math.sqrt(pts_vx[i] * pts_vx[i] + pts_vy[i] * pts_vy[i]); if (v2 > v3) { v3 = v2; } ++i; } PositionSegments(); if (v3 < 1 && doUpdate == false) { delete this.onEnterFrame; } } function PositionSegments() { i = 0; while (i < nseg) { this['s' + i]._x = pts_x[i]; this['s' + i]._y = pts_y[i]; var v3 = pts_x[i + 1] - pts_x[i]; var v2 = pts_y[i + 1] - pts_y[i]; var v5 = Math.sqrt(v3 * v3 + v2 * v2); var v4 = Math.atan2(v2, v3); if (i == 2) { label._x = pts_x[i]; label._y = pts_y[i]; label._rotation = 180 * v4 / Math.PI; } this['s' + i]._xscale = 100 * v5 / deflen; this['s' + i]._rotation = 180 * v4 / Math.PI; ++i; } } function dc() { trace('dc'); var v11 = 0; var v10 = 1000000; var v13; var v12; var v8; var v6; var v5; var v7; var v4 = {'x': 0, 'y': 0}; var v9 = {'x': 0, 'y': 0}; v9.x = jack._parent._x + jack._x; v9.y = jack._parent._y + jack._y + jack_hotspot_ofs_y; i = 0; for (;;) { v7 = _parent['socket' + i]; if (v7 == undefined) { break; } v4.x = v7._x; v4.y = v7._y; v6 = v9.x - v4.x; v5 = v9.y - v4.y; v8 = v6 * v6 + v5 * v5; if (v8 < v10) { v10 = v8; v13 = v6; v12 = v5; v11 = i; } ++i; } if (Math.abs(v12) < jack_hit_dy && Math.abs(v13) < jack_hit_dx && _parent['socket' + v11].occupied != true) { trace('dc_in'); jack._parent.swapDepths(500 - v11); jack.gotoAndStop(2); sndPlugIn.start(); jack._x -= v13; jack._y -= v12; pluggedInto = v11; _parent['socket' + pluggedInto].s.gotoAndStop(2); _parent['socket' + pluggedInto].occupied = true; if (label.io == 'sekretar') { _root.s = 1; _root.sekretar.gotoAndStop(1); } else { if (label.io == 'menedger') { _root.menedger.gotoAndStop(1); } } if (label.io == 'buhg') { _global.buhsw2.gotoAndStop(1); } if (label.io == 'sekretary') { trace('secr'); _global.sekrsw2.gotoAndStop(1); } if (allIn) { } } UpdateSegments(); } nseg = 20; seglen = 20; k_elastic = 0.6; k_inertia = 0.2; maxCurve = 0.04; unplugged_ofs_x = 0; unplugged_ofs_y = 28; pluggedin_ofs_x = -10; pluggedin_ofs_y = 7; jack_hotspot_ofs_y = -10; jack_hit_dx = 20; jack_hit_dy = 40; InitCable(); PositionSegments(); stop(); onEnterFrame = function () { if (label.io == 'sekretar') { _global.sekrsw2.gotoAndStop(1); dc(); delete onEnterFrame; } else { if (label.io == 'menedger') { dc(); delete onEnterFrame; } else { if (label.io == 'buhg') { _global.buhsw2.gotoAndStop(1); dc(); delete onEnterFrame; } else { dc(); delete onEnterFrame; } } } }; } } movieClip 1176 { frame 1 { i = 0; while (i < 11) { this['c' + i].label.gotoAndStop(i + 1); ++i; } stop(); } } movieClip 1177 { } movieClip 1186 { } movieClip 1224 { frame 207 { gotoAndPlay(135); } } movieClip 1225 { frame 1 { stop(); _global.bugaga = this; } } movieClip 1227 { frame 1 { stop(); } frame 10 { stop(); _root.m = 7; _global.sssw = this; _root.bb = 7; } instance of movieClip 1177 { } frame 18 { if (_global.swww3 == true) { _global.secretaty_comp.play(); this._parent.nextFrame(); } else { _parent.gotoAndStop(12); } } } movieClip 1230 { } movieClip 1231 { } movieClip 1234 { frame 10 { stop(); } frame 17 { stop(); } } movieClip 1235 { frame 59 { stop(); } } movieClip 1238 { } movieClip 1244 { } movieClip 1246 { } movieClip 1248 { } movieClip 1251 { } movieClip 1253 { } movieClip 1256 { } movieClip 1260 { } movieClip 1263 { } movieClip 1264 { frame 34 { stop(); } } movieClip 1272 { } movieClip 1274 { } movieClip 1276 { } movieClip 1278 { } movieClip 1280 { } movieClip 1282 { } movieClip 1284 { } movieClip 1286 { } movieClip 1288 { } movieClip 1290 { } movieClip 1292 { } movieClip 1294 { } movieClip 1296 { } movieClip 1299 { } movieClip 1301 { } movieClip 1303 { } movieClip 1306 { } movieClip 1308 { } movieClip 1309 { } movieClip 1311 { } movieClip 1312 { frame 1 { stop(); } frame 11 { stop(); } } movieClip 1314 { } movieClip 1316 { } movieClip 1317 { frame 10 { stop(); _parent._parent.play(); } } movieClip 1318 { frame 1 { stop(); } frame 114 { stop(); } } movieClip 1319 { } movieClip 1320 { frame 77 { sys.play(); stop(); } frame 176 { stop(); _root.gotoAndStop(58); _global.main_theme.stop(); _global.schFinn._visible = false; } } movieClip 1321 { frame 59 { angel = true; } frame 180 { (LSound.getInstance()).start('angel'); } frame 268 { angel = false; } frame 459 { stop(); _global.main_theme.stop(); } } movieClip 1322 { frame 1 { stop(); if (_global.finsch == true) { gotoAndStop(14); } if (gameDriver.etap == 'zero') { gotoAndStop(2); } else { if (gameDriver.etap == 'one1') { gotoAndStop(2); } else { if (gameDriver.etap == 'one2') { gotoAndStop(2); } else { if (gameDriver.etap == 'one3') { gotoAndStop(2); } else { if (gameDriver.etap == 'two1') { gotoAndStop(3); } else { if (gameDriver.etap == 'two2') { gotoAndStop(4); } else { if (gameDriver.etap == 'three1') { gotoAndStop(4); } else { if (gameDriver.etap == 'three2' and _root.shet == 1) { _root.shet = 10; gotoAndStop(6); } else { if (gameDriver.etap == 'three2' and _global.avir == true) { _global.avir = false; gotoAndStop(5); } else { if (gameDriver.etap == 'three2') { gotoAndStop(7); } else { if (gameDriver.etap == 'four1') { gotoAndStop(7); } else { if (gameDriver.etap == 'four2') { gotoAndStop(7); } else { if (gameDriver.etap == 'four3') { gotoAndStop(7); } else { if (gameDriver.etap == 'five1') { gotoAndStop(7); } else { if (gameDriver.etap == 'five2') { gotoAndStop(7); } else { if (gameDriver.etap == 'five3') { gotoAndStop(7); } else { if (gameDriver.etap == 'six1') { gotoAndStop(7); } else { if (gameDriver.etap == 'six2') { gotoAndStop(7); } else { if (gameDriver.etap == 'six3') { gotoAndStop(7); } else { if (gameDriver.etap == 'six4' and _global.sixcontrol != true) { _global.sixcontrol = true; gotoAndStop(8); } else { if (gameDriver.etap == 'six4') { gotoAndStop(9); } else { if (gameDriver.etap == 'six5') { gotoAndStop(9); } else { if (gameDriver.etap == 'seven1') { gotoAndStop(10); } else { if (gameDriver.etap == 'final') { gotoAndStop(14); } else { gotoAndStop(15); } } } } } } } } } } } } } } } } } } } } } } } } } frame 2 { this._visible = true; } frame 2 { stop(); } instance of movieClip 652 { onClipEvent (load) { this.useHandCursor = false; } onClipEvent (release) { a = 0; } } instance of movieClip 700 { onClipEvent (release) { _root.schema_perehod.gotoAndPlay(15); this._parent.gotoAndStop(15); } } frame 3 { stop(); prin.gotoAndPlay(1); cl.onRelease = function () { this._parent._visible = false; this._parent.prin.gotoAndStop(1); _root.schema_perehod.gotoAndPlay(45); }; } frame 4 { stop(); } frame 5 { stop(); cl.onRelease = function () { this._parent._visible = false; _root.day2(); _root.schema_perehod.gotoAndPlay(18); }; } frame 6 { stop(); cl.onRelease = function () { this._parent._visible = false; _root.day2Start(); _root.schema_perehod.gotoAndPlay(18); }; } frame 7 { stop(); cl.onRelease = function () { this._parent._visible = false; _root.schema_perehod.gotoAndPlay(18); }; } instance of movieClip 700 { onClipEvent (release) { this._parent._parent.gotoAndPlay(15); this._parent.gotoAndStop(15); } } frame 8 { stop(); cl.onRelease = function () { this._parent._visible = false; _root.schema_perehod._visible = false; _root.day3end(); }; } frame 9 { stop(); } instance of movieClip 700 { onClipEvent (release) { this._parent._parent.gotoAndPlay(15); this._parent.gotoAndStop(15); } } frame 10 { stop(); } frame 11 { stop(); secr.gotoAndPlay('disconnect'); cl.onRelease = function () { this._parent._visible = false; _root.schema_perehod.gotoAndPlay(18); }; } frame 12 { stop(); turkmeny.gotoAndPlay('off'); } frame 13 { stop(); secr.gotoAndPlay('reconnect'); cl.onRelease = function () { this._parent._visible = false; _root.schema_perehod.gotoAndPlay(18); }; } frame 14 { stop(); } frame 15 { stop(); } } movieClip 1323 { frame 1 { stop(); } frame 2 { this.swapDepths(_root.getNextHighestDepth()); } instance of movieClip 691 { onClipEvent (load) { this.useHandCursor = false; } onClipEvent (release) { this.a = 1; } } frame 14 { stop(); trace('cent'); _root.schema10.swapDepths(_root.getNextHighestDepth()); _root.schema10._visible = true; _root.schema10.gotoAndStop(1); } } button 1324 { on (release) { play(); _root.stikers._visible = false; } } movieClip 1326 { } movieClip 1329 { } movieClip 1331 { frame 1 { stop(); this.onRelease = function () { this.play(); }; } instance of movieClip 1326 { onClipEvent (load) { this.useHandCursor = false; } onClipEvent (release) { a = 0; } } frame 12 { stop(); } frame 20 { } frame 20 { gotoAndStop(1); _root.stikers._visible = true; } } frame 30 { _root.schema10.gotoAndStop(15); } frame 30 { stop(); _global.schem_num = 1; _root.createEmptyMovieClip('sod', _root.getNextHighestDepth()); _root.sod.onEnterFrame = function () { _root.so.swapDepths(_root.getNextHighestDepth()); }; } frame 30 { b_mig._visible = false; b_mig.stop(); } frame 30 { var MainConsole = new Console(cons); _global.consEnabled = true; } movieClip 1332 { } movieClip 1349 { } movieClip 1350 { frame 1 { stop(); _global.tsk = this; } frame 2 { stop(); } } movieClip 1353 { } movieClip 1356 { } movieClip 1357 { frame 1 { stop(); if (_global.newTask == true) { _global.tsk.gotoAndStop(2); } this.onRollOver = function () { trace('over'); _root.b_mig._visible = false; _root.b_mig.gotoAndStop(1); if (_global.consEnabled == true and _global.newTask != true) { this.gotoAndPlay(2); } _global.newTask == false; }; this.onRollOut = function () { _root.b_mig._visible = false; _root.b_mig.gotoAndStop(1); if (_global.consEnabled == true) { this.gotoAndPlay(16); } }; this.onRelease = function () { _root.so.swapDepths(_root.getNextHighestDepth()); _root.b_mig._visible = false; _root.b_mig.gotoAndStop(1); _global.newTask = false; if (_global.consEnabled == true) { if (_root.ii._currentframe == 1) { _root.ii.gotoAndPlay(2); _root.ii.swapDepths(_root.getNextHighestDepth()); } } }; } frame 3 { _global.newTask = false; } frame 9 { stop(); this.onRelease = function () { _global.newTask = false; _root.b_mig._visible = false; _root.b_mig.gotoAndStop(1); if (_global.consEnabled == true) { if (_root.ii._currentframe == 1) { _root.ii.gotoAndPlay(2); _root.ii.swapDepths(_root.getNextHighestDepth()); } } }; } } movieClip 1365 { frame 1 { stop(); this.onRollOut = function () { this.gotoAndPlay(2); delete this.onRollOut; }; this.useHandCursor = false; } } movieClip 1368 { } movieClip 1371 { } movieClip 1373 { } movieClip 1376 { } movieClip 1379 { } movieClip 1380 { frame 1 { stop(); onRollOut = function () { if (_global.consEnabled == true) { this.gotoAndPlay(16); } }; onRollOver = function () { if (_global.consEnabled == true) { this.gotoAndPlay(this._currentframe + 1); } }; this.onRelease = function () { _root.so.swapDepths(_root.getNextHighestDepth()); if (_global.consEnabled == true) { if (_global.interact != false & _root.schema_perehod._currentframe == 1) { _root.schema_perehod._visible = true; _root.schema_perehod.gotoAndPlay(2); } } }; } frame 9 { stop(); } } movieClip 1384 { } movieClip 1390 { } movieClip 1393 { } movieClip 1397 { } movieClip 1407 { frame 4 { stop(); } } movieClip 1408 { instance of movieClip 1397 { } frame 49 { gotoAndPlay(5); } } movieClip 1409 { frame 1 { stop(); } instance of movieClip 1397 { } } button 1410 { on (release) { _parent.play(); } on (rollOver) { gotoAndStop(30); } on (rollOut) { gotoAndPlay(1); } } button 1417 { on (release) { _parent.play(); } on (rollOver) { gotoAndStop(30); } on (rollOut) { gotoAndPlay(1); } } movieClip 1418 { } movieClip 1419 { instance of movieClip 1397 { } frame 19 { stop(); } } movieClip 1420 { frame 1 { stop(); } frame 2 { _parent.gotoAndPlay(2); } frame 13 { stop(); } } movieClip 1451 { frame 269 { gotoAndPlay(51); } } movieClip 1483 { frame 75 { gotoAndPlay(51); } } movieClip 1556 { frame 313 { gotoAndPlay(312); } } movieClip 1621 { frame 166 { gotoAndPlay(149); } } movieClip 1650 { frame 66 { gotoAndPlay(55); } } movieClip 1652 { frame 1 { stop(); } } movieClip 1661 { frame 1 { stop(); } frame 10 { stop(); } } movieClip 1663 { } movieClip 1664 { } movieClip 1666 { } movieClip 1667 { instance of movieClip 1397 { } frame 11 { stop(); } } movieClip 1668 { frame 1 { } } movieClip 1669 { frame 11 { stop(); } } movieClip 1674 { } movieClip 1677 { } movieClip 1680 { } movieClip 1681 { } movieClip 1682 { frame 1 { stop(); _global.phone = this; } frame 2 { pers.gotoAndStop('buhgalter'); pers.pers.gotoAndStop(1); pers.pers.looper = 1; bablpers.txt.text = ''; phone.gotoAndPlay(2); _global.consEnabled = false; _root.so.swapDepths(_root.getNextHighestDepth()); } frame 10 { function NextPhrase() { switch (phrase) { case 0: ShowText(bablpers, 'Уважаемый коллега, к сожалению, сетевой принтер (IP 192.168.100.10) не осуществляет печати отправленных заданий.'); break; case 1: ShowText(bablpers, 'У нас с коллегами нет предположений относительно возможных причин неполадки, не могли бы Вы быть столь любезны, чтобы помочь нам справиться с ней?'); break; case 2: ShowText(bablpers, 'Заранее благодарю от имени всего коллектива финансового отдела.'); break; default: pers._parent.gotoAndPlay(pers._parent._currentframe + 1); } ++phrase; } function ShowBabl(obj) { obj.pov.gotoAndPlay(2); } function InitDialog() { this.swapDepths(_root.getNextHighestDepth()); big2.useHandCursor = true; big.useHandCursor = big2.useHandCursor; big2.onRelease = function () { if (current_object.txt.text.length < current_text.length) { clearInterval(intervalId); current_object.txt.text = current_text; } else { NextPhrase(); } }; big.onRelease = big2.onRelease; big.onKeyDown = function () { if (Key.isDown(32)) { big.onRelease(); } }; Key.addListener(big); pers.pers.looper = 0; pers.pers.play(); setTimeout(NextPhrase, 500); } var intervalId = null; var phrase = 0; var current_object; var current_text = ''; var k = 0; InitDialog(); setTimeout(ShowBabl, 300, bablpers); stop(); var LetterByLetter = function () { if (current_object.txt.text.length < current_text.length) { current_object.txt.text += current_text.charAt(k); ++k; } if (current_object.txt.text.length == current_text.length) { clearInterval(intervalId); } }; var ShowText = function (obj, txtstr) { if (intervalId != null) { clearInterval(intervalId); } current_object = obj; current_text = txtstr; current_object.txt.text = ''; k = 0; intervalId = setInterval(this, 'LetterByLetter', 1); }; } frame 11 { this.mus.stop(); this.mus.attachSound('snd_hpcalm'); this.mus.start(0, 1); pers.pers.looper = 0; pers.pers.gotoAndStop(1); phone.gotoAndPlay(22); delete phone.onRelease; phone.useHandCursor = false; pers.pers.stop(); _global.newTask = true; _root.blok.gotoAndStop(1); _root.blok.ko.play(); } frame 20 { stop(); gameDriver.etap = 'one1'; _global.lastPhone = this; _global.consEnabled = true; } } movieClip 1684 { } instance of movieClip 1684 { onClipEvent (keyDown) { _root.nom = Key.getAscii(); if (k == 0) { _root.skeyReg(); k = 1; } else {} } onClipEvent (keyUp) { k = 0; } } movieClip 1685 { frame 1 { stop(); _root.no = 0; } frame 2 { _root.no = 1; } frame 10 { _parent.comn += '64 bytes from ' + ping + ': icmp_seq=1 ttl=64 time=1.66 ms'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 20 { _parent.comn += '<br>64 bytes from ' + ping + ': icmp_seq=2 ttl=64 time=1.00 ms'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 30 { _parent.comn += '<br>64 bytes from ' + ping + ': icmp_seq=3 ttl=64 time=1.00 ms<br><br>--- ' + ping + ' ping statistics ---<br>3 packets transmitted, 3 received, 0% packet loss, time 1998ms<br>rtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms<br>sysadmin@myhost:~$ '; _parent.comn.scroll = _parent.comn.maxscroll; } } movieClip 1686 { frame 1 { stop(); _root.no = 0; } frame 2 { _root.no = 1; } frame 10 { _parent.comn += '64 bytes from ' + ping + ': icmp_seq=1 ttl=64 time=0.049 ms'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 20 { _parent.comn += '<br>64 bytes from ' + ping + ': icmp_seq=2 ttl=64 time=0.028 ms'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 30 { _parent.comn += '<br>64 bytes from ' + ping + ': icmp_seq=3 ttl=64 time=0.030 ms<br><br>--- 0.0.0.0 ping statistics ---<br>3 packets transmitted, 3 received, 0% packet loss, time 1998ms<br>rtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms<br>sysadmin@myhost:~$ '; _parent.comn.scroll = _parent.comn.maxscroll; } } movieClip 1687 { frame 1 { stop(); _root.no = 0; } frame 2 { _root.no = 1; } frame 10 { _parent.comn += '64 bytes from ' + ping + ': icmp_seq=1 ttl=64 time=0.049 ms'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 20 { _parent.comn += '<br>64 bytes from ' + ping + ': icmp_seq=2 ttl=64 time=0.028 ms'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 30 { _parent.comn += '<br>64 bytes from ' + ping + ': icmp_seq=3 ttl=64 time=0.030 ms<br><br>--- localhost ping statistics ---<br>3 packets transmitted, 3 received, 0% packet loss, time 1998ms<br>rtt min/avg/max/mdev = 1.005/1.224/1.661/0.310 ms<br><br>sysadmin@myhost:~$ '; _parent.comn.scroll = _parent.comn.maxscroll; } } movieClip 1688 { frame 1 { stop(); _root.no = 0; } frame 2 { _root.no = 1; } frame 10 { _parent.comn += 'From 192.168.100.5 icmp_seq=1 Destination Host Unreachable'; _root.comns.html = true; _root.comns.htmlText = _parent.comn; _root.comns.setTextFormat(_root.main_x); _root.comns.scroll = _root.comns.maxscroll; _root.scr._x = _root.comns.textWidth + 542; _root.scr._y = _root.comns.textHeight + 187; } frame 20 { _parent.comn += '<br>From 192.168.100.5 icmp_seq=2 Destination Host Unreachable'; _root.comns.html = true; _root.comns.htmlText = _parent.comn; _root.comns.setTextFormat(_root.main_x); _root.comns.scroll = _root.comns.maxscroll; _root.scr._x = _root.comns.textWidth + 542; _root.scr._y = _root.comns.textHeight + 187; } frame 30 { _parent.comn += '<br>From 192.168.100.5 icmp_seq=3 Destination Host Unreachable<br><br>--- 192.168.0.6 ping statistics ---<br>3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms<br>, pipe 3<br>sysadmin@myhost:~$ '; _root.comns.html = true; _root.comns.htmlText = _parent.comn; _root.comns.setTextFormat(_root.main_x); _root.comns.scroll = _root.comns.maxscroll; _root.scr._x = _root.comns.textWidth + 542; _root.scr._y = _root.comns.textHeight + 187; } } movieClip 1689 { frame 1 { stop(); _root.no = 0; } frame 2 { _parent.comn += 'pidgin-guifications_2.14-3_i386.deb<br>'; _parent.comn.scroll = _parent.comn.maxscroll; _root.no = 1; } frame 3 { _parent.comn += '??????? - black.mp3<br>'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 4 { _parent.comn += '??????? - black normal.mp3<br>'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 5 { _parent.comn += '??????? - cemetary.mp3<br>'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 6 { _parent.comn += '??????? - ? ?????? ? ????.mp3<br>'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 7 { _parent.comn += '??????? - ?? ????.mp3<br>'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 8 { _parent.comn += '??????? - ???? ? ???????.mp3<br>'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 9 { _parent.comn += '??????? - ????? ? ????????????.mp3<br>'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 10 { _parent.comn += '??????? - ????? ?????.mp3<br>'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 11 { _parent.comn += '??????? - ????? ????.mp3<br>'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 12 { _parent.comn += '??????? - ????? ????.mp3<br>'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 13 { _parent.comn += '??????? - ?????????.mp3<br>'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 14 { _parent.comn += '??????? - ?????.mp3<br>'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 15 { _parent.comn += '??????? - ?????.mp3<br>'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 16 { _parent.comn += '??????? - redivider.mp3<br>'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 17 { _parent.comn += '??????? - Waiting for tomorrow.mp3<br>'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 18 { _parent.comn += '??? ?????? - SHAKE.mp3<br>'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 19 { _parent.comn += '??????? - ??? ???? ? ???????.mp3<br>'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 20 { _parent.comn += '??????? - ????? ???.mp3<br>'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 21 { _parent.comn += '??????? - ??????.mp3<br>'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 22 { _parent.comn += '??????? - ?????.mp3<br>'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 23 { _parent.comn += '??????? - ?????.mp3<br>'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 24 { if (_parent.comand == 'cd') { } else { _parent.comn += '<br>sysadmin@myhost:~$ <br>'; _parent.comn.scroll = _parent.comn.maxscroll; } } } movieClip 1690 { frame 1 { stop(); _root.no = 0; } frame 2 { _root.no = 1; } frame 42 { _parent.comn += '--- ' + f + ' ping statistics ---<br>3 packets transmitted, 0 received, 100% packet loss, time 2010ms<br>sysadmin@myhost:~$ '; _parent.comn.scroll = _parent.comn.maxscroll; } } movieClip 1691 { frame 1 { stop(); } frame 2 { _parent.comn += 'Trying 192.168.100.10...<br>Connected.<br>Login:'; _parent.comn.scroll = _parent.comn.maxscroll; } frame 3 { _parent.comn += 's'; } frame 6 { _parent.comn += 'u'; } frame 9 { _parent.comn += 'p'; } frame 12 { _parent.comn += 'p'; } frame 15 { _parent.comn += 'o'; } frame 18 { _parent.comn += 'r'; } frame 21 { _parent.comn += 't'; } frame 22 { _parent.comn += '<br>Password:'; } frame 27 { _parent.comn += '<br>Welcome to print management.<br> * Type "S" to view print spooler<br> * Type "C" to clear print spooler<br> * Type "Q" to close connection<br>'; _parent.comn.scroll = _parent.comn.maxscroll; _root.scq = 1; } } movieClip 1693 { } button 1698 { on (release) { play(); } } // unknown tag 88 length 70 movieClip 1702 { } movieClip 1719 { frame 1 { stop(); if (gameDriver.etap == 'zero') { gotoAndStop(1); } else { if (gameDriver.etap == 'one1') { gotoAndStop(2); } else { if (gameDriver.etap == 'one2') { gotoAndStop(4); } else { if (gameDriver.etap == 'one3') { gotoAndStop(5); } else { if (gameDriver.etap == 'two1') { gotoAndStop(6); } else { if (gameDriver.etap == 'two2') { gotoAndStop(7); } else { if (gameDriver.etap == 'three1') { gotoAndStop(8); } else { if (gameDriver.etap == 'three2') { gotoAndStop(9); } else { if (gameDriver.etap == 'four1') { gotoAndStop(10); } else { if (gameDriver.etap == 'four2') { gotoAndStop(12); } else { if (gameDriver.etap == 'four3') { gotoAndStop(13); } else { if (gameDriver.etap == 'five1') { gotoAndStop(14); } else { if (gameDriver.etap == 'five2') { gotoAndStop(16); } else { if (gameDriver.etap == 'five3') { gotoAndStop(17); } else { if (gameDriver.etap == 'six1') { gotoAndStop(18); } else { if (gameDriver.etap == 'six2') { gotoAndStop(19); } else { if (gameDriver.etap == 'six3') { gotoAndStop(20); } else { if (gameDriver.etap == 'six4') { gotoAndStop(22); } else { if (gameDriver.etap == 'six5') { gotoAndStop(23); } else { stop(); } } } } } } } } } } } } } } } } } } } } } movieClip 1720 { frame 1 { stop(); } instance of movieClip 652 { onClipEvent (load) { this.useHandCursor = false; } onClipEvent (release) { a = 0; } } frame 30 { stop(); } frame 31 { } } movieClip 1723 { } movieClip 1726 { } movieClip 1727 { frame 1 { stop(); this.onRollOver = function () { if (_global.consEnabled == true) { this.gotoAndPlay(this._currentframe + 1); delete this.onRollOver; } }; this.onRollOut = function () { if (_global.consEnabled == true) { this.gotoAndStop(1); delete this.onRollOut; } }; this.onRelease = function () { if (_global.consEnabled == true) { _root.stick._visible = true; _root.stick.gotoAndPlay(1); this._visible = false; } }; } frame 21 { stop(); } } frame 31 { stop(); } frame 31 { stop(); _global.lastPhone._y = -5000; } movieClip 1738 { frame 4 { stop(); } } movieClip 1739 { frame 5 { stop(); } instance of movieClip 1680 { } } movieClip 1740 { frame 1 { stop(); } instance of movieClip 1680 { } } button 1741 { on (release) { _parent.play(); } on (rollOver) { gotoAndStop(30); } on (rollOut) { gotoAndPlay(1); } } movieClip 1742 { } movieClip 1743 { frame 1 { stop(); } frame 2 { } frame 13 { stop(); _parent.gotoAndPlay(2); } } movieClip 1750 { frame 1 { stop(); } frame 10 { stop(); } } movieClip 1752 { } movieClip 1773 { frame 51 { gotoAndPlay(50); } } movieClip 1774 { frame 1 { stop(); } } movieClip 1775 { frame 1 { stop(); _global.phone = this; phone.phone2.gotoAndStop(30); } frame 2 { pers.pers.gotoAndStop(1); _global.consEnabled = false; } frame 9 { function NextPhrase() { switch (phrase) { case 0: ShowText(babladmin, 'Это системный администратор. Скажите, у Вас коммутатор в розетку включен?'); break; case 1: ShowText(bablpers, 'А что это такое?? Не поняла!!!'); break; case 2: ShowText(babladmin, 'На прошлой неделе я объяснял Вам, что Ваш коммутатор должен быть всегда включен в розетку. Помните?'); break; case 3: ShowText(bablpers, 'На прошлой неделе?? Эта та черная коробочка?! Я сейчас посмотрю...'); break; case 4: ShowText(bablpers, '...да, она не подключена. Это девчата чай кипятили и оставили. Мне её включить?'); break; case 5: ShowText(babladmin, 'Не выключайте её больше!'); break; default: pers._parent.gotoAndPlay(pers._parent._currentframe + 1); } ++phrase; } function ShowBabl(obj) { obj.pov.gotoAndPlay(2); } function InitDialog() { this.swapDepths(_root.getNextHighestDepth()); big.useHandCursor = true; big.onRelease = function () { if (current_object.txt.text.length < current_text.length) { clearInterval(intervalId); current_object.txt.text = current_text; } else { NextPhrase(); } }; big.onKeyDown = function () { if (Key.isDown(32)) { big.onRelease(); } }; Key.addListener(big); pers.pers.looper = 0; pers.pers.play(); setTimeout(NextPhrase, 500); } var intervalId = null; var phrase = 0; var current_object; var current_text = ''; var k = 0; InitDialog(); setTimeout(ShowBabl, 300, babladmin); setTimeout(ShowBabl, 300, bablpers); stop(); var LetterByLetter = function () { if (current_object.txt.text.length < current_text.length) { current_object.txt.text += current_text.charAt(k); ++k; } if (current_object.txt.text.length == current_text.length) { clearInterval(intervalId); } }; var ShowText = function (obj, txtstr) { if (intervalId != null) { clearInterval(intervalId); } current_object = obj; current_text = txtstr; current_object.txt.text = ''; k = 0; intervalId = setInterval(this, 'LetterByLetter', 1); }; } frame 10 { this.mus.stop(); this.mus.attachSound('snd_hpcalm'); this.mus.start(0, 1); pers.pers.gotoAndStop(1); } frame 18 { stop(); _global.tempTel = this; _global.lastPhone = this; gameDriver.etap = 'one3'; var mc = this._parent.createEmptyMovieClip('timer', this._parent.getNextHighestDepth()); mc.it = 0; _global.consEnabled = true; mc.onEnterFrame = function () { ++this.it; if (this.it > 200) { _global.tempTel._y = -5000; _root.gotoAndStop(32); delete this.onEnterFrame; this.removeMovieClip(); } }; } } frame 32 { stop(); _global.lastPhone._y = -5000; } movieClip 1806 { frame 75 { gotoAndPlay(51); } } movieClip 1807 { frame 1 { stop(); } } movieClip 1897 { frame 216 { gotoAndPlay(193); } } movieClip 1898 { frame 1 { stop(); } } movieClip 1899 { frame 1 { stop(); } frame 2 { pers.pers.gotoAndStop(1); pers.pers.looper = 1; bablpers.txt.text = ''; phone.gotoAndPlay(2); _global.consEnabled = false; } frame 10 { function NextPhrase() { switch (phrase) { case 0: ShowText(bablpers, 'Уважаемый коллега! Звоню, чтобы сообщить Вам, что из моего принтера, на внушающей опасения скорости, появляется большое количество счетов и товарных накладных.'); break; case 1: ShowText(bablpers, 'Я несколько утомлен этим непрекращающимся явлением, посему не могли бы Вы помочь мне с ним справиться? Заранее большое спасибо.'); break; default: pers._parent.gotoAndPlay(pers._parent._currentframe + 1); } ++phrase; } function ShowBabl(obj) { obj.pov.gotoAndPlay(2); } function InitDialog() { this.swapDepths(_root.getNextHighestDepth()); big.useHandCursor = true; big.onRelease = function () { if (current_object.txt.text.length < current_text.length) { clearInterval(intervalId); current_object.txt.text = current_text; } else { NextPhrase(); } }; big.onKeyDown = function () { if (Key.isDown(32)) { big.onRelease(); } }; Key.addListener(big); pers.pers.looper = 0; pers.pers.play(); setTimeout(NextPhrase, 500); } var intervalId = null; var phrase = 0; var current_object; var current_text = ''; var k = 0; InitDialog(); setTimeout(ShowBabl, 300, bablpers); gameDriver.etap = 'two1'; stop(); var LetterByLetter = function () { if (current_object.txt.text.length < current_text.length) { current_object.txt.text += current_text.charAt(k); ++k; } if (current_object.txt.text.length == current_text.length) { clearInterval(intervalId); } }; var ShowText = function (obj, txtstr) { if (intervalId != null) { clearInterval(intervalId); } current_object = obj; current_text = txtstr; current_object.txt.text = ''; k = 0; intervalId = setInterval(this, 'LetterByLetter', 1); }; } frame 11 { this.mus.stop(); this.mus.attachSound('snd_hpcalm'); this.mus.start(0, 1); stop(); pers.pers.looper = 0; pers.pers.gotoAndStop(1); phone.gotoAndPlay(22); phone._parent.gotoAndPlay(phone._parent._currentframe + 1); delete phone.onRelease; phone.useHandCursor = false; pers.pers.stop(); _global.newTask = true; _root.blok.gotoAndStop(1); _root.blok.ko.play(); _global.schem_num = 3; _root.schtxt.text = 'test=' + _global.schem_num; } frame 20 { stop(); _global.lastPhone = this; _global.bosssay1 = true; _global.consEnabled = true; gameDriver.etap = 'two1'; Console.level = 2; } } frame 33 { stop(); _global.lastPhone._y = -5000; } movieClip 1924 { frame 63 { gotoAndPlay(43); } } movieClip 1925 { frame 1 { stop(); } } movieClip 1926 { frame 1 { stop(); } frame 2 { pers.gotoAndStop('buhgalter'); pers.pers.looper = 1; bablpers.txt.text = ''; phone.gotoAndPlay(2); _global.consEnabled = false; } frame 10 { function NextPhrase() { switch (phrase) { case 0: ShowText(bablpers, 'Дорогой коллега, еще раз приветствую Вас. От всей души благодарю за оперативное решение проблемы с принтером.'); break; case 1: ShowText(bablpers, 'Но должен с прискорбием сообщить, что не имею иного выхода, как вновь побеспокоить вас. Дело в том, что на моем компьютере отсутствует интернет–соединение.'); break; case 2: ShowText(bablpers, 'Я проверил исправность работы самой машины, а также соединения разъемов. И убедился, что все в порядке. Вероятно, причина лежит за пределами моей скромной обители. Не могли бы вы проверить?'); break; default: pers._parent.gotoAndPlay(pers._parent._currentframe + 1); } ++phrase; } function ShowBabl(obj) { obj.pov.gotoAndPlay(2); } function InitDialog() { this.swapDepths(_root.getNextHighestDepth()); big.useHandCursor = true; big.onRelease = function () { if (current_object.txt.text.length < current_text.length) { clearInterval(intervalId); current_object.txt.text = current_text; } else { NextPhrase(); } }; big.onKeyDown = function () { if (Key.isDown(32)) { big.onRelease(); } }; Key.addListener(big); pers.pers.looper = 0; pers.pers.play(); setTimeout(NextPhrase, 500); } var intervalId = null; var phrase = 0; var current_object; var current_text = ''; var k = 0; InitDialog(); setTimeout(ShowBabl, 300, bablpers); stop(); var LetterByLetter = function () { if (current_object.txt.text.length < current_text.length) { current_object.txt.text += current_text.charAt(k); ++k; } if (current_object.txt.text.length == current_text.length) { clearInterval(intervalId); } }; var ShowText = function (obj, txtstr) { if (intervalId != null) { clearInterval(intervalId); } current_object = obj; current_text = txtstr; current_object.txt.text = ''; k = 0; intervalId = setInterval(this, 'LetterByLetter', 1); }; } frame 11 { this.mus.stop(); this.mus.attachSound('snd_hpcalm'); this.mus.start(0, 1); stop(); pers.pers.looper = 0; pers.pers.gotoAndStop(1); phone.gotoAndPlay(22); phone._parent.gotoAndPlay(phone._parent._currentframe + 1); delete phone.onRelease; phone.useHandCursor = false; pers.pers.stop(); _global.newTask = true; _root.blok.gotoAndStop(1); _root.blok.gotoAndStop(1); _root.blok.ko.play(); } frame 20 { stop(); _global.lastPhone = this; _global.consEnabled = true; gameDriver.etap = 'three1'; } } frame 34 { stop(); _global.lastPhone._y = -5000; } movieClip 1927 { frame 1 { stop(); } } movieClip 1928 { frame 1 { pers.pers.gotoAndStop(1); _global.consEnabled = false; phone.gotoAndPlay(2); } frame 2 { pers.pers.gotoAndStop(1); _global.consEnabled = false; } frame 9 { function NextPhrase() { switch (phrase) { case 0: ShowText(bablpers, 'Что случилось, коллега?'); break; case 1: ShowText(bablpers, 'Коллектив обеспокоен неожиданно появившимся дымом и странным запахом, напоминающим аромат расплавленного металла.'); break; case 2: ShowText(babladmin, 'Понятно. У нас вышли из строя два сервера. Большая удача, что не произошел пожар.'); break; case 3: ShowText(bablpers, 'В чем же причина этого трагического происшествия, коллега?'); break; case 4: ShowText(babladmin, 'Сейчас пока сказать ничего не могу. В серверной нечем дышать, и ни температурных датчиков, ни каких-либо средств удаленного мониторинга у нас нет. Похоже, вирусы злобные.'); break; case 5: ShowText(bablpers, 'Как же нам теперь быть, коллега? Полагаю, мы не можем сейчас продолжать работу?'); break; case 6: ShowText(babladmin, 'Какая уж тут работа. Всё, приехали! Когда-то это должно было случиться. 21 век на дворе, а мы всё на допотопных серваках сидим.'); break; case 7: ShowText(babladmin, 'Похоже, надо кардинально ситуацию менять. Переходить, например, на хьюлетовскую блейд-систему, на интелях..'); break; case 8: ShowText(babladmin, 'Во-первых, будет полный удаленный контроль через аппаратные управляющие модули. Можно будет на 100% понимать, что с серверами происходит. И, главное, не вставая с места!'); break; case 9: ShowText(babladmin, 'Во-вторых, охлаждение у них будет динамическое, и если вдруг температура внутри поднимется слишком сильно, они отключатся, закрыв все приложения.'); break; case 10: ShowText(bablpers, 'Не возражаю, коллега. Покупайте то, что считаете нужным.'); break; default: pers._parent.gotoAndPlay(pers._parent._currentframe + 1); } ++phrase; } function ShowBabl(obj) { obj.pov.gotoAndPlay(2); } function InitDialog() { this.swapDepths(_root.getNextHighestDepth()); big.useHandCursor = true; big.onRelease = function () { if (current_object.txt.text.length < current_text.length) { clearInterval(intervalId); current_object.txt.text = current_text; } else { NextPhrase(); } }; big.onKeyDown = function () { if (Key.isDown(32)) { big.onRelease(); } }; Key.addListener(big); pers.pers.looper = 0; pers.pers.play(); setTimeout(NextPhrase, 500); } var intervalId = null; var phrase = 0; var current_object; var current_text = ''; var k = 0; InitDialog(); setTimeout(ShowBabl, 300, babladmin); setTimeout(ShowBabl, 300, bablpers); stop(); var LetterByLetter = function () { if (current_object.txt.text.length < current_text.length) { current_object.txt.text += current_text.charAt(k); ++k; } if (current_object.txt.text.length == current_text.length) { clearInterval(intervalId); } }; var ShowText = function (obj, txtstr) { if (intervalId != null) { clearInterval(intervalId); } current_object = obj; current_text = txtstr; current_object.txt.text = ''; k = 0; intervalId = setInterval(this, 'LetterByLetter', 1); }; } frame 10 { this.mus.stop(); this.mus.attachSound('snd_hpcalm'); this.mus.start(0, 1); pers.pers.gotoAndStop(1); } frame 18 { stop(); this._visible = false; _root.shet = 1; _root.schema_perehod._visible = true; _root.schema_perehod.gotoAndPlay(2); _global.consEnabled = true; _global.lastPhone = this; } } frame 35 { stop(); _global.consEnabled = true; _global.lastPhone._y = -5000; } frame 35 { schema_perehod._visible = false; schema10.gotoAndStop(15); _global.consEnabled = true; so._visible = true; } movieClip 1999 { frame 318 { gotoAndPlay(301); } } movieClip 2000 { frame 1 { stop(); } } movieClip 2028 { frame 120 { gotoAndPlay(103); } } movieClip 2029 { frame 1 { stop(); } } movieClip 2030 { frame 1 { stop(); pers.pers.gotoAndStop(1); _global.consEnabled = true; } frame 2 { _global.consEnabled = false; gameDriver.nowLevel = 4; gameDriver.etap = 'four1'; } frame 9 { function NextPhrase() { switch (phrase) { case 0: ShowText(bablpers, 'Привет, как дела? Слушай, представляешь, я на корпоративную почту не могу зайти.'); break; case 1: ShowText(bablpers, 'Забыла пароль, представляешь? Такая дура! Помоги, пожалуйста!'); break; case 2: ShowText(babladmin, 'Гы. Адрес почты какой?'); break; case 3: ShowText(bablpers, 'Не понимаю, кто? Кто какой? Ты о чем? Объясни, пожалуйста, подробнее. Дело в том, что я такая дура..'); break; case 4: ShowText(babladmin, 'Гы-гы. Когда в почту заходишь, там две вещи нужно вписать.'); break; case 5: ShowText(babladmin, 'Вторая вещь – пароль, а до него – еще какое-то слово, перед знаком собачки стоит, какое у тебя?'); break; case 6: ShowText(bablpers, 'Аа, я поняла! у меня – kotenok_mur!'); break; case 7: ShowText(babladmin, 'О’кей, жди, перезвоню.'); break; default: pers._parent.gotoAndPlay(pers._parent._currentframe + 1); } ++phrase; } function ShowBabl(obj) { obj.pov.gotoAndPlay(2); } function InitDialog() { this.swapDepths(_root.getNextHighestDepth()); big.useHandCursor = true; big.onRelease = function () { if (current_object.txt.text.length < current_text.length) { clearInterval(intervalId); current_object.txt.text = current_text; } else { NextPhrase(); } }; big.onKeyDown = function () { if (Key.isDown(32)) { big.onRelease(); } }; Key.addListener(big); pers.pers.looper = 0; pers.pers.play(); setTimeout(NextPhrase, 500); } var intervalId = null; var phrase = 0; var current_object; var current_text = ''; var k = 0; InitDialog(); setTimeout(ShowBabl, 300, babladmin); setTimeout(ShowBabl, 300, bablpers); stop(); var LetterByLetter = function () { if (current_object.txt.text.length < current_text.length) { current_object.txt.text += current_text.charAt(k); ++k; } if (current_object.txt.text.length == current_text.length) { clearInterval(intervalId); } }; var ShowText = function (obj, txtstr) { if (intervalId != null) { clearInterval(intervalId); } current_object = obj; current_text = txtstr; current_object.txt.text = ''; k = 0; intervalId = setInterval(this, 'LetterByLetter', 1); }; } frame 10 { this.mus.stop(); this.mus.attachSound('snd_hpcalm'); this.mus.start(0, 1); pers.pers.looper = 0; pers.pers.gotoAndStop(1); delete phone.onRelease; phone.useHandCursor = false; pers.pers.stop(); _global.newTask = true; _root.blok.gotoAndStop(1); _root.blok.ko.play(); } frame 18 { stop(); _global.nowPhone = this; _global.consEnabled = true; gameDriver.etap = 'four1'; _global.lastPhone = this; } } frame 36 { stop(); _global.lastPhone._y = -5000; } movieClip 2100 { frame 311 { gotoAndPlay(290); } } movieClip 2101 { frame 1 { stop(); } } movieClip 2120 { frame 82 { gotoAndPlay(65); } } movieClip 2121 { frame 1 { stop(); } } movieClip 2122 { frame 1 { stop(); pers.pers.gotoAndStop(1); } frame 2 { _global.consEnabled = false; } frame 9 { function NextPhrase() { switch (phrase) { case 0: ShowText(bablpers, 'Мосглавсветстройрыбэнерго, Кристина!'); break; case 1: ShowText(babladmin, 'Это внутренний телефон, можно просто говорить "Алё".'); break; case 2: ShowText(bablpers, 'Чё?'); break; case 3: ShowText(babladmin, 'Ладно, проехали. Пароль у тебя такой же, как и логин: kotenok_mur'); break; case 4: ShowText(bablpers, 'Ооо, ничего себе! Какое совпадение!! Ничего себе! Такая дура! Ничего себе!'); break; default: pers._parent.gotoAndPlay(pers._parent._currentframe + 1); } ++phrase; } function ShowBabl(obj) { obj.pov.gotoAndPlay(2); } function InitDialog() { this.swapDepths(_root.getNextHighestDepth()); big.useHandCursor = true; big.onRelease = function () { if (current_object.txt.text.length < current_text.length) { clearInterval(intervalId); current_object.txt.text = current_text; } else { NextPhrase(); } }; big.onKeyDown = function () { if (Key.isDown(32)) { big.onRelease(); } }; Key.addListener(big); pers.pers.looper = 0; pers.pers.play(); setTimeout(NextPhrase, 500); } var intervalId = null; var phrase = 0; var current_object; var current_text = ''; var k = 0; InitDialog(); setTimeout(ShowBabl, 300, babladmin); setTimeout(ShowBabl, 300, bablpers); stop(); var LetterByLetter = function () { if (current_object.txt.text.length < current_text.length) { current_object.txt.text += current_text.charAt(k); ++k; } if (current_object.txt.text.length == current_text.length) { clearInterval(intervalId); } }; var ShowText = function (obj, txtstr) { if (intervalId != null) { clearInterval(intervalId); } current_object = obj; current_text = txtstr; current_object.txt.text = ''; k = 0; intervalId = setInterval(this, 'LetterByLetter', 1); }; } frame 10 { this.mus.stop(); this.mus.attachSound('snd_hpcalm'); this.mus.start(0, 1); pers.pers.looper = 0; pers.pers.gotoAndStop(1); delete phone.onRelease; phone.useHandCursor = false; pers.pers.stop(); } frame 18 { stop(); gameDriver.etap = 'four3'; _global.lastPhone = this; var mc = this._parent.createEmptyMovieClip('timer', this._parent.getNextHighestDepth()); mc.it = 0; _global.consEnabled = true; mc.tlf = this; mc.onEnterFrame = function () { ++this.it; if (this.it > 200) { this.tlf._visible = false; this.tlf._y = -5000; _root.gotoAndStop(37); delete this.onEnterFrame; this.removeMovieClip(); } }; } } frame 37 { stop(); _global.lastPhone._y = -5000; } movieClip 2186 { frame 175 { gotoAndPlay(160); } } movieClip 2187 { frame 1 { stop(); } } movieClip 2251 { frame 175 { gotoAndPlay(160); } } movieClip 2252 { frame 1 { stop(); } } movieClip 2253 { } movieClip 2254 { frame 1 { stop(); } frame 2 { pers.gotoAndStop('buhgalter'); pers.pers.gotoAndStop(1); pers.pers.looper = 1; bablpers.txt.text = ''; phone.gotoAndPlay(2); _global.consEnabled = false; } frame 10 { function NextPhrase() { switch (phrase) { case 0: ShowText(bablpers, 'Привет! Слушай, у меня тут проблема, не могу на локальный веб-сервер зайти.'); break; case 1: ShowText(bablpers, 'Есть предположение, в чем причина? Посмотри, пожалуйста.'); break; default: pers._parent.gotoAndPlay(pers._parent._currentframe + 1); } ++phrase; } function ShowBabl(obj) { obj.pov.gotoAndPlay(2); } function InitDialog() { this.swapDepths(_root.getNextHighestDepth()); big.useHandCursor = true; big.onRelease = function () { if (current_object.txt.text.length < current_text.length) { clearInterval(intervalId); current_object.txt.text = current_text; } else { NextPhrase(); } }; big.onKeyDown = function () { if (Key.isDown(32)) { big.onRelease(); } }; Key.addListener(big); pers.pers.looper = 0; pers.pers.play(); setTimeout(NextPhrase, 500); } var intervalId = null; var phrase = 0; var current_object; var current_text = ''; var k = 0; InitDialog(); setTimeout(ShowBabl, 300, bablpers); stop(); var LetterByLetter = function () { if (current_object.txt.text.length < current_text.length) { current_object.txt.text += current_text.charAt(k); ++k; } if (current_object.txt.text.length == current_text.length) { clearInterval(intervalId); } }; var ShowText = function (obj, txtstr) { if (intervalId != null) { clearInterval(intervalId); } current_object = obj; current_text = txtstr; current_object.txt.text = ''; k = 0; intervalId = setInterval(this, 'LetterByLetter', 1); }; } frame 11 { this.mus.stop(); this.mus.attachSound('snd_hpcalm'); this.mus.start(0, 1); stop(); pers.pers.looper = 0; pers.pers.gotoAndStop(1); phone.gotoAndPlay(22); phone._parent.gotoAndPlay(phone._parent._currentframe + 1); delete phone.onRelease; phone.useHandCursor = false; pers.pers.stop(); _global.newTask = true; _root.blok.gotoAndStop(1); _root.blok.ko.play(); } frame 20 { stop(); konsol.gotoAndStop(1); phone.gotoAndStop(2); _global.lastPhone = this; _global.consEnabled = true; gameDriver.nowLevel = 5; gameDriver.etap = 'five1'; } } frame 38 { stop(); _global.lastPhone._y = -5000; } movieClip 2290 { frame 105 { gotoAndPlay(83); } } movieClip 2291 { frame 1 { stop(); } } movieClip 2292 { frame 1 { stop(); pers.pers.gotoAndStop(1); } frame 2 { pers.pers.gotoAndStop(1); _global.consEnabled = false; } frame 9 { function NextPhrase() { switch (phrase) { case 0: ShowText(babladmin, 'Привет. Посмотри, должно все работать.'); break; case 1: ShowText(bablpers, 'Да, всё – Ок!'); break; case 2: ShowText(babladmin, 'С тебя пиво!'); break; default: pers._parent.gotoAndPlay(pers._parent._currentframe + 1); } ++phrase; } function ShowBabl(obj) { obj.pov.gotoAndPlay(2); } function InitDialog() { this.swapDepths(_root.getNextHighestDepth()); big.useHandCursor = true; big.onRelease = function () { if (current_object.txt.text.length < current_text.length) { clearInterval(intervalId); current_object.txt.text = current_text; } else { NextPhrase(); } }; big.onKeyDown = function () { if (Key.isDown(32)) { big.onRelease(); } }; Key.addListener(big); pers.pers.looper = 0; pers.pers.play(); setTimeout(NextPhrase, 500); } var intervalId = null; var phrase = 0; var current_object; var current_text = ''; var k = 0; InitDialog(); setTimeout(ShowBabl, 300, babladmin); setTimeout(ShowBabl, 300, bablpers); stop(); var LetterByLetter = function () { if (current_object.txt.text.length < current_text.length) { current_object.txt.text += current_text.charAt(k); ++k; } if (current_object.txt.text.length == current_text.length) { clearInterval(intervalId); } }; var ShowText = function (obj, txtstr) { if (intervalId != null) { clearInterval(intervalId); } current_object = obj; current_text = txtstr; current_object.txt.text = ''; k = 0; intervalId = setInterval(this, 'LetterByLetter', 1); }; } frame 10 { this.mus.stop(); this.mus.attachSound('snd_hpcalm'); this.mus.start(0, 1); pers.pers.gotoAndStop(1); } frame 18 { stop(); _global.consEnabled = true; gameDriver.etap = 'five3'; _global.lastPhone = this; var mc = this._parent.createEmptyMovieClip('timer', this._parent.getNextHighestDepth()); mc.it = 0; _global.consEnabled = true; mc.tlf = this; mc.onEnterFrame = function () { ++this.it; if (this.it > 200) { this.tlf._visible = false; this.tlf._y = -5000; _root.gotoAndStop(39); delete this.onEnterFrame; this.removeMovieClip(); } }; } } frame 39 { stop(); _global.lastPhone._y = -5000; } movieClip 2321 { frame 66 { gotoAndPlay(55); } } movieClip 2322 { frame 1 { stop(); } } movieClip 2323 { frame 1 { stop(); pers.pers.gotoAndStop(1); } frame 2 { pers.pers.gotoAndStop(1); _global.consEnabled = false; } frame 9 { function NextPhrase() { switch (phrase) { case 0: ShowText(bablpers, 'Здорово, чувак! Как сам?'); break; case 1: ShowText(babladmin, 'Да норм. Ты как? Чё-то случилось?'); break; case 2: ShowText(bablpers, 'Да, слушай, не могу чё-то файл на сервак залить. 192.168.0.21. Не знаешь, чё такое?'); break; case 3: ShowText(babladmin, 'Блин, у тебя права, наверное, не выставлены.'); break; case 4: ShowText(bablpers, 'Далан? Нормально ж всё было?'); break; case 5: ShowText(babladmin, 'Да вчера тут апокалипсис с серваками случился. Пришлось все перенастраивать. Видимо, забыл выставить.'); break; case 6: ShowText(babladmin, 'Прикинь, я блейды HP-шные купил, играюсь весь день, оторваться не могу.'); break; case 7: ShowText(babladmin, 'Настолько удобно всё! На картиночки мышкой нажимаешь – он тебе всё рассказывает, сколько памяти, сколько дисков, какая температура внутри. Чума.'); break; case 8: ShowText(babladmin, 'А, извини.. Ща гляну. Повиси на трубке.'); break; default: pers._parent.gotoAndPlay(pers._parent._currentframe + 1); } ++phrase; } function ShowBabl(obj) { obj.pov.gotoAndPlay(2); } function InitDialog() { this.swapDepths(_root.getNextHighestDepth()); big.useHandCursor = true; big.onRelease = function () { if (current_object.txt.text.length < current_text.length) { clearInterval(intervalId); current_object.txt.text = current_text; } else { NextPhrase(); } }; big.onKeyDown = function () { if (Key.isDown(32)) { big.onRelease(); } }; Key.addListener(big); pers.pers.looper = 0; pers.pers.play(); setTimeout(NextPhrase, 500); } var intervalId = null; var phrase = 0; var current_object; var current_text = ''; var k = 0; InitDialog(); setTimeout(ShowBabl, 300, babladmin); setTimeout(ShowBabl, 300, bablpers); stop(); var LetterByLetter = function () { if (current_object.txt.text.length < current_text.length) { current_object.txt.text += current_text.charAt(k); ++k; } if (current_object.txt.text.length == current_text.length) { clearInterval(intervalId); } }; var ShowText = function (obj, txtstr) { if (intervalId != null) { clearInterval(intervalId); } current_object = obj; current_text = txtstr; current_object.txt.text = ''; k = 0; intervalId = setInterval(this, 'LetterByLetter', 1); }; } frame 10 { pers.pers.gotoAndStop(7); pers.onRelease = undefined; } frame 18 { stop(); _global.consEnabled = true; _global.gteln = this; gameDriver.nowLevel = 6; gameDriver.etap = 'six1'; _global.newTask = true; _root.blok.gotoAndStop(1); _root.blok.ko.gotoAndPlay(1); _global.lastPhone = this; } } frame 40 { stop(); _global.lastPhone._y = -5000; } movieClip 2324 { frame 1 { stop(); } instance of movieClip 1397 { } } movieClip 2325 { frame 1 { stop(); } } movieClip 2347 { frame 57 { gotoAndPlay(56); } } movieClip 2348 { frame 1 { stop(); } } movieClip 2349 { frame 1 { function NextPhrase() { switch (phrase) { case 0: ShowText(babladmin, 'Ну точняк, так и есть. Всё, щас норм, установил, лей.'); break; case 1: ShowText(bablpers, 'Оо, круто, спасибо, чувак! Кстати, давай мож попозже в контру по сетке рубанем? Я чё-то сто лет не гамил.'); break; case 2: ShowText(babladmin, 'Блиин, офигенная тема. Но тока у меня сервака свободного нет. Блин. Лан, ща попробую боссу звякнуть. Жди, перезвоню.'); break; default: pers._parent.gotoAndPlay(pers._parent._currentframe + 1); } ++phrase; } function ShowBabl(obj) { obj.pov.gotoAndPlay(2); } function InitDialog() { this.swapDepths(_root.getNextHighestDepth()); big.useHandCursor = true; big.onRelease = function () { if (current_object.txt.text.length < current_text.length) { clearInterval(intervalId); current_object.txt.text = current_text; } else { NextPhrase(); } }; big.onKeyDown = function () { if (Key.isDown(32)) { big.onRelease(); } }; Key.addListener(big); pers.pers.looper = 0; pers.pers.play(); setTimeout(NextPhrase, 500); } var intervalId = null; var phrase = 0; var current_object; var current_text = ''; var k = 0; InitDialog(); setTimeout(ShowBabl, 300, babladmin); setTimeout(ShowBabl, 300, bablpers); stop(); var LetterByLetter = function () { if (current_object.txt.text.length < current_text.length) { current_object.txt.text += current_text.charAt(k); ++k; } if (current_object.txt.text.length == current_text.length) { clearInterval(intervalId); } }; var ShowText = function (obj, txtstr) { if (intervalId != null) { clearInterval(intervalId); } current_object = obj; current_text = txtstr; current_object.txt.text = ''; k = 0; intervalId = setInterval(this, 'LetterByLetter', 1); }; } frame 2 { this.mus.stop(); this.mus.attachSound('snd_hpcalm'); this.mus.start(0, 1); pers.pers.gotoAndStop(1); } frame 10 { stop(); _global.consEnabled = true; this._visible = false; _global.lastPhone = this; _root.MainConsole.timeoutClose(); gameDriver.etap = 'six3'; _root.blok.gotoAndStop(1); _root.blok.ko.gotoAndPlay(1); _root.gotoAndStop(41); } } frame 41 { stop(); _global.lastPhone._y = -5000; } movieClip 2350 { frame 1 { stop(); } } movieClip 2351 { frame 1 { stop(); } frame 2 { pers.pers.gotoAndStop(1); _global.consEnabled = false; } frame 9 { function NextPhrase() { switch (phrase) { case 0: ShowText(bablpers, 'Слушаю Вас?'); break; case 1: ShowText(babladmin, 'Здравствуйте, у нас проблема.'); break; case 2: ShowText(bablpers, 'Что за проблема, коллега?'); break; case 3: ShowText(babladmin, 'Мы новое программное обеспечение на той неделе в бухгалтерию установили, у них трафик вырос.'); break; case 4: ShowText(babladmin, 'Сейчас я вижу, что сервер не тянет. Нужен для бухгалтерии отдельный.'); break; case 5: ShowText(bablpers, 'То есть, Вы предлагаете купить еще один новый сервер, после того, как мы вчера купили два?'); break; case 6: ShowText(babladmin, 'Ага, отличные серваки, а самое главное, инфраструктуру-то мы уже купили, питание, охлаждение и все соединения уже на месте.'); break; case 7: ShowText(babladmin, 'Достаточно просто блейд в полку установить, и дело в шляпе..'); break; case 8: ShowText(bablpers, 'Коллега, Вы профессионал, Вам решать. Конечно, покупайте. Покупайте самый лучший.'); break; case 9: ShowText(babladmin, 'Тогда берем блейды, обойдется дешевле, и по производительности не уступят.'); break; case 10: ShowText(babladmin, 'Нарастим систему, и у меня хоть время освободится. Я смогу, наконец заняться телефонной станцией.'); break; case 11: ShowText(bablpers, 'Прекрасно, коллега! Я очень рад оптимизации всегда. До свидания.'); break; default: pers._parent.gotoAndPlay(pers._parent._currentframe + 1); } ++phrase; } function ShowBabl(obj) { obj.pov.gotoAndPlay(2); } function InitDialog() { this.swapDepths(_root.getNextHighestDepth()); big.useHandCursor = true; big.onRelease = function () { if (current_object.txt.text.length < current_text.length) { clearInterval(intervalId); current_object.txt.text = current_text; } else { NextPhrase(); } }; big.onKeyDown = function () { if (Key.isDown(32)) { big.onRelease(); } }; Key.addListener(big); pers.pers.looper = 0; pers.pers.play(); setTimeout(NextPhrase, 500); } var intervalId = null; var phrase = 0; var current_object; var current_text = ''; var k = 0; InitDialog(); setTimeout(ShowBabl, 300, babladmin); setTimeout(ShowBabl, 300, bablpers); stop(); var LetterByLetter = function () { if (current_object.txt.text.length < current_text.length) { current_object.txt.text += current_text.charAt(k); ++k; } if (current_object.txt.text.length == current_text.length) { clearInterval(intervalId); } }; var ShowText = function (obj, txtstr) { if (intervalId != null) { clearInterval(intervalId); } current_object = obj; current_text = txtstr; current_object.txt.text = ''; k = 0; intervalId = setInterval(this, 'LetterByLetter', 1); }; } frame 10 { this.mus.stop(); this.mus.attachSound('snd_hpcalm'); this.mus.start(0, 1); pers.pers.gotoAndStop(1); } frame 18 { stop(); gameDriver.etap = 'six4'; _global.consEnabled = true; this._visible = false; _root.schema_perehod._visible = true; _root.schema_perehod.gotoAndPlay(2); this.unloadMovie(); } } frame 42 { stop(); _global.lastPhone._y = -5000; } movieClip 2352 { frame 1 { stop(); } } movieClip 2353 { frame 1 { stop(); } frame 2 { pers.pers.gotoAndStop(1); _global.consEnabled = false; } frame 9 { function NextPhrase() { switch (phrase) { case 0: ShowText(babladmin, 'Чувааак!! У нас есть сервак!! +1 новый Зеоновский HP-шный блейд.'); break; case 1: ShowText(babladmin, 'Блин, круто – я прусь! Сервер привезли, я его из коробки достал, установил в полку, и всё!'); break; case 2: ShowText(babladmin, 'Он уже все настройки получил и в Интернет скоммутирован! Короче, могём рубиться!'); break; case 3: ShowText(bablpers, 'Круто!!! Блин, круто!! Давай тада рубиться!'); break; case 4: ShowText(babladmin, 'Тока, блин. Я щас сообразил, на него же винду надо под контру. У меня дистрибутива нет.'); break; case 5: ShowText(bablpers, 'Ну.. У меня есть. Но тока толку, ты ж за ним ко мне не поедешь.'); break; case 6: ShowText(babladmin, 'Есть? Супер!! Не надо ехать, можно операционку с удаленного образа заливать.'); break; case 7: ShowText(babladmin, 'У меня же новый сервак - подключайся к процессору удаленного управления прямо из браузера и монтируй образ болванки прямо к серверу.'); break; case 8: ShowText(babladmin, 'А я ща его перегружу и с тобой вместе за консолью наблюдать буду. Установим и загамаем!'); break; default: pers._parent.gotoAndPlay(pers._parent._currentframe + 1); } ++phrase; } function ShowBabl(obj) { obj.pov.gotoAndPlay(2); } function InitDialog() { this.swapDepths(_root.getNextHighestDepth()); big.useHandCursor = true; big.onRelease = function () { if (current_object.txt.text.length < current_text.length) { clearInterval(intervalId); current_object.txt.text = current_text; } else { NextPhrase(); } }; big.onKeyDown = function () { if (Key.isDown(32)) { big.onRelease(); } }; Key.addListener(big); pers.pers.looper = 0; pers.pers.play(); setTimeout(NextPhrase, 500); } var intervalId = null; var phrase = 0; var current_object; var current_text = ''; var k = 0; InitDialog(); setTimeout(ShowBabl, 300, babladmin); setTimeout(ShowBabl, 300, bablpers); stop(); var LetterByLetter = function () { if (current_object.txt.text.length < current_text.length) { current_object.txt.text += current_text.charAt(k); ++k; } if (current_object.txt.text.length == current_text.length) { clearInterval(intervalId); } }; var ShowText = function (obj, txtstr) { if (intervalId != null) { clearInterval(intervalId); } current_object = obj; current_text = txtstr; current_object.txt.text = ''; k = 0; intervalId = setInterval(this, 'LetterByLetter', 1); }; } frame 10 { this.mus.stop(); this.mus.attachSound('snd_hpcalm'); this.mus.start(0, 1); pers.pers.gotoAndStop(1); } frame 18 { stop(); _global.consEnabled = true; this._visible = false; _root.toDay3(); } } frame 43 { stop(); _global.lastPhone._y = -5000; } movieClip 2354 { frame 1 { stop(); } frame 2 { pers.pers.gotoAndStop(1); _global.consEnabled = false; } frame 9 { function NextPhrase() { switch (phrase) { case 0: ShowText(bablpers, 'Дорогой коллега, доброе утро! Сегодня у Вас будет напряжённый день. Надеюсь, это Вас не слишком расстроит.'); break; case 1: ShowText(bablpers, 'Дело в том, что к нам наконец-то приехал новый отдел – восемь дизайнеров из Туркмении, которых мы все так ждали.'); break; case 2: ShowText(bablpers, 'В интересах общего дела им необходимо приступить к работе как можно скорее. Поэтому, очень прошу Вас обеспечить им доступ к локальной сети, а также сети Интернет.'); break; case 3: ShowText(bablpers, 'Компьютеры, как Вы помните, для них уже приобретены и расставлены по местам – всё благодаря Вашей высококлассной работе.'); break; default: pers._parent.gotoAndPlay(pers._parent._currentframe + 1); } ++phrase; } function ShowBabl(obj) { obj.pov.gotoAndPlay(2); } function InitDialog() { this.swapDepths(_root.getNextHighestDepth()); big.useHandCursor = true; big.onRelease = function () { if (current_object.txt.text.length < current_text.length) { clearInterval(intervalId); current_object.txt.text = current_text; } else { NextPhrase(); } }; big.onKeyDown = function () { if (Key.isDown(32)) { big.onRelease(); } }; Key.addListener(big); pers.pers.looper = 0; pers.pers.play(); setTimeout(NextPhrase, 500); } var intervalId = null; var phrase = 0; var current_object; var current_text = ''; var k = 0; InitDialog(); setTimeout(ShowBabl, 300, bablpers); stop(); var LetterByLetter = function () { if (current_object.txt.text.length < current_text.length) { current_object.txt.text += current_text.charAt(k); ++k; } if (current_object.txt.text.length == current_text.length) { clearInterval(intervalId); } }; var ShowText = function (obj, txtstr) { if (intervalId != null) { clearInterval(intervalId); } current_object = obj; current_text = txtstr; current_object.txt.text = ''; k = 0; intervalId = setInterval(this, 'LetterByLetter', 1); }; } frame 10 { this.mus.stop(); this.mus.attachSound('snd_hpcalm'); this.mus.start(0, 1); pers.pers.gotoAndStop(1); } frame 18 { stop(); _global.consEnabled = false; this._visible = false; gameDriver.nowLevel = 7; gameDriver.etap = 'seven1'; _root.gotoAndStop(50); } } frame 44 { stop(); _global.lastPhone._y = -5000; } movieClip 2355 { frame 1 { stop(); } frame 2 { pers.pers.gotoAndStop(1); _global.consEnabled = false; } frame 9 { function ReturnFunction(obj) { bablobj.broadcastMessage('ready', conversation); clearTimeout(obj.my_timedProcess); } function ShowBabl(obj) { obj.pov.gotoAndPlay(2); } this.mus.stop(); this.mus.attachSound('snd_hpfast'); this.mus.start(0, 1); stop(); k = 0; var bablobj = new Object(); var babl = new Object(); var intervalId; var my_timedProcess; var counter = 0; bablpers.counter = counter; babladmin.counter = counter; var conversation = 0; var LetterByLetter = function (obj, txtstr) { if (obj.txt.text.length == txtstr.length) { } else { var v1 = txtstr; v1 = v1.split(''); if (v1[k] != undefined) { obj.txt.text += v1[k]; ++s; } ++k; ++obj.counter; } }; var ShowText = function (obj, txtstr, interv) { if (intervalId != null) { clearInterval(intervalId); } obj.txt.text = ''; obj.counter = 0; intervalId = setInterval(this, 'LetterByLetter', interv, obj, txtstr); obj.useHandCursor = true; obj.onRelease = function () { if (obj.txt.text.length != txtstr.length) { if (pon == 1) { obj.my_timedProcess = setTimeout(ReturnFunction, 300, obj); pon = 0; } obj.txt.text = ''; var v1 = txtstr; v1 = v1.split(''); i = 0; while (i < v1.length) { if (i == 40 || i == 80 || i == 120) { obj.txt.text += v1[i]; } else { obj.txt.text += v1[i]; } ++i; } clearInterval(intervalId); obj.counter = 0; pon = 1; } else { delete obj.onKeyDown; delete obj.onRelease; obj.useHandCursor = false; clearTimeout(obj.my_timedProcess); ReturnFunction(obj); } }; pers.useHandCursor = true; big.onRelease = function () { if (obj.txt.text.length != txtstr.length) { if (pon == 1) { obj.my_timedProcess = setTimeout(ReturnFunction, 300, obj); pon = 0; } obj.txt.text = ''; var v1 = txtstr; v1 = v1.split(''); i = 0; while (i < v1.length) { if (i == 40 || i == 80 || i == 120) { obj.txt.text += v1[i]; } else { obj.txt.text += v1[i]; } ++i; } clearInterval(intervalId); obj.counter = 0; pon = 1; } else { delete obj.onKeyDown; delete obj.onRelease; obj.useHandCursor = false; clearTimeout(obj.my_timedProcess); ReturnFunction(obj); } }; obj.onKeyDown = function () { if (Key.isDown(32)) { obj.onRelease(); } }; Key.addListener(obj); }; babl.ready = function (conv) { switch (conv) { case 0: pers.pers.looper = 0; pers.pers.play(); pers.my_timedProcess = setTimeout(ReturnFunction, 500, pers); var v2 = setTimeout(ShowBabl, 300, babladmin); var v1 = setTimeout(ShowBabl, 300, bablpers); conversation = 1; break; case 1: str = 'Это системный администратор. Скажите, у Вас коммутатор в розетку подключен?'; ShowText(babladmin, str, 1); conversation = 2; s = 0; pon = 0; k = 0; break; case 2: str = 'А что это такое?? Не поняла!!!'; ShowText(bablpers, str, 1); conversation = 3; s = 0; pon = 0; k = 0; break; case 3: str = 'На прошлой неделе я объяснял вам, что ваш коммутатор должен быть всегда подключен в розетку. Помните?'; ShowText(babladmin, str, 1); conversation = 4; s = 0; pon = 0; k = 0; break; case 4: str = 'На прошлой неделе?? Эта та черная коробочка?! Я сейчас посмотрю...'; ShowText(bablpers, str, 1); s = 0; pon = 0; k = 0; conversation = 5; break; case 5: str = '...да, она не подключена. Это девчата чай кипятили и оставили. Мне её включить?'; ShowText(bablpers, str, 1); conversation = 6; s = 0; pon = 0; k = 0; break; case 6: str = 'Не выключайте её больше!'; ShowText(babladmin, str, 1); conversation = 7; s = 0; pon = 0; k = 0; break; case 7: pers._parent.gotoAndPlay(pers._parent._currentframe + 1); } }; AsBroadcaster.initialize(bablobj); bablobj.addListener(babl); bablobj.broadcastMessage('ready', conversation); this.swapDepths(_root.getNextHighestDepth()); } frame 10 { this.mus.stop(); this.mus.attachSound('snd_hpcalm'); this.mus.start(0, 1); pers.pers.gotoAndStop(1); } frame 18 { stop(); _global.consEnabled = true; } } frame 45 { stop(); _root.txt.text = 'curframe=' + _root._currentframe; _global.lastPhone._y = -5000; } button 2356 { on (release) { _parent.play(); } on (rollOver) { gotoAndStop(30); } on (rollOut) { gotoAndPlay(1); } } button 2357 { on (release) { _parent.play(); } on (rollOver) { gotoAndStop(30); } on (rollOut) { gotoAndPlay(1); } } movieClip 2358 { } movieClip 2359 { frame 1 { stop(); } frame 2 { _parent.gotoAndPlay(2); } frame 13 { stop(); } } movieClip 2361 { } movieClip 2398 { frame 143 { gotoAndPlay(142); } } movieClip 2425 { frame 118 { gotoAndPlay(102); } } movieClip 2426 { } movieClip 2427 { frame 11 { stop(); } } movieClip 2429 { } movieClip 2431 { } movieClip 2432 { frame 1 { stop(); pers.pers.gotoAndStop(1); } frame 2 { pers.pers.looper = 1; bablpers.txt.text = ''; phone.gotoAndPlay(2); _global.consEnabled = false; } frame 10 { this.mus.stop(); this.mus.attachSound('snd_hpfast'); this.mus.start(0, 1); stop(); var bablobj = new Object(); var babl = new Object(); k = 0; var intervalId; var my_timedProcess; var counter = 0; bablpers.counter = counter; babladmin.counter = counter; var conversation = 0; this.onRelease = function () { this._visible = false; _root.nextFrame(); }; } frame 11 { this.mus.stop(); this.mus.attachSound('snd_hpcalm'); this.mus.start(0, 1); stop(); pers.pers.looper = 0; pers.pers.gotoAndStop(1); phone.gotoAndPlay(22); phone._parent.gotoAndPlay(phone._parent._currentframe + 1); delete phone.onRelease; phone.useHandCursor = false; pers.pers.stop(); _root.blok.ko.play(); } frame 20 { stop(); konsol.gotoAndStop(1); phone.gotoAndStop(2); phone.onRelease = function () { if (_root.sqq == 1) { phone._parent.gotoAndPlay(phone._parent._currentframe + 1); phone.gotoAndPlay(2); delete phone.onRelease; phone.useHandCursor = false; } else { phone._parent.gotoAndPlay(2); phone.gotoAndPlay(2); delete phone.onRelease; phone.useHandCursor = false; } }; } frame 21 { pers.pers.gotoAndStop(1); } frame 29 { function ReturnFunction(obj) { bablobj.broadcastMessage('ready', conversation); clearTimeout(obj.my_timedProcess); } function ShowBabl(obj) { obj.pov.gotoAndPlay(2); } this.mus.stop(); this.mus.attachSound('snd_hpfast'); this.mus.start(0, 1); stop(); k = 0; var bablobj = new Object(); var babl = new Object(); var intervalId; var my_timedProcess; var counter = 0; bablpers.counter = counter; babladmin.counter = counter; var conversation = 0; var LetterByLetter = function (obj, txtstr) { if (obj.txt.text.length == txtstr.length) { } else { var v1 = txtstr; v1 = v1.split(''); if (v1[k] != undefined) { obj.txt.text += v1[k]; ++s; } ++k; ++obj.counter; } }; var ShowText = function (obj, txtstr, interv) { if (intervalId != null) { clearInterval(intervalId); } obj.txt.text = ''; obj.counter = 0; intervalId = setInterval(this, 'LetterByLetter', interv, obj, txtstr); obj.useHandCursor = true; big.onRelease = function () { if (obj.txt.text.length != txtstr.length) { if (pon == 1) { obj.my_timedProcess = setTimeout(ReturnFunction, 300, obj); pon = 0; } obj.txt.text = ''; var v1 = txtstr; v1 = v1.split(''); i = 0; while (i < v1.length) { if (i == 40 || i == 80 || i == 120) { obj.txt.text += v1[i]; } else { obj.txt.text += v1[i]; } ++i; } clearInterval(intervalId); obj.counter = 0; pon = 1; } else { delete obj.onKeyDown; delete obj.onRelease; obj.useHandCursor = false; clearTimeout(obj.my_timedProcess); ReturnFunction(obj); } }; obj.onKeyDown = function () { if (Key.isDown(32)) { obj.onRelease(); } }; Key.addListener(obj); }; babl.ready = function (conv) { switch (conv) { case 0: pers.pers.looper = 0; pers.pers.play(); pers.my_timedProcess = setTimeout(ReturnFunction, 2000, pers); var v2 = setTimeout(ShowBabl, 1000, babladmin); var v1 = setTimeout(ShowBabl, 1000, bablpers); conversation = 1; break; case 1: str = 'Это системный администратор. Скажите, у Вас коммутатор в розетку подключен?'; ShowText(babladmin, str, 1); conversation = 2; s = 0; pon = 0; k = 0; break; case 2: str = 'А что это такое?? Не поняла!!!'; ShowText(bablpers, str, 1); conversation = 3; s = 0; pon = 0; k = 0; break; case 3: str = 'На прошлой неделе я объяснял вам, что ваш коммутатор должен быть всегда подключен в розетку. Помните?'; ShowText(babladmin, str, 1); conversation = 4; s = 0; pon = 0; k = 0; break; case 4: str = 'На прошлой неделе?? Эта та черная коробочка?! Я сейчас посмотрю...'; ShowText(bablpers, str, 1); s = 0; pon = 0; k = 0; conversation = 5; break; case 5: str = '...да, она не подключена. Это девчата чай кипятили и оставили. Мне её включить?'; ShowText(bablpers, str, 1); conversation = 6; s = 0; pon = 0; k = 0; break; case 6: str = 'Не выключайте её больше!'; ShowText(babladmin, str, 1); conversation = 7; s = 0; pon = 0; k = 0; break; case 7: pers._parent.gotoAndPlay(pers._parent._currentframe + 1); } }; AsBroadcaster.initialize(bablobj); bablobj.addListener(babl); bablobj.broadcastMessage('ready', conversation); this.swapDepths(_root.getNextHighestDepth()); } frame 30 { this.mus.stop(); this.mus.attachSound('snd_hpcalm'); this.mus.start(0, 1); stop(); pers.pers.gotoAndStop(1); phone.onRelease = function () { phone.gotoAndPlay(2); phone._parent.gotoAndPlay(phone._parent._currentframe + 1); delete phone.onRelease; phone.useHandCursor = false; }; } frame 38 { stop(); } } frame 46 { stop(); _global.lastPhone._y = -5000; } frame 47 { stop(); _global.lastPhone._y = -5000; } movieClip 2434 { } movieClip 2435 { frame 4 { stop(); } } button 2436 { on (release) { _parent.play(); } on (rollOver) { gotoAndStop(30); } on (rollOut) { gotoAndPlay(1); } } button 2437 { on (release) { _parent.play(); } on (rollOver) { gotoAndStop(30); } on (rollOut) { gotoAndPlay(1); } } movieClip 2438 { } movieClip 2439 { instance of movieClip 1397 { } frame 19 { stop(); } } movieClip 2440 { frame 1 { stop(); } frame 2 { _parent.gotoAndPlay(2); } frame 13 { stop(); } } movieClip 2442 { } movieClip 2444 { } movieClip 2480 { } movieClip 2481 { frame 1 { stop(); } } movieClip 2482 { instance of movieClip 1397 { } frame 11 { stop(); } } button 2483 { on (release) { _parent.play(); } on (rollOver) { gotoAndStop(30); } on (rollOut) { gotoAndPlay(1); } } movieClip 2484 { } movieClip 2485 { frame 11 { stop(); } } movieClip 2486 { frame 1 { stop(); } frame 2 { pers.pers.gotoAndStop(1); } frame 9 { function ReturnFunction(obj) { bablobj.broadcastMessage('ready', conversation); clearTimeout(obj.my_timedProcess); } function ShowBabl(obj) { obj.pov.gotoAndPlay(2); } this.mus.stop(); this.mus.attachSound('snd_hpfast'); this.mus.start(0, 1); stop(); k = 0; var bablobj = new Object(); var babl = new Object(); var intervalId; var my_timedProcess; var counter = 0; bablpers.counter = counter; babladmin.counter = counter; var conversation = 0; var LetterByLetter = function (obj, txtstr) { if (obj.txt.text.length == txtstr.length) { } else { var v1 = txtstr; v1 = v1.split(''); if (v1[k] != undefined) { obj.txt.text += v1[k]; ++s; } ++k; ++obj.counter; } }; var ShowText = function (obj, txtstr, interv) { if (intervalId != null) { clearInterval(intervalId); } obj.txt.text = ''; obj.counter = 0; intervalId = setInterval(this, 'LetterByLetter', interv, obj, txtstr); obj.useHandCursor = true; big.onRelease = function () { if (obj.txt.text.length != txtstr.length) { if (pon == 1) { obj.my_timedProcess = setTimeout(ReturnFunction, 300, obj); pon = 0; } obj.txt.text = ''; var v1 = txtstr; v1 = v1.split(''); i = 0; while (i < v1.length) { if (i == 40 || i == 80 || i == 120) { obj.txt.text += v1[i]; } else { obj.txt.text += v1[i]; } ++i; } clearInterval(intervalId); obj.counter = 0; pon = 1; } else { delete obj.onKeyDown; delete obj.onRelease; obj.useHandCursor = false; clearTimeout(obj.my_timedProcess); ReturnFunction(obj); } }; obj.onKeyDown = function () { if (Key.isDown(32)) { obj.onRelease(); } }; Key.addListener(obj); }; babl.ready = function (conv) { switch (conv) { case 0: pers.pers.looper = 0; pers.pers.play(); pers.my_timedProcess = setTimeout(ReturnFunction, 500, pers); var v2 = setTimeout(ShowBabl, 300, babladmin); var v1 = setTimeout(ShowBabl, 300, bablpers); conversation = 1; break; case 1: str = 'чувааак!! У нас есть сервак!! +1 новый зеоновский хпшный блейд. Блин, круто – я прусь! сервер привезли, я его из коробки достал, установил в полку и все'; ShowText(babladmin, str, 1); conversation = 2; s = 0; pon = 0; k = 0; break; case 2: str = 'он уже все настройки получил и в Интернет скоммутирован! Короче, могем рубиться!'; ShowText(babladmin, str, 1); conversation = 3; s = 0; pon = 0; k = 0; break; case 3: str = 'круто!!! Блин, круто!! давай тада рубиться!'; ShowText(bablpers, str, 1); conversation = 4; s = 0; pon = 0; k = 0; break; case 4: str = 'тока блин. я щас сообразил, на него же винду надо под контру. У меня дистрибутива нет.'; ShowText(babladmin, str, 1); s = 0; pon = 0; k = 0; conversation = 5; break; case 5: str = 'ну у меня есть, но тока толку, ты ж за ним ко мне не поедешь.'; ShowText(bablpers, str, 1); conversation = 6; s = 0; pon = 0; k = 0; break; case 6: str = 'есть? супер!! не надо ехать, можно операционку с удаленного образа заливать.'; ShowText(babladmin, str, 1); conversation = 7; s = 0; pon = 0; k = 0; break; case 7: str = 'У меня же новый сервак - подключайся к процессору удаленного управления прямо из браузера и монтируй образ болванки прямо к серверу.'; ShowText(babladmin, str, 1); conversation = 8; s = 0; pon = 0; k = 0; break; case 8: str = 'А я ща его перегружу и с тобой вместе за консолью наблюдать буду. Установим и загамаем!'; ShowText(babladmin, str, 1); conversation = 9; s = 0; pon = 0; k = 0; break; case 9: pers._parent.gotoAndPlay(pers._parent._currentframe + 1); } }; AsBroadcaster.initialize(bablobj); bablobj.addListener(babl); bablobj.broadcastMessage('ready', conversation); this.swapDepths(_root.getNextHighestDepth()); } frame 10 { this.mus.stop(); this.mus.attachSound('snd_hpcalm'); this.mus.start(0, 1); pers.pers.gotoAndStop(1); phone.onRelease = function () { phone.gotoAndPlay(2); phone._parent.gotoAndPlay(phone._parent._currentframe + 1); delete phone.onRelease; phone.useHandCursor = false; }; } frame 18 { stop(); this._visible = false; _root.toDay3(); } } frame 48 { stop(); _root.m = 3; } instance of movieClip 1062 { } frame 49 { } frame 49 { stop(); } movieClip 2499 { } movieClip 2508 { instance of movieClip 2499 { onClipEvent (release) { _root.gotoAndStop(52); } } frame 118 { stop(); pers.stop(); pers._visible = false; pers.unloadMovie(); this.onEnterFrame = function () { var i = 1; while (i <= 8) { var tx = eval('t' + i); var b = true; var ii = 1; while (ii <= 8) { var tx2 = eval('t' + ii); if (tx.text == tx2.text and tx != tx2) { b = false; } ++ii; } var evl = eval('comp' + i); if (b == true and (tx.text == '192.168.0.18' or tx.text == '192.168.0.19' or tx.text == '192.168.0.22' or tx.text == '192.168.0.23' or tx.text == '192.168.0.24' or tx.text == '192.168.0.27' or tx.text == '192.168.0.28' or tx.text == '192.168.0.30')) { if (evl._currentframe < 15) { evl.play(); } else { if (evl._currentframe > 15) { evl.gotoAndPlay(2); } else { evl.stop(); } } } else { if (evl._currentframe != 1) { evl.play(); } } ++i; } if (comp1._currentframe == 15 and comp2._currentframe == 15 and comp3._currentframe == 15 and comp4._currentframe == 15 and comp5._currentframe == 15 and comp6._currentframe == 15 and comp7._currentframe == 15 and comp8._currentframe == 15) { _root.gotoAndStop(54); } }; } frame 118 { Selection.setFocus('t1'); } } button 2509 { on (release) { play(); } } movieClip 2510 { } frame 50 { stop(); } movieClip 2512 { frame 1 { stop(); if (_global.finsch == true) { gotoAndStop(14); } if (gameDriver.etap == 'zero') { gotoAndStop(2); } else { if (gameDriver.etap == 'one1') { gotoAndStop(2); } else { if (gameDriver.etap == 'one2') { gotoAndStop(2); } else { if (gameDriver.etap == 'one3') { gotoAndStop(2); } else { if (gameDriver.etap == 'two1') { gotoAndStop(3); } else { if (gameDriver.etap == 'two2') { gotoAndStop(4); } else { if (gameDriver.etap == 'three1') { gotoAndStop(4); } else { if (gameDriver.etap == 'three2' and _root.shet == 1) { _root.shet = 10; gotoAndStop(6); } else { if (gameDriver.etap == 'three2' and _global.avir == true) { _global.avir = false; gotoAndStop(5); } else { if (gameDriver.etap == 'three2') { gotoAndStop(7); } else { if (gameDriver.etap == 'four1') { gotoAndStop(7); } else { if (gameDriver.etap == 'four2') { gotoAndStop(7); } else { if (gameDriver.etap == 'four3') { gotoAndStop(7); } else { if (gameDriver.etap == 'five1') { gotoAndStop(7); } else { if (gameDriver.etap == 'five2') { gotoAndStop(7); } else { if (gameDriver.etap == 'five3') { gotoAndStop(7); } else { if (gameDriver.etap == 'six1') { gotoAndStop(7); } else { if (gameDriver.etap == 'six2') { gotoAndStop(7); } else { if (gameDriver.etap == 'six3') { gotoAndStop(7); } else { if (gameDriver.etap == 'six4' and _global.sixcontrol != true) { _global.sixcontrol = true; gotoAndStop(8); } else { if (gameDriver.etap == 'six4') { gotoAndStop(9); } else { if (gameDriver.etap == 'six5') { gotoAndStop(9); } else { if (gameDriver.etap == 'seven1') { gotoAndStop(10); } else { if (gameDriver.etap == 'final') { gotoAndStop(14); } else { gotoAndStop(15); } } } } } } } } } } } } } } } } } } } } } } } } } frame 2 { this._visible = true; } frame 2 { stop(); } instance of movieClip 652 { onClipEvent (load) { this.useHandCursor = false; } onClipEvent (release) { a = 0; } } instance of movieClip 700 { onClipEvent (release) { _root.schema_perehod.gotoAndPlay(15); this._parent.gotoAndStop(15); } } frame 3 { stop(); prin.gotoAndPlay(1); cl.onRelease = function () { this._parent._visible = false; this._parent.prin.gotoAndStop(1); _root.schema_perehod.gotoAndPlay(45); }; } frame 4 { stop(); } frame 5 { stop(); cl.onRelease = function () { this._parent._visible = false; _root.day2(); _root.schema_perehod.gotoAndPlay(18); }; } frame 6 { stop(); cl.onRelease = function () { this._parent._visible = false; _root.day2Start(); _root.schema_perehod.gotoAndPlay(18); }; } frame 7 { stop(); cl.onRelease = function () { this._parent._visible = false; _root.schema_perehod.gotoAndPlay(18); }; } instance of movieClip 700 { onClipEvent (release) { this._parent._parent.gotoAndPlay(15); this._parent.gotoAndStop(15); } } frame 8 { stop(); cl.onRelease = function () { this._parent._visible = false; _root.schema_perehod._visible = false; _root.day3end(); }; } frame 9 { stop(); } instance of movieClip 700 { onClipEvent (release) { this._parent._parent.gotoAndPlay(15); this._parent.gotoAndStop(15); } } frame 10 { stop(); } frame 11 { stop(); secr.gotoAndPlay('disconnect'); turkmeny.play(); cl.onRelease = function () { this._parent._visible = false; _root.schema_perehod.gotoAndPlay(18); }; } frame 12 { stop(); turkmeny.gotoAndPlay('off'); } frame 13 { stop(); secr.gotoAndPlay('reconnect'); cl.onRelease = function () { this._parent._visible = false; _root.schema_perehod.gotoAndPlay(18); }; } frame 14 { stop(); } frame 15 { stop(); } } movieClip 2513 { frame 1 { _global.schFinn = this; } frame 2 { this.swapDepths(_root.getNextHighestDepth()); } frame 14 { stop(); trace('cent'); } frame 28 { stop(); } } frame 52 { stop(); _root.m = 3; _root.perehods._visible = true; _root.perehods.gotoAndStop(4); } movieClip 2517 { } movieClip 2518 { frame 1 { stop(); } } movieClip 2520 { } movieClip 2521 { frame 1 { stop(); } } movieClip 2523 { } movieClip 2524 { frame 1 { stop(); } } movieClip 2525 { frame 1 { pers.pers.gotoAndStop(1); } frame 9 { function ReturnFunction(obj) { bablobj.broadcastMessage('ready', conversation); clearTimeout(obj.my_timedProcess); } function ShowBabl(obj) { obj.pov.gotoAndPlay(2); } this.mus.stop(); this.mus.attachSound('snd_hpfast'); this.mus.start(0, 1); stop(); k = 0; var bablobj = new Object(); var babl = new Object(); var intervalId; var my_timedProcess; var counter = 0; bablpers.counter = counter; babladmin.counter = counter; var conversation = 0; var LetterByLetter = function (obj, txtstr) { if (obj.txt.text.length == txtstr.length) { } else { var v2 = txtstr; v2 = v2.split(''); if (s == 40) { obj.txt.text += '\n' + v2[k]; s = 1; } else { obj.txt.text += v2[k]; ++s; } ++k; ++obj.counter; } }; var ShowText = function (obj, txtstr, interv) { if (intervalId != null) { clearInterval(intervalId); } obj.txt.text = ''; obj.counter = 0; intervalId = setInterval(this, 'LetterByLetter', interv, obj, txtstr); obj.useHandCursor = true; obj.onRelease = function () { if (obj.txt.text.length != txtstr.length) { if (pon == 1) { obj.my_timedProcess = setTimeout(ReturnFunction, 300, obj); pon = 0; } obj.txt.text = ''; var v1 = txtstr; v1 = v1.split(''); i = 0; while (i < v1.length) { if (i == 40 || i == 80 || i == 120) { obj.txt.text += '\n' + v1[i]; } else { obj.txt.text += v1[i]; } ++i; } clearInterval(intervalId); obj.counter = 0; pon = 1; } else { delete obj.onKeyDown; delete obj.onRelease; obj.useHandCursor = false; clearTimeout(obj.my_timedProcess); ReturnFunction(obj); } }; obj.onKeyDown = function () { if (Key.isDown(32)) { obj.onRelease(); } }; Key.addListener(obj); }; babl.ready = function (conv) { switch (conv) { case 0: pers.pers.looper = 0; pers.pers.play(); pers.my_timedProcess = setTimeout(ReturnFunction, 2000, pers); var v2 = setTimeout(ShowBabl, 1000, babladmin); var v1 = setTimeout(ShowBabl, 1000, bablpers); conversation = 1; break; case 1: str = 'Привет, как дела? слушай, представляешь, я на корпоративную почту не могу зайти.'; ShowText(bablpers, str, 80); conversation = 2; s = 0; pon = 0; k = 0; break; case 2: str = 'Забыла пароль, представляешь? Такая дура! Помоги, пожалуйста!'; ShowText(bablpers, str, 80); conversation = 3; s = 0; pon = 0; k = 0; break; case 3: str = 'Гы. Адрес почты какой?'; ShowText(babladmin, str, 80); conversation = 4; s = 0; pon = 0; k = 0; break; case 4: str = 'Не понимаю, кто? кто какой? ты о чем? объясни, пожалуйста, подробнее. Дело в том, что я такая дура..'; ShowText(bablpers, str, 80); s = 0; pon = 0; k = 0; conversation = 5; break; case 5: str = 'Гы-гы. Когда в почту заходишь, там две вещи нужно вписать.'; ShowText(babladmin, str, 80); conversation = 6; s = 0; pon = 0; k = 0; break; case 6: str = 'Вторая вещь – пароль, а до него – а до него – еще какое-то слово, перед знакомсобачки стоит, какое у тебя?'; ShowText(babladmin, str, 80); conversation = 7; s = 0; pon = 0; k = 0; break; case 7: str = 'Аа, я поняла! у меня – kotenok_mur!'; ShowText(bablpers, str, 80); conversation = 8; s = 0; pon = 0; k = 0; break; case 8: str = 'О’кей, жди, перезвоню.'; ShowText(babladmin, str, 80); conversation = 9; s = 0; pon = 0; k = 0; break; case 9: pers._parent.gotoAndPlay(pers._parent._currentframe + 1); } }; AsBroadcaster.initialize(bablobj); bablobj.addListener(babl); bablobj.broadcastMessage('ready', conversation); this.swapDepths(_root.getNextHighestDepth()); } frame 10 { this.mus.stop(); this.mus.attachSound('snd_hpcalm'); this.mus.start(0, 1); stop(); pers.pers.gotoAndStop(1); phone.onRelease = function () { phone.gotoAndPlay(2); phone._parent.gotoAndPlay(phone._parent._currentframe + 1); delete phone.onRelease; phone.useHandCursor = false; }; } frame 18 { stop(); } frame 19 { pers.pers.gotoAndStop(1); } frame 27 { function ReturnFunction(obj) { bablobj.broadcastMessage('ready', conversation); clearTimeout(obj.my_timedProcess); } function ShowBabl(obj) { obj.pov.gotoAndPlay(2); } this.mus.stop(); this.mus.attachSound('snd_hpfast'); this.mus.start(0, 1); stop(); k = 0; var bablobj = new Object(); var babl = new Object(); var intervalId; var my_timedProcess; var counter = 0; bablpers.counter = counter; babladmin.counter = counter; var conversation = 0; var LetterByLetter = function (obj, txtstr) { if (obj.txt.text.length == txtstr.length) { } else { var v2 = txtstr; v2 = v2.split(''); if (s == 40) { obj.txt.text += '\n' + v2[k]; s = 1; } else { obj.txt.text += v2[k]; ++s; } ++k; ++obj.counter; } }; var ShowText = function (obj, txtstr, interv) { if (intervalId != null) { clearInterval(intervalId); } obj.txt.text = ''; obj.counter = 0; intervalId = setInterval(this, 'LetterByLetter', interv, obj, txtstr); obj.useHandCursor = true; obj.onRelease = function () { if (obj.txt.text.length != txtstr.length) { if (pon == 1) { obj.my_timedProcess = setTimeout(ReturnFunction, 300, obj); pon = 0; } obj.txt.text = ''; var v1 = txtstr; v1 = v1.split(''); i = 0; while (i < v1.length) { if (i == 40 || i == 80 || i == 120) { obj.txt.text += '\n' + v1[i]; } else { obj.txt.text += v1[i]; } ++i; } clearInterval(intervalId); obj.counter = 0; pon = 1; } else { delete obj.onKeyDown; delete obj.onRelease; obj.useHandCursor = false; clearTimeout(obj.my_timedProcess); ReturnFunction(obj); } }; obj.onKeyDown = function () { if (Key.isDown(32)) { obj.onRelease(); } }; Key.addListener(obj); }; babl.ready = function (conv) { switch (conv) { case 0: pers.pers.looper = 0; pers.pers.play(); pers.my_timedProcess = setTimeout(ReturnFunction, 2000, pers); var v2 = setTimeout(ShowBabl, 1000, babladmin); var v1 = setTimeout(ShowBabl, 1000, bablpers); conversation = 1; break; case 1: str = 'Это системный администратор. Скажите, у Вас коммутатор в розетку подключен?'; ShowText(babladmin, str, 80); conversation = 2; s = 0; pon = 0; k = 0; break; case 2: str = 'А что это такое?? Не поняла!!!'; ShowText(bablpers, str, 80); conversation = 3; s = 0; pon = 0; k = 0; break; case 3: str = 'На прошлой неделе я объяснял вам, что ваш коммутатор должен быть всегда подключен в розетку. Помните?'; ShowText(babladmin, str, 80); conversation = 4; s = 0; pon = 0; k = 0; break; case 4: str = 'На прошлой неделе?? Эта та черная коробочка?! Я сейчас посмотрю...'; ShowText(bablpers, str, 80); s = 0; pon = 0; k = 0; conversation = 5; break; case 5: str = '...да, она не подключена. Это девчата чай кипятили и оставили. Мне её включить?'; ShowText(bablpers, str, 80); conversation = 6; s = 0; pon = 0; k = 0; break; case 6: str = 'Не выключайте её больше!'; ShowText(babladmin, str, 80); conversation = 7; s = 0; pon = 0; k = 0; break; case 7: pers._parent.gotoAndPlay(pers._parent._currentframe + 1); } }; AsBroadcaster.initialize(bablobj); bablobj.addListener(babl); bablobj.broadcastMessage('ready', conversation); this.swapDepths(_root.getNextHighestDepth()); } frame 28 { this.mus.stop(); this.mus.attachSound('snd_hpcalm'); this.mus.start(0, 1); stop(); pers.pers.gotoAndStop(1); phone.onRelease = function () { phone.gotoAndPlay(2); phone._parent.gotoAndPlay(phone._parent._currentframe + 1); delete phone.onRelease; phone.useHandCursor = false; }; } frame 36 { stop(); } } frame 53 { stop(); } movieClip 2528 { } movieClip 2531 { } movieClip 2534 { } movieClip 2537 { } movieClip 2540 { } movieClip 2541 { } movieClip 2544 { } movieClip 2545 { } // unknown tag 88 length 61 movieClip 2548 { } movieClip 2549 { } movieClip 2552 { } movieClip 2555 { } movieClip 2558 { } movieClip 2561 { } movieClip 2562 { } movieClip 2563 { } movieClip 2564 { } movieClip 2567 { } movieClip 2571 { } movieClip 2572 { } movieClip 2573 { } movieClip 2574 { } movieClip 2575 { } movieClip 2576 { } movieClip 2579 { } movieClip 2580 { } movieClip 2581 { frame 34 { stop(); } } movieClip 2582 { } movieClip 2583 { } movieClip 2584 { } movieClip 2585 { } movieClip 2586 { } movieClip 2587 { } movieClip 2588 { } movieClip 2589 { } movieClip 2590 { } movieClip 2591 { } movieClip 2593 { } movieClip 2594 { } movieClip 2595 { } movieClip 2598 { } movieClip 2599 { } movieClip 2600 { } movieClip 2602 { } movieClip 2603 { } movieClip 2604 { } movieClip 2606 { } movieClip 2607 { frame 1 { stop(); } frame 11 { stop(); } } movieClip 2608 { } movieClip 2609 { } movieClip 2610 { frame 10 { stop(); } } movieClip 2611 { frame 1 { stop(); } frame 114 { stop(); } frame 114 { _root.gotoAndStop(51); } } movieClip 2612 { frame 85 { sys.play(); stop(); } } frame 54 { stop(); } movieClip 2615 { frame 1 { stop(); } } instance sw2 of movieClip 2615 { } frame 55 { gotoAndStop(48); } frame 56 { stop(); } movieClip 2619 { } movieClip 2623 { } movieClip 2628 { } movieClip 2631 { } movieClip 2632 { frame 1 { stop(); } instance of movieClip 2631 { } frame 19 { stop(); } } movieClip 2634 { } movieClip 2636 { } movieClip 2638 { } movieClip 2640 { } movieClip 2642 { } movieClip 2643 { } movieClip 2644 { frame 1 { light._alpha = _root.lfactor; } frame 3 { light._alpha = _root.lfactor; } } movieClip 2649 { } movieClip 2650 { frame 1 { _root.lfactor = int(random(20)) + 50; light._alpha = _root.lfactor; } frame 3 { _root.lfactor = int(random(20)) + 50; light._alpha = _root.lfactor; } } movieClip 2652 { } movieClip 2653 { } movieClip 2655 { frame 1 { stop(); pers.pers.gotoAndStop(1); } frame 2 { pers.pers.looper = 1; bablpers.txt.text = ''; phone.gotoAndPlay(2); _global.consEnabled = false; } frame 10 { this.mus.stop(); this.mus.attachSound('snd_hpfast'); this.mus.start(0, 1); stop(); var bablobj = new Object(); var babl = new Object(); k = 0; var intervalId; var my_timedProcess; var counter = 0; bablpers.counter = counter; babladmin.counter = counter; var conversation = 0; this.onRelease = function () { this._visible = false; this._parent.nextFrame(); }; } frame 11 { this.mus.stop(); this.mus.attachSound('snd_hpcalm'); this.mus.start(0, 1); stop(); turkmeny.gotoAndPlay('off'); pers.pers.looper = 0; pers.pers.gotoAndStop(1); phone.gotoAndPlay(22); phone._parent.gotoAndPlay(phone._parent._currentframe + 1); delete phone.onRelease; phone.useHandCursor = false; pers.pers.stop(); _root.blok.ko.play(); } frame 20 { stop(); konsol.gotoAndStop(1); phone.gotoAndStop(2); phone.onRelease = function () { if (_root.sqq == 1) { phone._parent.gotoAndPlay(phone._parent._currentframe + 1); phone.gotoAndPlay(2); delete phone.onRelease; phone.useHandCursor = false; } else { phone._parent.gotoAndPlay(2); phone.gotoAndPlay(2); delete phone.onRelease; phone.useHandCursor = false; } }; } frame 21 { pers.pers.gotoAndStop(1); } frame 29 { function ReturnFunction(obj) { bablobj.broadcastMessage('ready', conversation); clearTimeout(obj.my_timedProcess); } function ShowBabl(obj) { obj.pov.gotoAndPlay(2); } this.mus.stop(); this.mus.attachSound('snd_hpfast'); this.mus.start(0, 1); stop(); k = 0; var bablobj = new Object(); var babl = new Object(); var intervalId; var my_timedProcess; var counter = 0; bablpers.counter = counter; babladmin.counter = counter; var conversation = 0; var LetterByLetter = function (obj, txtstr) { if (obj.txt.text.length == txtstr.length) { } else { var v1 = txtstr; v1 = v1.split(''); if (v1[k] != undefined) { obj.txt.text += v1[k]; ++s; } ++k; ++obj.counter; } }; var ShowText = function (obj, txtstr, interv) { if (intervalId != null) { clearInterval(intervalId); } obj.txt.text = ''; obj.counter = 0; intervalId = setInterval(this, 'LetterByLetter', interv, obj, txtstr); obj.useHandCursor = true; big.onRelease = function () { if (obj.txt.text.length != txtstr.length) { if (pon == 1) { obj.my_timedProcess = setTimeout(ReturnFunction, 300, obj); pon = 0; } obj.txt.text = ''; var v1 = txtstr; v1 = v1.split(''); i = 0; while (i < v1.length) { if (i == 40 || i == 80 || i == 120) { obj.txt.text += v1[i]; } else { obj.txt.text += v1[i]; } ++i; } clearInterval(intervalId); obj.counter = 0; pon = 1; } else { delete obj.onKeyDown; delete obj.onRelease; obj.useHandCursor = false; clearTimeout(obj.my_timedProcess); ReturnFunction(obj); } }; obj.onKeyDown = function () { if (Key.isDown(32)) { obj.onRelease(); } }; Key.addListener(obj); }; babl.ready = function (conv) { switch (conv) { case 0: pers.pers.looper = 0; pers.pers.play(); pers.my_timedProcess = setTimeout(ReturnFunction, 2000, pers); var v2 = setTimeout(ShowBabl, 1000, babladmin); var v1 = setTimeout(ShowBabl, 1000, bablpers); conversation = 1; break; case 1: str = 'Это системный администратор. Скажите, у Вас коммутатор в розетку подключен?'; ShowText(babladmin, str, 1); conversation = 2; s = 0; pon = 0; k = 0; break; case 2: str = 'А что это такое?? Не поняла!!!'; ShowText(bablpers, str, 1); conversation = 3; s = 0; pon = 0; k = 0; break; case 3: str = 'На прошлой неделе я объяснял вам, что ваш коммутатор должен быть всегда подключен в розетку. Помните?'; ShowText(babladmin, str, 1); conversation = 4; s = 0; pon = 0; k = 0; break; case 4: str = 'На прошлой неделе?? Эта та черная коробочка?! Я сейчас посмотрю...'; ShowText(bablpers, str, 1); s = 0; pon = 0; k = 0; conversation = 5; break; case 5: str = '...да, она не подключена. Это девчата чай кипятили и оставили. Мне её включить?'; ShowText(bablpers, str, 1); conversation = 6; s = 0; pon = 0; k = 0; break; case 6: str = 'Не выключайте её больше!'; ShowText(babladmin, str, 1); conversation = 7; s = 0; pon = 0; k = 0; break; case 7: pers._parent.gotoAndPlay(pers._parent._currentframe + 1); } }; AsBroadcaster.initialize(bablobj); bablobj.addListener(babl); bablobj.broadcastMessage('ready', conversation); this.swapDepths(_root.getNextHighestDepth()); } frame 30 { this.mus.stop(); this.mus.attachSound('snd_hpcalm'); this.mus.start(0, 1); stop(); pers.pers.gotoAndStop(1); phone.onRelease = function () { phone.gotoAndPlay(2); phone._parent.gotoAndPlay(phone._parent._currentframe + 1); delete phone.onRelease; phone.useHandCursor = false; }; } frame 38 { stop(); } } movieClip 2657 { frame 1 { stop(); } } movieClip 2658 { frame 1 { pers.pers.gotoAndStop(1); _global.consEnabled = false; phone.gotoAndPlay(2); } frame 2 { pers.pers.gotoAndStop(1); _global.consEnabled = false; } frame 9 { function NextPhrase() { switch (phrase) { case 0: ShowText(bablpers, 'Что произошло, коллега?'); break; case 1: ShowText(bablpers, 'В помещении офиса погас свет, я и весь коллектив этим происшествием крайне взволнованы. Знаете ли Вы, в чем причина?'); break; case 2: ShowText(babladmin, 'Догадываюсь.'); break; case 3: ShowText(bablpers, 'Раскройте же мне её, друг! Давайте вместе искать выход из этой не простой ситуации!'); break; case 4: ShowText(babladmin, 'После того, как я подключил новый отдел, и он приступил к работе, резко возросла нагрузка на сервера.'); break; case 5: ShowText(babladmin, 'Серверы стали потреблять слишком много энергии, поэтому возник сбой в электроснабжении.'); break; case 6: ShowText(bablpers, 'И как же теперь быть? Мы не можем влиять на электроснабжение офисного центра!'); break; case 7: ShowText(babladmin, 'Знаю. Но мы можем влиять на построение нашей внутренней инфраструктуры, в том числе на то, чтобы она была более энергоэкономичной и защищённой от сбоев питания.'); break; case 8: ShowText(bablpers, '???'); break; case 9: ShowText(babladmin, 'Наша инфраструктура может быть полностью эффективной только тогда, когда мы заменим все старые серверы на блейды НР. Для всей серверной полки питание зарезервировано...'); break; case 10: ShowText(babladmin, '...и распределяется оптимально между серверами таким образом, что перерасход или выход значений энергопотребления за рамки допустимого - невозможен.'); break; case 11: ShowText(babladmin, 'Такие полезные фичи возможны только в хьюлеттовской блейд-системе. В противном случае мы не застрахованы от подобных траблов с электричеством.'); break; case 12: ShowText(bablpers, 'Нет-нет, мы не можем этого допустить! Покупайте что хотите.'); break; case 13: ShowText(babladmin, 'О\'кей, всё будет работать.'); break; default: pers._parent.gotoAndPlay(pers._parent._currentframe + 1); } ++phrase; } function ShowBabl(obj) { obj.pov.gotoAndPlay(2); } function InitDialog() { this.swapDepths(_root.getNextHighestDepth()); big.useHandCursor = true; big.onRelease = function () { if (current_object.txt.text.length < current_text.length) { clearInterval(intervalId); current_object.txt.text = current_text; } else { NextPhrase(); } }; big.onKeyDown = function () { if (Key.isDown(32)) { big.onRelease(); } }; Key.addListener(big); pers.pers.looper = 0; pers.pers.play(); setTimeout(NextPhrase, 500); } var intervalId = null; var phrase = 0; var current_object; var current_text = ''; var k = 0; InitDialog(); setTimeout(ShowBabl, 300, babladmin); setTimeout(ShowBabl, 300, bablpers); stop(); var LetterByLetter = function () { if (current_object.txt.text.length < current_text.length) { current_object.txt.text += current_text.charAt(k); ++k; } if (current_object.txt.text.length == current_text.length) { clearInterval(intervalId); } }; var ShowText = function (obj, txtstr) { if (intervalId != null) { clearInterval(intervalId); } current_object = obj; current_text = txtstr; current_object.txt.text = ''; k = 0; intervalId = setInterval(this, 'LetterByLetter', 1); }; } frame 10 { this.mus.stop(); this.mus.attachSound('snd_hpcalm'); this.mus.start(0, 1); pers.pers.gotoAndStop(1); } frame 18 { stop(); gameDriver.nowLevel = 10; gameDriver.etap = 'final'; this._visible = false; _global.finsch = true; _global.schFinn._visible = true; _global.schFinn.gotoAndPlay(2); _global.consEnabled = true; } } movieClip 2659 { frame 166 { stop(); } frame 167 { stop(); } } frame 57 { stop(); } frame 58 { stop(); } movieClip 2667 { frame 1 { stop(); } } movieClip 2670 { frame 1 { stop(); } } movieClip 2671 { frame 1 { reg_btn.onRelease = function () { getURL('https://h41268.www4.hp.com/live/index.aspx?qid=5741', '_blank'); }; bled_btn.onRelease = function () { getURL('http://www.hp.ru/proliant/blades/bladesc3000/differences ', '_blank'); }; priz_btn.onRelease = function () { getURL('http://www.Intel.ru/itgalaxy', '_blank'); }; } instance of movieClip 2670 { onClipEvent (release) { getURL('http://www.hp.ru/proliant/blades/bladesc3000/seminars/index.html', '_blank', 'POST'); } } } movieClip 2672 { } movieClip 2673 { frame 12 { stop(); } } frame 70 { gotoAndStop(50); }




http://swfchan.com/9/43800/info.shtml
Created: 9/5 -2019 07:44:10 Last modified: 9/5 -2019 07:44:10 Server time: 24/04 -2024 04:47:55