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

<div style="position:absolute;top:-99px;left:-99px;"><img src="https://tools.swfchan.com/stathit.asp?noj=FRM48984915-10DC&rnd=48984915" width="1" height="1"></div>

game-1247334016.swf

This is the info page for
Flash #262749

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


ActionScript [AS1/AS2]
Combined Code
movieClip 5 { } movieClip 6 { frame 480 { gotoAndPlay(1); } } movieClip 8 { } movieClip 9 { frame 480 { gotoAndPlay(1); } } movieClip 11 { } movieClip 12 { frame 480 { gotoAndPlay(1); } } movieClip 15 { } movieClip 16 { } movieClip 17 dmRace { } movieClip 24 { } movieClip 27 { } movieClip 28 { } movieClip 31 { } movieClip 32 { } movieClip 33 { frame 192 { gotoAndPlay(1); } } movieClip 36 { } button 42 { on (release, keyPress '<Enter>') { CGame.butAbout(); } } button 47 { on (release) { CGame.butAbout(); } } button 52 { on (release) { openSite(); } } movieClip 53 { } button 56 { on (press) { this.gotoAndStop(2); } } button 58 { on (press) { this.gotoAndStop(1); } } movieClip 59 { frame 1 { this.stop(); this._parent.soundStarter.gotoAndPlay('start'); _global.soundEnable = true; } frame 2 { this.stop(); this._parent.soundStarter.gotoAndPlay('stop'); _global.soundEnable = false; } } // unknown tag 88 length 282 movieClip 63 { frame 1 { _visible = false; stop(); } frame 7 { gotoAndStop(1); } frame 12 { gotoAndStop(1); } } movieClip 66 { } button 73 { on (release) { CGame.butBackToSplash(); } } button 78 { on (release, keyPress '<Enter>') { CGame.butStart(); } } movieClip 79 { } movieClip 81 { } movieClip 83 { } movieClip 86 { } movieClip 87 { } movieClip 95 { frame 1 { stop(); _visible = false; } frame 7 { gotoAndStop(1); } frame 12 { gotoAndStop(1); } frame 17 { gotoAndStop(1); } frame 22 { gotoAndStop(1); } } movieClip 98 { } movieClip 100 { } button 107 { on (release) { CGame.butBackToSplash(); } } button 108 { on (release, keyPress '<Enter>') { CGame.butStartNext(); } } movieClip 109 { } // unknown tag 88 length 287 movieClip 118 { } movieClip 119 dmGame { #initclip Object.registerClass('dmGame', CGame); #endinitclip frame 1 { stop(); } instance btn_sound of movieClip 59 { onClipEvent (load) { if (_global.soundEnable == undefined) { _global.soundEnable = true; } if (!_global.soundEnable) { gotoAndStop(2); } } } instance of movieClip 98 { onClipEvent (load) { key1 = Key.isToggled(19); key2 = Key.isToggled(80); key3 = Key.isToggled(27); this._visible = false; } onClipEvent (keyDown) { if (Key.isDown(19) && key1 != Key.isToggled(19) || Key.isDown(80) && key2 != Key.isToggled(80) || Key.isDown(27) && key3 != Key.isToggled(27)) { CGame.butSwitchPause(); } key1 = Key.isToggled(19); key2 = Key.isToggled(80); key3 = Key.isToggled(27); } } } movieClip 150 { } movieClip 169 { } movieClip 176 { } movieClip 181 { } movieClip 184 { } movieClip 237 { } movieClip 238 { } movieClip 239 { } movieClip 243 { } movieClip 245 { } movieClip 247 { } movieClip 249 { } movieClip 251 { } movieClip 252 { } movieClip 254 { } movieClip 256 { } movieClip 258 { } movieClip 260 { } movieClip 262 { } movieClip 263 { } movieClip 271 { } movieClip 330 { } movieClip 333 { frame 1 { if (this._parent._parent._name != 'map') { _global.savePointz.push(this); } mcHit._visible = false; } } movieClip 432 { } movieClip 433 { } movieClip 434 { } movieClip 443 { frame 1 { stop(); } } movieClip 444 mcBonusHit { #initclip Object.registerClass('mcBonusHit', iriysoft.CInvisibleMovie); #endinitclip } movieClip 453 { frame 1 { stop(); } } movieClip 485 { frame 16 { stop(); } } movieClip 487 { frame 1 { type = 2; stop(); num = Math.floor(Math.random() * 4) + 1; ins.gotoAndStop(num); } frame 2 { ins2.gotoAndStop(num); } frame 7 { stop(); } } movieClip 490 { } movieClip 493 { } movieClip 496 { } movieClip 499 { } movieClip 500 { frame 20 { stop(); } } movieClip 505 { frame 24 { stop(); } } movieClip 509 { frame 15 { stop(); } } movieClip 511 { frame 1 { type = 3; if (this._parent._parent._name == 'map') { man.stop(); stop(); } } frame 16 { gotoAndPlay(1); } frame 80 { stop(); } } movieClip 520 { frame 1 { stop(); } } movieClip 529 { frame 1 { stop(); } } movieClip 530 { frame 1 { type = 2; stop(); num = Math.floor(Math.random() * 4) + 1; ins.gotoAndStop(num); } frame 2 { ins2.gotoAndStop(num); } frame 7 { stop(); } } movieClip 539 { frame 1 { stop(); } } movieClip 548 { frame 1 { stop(); } } movieClip 549 { frame 1 { type = 2; stop(); num = Math.floor(Math.random() * 4) + 1; ins.gotoAndStop(num); } frame 2 { ins2.gotoAndStop(num); } frame 7 { stop(); } } movieClip 552 { } movieClip 555 { } movieClip 556 { frame 1 { type = 2; stop(); } frame 7 { stop(); } } movieClip 567 { frame 1 { stop(); } } movieClip 578 { frame 1 { stop(); } } movieClip 579 { frame 1 { type = 2; stop(); num = Math.floor(Math.random() * 5) + 1; ins.gotoAndStop(num); } frame 2 { ins2.gotoAndStop(num); } frame 7 { stop(); } } movieClip 588 { frame 1 { stop(); } } movieClip 597 { frame 1 { stop(); } } movieClip 598 { frame 1 { type = 2; stop(); num = Math.floor(Math.random() * 4) + 1; ins.gotoAndStop(num); } frame 2 { ins2.gotoAndStop(num); } frame 7 { stop(); } } movieClip 608 { frame 1 { stop(); } } movieClip 617 { frame 1 { stop(); } } movieClip 618 { frame 1 { type = 2; stop(); num = Math.floor(Math.random() * 4) + 1; } frame 7 { stop(); } } movieClip 619 { frame 1 { type = 2; stop(); num = Math.floor(Math.random() * 4) + 1; } frame 7 { stop(); } } movieClip 620 { frame 1 { type = 2; stop(); num = Math.floor(Math.random() * 4) + 1; ins.gotoAndStop(num); } frame 2 { ins2.gotoAndStop(num); } frame 7 { stop(); } } movieClip 646 { } movieClip 659 { } movieClip 661 { frame 1 { type = 0; if (this._parent._parent._name == 'map') { man.stop(); stop(); } } frame 16 { gotoAndPlay(1); } frame 80 { stop(); } } movieClip 690 { } movieClip 693 { } movieClip 695 { frame 1 { type = 1; if (this._parent._parent._name == 'map') { man.stop(); stop(); } } frame 34 { gotoAndPlay(1); } frame 90 { stop(); } } movieClip 724 { } movieClip 727 { } movieClip 729 { frame 1 { type = 1; if (this._parent._parent._name == 'map') { man.stop(); stop(); } } frame 34 { gotoAndPlay(1); } frame 90 { stop(); } } movieClip 745 { } movieClip 748 { } movieClip 749 { frame 1 { type = 1; stop(); } frame 57 { stop(); } } movieClip 775 { } movieClip 776 { frame 1 { type = 1; if (this._parent._parent._name == 'map') { man.stop(); stop(); } } frame 34 { gotoAndPlay(1); } frame 90 { stop(); } } movieClip 802 { } movieClip 805 { } movieClip 807 { frame 1 { type = 1; if (this._parent._parent._name == 'map') { man.stop(); stop(); } } frame 34 { gotoAndPlay(1); } frame 90 { stop(); } } movieClip 836 { } movieClip 837 { frame 1 { type = 1; if (this._parent._parent._name == 'map') { man.stop(); stop(); } } frame 34 { gotoAndPlay(1); } frame 90 { stop(); } } movieClip 851 { } movieClip 852 { frame 1 { type = 1; stop(); } frame 57 { stop(); } } movieClip 868 { } movieClip 869 { frame 1 { type = 1; stop(); } frame 57 { stop(); } } movieClip 895 { } movieClip 896 { frame 1 { type = 1; if (this._parent._parent._name == 'map') { man.stop(); stop(); } } frame 34 { gotoAndPlay(1); } frame 90 { stop(); } } movieClip 925 { } movieClip 926 { frame 1 { type = 1; if (this._parent._parent._name == 'map') { man.stop(); stop(); } } frame 34 { gotoAndPlay(1); } frame 90 { stop(); } } movieClip 942 { } movieClip 943 { frame 1 { type = 1; stop(); } frame 57 { stop(); } } movieClip 945 { } movieClip 946 { frame 1 { type = 3; if (this._parent._parent._name == 'map') { man.stop(); stop(); } } frame 16 { gotoAndPlay(1); } frame 80 { stop(); } } movieClip 949 { } movieClip 951 { } movieClip 952 { frame 20 { stop(); } } movieClip 953 { frame 1 { type = 3; if (this._parent._parent._name == 'map') { man.stop(); stop(); } } frame 16 { gotoAndPlay(1); } frame 80 { stop(); } } movieClip 956 { } movieClip 957 { frame 1 { type = 3; if (this._parent._parent._name == 'map') { man.stop(); stop(); } } frame 16 { gotoAndPlay(1); } frame 80 { stop(); } } movieClip 960 { } movieClip 961 { frame 1 { type = 3; if (this._parent._parent._name == 'map') { man.stop(); stop(); } } frame 16 { gotoAndPlay(1); } frame 80 { stop(); } } movieClip 964 { } movieClip 965 { frame 1 { type = 3; if (this._parent._parent._name == 'map') { man.stop(); stop(); } } frame 16 { gotoAndPlay(1); } frame 80 { stop(); } } movieClip 968 { } movieClip 969 { frame 1 { type = 3; if (this._parent._parent._name == 'map') { man.stop(); stop(); } } frame 16 { gotoAndPlay(1); } frame 80 { stop(); } } movieClip 971 { } movieClip 972 { frame 1 { type = 3; if (this._parent._parent._name == 'map') { man.stop(); stop(); } } frame 16 { gotoAndPlay(1); } frame 80 { stop(); } } movieClip 974 { } movieClip 975 { frame 1 { type = 3; if (this._parent._parent._name == 'map') { man.stop(); stop(); } } frame 16 { gotoAndPlay(1); } frame 80 { stop(); } } movieClip 976 { } movieClip 985 dmLevel10 { } movieClip 988 { } movieClip 990 { } movieClip 992 { } movieClip 993 { } movieClip 995 { } movieClip 997 { } movieClip 998 { } movieClip 999 { } movieClip 1000 mcLevel9_Hit { } movieClip 1002 { } movieClip 1005 { } movieClip 1008 { } movieClip 1009 { } movieClip 1029 { } movieClip 1032 { } movieClip 1033 { frame 1 { type = 2; stop(); } frame 7 { stop(); } } movieClip 1036 { } movieClip 1037 { frame 1 { type = 0; } frame 2 { gotoAndPlay(1); } frame 58 { stop(); } } movieClip 1063 { } movieClip 1064 { frame 1 { type = 1; if (this._parent._parent._name == 'map') { man.stop(); stop(); } } frame 34 { gotoAndPlay(1); } frame 90 { stop(); } } movieClip 1073 { frame 34 { gotoAndPlay(1); } } movieClip 1090 { frame 28 { gotoAndPlay(1); } } movieClip 1092 { frame 1 { type = 0; if (this._parent._parent._name == 'map') { man.stop(); stop(); } } frame 16 { gotoAndPlay(1); } frame 80 { stop(); } } movieClip 1093 { } movieClip 1094 dmLevel9 { } movieClip 1097 { } movieClip 1100 { } movieClip 1102 { } movieClip 1103 { } movieClip 1105 { } movieClip 1107 { } movieClip 1108 { } movieClip 1119 { } movieClip 1120 { } movieClip 1121 dmLevel8 { } movieClip 1123 { } movieClip 1127 { } movieClip 1128 { } movieClip 1129 { } movieClip 1134 { } movieClip 1135 dmLevel7 { } movieClip 1139 { } movieClip 1140 { } movieClip 1143 { } movieClip 1144 dmLevel6 { } movieClip 1147 { } movieClip 1148 { } movieClip 1153 { } movieClip 1154 dmLevel5 { } movieClip 1158 { } movieClip 1160 { } movieClip 1161 { } movieClip 1170 { } movieClip 1171 dmLevel4 { } movieClip 1175 { } movieClip 1177 { } movieClip 1179 { } movieClip 1180 { } movieClip 1185 { } movieClip 1186 dmLevel3 { } movieClip 1188 { } movieClip 1193 { } movieClip 1194 dmLevel2 { } movieClip 1196 { } movieClip 1198 { } movieClip 1199 dmWheel { } movieClip 1201 mcHidePoint { #initclip Object.registerClass('mcHidePoint', iriysoft.CInvisibleMovie); #endinitclip } movieClip 1202 mcHit { #initclip Object.registerClass('mcHit', iriysoft.CInvisibleMovie); #endinitclip } movieClip 1207 { } movieClip 1208 { } movieClip 1211 { } movieClip 1212 { } movieClip 1225 { } movieClip 1242 { frame 24 { stop(); } } movieClip 1245 { } movieClip 1246 { frame 13 { stop(); } } movieClip 1247 { } movieClip 1248 { } movieClip 1249 dmCarBody { frame 1 { this.stop(); } } movieClip 1252 { } movieClip 1253 dmTrickMessage { } movieClip 1254 dmSaved { frame 31 { this.removeMovieClip(); } } button 1255 { on (release) { CGame.butBackToSplash(); this.removeMovieClip(); } } button 1256 { on (release) { CGame.butSwitchPause(); } } movieClip 1259 dmPause { } movieClip 1262 { } movieClip 1263 { } movieClip 1267 { } movieClip 1268 dmLevel1 { } movieClip 1271 { } movieClip 1272 dieMF { frame 33 { _parent.newRace(); this.removeMovieClip(); } } frame 1 { fscommand('showmenu', 'false'); _focusrect = false; _global.openSite = function () { getURL('http://www.gametop.com/stats/hellcops.html', '_blank'); }; _global.gameName = 'hellcops'; _root.loaderAnimDelta = 5; _root.loaderAnimPause = 2500; _root.parsingAnimDelta = 10; } movieClip 1283 __Packages.iriysoft.CInvisibleMovie { #initclip if (!_global.iriysoft) { _global.iriysoft = new Object(); } if (!_global.iriysoft.CInvisibleMovie) { var v1 = function () { super(); this._visible = false; }; iriysoft.CInvisibleMovie = v1; iriysoft.CInvisibleMovie extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(iriysoft.CInvisibleMovie.prototype, null, 1); } #endinitclip } movieClip 1284 __Packages.CRace { #initclip if (!_global.CRace) { var v1 = function () { super(); }; _global.CRace = v1; _global.CRace extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { CRace.m_instance = this; this.init(); this.__set__pauseOn(false); CGame.score = 0; this.dieTime = 0; this.inDieMode = false; }; v2.init = function () { trace('Starting level ' + (CGame.levelNum - 1)); CGame.instance.txtLevelStr = 'LEVEL ' + CGame.levels[CGame.levelNum - 1].mc.substr(7, 2) + ' (order: ' + CGame.levelNum + ')'; CGame.txtLevel_ = String(CGame.levelNum); _global.dieZ = new Array(); _global.savePointz = new Array(); this.savedPoint = undefined; this.savedScore = 0; this.m_level = this.attachMovie(CGame.levels[CGame.levelNum - 1].mc, '_Level1', 1001); this._parent.soundMC.gotoAndPlay('go'); this.lives = 5; this._parent.heartz.gotoAndStop(this.lives + 1); if (CGame.gameType == 2) { this.endTime = getTimer() + 60000; } CGame.allBonus = 0; CGame.takenBonus = 0; for (var v3 in this.m_level.mcBonusPlace) { if (this.m_level.mcBonusPlace[v3].mcHit != undefined) { CGame.allBonus += 1; } } if (this.usingMap) { this.mm = this._parent.miniMap; this.mm._visible = true; var v4 = this.mm.attachMovie(CGame.levels[CGame.levelNum - 1].mc + '_mm', 'map', 0); if (v4 == undefined) { v4 = this.mm.attachMovie(CGame.levels[CGame.levelNum - 1].mc, 'map', 0); } var v7 = this.m_level._width; var v8 = this.m_level._height; this.mm_xy_ratio = this.mm._xscale / this.mm._yscale; var v5 = v7 / 550; var v6 = v8 / 400; v5 /= this.mm_xy_ratio; this.mm_scale = this.mm_ratio * 100 / Math.max(v5, v6); this.mm.player.swapDepths(2); this.mm.player._xscale /= this.mm_xy_ratio; this.mm.miniMap_misc.swapDepths(3); this.mm.map.setMask(this.mm.miniMap_mask); this.mm.map._xscale = this.mm_scale / this.mm_xy_ratio; this.mm.map._yscale = this.mm_scale; } else { this._parent.miniMap._visible = false; } this.m_pEngine = new iriysoft.pengine.CParticleEngine(this.m_level.mcHit, 7); this.newRace(); }; v2.newRace = function () { this.inProcess = true; this.inPostGame = false; this.m_pEngine.clear(); this.m_car = new CCar(); this.m_car.init(this.m_level.mcVehiclePlace, this.m_pEngine, this._parent); this.m_car.addEventListener(CCar.EVENT_TRICK, mx.utils.Delegate.create(this, this.makeTrickMassage)); this.setPosition(true); this.m_car.initTricks(CGame.levelNum); this._parent.sinfo.gotoAndPlay(2); if (CGame.gameType == 1) { this._parent.sinfo.img.gotoAndStop('level' + CGame.levelNum); } }; v2.processRace = function () { this.m_pEngine.process(); this.m_car.process(); if (CGame.gameType == 2) { var v17 = Math.round((this.endTime - getTimer()) / 1000); var v19 = Math.floor(v17 / 60); var v14 = v17 % 60; if (v14 < 10) { v14 = '0' + v14; } CGame.time = v19 + ':' + v14; if (getTimer() >= this.endTime) { CGame.time = '0:00'; } } var v15 = {'x': this.m_car.image.aPart._x, 'y': this.m_car.image.aPart._y}; this.m_car.image.aPart._parent.localToGlobal(v15); var v16 = {'x': this.m_car.backWheel.pos.x, 'y': this.m_car.backWheel.pos.y}; this.m_level.localToGlobal(v16); var v20 = Math.atan2(v16.y - v15.y, v16.x - v15.x) * 57.29577951308232 - this.m_car.image._rotation; this.m_car.image.aPart._rotation = v20 + 180; if (this.usingMap) { var v18 = this.mm_scale * this.m_car.image._x / 100; var v21 = this.mm_scale * this.m_car.image._y / 100; v18 /= this.mm_xy_ratio; this.mm.map._x = -v18 + 275; this.mm.map._y = -v21 + 200; } this.setPosition(); if ((this.m_level.mcFinish._x < this.m_car.backWheel.pos.x - 50 || this.m_car.gameOverInTest) && !this.inPostGame) { if (getTimer() - CGame.timeChangeScore > 500) { if (CGame.levelNum >= CGame.levels.length) { trace('Уровни закончились'); var v13 = this.attachMovie('winMF', 'winMessage', 1002); v13._x = 275; v13._y = 120; this.inPostGame = true; this.FINinterval = setInterval(this, 'endOfLevel', 1500, 1); this._parent.soundMC.gotoAndPlay('flip'); } else { var v13 = this.attachMovie('winMF', 'winMessage', 1002); v13._x = 275; v13._y = 120; this.inPostGame = true; this.FINinterval = setInterval(this, 'endOfLevel', 1500, 2); this._parent.soundMC.gotoAndPlay('flip'); } } if (getTimer() >= this.endTime && CGame.gameType == 2) { trace('Время вышло'); v13 = this.attachMovie('winMF', 'winMessage', 1002); v13._x = 275; v13._y = 120; this.inPostGame = true; this.FINinterval = setInterval(this, 'endOfLevel', 1500, 1); this._parent.soundMC.gotoAndPlay('flip'); } } var v11 = this.m_car.getHitForBonus(); for (var v4 in this.m_level.mcBonusPlace) { if (v11.hitTest(this.m_level.mcBonusPlace[v4].mcHit)) { this.m_level.mcBonusPlace[v4].gotoAndPlay('die'); if (this.usingMap) { var v6 = this.m_level.mcBonusPlace[v4]._x; var v7 = this.m_level.mcBonusPlace[v4]._y; for (var v12 in this.mm.map.mcBonusPlace) { var v3 = this.mm.map.mcBonusPlace[v12]; if (v3._x > v6 - 2 && v3._x < v6 + 2 && v3._y > v7 - 2 && v3._y < v7 + 2) { v3._visible = false; break; } } } switch (this.m_level.mcBonusPlace[v4].type) { case 0: var v5 = this.bonus_0; break; case 1: var v5 = this.bonus_1; break; case 2: var v5 = this.bonus_2; break; case 3: var v5 = this.bonus_3; break; default: var v5 = this.bonus_0; } CGame.score += storedv5; CGame.takenBonus += 1; } } v4 = 0; while (v4 < _global.savePointz.length) { var v8 = _global.savePointz[v4]; if (this.savedPoint != v8) { if (v11.hitTest(v8.mcHit)) { this.savedPoint = v8; this.savedScore = CGame.score; var v9 = this.attachMovie('dmSaved', '_dmSaved', 28000); v9._x = 275; v9._y = 100; } } v4 += 1; } if (this.inProcess && getTimer() - this.m_car.bornTime > 200) { if (!this.inPostGame) { if (this.inProcess) { v4 = 0; while (v4 < _global.dieZ.length) { var v10 = _global.dieZ[v4]; if (this.m_car.checkDeathPoints(v10)) { this.makeDie(); this.m_car.bar._visible = false; } v4 += 1; } } if (this.inProcess) { if (this.m_car.checkDeathPoints(this.m_level.mcHit)) { this.inDieMode = true; } else { this.inDieMode = false; this.dieTime = getTimer(); } if (getTimer() - this.dieTime > 100) { CGame.instance.dieTime_ = String(Math.round((getTimer() - this.dieTime) / 10) / 100); } else { CGame.instance.dieTime_ = ''; } if (getTimer() - this.dieTime > CRace.dieTimeout) { this.makeDie(); this.m_car.bar._visible = false; this._parent.soundMC.gotoAndPlay('die' + Math.floor(Math.random() * 3 + 1)); trace('ппц'); } } } } }; v2.makeDie = function () { CGame.score = 0; if (this.savedPoint != undefined) { CGame.score = this.savedScore; } _root.ssMC.stop(); this.m_car.inProcess = false; this.inPostGame = true; this.inProcess = false; var v3 = this.attachMovie((this.lives != 0) ? 'dieMF' : 'dieMFend', 'dieMessage', 3002); v3._x = 275; v3._y = 150; this.m_car.image.carBody.gotoAndStop(this.m_car.image.carBody._totalframes); }; v2.endOfLevel = function (n) { clearInterval(this.FINinterval); CGame.full_score += CGame.score; if (CGame.gameType == 1) { if (n == 1) { CGame.butEndRace(); } else { if (n == 2) { CGame.levelNum += 1; CGame.butEndRaceVictory(); } } } if (CGame.gameType == 2) { CGame.butEndRaceTimeAttack(); } }; v2.makeTrickMassage = function (msg) { if (!this.inProcess) { return undefined; } var v4 = ''; var v6 = 0; if (!this.m_car.mode) { if (msg.trickID == CCar.TRICK_BACK_FLIP) { msg.trickID = CCar.TRICK_FRONT_FLIP; } else { if (msg.trickID == CCar.TRICK_FRONT_FLIP) { msg.trickID = CCar.TRICK_BACK_FLIP; } } } if (msg.trickID == CCar.TRICK_BACK_FLIP) { v4 = 'backFlip'; v6 = 10; } else { if (msg.trickID == CCar.TRICK_FRONT_FLIP) { v4 = 'frontFlip'; v6 = 15; } } if (v4 != '') { var v2 = CCar.__get__instance(); v2.combo += 1; var v3 = v2.combo; if (v3 > 5) { v3 = 5; } if (v3 > 1) { v2.mainMovie.cmsg.gotoAndPlay(2); v2.mainMovie.cmsg.msg.gotoAndStop('x' + v3); this._parent.soundMC.gotoAndPlay('c' + v3); } v2.trickSumCount += v6; v2.mainMovie.msg.gotoAndPlay(2); v2.mainMovie.msg.msg.gotoAndStop(v4); } }; v2.__set__pauseOn = function (pauseState) { this.m_pauseOn = pauseState; this.enableProcess(!this.m_pauseOn); return this.__get__pauseOn(); }; v2.__get__pauseOn = function () { return this.m_pauseOn; }; v2.enableProcess = function (enable) { if (enable) { this.onEnterFrame = this.processRace; this._parent._scrPause.removeMovieClip(); } else { this.onEnterFrame = function () {}; this._parent.attachMovie('dmPause', '_scrPause', 32001); } }; v2.setPosition = function (now) { var v3 = this.m_car.image._x; var v4 = this.m_car.image._y; var v6 = this.leftOffset; var v5 = this.rightOffset; if (!this.m_car.mode) { v6 = this.rightOffset; v5 = this.leftOffset; } var v2 = this.m_level._x; if (v2 < v6 - v3) { v2 = v6 - v3; } if (v2 > 550 - v5 - v3) { v2 = 550 - v5 - v3; } v2 = Math.round(v2); if (this.scroll_x == undefined) { this.scroll_x = this.m_level._x; } if (now) { this.scroll_x = v2; } else { this.scroll_x += (v2 - this.scroll_x) / this.xScrollFactor; } this.m_level._x = Math.round(this.scroll_x); if (this.m_level._y < this.topOffset - v4) { this.m_level._y = Math.round(this.topOffset - v4); } if (this.m_level._y > 400 - this.bottomOffset - v4) { this.m_level._y = Math.round(400 - this.bottomOffset - v4); } this.m_car.bar._x = this.m_car.image._x + this.m_level._x; this.m_car.bar._y = this.m_car.image._y + this.m_level._y - 70; }; v1.__get__instance = function () { return CRace.m_instance; }; v2.usingMap = false; v1.dieTimeout = 1200; v2.bonus_0 = 1000; v2.bonus_1 = 250; v2.bonus_2 = 50; v2.bonus_3 = 25; v2.leftOffset = 150; v2.rightOffset = 350; v2.topOffset = 170; v2.bottomOffset = 170; v2.xScrollFactor = 5; v2.mm_ratio = 2; v1.addProperty('instance', v1.__get__instance, function () {}); v2.addProperty('pauseOn', v2.__get__pauseOn, v2.__set__pauseOn); ASSetPropFlags(_global.CRace.prototype, null, 1); } #endinitclip } movieClip 1285 __Packages.iriysoft.pengine.CParticleEngine { #initclip if (!_global.iriysoft) { _global.iriysoft = new Object(); } if (!_global.iriysoft.pengine) { _global.iriysoft.pengine = new Object(); } if (!_global.iriysoft.pengine.CParticleEngine) { var v1 = function (hitMovie, nGravity, koeffDamp) { this.m_particles = new Array(); this.m_constraints = new Array(); this.setHitMovie(hitMovie); this.init(nGravity, koeffDamp); }; iriysoft.pengine.CParticleEngine = v1; var v2 = v1.prototype; v2.setHitMovie = function (hitMovie) { if (hitMovie == undefined) { hitMovie = null; } this.m_hitMovie = hitMovie; }; v2.getHitMovie = function () { return this.m_hitMovie; }; v2.__set__gravity = function (nGravity) { this.m_gravity = nGravity; return this.__get__gravity(); }; v2.__get__gravity = function () { return this.m_gravity; }; v2.init = function (nGravity, koeffDamp) { if (nGravity == undefined) { nGravity = 9.800000000000001; } if (koeffDamp == undefined) { koeffDamp = 0.995; } this.__set__gravity(nGravity); this.m_koeffDamp = koeffDamp; }; v2.addParticle = function (p) { this.m_particles.push(p); }; v2.process = function () { var v2 = 0; while (v2 < this.m_particles.length) { this.m_particles[v2].accelerate.plusXY(0, this.m_gravity * this.m_particles[v2].mass); this.m_particles[v2].accelerate.mult(1 / iriysoft.pengine.CParticleEngine.REPEAT_COUNT); v2 += 1; } var v3 = 0; while (v3 < iriysoft.pengine.CParticleEngine.REPEAT_COUNT) { v2 = 0; while (v2 < this.m_particles.length) { this.m_particles[v2].verlet(iriysoft.pengine.CParticleEngine.D_TIME, this.m_koeffDamp); v2 += 1; } v2 = 0; while (v2 < this.m_constraints.length) { this.m_constraints[v2].resolve(); v2 += 1; } v2 = 0; while (v2 < this.m_particles.length) { this.m_particles[v2].checkCollision(this.m_hitMovie); v2 += 1; } v3 += 1; } v2 = 0; while (v2 < this.m_particles.length) { this.m_particles[v2].accelerate.init(0, 0); v2 += 1; } }; v2.addConstraint = function (c) { this.m_constraints.push(c); }; v2.clear = function () { while (this.m_particles.pop() != undefined) { } this.clearConstraints(); }; v2.clearConstraints = function () { while (this.m_constraints.pop() != undefined) { } }; v1.SEC_PER_FRAME = 0.04166666666666666; v1.REPEAT_COUNT = 3; v1.D_TIME = iriysoft.pengine.CParticleEngine.SEC_PER_FRAME / iriysoft.pengine.CParticleEngine.REPEAT_COUNT; v2.addProperty('gravity', v2.__get__gravity, v2.__set__gravity); ASSetPropFlags(iriysoft.pengine.CParticleEngine.prototype, null, 1); } #endinitclip } movieClip 1286 __Packages.iriysoft.pengine.CVehicle { #initclip if (!_global.iriysoft) { _global.iriysoft = new Object(); } if (!_global.iriysoft.pengine) { _global.iriysoft.pengine = new Object(); } if (!_global.iriysoft.pengine.CVehicle) { var v1 = function () { this.m_vehicleDir = new iriysoft.pengine.math.CVector2D(0, 0); this.m_vehicleNormal = new iriysoft.pengine.math.CVector2D(0, 0); this.t_point1 = new iriysoft.pengine.math.CVector2D(); this.t_point2 = new iriysoft.pengine.math.CVector2D(); }; iriysoft.pengine.CVehicle = v1; var v2 = v1.prototype; v2.getVehiclePoint = function (mc) { var v2 = new Object(); v2.x = mc._x; v2.y = mc._y; mc._parent.localToGlobal(v2); this.m_vehicleMovie._parent.globalToLocal(v2); return v2; }; v2.moveMovieToMovieGlobal = function (movie, moviePos) { var v1 = {'x': movie._x, 'y': movie._y}; movie._parent.localToGlobal(v1); moviePos._parent.globalToLocal(v1); moviePos._x = v1.x; moviePos._y = v1.y; }; v2.rotateMovieToMovieLocal = function (movie, moviePos) { movie._rotation = Math.atan2(moviePos._y - movie._y, moviePos._x - movie._x) * iriysoft.pengine.CVehicle.VAL_180_DIV_PI; }; v2.construct = function (vehicleParam, bodyMovie, vehicleMovie, mcWBack, mcWForward) { this.m_vehicleParam = vehicleParam; this.m_bodyMovie = bodyMovie; this.m_vehicleMovie = vehicleMovie; this.m_vehicleParam.changeGeometry(this.getVehiclePoint(this.m_bodyMovie.mcA), this.getVehiclePoint(this.m_bodyMovie.mcB), this.getVehiclePoint(this.m_bodyMovie.mcC), this.getVehiclePoint(this.m_bodyMovie.mcD)); this.m_backWheel = iriysoft.pengine.particle.CWheel(this.m_vehicleParam.A); this.m_forwardWheel = iriysoft.pengine.particle.CWheel(this.m_vehicleParam.D); if (mcWBack != undefined) { this.m_backWheel.setMovie(mcWBack); this.m_backWheel.setRotationMovie(mcWBack.mcSpoke); } if (mcWForward != undefined) { this.m_forwardWheel.setMovie(mcWForward); this.m_forwardWheel.setRotationMovie(mcWForward.mcSpoke); } this.setVehicleParam(iriysoft.pengine.CVehicle.getDefaultVehicleParam()); }; v1.getDefaultVehicleParam = function () { var v1 = new Object(); v1.accPercMult = 39.2; v1.normalYLimit = 0.4; v1.koeffPrimary = 1.3; v1.koeffSecondary = 0.7; v1.accPercBase = 0.6; v1.accelerateForwardWheel = 0; v1.accelerateBackWheel = 50; v1.brakeForwardWheel = 0; v1.brakeBackWheel = 0; return v1; }; v2.setVehicleParam = function (param) { this.m_accPercMultForTurn = param.accPercMult; this.m_normalYLimitForTurn = param.normalYLimit; this.m_koeffPrimaryForTurn = param.koeffPrimary; this.m_koeffSecondaryForTurn = param.koeffSecondary; this.m_accPercBaseForTurn = param.accPercBase; this.m_accelerateForwardWheel = param.accelerateForwardWheel; this.m_accelerateBackWheel = param.accelerateBackWheel; this.m_brakeForwardWheel = param.brakeForwardWheel; this.m_brakeBackWheel = param.brakeBackWheel; }; v2.processKey = function (mask) { if ((mask & iriysoft.pengine.CVehicle.KM_ACCELERATE) != 0) { this.accelerate(); } else { if ((mask & iriysoft.pengine.CVehicle.KM_BRAKE) != 0) { this.brake(); } else { this.stopAccelerate(); } } if ((mask & iriysoft.pengine.CVehicle.KM_MOVE_BODY_FORWARD) != 0) { this.turnTo(iriysoft.pengine.CVehicle.DIR_RIGHT, this.m_accPercMultForTurn); } else { if ((mask & iriysoft.pengine.CVehicle.KM_MOVE_BODY_BACK) != 0) { this.turnTo(iriysoft.pengine.CVehicle.DIR_LEFT, this.m_accPercMultForTurn); } } }; v2.process = function () { this.m_vehicleDir.init(this.m_forwardWheel.pos.x - this.m_backWheel.pos.x, this.m_forwardWheel.pos.y - this.m_backWheel.pos.y); this.m_vehicleNormal.init(this.m_vehicleDir.x, this.m_vehicleDir.y); this.m_vehicleNormal.normalize(); this.t_buffNumber = this.m_vehicleNormal.x; this.m_vehicleNormal.x = -this.m_vehicleNormal.y; this.m_vehicleNormal.y = this.t_buffNumber; this.m_vehicleAngle = Math.atan2(this.m_vehicleDir.y, this.m_vehicleDir.x) * iriysoft.pengine.CVehicle.VAL_180_DIV_PI; this.m_vehicleMovie._rotation = this.m_vehicleAngle; this.t_point1.x = this.m_bodyMovie.mcB._x; this.t_point1.y = this.m_bodyMovie.mcB._y; this.m_bodyMovie.localToGlobal(this.t_point1); this.m_vehicleMovie._parent.globalToLocal(this.t_point1); this.t_point2.x = this.m_bodyMovie.mcC._x; this.t_point2.y = this.m_bodyMovie.mcC._y; this.m_bodyMovie.localToGlobal(this.t_point2); this.m_vehicleMovie._parent.globalToLocal(this.t_point2); this.m_vehicleMovie._x += (this.m_vehicleParam.B.pos.x - this.t_point1.x + this.m_vehicleParam.C.pos.x - this.t_point2.x) / 2; this.m_vehicleMovie._y += (this.m_vehicleParam.B.pos.y - this.t_point1.y + this.m_vehicleParam.C.pos.y - this.t_point2.y) / 2; }; v2.turnTo = function (dir, turnPower) { this.t_turnToPerc = (Math.abs(this.m_vehicleNormal.y) * (1 - this.m_accPercBaseForTurn) + this.m_accPercBaseForTurn) * turnPower; this.t_turnToDX = this.m_vehicleNormal.x * this.t_turnToPerc; this.t_turnToDY = this.m_vehicleNormal.y * this.t_turnToPerc; if (this.m_vehicleNormal.y > -this.m_normalYLimitForTurn) { if (dir == iriysoft.pengine.CVehicle.DIR_RIGHT) { if (!this.m_forwardWheel.hasIntersection()) { this.m_forwardWheel.accelerate.plusXY(this.t_turnToDX * this.m_koeffPrimaryForTurn, this.t_turnToDY * this.m_koeffPrimaryForTurn); } this.m_backWheel.accelerate.plusXY(-this.t_turnToDX * this.m_koeffSecondaryForTurn, -this.t_turnToDY * this.m_koeffSecondaryForTurn); } else { this.m_forwardWheel.accelerate.plusXY(-this.t_turnToDX * this.m_koeffSecondaryForTurn, -this.t_turnToDY * this.m_koeffSecondaryForTurn); if (!this.m_backWheel.hasIntersection()) { this.m_backWheel.accelerate.plusXY(this.t_turnToDX * this.m_koeffPrimaryForTurn, this.t_turnToDY * this.m_koeffPrimaryForTurn); } } } }; v2.accelerate = function () { this.m_backWheel.setAccelerate(this.m_accelerateBackWheel); this.m_forwardWheel.setAccelerate(this.m_accelerateForwardWheel); }; v2.brake = function () { this.m_backWheel.setAccelerate(this.m_brakeBackWheel); this.m_forwardWheel.setAccelerate(this.m_brakeForwardWheel); }; v2.stopAccelerate = function () { this.m_backWheel.setAccelerate(0); this.m_forwardWheel.setAccelerate(0); }; v2.__get__backWheel = function () { return this.m_backWheel; }; v2.__get__forwardWheel = function () { return this.m_forwardWheel; }; v2.onGround = function () { return this.m_backWheel.hasIntersection() || this.m_forwardWheel.hasIntersection(); }; v2.__get__vehicleParam = function () { return this.m_vehicleParam; }; v2.__set__vehicleParam = function (nParam) { this.m_vehicleParam = nParam; return this.__get__vehicleParam(); }; v2.__get__vehicleAngle = function () { return this.m_vehicleAngle; }; v2.__get__vehicleDir = function () { return this.m_vehicleDir; }; v1.VAL_180_DIV_PI = 57.29577951308232; v1.DIR_RIGHT = 0; v1.DIR_LEFT = 1; v1.KM_NONE = 0; v1.KM_ACCELERATE = 1; v1.KM_BRAKE = 2; v1.KM_MOVE_BODY_FORWARD = 4; v1.KM_MOVE_BODY_BACK = 8; v2.addProperty('backWheel', v2.__get__backWheel, function () {}); v2.addProperty('forwardWheel', v2.__get__forwardWheel, function () {}); v2.addProperty('vehicleAngle', v2.__get__vehicleAngle, function () {}); v2.addProperty('vehicleDir', v2.__get__vehicleDir, function () {}); v2.addProperty('vehicleParam', v2.__get__vehicleParam, v2.__set__vehicleParam); ASSetPropFlags(iriysoft.pengine.CVehicle.prototype, null, 1); } #endinitclip } movieClip 1287 __Packages.iriysoft.pengine.math.CVector2D { #initclip if (!_global.iriysoft) { _global.iriysoft = new Object(); } if (!_global.iriysoft.pengine) { _global.iriysoft.pengine = new Object(); } if (!_global.iriysoft.pengine.math) { _global.iriysoft.pengine.math = new Object(); } if (!_global.iriysoft.pengine.math.CVector2D) { var v1 = function (nx, ny) { this.init(nx, ny); }; iriysoft.pengine.math.CVector2D = v1; var v2 = v1.prototype; v2.init = function (nx, ny) { this.x = nx; this.y = ny; }; v2.copyFrom = function (v) { this.x = v.x; this.y = v.y; }; v2.copyTo = function (v) { v.x = this.x; v.y = this.y; }; v2.plusXY = function (nx, ny) { this.x += nx; this.y += ny; }; v1.getDistanceBetween = function (p1, p2) { var v2 = p1.x - p2.x; var v1 = p1.y - p2.y; return Math.sqrt(v2 * v2 + v1 * v1); }; v2.duplicate = function () { return new iriysoft.pengine.math.CVector2D(this.x, this.y); }; v2.minus = function (v) { this.x -= v.x; this.y -= v.y; }; v2.minusNew = function (v) { return new iriysoft.pengine.math.CVector2D(this.x - v.x, this.y - v.y); }; v2.normalize = function () { var v2 = Math.sqrt(this.x * this.x + this.y * this.y); this.x /= v2; this.y /= v2; }; v2.reverseNew = function () { return new iriysoft.pengine.math.CVector2D(-this.x, -this.y); }; v2.scalar = function (v) { return this.x * v.x + this.y * v.y; }; v2.modul = function () { return Math.sqrt(this.x * this.x + this.y * this.y); }; v2.rotate = function (u) { var v3 = this.x; var v4 = this.y; this.x = v3 * Math.cos(u) - v4 * Math.sin(u); this.y = v3 * Math.sin(u) + v4 * Math.cos(u); }; v2.rotateNew = function (u) { return new iriysoft.pengine.math.CVector2D(this.x * Math.cos(u) - this.y * Math.sin(u), this.x * Math.sin(u) + this.y * Math.cos(u)); }; v2.mult = function (k) { this.x *= k; this.y *= k; }; v2.multNew = function (k) { return new iriysoft.pengine.math.CVector2D(this.x * k, this.y * k); }; v2.plus = function (v) { this.x += v.x; this.y += v.y; }; v2.plusNew = function (v) { return new iriysoft.pengine.math.CVector2D(this.x + v.x, this.y + v.y); }; v2.getDistanceTo = function (p1, p2) { var v2 = p1.y - p2.y; var v4 = p2.x - p1.x; var v6 = p1.x * (p2.y - p1.y) - p1.y * (p2.x - p1.x); var v5 = Math.sqrt(v2 * v2 + v4 * v4); v2 /= v5; v4 /= v5; v6 /= v5; return v2 * this.x + v4 * this.y + v6; }; ASSetPropFlags(iriysoft.pengine.math.CVector2D.prototype, null, 1); } #endinitclip } movieClip 1288 __Packages.iriysoft.pengine.particle.CParticle { #initclip if (!_global.iriysoft) { _global.iriysoft = new Object(); } if (!_global.iriysoft.pengine) { _global.iriysoft.pengine = new Object(); } if (!_global.iriysoft.pengine.particle) { _global.iriysoft.pengine.particle = new Object(); } if (!_global.iriysoft.pengine.particle.CParticle) { var v1 = function () { this.m_curPosition = new iriysoft.pengine.math.CVector2D(); this.m_prevPosition = new iriysoft.pengine.math.CVector2D(); this.m_accelerate = new iriysoft.pengine.math.CVector2D(); this.m_buckup = new iriysoft.pengine.math.CVector2D(); }; iriysoft.pengine.particle.CParticle = v1; var v2 = v1.prototype; v2.initParticle = function (x, y, mass, mc) { if (x == undefined) { x = 0; } if (y == undefined) { y = 0; } if (mass == undefined) { mass = 1; } this.moveTo(x, y); this.m_mass = mass; this.m_accelerate.x = 0; this.m_accelerate.y = 0; this.setMovie(mc); return this; }; v2.moveTo = function (nx, ny) { this.m_prevPosition.x = nx; this.m_curPosition.x = this.m_prevPosition.x; this.m_prevPosition.y = ny; this.m_curPosition.y = this.m_prevPosition.y; this.synchronizeMovie(); }; v2.verlet = function (dTime, koeffDamp) { this.m_buckup.copyFrom(this.m_curPosition); this.m_curPosition.x += (this.m_curPosition.x - this.m_prevPosition.x) * koeffDamp + this.m_accelerate.x * dTime; this.m_curPosition.y += (this.m_curPosition.y - this.m_prevPosition.y) * koeffDamp + this.m_accelerate.y * dTime; this.m_buckup.copyTo(this.m_prevPosition); this.synchronizeMovie(); }; v2.checkCollision = function (hitMovie) {}; v2.synchronizeMovie = function () {}; v2.moveMovieToCurentPosition = function () { this.m_mc._x = this.m_curPosition.x; this.m_mc._y = this.m_curPosition.y; }; v2.__get__mass = function () { return this.m_mass; }; v2.__set__mass = function (nMass) { this.m_mass = nMass; return this.__get__mass(); }; v2.__get__accelerate = function () { return this.m_accelerate; }; v2.__set__accelerate = function (acc) { this.m_accelerate = acc; return this.__get__accelerate(); }; v2.__get__prevPos = function () { return this.m_prevPosition; }; v2.__set__prevPos = function (pos) { this.m_prevPosition = pos; return this.__get__prevPos(); }; v2.__get__pos = function () { return this.m_curPosition; }; v2.__set__pos = function (pos) { this.m_curPosition = pos; return this.__get__pos(); }; v2.setMovie = function (mc) { if (mc == null || mc == undefined) { this.synchronizeMovie = function () {}; this.m_mc = null; } else { this.m_mc = mc; this.synchronizeMovie = this.moveMovieToCurentPosition; } }; v2.getMovie = function () { return this.m_mc; }; v2.addProperty('accelerate', v2.__get__accelerate, v2.__set__accelerate); v2.addProperty('mass', v2.__get__mass, v2.__set__mass); v2.addProperty('pos', v2.__get__pos, v2.__set__pos); v2.addProperty('prevPos', v2.__get__prevPos, v2.__set__prevPos); ASSetPropFlags(iriysoft.pengine.particle.CParticle.prototype, null, 1); } #endinitclip } movieClip 1289 __Packages.iriysoft.pengine.particle.CWheel { #initclip if (!_global.iriysoft) { _global.iriysoft = new Object(); } if (!_global.iriysoft.pengine) { _global.iriysoft.pengine = new Object(); } if (!_global.iriysoft.pengine.particle) { _global.iriysoft.pengine.particle = new Object(); } if (!_global.iriysoft.pengine.particle.CWheel) { var v1 = function () { super(); }; iriysoft.pengine.particle.CWheel = v1; iriysoft.pengine.particle.CWheel extends iriysoft.pengine.particle.CParticle; var v2 = v1.prototype; v2.setRotationMovie = function (rotationMovie) { if (rotationMovie == undefined || rotationMovie == null) { this.rotateMovie = function () {}; this.m_rim = null; } else { this.rotateMovie = function () { this.rot.rotate(this.m_speed / this.m_radius); this.m_rim._rotation = Math.atan2(this.rot.y, this.rot.x) * iriysoft.pengine.particle.CWheel.ANGLE_180_DIV_PI; }; this.m_rim = rotationMovie; } }; v2.setAccelerate = function (nAccelerate) { this.m_acceleration = nAccelerate; }; v2.getAccelerate = function () { return this.m_acceleration; }; v2.initWheel = function (x, y, mass, rad, maxAccSpeed, mc, rotationMovie, koeffSpring, koeffSlip) { this._innerInit(); this.initParticle(x, y, mass, mc); if (koeffSpring == undefined) { koeffSpring = 0.1; } if (koeffSlip == undefined) { koeffSlip = 0.1; } this.m_koeffSpring = koeffSpring; this.m_koeffSlip = koeffSlip; this.setRotationMovie(rotationMovie); this.m_radius = rad; this.m_maxAccSpeed = maxAccSpeed; this.m_speed = 0; this.m_accSpeed = 0; this.rot = new iriysoft.pengine.math.CVector2D(1, 0); this.intersectionFlag = false; this.lastIntersPoint = new iriysoft.pengine.math.CVector2D(0, 0); this.lastN = new iriysoft.pengine.math.CVector2D(0, 0); var v2; var v3 = 6.283185307179586 / iriysoft.pengine.particle.CWheel.m_hitCount; this.hitPointArray = new Array(iriysoft.pengine.particle.CWheel.m_hitCount); this.normalArray = new Array(iriysoft.pengine.particle.CWheel.m_hitCount); this.hitArray = new Array(iriysoft.pengine.particle.CWheel.m_hitCount); this.intersArray = new Array(); v2 = 0; while (v2 < iriysoft.pengine.particle.CWheel.m_hitCount) { this.hitPointArray[v2] = new iriysoft.pengine.math.CVector2D(Math.sin(v3 * v2) * this.m_radius, -Math.cos(v3 * v2) * this.m_radius); this.normalArray[v2] = this.hitPointArray[v2].multNew(-1); this.normalArray[v2].normalize(); v2 += 1; } this.m_acceleration = 0; return this; }; v2.verlet = function (dTime, koeffDamp) { super.verlet(dTime, koeffDamp); this.m_accSpeed = Math.max(-this.m_maxAccSpeed, Math.min(this.m_maxAccSpeed, this.m_accSpeed + this.m_acceleration * dTime)); this.m_speed = Math.max(-iriysoft.pengine.particle.CWheel.m_maxSpeed * dTime, Math.min(this.m_speed * koeffDamp + this.m_accSpeed, iriysoft.pengine.particle.CWheel.m_maxSpeed * dTime)); this.rotateMovie(); }; v2.rotateMovie = function () {}; v2._innerInit = function () { this.n_part = new iriysoft.pengine.math.CVector2D(0, 0); this.oldPos = new iriysoft.pengine.math.CVector2D(0, 0); this._p = new iriysoft.pengine.math.CVector2D(0, 0); this._n = new iriysoft.pengine.math.CVector2D(0, 0); this.p3 = new iriysoft.pengine.math.CVector2D(0, 0); }; v2.checkCollision = function (hit_mc) { var v2; var v5; this._p.init(0, 0); var v13 = false; var v3; var v4; var v12; this.oldPos.init(this.m_prevPosition.x, this.m_prevPosition.y); this._n.init(0, 0); this.n_part.init(0, 0); var v11; this.synchronizeMovie(); v11 = 0; v2 = 0; while (v2 < iriysoft.pengine.particle.CWheel.m_hitCount) { this.hitPointArray[v2].copyTo(this._p); this.m_mc.localToGlobal(this._p); this.hitArray[v2] = hit_mc.hitTest(this._p.x, this._p.y, true); if (this.hitArray[v2]) { v13 = true; v3 = v2; v11 += 1; } v2 += 1; } if (v11 == iriysoft.pengine.particle.CWheel.m_hitCount) { this.m_curPosition.x = this.m_prevPosition.x + (this.m_curPosition.x - this.m_prevPosition.x) * 0.3; this.m_curPosition.y = this.m_prevPosition.y + (this.m_curPosition.y - this.m_prevPosition.y) * 0.3; this.synchronizeMovie(); return undefined; } v2 = 0; if (v13) { while (!false) { v2 += 1; if (v2 == iriysoft.pengine.particle.CWheel.m_hitCount) { v2 = 0; } if (!this.hitArray[v2]) { v3 = -1; v5 = 0; while (v5 < iriysoft.pengine.particle.CWheel.m_hitCount) { v2 += 1; if (v2 == iriysoft.pengine.particle.CWheel.m_hitCount) { v2 = 0; } if (v3 == -1) { if (this.hitArray[v2]) { v3 = v2; this._n.plus(this.normalArray[v2]); this.normalArray[v2].copyTo(this.n_part); } } else { if (!this.hitArray[v2]) { v4 = v2 - 1; if (v4 < 0) { v4 = iriysoft.pengine.particle.CWheel.m_hitCount - 1; } this.intersArray.push({'k1': v3, 'k2': v4, 'n': new iriysoft.pengine.math.CVector2D(this.n_part.x, this.n_part.y)}); v3 = -1; } else { this._n.plus(this.normalArray[v2]); this.n_part.plus(this.normalArray[v2]); } } v5 += 1; } break; } } this.p3.init(0, 0); if (this.intersArray.length > 0) { this._n.normalize(); if (this.intersectionFlag) { this._n.x += this.lastN.x; this._n.y += this.lastN.y; this._n.x /= 2; this._n.y /= 2; } var v9; v12 = this.intersArray.length; v2 = 0; while (v2 < v12) { this.obj = this.intersArray.pop(); v3 = this.obj.k1; v4 = this.obj.k2; this.obj.n.copyTo(this.n_part); (this.m_curPosition.minusNew(this.m_prevPosition)).copyTo(this.p3); if (this._n.scalar(this.p3) < 0) { v9 = Math.atan2(this._n.y, this._n.x); this.p3.rotate(-v9); this.p3.x = -this.p3.x * this.m_koeffSpring; this.p3.rotate(v9); this.pushOut(v3, v4, this.n_part, hit_mc); this.m_prevPosition.x = this.m_curPosition.x - this.p3.x; this.m_prevPosition.y = this.m_curPosition.y - this.p3.y; } else { this.pushOut(v3, v4, this.n_part, hit_mc); } v2 += 1; } this.validateRotation(this._n, this.oldPos); this.intersectionFlag = true; this.m_curPosition.copyTo(this.lastIntersPoint); this._n.copyTo(this.lastN); } } else { if (this.intersectionFlag) { this.validateRotation(this.lastN, this.oldPos); this.intersectionFlag = false; } } this.synchronizeMovie(); }; v2.pushOut = function (k1, k2, n, hit_mc) { n.normalize(); if (k1 != k2) { var v7 = (new iriysoft.pengine.math.CVector2D(0, 0)).getDistanceTo(this.hitPointArray[k1], this.hitPointArray[k2]); v7 = this.m_radius - Math.abs(v7); this.m_curPosition.plus(n.multNew(v7)); this.m_prevPosition.plus(n.multNew(v7)); } else { var v6 = n.multNew(-this.m_radius); var v5 = new iriysoft.pengine.math.CVector2D(0, 0); var v3 = 0; var v4 = 0.03; while (!false) { v6.copyTo(v5); this.m_mc.localToGlobal(v5); if (!hit_mc.hitTest(v5.x, v5.y, true)) { v3 -= 1; this.m_curPosition.x -= n.x * v4; this.m_curPosition.y -= n.y * v4; this.m_prevPosition.plus(n.multNew(v4 * v3)); break; } v3 += 1; this.m_curPosition.x += n.x * v4; this.m_curPosition.y += n.y * v4; this.synchronizeMovie(); } } }; v2.validateRotation = function (n, oldPos) { if (!this.intersectionFlag && Math.abs(this.m_accSpeed) > 0.01) { if (Math.abs(this.m_accSpeed) < this.m_maxAccSpeed * 0.02 / 2) { this.m_accSpeed = 0; } else { if (this.m_accSpeed > 0) { this.m_accSpeed = this.m_maxAccSpeed * 0.02; } else { this.m_accSpeed = -this.m_maxAccSpeed * 0.02; } } } var v3 = new iriysoft.pengine.math.CVector2D(-n.y, n.x); var v6 = this.m_curPosition.minusNew(oldPos); var v4 = Math.atan2(v3.y, v3.x); var v2 = v6.rotateNew(-v4); this.m_speed = v2.x + this.m_accSpeed; v2.y = 0; v2.rotate(v4); var v5 = 1 - this.m_koeffSlip; this.m_curPosition.x = this.m_curPosition.x + v3.x * this.m_accSpeed * v5 - iriysoft.pengine.particle.CWheel.m_koeffFriction * v2.x; this.m_curPosition.y = this.m_curPosition.y + v3.y * this.m_accSpeed * v5 - iriysoft.pengine.particle.CWheel.m_koeffFriction * v2.y; this.m_accSpeed *= this.m_koeffSlip; }; v2.hasIntersection = function () { return this.intersectionFlag; }; v1.m_maxSpeed = 180; v1.m_hitCount = 16; v1.m_koeffFriction = 0.03; v1.ANGLE_180_DIV_PI = 57.29577951308232; ASSetPropFlags(iriysoft.pengine.particle.CWheel.prototype, null, 1); } #endinitclip } movieClip 1290 __Packages.CCar { #initclip if (!_global.CCar) { var v1 = function () { super(); this.bornTime = getTimer(); CCar.c_instance = this; this.inProcess = true; this.mode = true; this.inTrick = false; this.inTrickCompletes = this.inTrick; this.tricks = new Array(); this.inAirCounter = 0; this.combo = 0; this.trickSumCount = 0; this.endAnimFrame = 0; this.animLength = 0; this.canDie = false; this.trickSumCount = 0; this.tricksDone = new Array(); this.gameOverInTest = false; trace('start'); }; _global.CCar = v1; _global.CCar extends iriysoft.pengine.CVehicle; var v2 = v1.prototype; v2.initTricks = function () { this.tricks.push({'kk': 51, 'label': 'trick1', 'labelOut': '', 'labelText': 'trick1Done', 'endFrame': 20, 'score': 25}); this.tricks.push({'kk': 49, 'label': 'trick2', 'labelOut': '', 'labelText': 'trick2Done', 'endFrame': 39, 'score': 20}); this.tricks.push({'kk': 53, 'label': 'trick3', 'labelOut': '', 'labelText': 'trick3Done', 'endFrame': 63, 'score': 30}); this.tricks.push({'kk': 56, 'label': 'trick4', 'labelOut': '', 'labelText': 'trick4Done', 'endFrame': 97, 'score': 40}); this.tricks.push({'kk': 55, 'label': 'trick5', 'labelOut': '', 'labelText': 'trick5Done', 'endFrame': 120, 'score': 35}); this.tricks.push({'kk': 50, 'label': 'trick6', 'labelOut': '', 'labelText': 'trick6Done', 'endFrame': 136, 'score': 20}); this.tricks.push({'kk': 52, 'label': 'trick7', 'labelOut': '', 'labelText': 'trick7Done', 'endFrame': 160, 'score': 25}); this.tricks.push({'kk': 54, 'label': 'trick8', 'labelOut': '', 'labelText': 'trick8Done', 'endFrame': 186, 'score': 30}); }; v2.init = function (carPlace, engine, mmovie) { this.flipTime = getTimer(); if (carPlace.xx == undefined) { carPlace.xx = carPlace._x; } if (carPlace.yy == undefined) { carPlace.yy = carPlace._y; } carPlace._y = 0; carPlace._x = 0; var v6 = carPlace.attachMovie('dmCarBody', '_dmCarBody', 1010); this.mvWBack = carPlace.attachMovie('dmWheel', '_dmWheel1', 1020); this.mvWForward = carPlace.attachMovie('dmWheel', '_dmWheel2', 1030); this.mainMovie = mmovie; this.bar = this.mainMovie.attachMovie('trickBar', 'barMC', 1040); this.bar._alpha = 0; v6._x = carPlace.xx; v6._y = carPlace.yy; if ((CRace.__get__instance()).savedPoint != undefined) { trace('старт с сейв поинта'); v6._x = (CRace.__get__instance()).savedPoint._x; v6._y = (CRace.__get__instance()).savedPoint._y; trace((CRace.__get__instance()).savedScore); CGame.score = (CRace.__get__instance()).savedScore; } var v8 = (new iriysoft.pengine.constraint.CBoxConstrainSkeleton()).init((new iriysoft.pengine.particle.CWheel()).initWheel(0, 0, 6, 11, 180), (new iriysoft.pengine.particle.CParticle()).initParticle(0, 0, 4), (new iriysoft.pengine.particle.CParticle()).initParticle(0, 0, 4), (new iriysoft.pengine.particle.CWheel()).initWheel(0, 0, 6, 11, 180), (new iriysoft.pengine.constraint.CSpringConstraint()).init(0.3, 0.3), (new iriysoft.pengine.constraint.CSpringConstraint()).init(0.5, 0.5), (new iriysoft.pengine.constraint.CSpringConstraint()).init(0.8, 0.8), (new iriysoft.pengine.constraint.CSpringConstraint()).init(0.9, 0.9), (new iriysoft.pengine.constraint.CSpringConstraint()).init(0.9, 0.9), (new iriysoft.pengine.constraint.CSpringConstraint()).init(0.3, 0.3)); this.construct(v8, v6, v6, this.mvWBack, this.mvWForward); engine.gravity = 3; var v5 = iriysoft.pengine.CVehicle.getDefaultVehicleParam(); v5.accelerateForwardWheel = 10; v5.accelerateBackWheel = 28; v5.brakeForwardWheel = -10; v5.brakeBackWheel = -28; v5.accPercMult = engine.gravity * 8; v5.normalYLimit = 1; this.setVehicleParam(v5); v8.addToEngine(engine); this.resetFlipPoint(); mx.events.EventDispatcher.initialize(this); (this.__get__image()).carBody.gotoAndStop(4); var v7 = CRace.__get__instance(); var v2 = v7.m_level.mcBonusPlace; for (var v3 in v2) { if (v2[v3]._currentframe > 1) { v2[v3].gotoAndPlay(1); } } v2 = v7.mm.map.mcBonusPlace; for (v3 in v2) { v2[v3]._visible = true; if (v2[v3]._currentframe > 1) { v2[v3].gotoAndPlay(1); } } }; v2.process = function () { var v4 = 0; if (this.inProcess) { if (Key.isDown(13) && Key.isToggled(13) != this.key1Trigger || Key.isDown(32) && Key.isToggled(32) != this.key2Trigger) { if (getTimer() - this.flipTime > CCar.flipTimeout) { this.flipTime = getTimer(); this.m_vehicleMovie._xscale *= -1; this.mode = !this.mode; this.key1Trigger = Key.isToggled(13); this.key2Trigger = Key.isToggled(32); var v9 = this.m_accelerateForwardWheel; var v6 = this.m_accelerateBackWheel; var v7 = this.m_brakeForwardWheel; var v8 = this.m_brakeBackWheel; this.m_accelerateForwardWheel = -v6; this.m_accelerateBackWheel = -v9; this.m_brakeForwardWheel = -v8; this.m_brakeBackWheel = -v7; } } var v3 = 0; if (Key.isDown(37)) { v4 |= iriysoft.pengine.CVehicle.KM_MOVE_BODY_BACK; v3 = -1; } else { if (Key.isDown(39)) { v4 |= iriysoft.pengine.CVehicle.KM_MOVE_BODY_FORWARD; v3 = 1; } } if (this.mode) { v3 *= -1; } if (v3 == 0) { if ((this.__get__image()).carBody._currentframe > 4) { v3 = -1; } if ((this.__get__image()).carBody._currentframe < 4) { v3 = 1; } } if (v3 != 0) { var v10 = null; (this.__get__image()).carBody._currentframe += v3; var v5 = (this.__get__image()).carBody._currentframe; if (v5 < 1) { v5 = 1; } if (v5 > (this.__get__image()).carBody._totalframes - 1) { v5 = (this.__get__image()).carBody._totalframes - 1; } (this.__get__image()).carBody.gotoAndStop(v5); } if (Key.isDown(38) && !(CRace.__get__instance()).inPostGame) { if (!(CRace.__get__instance()).inDieMode) { v4 |= iriysoft.pengine.CVehicle.KM_ACCELERATE; } } else { if (Key.isDown(40) && !(CRace.__get__instance()).inPostGame) { if (!(CRace.__get__instance()).inDieMode) { v4 |= iriysoft.pengine.CVehicle.KM_BRAKE; } } } } super.process(); this.processKey(v4); this.processFlipPoint(); }; v1.makeTrickDone = function () { if (!(CRace.__get__instance()).inPostGame) { var v1 = CCar.__get__instance(); v1.inTrickCompletes = true; v1.combo += 1; var v2 = v1.combo; if (v2 > 5) { v2 = 5; } v1.trickSumCount += v1.tricks[v1.trickNum].score; if (v2 > 1) { v1.mainMovie.cmsg.gotoAndPlay(2); v1.mainMovie.cmsg.msg.gotoAndStop('x' + v2); (CRace.__get__instance())._parent.soundMC.gotoAndPlay('c' + v2); } v1.mainMovie.msg.gotoAndPlay(2); v1.mainMovie.msg.msg.gotoAndStop(v1.tricks[v1.trickNum].labelText); } }; v1.makeTrickAnimComplete = function (oneAnimTrick) { if (!(CRace.__get__instance()).inPostGame) { var v1 = CCar.__get__instance(); if (oneAnimTrick) { v1.mainMovie.msg.gotoAndPlay(2); v1.mainMovie.msg.msg.gotoAndStop(v1.tricks[v1.trickNum].labelText); v1.combo += 1; var v2 = v1.combo; if (v2 > 5) { v2 = 5; } v1.trickSumCount += v1.tricks[v1.trickNum].score; if (v2 > 1) { v1.mainMovie.cmsg.gotoAndPlay(2); v1.mainMovie.cmsg.msg.gotoAndStop('x' + v2); (CRace.__get__instance())._parent.soundMC.gotoAndPlay('c' + v2); } } v1.mvWForward._visible = true; v1.mvWBack._visible = v1.mvWForward._visible; v1.inTrick = false; v1.inTrickCompletes = v1.inTrick; } }; v2.checkDie = function () { return this.onGround() && this.inTrick && this.canDie; }; v2.resetFlipPoint = function () { this.m_point270 = 0; this.m_point90 = 0; this.m_carAngle = 0; this.m_prevCarAngle = 0; }; v2.processFlipPoint = function () { this.m_prevCarAngle = this.m_carAngle; this.m_carAngle = this.m_vehicleAngle; if (this.onGround()) { this.resetFlipPoint(); return undefined; } if (this.m_carAngle * this.m_prevCarAngle < 0) { return undefined; } if (this.m_carAngle > CCar.TRICK_ANGLE && this.m_prevCarAngle < CCar.TRICK_ANGLE) { this.m_point90 += 1; } else { if (this.m_carAngle < CCar.TRICK_ANGLE && this.m_prevCarAngle > CCar.TRICK_ANGLE) { this.m_point90 -= 1; } else { if (this.m_carAngle > -CCar.TRICK_ANGLE && this.m_prevCarAngle < -CCar.TRICK_ANGLE) { this.m_point270 += 1; } else { if (this.m_carAngle < -CCar.TRICK_ANGLE && this.m_prevCarAngle > -CCar.TRICK_ANGLE) { this.m_point270 -= 1; } } } } if (this.m_point90 > 0 && this.m_point270 > 0) { this.makeTrick(CCar.TRICK_FRONT_FLIP); this.resetFlipPoint(); } else { if (this.m_point90 < 0 && this.m_point270 < 0) { this.makeTrick(CCar.TRICK_BACK_FLIP); this.resetFlipPoint(); } } }; v2.makeTrick = function (tirckID) { this.dispatchEvent({'type': CCar.EVENT_TRICK, 'target': this, 'trickID': tirckID}); }; v2.getMC = function () { return this.m_vehicleMovie; }; v2.getHitForBonus = function () { return this.m_vehicleMovie.mcHit; }; v2.checkDeathPoints = function (hitMov) { var v2 = new Object(); for (var v4 in this.m_vehicleMovie.mcDeathPoints) { v2.x = this.m_vehicleMovie.mcDeathPoints[v4]._x; v2.y = this.m_vehicleMovie.mcDeathPoints[v4]._y; this.m_vehicleMovie.mcDeathPoints.localToGlobal(v2); if (hitMov.hitTest(v2.x, v2.y, true)) { return true; } } return false; }; v2.__get__image = function () { return this.m_vehicleMovie; }; v1.__get__instance = function () { return CCar.c_instance; }; v2.bodyAnimDir = 0; v1.flipTimeout = 300; v1.TRICK_ANGLE = 130; v1.EVENT_TRICK = 'trick'; v1.TRICK_FRONT_FLIP = 0; v1.TRICK_BACK_FLIP = 1; v2.addProperty('image', v2.__get__image, function () {}); v1.addProperty('instance', v1.__get__instance, function () {}); ASSetPropFlags(_global.CCar.prototype, null, 1); } #endinitclip } movieClip 1291 __Packages.iriysoft.pengine.constraint.CBoxConstrainSkeleton { #initclip if (!_global.iriysoft) { _global.iriysoft = new Object(); } if (!_global.iriysoft.pengine) { _global.iriysoft.pengine = new Object(); } if (!_global.iriysoft.pengine.constraint) { _global.iriysoft.pengine.constraint = new Object(); } if (!_global.iriysoft.pengine.constraint.CBoxConstrainSkeleton) { var v1 = function () {}; iriysoft.pengine.constraint.CBoxConstrainSkeleton = v1; var v2 = v1.prototype; v2.init = function (a, b, c, d, ab, ac, ad, bc, bd, cd) { this.m_A = a; this.m_B = b; this.m_C = c; this.m_D = d; this.m_AB = ab; this.m_AB.p1 = a; this.m_AB.p2 = b; this.m_AC = ac; this.m_AC.p1 = a; this.m_AC.p2 = c; this.m_AD = ad; this.m_AD.p1 = a; this.m_AD.p2 = d; this.m_BC = bc; this.m_BC.p1 = b; this.m_BC.p2 = c; this.m_BD = bd; this.m_BD.p1 = b; this.m_BD.p2 = d; this.m_CD = cd; this.m_CD.p1 = c; this.m_CD.p2 = d; this.m_ABC = new iriysoft.pengine.constraint.CPenetrationConstraint(this.m_D, this.m_C, this.m_B); this.m_DCB = new iriysoft.pengine.constraint.CPenetrationConstraint(this.m_A, this.m_B, this.m_C); return this; }; v2.changeGeometry = function (pA, pB, pC, pD) { this.m_A.moveTo(pA.x, pA.y); this.m_B.moveTo(pB.x, pB.y); this.m_C.moveTo(pC.x, pC.y); this.m_D.moveTo(pD.x, pD.y); this.m_AB.fixDistance(); this.m_AC.fixDistance(); this.m_AD.fixDistance(); this.m_BC.fixDistance(); this.m_BD.fixDistance(); this.m_CD.fixDistance(); this.m_ABC.fixDistance(); this.m_DCB.fixDistance(); }; v2.addToEngine = function (engine) { engine.addParticle(this.m_A); engine.addParticle(this.m_B); engine.addParticle(this.m_C); engine.addParticle(this.m_D); engine.addConstraint(this.m_AB); engine.addConstraint(this.m_AC); engine.addConstraint(this.m_AD); engine.addConstraint(this.m_BC); engine.addConstraint(this.m_BD); engine.addConstraint(this.m_CD); engine.addConstraint(this.m_ABC); engine.addConstraint(this.m_DCB); }; v2.__get__A = function () { return this.m_A; }; v2.__get__B = function () { return this.m_B; }; v2.__get__C = function () { return this.m_C; }; v2.__get__D = function () { return this.m_D; }; v2.__get__AB = function () { return this.m_AB; }; v2.__get__AC = function () { return this.m_AC; }; v2.__get__AD = function () { return this.m_AD; }; v2.__get__BC = function () { return this.m_BC; }; v2.__get__BD = function () { return this.m_BD; }; v2.__get__CD = function () { return this.m_CD; }; v2.addProperty('A', v2.__get__A, function () {}); v2.addProperty('AB', v2.__get__AB, function () {}); v2.addProperty('AC', v2.__get__AC, function () {}); v2.addProperty('AD', v2.__get__AD, function () {}); v2.addProperty('B', v2.__get__B, function () {}); v2.addProperty('BC', v2.__get__BC, function () {}); v2.addProperty('BD', v2.__get__BD, function () {}); v2.addProperty('C', v2.__get__C, function () {}); v2.addProperty('CD', v2.__get__CD, function () {}); v2.addProperty('D', v2.__get__D, function () {}); ASSetPropFlags(iriysoft.pengine.constraint.CBoxConstrainSkeleton.prototype, null, 1); } #endinitclip } movieClip 1292 __Packages.iriysoft.pengine.constraint.IConstraint { #initclip if (!_global.iriysoft) { _global.iriysoft = new Object(); } if (!_global.iriysoft.pengine) { _global.iriysoft.pengine = new Object(); } if (!_global.iriysoft.pengine.constraint) { _global.iriysoft.pengine.constraint = new Object(); } if (!_global.iriysoft.pengine.constraint.IConstraint) { _global.iriysoft.pengine.constraint.IConstraint = function () {}; } #endinitclip } movieClip 1293 __Packages.iriysoft.pengine.constraint.CPenetrationConstraint { #initclip if (!_global.iriysoft) { _global.iriysoft = new Object(); } if (!_global.iriysoft.pengine) { _global.iriysoft.pengine = new Object(); } if (!_global.iriysoft.pengine.constraint) { _global.iriysoft.pengine.constraint = new Object(); } if (!_global.iriysoft.pengine.constraint.CPenetrationConstraint) { var v1 = function (np0, np1, np2) { this.p0 = np0; this.p1 = np1; this.p2 = np2; this.fixDistance(); }; iriysoft.pengine.constraint.CPenetrationConstraint = v1; var v2 = v1.prototype; _global.iriysoft.pengine.constraint.CPenetrationConstraint implements _global.iriysoft.pengine.constraint.IConstraint; v2.fixDistance = function () { this.sign = this.p0.pos.getDistanceTo(this.p1.pos, this.p2.pos); if (this.sign < 0) { this.sign = -1; } else { this.sign = 1; } this.n = new iriysoft.pengine.math.CVector2D(); }; v2.resolve = function () { var v2 = this.p0.pos.getDistanceTo(this.p1.pos, this.p2.pos); if (this.sign * v2 <= 2) { this.n.init(this.p2.pos.x, this.p2.pos.y); this.n.minus(this.p1.pos); this.n.normalize(); this.n.rotate(iriysoft.pengine.constraint.CPenetrationConstraint.PI2 * this.sign); this.n.mult(Math.abs(v2) + 1); this.p1.pos.minus(this.n); } }; v1.PI2 = 1.570796326794897; ASSetPropFlags(iriysoft.pengine.constraint.CPenetrationConstraint.prototype, null, 1); } #endinitclip } movieClip 1294 __Packages.iriysoft.pengine.constraint.CSpringConstraint { #initclip if (!_global.iriysoft) { _global.iriysoft = new Object(); } if (!_global.iriysoft.pengine) { _global.iriysoft.pengine = new Object(); } if (!_global.iriysoft.pengine.constraint) { _global.iriysoft.pengine.constraint = new Object(); } if (!_global.iriysoft.pengine.constraint.CSpringConstraint) { var v1 = function () {}; iriysoft.pengine.constraint.CSpringConstraint = v1; var v2 = v1.prototype; _global.iriysoft.pengine.constraint.CSpringConstraint implements _global.iriysoft.pengine.constraint.IConstraint; v2.init = function (koeffStiffPress, koeffStiffStretch, p1, p2) { this.m_p1 = p1; this.m_p2 = p2; this.m_koeffStiffPress = koeffStiffPress; this.m_koeffStiffStretch = koeffStiffStretch; this.fixDistance(); return this; }; v2.fixDistance = function () { this.m_relaxLen = iriysoft.pengine.math.CVector2D.getDistanceBetween(this.m_p1.pos, this.m_p2.pos); }; v2.resolve = function () { var v3 = this.m_p1.pos.x - this.m_p2.pos.x; var v4 = this.m_p1.pos.y - this.m_p2.pos.y; var v6 = Math.sqrt(v3 * v3 + v4 * v4); var v9 = (v6 - this.m_relaxLen) / v6; var v5; if (v6 > this.m_relaxLen) { v5 = this.m_koeffStiffStretch; } else { v5 = this.m_koeffStiffPress; } var v7 = this.m_p1.mass; var v8 = this.m_p2.mass; var v2 = v9 * v5 / (v7 + v8); this.m_p1.pos.x -= v3 * v7 * v2; this.m_p1.pos.y -= v4 * v7 * v2; this.m_p2.pos.x += v3 * v8 * v2; this.m_p2.pos.y += v4 * v8 * v2; }; v2.__set__p1 = function (nP1) { this.m_p1 = nP1; return this.__get__p1(); }; v2.__get__p1 = function () { return this.m_p1; }; v2.__set__p2 = function (nP2) { this.m_p2 = nP2; return this.__get__p2(); }; v2.__get__p2 = function () { return this.m_p2; }; v2.addProperty('p1', v2.__get__p1, v2.__set__p1); v2.addProperty('p2', v2.__get__p2, v2.__set__p2); ASSetPropFlags(iriysoft.pengine.constraint.CSpringConstraint.prototype, null, 1); } #endinitclip } movieClip 1295 __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 += 1; } } }; 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 1296 __Packages.mx.utils.Delegate { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.utils) { _global.mx.utils = new Object(); } if (!_global.mx.utils.Delegate) { var v1 = function (f) { super(); this.func = f; }; mx.utils.Delegate = v1; mx.utils.Delegate extends Object; var v2 = v1.prototype; v1.create = function (obj, func) { var v2 = function () { var v3 = arguments.callee.target; var v2 = arguments.callee.func; return v2.apply(v3, arguments); }; v2.target = obj; v2.func = func; return v2; }; v2.createDelegate = function (obj) { return mx.utils.Delegate.create(obj, this.func); }; ASSetPropFlags(mx.utils.Delegate.prototype, null, 1); } #endinitclip } button 1274 { on (press) { openSite(); } } movieClip 1278 { } movieClip 1279 { } instance of movieClip 1279 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { t = _root.getBytesTotal(); l = _root.getBytesLoaded(); bar._xscale = 100 * l / t; p = Math.round(1000 * l / t) / 10; if (p == Math.floor(p)) { p += '.0'; } p += '%'; tf.text = p; if (t > 0) { if (l < t && _alpha < 100) { _alpha = _alpha + 5; } if (l == t && _alpha > 0) { _alpha = _alpha - 5; } } } } frame 3 { stop(); } movieClip 1282 { } instance of movieClip 1282 { onClipEvent (load) { _alpha = 0; state = 0; _root.stop(); } onClipEvent (enterFrame) { l = _root.getBytesLoaded(); t = _root.getBytesTotal(); if (state == 0) { _alpha = _alpha + _root.loaderAnimDelta; if (_alpha >= 100) { _alpha = 100; state = 1; startPause = getTimer(); } } else { if (state == 1 && t == l && l > 10 && getTimer() - startPause > _root.loaderAnimPause) { this._alpha -= _root.loaderAnimDelta; if (_alpha < 0) { _root.gotoAndStop('lbStart'); } } } } }




https://swfchan.com/53/262749/info.shtml
Created: 10/2 -2026 01:05:17 Last modified: 10/2 -2026 01:05:17 Server time: 10/02 -2026 22:58:22