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

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

Rocky Rider.swf

This is the info page for
Flash #71765

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


ActionScript [AS1/AS2]
Combined Code
movieClip 1 dmSoundService { #initclip Object.registerClass('dmSoundService', CSoundService); #endinitclip } movieClip 7 { } movieClip 8 AnimDoorPic { #initclip Object.registerClass('AnimDoorPic', cBonus); #endinitclip } movieClip 14 deadBlink { frame 87 { stop(); } } frame 1 { function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; var pv; mb = '__mochibot__'; mbc = 'mochibot.com'; g = _global ? _global : _level0._root; if (g[mb + swfid]) { return g[mb + swfid]; } s = System.security; x = mc._root.getSWFVersion; fv = x ? mc.getSWFVersion() : (_global ? 6 : 5); if (!s) { s = {}; } sb = s.sandboxType; if (sb == 'localWithFile') { return null; } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } pv = (fv == 5) ? /:$version : System.capabilities.version; u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : ''); lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv); g[mb + 'level'] = lv; if (fv == 5) { res = '_level' + lv; if (!eval(res)) { loadMovieNum(u, lv); } return res; } res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); return res; } __com_mochibot__('cce45d95', this, 10301, true); stop(); } movieClip 19 { } movieClip 21 { frame 100 { stop(); } } movieClip 24 { } movieClip 25 { } // unknown tag 88 length 133 movieClip 30 { } movieClip 36 { } movieClip 38 { frame 1 { stop(); } } movieClip 39 { } movieClip 40 { } movieClip 41 { frame 1 { stop(); } frame 21 { _parent._parent.gotoAndPlay('lb2baner'); } } movieClip 42 { } instance of movieClip 42 { onClipEvent (load) { var numPercentage = 0; } onClipEvent (enterFrame) { if (_parent.getBytesLoaded() > 1 && _parent.getBytesTotal() > 1) { numPercentage = Math.floor(100 * _parent.getBytesLoaded() / _parent.getBytesTotal()); this.mcStripe.gotoAndStop(int(numPercentage) + 1); this.txtPercentage = String(numPercentage) + '%'; if (numPercentage >= 100 && this.mcCar._currentframe == 1) { this.mcCar.gotoAndPlay(2); } } } } movieClip 45 { } button 47 { on (release) { getURL('http://www.chillcade.com', '_blank'); } } // unknown tag 88 length 43 movieClip 1093 __Packages.IPauseListener { #initclip if (!_global.IPauseListener) { _global.IPauseListener = function () {}; } #endinitclip } movieClip 1094 __Packages.cBonus { #initclip if (!_global.cBonus) { var v1 = function () { super(); this.type = 0; CLevel.bonusList.push(this); CGameService.addPauseListener(this); this.state = false; }; _global.cBonus = v1; _global.cBonus extends MovieClip; var v2 = v1.prototype; _global.cBonus implements _global.IPauseListener; v2.myHitTest = function (mc) { return this.hitTest(mc); }; v2.enablePause = function () { if (this.type == 0) { this.stop(); } }; v2.disablePause = function () { if (this.type == 0) { this.play(); } }; v2.hitThis = function (w) {}; v2.getHitZona = function () { var v2 = this._parent._name; return (CRaceEngine.m_level.getHitPlace())['levelhit_' + (v2.split('_'))[1]]; }; v2.visBonus = function (b) { (this.getHitZona())['b_' + this._name]._visible = b; this._visible = b; }; v2.timerMax = 30; v2.tim = 0; v2.type = 0; ASSetPropFlags(_global.cBonus.prototype, null, 1); } #endinitclip } movieClip 1095 __Packages.CLevel { #initclip if (!_global.CLevel) { var v1 = function () { super(); }; _global.CLevel = v1; _global.CLevel extends MovieClip; var v2 = v1.prototype; v2.initLevel = function (levelNum) { CLevel.bonusList = []; this.numlevel = levelNum; this.speedFon = 30; CConstants.middleXspeed = 0.35; if (levelNum == 4) { this.speedFon = 10; } if (levelNum > 9) { CConstants.middleXspeed = 0.85; } this.m_levelPlace = this.attachMovie('idLevel1', '_levelName', CLevel.DEPTH_LEVEL); this.m_back = this.attachMovie('idLevelMiddle' + CConstants.middleLevelNames[levelNum], '_levelMidde1', CLevel.DEPTH_MIDDLE); this.m_back.cacheAsBitmap = true; this.m_hitPlace = this.m_levelPlace.mcHit; this.m_engine = new CParticleEngine(this.m_hitPlace, CConstants.GRAVITY); this.m_camera = new CCamera(); CGame.blinkTimer(false); this.mcBonusPlace = this.m_levelPlace.createEmptyMovieClip('mcBonusPlace', CLevel.DEPTH_BONUS_PLACE); this.mcDrawPlace = this.m_levelPlace.createEmptyMovieClip('mcDrawPlace', CLevel.DEPTH_DRAW); this.mcDrawPlace.cacheAsBitmap = true; this.m_vehiclePlace = this.m_levelPlace.createEmptyMovieClip('m_vehiclePlace', CLevel.DEPTH_VECHICLE_PLACE); this.curHit = 0; this.curMaxX = 0; this.curMinX = 0; var v3 = this.m_hitPlace.attachMovie('levelhit_0', 'levelhit_0', this.m_hitPlace.getNextHighestDepth()); this.addNextHit(); }; v2.addLevelSegment = function (x, y, num) { var v2 = this.mcDrawPlace.attachMovie('pic' + CConstants.AllLevelhit[this.numlevel][num], 'pic_' + num, this.mcDrawPlace.getNextHighestDepth()); v2._x = x; v2._y = y; v2.cacheAsBitmap = true; v2 = this.mcBonusPlace.attachMovie('bon' + CConstants.AllLevelhit[this.numlevel][num], 'bon_' + num, this.mcBonusPlace.getNextHighestDepth()); v2._x = x; v2._y = y; }; v2.delHit = function (num) { this.m_hitPlace['levelhit_' + num].removeMovieClip(); this.mcDrawPlace['pic_' + num].removeMovieClip(); this.mcBonusPlace['bon_' + num].removeMovieClip(); }; v2.setMaxMin = function () { this.curMaxX = this.m_hitPlace['levelhit_' + this.curHit]._x; this.curMinX = this.m_hitPlace['levelhit_' + (this.curHit - 1)]._x; }; v2.addNextHit = function () { this.delHit(this.curHit - 2); var v3 = this.m_hitPlace['levelhit_' + this.curHit]; var v2 = {'x': v3.mcStartPoint._x, 'y': v3.mcStartPoint._y}; v3.localToGlobal(v2); this.m_hitPlace.globalToLocal(v2); ++this.curHit; var v4 = this.m_hitPlace.attachMovie('levelhit_' + CConstants.AllLevelhit[this.numlevel][this.curHit], 'levelhit_' + this.curHit, this.m_hitPlace.getNextHighestDepth()); v4._x = v2.x; v4._y = v2.y; this.addLevelSegment(v2.x, v2.y, this.curHit); this.setMaxMin(); this.m_camera.setLevelSize(this.m_hitPlace._width, this.m_hitPlace._height); }; v2.addPrevHit = function () { this.delHit(this.curHit); var v3 = this.m_hitPlace['levelhit_' + (this.curHit - 2)]; var v2 = this.m_hitPlace.attachMovie('levelhit_' + CConstants.AllLevelhit[this.numlevel][this.curHit - 3], 'levelhit_' + (this.curHit - 3), this.m_hitPlace.getNextHighestDepth()); v2._x = v3._x - v2.mcStartPoint._x; v2._y = v3._y - v2.mcStartPoint._y; this.addLevelSegment(v2._x, v2._y, this.curHit - 3); --this.curHit; this.setMaxMin(); this.m_camera.setLevelSize(this.m_hitPlace._width, this.m_hitPlace._height); }; v2.BoomBomb = function () { CSoundService.playSound(CConstants.SND_BOOM, true, 1); }; v2.initCamera = function (movieCenteredAtScreen, windowWidth, windowHeight, lookAtX, lookAtY) { this.m_camera.init(movieCenteredAtScreen, this, windowWidth, windowHeight); this.m_camera.setLookPoint(lookAtX, lookAtY); this.m_camera.setLevelSize(this.m_hitPlace._width, this.m_hitPlace._height); this.m_camera.process(); }; v2.process = function () { this.m_back._x = -Math.round(this._x * CConstants.middleXspeed); this.m_back._y = -Math.round(this._y * CConstants.middleYspeed); CRaceEngine.fonMC._x = Math.round(this._x / this.speedFon) % int(CRaceEngine.fonMC._width / 2); this.m_engine.process(); this.m_camera.process(); if (this._x < -this.curMaxX) { this.addNextHit(); } if (this._x > -this.curMinX) { this.addPrevHit(); } }; v2.checkHitBonus = function (fw, bw, body) { var v5 = fw.getMovie(); var v4 = bw.getMovie(); var v3 = body.getHit4Bonus(); var v1 = 0; while (v1 < CLevel.bonusList.length) { if (CLevel.bonusList[v1] == undefined) { CLevel.bonusList.splice(v1, 1); } else { if (CLevel.bonusList[v1].myHitTest(v5)) { CLevel.bonusList[v1].hitThis(fw); } if (CLevel.bonusList[v1].myHitTest(v4)) { CLevel.bonusList[v1].hitThis(bw); } if (CLevel.bonusList[v1].myHitTest(v3)) { CLevel.bonusList[v1].hitThis(fw); } } ++v1; } }; v2.getEngine = function () { return this.m_engine; }; v2.getLevelPlace = function () { return this.m_levelPlace; }; v2.getVehiclePlace = function () { return this.m_vehiclePlace; }; v2.getHitPlace = function () { return this.m_hitPlace; }; v2.getBikePlace = function () { var v2 = new Object(); v2.x = 0; v2.y = 0; this.m_levelPlace.mcBikePlace.localToGlobal(v2); (this.getVehiclePlace()).globalToLocal(v2); return v2; }; v1.DEPTH_BONUS_PLACE = 290; v1.DEPTH_VECHICLE_PLACE = 150; v1.DEPTH_DRAW = 101; v1.DEPTH_LEVEL = 110; v1.DEPTH_MIDDLE = 100; v1.DEPTH_HIT_LEVEL = 105; ASSetPropFlags(_global.CLevel.prototype, null, 1); } #endinitclip } movieClip 1096 __Packages.CParticleEngine { #initclip if (!_global.CParticleEngine) { var v1 = function (hitMovie, nGravity, koeffDamp) { this.m_particles = new Array(); this.m_constraints = new Array(); this.setHitMovie(hitMovie); this.init(nGravity, koeffDamp); }; _global.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 () { this.drawSpringConstraints(); 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 / CParticleEngine.REPEAT_COUNT); ++v2; } var v3 = 0; while (v3 < CParticleEngine.REPEAT_COUNT) { v2 = 0; while (v2 < this.m_particles.length) { this.m_particles[v2].verlet(CParticleEngine.D_TIME, this.m_koeffDamp); ++v2; } v2 = 0; while (v2 < this.m_constraints.length) { this.m_constraints[v2].resolve(); ++v2; } v2 = 0; while (v2 < this.m_particles.length) { this.m_particles[v2].checkCollision(this.m_hitMovie); ++v2; } ++v3; } v2 = 0; while (v2 < this.m_particles.length) { this.m_particles[v2].accelerate.init(0, 0); ++v2; } }; 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) { } }; v2.drawSpringConstraints = function () { if (CGameService.__get__DEBUG_MODE()) { var v4 = new Object(); var v3 = new Object(); var v2 = 0; while (v2 < this.m_constraints.length) { v4.x = this.m_constraints[v2].m_p1.pos.x; v4.y = this.m_constraints[v2].m_p1.pos.y; v3.x = this.m_constraints[v2].m_p2.pos.x; v3.y = this.m_constraints[v2].m_p2.pos.y; this.m_hitMovie.localToGlobal(v4); this.m_hitMovie.localToGlobal(v3); CGameService.drawLine(v4.x, v4.y, v3.x, v3.y, 0.5, 0, 100); ++v2; } } }; v1.SEC_PER_FRAME = 0.04166666666666666; v1.REPEAT_COUNT = 3; v1.D_TIME = CParticleEngine.SEC_PER_FRAME / CParticleEngine.REPEAT_COUNT; v2.addProperty('gravity', v2.__get__gravity, v2.__set__gravity); ASSetPropFlags(_global.CParticleEngine.prototype, null, 1); } #endinitclip } movieClip 1097 __Packages.CParticle { #initclip if (!_global.CParticle) { var v1 = function () { this.m_curPosition = new CVector2D(); this.m_prevPosition = new CVector2D(); this.m_accelerate = new CVector2D(); this.m_buckup = new CVector2D(); }; _global.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; }; 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(_global.CParticle.prototype, null, 1); } #endinitclip } movieClip 1098 __Packages.CVector2D { #initclip if (!_global.CVector2D) { var v1 = function (nx, ny) { this.init(nx, ny); }; _global.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.getUgol = function () { return Math.atan2(this.y, this.x); }; v2.duplicate = function () { return new CVector2D(this.x, this.y); }; v2.minus = function (v) { this.x -= v.x; this.y -= v.y; }; v2.minusNew = function (v) { return new 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 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.reflectFromNormal = function (n) { var v2 = Math.atan2(n.y, n.x); this.rotate(-v2); this.x = -this.x; this.rotate(v2); }; v2.rotate = function (u) { var v4 = this.x; var v3 = this.y; this.x = v4 * Math.cos(u) - v3 * Math.sin(u); this.y = v4 * Math.sin(u) + v3 * Math.cos(u); }; v2.rotateNew = function (u) { return new 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 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 CVector2D(this.x + v.x, this.y + v.y); }; v2.getDistanceTo = function (p1, p2) { var v3 = p1.y - p2.y; var v2 = p2.x - p1.x; var v6 = p1.x * (p2.y - p1.y) - p1.y * (p2.x - p1.x); var v5 = Math.sqrt(v3 * v3 + v2 * v2); v3 /= v5; v2 /= v5; v6 /= v5; return v3 * this.x + v2 * this.y + v6; }; v2.toString = function () { return '( ' + this.x + ', ' + this.y + ' )'; }; ASSetPropFlags(_global.CVector2D.prototype, null, 1); } #endinitclip } movieClip 1099 __Packages.IConstraint { #initclip if (!_global.IConstraint) { _global.IConstraint = function () {}; } #endinitclip } movieClip 1100 __Packages.CGameService { #initclip if (!_global.CGameService) { var v1 = function (rootPointer, soundsNames) { CGameService.m_instance = this; this.m_root = rootPointer; this.m_debugMode = false; this.m_pauseListeners = new CGroup(); this.m_score = 0; CSoundService.createSoundService(soundsNames, this.m_root, 9999); }; _global.CGameService = v1; var v2 = v1.prototype; v1.__get__instance = function () { return CGameService.m_instance; }; v1.__get___root = function () { return CGameService.m_instance.m_root; }; v1.__get__score = function () { return CGameService.m_instance.m_score; }; v1.__set__score = function (score) { CGameService.m_instance.m_score = score; return CGameService.__get__score(); }; v1.__set__pauseOn = function (pauseState) { CGameService.m_instance.m_pauseOn = pauseState; if (pauseState) { CGameService.m_instance.m_pauseListeners.callFunction('enablePause'); } else { CGameService.m_instance.m_pauseListeners.callFunction('disablePause'); } return CGameService.__get__pauseOn(); }; v1.__get__pauseOn = function () { return CGameService.m_instance.m_pauseOn; }; v1.addPauseListener = function (obj) { CGameService.m_instance.m_pauseListeners.addElement(obj); }; v1.removePauseListener = function (obj) { CGameService.m_instance.m_pauseListeners.removeElement(obj); }; v1.getGlobalXY = function (pX, pY, movie) { var v1 = {'x': pX, 'y': pY}; movie.localToGlobal(v1); return v1; }; v1.__get__DEBUG_MODE = function () { return CGameService.m_instance.m_debugMode; }; v1.__set__DEBUG_MODE = function (debugMode) { CGameService.m_instance.m_debugMode = debugMode; if (debugMode) { CGameService.m_instance.m_drawArea = CGameService.m_instance.m_root.createEmptyMovieClip('__drawArea', CGameService.DEPTH_DRAW_AREA); } else { CGameService.m_instance.m_drawArea.removeMovieClip(); } return CGameService.__get__DEBUG_MODE(); }; v1.drawLine = function (x1, y1, x2, y2, thickness, rgb, alpha) { if (CGameService.m_instance.m_debugMode) { CGameService.m_instance.m_drawArea.lineStyle(thickness, rgb, alpha); CGameService.m_instance.m_drawArea.moveTo(x1, y1); CGameService.m_instance.m_drawArea.lineTo(x2, y2); } }; v1.clearAll = function () { if (CGameService.m_instance.m_debugMode) { CGameService.m_instance.m_drawArea.clear(); } }; v1.numberToStringWith0 = function (val) { if (val < 10) { return String('0' + val.toString()); } return val.toString(); }; v1.setFilter = function (movie, filter) { var v1 = new Array(); v1.push(filter); movie.filters = v1; }; v1.DEPTH_DRAW_AREA = 32001; v1.addProperty('DEBUG_MODE', v1.__get__DEBUG_MODE, v1.__set__DEBUG_MODE); v1.addProperty('_root', v1.__get___root, function () {}); v1.addProperty('instance', v1.__get__instance, function () {}); v1.addProperty('pauseOn', v1.__get__pauseOn, v1.__set__pauseOn); v1.addProperty('score', v1.__get__score, v1.__set__score); ASSetPropFlags(_global.CGameService.prototype, null, 1); } #endinitclip } movieClip 1101 __Packages.CGroup { #initclip if (!_global.CGroup) { var v1 = function () { this.m_elements = new Array(); }; _global.CGroup = v1; var v2 = v1.prototype; v2.addElement = function (element) { var v2 = 0; while (v2 < this.m_elements.length) { if (this.m_elements[v2] == null) { this.m_elements[v2] = element; return undefined; } ++v2; } this.m_elements.push(element); }; v2.removeElement = function (element) { var v2 = this.m_elements.length - 1; while (v2 >= 0) { if (this.m_elements[v2] == element) { this.m_elements[v2] = null; } --v2; } }; v2.getElementAt = function (elementNum) { return this.m_elements[elementNum]; }; v2.removeAllElements = function () { var v2 = this.m_elements.length - 1; while (v2 >= 0) { this.m_elements[v2] = null; --v2; } }; v2.callFunction = function (funcName) { var v2 = this.m_elements.length - 1; while (v2 >= 0) { if (this.m_elements[v2] != null) { this.m_elements[v2][funcName](); } --v2; } }; v2.callFunctionParam1 = function (funcName, param1) { var v2 = this.m_elements.length - 1; while (v2 >= 0) { if (this.m_elements[v2] != null) { this.m_elements[v2][funcName](param1); } --v2; } }; v2.callFunctionParam2 = function (funcName, param1, param2) { var v2 = this.m_elements.length - 1; while (v2 >= 0) { if (this.m_elements[v2] != null) { this.m_elements[v2][funcName](param1, param2); } --v2; } }; ASSetPropFlags(_global.CGroup.prototype, null, 1); } #endinitclip } movieClip 1102 __Packages.CSoundService { #initclip if (!_global.CSoundService) { var v1 = function () { super(); }; _global.CSoundService = v1; _global.CSoundService extends MovieClip; var v2 = v1.prototype; v2.realPlaySound = function (id, repeatCount) { if (this.m_soundOff) { return undefined; } (Sound(this.m_sounds[id])).start(0, repeatCount); }; v2.processSounds = function () { var v2 = 0; while (v2 < this.m_sounds.length) { if (this.m_soundsState[v2] > 0) { this.realPlaySound(v2, this.m_soundsState[v2]); this.m_soundsState[v2] = CSoundService.ST_PLAY; break; } ++v2; } }; v2.init = function (soundNames) { this.m_soundsNames = soundNames; this.m_sounds = new Array(soundNames.length); this.m_soundsState = new Array(soundNames.length); var v2 = 0; while (v2 < soundNames.length) { var v4 = this.createEmptyMovieClip('_contMovie' + v2, 1000 + v2); var v3 = new Sound(v4); v3.attachSound(soundNames[v2]); this.m_soundsState[v2] = CSoundService.ST_STOP; v3.sounID = v2; v3.parent = CSoundService.m_instance; v3.onSoundComplete = function () { this.parent.m_soundsState[this.sounID] = CSoundService.ST_STOP; }; this.m_sounds[v2] = v3; ++v2; } this.onEnterFrame = this.processSounds; }; v1.createSoundService = function (soundNames, soundsPlace, depthInSoundsPlace) { CSoundService.m_instance = CSoundService(soundsPlace.attachMovie('dmSoundService', '__SoundServiceObject', depthInSoundsPlace)); CSoundService.m_instance.init(soundNames); return CSoundService.m_instance; }; v1.playLoopSound = function (soundID) { if (CSoundService.m_instance.m_loopSoundID >= 0 && CSoundService.m_instance.m_loopSoundID != soundID) { CSoundService.stopSound(CSoundService.m_instance.m_loopSoundID); } CSoundService.m_instance.m_loopSoundID = soundID; if (!CSoundService.soundIsPlay(CSoundService.m_instance.m_loopSoundID)) { CSoundService.playCurLoopSound(); } }; v1.playCurLoopSound = function () { if (!CSoundService.m_instance.m_soundOff) { trace('playSound' + CSoundService.m_instance.m_soundOff); CSoundService.playSound(CSoundService.m_instance.m_loopSoundID, true, 9999); } }; v1.stopCurLoopSound = function () { CSoundService.stopSound(CSoundService.m_instance.m_loopSoundID); CSoundService.m_instance.m_loopSoundID = -1; }; v1.soundOff = function () { var v1 = 0; while (v1 < CSoundService.m_instance.m_sounds.length) { CSoundService.stopSound(v1); ++v1; } CSoundService.m_instance.m_soundOff = true; }; v1.soundOn = function () { CSoundService.m_instance.m_soundOff = false; trace('soundOn'); if (CSoundService.m_instance.m_loopSoundID >= 0) { CSoundService.playCurLoopSound(); } }; v1.soundIsPlay = function (id) { return CSoundService.m_instance.m_soundsState[id] != CSoundService.ST_STOP; }; v1.playSound = function (id, ifSoundStop, repeatCount) { if (repeatCount == undefined) { repeatCount = 1; } if (ifSoundStop == undefined) { ifSoundStop = false; } if (CSoundService.m_instance.m_soundOff) { return undefined; } if (ifSoundStop && CSoundService.soundIsPlay(id)) { return undefined; } CSoundService.m_instance.m_soundsState[id] = repeatCount; }; v1.stopSound = function (id) { (Sound(CSoundService.m_instance.m_sounds[id])).stop(CSoundService.m_instance.m_soundsNames[id]); CSoundService.m_instance.m_soundsState[id] = CSoundService.ST_STOP; }; v1.getSoundAt = function (soundNum) { return CSoundService.m_instance.m_sounds[soundNum]; }; v1.soundIsOn = function () { return !CSoundService.m_instance.m_soundOff; }; v1.stopAllSound = function () { var v1 = 0; while (v1 < CSoundService.m_instance.m_sounds.length) { CSoundService.stopSound(v1); ++v1; } }; v2.m_loopSoundID = -1; v1.m_instance = null; v2.m_soundOff = false; v1.ST_PLAY = -1; v1.ST_STOP = 0; v1.PLAY_OPT_ALWAYS = 0; v1.PLAY_OPT_IFSTOP = 1; v1.PLAY_OPT_STOPANDPLAY = 2; ASSetPropFlags(_global.CSoundService.prototype, null, 1); } #endinitclip } movieClip 1103 __Packages.CCamera { #initclip if (!_global.CCamera) { var v1 = function () { this.m_targetMoviePos = new Object(); }; _global.CCamera = v1; var v2 = v1.prototype; v2.init = function (targetMovie, levelMovie, screenWidth, screenHeight) { this.m_targetMovie = targetMovie; this.m_levelMovie = levelMovie; this.m_screenWidth = screenWidth; this.m_screenHeight = screenHeight; this.setLevelSize(this.m_levelMovie._width, this.m_levelMovie._height); this.setLookPoint(this.m_screenWidth / 2, this.m_screenHeight / 2); }; v2.setLevelSize = function (levelWidth, levelHeight) { this.m_levelWidth = levelWidth; this.m_levelHeight = levelHeight; }; v2.setLookPoint = function (px, py) { this.m_targetXAtScreen = px; this.m_targetYAtScreen = py; this.process(); }; v2.pointOutsideLeft = function (pX) { return Math.abs(pX) < Math.abs(this.m_levelMovie._x); }; v2.process = function () { this.m_targetMoviePos.x = this.m_targetMovie._x; this.m_targetMoviePos.y = this.m_targetMovie._y; this.m_targetMovie._parent.localToGlobal(this.m_targetMoviePos); this.m_levelMovie._parent.globalToLocal(this.m_targetMoviePos); this.m_levelMovie._x += Math.round(this.m_targetXAtScreen - this.m_targetMoviePos.x); this.m_levelMovie._y += Math.round(this.m_targetYAtScreen - this.m_targetMoviePos.y) / 2; this.m_positionState = CCamera.BORDER_NONE; if (this.m_levelMovie._x > 0) { this.m_levelMovie._x = 0; this.m_positionState = CCamera.BORDER_LEFT; } else { if (this.m_levelMovie._x < this.m_screenWidth - this.m_levelWidth) { this.m_levelMovie._x = this.m_screenWidth - this.m_levelWidth; this.m_positionState = CCamera.BORDER_RIGHT; } } if (this.m_levelMovie._y < 0) { this.m_levelMovie._y = 0; } else { if (this.m_levelMovie._y > this.m_screenHeight + this.m_levelHeight) { this.m_levelMovie._y = this.m_screenHeight + this.m_levelHeight; } } }; v2.getTargetMovie = function () { return this.m_targetMovie; }; v1.BORDER_NONE = 0; v1.BORDER_LEFT = 1; v1.BORDER_RIGHT = 2; ASSetPropFlags(_global.CCamera.prototype, null, 1); } #endinitclip } movieClip 1104 __Packages.CBoxConstrainSkeleton { #initclip if (!_global.CBoxConstrainSkeleton) { var v1 = function () {}; _global.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.__set__p1(a); this.m_AB.__set__p2(b); this.m_AC = ac; this.m_AC.__set__p1(a); this.m_AC.__set__p2(c); this.m_AD = ad; this.m_AD.__set__p1(a); this.m_AD.__set__p2(d); this.m_BC = bc; this.m_BC.__set__p1(b); this.m_BC.__set__p2(c); this.m_BD = bd; this.m_BD.__set__p1(b); this.m_BD.__set__p2(d); this.m_CD = cd; this.m_CD.__set__p1(c); this.m_CD.__set__p2(d); this.m_ABC = new CPenetrationConstraint(this.m_D, this.m_C, this.m_B); this.m_DCB = new 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(_global.CBoxConstrainSkeleton.prototype, null, 1); } #endinitclip } movieClip 1105 __Packages.CSpringConstraint { #initclip if (!_global.CSpringConstraint) { var v1 = function () {}; _global.CSpringConstraint = v1; var v2 = v1.prototype; _global.CSpringConstraint implements _global.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 = CVector2D.getDistanceBetween(this.m_p1.__get__pos(), this.m_p2.__get__pos()); }; v2.resolve = function () { var v3 = (this.m_p1.__get__pos()).x - (this.m_p2.__get__pos()).x; var v2 = (this.m_p1.__get__pos()).y - (this.m_p2.__get__pos()).y; var v5 = Math.sqrt(v3 * v3 + v2 * v2); var v9 = (v5 - this.m_relaxLen) / v5; var v8; if (v5 > this.m_relaxLen) { v8 = this.m_koeffStiffStretch; } else { v8 = this.m_koeffStiffPress; } var v7 = this.m_p1.__get__mass(); var v6 = this.m_p2.__get__mass(); var v4 = v9 * v8 / (v7 + v6); (this.m_p1.__get__pos()).x -= v3 * v7 * v4; (this.m_p1.__get__pos()).y -= v2 * v7 * v4; (this.m_p2.__get__pos()).x += v3 * v6 * v4; (this.m_p2.__get__pos()).y += v2 * v6 * v4; }; 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(_global.CSpringConstraint.prototype, null, 1); } #endinitclip } movieClip 1106 __Packages.CPenetrationConstraint { #initclip if (!_global.CPenetrationConstraint) { var v1 = function (np0, np1, np2) { this.p0 = np0; this.p1 = np1; this.p2 = np2; this.fixDistance(); }; _global.CPenetrationConstraint = v1; var v2 = v1.prototype; _global.CPenetrationConstraint implements _global.IConstraint; v2.fixDistance = function () { this.sign = (this.p0.__get__pos()).getDistanceTo(this.p1.__get__pos(), this.p2.__get__pos()); if (this.sign < 0) { this.sign = -1; } else { this.sign = 1; } this.n = new CVector2D(); }; v2.resolve = function () { var v2 = (this.p0.__get__pos()).getDistanceTo(this.p1.__get__pos(), this.p2.__get__pos()); if (this.sign * v2 <= 2) { this.n.init((this.p2.__get__pos()).x, (this.p2.__get__pos()).y); this.n.minus(this.p1.__get__pos()); this.n.normalize(); this.n.rotate(CPenetrationConstraint.PI2 * this.sign); this.n.mult(Math.abs(v2) + 1); (this.p1.__get__pos()).minus(this.n); } }; v1.PI2 = 1.570796326794897; ASSetPropFlags(_global.CPenetrationConstraint.prototype, null, 1); } #endinitclip } movieClip 1107 __Packages.CWheel { #initclip if (!_global.CWheel) { var v1 = function () { super(); }; _global.CWheel = v1; _global.CWheel extends 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) * 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.initWhile = function (x, y, mass, rad, maxAccSpeed, mc, rotationMovie, koeffSpring, koeffSlip) { 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 CVector2D(1, 0); this.intersectionFlag = false; this.lastIntersPoint = new CVector2D(0, 0); this.lastN = new CVector2D(0, 0); var v2; var v3 = 6.283185307179586 / CWheel.m_hitCount; this.hitPointArray = new Array(CWheel.m_hitCount); this.normalArray = new Array(CWheel.m_hitCount); this.hitArray = new Array(CWheel.m_hitCount); this.intersArray = new Array(); v2 = 0; while (v2 < CWheel.m_hitCount) { this.hitPointArray[v2] = new 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; } 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(-CWheel.m_maxSpeed * dTime, Math.min(this.m_speed * koeffDamp + this.m_accSpeed, CWheel.m_maxSpeed * dTime)); this.rotateMovie(); if (this.timerAnim > 0) { --this.timerAnim; if (this.numAnim == 2) { var v3 = Math.abs((this.__get__prevPos()).x - this.m_curPosition.x) * 8 + 10; this.m_rim._parent.anim.ncObj._yscale = v3; this.m_rim._parent.anim.ncObj._xscale = v3; } if (this.timerAnim <= 0) { this.numAnim = 1; this.m_rim._parent.anim.gotoAndStop(1); } } }; v2.anim = function (n) { this.timerAnim = 6; if (this.m_prevPosition.x - this.m_curPosition.x < 0) { this.m_rim._parent.anim._xscale = 100; } else { this.m_rim._parent.anim._xscale = -100; } if (this.numAnim != n) { this.numAnim = n; this.m_rim._parent.anim.gotoAndStop(n); } }; v2.setType = function () { if ((this.getMovie()).noRot._currentframe != CConstants.typeCar) { (this.getMovie()).noRot.gotoAndStop(CConstants.typeCar); (this.getMovie()).mcSpoke.gotoAndStop(CConstants.typeCar); } if (CConstants.typeCar == 1) { (this.getMovie()).anim._y = 0; } if (CConstants.typeCar == 2) { (this.getMovie()).anim._y = 25; } if (CConstants.typeCar == 3) { (this.getMovie()).anim._y = -7; } }; v2.rotateMovie = function () {}; v2.checkCollision = function (hit_mc) { var v2; var v8; var v9 = new CVector2D(0, 0); var v13 = false; var v5; var v7; var v15; var v16 = new CVector2D(this.m_prevPosition.x, this.m_prevPosition.y); var v4 = new CVector2D(0, 0); var v3 = new CVector2D(0, 0); var v14; this.synchronizeMovie(); v14 = 0; v2 = 0; while (v2 < CWheel.m_hitCount) { this.hitPointArray[v2].copyTo(v9); this.m_mc.localToGlobal(v9); this.hitArray[v2] = hit_mc.hitTest(v9.x, v9.y, true); if (this.hitArray[v2]) { v13 = true; v5 = v2; ++v14; } ++v2; } if (v14 == 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; if (v2 == CWheel.m_hitCount) { v2 = 0; } if (!this.hitArray[v2]) { v5 = -1; v8 = 0; while (v8 < CWheel.m_hitCount) { ++v2; if (v2 == CWheel.m_hitCount) { v2 = 0; } if (v5 == -1) { if (this.hitArray[v2]) { v5 = v2; v4.plus(this.normalArray[v2]); this.normalArray[v2].copyTo(v3); } } else { if (!this.hitArray[v2]) { v7 = v2 - 1; if (v7 < 0) { v7 = CWheel.m_hitCount - 1; } this.intersArray.push({'k1': v5, 'k2': v7, 'n': new CVector2D(v3.x, v3.y)}); v5 = -1; } else { v4.plus(this.normalArray[v2]); v3.plus(this.normalArray[v2]); } } ++v8; } break; } } var v6 = new CVector2D(0, 0); if (this.intersArray.length > 0) { v4.normalize(); if (this.intersectionFlag) { v4.x += this.lastN.x; v4.y += this.lastN.y; v4.x /= 2; v4.y /= 2; } var v10; var v11; v15 = this.intersArray.length; v2 = 0; while (v2 < v15) { v10 = this.intersArray.pop(); v5 = v10.k1; v7 = v10.k2; v10.n.copyTo(v3); (this.m_curPosition.minusNew(this.m_prevPosition)).copyTo(v6); if (v4.scalar(v6) < 0) { v11 = Math.atan2(v4.y, v4.x); v6.rotate(-v11); v6.x = -v6.x * this.m_koeffSpring; v6.rotate(v11); this.pushOut(v5, v7, v3, hit_mc); this.m_prevPosition.x = this.m_curPosition.x - v6.x; this.m_prevPosition.y = this.m_curPosition.y - v6.y; } else { this.pushOut(v5, v7, v3, hit_mc); } ++v2; } this.validateRotation(v4, v16); this.intersectionFlag = true; this.m_curPosition.copyTo(this.lastIntersPoint); v4.copyTo(this.lastN); } } else { if (this.intersectionFlag) { this.validateRotation(this.lastN, v16); this.intersectionFlag = false; } } this.synchronizeMovie(); }; v2.pushOut = function (k1, k2, n, hit_mc) { n.normalize(); if (k1 != k2) { var v7 = (new 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 v4 = new CVector2D(0, 0); var v5 = 0; var v3 = 0.03; while (!false) { v6.copyTo(v4); this.m_mc.localToGlobal(v4); if (hit_mc.hitTest(v4.x, v4.y, true)) { ++v5; this.m_curPosition.x += n.x * v3; this.m_curPosition.y += n.y * v3; this.synchronizeMovie(); } else { --v5; this.m_curPosition.x -= n.x * v3; this.m_curPosition.y -= n.y * v3; this.m_prevPosition.plus(n.multNew(v3 * v5)); break; } } } }; v2.validateRotation = function (n, oldPos) { var v4 = 0.01; if (!this.intersectionFlag && Math.abs(this.m_accSpeed) > 0.01) { if (Math.abs(this.m_accSpeed) < this.m_maxAccSpeed * v4 / 2) { this.m_accSpeed = 0; } else { if (this.m_accSpeed > 0) { this.m_accSpeed = this.m_maxAccSpeed * v4; } else { this.m_accSpeed = -this.m_maxAccSpeed * v4; } } } var v3 = new CVector2D(-n.y, n.x); var v7 = this.m_curPosition.minusNew(oldPos); var v6 = Math.atan2(v3.y, v3.x); var v2 = v7.rotateNew(-v6); this.m_speed = v2.x + this.m_accSpeed; v2.y = 0; v2.rotate(v6); var v5 = 1 - this.m_koeffSlip; this.m_curPosition.x = this.m_curPosition.x + v3.x * this.m_accSpeed * v5 - CWheel.m_koeffFriction * v2.x; this.m_curPosition.y = this.m_curPosition.y + v3.y * this.m_accSpeed * v5 - 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(_global.CWheel.prototype, null, 1); } #endinitclip } movieClip 1108 __Packages.CConstants { #initclip if (!_global.CConstants) { var v1 = function () {}; _global.CConstants = v1; var v2 = v1.prototype; v1.SOUNDS_NAMES = new Array('sndInGame', 'sndIntro1', 'snd_roket', 'boom', 'reload', 'IDEngine', 'repear', 'convert', 'jump', 'udar_wall', 'demag'); v1.SND_INTRO = 0; v1.SND_INGAME = 1; v1.SND_ROKET = 2; v1.SND_BOOM = 3; v1.SND_RELOAD = 4; v1.SND_ENGINE3 = 5; v1.SND_REPEAR = 6; v1.SND_CONVERT = 7; v1.SND_JUMP = 8; v1.SND_HIT = 9; v1.SND_DEMAG = 10; v1.SCREEN_WIDTH = 640; v1.SCREEN_HEIGHT = 480; v1.LEVEL_HORIZONT = 280; v1.JUMP_BIKE = 180; v1.DEAD_POWER = 2; v1.REPEAR_POWER = 35; v1.middleXspeed = 0.35; v1.middleYspeed = 0.55; v1.middleLevelNames = [1, 1, 3, 3, 2, 2, 2, 2, 2, 2, 4, 4, 5, 2, 2]; v1.BackLevelNames = [2, 2, 5, 5, 6, 7, 7, 7, 7, 7, 3, 3, 8, 4, 4]; v1.levelhit1 = ['0', '1', '2', '5', '3', '4']; v1.levelhit2 = ['0', '6', '8', '7', '9', '64']; v1.levelhit3 = ['0', '10', '11', '12', '13', '66']; v1.levelhit4 = ['0', '14', '15', '40', '16', '66']; v1.levelhit5 = ['0', '38', '37', '39', '36', '65']; v1.levelhit6 = ['0', '17', '18', '21', '26', '27']; v1.levelhit7 = ['0', '24', '23', '22', '25', '27']; v1.levelhit8 = ['0', '29', '19', '20', '28', '27']; v1.levelhit9 = ['0', '30', '31', '32', '33', '27']; v1.levelhit10 = ['0', '34', '35', '50', '51', '27']; v1.levelhit11 = ['0', '47', '45', '43', '44', '68']; v1.levelhit12 = ['0', '48', '55', '41', '42', '68']; v1.levelhit13 = ['0', '56', '46', '63', '54', '68']; v1.levelhit14 = ['0', '53', '57', '58', '57', '53', '67']; v1.levelhit15 = ['0', '59', '60', '61', '62', '67']; v1.AllLevelhit = [CConstants.levelhit1, CConstants.levelhit2, CConstants.levelhit3, CConstants.levelhit4, CConstants.levelhit5, CConstants.levelhit6, CConstants.levelhit7, CConstants.levelhit8, CConstants.levelhit9, CConstants.levelhit10, CConstants.levelhit11, CConstants.levelhit12, CConstants.levelhit13, CConstants.levelhit14, CConstants.levelhit15]; v1.GRAVITY = 6; v1.typeCar = 1; v1.controlAccBaseArr = [0.6, 0.6, 0.6]; v1.controlAccMultArr = [45, 45, 30]; v1.koeffStabilityArr = [-0.9, -0.9, -0.9]; v1.koofHahdlArr = [0.2, 0.7, 0.2]; v1.JumpPowerArr = [230, 260, 300]; v1.ACCELERATE_FORWARD = [60, 45, 35]; v1.ACCELERATE_BACK = [30, 30, 20]; v1.DESTROY_POWER = [4.5, 2.5, 6]; v1.ROCET_TIME = 45; v1.ROCET_Xpower = 25; v1.controlAccPercBase = 0.6; v1.controlAccPercMult = 7; v1.koeffStability = 0.4; v1.koofHahdl = 0.7; v1.carBaseParam = (new CBoxConstrainSkeleton()).init((new CWheel()).initWhile(0, 0, 6, 19, 140, null, null, 0.001, 0.3), (new CWheel()).initWhile(0, 0, 2, 25, 10), (new CParticle()).initParticle(0, 0, 2), (new CWheel()).initWhile(0, 0, 6, 19, 140, null, null, 0.001, 0.2), (new CSpringConstraint()).init(0.6, 0.2), (new CSpringConstraint()).init(0.7, 0.9), (new CSpringConstraint()).init(0.4, 0.4), (new CSpringConstraint()).init(0.9, 0.9), (new CSpringConstraint()).init(0.7, 0.9), (new CSpringConstraint()).init(0.6, 0.2)); v1.carMiniParam = (new CBoxConstrainSkeleton()).init((new CWheel()).initWhile(0, 0, 6, 9, 210, null, null, 0.1, 0.4), (new CWheel()).initWhile(0, 0, 3, 10, 10), (new CParticle()).initParticle(0, 0, 3), (new CWheel()).initWhile(0, 0, 6, 9, 210, null, null, 0.1, 0.3), (new CSpringConstraint()).init(0.4, 0.2), (new CSpringConstraint()).init(0.6, 0.8), (new CSpringConstraint()).init(0.3, 0.3), (new CSpringConstraint()).init(0.8, 0.8), (new CSpringConstraint()).init(0.6, 0.8), (new CSpringConstraint()).init(0.4, 0.2)); v1.carMonsterParam = (new CBoxConstrainSkeleton()).init((new CWheel()).initWhile(0, 0, 6, 42, 120, null, null, 0.001, 0.4), (new CWheel()).initWhile(0, 0, 4, 20, 0), (new CParticle()).initParticle(0, 0, 4), (new CWheel()).initWhile(0, 0, 6, 42, 120, null, null, 0.001, 0.2), (new CSpringConstraint()).init(0.6, 0.2), (new CSpringConstraint()).init(0.7, 0.9), (new CSpringConstraint()).init(0.4, 0.4), (new CSpringConstraint()).init(0.9, 0.9), (new CSpringConstraint()).init(0.7, 0.9), (new CSpringConstraint()).init(0.6, 0.2)); ASSetPropFlags(_global.CConstants.prototype, null, 1); } #endinitclip } movieClip 1109 __Packages.CGame { #initclip if (!_global.CGame) { var v1 = function () { super(); var v5 = new CGameService(_root, CConstants.SOUNDS_NAMES); CSoundService.playLoopSound(CConstants.SND_INTRO); CGame._lives = 10; var v4 = SharedObject.getLocal('JeepSaf'); if (v4.data.maxLev > 0) { CGame.cont = true; if (v4.data.soundContr != false) { CSoundService.soundOn(); } else { CSoundService.soundOff(); } CSoundControl.reset(); } else { CGame.cont = false; } CGame.curLevel = 0; CGame.m_BiStr = 0; CGame.m_instance = this; Key.addListener(this); CGameService.__set__DEBUG_MODE(false); }; _global.CGame = v1; _global.CGame extends MovieClip; var v2 = v1.prototype; v2.initGame = function () { CGame.AddSuperBonus(0); CSoundService.playLoopSound(CConstants.SND_INGAME); this.m_raceEngine.initRaceEngine(CGame.curLevel); this.onEnterFrame = this.processGame; }; v1.buttonStartGame = function () { trace('maxLevel ' + CGame.maxLevel); CGame.curLevel = CGame.maxLevel; if (CGame.maxLevel > CConstants.AllLevelhit.length - 1) { CGame.curLevel = CConstants.AllLevelhit.length - 1; } CGame.buttonStartRace(); }; v1.buttonContGame = function () { CGame.scoreLevel = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; CGame.AllScore = 0; CGame.curLevel = 0; CGame.LoadData(); CGame.m_instance.gotoAndStop('lbSelect'); CGame.m_instance.defaltFunction = function () {}; }; v1.setLevelSelect = function (n) { CGame.curLevel = n * 5 - 5; CGame.tryCount = 0; CGame.__set__lives(10); CGame.buttonStartRace(); }; v1.setScreenSelect = function () { CSoundService.playLoopSound(CConstants.SND_INTRO); CGame.m_instance.mcSelect.selLev1.gotoAndStop(2); if (CGame.maxLevel > 4) { CGame.m_instance.mcSelect.selLev2.gotoAndStop(2); CGame.m_instance.mcSelect.selLev1.gotoAndStop(3); } if (CGame.maxLevel > 9) { CGame.m_instance.mcSelect.selLev3.gotoAndStop(2); CGame.m_instance.mcSelect.selLev2.gotoAndStop(3); } CGame.m_instance.mcSelect.mcTotal.text = CGame.AllScore; if (CGame.maxLevel == 15) { CGame.m_instance.mcSelect.selLev3.gotoAndStop(3); } CGame.m_instance.defaltFunction = function () {}; }; v1.butNewGame = function () { CGame.mcQuestion.removeMovieClip(); CGame.AllScore = 0; CGame.curLevel = 0; CGame.tryCount = 0; CGame.maxLevel = 0; CGame.scoreLevel = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; CGame.SaveData(); CGame.m_instance.gotoAndStop('lbSelect'); CGame.m_instance.defaltFunction = CGame.buttonStartGame; }; v1.addNewGame = function () { if (!CGame.cont) { CGame.butNewGame(); } else { CGame.mcQuestion = CGame.m_instance.attachMovie('newgamescreen', 'newgamescreen', 31789); } }; v1.buttNo = function () { CGame.mcQuestion.removeMovieClip(); }; v1.SaveData = function () { var v2 = SharedObject.getLocal('JeepSaf'); trace('Save'); v2.data.maxLev = CGame.maxLevel; v2.data.score = CGame.AllScore; v2.data.allTime = CGame.allTime; var v1 = 0; while (v1 < CGame.scoreLevel.length) { v2.data['LevScor' + v1] = CGame.scoreLevel[v1]; ++v1; } v2.data.soundContr = CSoundService.soundIsOn(); v2.flush(); }; v1.LoadData = function () { trace('loadData'); CGame.maxLevel = 0; CGame.AllScore = 0; var v2 = SharedObject.getLocal('JeepSaf'); if (v2.data.maxLev != undefined) { CGame.maxLevel = v2.data.maxLev; CGame.curLevel = CGame.maxLevel; } if (v2.data.score != undefined) { CGame.AllScore = v2.data.score; } if (v2.data.allTime != undefined) { CGame.allTime = v2.data.allTime; } else { CGame.allTime = 0; } if (v2.data.soundContr != false) { CSoundService.soundOn(); } else { CSoundService.soundOff(); } CSoundControl.reset(); var v1 = 0; while (v1 < CGame.scoreLevel.length) { if (v2.data['LevScor' + v1] != undefined) { CGame.scoreLevel[v1] = v2.data['LevScor' + v1]; } else { CGame.scoreLevel[v1] = 0; } ++v1; } }; v1.buttonHowToPlay = function () { CGame.m_instance.gotoAndStop('lbHowToPlay'); CGame.m_instance.defaltFunction = CGame.buttonBack; }; v2.updateScoreAndLevel = function () { this.screen.txtLevel = String(CGame.curLevel + 1); this.screen.txtScore = String(CGame.AllScore + CGame.__get__bonusScore()); }; v1.buttonNextLevel = function () { ++CGame.curLevel; if (CGame.curLevel > 14) { CGame.m_instance.gotoAndStop('lbSelect'); } else { CGame.curLevel = Math.min(CGame.curLevel, CGame.scoreLevel.length - 1); CGame.buttonStartRace(); } }; v1.buttonStartRace = function () { CGame.m_instance.gotoAndStop('lbGame'); CGame.m_instance.defaltFunction = function () {}; CGame.m_instance.m_raceEngine.m_panel.txtLevel = CGame.curLevel + 1; CGame.m_instance.m_raceEngine.m_panel.txtScore = CGame.AllScore; CGame.__set__bonusScore(0); CGame.m_instance.onEnterFrame = CGame.m_instance.initGame; }; v1.buttonBack = function () { CGame.m_instance.gotoAndStop('lbSplash'); CGame.m_instance.defaltFunction = CGame.buttonContGame; }; v1.buttonExitGame = function () { CSoundService.playLoopSound(CConstants.SND_INTRO); CGame.m_instance.gotoAndStop('lbLose'); var v1 = 0; CGame.AllScore += v1; CGame.m_instance.screen.txtTimeScore = String(v1); CGame.m_instance.updateScoreAndLevel(); CGame.m_instance.defaltFunction = CGame.buttonStartRace; }; v1.levelComplete = function () { CSoundService.playLoopSound(CConstants.SND_INTRO); if (CGame.curLevel >= CConstants.AllLevelhit.length - 1 && CGame.scoreLevel[14] == 0) { CGame.m_instance.gotoAndStop('lbWin'); CGame.m_instance.defaltFunction = function () {}; } else { CGame.m_instance.gotoAndStop('lbStatistic'); CGame.m_instance.defaltFunction = CGame.buttonNextLevel; } if (CGame.curLevel == CGame.maxLevel) { ++CGame.maxLevel; } CGame.m_instance.screen.mcRecord._visible = false; var v2 = Math.max(0, Math.round((300 - CGame.m_instance.m_time) * (CGame.curLevel + 5))); CGame.tryCount = 0; if (CGame.SuperBonus[1] && CGame.SuperBonus[2] && CGame.SuperBonus[3] && CGame.SuperBonus[4] && CGame.SuperBonus[5]) { CGame.bonusScore += 5000; } CGame.SuperBonus = [false, false, false, false, false, false]; if (v2 + CGame.__get__bonusScore() > CGame.scoreLevel[CGame.curLevel]) { if (CGame.scoreLevel[CGame.curLevel] > 0) { CGame.m_instance.screen.mcRecord._visible = true; } CGame.scoreLevel[CGame.curLevel] = v2 + CGame.__get__bonusScore(); } CGame.tryCount = 0; CGame.AllScore = 0; var v1 = 0; while (v1 < CGame.scoreLevel.length) { CGame.AllScore += CGame.scoreLevel[v1]; ++v1; } CGame.m_instance.screen.txtTimeScore = String(v2); CGame.m_instance.screen.txtBonuslScore = String(CGame.__get__bonusScore()); CGame.m_instance.screen.txtLevelscore = String(v2 + CGame.__get__bonusScore()); CGame.m_instance.screen.txtLevel = String(CGame.curLevel + 1); CGame.m_instance.screen.txtScore = String(CGame.AllScore); CGame.SaveData(); }; v2.processGame = function () { CGameService.clearAll(); this.m_raceEngine.process(); }; v2.onKeyDown = function () { this.m_raceEngine.onKeyDown(); if (Key.getCode() == 32) { this.defaltFunction(); } }; v2.defaltFunction = function () { CGame.buttonContGame(); }; v1.__get__curTime = function () { return CGame.m_instance.m_time; }; v1.__set__curTime = function (newTime) { CGame.m_instance.m_time = newTime; var v3 = Math.floor(newTime / 60); var v2 = Math.floor(newTime % 60); var v4 = Math.floor((newTime - Math.floor(newTime)) * 100); CGame.m_instance.m_raceEngine.m_panel.m_msec = CGameService.numberToStringWith0(v4); CGame.m_instance.m_raceEngine.m_panel.m_sec = CGameService.numberToStringWith0(v2); CGame.m_instance.m_raceEngine.m_panel.m_min = CGameService.numberToStringWith0(v3); return CGame.__get__curTime(); }; v1.blinkTimer = function (b) { CGame.m_instance.m_raceEngine.m_panel.mc_blink._visible = b; }; v1.__get__bikeStreng = function () { return CGame.m_instance.m_raceEngine.m_panel.Bar.numm; }; v1.__set__bikeStreng = function (n) { CGame.m_instance.m_raceEngine.m_panel.Bar.numm = n; CGame.m_BiStr = n; return CGame.__get__bikeStreng(); }; v1.__get__bikeRocetPower = function () { return CGame._bikeRocetPower; }; v1.__set__bikeRocetPower = function (n) { CGame._bikeRocetPower = Math.min(Math.max(0, n), 3); if (CGame._bikeRocetPower > 0) { CGame.m_instance.m_raceEngine.m_panel.mcB1.gotoAndStop(2); } else { CGame.m_instance.m_raceEngine.m_panel.mcB1.gotoAndStop(1); } if (CGame._bikeRocetPower > 1) { CGame.m_instance.m_raceEngine.m_panel.mcB2.gotoAndStop(2); } else { CGame.m_instance.m_raceEngine.m_panel.mcB2.gotoAndStop(1); } if (CGame._bikeRocetPower > 2) { CGame.m_instance.m_raceEngine.m_panel.mcB3.gotoAndStop(2); } else { CGame.m_instance.m_raceEngine.m_panel.mcB3.gotoAndStop(1); } return CGame.__get__bikeRocetPower(); }; v1.AddSuperBonus = function (n) { if (n == 0) { CGame.SuperBonus = [false, false, false, false, false, false]; CGame.m_instance.m_raceEngine.m_panel.mcBonusPanel.b1._visible = false; CGame.m_instance.m_raceEngine.m_panel.mcBonusPanel.b2._visible = false; CGame.m_instance.m_raceEngine.m_panel.mcBonusPanel.b3._visible = false; CGame.m_instance.m_raceEngine.m_panel.mcBonusPanel.b4._visible = false; CGame.m_instance.m_raceEngine.m_panel.mcBonusPanel.b5._visible = false; } else { CGame.SuperBonus[n] = true; CGame.m_instance.m_raceEngine.m_panel.mcBonusPanel['b' + n]._visible = true; if (CGame.SuperBonus[1] && CGame.SuperBonus[2] && CGame.SuperBonus[3] && CGame.SuperBonus[4] && CGame.SuperBonus[5]) { CGame.__set__lives(CGame.__get__lives() + 1); CSoundService.playSound(CConstants.SND_CONVERT, false, 1); } } }; v1.__get__bonusScore = function () { return CGame._bonusScore; }; v1.__set__bonusScore = function (n) { CGame._bonusScore = n; CGame.m_instance.m_raceEngine.m_panel.txtScore = String(CGame.AllScore + CGame._bonusScore); return CGame.__get__bonusScore(); }; v1.__set__lives = function (n) { n = Math.max(0, n); CGame._lives = n; CGame.m_instance.m_raceEngine.m_panel.txtLives = n; return CGame.__get__lives(); }; v1.__get__lives = function () { return CGame._lives; }; v1.m_instance = null; v1.allTime = 0; v1.AllScore = 0; v1.maxLevel = 0; v1.scoreLevel = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; v1.tryCount = 0; v1.SuperBonus = [false, false, false, false, false, false]; v1.addProperty('bikeRocetPower', v1.__get__bikeRocetPower, v1.__set__bikeRocetPower); v1.addProperty('bikeStreng', v1.__get__bikeStreng, v1.__set__bikeStreng); v1.addProperty('bonusScore', v1.__get__bonusScore, v1.__set__bonusScore); v1.addProperty('curTime', v1.__get__curTime, v1.__set__curTime); v1.addProperty('lives', v1.__get__lives, v1.__set__lives); ASSetPropFlags(_global.CGame.prototype, null, 1); } #endinitclip } movieClip 1110 __Packages.CRaceEngine { #initclip if (!_global.CRaceEngine) { var v1 = function () { super(); CGameService.addPauseListener(this); CRaceEngine.inst = this; }; _global.CRaceEngine = v1; _global.CRaceEngine extends MovieClip; var v2 = v1.prototype; _global.CRaceEngine implements _global.IPauseListener; v2.enablePause = function () { this.processBuckUp = this.process; this.process = function () {}; this.m_windowPause = this.attachMovie('pauseWindow', '__pauseWindow', 32001); this.m_pause.enabled = false; }; v2.disablePause = function () { this.process = this.processBuckUp; this.enableBikeControll(); this.m_pause.enabled = true; this.m_windowPause.removeMovieClip(); }; v2.processKeys = function () { var v1 = new CMultiState(); return v1; }; v2.onUnload = function () { CGameService.removePauseListener(this); }; v2.processTime = function () { CGame.curTime += 0.04167; }; v2.process = function () {}; v2.processRace = function () { this.processTime(); CRaceEngine.m_level.process(); var v2 = this.processKeys(); if (v2.__get__curMask() != this.m_keyState.__get__curMask()) { this.m_keyState.__set__curMask(v2.curMask); } CRaceEngine.m_bike.processKeys(this.m_keyState); CRaceEngine.m_bike.process(); CRaceEngine.m_level.checkHitBonus(CRaceEngine.m_bike.m_forwardWheel, CRaceEngine.m_bike.m_backWheel, CRaceEngine.m_bike); }; v1.reloadLevel = function () { CGame.__set__lives(CGame.__get__lives() - 1); CRaceEngine.m_level.removeMovieClip(); CRaceEngine.inst.initRaceEngine(CRaceEngine.inst.m_curLevel); CGameControl.reset(); }; v2.initRaceEngine = function (levelNum) { CGameService.__set__pauseOn(false); CRaceEngine.fonMC = this.mcFon; if (CRaceEngine.fonMC._currentframe != CConstants.BackLevelNames[levelNum]) { CRaceEngine.fonMC.gotoAndStop(CConstants.BackLevelNames[levelNum]); } this.m_curLevel = levelNum; CRaceEngine.m_bike = new CBike(); CRaceEngine.m_level = CLevel(this.m_levelPlace.attachMovie('idCurLevel', '__idLevel', CRaceEngine.DEPTH_CURLEVEL)); CRaceEngine.m_level.initLevel(levelNum); CRaceEngine.deadCounter = 100; this.m_keyState = new CMultiState(); this.resetBike(); CGame.__set__bonusScore(0); ++CGame.tryCount; CGame.__set__curTime(0); CGame.AddSuperBonus(0); CGame.lives += 0; this.enableBikeControll(); this.process = this.processRace; }; v2.resetBike = function () { var v1 = CRaceEngine.m_level.getBikePlace(); (CRaceEngine.m_level.getEngine()).clear(); CRaceEngine.m_bike.initWehicle(CRaceEngine.m_level, v1.x, v1.y); CRaceEngine.m_bike.stopAccelerate(); CRaceEngine.m_level.initCamera(CRaceEngine.m_bike.getBodyMovieClip(), CConstants.SCREEN_WIDTH, CConstants.SCREEN_HEIGHT, CConstants.SCREEN_WIDTH / 4, 250); }; v2.enableBikeControll = function () { this.processKeys = function () { var v1 = new CMultiState(); if (Key.isDown(38)) { v1.addMask(CBike.KM_ACCELERATE); } if (Key.isDown(40)) { v1.addMask(CBike.KM_BRAKE); } if (Key.isDown(37)) { v1.addMask(CBike.KM_MOVE_BODY_BACK); } if (Key.isDown(39)) { v1.addMask(CBike.KM_MOVE_BODY_FORWARD); } if (Key.isDown(90)) { v1.addMask(CBike.KM_spec); } if (Key.isDown(32) || Key.isDown(88)) { v1.addMask(CBike.KM_JUMP); } return v1; }; }; v2.disableKeyFunction = function () { this.processKeys = function () { var v1 = new CMultiState(); return v1; }; }; v2.onKeyDown = function () { if (Key.isDown(80)) { CGameControl.onPressMy(); } }; v2.spaceFunction = function () {}; v2.Boom = function () { CRaceEngine.m_level.BoomBomb(); this.process = this.processDie; CRaceEngine.deadCounter = 88; }; v1.killBike = function () { trace('Death!'); CRaceEngine.inst.process = CRaceEngine.inst.processDie; if (CRaceEngine.deadCounter > 90) { CRaceEngine.deadCounter = 40; } }; v2.processDie = function () { --CRaceEngine.deadCounter; CRaceEngine.m_bike.process(); if (CRaceEngine.deadCounter > 40 and CRaceEngine.deadCounter % 3 == 1) { (CRaceEngine.m_level.getLevelPlace())._x += random(18) - 9; (CRaceEngine.m_level.getLevelPlace())._y += (CRaceEngine.deadCounter % 3) * 9 - 9; } if (CRaceEngine.deadCounter == 34) { CSoundService.playSound(CConstants.SND_BOOM, true, 1); (CRaceEngine.m_bike.getBodyMovieClip()).mc.play(); CRaceEngine.m_bike.processWeel(); } if (CRaceEngine.deadCounter <= 0) { this._DieMessage.removeMovieClip(); if (CGame.__get__lives() > 1) { CRaceEngine.reloadLevel(); } else { CGame.buttonContGame(); } } }; v2.processWaitRestart = function () { this.initRaceEngine(this.m_curLevel); }; v1.DEPTH_CURLEVEL = 10; v1.deadCounter = 100; ASSetPropFlags(_global.CRaceEngine.prototype, null, 1); } #endinitclip } movieClip 1111 __Packages.CBike { #initclip if (!_global.CBike) { var v1 = function () { this.process = this.normProcess; this.m_bikeDir = new CVector2D(0, 0); this.m_bikeNormal = new CVector2D(0, 0); CSoundService.playSound(CConstants.SND_ENGINE3, false, 99999); (CSoundService.getSoundAt(CConstants.SND_ENGINE3)).setVolume(40); }; _global.CBike = v1; var v2 = v1.prototype; v2.initWehicle = function (level, posX, posY) { var v4 = level.getEngine(); var v2 = level.getVehiclePlace(); this.m_engine = v4; CGame.__set__bikeRocetPower(0); CGame.__set__bikeStreng(100); this.timeRok = 0; this.timeJump = 0; this.__set__streng(100); if (this.m_bikeMovie != undefined) { this.m_bikeMovie.removeMovieClip(); } this.m_bikeMovie = v2.attachMovie('idBike', '_Bike', 140); this.m_bikeMovie._x = posX; this.m_bikeMovie._y = posY; var v3 = v2.attachMovie('idMotoWhellBack', '_MotoWhellBack', 150); v3 = v2.attachMovie('idMotoWhellBack', '_MotoTop', 155); v3 = v2.attachMovie('idMotoWhellForward', '_MotoWhellForward', 160); this.setTypeCar(1); }; v2.reinit = function () { this.m_engine.clear(); var v4 = CRaceEngine.m_level.getVehiclePlace(); var v3; var v2 = CConstants.carBaseParam; if (CConstants.typeCar == 2) { v2 = CConstants.carMonsterParam; } if (CConstants.typeCar == 3) { v2 = CConstants.carMiniParam; } if (this.m_bikeMovie._currentframe != CConstants.typeCar) { this.m_bikeMovie.gotoAndStop(CConstants.typeCar); } v2.changeGeometry(this.getBikePoint(this.m_bikeMovie.mc.mc_p_wl), this.getBikePoint(this.m_bikeMovie.mc.mc_p_ld), this.getBikePoint(this.m_bikeMovie.mc.mc_p_rd), this.getBikePoint(this.m_bikeMovie.mc.mc_p_wr)); v3 = v4._MotoWhellBack; (v2.__get__A()).setMovie(v3); (CWheel(v2.__get__A())).setRotationMovie(v3.mcSpoke); v3 = v4._MotoTop; (v2.__get__B()).setMovie(v3); (CWheel(v2.__get__B())).setRotationMovie(v3.mcSpoke); v3 = v4._MotoWhellForward; (v2.__get__D()).setMovie(v3); (CWheel(v2.__get__D())).setRotationMovie(v3.mcSpoke); v2.addToEngine(this.m_engine); this.m_backWheel = CWheel(v2.__get__A()); this.m_backWheel.setType(); this.m_forwardWheel = CWheel(v2.__get__D()); this.m_forwardWheel.setType(); this.p_ld = CWheel(v2.__get__B()); (this.p_ld.getMovie())._visible = false; this.p_rd = v2.C; this.nullAccselerate(); this.process = this.normProcess; }; v2.setTypeCar = function (n) { if (CConstants.typeCar == 3) { this.m_bikeMovie._y -= 30; } if (n == 2) { this.m_bikeMovie._y -= 50; } CConstants.typeCar = n; CConstants.controlAccPercBase = CConstants.controlAccBaseArr[n - 1]; CConstants.controlAccPercMult = CConstants.controlAccMultArr[n - 1]; CConstants.koeffStability = CConstants.koeffStabilityArr[n - 1]; CConstants.koofHahdl = CConstants.koofHahdlArr[n - 1]; CConstants.JUMP_BIKE = CConstants.JumpPowerArr[n - 1]; this.m_bikeMovie.gotoAndStop(CConstants.typeCar); this.process = this.reinit; }; v2.getBikePoint = function (mc) { var v2 = new Object(); v2.x = mc._x; v2.y = mc._y; mc._parent.localToGlobal(v2); this.m_bikeMovie._parent.globalToLocal(v2); return v2; }; v2.playJumpSound = function () { CSoundService.playSound(CConstants.SND_JUMP, false, 1); }; v2.playAccelerateSound = function () {}; v2.stopAccelerateSound = function () {}; v2.addSmoke = function (mc) { var v2 = {'x': mc._x, 'y': mc._y}; this.m_bikeMovie.localToGlobal(v2); this.m_bikeMovie._parent.globalToLocal(v2); var v4 = (CRaceEngine.m_level.getVehiclePlace()).getNextHighestDepth(); var v3 = (CRaceEngine.m_level.getVehiclePlace()).attachMovie('smoke', 'smoke' + v4, v4); v3._x = v2.x + random(15); v3._y = v2.y + random(5) - 2; v3._rotation = random(360); }; v2.accelerate = function () { this.addSmoke(this.m_bikeMovie.mcSmoke); if (!this.p_ld.hasIntersection()) { this.m_backWheel.setAccelerate(CConstants.ACCELERATE_BACK[CConstants.typeCar - 1]); this.m_forwardWheel.setAccelerate(CConstants.ACCELERATE_FORWARD[CConstants.typeCar - 1]); } }; v2.brake = function () { this.m_backWheel.setAccelerate(-CConstants.ACCELERATE_BACK[CConstants.typeCar - 1]); this.m_forwardWheel.setAccelerate(-CConstants.ACCELERATE_BACK[CConstants.typeCar - 1]); }; v2.accelerateSet = function (z) { this.m_backWheel.setAccelerate(z); this.m_forwardWheel.setAccelerate(z); }; v2.RoketStart = function () { if (CGame.__get__bikeRocetPower() > 0 && this.timeRok <= 0) { CGame.__set__bikeRocetPower(CGame.__get__bikeRocetPower() - 1); this.timeRok += CConstants.ROCET_TIME; CSoundService.playSound(CConstants.SND_ROKET, false, 1); this.m_bikeMovie.mcSmoke2.gotoAndStop(2); this.m_bikeMovie.mcSmoke3.gotoAndStop(2); } }; v2.jump = function () { var v2 = this.m_engine.getHitMovie(); if (!this.checkDeathPoint()) { if (this.timeJump <= 0 && this.onGround()) { this.playJumpSound(); this.timeJump = this.timeJumpRelax; (this.p_rd.__get__accelerate()).y -= CConstants.JUMP_BIKE; (this.p_ld.__get__accelerate()).y -= CConstants.JUMP_BIKE; (this.m_forwardWheel.__get__accelerate()).y -= 2 * CConstants.JUMP_BIKE; (this.m_backWheel.__get__accelerate()).y -= 2 * CConstants.JUMP_BIKE; } } else { this.playJumpSound(); (this.p_rd.__get__accelerate()).y -= CConstants.JUMP_BIKE / 2; (this.p_ld.__get__accelerate()).y -= CConstants.JUMP_BIKE / 2; (this.m_forwardWheel.__get__accelerate()).y += CConstants.JUMP_BIKE / 4; (this.m_backWheel.__get__accelerate()).y -= CConstants.JUMP_BIKE / 2; } }; v2.stopAccelerate = function () { this.m_backWheel.setAccelerate(0); this.m_forwardWheel.setAccelerate(0); }; v2.nullAccselerate = function () { (this.m_forwardWheel.__get__accelerate()).mult(0); (this.m_backWheel.__get__accelerate()).mult(0); (this.p_ld.__get__accelerate()).mult(0); (this.p_rd.__get__accelerate()).mult(0); trace((this.m_forwardWheel.__get__accelerate()).x + ' d ' + (this.p_rd.__get__accelerate()).x); }; v2.addWheelVector = function (vF, vB) { if (this.timeRok == 0) { (this.m_forwardWheel.__get__accelerate()).plus(vF); (this.m_backWheel.__get__accelerate()).plus(vB); } }; v2.processKeys = function (keyState) { if (keyState.checkMask(CBike.KM_JUMP)) { this.jump(); } if (keyState.checkMask(CBike.KM_spec)) { this.RoketStart(); } if (keyState.checkMask(CBike.KM_ACCELERATE)) { this.accelerate(); if (!keyState.checkPrevStateMask(CBike.KM_ACCELERATE)) { this.playAccelerateSound(); keyState.addMask(CBike.KM_ACCELERATE); } } else { if (keyState.checkMask(CBike.KM_BRAKE)) { this.brake(); } else { this.stopAccelerate(); this.stopAccelerateSound(); } } if (keyState.checkMask(CBike.KM_MOVE_BODY_FORWARD)) { this.turnTo(CBike.DIR_RIGHT); } else { if (keyState.checkMask(CBike.KM_MOVE_BODY_BACK)) { this.turnTo(CBike.DIR_LEFT); } } }; v2.onGround = function () { return this.checkPointVsMovie(this.m_bikeMovie.mcBGroundPoint, this.m_engine.getHitMovie()) || this.checkPointVsMovie(this.m_bikeMovie.mcFGroundPoint, this.m_engine.getHitMovie()); }; v2.process = function () {}; v2.normProcess = function () { var v4; var v3; this.m_bikeDir.init((this.m_forwardWheel.__get__pos()).x - (this.m_backWheel.__get__pos()).x, (this.m_forwardWheel.__get__pos()).y - (this.m_backWheel.__get__pos()).y); this.m_bikeMovie._rotation = Math.atan2(this.m_bikeDir.y, this.m_bikeDir.x) * 180 / Math.PI; v4 = new CVector2D(this.m_bikeMovie.mc.mc_p_ld._x, this.m_bikeMovie.mc.mc_p_ld._y); v3 = new CVector2D(this.m_bikeMovie.mc.mc_p_rd._x, this.m_bikeMovie.mc.mc_p_rd._y); this.m_bikeMovie.mc.localToGlobal(v4); this.m_bikeMovie._parent.globalToLocal(v4); this.m_bikeMovie.mc.localToGlobal(v3); this.m_bikeMovie._parent.globalToLocal(v3); this.m_bikeMovie._x += ((this.p_ld.__get__pos()).x - v4.x + (this.p_rd.__get__pos()).x - v3.x) / 2; this.m_bikeMovie._y += ((this.p_ld.__get__pos()).y - v4.y + (this.p_rd.__get__pos()).y - v3.y) / 2; this.moveMovieToMovieGlobal(this.m_backWheel.getMovie(), this.m_bikeMovie.mc.bike.mc_back_spring); this.moveMovieToMovieGlobal(this.m_forwardWheel.getMovie(), this.m_bikeMovie.mc.bike.mc_forward_spring); this.rotateMovieToMovieLocal(this.m_bikeMovie.mc.bike.mc_forward_spring, this.m_bikeMovie.mc.bike.mcDir); if (this.checkDeathPoint()) { this.streng -= CConstants.DEAD_POWER; CSoundService.playSound(CConstants.SND_DEMAG, true, 1); } if (this.timeJump > 0) { --this.timeJump; } if (this.timeRok > 0) { this.addSmoke(this.m_bikeMovie.mcSmoke2); this.addSmoke(this.m_bikeMovie.mcSmoke3); --this.timeRok; if (this.timeRok <= 0) { this.m_bikeMovie.mcSmoke2.gotoAndStop(1); this.m_bikeMovie.mcSmoke3.gotoAndStop(1); } var v5 = new CVector2D(2, -20); v5.normalize(); v5.mult(CConstants.JUMP_BIKE / 10); var v2 = new CVector2D(0, 0); v2.copyFrom(this.m_bikeDir); v2.rotate(-1.570796326794897); v2.normalize(); v2.mult(CConstants.ROCET_Xpower); v2.plus(v5); (this.p_rd.__get__accelerate()).plus(v2); (this.p_ld.__get__accelerate()).plus(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) * 180 / Math.PI; }; v2.turnTo = function (dir) { this.m_bikeNormal.init(this.m_bikeDir.x, this.m_bikeDir.y); this.m_bikeNormal.normalize(); var v7; v7 = this.m_bikeNormal.x; this.m_bikeNormal.x = -this.m_bikeNormal.y; this.m_bikeNormal.y = v7; var v5 = CConstants.controlAccPercBase; var v6 = CConstants.controlAccPercMult; var v4 = Math.abs(this.m_bikeNormal.y) * (1 - v5) + v5; v4 *= v6; var v3 = this.m_bikeNormal.x * v4; var v2 = this.m_bikeNormal.y * v4; if (this.m_bikeNormal.y > CConstants.koeffStability) { if (dir == CBike.DIR_RIGHT) { if (!this.m_forwardWheel.hasIntersection()) { (this.m_forwardWheel.__get__accelerate()).plusXY(v3 * (2 - CConstants.koofHahdl), v2 * (2 - CConstants.koofHahdl)); } (this.m_backWheel.__get__accelerate()).plusXY(-v3 * CConstants.koofHahdl, -v2 * CConstants.koofHahdl); } else { (this.m_forwardWheel.__get__accelerate()).plusXY(-v3 * CConstants.koofHahdl, -v2 * CConstants.koofHahdl); if (!this.m_backWheel.hasIntersection()) { (this.m_backWheel.__get__accelerate()).plusXY(v3 * (2 - CConstants.koofHahdl), v2 * (2 - CConstants.koofHahdl)); } } } }; v2.Upp = function (dir) { this.m_bikeNormal.init(this.m_bikeDir.x, this.m_bikeDir.y); this.m_bikeNormal.normalize(); var v7; v7 = this.m_bikeNormal.x; this.m_bikeNormal.x = -this.m_bikeNormal.y; this.m_bikeNormal.y = v7; var v5 = CConstants.controlAccPercBase; var v6 = CConstants.controlAccPercMult; var v2 = Math.abs(this.m_bikeNormal.y) * (1 - v5) + v5; v2 *= v6; var v4 = this.m_bikeNormal.x * 2 * v2; var v3 = this.m_bikeNormal.y * 2 * v2; if (this.m_bikeNormal.y > -0.4) { if (dir == CBike.DIR_LEFT) { (this.m_forwardWheel.__get__accelerate()).plusXY(-v4 * 10, -v3 * 10); } else { (this.m_backWheel.__get__accelerate()).plusXY(-v4 * 10, -v3 * 10); } } }; v2.checkPointVsMovie = function (point, movie) { var v1 = {'x': point._x, 'y': point._y}; point._parent.localToGlobal(v1); return movie.hitTest(v1.x, v1.y, true); }; v2.checkDeathPoint = function () { var v2 = this.m_engine.getHitMovie(); var v3 = this.checkPointVsMovie(this.m_bikeMovie.mcDeathPoint1, v2) || this.checkPointVsMovie(this.m_bikeMovie.mcDeathPoint2, v2) || this.checkPointVsMovie(this.m_bikeMovie.mcDeathPoint3, v2); if (v3) { if (this.checkPointVsMovie(this.m_bikeMovie.mcDeathPoint1, v2) && this.m_bikeMovie.mcDeathPoint1._currentframe == 1) { this.m_bikeMovie.mcDeathPoint1.gotoAndPlay(2); } if (this.checkPointVsMovie(this.m_bikeMovie.mcDeathPoint2, v2) && this.m_bikeMovie.mcDeathPoint2._currentframe == 1) { this.m_bikeMovie.mcDeathPoint2.gotoAndPlay(2); } if (this.checkPointVsMovie(this.m_bikeMovie.mcDeathPoint3, v2) && this.m_bikeMovie.mcDeathPoint3._currentframe == 1) { this.m_bikeMovie.mcDeathPoint3.gotoAndPlay(2); } } return v3; }; v2.getBodyMovieClip = function () { return this.m_bikeMovie; }; v2.hideWeel = function () { (this.m_forwardWheel.getMovie())._visible = false; (this.m_backWheel.getMovie())._visible = false; }; v2.processWeel = function () {}; v2.getMovie = function () { return this.m_bikeMovie; }; v2.getHit4Bonus = function () { return this.m_bikeMovie.hit4Bonus; }; v2.show = function (visible) { this.m_bikeMovie._visible = visible; (this.m_backWheel.getMovie())._visible = visible; (this.m_forwardWheel.getMovie())._visible = visible; }; v2.__set__streng = function (n) { CGame.__set__bikeStreng(n); if (n < 1) { CRaceEngine.killBike(); } return this.__get__streng(); }; v2.__get__streng = function () { return CGame.__get__bikeStreng(); }; v1.KM_NONE = 0; v1.KM_ACCELERATE = 1; v1.KM_BRAKE = 2; v1.KM_MOVE_BODY_FORWARD = 4; v1.KM_MOVE_BODY_BACK = 8; v1.KM_JUMP = 16; v1.KM_spec = 32; v1.KM_SPURT_FORWARD = 256; v1.KM_SPURT_BACK = 512; v1.DIR_RIGHT = 0; v1.DIR_LEFT = 1; v2.timeJumpRelax = 25; v2.addProperty('streng', v2.__get__streng, v2.__set__streng); ASSetPropFlags(_global.CBike.prototype, null, 1); } #endinitclip } movieClip 1112 __Packages.CMultiState { #initclip if (!_global.CMultiState) { var v1 = function () { this.m_prevState = 0; this.m_state = 0; }; _global.CMultiState = v1; var v2 = v1.prototype; v2.__set__curMask = function (nState) { this.m_prevState = this.m_state; this.m_state = nState; return this.__get__curMask(); }; v2.__get__curMask = function () { return this.m_state; }; v2.checkMask = function (nState) { return (this.m_state & nState) != 0; }; v2.checkPrevStateMask = function (nState) { return (this.m_prevState & nState) != 0; }; v2.addMask = function (nState) { this.curMask |= nState; }; v2.delMask = function (nState) { this.curMask &= ~nState; }; v2.addProperty('curMask', v2.__get__curMask, v2.__set__curMask); ASSetPropFlags(_global.CMultiState.prototype, null, 1); } #endinitclip } movieClip 1113 __Packages.CGameControl { #initclip if (!_global.CGameControl) { var v1 = function () { super(); CGameControl.inst = this; CGameService.__set__pauseOn(false); this.onEnterFrame = this.normEF; CGameControl.bloc = true; }; _global.CGameControl = v1; _global.CGameControl extends MovieClip; var v2 = v1.prototype; v1.reset = function () { CGameControl.inst.onEnterFrame = CGameControl.inst.normEF; }; v2.normEF = function () { if (!CGameService.__get__pauseOn() && this._currentframe != 1) { this.gotoAndStop(1); } if (CGameService.__get__pauseOn() && this._currentframe != 2) { this.gotoAndStop(2); } this.onEnterFrame = function () {}; CGameControl.bloc = false; }; v1.myKey = function () { if (!CGameControl.bloc) { CGameControl.onPressMy(); } }; v1.onPressMy = function () { trace('pressPausa'); if (CGameService.__get__pauseOn()) { CGameService.__set__pauseOn(false); } else { CGameService.__set__pauseOn(true); } CGameControl.inst.onEnterFrame = CGameControl.inst.normEF; CGameControl.bloc = true; }; v1.bloc = false; ASSetPropFlags(_global.CGameControl.prototype, null, 1); } #endinitclip } movieClip 1114 __Packages.CSoundControl { #initclip if (!_global.CSoundControl) { var v1 = function () { super(); CSoundControl.myIns = this; this.onEnterFrame = this.ef; }; _global.CSoundControl = v1; _global.CSoundControl extends MovieClip; var v2 = v1.prototype; v2.ef = function () { trace('SSSSS' + CSoundService.soundIsOn()); if (!CSoundService.soundIsOn() && this._currentframe != 2) { this.gotoAndStop(2); } if (CSoundService.soundIsOn() && this._currentframe != 1) { this.gotoAndStop(1); } this.onEnterFrame = function () {}; }; v1.reset = function () { CSoundControl.myIns.onEnterFrame = CSoundControl.myIns.ef; }; v2.onPress = function () { if (CSoundService.soundIsOn()) { CSoundService.soundOff(); } else { CSoundService.soundOn(); } var v2 = SharedObject.getLocal('JeepSaf'); v2.data.soundContr = CSoundService.soundIsOn(); v2.flush(); this.ef(); }; ASSetPropFlags(_global.CSoundControl.prototype, null, 1); } #endinitclip } movieClip 1115 __Packages.CBar { #initclip if (!_global.CBar) { var v1 = function () { super(); this.maxNum = 100; this.zn = this.maxNum; this.gotoAndStop(101); }; _global.CBar = v1; _global.CBar extends MovieClip; var v2 = v1.prototype; v2.__set__numm = function (n) { if (this.zn != this._currentframe + 1) { this.gotoAndStop(this.zn + 1); } this.zn = n; if (n <= 0) { n = 0; } if (n > this.maxNum) { this.zn = this.maxNum; } this.onEnterFrame = this.setZN; return this.__get__numm(); }; v2.setZN = function () { if (this.zn > this._currentframe - 1) { this.gotoAndStop(this._currentframe + 1); } if (this.zn < this._currentframe - 1) { this.gotoAndStop(this._currentframe - 1); } if (this.zn == this._currentframe + 1) { this.onEnterFrame = function () {}; } }; v2.__get__numm = function () { return this.zn; }; v2.addProperty('numm', v2.__get__numm, v2.__set__numm); ASSetPropFlags(_global.CBar.prototype, null, 1); } #endinitclip } movieClip 1116 __Packages.CInvisibleMovie { #initclip if (!_global.CInvisibleMovie) { var v1 = function () { super(); this._visible = false; }; _global.CInvisibleMovie = v1; _global.CInvisibleMovie extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.CInvisibleMovie.prototype, null, 1); } #endinitclip } movieClip 1117 __Packages.cBonusReload { #initclip if (!_global.cBonusReload) { var v1 = function () { super(); this.state = false; this.type = 2; this.hitArea = this.mcHit; }; _global.cBonusReload = v1; _global.cBonusReload extends cBonus; var v2 = v1.prototype; v2.hitThis = function () { if (!this.state) { if (CGame.__get__bikeRocetPower() < 3) { CSoundService.playSound(CConstants.SND_RELOAD, false, 1); this.state = true; CGame.__set__bikeRocetPower(CGame.__get__bikeRocetPower() + 1); CGame.bonusScore += 100; this.play(); } } }; ASSetPropFlags(_global.cBonusReload.prototype, null, 1); } #endinitclip } movieClip 1118 __Packages.cBonusScore { #initclip if (!_global.cBonusScore) { var v1 = function () { super(); this.state = false; this.type = 20; }; _global.cBonusScore = v1; _global.cBonusScore extends cBonus; var v2 = v1.prototype; v2.hitThis = function (t) { if (!this.state) { CGame.bonusScore += 100; this._visible = false; this.state = true; } }; ASSetPropFlags(_global.cBonusScore.prototype, null, 1); } #endinitclip } movieClip 1119 __Packages.cBonusLet { #initclip if (!_global.cBonusLet) { var v1 = function () { super(); this.state = false; this.type = 99; this.onEnterFrame = this.ef; }; _global.cBonusLet = v1; _global.cBonusLet extends cBonus; var v2 = v1.prototype; v2.ef = function () { if (CGame.SuperBonus[this.znac]) { this.state = true; this._visible = false; } this.onEnterFrame = function () {}; }; v2.hitThis = function (t) { if (!this.state) { CGame.bonusScore += 500; this._visible = false; this.state = true; CGame.AddSuperBonus(this.znac); } }; ASSetPropFlags(_global.cBonusLet.prototype, null, 1); } #endinitclip } movieClip 1120 __Packages.cBonusRepair { #initclip if (!_global.cBonusRepair) { var v1 = function () { super(); this.type = 1; this.hitArea = this.mcHit; this.state = true; }; _global.cBonusRepair = v1; _global.cBonusRepair extends cBonus; var v2 = v1.prototype; v2.hitThis = function () { if (this.state) { this.play(); this.state = false; CGame.bikeStreng += CConstants.REPEAR_POWER; CSoundService.playSound(CConstants.SND_REPEAR, true, 1); CGame.bonusScore += 200; } }; ASSetPropFlags(_global.cBonusRepair.prototype, null, 1); } #endinitclip } movieClip 1121 __Packages.cBonusWater { #initclip if (!_global.cBonusWater) { var v1 = function () { super(); this._visible = false; this.type = 4; this.hitArea = this.mcHit; }; _global.cBonusWater = v1; _global.cBonusWater extends cBonus; var v2 = v1.prototype; v2.hitThis = function (w) { w.setAccelerate(w.getAccelerate() * 0.5); w.anim(2); }; ASSetPropFlags(_global.cBonusWater.prototype, null, 1); } #endinitclip } movieClip 1122 __Packages.cBonusHiSpeed { #initclip if (!_global.cBonusHiSpeed) { var v1 = function () { super(); this._visible = false; this.type = 5; }; _global.cBonusHiSpeed = v1; _global.cBonusHiSpeed extends cBonus; var v2 = v1.prototype; v2.hitThis = function (w) { var v1 = {'x': (CRaceEngine.m_bike.getMovie()).mcBGroundPoint._x, 'y': (CRaceEngine.m_bike.getMovie()).mcBGroundPoint._y}; (CRaceEngine.m_bike.getMovie()).localToGlobal(v1); CRaceEngine.m_level.globalToLocal(v1); var v3 = new CVector2D(v1.x, v1.y); v1 = {'x': (CRaceEngine.m_bike.getMovie()).mcSmoke2._x, 'y': (CRaceEngine.m_bike.getMovie()).mcSmoke2._y}; (CRaceEngine.m_bike.getMovie()).localToGlobal(v1); CRaceEngine.m_level.globalToLocal(v1); v3.minus(new CVector2D(v1.x, v1.y)); v3.normalize(); v1 = {'x': (CRaceEngine.m_bike.getMovie()).mcFGroundPoint._x, 'y': (CRaceEngine.m_bike.getMovie()).mcFGroundPoint._y}; (CRaceEngine.m_bike.getMovie()).localToGlobal(v1); CRaceEngine.m_level.globalToLocal(v1); var v2 = new CVector2D(v1.x, v1.y); v1 = {'x': (CRaceEngine.m_bike.getMovie()).mcSmoke3._x, 'y': (CRaceEngine.m_bike.getMovie()).mcSmoke3._y}; (CRaceEngine.m_bike.getMovie()).localToGlobal(v1); CRaceEngine.m_level.globalToLocal(v1); v2.minus(new CVector2D(v1.x, v1.y)); v2.normalize(); if ((w.getMovie())._name == '_MotoWhellForward') { w.setAccelerate(w.getAccelerate() * cBonusHiSpeed.acsMult); w.anim(3); v3.mult(cBonusHiSpeed.mult); v2.mult(cBonusHiSpeed.mult / 2); CRaceEngine.m_bike.addWheelVector(v2, v3); } if ((w.getMovie())._name == '_MotoWhellBack') { w.setAccelerate(w.getAccelerate() * cBonusHiSpeed.acsMult); w.anim(3); v3.mult(cBonusHiSpeed.mult / 2); v2.mult(cBonusHiSpeed.mult); CRaceEngine.m_bike.addWheelVector(v2, v3); } }; v1.mult = 120; v1.acsMult = 1.5; ASSetPropFlags(_global.cBonusHiSpeed.prototype, null, 1); } #endinitclip } movieClip 1123 __Packages.cBonusDestroy { #initclip if (!_global.cBonusDestroy) { var v1 = function () { super(); this.type = 10; this.tim = 14; var v3 = (this.getHitZona()).attachMovie('HitDestroy', '_' + this._name, (this.getHitZona()).getNextHighestDepth()); v3.cacheAsBitmap = true; v3._x = this._x; v3._y = this._y; v3._rotation = this._rotation; }; _global.cBonusDestroy = v1; _global.cBonusDestroy extends cBonus; var v2 = v1.prototype; v2.hitThis = function () { if (this._currentframe == 1) { this.onEnterFrame = this.proc; this.gotoAndPlay('lbSign'); } }; v2.proc = function () { --this.tim; if (this._currentframe == 10) { this.gotoAndPlay('lbSign'); } if (this.tim <= 0) { this.gotoAndPlay('lbDestroy'); (this.getHitZona())['_' + this._name].removeMovieClip(); this.onEnterFrame = function () {}; } }; ASSetPropFlags(_global.cBonusDestroy.prototype, null, 1); } #endinitclip } movieClip 1124 __Packages.cBonusMiniCar { #initclip if (!_global.cBonusMiniCar) { var v1 = function () { super(); this._visible = false; this.type = 5; }; _global.cBonusMiniCar = v1; _global.cBonusMiniCar extends cBonus; var v2 = v1.prototype; v2.hitThis = function (t) { if (CConstants.typeCar != 3) { CSoundService.playSound(CConstants.SND_CONVERT, false, 1); CRaceEngine.m_bike.setTypeCar(3); this.removeMovieClip(); } }; ASSetPropFlags(_global.cBonusMiniCar.prototype, null, 1); } #endinitclip } movieClip 1125 __Packages.cBonusBigCar { #initclip if (!_global.cBonusBigCar) { var v1 = function () { super(); this.type = 5; this.hitArea = this.mcHit; }; _global.cBonusBigCar = v1; _global.cBonusBigCar extends cBonus; var v2 = v1.prototype; v2.hitThis = function () { if (CConstants.typeCar != 2) { CSoundService.playSound(CConstants.SND_CONVERT, false, 1); CRaceEngine.m_bike.setTypeCar(2); this.removeMovieClip(); } }; ASSetPropFlags(_global.cBonusBigCar.prototype, null, 1); } #endinitclip } movieClip 1126 __Packages.cBonusNormCar { #initclip if (!_global.cBonusNormCar) { var v1 = function () { super(); this._visible = false; this.type = 5; }; _global.cBonusNormCar = v1; _global.cBonusNormCar extends cBonus; var v2 = v1.prototype; v2.hitThis = function () { if (CConstants.typeCar != 1) { CSoundService.playSound(CConstants.SND_CONVERT, false, 1); CRaceEngine.m_bike.setTypeCar(1); this.removeMovieClip(); } }; ASSetPropFlags(_global.cBonusNormCar.prototype, null, 1); } #endinitclip } movieClip 1127 __Packages.cBonusPetlya { #initclip if (!_global.cBonusPetlya) { var v1 = function () { super(); this.type = 10; this.myHitZona = (this.getHitZona()).attachMovie('hitPetlya2', '_' + this._name, (this.getHitZona()).getNextHighestDepth()); this.myHitZona._x = this._x; this.myHitZona._y = this._y; this.myHitZona._rotation = this._rotation; this.myHitZona.cacheAsBitmap = true; this.state = false; this.myHitArea = this.mcHit; this.hitArea = this.mcHit; }; _global.cBonusPetlya = v1; _global.cBonusPetlya extends cBonus; var v2 = v1.prototype; v2.hitThis = function (w) { if ((w.getMovie()).hitTest(this.myHitArea)) { if (!this.state) { CGame.bonusScore += 1000; this.myHitZona.removeMovieClip(); this.myHitZona = (this.getHitZona()).attachMovie('hitPetlya1', '_' + this._name, (this.getHitZona()).getNextHighestDepth()); this.myHitZona._x = this._x; this.myHitZona._y = this._y; this.myHitZona._rotation = this._rotation; this.myHitZona.cacheAsBitmap = true; this.state = true; } } }; ASSetPropFlags(_global.cBonusPetlya.prototype, null, 1); } #endinitclip } movieClip 1128 __Packages.cBonusDestroy2 { #initclip if (!_global.cBonusDestroy2) { var v1 = function () { super(); this.type = 10; this.tim = 14; var v3 = (this.getHitZona()).attachMovie('HitDestroy2', '_' + this._name, (this.getHitZona()).getNextHighestDepth()); v3._x = this._x; v3._y = this._y; v3._rotation = this._rotation; }; _global.cBonusDestroy2 = v1; _global.cBonusDestroy2 extends cBonus; var v2 = v1.prototype; v2.hitThis = function () { if (this._currentframe == 1) { this.onEnterFrame = this.proc; this.gotoAndPlay('lbSign'); } }; v2.proc = function () { --this.tim; if (this._currentframe == 10) { this.gotoAndPlay('lbSign'); } if (this.tim <= 0) { this.gotoAndPlay('lbDestroy'); (this.getHitZona())['_' + this._name].removeMovieClip(); this.onEnterFrame = function () {}; } }; ASSetPropFlags(_global.cBonusDestroy2.prototype, null, 1); } #endinitclip } movieClip 1129 __Packages.cBonusWall { #initclip if (!_global.cBonusWall) { var v1 = function () { super(); this.type = 10; this.tim = 14; this.hitArea = this.mcHit; var v3 = (this.getHitZona()).attachMovie('hitWall', '_' + this._name, (this.getHitZona()).getNextHighestDepth()); v3._x = this._x; v3._y = this._y; v3._rotation = this._rotation; this.state = true; }; _global.cBonusWall = v1; _global.cBonusWall extends cBonus; var v2 = v1.prototype; v2.myHitTest = function (mc) { return this.mcHit.hitTest(mc); }; v2.hitThis = function (MC) { if (this.state) { CSoundService.playSound(CConstants.SND_HIT, true, 1); var v2 = new CVector2D(); v2.copyFrom(MC.prevPos); v2.minus(MC.pos); if (v2.modul() > CConstants.DESTROY_POWER[CConstants.typeCar - 1]) { this.gotoAndPlay('lbDestr'); (this.getHitZona())['_' + this._name].removeMovieClip(); MC.setAccelerate(MC.getAccelerate() * 0.5); this.state = false; } else { trace(this._currentframe); if (this._currentframe < 9) { this.gotoAndPlay('lbDrog'); } } } }; ASSetPropFlags(_global.cBonusWall.prototype, null, 1); } #endinitclip } movieClip 1130 __Packages.cBonusDeadCar { #initclip if (!_global.cBonusDeadCar) { var v1 = function () { super(); this.type = 100; this.hitArea = this.mcHit; this._visible = false; }; _global.cBonusDeadCar = v1; _global.cBonusDeadCar extends cBonus; var v2 = v1.prototype; v2.hitThis = function () { CRaceEngine.m_bike.__set__streng(-1); this.removeMovieClip(); }; ASSetPropFlags(_global.cBonusDeadCar.prototype, null, 1); } #endinitclip } movieClip 1131 __Packages.cBonusEndLevel { #initclip if (!_global.cBonusEndLevel) { var v1 = function () { super(); this.type = 0; this.hitArea = this; this._visible = false; this.p = this._x + this._parent._x; }; _global.cBonusEndLevel = v1; _global.cBonusEndLevel extends cBonus; var v2 = v1.prototype; v2.myHitTest = function (mc) { return true; }; v2.hitThis = function (w) { if ((w.getMovie())._name == '_MotoWhellForward') { if (w.pos.x > this.p) { CGame.levelComplete(); } } }; ASSetPropFlags(_global.cBonusEndLevel.prototype, null, 1); } #endinitclip } movieClip 54 WhellBack { frame 1 { stop(); } } movieClip 63 { } movieClip 71 { } movieClip 72 { } movieClip 73 { } movieClip 74 { frame 1 { stop(); } } movieClip 75 idMotoWhellBack { frame 1 { stop(); } } movieClip 76 idMotoWhellForward { } movieClip 77 idCurLevel { #initclip Object.registerClass('idCurLevel', CLevel); #endinitclip } movieClip 81 idChitButton { } movieClip 94 { } movieClip 96 Sound { #initclip Object.registerClass('Sound', CSoundControl); #endinitclip frame 1 { stop(); } } // unknown tag 88 length 197 movieClip 110 { frame 1 { stop(); } } movieClip 115 idBar { #initclip Object.registerClass('idBar', CBar); #endinitclip frame 1 { stop(); } } movieClip 117 levelHit1 { #initclip Object.registerClass('levelHit1', CInvisibleMovie); #endinitclip } movieClip 160 { frame 22 { stop(); } } movieClip 161 bikePlace { frame 13 { stop(); } frame 61 { stop(); } } movieClip 162 idLevel1 { } movieClip 165 point { #initclip Object.registerClass('point', CInvisibleMovie); #endinitclip } movieClip 166 levelhit_1 { } movieClip 170 pic1 { } movieClip 172 bonusHit { #initclip Object.registerClass('bonusHit', CInvisibleMovie); #endinitclip } movieClip 175 { } movieClip 176 { } movieClip 177 { } movieClip 178 reloadBonus { #initclip Object.registerClass('reloadBonus', cBonusReload); #endinitclip frame 1 { stop(); } frame 11 { stop(); } } movieClip 180 bonusScore { #initclip Object.registerClass('bonusScore', cBonusScore); #endinitclip frame 1 { } } movieClip 182 { } movieClip 183 _BL2 { #initclip Object.registerClass('_BL2', cBonusLet); #endinitclip frame 1 { var znac = 2; } } movieClip 185 { } movieClip 186 _BL4 { #initclip Object.registerClass('_BL4', cBonusLet); #endinitclip frame 1 { var znac = 4; } } movieClip 187 bon1 { } movieClip 188 { } movieClip 190 levelhit_3 { } movieClip 192 { } movieClip 193 { } movieClip 194 MRep { #initclip Object.registerClass('MRep', cBonusRepair); #endinitclip frame 1 { stop(); } frame 17 { stop(); } } movieClip 196 { } movieClip 197 _BL5 { #initclip Object.registerClass('_BL5', cBonusLet); #endinitclip frame 1 { var znac = 5; } } movieClip 198 bon3 { } movieClip 201 pic3 { } movieClip 202 { } movieClip 204 levelhit_6 { } movieClip 207 pic6 { } movieClip 209 bonWater2 { #initclip Object.registerClass('bonWater2', cBonusWater); #endinitclip } movieClip 211 hiSpeed10 { #initclip Object.registerClass('hiSpeed10', cBonusHiSpeed); #endinitclip } movieClip 214 { } movieClip 216 { } movieClip 217 _BL3 { #initclip Object.registerClass('_BL3', cBonusLet); #endinitclip frame 1 { var znac = 3; } } movieClip 221 bon6 { } movieClip 222 { } movieClip 224 levelhit_7 { } movieClip 227 pic7 { } movieClip 230 { } movieClip 232 destrBonus { #initclip Object.registerClass('destrBonus', cBonusDestroy); #endinitclip frame 1 { stop(); } frame 21 { stop(); } } movieClip 233 bon7 { } movieClip 234 { } movieClip 237 { } movieClip 238 liftHitAnim { #initclip Object.registerClass('liftHitAnim', cBonus); #endinitclip } movieClip 239 levelhit_8 { #initclip Object.registerClass('levelhit_8', CInvisibleMovie); #endinitclip } movieClip 242 pic8 { } movieClip 243 toMiniBonus { #initclip Object.registerClass('toMiniBonus', cBonusMiniCar); #endinitclip frame 1 { stop(); } } movieClip 246 { } movieClip 251 { } movieClip 252 liftPicAnim { #initclip Object.registerClass('liftPicAnim', cBonus); #endinitclip } movieClip 254 { } movieClip 255 _BL1 { #initclip Object.registerClass('_BL1', cBonusLet); #endinitclip frame 1 { var znac = 1; stop(); } } movieClip 256 bon8 { } movieClip 257 { } movieClip 259 levelhit_9 { } movieClip 262 pic9 { } movieClip 266 bon9 { } movieClip 267 { } movieClip 269 levelhit_10 { } movieClip 272 pic10 { } movieClip 273 bon10 { } movieClip 274 { } movieClip 276 levelhit_11 { } movieClip 279 pic11 { } movieClip 280 bon11 { } movieClip 281 { } movieClip 283 levelhit_12 { } movieClip 286 pic12 { } movieClip 289 { } movieClip 290 toMonsteriBonus { #initclip Object.registerClass('toMonsteriBonus', cBonusBigCar); #endinitclip frame 1 { stop(); } } movieClip 291 bon12 { } movieClip 292 { } movieClip 294 levelhit_2 { #initclip Object.registerClass('levelhit_2', CInvisibleMovie); #endinitclip } movieClip 297 pic2 { } movieClip 298 bon2 { } movieClip 299 { } movieClip 301 levelhit_5 { #initclip Object.registerClass('levelhit_5', CInvisibleMovie); #endinitclip } movieClip 304 pic5 { } movieClip 306 hiSpeed2 { #initclip Object.registerClass('hiSpeed2', cBonusHiSpeed); #endinitclip } movieClip 309 bon5 { } movieClip 310 { } movieClip 313 idLevelMiddle1 { } movieClip 314 idLevelMiddle2 { } movieClip 317 idLevelMiddle3 { } movieClip 320 { } movieClip 321 idLevelMiddle4 { } movieClip 323 { frame 1 { stop(); } } movieClip 325 { } movieClip 327 { } movieClip 328 { } movieClip 329 { frame 1 { stop(); } frame 35 { this.removeMovieClip(); stop(); } } movieClip 330 { frame 1 { stop(); } frame 35 { this.removeMovieClip(); stop(); } } movieClip 331 { frame 1 { stop(); } frame 35 { this.removeMovieClip(); stop(); } } movieClip 333 { } movieClip 334 { } movieClip 335 { frame 1 { stop(); } } movieClip 344 { } movieClip 345 { frame 1 { stop(); } } movieClip 346 idBike { frame 1 { stop(); } } movieClip 347 toNormiBonus copy { #initclip Object.registerClass('toNormiBonus copy', cBonusNormCar); #endinitclip frame 1 { stop(); } } movieClip 348 HitDestroy { } movieClip 353 smoke { frame 29 { this.removeMovieClip(); } } movieClip 356 bonusPetlya { #initclip Object.registerClass('bonusPetlya', cBonusPetlya); #endinitclip } movieClip 358 hitPetlya1 { } movieClip 360 hitPetlya2 { } movieClip 362 HitDestroy2 { } movieClip 373 destrBonus2 { #initclip Object.registerClass('destrBonus2', cBonusDestroy2); #endinitclip frame 1 { stop(); } frame 20 { stop(); } } movieClip 375 levelhit_0 { } movieClip 377 { } movieClip 378 hitWall { } movieClip 392 Wall { #initclip Object.registerClass('Wall', cBonusWall); #endinitclip frame 1 { stop(); } frame 7 { stop(); } frame 19 { gotoAndStop(1); } } movieClip 394 levelhit_13 { } movieClip 397 pic13 { } movieClip 398 bon13 { } movieClip 399 { } movieClip 400 idLevelMiddle5 { } movieClip 402 levelhit_18 { } movieClip 407 pic18 { } movieClip 409 bonWater { #initclip Object.registerClass('bonWater', cBonusWater); #endinitclip } movieClip 412 bon18 { } movieClip 413 { } movieClip 415 levelhit_19 { } movieClip 419 pic19 { } movieClip 421 DeadBonus { #initclip Object.registerClass('DeadBonus', cBonusDeadCar); #endinitclip } movieClip 422 bon19 { } movieClip 423 { } movieClip 425 levelhit_20 { } movieClip 428 pic20 { } movieClip 430 hiSpeed { #initclip Object.registerClass('hiSpeed', cBonusHiSpeed); #endinitclip } movieClip 431 bon20 { } movieClip 432 { } movieClip 434 levelhit_21 { } movieClip 438 pic21 { } movieClip 440 bon21 { } movieClip 441 { } movieClip 443 levelhit_17 { } movieClip 446 pic17 { } movieClip 447 bon17 { } movieClip 448 { } movieClip 450 levelhit_14 { } movieClip 453 pic14 { } movieClip 454 bon14 { } movieClip 455 { } movieClip 457 levelhit_15 { } movieClip 461 pic15 { } movieClip 462 bon15 { } movieClip 463 { } movieClip 465 levelhit_16 { } movieClip 468 pic16 { } movieClip 471 bon16 { } movieClip 472 { } movieClip 474 levelhit_23 { } movieClip 479 pic23 { } movieClip 481 bon23 { } movieClip 482 { } movieClip 484 levelhit_24 { } movieClip 487 pic24 { } movieClip 488 bon24 { } movieClip 489 { } movieClip 491 levelhit_25 { } movieClip 494 pic25 { } movieClip 495 bon25 { } movieClip 496 { } movieClip 498 levelhit_26 { } movieClip 502 pic26 { } movieClip 506 bon26 { } movieClip 507 { } movieClip 509 levelhit_22 { } movieClip 512 pic22 { } movieClip 515 { } movieClip 516 bon22 { } movieClip 517 { } movieClip 519 levelhit_28 { } movieClip 522 pic28 { } movieClip 523 bon28 { } movieClip 524 { } movieClip 526 levelhit_29 { } movieClip 529 pic29 { } movieClip 530 bon29 { } movieClip 531 { } movieClip 533 levelhit_40 { } movieClip 536 pic40 { } movieClip 537 bon40 { } movieClip 538 { } movieClip 540 levelhit_52 { } movieClip 542 pic52 { } movieClip 543 bon52 { } movieClip 544 { } movieClip 546 levelhit_39 { } movieClip 549 pic39 { } movieClip 550 bon39 { } movieClip 551 { } movieClip 553 levelhit_38 { } movieClip 556 pic38 { } movieClip 557 bon38 { } movieClip 558 { } movieClip 560 levelhit_37 { } movieClip 563 pic37 { } movieClip 564 bon37 { } movieClip 565 { } movieClip 567 levelhit_30 { } movieClip 570 pic30 { } movieClip 573 bon30 { } movieClip 574 { } movieClip 576 levelhit_31 { } movieClip 579 pic31 { } movieClip 580 bon31 { } movieClip 581 { } movieClip 583 levelhit_32 { } movieClip 586 pic32 { } movieClip 587 bon32 { } movieClip 588 { } movieClip 590 levelhit_33 { } movieClip 593 pic33 { } movieClip 594 bon33 { } movieClip 595 { } movieClip 597 levelhit_34 { } movieClip 600 pic34 { } movieClip 601 bon34 { } movieClip 602 { } movieClip 604 levelhit_35 { } movieClip 607 pic35 { } movieClip 610 bon35 { } movieClip 611 { } movieClip 613 levelhit_51 { } movieClip 616 pic51 { } movieClip 617 bon51 { } movieClip 618 { } movieClip 620 levelhit_50 { } movieClip 623 pic50 { } movieClip 624 bon50 { } movieClip 625 { } movieClip 627 levelhit_36 { } movieClip 630 pic36 { } movieClip 631 bon36 { } movieClip 632 { } movieClip 634 levelhit_41 { } movieClip 639 pic41 { } movieClip 640 bon41 { } movieClip 641 { } movieClip 643 levelhit_42 { } movieClip 647 pic42 { } movieClip 648 bon42 { } movieClip 649 { } movieClip 651 levelhit_43 { } movieClip 656 pic43 { } movieClip 657 bon43 { } movieClip 658 { } movieClip 660 levelhit_44 { } movieClip 664 pic44 { } movieClip 665 bon44 { } movieClip 666 { } movieClip 669 { } movieClip 670 AnimDoorHit { #initclip Object.registerClass('AnimDoorHit', cBonus); #endinitclip } movieClip 671 levelhit_45 { } movieClip 675 pic45 { } movieClip 676 bon45 { } movieClip 677 { } movieClip 679 levelhit_46 { } movieClip 683 pic46 { } movieClip 684 bon46 { } movieClip 685 { } movieClip 687 levelhit_47 { } movieClip 690 pic47 { } movieClip 691 bon47 { } movieClip 692 { } movieClip 694 levelhit_48 { } movieClip 697 pic48 { } movieClip 700 bon48 { } movieClip 701 { } movieClip 702 levelhit_49 { } movieClip 705 pic49 { } movieClip 706 finishWall { #initclip Object.registerClass('finishWall', cBonusEndLevel); #endinitclip } movieClip 707 bon49 { } movieClip 708 { } movieClip 710 levelhit_55 { } movieClip 714 pic55 { } movieClip 716 { } movieClip 718 { } movieClip 719 { frame 18 { gotoAndPlay(22 + random(20)); } } movieClip 720 { } movieClip 721 bon55 { } movieClip 722 { } movieClip 724 levelhit_54 { } movieClip 727 pic54 { } movieClip 728 bon54 { } movieClip 729 { } movieClip 731 levelhit_56 { } movieClip 735 pic56 { } movieClip 736 bon56 { } movieClip 737 { } movieClip 739 levelhit_63 { } movieClip 742 pic63 { } movieClip 743 bon63 { } movieClip 744 { } movieClip 747 levelhit_53 { } movieClip 751 pic53 { } movieClip 762 { frame 9 { gotoAndPlay(10 + random(10)); } } movieClip 763 { } movieClip 764 { } movieClip 765 bon53 { } movieClip 766 { } movieClip 768 levelhit_57 { } movieClip 771 pic57 { } movieClip 772 bon57 { } movieClip 773 { } movieClip 775 levelhit_58 { } movieClip 778 pic58 { } movieClip 779 bon58 { } movieClip 780 { } movieClip 782 levelhit_59 { } movieClip 786 pic59 { } movieClip 787 bon59 { } movieClip 788 { } movieClip 790 levelhit_60 { } movieClip 793 pic60 { } movieClip 794 bon60 { } movieClip 795 { } movieClip 797 levelhit_61 { } movieClip 801 pic61 { } movieClip 804 bon61 { } movieClip 805 { } movieClip 807 levelhit_62 { } movieClip 811 pic62 { } movieClip 813 { } movieClip 814 bon62 { } movieClip 815 { } movieClip 816 levelhit_68 { } movieClip 818 pic68 { } movieClip 819 bon68 { } movieClip 820 { } movieClip 821 levelhit_64 { } movieClip 824 pic64 { } movieClip 825 bon64 { } movieClip 826 { } movieClip 827 levelhit_65 { } movieClip 830 pic65 { } movieClip 831 bon65 { } movieClip 832 { } movieClip 833 levelhit_66 { } movieClip 836 pic66 { } movieClip 837 bon66 { } movieClip 838 { } movieClip 840 levelhit_4 { } movieClip 843 pic4 { } movieClip 844 bon4 { } movieClip 845 { } movieClip 846 levelhit_27 { } movieClip 849 pic27 { } movieClip 850 bon27 { } movieClip 851 { } movieClip 853 { } movieClip 856 { } // unknown tag 88 length 138 movieClip 861 { } movieClip 863 { } movieClip 865 { } movieClip 866 { frame 9 { stop(); } } button 868 { on (press) { CGame.butNewGame(); } } movieClip 870 { } movieClip 871 { } movieClip 872 { frame 9 { stop(); } } button 873 { on (press) { CGame.buttNo(); } } movieClip 874 newgamescreen { instance of movieClip 853 { onClipEvent (load) { this.onPress = function () {}; } } } movieClip 875 levelhit_67 { } movieClip 877 pic67 { } movieClip 878 bon67 { } movieClip 879 { } movieClip 894 { frame 1 { stop(); } } movieClip 896 { } movieClip 899 Bar2 { #initclip Object.registerClass('Bar2', CBar); #endinitclip frame 1 { stop(); } } movieClip 913 { } movieClip 916 { } movieClip 919 { frame 1 { stop(); } } button 923 { on (press) { CGameControl.onPressMy(); } } movieClip 927 { } movieClip 929 { } movieClip 930 { frame 9 { stop(); } } button 932 { on (press) { CRaceEngine.reloadLevel(); } } movieClip 934 { } movieClip 936 { } movieClip 937 { frame 9 { stop(); } } button 938 { on (press) { trace('eeeeeeeeeeee'); CGame.buttonContGame(); } } movieClip 941 { } movieClip 942 { frame 9 { stop(); } } button 943 { on (press) { CGameControl.onPressMy(); } } movieClip 944 pausaGame { #initclip Object.registerClass('pausaGame', CGameControl); #endinitclip frame 1 { stop(); } frame 2 { stop(); } } movieClip 945 { } movieClip 946 gameRace { #initclip Object.registerClass('gameRace', CRaceEngine); #endinitclip } // unknown tag 88 length 49 movieClip 952 { } movieClip 955 { } movieClip 956 { } movieClip 957 { frame 9 { stop(); } } button 958 { on (press) { CGame.buttonBack(); } } movieClip 964 { } movieClip 965 { } button 970 { on (press) { CGame.setLevelSelect(1); } } movieClip 974 { } movieClip 975 { frame 1 { stop(); } } button 982 { on (press) { CGame.setLevelSelect(2); } } movieClip 985 { frame 1 { stop(); } } button 989 { on (press) { CGame.setLevelSelect(3); } } movieClip 993 { frame 1 { stop(); } } movieClip 997 { } movieClip 1000 { } movieClip 1005 { } movieClip 1018 { } button 1020 { on (press) { CGame.buttonContGame(); } } movieClip 1022 { } movieClip 1024 { } movieClip 1025 { frame 9 { stop(); } } button 1027 { on (press) { CGame.buttonNextLevel(); } } movieClip 1028 { } movieClip 1029 { } movieClip 1035 { } movieClip 1037 { } movieClip 1042 { } button 1043 { on (release) { getURL('http://chillcade.com', '_blank'); } } movieClip 1045 { } movieClip 1048 { } movieClip 1049 { frame 86 { _root.play(); } } movieClip 1050 { frame 1 { function timerHandler() { if (!loadingComplete) { var v2 = _root.getBytesLoaded() / _root.getBytesTotal(); bar._xscale = 100 * v2; if (v2 == 1) { loadingComplete = true; if (AUTO_PLAY) { startMovie(); return undefined; } gotoAndStop('loaded'); return undefined; } } } function startMovie() { _root.play(); } _root.stop(); stop(); var AUTO_PLAY = false; var loadingComplete = false; timerHandler(); } frame 2 { stop(); } } frame 31 { stop(); } button 1056 { on (release) { getURL('http://www.chillcade.com', '_blank'); } } movieClip 1058 { } movieClip 1060 { } movieClip 1061 { frame 9 { stop(); } } button 1062 { on (press) { CGame.addNewGame(); } } movieClip 1065 { } movieClip 1066 { } movieClip 1067 { frame 9 { stop(); } } button 1068 { on (press) { CGame.buttonHowToPlay(); } } button 1069 { on (press) { CGame.buttonContGame(); } } movieClip 1072 { frame 1 { if (!CGame.cont) { this.btCont._visible = false; } stop(); } } movieClip 1073 { } button 1077 { on (release) { getURL('http://www.iriysoft.ru', '_blank'); } } button 1080 { on (press) { CGame.buttonBack(); } } movieClip 1084 { } // unknown tag 88 length 197 movieClip 1091 { } movieClip 1092 game { #initclip Object.registerClass('game', CGame); #endinitclip frame 1 { stop(); } frame 16 { CGame.setScreenSelect(); stop(); } frame 45 { stop(); } frame 56 { stop(); } frame 71 { stop(); } frame 86 { stop(); } }




http://swfchan.com/15/71765/info.shtml
Created: 9/4 -2019 03:44:14 Last modified: 9/4 -2019 03:44:14 Server time: 16/05 -2024 03:12:22