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

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

The Professionals 2.swf

This is the info page for
Flash #73658

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


ActionScript [AS1/AS2]
Combined Code
movieClip 19 { } movieClip 20 { frame 1 { var component = _parent; component.registerSkinElement(track_mc, 'scrollTrack'); } } movieClip 21 FScrollBarSymbol { #initclip FScrollBarClass = function () { if (this._height == 4) { return undefined; } this.init(); this.largeScroll = 0; this.pageSize = 0; this.maxPos = 0; this.minPos = 0; this.smallScroll = 1; this.width = this.horizontal ? this._width : this._height; this._yscale = 100; this._xscale = 100; this.setScrollPosition(0); this.tabEnabled = false; if (this._targetInstanceName.length > 0) { this.setScrollTarget(this._parent[this._targetInstanceName]); } this.tabChildren = false; this.setSize(this.width); }; FScrollBarClass.prototype = new FUIComponentClass(); FScrollBarClass.prototype.setHorizontal = function (flag) { if (this.horizontal && !flag) { this._xscale = 100; this._rotation = 0; } else { if (flag && !this.horizontal) { this._xscale = -100; this._rotation = -90; } } this.horizontal = flag; }; FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) { if (!this.enable) { return undefined; } this.pageSize = pSize; this.minPos = Math.max(mnPos, 0); this.maxPos = Math.max(mxPos, 0); this.scrollPosition = Math.max(this.minPos, this.scrollPosition); this.scrollPosition = Math.min(this.maxPos, this.scrollPosition); if (this.maxPos - this.minPos <= 0) { this.scrollThumb_mc.removeMovieClip(); this.upArrow_mc.gotoAndStop(3); this.downArrow_mc.gotoAndStop(3); this.downArrow_mc.onDragOut = null; this.downArrow_mc.onRelease = this.downArrow_mc.onDragOut; this.downArrow_mc.onPress = this.downArrow_mc.onDragOut; this.upArrow_mc.onDragOut = null; this.upArrow_mc.onRelease = this.upArrow_mc.onDragOut; this.upArrow_mc.onPress = this.upArrow_mc.onDragOut; this.scrollTrack_mc.onRelease = null; this.scrollTrack_mc.onPress = this.scrollTrack_mc.onRelease; this.scrollTrack_mc.onRollOut = null; this.scrollTrack_mc.onDragOut = this.scrollTrack_mc.onRollOut; this.scrollTrack_mc.useHandCursor = false; } else { var v2 = this.getScrollPosition(); this.upArrow_mc.gotoAndStop(1); this.downArrow_mc.gotoAndStop(1); this.upArrow_mc.onDragOver = this.startUpScroller; this.upArrow_mc.onPress = this.upArrow_mc.onDragOver; this.upArrow_mc.onDragOut = this.stopScrolling; this.upArrow_mc.onRelease = this.upArrow_mc.onDragOut; this.downArrow_mc.onDragOver = this.startDownScroller; this.downArrow_mc.onPress = this.downArrow_mc.onDragOver; this.downArrow_mc.onDragOut = this.stopScrolling; this.downArrow_mc.onRelease = this.downArrow_mc.onDragOut; this.scrollTrack_mc.onDragOver = this.startTrackScroller; this.scrollTrack_mc.onPress = this.scrollTrack_mc.onDragOver; this.scrollTrack_mc.onRelease = this.stopScrolling; this.scrollTrack_mc.onDragOut = this.stopScrolling; this.scrollTrack_mc.onRollOut = this.stopScrolling; this.scrollTrack_mc.useHandCursor = false; this.attachMovie('ScrollThumb', 'scrollThumb_mc', 3); this.scrollThumb_mc._x = 0; this.scrollThumb_mc._y = this.upArrow_mc._height; this.scrollThumb_mc.onPress = this.startDragThumb; this.scrollThumb_mc.controller = this; this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb; this.scrollThumb_mc.onRelease = this.scrollThumb_mc.onReleaseOutside; this.scrollThumb_mc.useHandCursor = false; this.thumbHeight = (this.pageSize / (this.maxPos - this.minPos + this.pageSize)) * this.trackSize; this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid; this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop; this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot; this.thumbHeight = Math.max(this.thumbHeight, 6); this.midHeight = this.thumbHeight - this.thumbTop_mc._height - this.thumbBot_mc._height; this.thumbMid_mc._yScale = this.midHeight * 100 / this.thumbMid_mc._height; this.thumbMid_mc._y = this.thumbTop_mc._height; this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight; this.scrollTop = this.scrollThumb_mc._y; this.trackHeight = this.trackSize - this.thumbHeight; this.scrollBot = this.trackHeight + this.scrollTop; v2 = Math.min(v2, this.maxPos); this.setScrollPosition(Math.max(v2, this.minPos)); } }; FScrollBarClass.prototype.getScrollPosition = function () { return this.scrollPosition; }; FScrollBarClass.prototype.setScrollPosition = function (pos) { this.scrollPosition = pos; if (this.scrollThumb_mc != undefined) { pos = Math.min(pos, this.maxPos); pos = Math.max(pos, this.minPos); } this.scrollThumb_mc._y = (pos - this.minPos) * this.trackHeight / (this.maxPos - this.minPos) + this.scrollTop; this.executeCallBack(); }; FScrollBarClass.prototype.setLargeScroll = function (lScroll) { this.largeScroll = lScroll; }; FScrollBarClass.prototype.setSmallScroll = function (sScroll) { this.smallScroll = sScroll; }; FScrollBarClass.prototype.setEnabled = function (enabledFlag) { var v3 = this.enable; if (enabledFlag && !v3) { this.enable = enabledFlag; if (this.textField != undefined) { this.setScrollTarget(this.textField); } else { this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos); this.setScrollPosition(this.cachedPos); } this.clickFilter = undefined; } else { if (!enabledFlag && v3) { this.textField.removeListener(this); this.cachedPos = this.getScrollPosition(); this.cachedMinPos = this.minPos; this.cachedMaxPos = this.maxPos; if (this.clickFilter == undefined) { this.setScrollProperties(this.pageSize, 0, 0); } else { this.clickFilter = true; } this.enable = enabledFlag; } } }; FScrollBarClass.prototype.setSize = function (hgt) { if (this._height == 1) { return undefined; } this.width = hgt; this.scrollTrack_mc._yscale = 100; this.scrollTrack_mc._yscale = 100 * this.width / this.scrollTrack_mc._height; if (this.upArrow_mc == undefined) { this.attachMovie('UpArrow', 'upArrow_mc', 1); this.attachMovie('DownArrow', 'downArrow_mc', 2); this.upArrow_mc.controller = this; this.downArrow_mc.controller = this.upArrow_mc.controller; this.downArrow_mc.useHandCursor = false; this.upArrow_mc.useHandCursor = this.downArrow_mc.useHandCursor; this.upArrow_mc._y = 0; this.upArrow_mc._x = 0; this.downArrow_mc._x = 0; } this.scrollTrack_mc.controller = this; this.downArrow_mc._y = this.width - this.downArrow_mc._height; this.trackSize = this.width - 2 * this.downArrow_mc._height; if (this.textField != undefined) { this.onTextChanged(); } else { this.setScrollProperties(this.pageSize, this.minPos, this.maxPos); } }; FScrollBarClass.prototype.scrollIt = function (inc, mode) { var v3 = this.smallScroll; if (inc != 'one') { v3 = (this.largeScroll == 0) ? this.pageSize : this.largeScroll; } var v2 = this.getScrollPosition() + mode * v3; if (v2 > this.maxPos) { v2 = this.maxPos; } else { if (v2 < this.minPos) { v2 = this.minPos; } } this.setScrollPosition(v2); }; FScrollBarClass.prototype.startDragThumb = function () { this.lastY = this._ymouse; this.onMouseMove = this.controller.dragThumb; }; FScrollBarClass.prototype.dragThumb = function () { this.scrollMove = this._ymouse - this.lastY; this.scrollMove += this._y; if (this.scrollMove < this.controller.scrollTop) { this.scrollMove = this.controller.scrollTop; } else { if (this.scrollMove > this.controller.scrollBot) { this.scrollMove = this.controller.scrollBot; } } this._y = this.scrollMove; var v2 = this.controller; v2.scrollPosition = Math.round((v2.maxPos - v2.minPos) * (this._y - v2.scrollTop) / v2.trackHeight) + v2.minPos; this.controller.isScrolling = true; updateAfterEvent(); this.controller.executeCallBack(); }; FScrollBarClass.prototype.stopDragThumb = function () { this.controller.isScrolling = false; this.onMouseMove = null; }; FScrollBarClass.prototype.startTrackScroller = function () { this.controller.trackScroller(); this.controller.scrolling = setInterval(this.controller, 'scrollInterval', 500, 'page', -1); }; FScrollBarClass.prototype.scrollInterval = function (inc, mode) { clearInterval(this.scrolling); if (inc == 'page') { this.trackScroller(); } else { this.scrollIt(inc, mode); } this.scrolling = setInterval(this, 'scrollInterval', 35, inc, mode); }; FScrollBarClass.prototype.trackScroller = function () { if (this.scrollThumb_mc._y + this.thumbHeight < this._ymouse) { this.scrollIt('page', 1); } else { if (this.scrollThumb_mc._y > this._ymouse) { this.scrollIt('page', -1); } } }; FScrollBarClass.prototype.stopScrolling = function () { this.controller.downArrow_mc.gotoAndStop(1); this.controller.upArrow_mc.gotoAndStop(1); clearInterval(this.controller.scrolling); }; FScrollBarClass.prototype.startUpScroller = function () { this.controller.upArrow_mc.gotoAndStop(2); this.controller.scrollIt('one', -1); this.controller.scrolling = setInterval(this.controller, 'scrollInterval', 500, 'one', -1); }; FScrollBarClass.prototype.startDownScroller = function () { this.controller.downArrow_mc.gotoAndStop(2); this.controller.scrollIt('one', 1); this.controller.scrolling = setInterval(this.controller, 'scrollInterval', 500, 'one', 1); }; FScrollBarClass.prototype.setScrollTarget = function (tF) { if (tF == undefined) { this.textField.removeListener(this); delete this.textField[this.horizontal ? 'hScroller' : 'vScroller']; if (this.textField.hScroller != undefined && this.textField.vScroller != undefined) { this.textField.unwatch('text'); this.textField.unwatch('htmltext'); } } this.textField = undefined; if (!(tF instanceof TextField)) { return undefined; } this.textField = tF; this.textField[this.horizontal ? 'hScroller' : 'vScroller'] = this; this.onTextChanged(); this.onChanged = function () { this.onTextChanged(); }; this.onScroller = function () { if (!this.isScrolling) { if (!this.horizontal) { this.setScrollPosition(this.textField.scroll); } else { this.setScrollPosition(this.textField.hscroll); } } }; this.textField.addListener(this); this.textField.watch('text', this.callback); this.textField.watch('htmlText', this.callback); }; FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) { clearInterval(this.hScroller.synchScroll); clearInterval(this.vScroller.synchScroll); this.hScroller.synchScroll = setInterval(this.hScroller, 'onTextChanged', 50); this.vScroller.synchScroll = setInterval(this.vScroller, 'onTextChanged', 50); return newVal; }; FScrollBarClass.prototype.onTextChanged = function () { if (!this.enable || this.textField == undefined) { return undefined; } clearInterval(this.synchScroll); if (this.horizontal) { var v3 = this.textField.hscroll; this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll); this.setScrollPosition(Math.min(v3, this.textField.maxhscroll)); } else { var v3 = this.textField.scroll; var v2 = this.textField.bottomScroll - this.textField.scroll; this.setScrollProperties(v2, 1, this.textField.maxscroll); this.setScrollPosition(Math.min(v3, this.textField.maxscroll)); } }; FScrollBarClass.prototype.executeCallBack = function () { if (this.textField == undefined) { super.executeCallBack(); } else { if (this.horizontal) { this.textField.hscroll = this.getScrollPosition(); } else { this.textField.scroll = this.getScrollPosition(); } } }; Object.registerClass('FScrollBarSymbol', FScrollBarClass); #endinitclip frame 1 { } } movieClip 22 FUIComponentSymbol { #initclip function FUIComponentClass() { this.init(); } FUIComponentClass.prototype = new MovieClip(); FUIComponentClass.prototype.init = function () { this.enable = true; this.focused = false; this.useHandCursor = false; this._accImpl = new Object(); this._accImpl.stub = true; this.styleTable = new Array(); if (_global.globalStyleFormat == undefined) { _global.globalStyleFormat = new FStyleFormat(); globalStyleFormat.isGlobal = true; _global._focusControl = new Object(); _global._focusControl.onSetFocus = function (oldFocus, newFocus) { oldFocus.myOnKillFocus(); newFocus.myOnSetFocus(); }; Selection.addListener(_global._focusControl); } if (this._name != undefined) { this._focusrect = false; this.tabEnabled = true; this.focusEnabled = true; this.tabChildren = false; this.tabFocused = true; if (this.hostStyle == undefined) { globalStyleFormat.addListener(this); } else { this.styleTable = this.hostStyle; } this.deadPreview._visible = false; this.deadPreview._height = 1; this.deadPreview._width = 1; this.methodTable = new Object(); this.keyListener = new Object(); this.keyListener.controller = this; this.keyListener.onKeyDown = function () { this.controller.myOnKeyDown(); }; this.keyListener.onKeyUp = function () { this.controller.myOnKeyUp(); }; for (var v3 in this.styleFormat_prm) { this.setStyleProperty(v3, this.styleFormat_prm[v3]); } } }; FUIComponentClass.prototype.setEnabled = function (enabledFlag) { this.enable = arguments.length > 0 ? enabledFlag : true; this.focusEnabled = enabledFlag; this.tabEnabled = this.focusEnabled; if (!this.enable && this.focused) { Selection.setFocus(undefined); } }; FUIComponentClass.prototype.getEnabled = function () { return this.enable; }; FUIComponentClass.prototype.setSize = function (w, h) { this.width = w; this.height = h; this.focusRect.removeMovieClip(); }; FUIComponentClass.prototype.setChangeHandler = function (chng, obj) { this.handlerObj = (obj == undefined) ? this._parent : obj; this.changeHandler = chng; }; FUIComponentClass.prototype.invalidate = function (methodName) { this.methodTable[methodName] = true; this.onEnterFrame = this.cleanUI; }; FUIComponentClass.prototype.cleanUI = function () { if (this.methodTable.setSize) { this.setSize(this.width, this.height); } else { this.cleanUINotSize(); } this.methodTable = new Object(); delete this.onEnterFrame; }; FUIComponentClass.prototype.cleanUINotSize = function () { for (var v2 in this.methodTable) { this[v2](); } }; FUIComponentClass.prototype.drawRect = function (x, y, w, h) { var v4 = this.styleTable.focusRectInner.value; var v5 = this.styleTable.focusRectOuter.value; if (v4 == undefined) { v4 = 16777215; } if (v5 == undefined) { v5 = 0; } this.createEmptyMovieClip('focusRect', 1000); this.focusRect.controller = this; this.focusRect.lineStyle(1, v5); this.focusRect.moveTo(x, y); this.focusRect.lineTo(x + w, y); this.focusRect.lineTo(x + w, y + h); this.focusRect.lineTo(x, y + h); this.focusRect.lineTo(x, y); this.focusRect.lineStyle(1, v4); this.focusRect.moveTo(x + 1, y + 1); this.focusRect.lineTo(x + w - 1, y + 1); this.focusRect.lineTo(x + w - 1, y + h - 1); this.focusRect.lineTo(x + 1, y + h - 1); this.focusRect.lineTo(x + 1, y + 1); }; FUIComponentClass.prototype.pressFocus = function () { this.tabFocused = false; this.focusRect.removeMovieClip(); Selection.setFocus(this); }; FUIComponentClass.prototype.drawFocusRect = function () { this.drawRect(-2, -2, this.width + 4, this.height + 4); }; FUIComponentClass.prototype.myOnSetFocus = function () { this.focused = true; Key.addListener(this.keyListener); if (this.tabFocused) { this.drawFocusRect(); } }; FUIComponentClass.prototype.myOnKillFocus = function () { this.tabFocused = true; this.focused = false; this.focusRect.removeMovieClip(); Key.removeListener(this.keyListener); }; FUIComponentClass.prototype.executeCallBack = function () { this.handlerObj[this.changeHandler](this); }; FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) { this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal); }; FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) { if (value == '') { return undefined; } var v17 = parseInt(value); if (!isNaN(v17)) { value = v17; } var v16 = arguments.length > 2 ? isGlobal : false; if (this.styleTable[propName] == undefined) { this.styleTable[propName] = new Object(); this.styleTable[propName].useGlobal = true; } if (this.styleTable[propName].useGlobal || !v16) { this.styleTable[propName].value = value; if (this.setCustomStyleProperty(propName, value)) { } else { if (propName == 'embedFonts') { this.invalidate('setSize'); } else { if (propName.subString(0, 4) == 'text') { if (this.textStyle == undefined) { this.textStyle = new TextFormat(); } var v18 = propName.subString(4, propName.length); this.textStyle[v18] = value; this.invalidate('setSize'); } else { for (var v15 in this.styleTable[propName].coloredMCs) { var v4 = new Color(this.styleTable[propName].coloredMCs[v15]); if (this.styleTable[propName].value == undefined) { var v5 = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0', 'aa': '100', 'ab': '0'}; v4.setTransform(v5); } else { v4.setRGB(value); } } } } } this.styleTable[propName].useGlobal = v16; } }; FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) { if (this.styleTable[propName] == undefined) { this.styleTable[propName] = new Object(); this.styleTable[propName].useGlobal = true; } if (this.styleTable[propName].coloredMCs == undefined) { this.styleTable[propName].coloredMCs = new Object(); } this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef; if (this.styleTable[propName].value != undefined) { var v4 = new Color(skinMCRef); v4.setRGB(this.styleTable[propName].value); } }; _global.FStyleFormat = function () { this.nonStyles = {'listeners': true, 'isGlobal': true, 'isAStyle': true, 'addListener': true, 'removeListener': true, 'nonStyles': true, 'applyChanges': true}; this.listeners = new Object(); this.isGlobal = false; if (arguments.length > 0) { for (var v3 in arguments[0]) { this[v3] = arguments[0][v3]; } } }; _global.FStyleFormat.prototype = new Object(); FStyleFormat.prototype.addListener = function () { var v3 = 0; while (v3 < arguments.length) { var v4 = arguments[v3]; this.listeners[arguments[v3]] = v4; for (var v5 in this) { if (this.isAStyle(v5)) { v4.updateStyleProperty(this, v5.toString()); } } ++v3; } }; FStyleFormat.prototype.removeListener = function (component) { this.listeners[component] = undefined; for (var v4 in this) { if (this.isAStyle(v4)) { if (component.styleTable[v4].useGlobal == this.isGlobal) { component.styleTable[v4].useGlobal = true; var v3 = this.isGlobal ? undefined : globalStyleFormat[v4]; component.setStyleProperty(v4, v3, true); } } } }; FStyleFormat.prototype.applyChanges = function () { var v6 = 0; for (var v5 in this.listeners) { var v3 = this.listeners[v5]; if (arguments.length > 0) { var v4 = 0; while (v4 < arguments.length) { if (this.isAStyle(arguments[v4])) { v3.updateStyleProperty(this, arguments[v4]); } ++v4; } } else { for (var v4 in this) { if (this.isAStyle(v4)) { v3.updateStyleProperty(this, v4.toString()); } } } } }; FStyleFormat.prototype.isAStyle = function (name) { return this.nonStyles[name] ? false : true; }; #endinitclip frame 1 { } } movieClip 23 { } movieClip 25 { } movieClip 27 { } movieClip 29 { } movieClip 31 { } movieClip 33 { } movieClip 34 { frame 1 { var component = _parent._parent; component.registerSkinElement(arrow_mc, 'arrow'); component.registerSkinElement(face_mc, 'face'); component.registerSkinElement(shadow_mc, 'shadow'); component.registerSkinElement(darkshadow_mc, 'darkshadow'); component.registerSkinElement(highlight_mc, 'highlight'); component.registerSkinElement(highlight3D_mc, 'highlight3D'); } } movieClip 35 { } movieClip 36 { } movieClip 37 { } movieClip 39 { } movieClip 40 { } movieClip 42 { } movieClip 43 { frame 1 { var component = _parent._parent; component.registerSkinElement(arrow_mc, 'arrow'); component.registerSkinElement(face_mc, 'face'); component.registerSkinElement(shadow_mc, 'shadow'); component.registerSkinElement(darkshadow_mc, 'darkshadow'); component.registerSkinElement(highlight_mc, 'highlight'); component.registerSkinElement(highlight3D_mc, 'highlight3D'); } } movieClip 44 { } movieClip 45 { } movieClip 46 { } movieClip 47 { } movieClip 49 { } movieClip 51 { } movieClip 52 { frame 1 { var component = _parent._parent; component.registerSkinElement(arrow_mc, 'foregroundDisabled'); component.registerSkinElement(face_mc, 'face'); component.registerSkinElement(shadow_mc, 'shadow'); component.registerSkinElement(darkshadow_mc, 'darkshadow'); component.registerSkinElement(highlight_mc, 'highlight'); component.registerSkinElement(highlight3D_mc, 'highlight3D'); } } movieClip 53 UpArrow { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 55 { } movieClip 56 { } movieClip 57 { } movieClip 58 { } movieClip 59 { frame 1 { var component = _parent._parent; component.registerSkinElement(shadow_mc, 'shadow'); component.registerSkinElement(darkshadow_mc, 'darkshadow'); component.registerSkinElement(highlight_mc, 'highlight'); component.registerSkinElement(highlight3D_mc, 'highlight3D'); } } movieClip 61 { } movieClip 63 { } movieClip 65 { } movieClip 66 { } movieClip 67 { } movieClip 68 { frame 1 { var component = _parent._parent; component.registerSkinElement(face_mc, 'face'); component.registerSkinElement(shadow_mc, 'shadow'); component.registerSkinElement(darkshadow_mc, 'darkshadow'); component.registerSkinElement(highlight_mc, 'highlight'); component.registerSkinElement(highlight3D_mc, 'highlight3D'); } } movieClip 69 { } movieClip 71 { } movieClip 72 { } movieClip 73 { frame 1 { var component = _parent._parent; component.registerSkinElement(highlight3D_mc, 'highlight3D'); component.registerSkinElement(shadow_mc, 'shadow'); component.registerSkinElement(darkshadow_mc, 'darkshadow'); component.registerSkinElement(highlight_mc, 'highlight'); } } movieClip 74 ScrollThumb { frame 1 { stop(); } } movieClip 75 { } movieClip 77 { } movieClip 78 { } movieClip 79 { } movieClip 80 { } movieClip 81 { } movieClip 82 { frame 1 { var component = _parent._parent; component.registerSkinElement(arrow_mc, 'arrow'); component.registerSkinElement(face_mc, 'face'); component.registerSkinElement(shadow_mc, 'shadow'); component.registerSkinElement(darkshadow_mc, 'darkshadow'); component.registerSkinElement(highlight_mc, 'highlight'); component.registerSkinElement(highlight3D_mc, 'highlight3D'); } } movieClip 83 { } movieClip 84 { } movieClip 85 { } movieClip 86 { } movieClip 87 { } movieClip 89 { } movieClip 90 { frame 1 { var component = _parent._parent; component.registerSkinElement(arrow_mc, 'arrow'); component.registerSkinElement(face_mc, 'face'); component.registerSkinElement(shadow_mc, 'shadow'); component.registerSkinElement(darkshadow_mc, 'darkshadow'); component.registerSkinElement(highlight_mc, 'highlight'); component.registerSkinElement(highlight3D_mc, 'highlight3D'); } } movieClip 91 { } movieClip 92 { } movieClip 93 { } movieClip 94 { } movieClip 95 { } movieClip 97 { } movieClip 98 { frame 1 { var component = _parent._parent; component.registerSkinElement(arrow_mc, 'foregroundDisabled'); component.registerSkinElement(face_mc, 'face'); component.registerSkinElement(shadow_mc, 'shadow'); component.registerSkinElement(darkshadow_mc, 'darkshadow'); component.registerSkinElement(highlight_mc, 'highlight'); component.registerSkinElement(highlight3D_mc, 'highlight3D'); } } movieClip 99 DownArrow { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 105 miss { frame 7 { stop(); } } button 108 { on (release) { _root.xdada = 0; _root.gotoAndPlay('submitScore'); } } movieClip 111 _submit { } movieClip 119 chorro2 { frame 8 { stop(); } } movieClip 128 chorro { frame 9 { stop(); } } movieClip 132 Xray Connector 8-OS { #initclip com.blitzagency.xray.Xray.init(); this.onLoad = function () { com.blitzagency.xray.Xray.initConnections(this); if (!com.blitzagency.xray.Xray.packagesInitialized) { com.blitzagency.xray.Xray.addPackages(); } }; #endinitclip frame 1 { if (!_global.isLivePreview) { label._visible = false; if (this.classPackages.length > 1) { com.blitzagency.xray.Xray.addPackages(this.classPackages); } else { com.blitzagency.xray.Xray.addPackages(com.blitzagency.xray.Xray.basePackages); } if (this.showFPS) { com.blitzagency.xray.Xray.createFPSMeter(this, this.fpsColor); } } } } frame 1 { _fglv = new LoadVars(); _fglv.gid = 68; _fglv.url = _root._url; _fglv.sendAndLoad('http://www.freegamesforyourwebsite.com/stats.php', _fglv, 'POST'); delete _fglv; var debug = true; var gameID = 171; var gameName = 'theprofessionals2'; stop(); fscommand('showmenu', 'false'); prel.onEnterFrame = function () { prel.procent.text = Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); prel.gotoAndStop(prel.procent.text); if (Number(prel.procent.text) >= 100) { play(); delete this.onEnterFrame; } }; } movieClip 150 { } movieClip 152 { } movieClip 208 { frame 1 { stop(); var tagctr = random(55) + 1; gotoAndStop(tagctr); } } movieClip 209 { frame 105 { stop(); } } movieClip 210 { } movieClip 212 { } movieClip 215 { } movieClip 227 { } movieClip 264 { instance mcNotice of movieClip 227 { onClipEvent (load) { _visible = false; } } frame 39 { stop(); if (_url.indexOf('freeonlinegames.com') >= 0 && _url.indexOf('file:') == -1) { _root.okToPlay = true; _root.play(); } else { if (_root.debug) { _root.okToPlay = true; _root.play(); } else { _root.mcTaglines._visible = false; mcNotice._visible = true; } } } } movieClip 265 { frame 71 { stop(); var fogsound = new Sound(); fogsound.attachSound('fogaudio'); fogsound.start(0, 1); } } movieClip 272 { frame 1 { stop(); } } movieClip 274 { } instance of movieClip 274 { onClipEvent (release) { getURL('http://www.freegamesforyourwebsite.com/click.php?gid=68&area=loader', '_blank'); } } movieClip 129 __Packages.com.blitzagency.xray.Xray { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.blitzagency) { _global.com.blitzagency = new Object(); } if (!_global.com.blitzagency.xray) { _global.com.blitzagency.xray = new Object(); } if (!_global.com.blitzagency.xray.Xray) { var v1 = function () {}; com.blitzagency.xray.Xray = v1; var v2 = v1.prototype; v1.init = function () { com.blitzagency.xray.Xray.basePackages = new Array('com,org,net,edu,gov,ch,mx,flash'); com.blitzagency.xray.Xray.addedObjects = new Object(); com.blitzagency.xray.Xray.recursionControl = 0; com.blitzagency.xray.Xray.xrayTrace = com.blitzagency.xray.XrayTrace.getInstance(); _global.view = com.blitzagency.util.Delegate.create(com.blitzagency.xray.Xray.xrayTrace, com.blitzagency.xray.Xray.xrayTrace.trace); _global.tt = com.blitzagency.util.Delegate.create(com.blitzagency.xray.Xray.xrayTrace, com.blitzagency.xray.Xray.xrayTrace.trace); _global.Xray = com.blitzagency.xray.Xray; com.blitzagency.xray.Xray.pointConverter = com.blitzagency.util.PointConverter.getInstance(); com.blitzagency.xray.Xray.fpsMeter = com.blitzagency.xray.FPSMeter.getInstance(); com.blitzagency.xray.Xray.fpsMeter.addEventListener('onFpsUpdate', com.blitzagency.util.Delegate.create(com.blitzagency.xray.Xray, com.blitzagency.xray.Xray.updateFps)); com.blitzagency.xray.Xray.functionName = com.blitzagency.xray.FunctionName.getInstance(); _global.tf = function () { com.blitzagency.xray.Xray.functionName.traceFunction.apply(com.blitzagency.xray.Xray.functionName, arguments); }; if (!_global.isLivePreview) { if (com.blitzagency.xray.Xray.lc_info) { return undefined; } com.blitzagency.xray.Xray.lc_exec = new com.blitzagency.xray.ControlConnection(); com.blitzagency.xray.Xray.lc_info = new com.blitzagency.xray.LoggerConnection(); } }; v1.addObject = function (id, obj) { com.blitzagency.xray.Xray.addedObjects[id] = new Object({'id': id, 'obj': obj}); }; v1.addPackages = function (ary) { var v1 = 0; while (v1 < ary.length) { if (ary[v1] != '') { com.blitzagency.xray.ClassPath.registerPackage(ary[v1]); } ++v1; } com.blitzagency.xray.ClassPath.registerPackage(); com.blitzagency.xray.Xray.packagesInitialized = true; }; v1.trace = function () { com.blitzagency.xray.Xray.xrayTrace.trace.apply(com.blitzagency.xray.Xray.xrayTrace, arguments); }; v1.tt = function () { com.blitzagency.xray.Xray.xrayTrace.trace.apply(com.blitzagency.xray.Xray.xrayTrace, arguments); }; v1.tf = function () { _global.FunctionName.traceFunction.apply(_global.FunctionName, arguments); }; v1.updateFps = function (obj) { com.blitzagency.xray.Xray.lc_exec.sendFPS(obj); }; v1.createFPSMeter = function (target_mc, fpsColor) { target_mc = !target_mc ? _level0 : target_mc; var v2 = target_mc.createEmptyMovieClip('fpsContainer', target_mc.getNextHighestDepth()); v2.cacheAsBitmap = true; v2.createTextField('fps', 1, 0, 0, 40, 22); v2.embedFonts = false; v2.textFormat = new TextFormat(); v2.textFormat.color = fpsColor; v2.textFormat.font = '_sans'; v2.textFormat.size = 10; v2.fps.setNewTextFormat(v2.textFormat); v2.fps.setTextFormat(v2.textFormat); v2.updateFps = function (obj) { this.fps.text = obj.fps; }; com.blitzagency.xray.Xray.fpsMeter.__set__runFPS(true); com.blitzagency.xray.Xray.fpsMeter.addEventListener('onFpsUpdate', com.blitzagency.util.Delegate.create(v2, v2.updateFps)); return v2; }; v1.initConnections = function () { var v1 = com.blitzagency.xray.Xray.lc_exec.initConnection(); var v2 = com.blitzagency.xray.Xray.lc_info.initConnection(); if (v1) { com.blitzagency.xray.Xray.lc_exec.send('_xray_conn', 'checkFPSOn'); } com.blitzagency.xray.Xray.tt('Connections', v1 + ' | ' + v2); }; v1.$version = '1.4.5'; ASSetPropFlags(com.blitzagency.xray.Xray.prototype, null, 1); } #endinitclip } movieClip 133 __Packages.com.blitzagency.util.Delegate { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.blitzagency) { _global.com.blitzagency = new Object(); } if (!_global.com.blitzagency.util) { _global.com.blitzagency.util = new Object(); } if (!_global.com.blitzagency.util.Delegate) { var v1 = function () {}; com.blitzagency.util.Delegate = v1; var v2 = v1.prototype; v1.create = function (target, handler) { var extraArgs = arguments.slice(2); var v3; v3 = function () { var v2 = arguments.concat(extraArgs); return handler.apply(target, v2); }; return v3; }; ASSetPropFlags(com.blitzagency.util.Delegate.prototype, null, 1); } #endinitclip } movieClip 134 __Packages.com.blitzagency.xray.Watch { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.blitzagency) { _global.com.blitzagency = new Object(); } if (!_global.com.blitzagency.xray) { _global.com.blitzagency.xray = new Object(); } if (!_global.com.blitzagency.xray.Watch) { var v1 = function () {}; com.blitzagency.xray.Watch = v1; var v2 = v1.prototype; v1.createCallBack = function (obj, prop_str, callBack) { var v1 = obj[prop_str]; obj.watch(prop_str, com.blitzagency.xray.Watch._functionChanged, callBack); obj[prop_str] = undefined; if (v1) { obj[prop_str] = v1; } }; v1.removeCallBack = function (obj, prop_str, callBack) { obj.unwatch(prop_str); var v2 = obj[prop_str]; var v6; var v3; var v5 = new Array(); while (!false) { v3 = v2.callBack; if (typeof v3 == 'function') { v6 = v2.newVal; v2.callBack = undefined; if (v3 == callBack || callBack == undefined) { break; } v5.push(v3); v2 = v6; } else { break; } } if (v6) { obj[prop_str] = v6; } else { delete obj[prop_str]; obj[prop_str] = null; } var v1 = 0; while (v1 < v5.length) { callBack = v5[v1]; com.blitzagency.xray.Watch.createCallBack(obj, prop_str, callBack); ++v1; } }; v1._functionChanged = function (prop_str, oldVal, newVal, callBack) { var v3 = function () { var v3 = arguments.callee; var v5 = v3.newVal; var v4 = v3.callBack; v5.apply(this, arguments); v4.apply(this, arguments); }; v3.newVal = newVal; v3.callBack = callBack; return v3; }; ASSetPropFlags(com.blitzagency.xray.Watch.prototype, null, 1); } #endinitclip } movieClip 135 __Packages.com.blitzagency.xray.DragableMovieClip { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.blitzagency) { _global.com.blitzagency = new Object(); } if (!_global.com.blitzagency.xray) { _global.com.blitzagency.xray = new Object(); } if (!_global.com.blitzagency.xray.DragableMovieClip) { var v1 = function () { super(); }; com.blitzagency.xray.DragableMovieClip = v1; com.blitzagency.xray.DragableMovieClip extends MovieClip; var v2 = v1.prototype; v1.initialize = function (mc, restriction_obj) { if (!com.blitzagency.xray.DragableMovieClip._instance) { com.blitzagency.xray.DragableMovieClip._instance = new com.blitzagency.xray.DragableMovieClip(); } var v2 = arguments.slice(2); com.blitzagency.xray.DragableMovieClip._instance._enable.apply(com.blitzagency.xray.DragableMovieClip._instance, [mc, restriction_obj].concat(v2)); }; v2._customOnPress = function (restriction_obj) { var v4 = arguments.slice(1); if (restriction_obj) { this.startDrag(false, restriction_obj.left, restriction_obj.top, restriction_obj.right, restriction_obj.bottom); } else { this.startDrag(); } this.___onMouseMove = this.onMouseMove; this.onMouseMove = updateAfterEvent; }; v2._customOnRelease = function () { this.stopDrag(); com.blitzagency.xray.Xray.lc_exec.updateHistory(this); this.onMouseMove = this.___onMouseMove; }; v2._enable = function (mc, restriction_obj) { var v5 = arguments.slice(2); var v6 = com.blitzagency.util.Delegate.create.apply(com.blitzagency.util.Delegate, [mc, this._customOnPress, restriction_obj].concat(v5)); var v4 = com.blitzagency.util.Delegate.create.apply(com.blitzagency.util.Delegate, [mc, this._customOnRelease].concat(v5)); mc.__removeReferenceDelegatePress__ = v6; mc.__removeReferenceDelegateRelease__ = v4; com.blitzagency.xray.Watch.createCallBack(mc, 'onPress', v6); com.blitzagency.xray.Watch.createCallBack(mc, 'onRelease', v4); com.blitzagency.xray.Watch.createCallBack(mc, 'onReleaseOutside', v4); }; v1.remove = function (mc) { var v3 = mc.__removeReferenceDelegatePress__; var v2 = mc.__removeReferenceDelegateRelease__; if (v3 && v2) { delete mc.__removeReferenceDelegatePress__; delete mc.__removeReferenceDelegateRelease__; com.blitzagency.xray.Watch.removeCallBack(mc, 'onPress', v3); com.blitzagency.xray.Watch.removeCallBack(mc, 'onRelease', v2); com.blitzagency.xray.Watch.removeCallBack(mc, 'onReleaseOutside', v2); } }; ASSetPropFlags(com.blitzagency.xray.DragableMovieClip.prototype, null, 1); } #endinitclip } movieClip 136 __Packages.com.blitzagency.events.GDispatcher { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.blitzagency) { _global.com.blitzagency = new Object(); } if (!_global.com.blitzagency.events) { _global.com.blitzagency.events = new Object(); } if (!_global.com.blitzagency.events.GDispatcher) { var v1 = function () {}; com.blitzagency.events.GDispatcher = v1; var v2 = v1.prototype; v1.initialize = function (p_obj) { if (com.blitzagency.events.GDispatcher.$instance == undefined) { com.blitzagency.events.GDispatcher.$instance = new com.blitzagency.events.GDispatcher(); } p_obj.dispatchEvent = com.blitzagency.events.GDispatcher.$instance.dispatchEvent; p_obj.eventListenerExists = com.blitzagency.events.GDispatcher.$instance.eventListenerExists; p_obj.addEventListener = com.blitzagency.events.GDispatcher.$instance.addEventListener; p_obj.removeEventListener = com.blitzagency.events.GDispatcher.$instance.removeEventListener; p_obj.removeAllEventListeners = com.blitzagency.events.GDispatcher.$instance.removeAllEventListeners; }; v1.$indexOfListener = function (p_listeners, p_obj, p_function) { var v3 = p_listeners.length; var v2 = -1; while (++v2 < v3) { var v1 = p_listeners[v2]; if (v1.o == p_obj && v1.f == p_function) { return v2; } } return -1; }; v1.$dispatchEvent = function (p_dispatchObj, p_listeners, p_eventObj) { var v5; for (v5 in p_listeners) { var v1 = p_listeners[v5].o; var v3 = typeof v1; var v2 = p_listeners[v5].f; if (v3 == 'object' || v3 == 'movieclip') { if (v1.handleEvent != undefined && v2 == undefined) { v1.handleEvent(p_eventObj); } else { if (v2 == undefined) { v2 = p_eventObj.type; } v1[v2](p_eventObj); } } else { v1.apply(p_dispatchObj, [p_eventObj]); } } }; v2.dispatchEvent = function (p_eventObj) { if (p_eventObj.type == 'ALL') { return undefined; } if (p_eventObj.target == undefined) { p_eventObj.target = this; } this[p_eventObj.type + 'Handler'](p_eventObj); var v3 = this.gDispatcher_listeners[p_eventObj.type]; if (v3 != undefined) { com.blitzagency.events.GDispatcher.$dispatchEvent(this, v3, p_eventObj); } v3 = this.gDispatcher_listeners.ALL; if (v3 != undefined) { com.blitzagency.events.GDispatcher.$dispatchEvent(this, v3, p_eventObj); } }; v2.eventListenerExists = function (p_event, p_obj, p_function) { return com.blitzagency.events.GDispatcher.$indexOfListener(this.gDispatcher_listeners[p_event], p_obj, p_function) != -1; }; v2.addEventListener = function (p_event, p_obj, p_function) { if (this.gDispatcher_listeners == undefined) { this.gDispatcher_listeners = {}; _global.ASSetPropFlags(this, this.gDispatcher_listeners, 1); } var v3 = this.gDispatcher_listeners[p_event]; if (v3 == undefined) { v3 = []; this.gDispatcher_listeners[p_event] = v3; } if (com.blitzagency.events.GDispatcher.$indexOfListener(v3, p_obj, p_function) == -1) { v3.push({'o': p_obj, 'f': p_function}); } }; v2.removeEventListener = function (p_event, p_obj, p_function) { var v2 = this.gDispatcher_listeners[p_event]; if (v2 == undefined) { return undefined; } var v3 = com.blitzagency.events.GDispatcher.$indexOfListener(v2, p_obj, p_function); if (v3 != -1) { v2.splice(v3, 1); } }; v2.removeAllEventListeners = function (p_event) { if (p_event == undefined) { delete this.gDispatcher_listeners; } else { delete this.gDispatcher_listeners[p_event]; } }; v1.$instance = undefined; ASSetPropFlags(com.blitzagency.events.GDispatcher.prototype, null, 1); } #endinitclip } movieClip 137 __Packages.com.blitzagency.util.RecursionCheck { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.blitzagency) { _global.com.blitzagency = new Object(); } if (!_global.com.blitzagency.util) { _global.com.blitzagency.util = new Object(); } if (!_global.com.blitzagency.util.RecursionCheck) { var v1 = function () { com.blitzagency.events.GDispatcher.initialize(this); this.members = new Array(); this.maxRecursionLevel = 3; }; com.blitzagency.util.RecursionCheck = v1; var v2 = v1.prototype; v1.getInstance = function () { if (com.blitzagency.util.RecursionCheck._instance == null) { com.blitzagency.util.RecursionCheck._instance = new com.blitzagency.util.RecursionCheck(); } return com.blitzagency.util.RecursionCheck._instance; }; v2.isMember = function (obj) { var v2 = this.getIndex(obj); if (v2 != null) { return v2; } }; v2.addMember = function (obj) { if (obj != undefined) { this.members.push({'obj': obj, 'count': 1}); return true; } return false; }; v2.removeMember = function (obj) { var v2 = this.getIndex(obj); if (v2.exists) { this.members.splice(v2.index, 1); return true; } return false; }; v2.clear = function () { this.members = []; }; v2.getIndex = function (obj) { var v6 = this.members.length; var v3 = 0; while (v3 < v6) { var v2 = this.members[v3]; if (v2.obj == obj && v2.count < this.maxRecursionLevel) { ++v2.count; return {'exists': true, 'recurse': true, 'count': v2.count, 'index': v3}; } else { if (v2.obj == obj && v2.count >= this.maxRecursionLevel) { return {'exists': true, 'recurse': false, 'count': v2.count, 'index': v3}; } } ++v3; } return {'exists': false, 'recurse': true, 'index': -1}; }; v1._instance = null; ASSetPropFlags(com.blitzagency.util.RecursionCheck.prototype, null, 1); } #endinitclip } movieClip 138 __Packages.com.blitzagency.xray.ClassPath { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.blitzagency) { _global.com.blitzagency = new Object(); } if (!_global.com.blitzagency.xray) { _global.com.blitzagency.xray = new Object(); } if (!_global.com.blitzagency.xray.ClassPath) { var v1 = function () {}; com.blitzagency.xray.ClassPath = v1; var v2 = v1.prototype; v1.registerPackage = function (packageName) { if (com.blitzagency.xray.ClassPath.check == undefined) { com.blitzagency.xray.ClassPath.check = []; } if (packageName == undefined) { var v2 = []; for (var v3 in _global) { v2.push(v3); } _global.ASSetPropFlags(_global, null, 0, 1); com.blitzagency.xray.ClassPath.classPusher(_global); com.blitzagency.xray.ClassPath._protect(_global, v2); } else { com.blitzagency.xray.ClassPath.classPusher(_global[packageName], packageName); } }; v1._protect = function (package_obj, unprotected) { _global.ASSetPropFlags(package_obj, null, 1, 1); _global.ASSetPropFlags(package_obj, unprotected, 0, 1); _global.ASSetPropFlags(package_obj, ['constructor', '__constructor__', 'prototype', '__proto__'], 1, 1); }; v1.getClassName = function (obj) { if (obj instanceof Function) { return obj.shortClassName; } else { return obj.constructor.shortClassName; } }; v1.getLongClassName = function (obj) { if (obj instanceof Function) { return obj.className; } else { return obj.constructor.className; } }; v1.getPath = function (obj) { if (obj instanceof Function) { return obj.className; } else { return obj.constructor.className; } }; v1.classPusher = function (node, name) { var v2 = (name == undefined) ? '' : name + '.'; for (var v3 in node) { if (node[v3] instanceof Function && node[v3].constructor != null) { node[v3].className = v2 + v3; node[v3].shortClassName = v3; com.blitzagency.xray.ClassPath.check.push(node[v3]); } else { if (node[v3] instanceof Object) { com.blitzagency.xray.ClassPath.classPusher(node[v3], v2 + v3); } } } }; v1.checkProtoChain = function (obj, extendedPath, includePath) { if (obj.__proto__ != undefined && obj.__proto__.constructor.className != undefined) { var v1 = com.blitzagency.xray.ClassPath.checkExtended(obj); var v4 = (extendedPath || includePath) ? v1.className : v1.shortClassName; com.blitzagency.xray.ClassPath.fullPath = (com.blitzagency.xray.ClassPath.fullPath == '') ? v4 : com.blitzagency.xray.ClassPath.fullPath + '.' + v1.shortClassName; if (extendedPath) { com.blitzagency.xray.ClassPath.checkProtoChain(obj.__proto__, extendedPath); } } }; v1.getClass = function (obj, extendedPath, includePath) { com.blitzagency.xray.ClassPath.fullPath = ''; com.blitzagency.xray.ClassPath.checkProtoChain(obj, extendedPath, includePath); if (com.blitzagency.xray.ClassPath.fullPath == '') { com.blitzagency.xray.ClassPath.fullPath = typeof obj; } return com.blitzagency.xray.ClassPath.fullPath; }; v1.checkExtended = function (obj) { var v2 = {'extended': false}; var v1 = 0; while (v1 < com.blitzagency.xray.ClassPath.check.length) { var v3 = (obj.__proto__ == com.blitzagency.xray.ClassPath.check[v1].prototype) ? true : false; if (v3) { v2.extended = v3; v2.className = com.blitzagency.xray.ClassPath.check[v1].className; v2.shortClassName = com.blitzagency.xray.ClassPath.check[v1].shortClassName; return v2; } ++v1; } return v2; }; ASSetPropFlags(com.blitzagency.xray.ClassPath.prototype, null, 1); } #endinitclip } movieClip 139 __Packages.com.blitzagency.xray.ObjectViewer { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.blitzagency) { _global.com.blitzagency = new Object(); } if (!_global.com.blitzagency.xray) { _global.com.blitzagency.xray = new Object(); } if (!_global.com.blitzagency.xray.ObjectViewer) { var v1 = function () { this._recursionCount = 0.003; this.recursionCheck = com.blitzagency.util.RecursionCheck.getInstance(); this.mc_prop_ary = new Array('_name', '_x', '_y', '_width', '_height', '_rotation', '_visible', '_alpha', '_xscale', '_yscale', 'cacheAsBitmap', 'filters', '_currentframe', '_totalframes', '_framesloaded', 'enabled', 'hitArea', '_droptarget', '_target', '_focusEnabled', '_focusrect', '_lockroot', 'menu', '_quality', 'soundbuftime', 'tabChildren', 'tabEnabled', 'tabIndex', 'trackAsMenu', '_url', 'useHandCursor'); this.TextField_prop_ary = new Array('_name', '_x', '_y', '_width', '_height', '_rotation', '_visible', '_alpha', '_xscale', '_yscale', 'html', 'htmlText', 'text'); this.Button_prop_ary = new Array('_name', '_x', '_y', '_width', '_height', '_rotation', '_visible', '_alpha', '_xscale', '_yscale', 'enabled'); this.Sound_prop_ary = new Array('position', 'duration', 'id3.comment', 'id3.album', 'id3.genre', 'id3.songname', 'id3.artist', 'id3.track', 'id3.year', 'volume', 'pan'); this.mc_prop_small_ary = new Array('_x', '_y', '_width', '_height', '_visible', '_alpha', '_currentframe'); this.mc_prop_ary.reverse(); this.TextField_prop_ary.reverse(); this.Button_prop_ary.reverse(); this.Sound_prop_ary.reverse(); this.mc_prop_small_ary.reverse(); com.blitzagency.events.GDispatcher.initialize(this); }; com.blitzagency.xray.ObjectViewer = v1; var v2 = v1.prototype; v2.replace = function (str, srch_str, repl_str) { var v1 = new Array(); v1 = str.split(srch_str); var v2 = v1.join(repl_str); return v2; }; v2.setAttributes = function (xmlNode, obj) { for (var v3 in obj) { if (v3 != '__recursionCheck' && v3 != 'getRecursionChecked' && v3 != 'setRecursionChecked') { xmlNode.attributes[v3] = obj[v3]; } } }; v2.getObjProperties = function (obj) { var v3 = new Object(); var v4 = 0; for (var v5 in obj) { if (v5 != 'Xray' && v5 != '__recursionCheck' && v5 != 'getRecursionChecked' && v5 != '__removeReferenceDelegateRelease__' && v5 != '__removeReferenceDelegatePress__' && v5 != 'setRecursionChecked') { ++v4; var v1 = com.blitzagency.xray.ClassPath.getClass(obj[v5]); v1 = (v1 != '') ? v1 : typeof obj[v5]; v3[v5] = v1 + ' :: ' + obj[v5]; } } if (v4 == 0) { v3.value = new Object(); v3.value = obj.toString(); } return v3; }; v2.getFunctionProperties = function (obj, sPath) { _global.ASSetPropFlags(obj, null, 0, true); var v4 = new Object(); for (var v5 in obj) { if (v5 != '__proto__' && v5 != 'prototype' && v5 != 'Xray' && v5 != '__recursionCheck' && v5 != '__removeReferenceDelegateRelease__' && v5 != '__removeReferenceDelegatePress__' && v5 != 'getRecursionChecked' && v5 != 'setRecursionChecked') { var v3 = (typeof obj[v5] == 'function') ? 'function' : obj[v5]; v4[v5] = v3; } } if (obj.prototype) { for (v5 in obj.prototype) { if (v5 != '__proto__' && v5 != 'prototype' && v5 != 'Xray' && v5 != '__recursionCheck' && v5 != '__removeReferenceDelegateRelease__' && v5 != '__removeReferenceDelegatePress__' && v5 != 'getRecursionChecked' && v5 != 'setRecursionChecked') { v3 = (typeof obj.prototype[v5] == 'function') ? 'function' : 'property'; v4[v5] = v3; } } } _global.ASSetPropFlags(obj, null, 1, true); return v4; }; v2.getBaseProperties = function (target_obj, path) { var v2 = new Object(); v2.path = path; for (var v5 in target_obj) { if (v5 != '__recursionCheck' && v5 != 'Xray' && v5 != 'getRecursionChecked' && v5 != 'setRecursionChecked' && v5 != '__removeReferenceDelegateRelease__' && v5 != '__removeReferenceDelegatePress__' && v5 != '__proto__') { var v3 = com.blitzagency.xray.ClassPath.getClass(target_obj[v5]); v3 = (v3 != '') ? v3 : typeof target_obj[v5]; v2[v5] = new Object(); v2[v5].className = v3; v2[v5].objName = v5; v2[v5].val = target_obj[v5]; v2[v5].target = v2.path + '.' + v5; v2[v5].type = this.getType(target_obj[v5]); } } v2.Class = com.blitzagency.xray.ClassPath.getClass(target_obj, true); return v2; }; v2.getProperties = function (target_obj, showAll) { _global.ASSetPropFlags(target_obj, null, 0, true); var obj = new Object(); obj.sTarget_mc = String(eval(target_obj._target)); if (showAll) { for (var items in target_obj) { if (items != '__recursionCheck' && items != 'Xray' && items != 'getRecursionChecked' && items != '__removeReferenceDelegateRelease__' && items != '__removeReferenceDelegatePress__' && items != 'setRecursionChecked') { var sClass = com.blitzagency.xray.ClassPath.getClass(target_obj[items]); sClass = (sClass != '') ? sClass : typeof target_obj[items]; obj[items] = sClass + ' :: ' + target_obj[items]; } } } obj.Class = com.blitzagency.xray.ClassPath.getClass(target_obj, true); obj._props = new Object(); var ary; if (target_obj instanceof MovieClip) { ary = this.mc_prop_ary; } if (target_obj instanceof TextField) { ary = this.TextField_prop_ary; } if (target_obj instanceof Button) { ary = this.Button_prop_ary; } if (target_obj instanceof Sound) { ary = this.Sound_prop_ary; } var x = 0; while (x < ary.length) { switch (ary) { case this.mc_prop_ary: if (ary[x] == '_y') { obj._props.depth = target_obj.getDepth(); } obj._props[ary[x]] = target_obj[ary[x]]; break; case this.TextField_prop_ary: obj._props[ary[x]] = target_obj[ary[x]]; break; case this.Button_prop_ary: obj._props[ary[x]] = target_obj[ary[x]]; break; case this.Sound_prop_ary: if (ary[x] == 'volume') { obj._props.volume = target_obj.getVolume(); } else { if (ary[x] == 'pan') { obj._props.pan = target_obj.getPan(); } else { if (ary[x] == 'id3.comment') { obj._props.id3_comment = target_obj.id3.comment; } else { if (ary[x] == 'id3.album') { obj._props.id3_album = target_obj.id3.album(); } else { if (ary[x] == 'id3.genre') { obj._props.id3_genre = target_obj.id3.genre(); } else { if (ary[x] == 'id3.songname') { obj._props.id3_songname = target_obj.id3.songname(); } else { if (ary[x] == 'id3.artist') { obj._props.id3_artist = target_obj.id3.artist(); } else { if (ary[x] == 'id3.track') { obj._props.id3_track = target_obj.id3.track(); } else { if (ary[x] == 'id3.year') { obj._props.id3_year = target_obj.id3.year(); } else { obj._props[ary[x]] = target_obj[ary[x]]; } } } } } } } } } } ++x; } _global.ASSetPropFlags(obj, ['constructor', '__constructor__', 'prototype', '__proto__', '__recursionCheck'], 1, true); return obj; }; v2.getStandardProperties = function (target_mc) { var v3 = new Object(); v3._props = new Object(); var v2 = 0; while (v2 < this.mc_prop_small_ary.length) { if (this.mc_prop_small_ary[v2] == '_y') { v3._props.depth = target_mc.getDepth(); } v3._props[this.mc_prop_small_ary[v2]] = target_mc[this.mc_prop_small_ary[v2]]; ++v2; } return v3; }; v2.getSoundProperties = function (snd) { var v1 = new Object(); v1.txtPosition = snd.position; v1.txtDuration = snd.duration; v1.txtComment = snd.id3.comment; v1.txtAlbum = snd.id3.album; v1.txtGenre = snd.id3.genre; v1.txtSongName = snd.id3.songname; v1.txtArtist = snd.id3.artist; v1.txtTrack = snd.id3.track; v1.txtYear = snd.id3.year; v1.txtVolume = snd.getVolume(); v1.txtPan = snd.getPan(); return v1; }; v2.getVideoProperties = function (ns) { var v2 = new Object(); v2.txtPosition = ns.time; v2.txtBufferLength = ns.bufferLength; v2.txtBufferTime = ns.bufferTime; v2.txtBytesLoaded = ns.bytesLoaded; v2.txtBytesTotal = ns.bytesTotal; v2.txtCurrentFps = ns.currentFps; var v4 = this.getObjProperties(ns); v2.props = v4; return v2; }; v2.getName = function (clip) { var v1 = clip._name; return !v1 ? String(clip) : v1; }; v2.addObject = function (link, iType, sName, isBranch) { if (link.lastIndexOf('.') > -1) { var v6 = link.split('.'); var v2 = this.objMap; var v4 = 0; while (v4 < v6.length) { var v3 = (v4 == v6.length - 1) ? sName : v6[v4]; var v5 = (v6.slice(0, v4)).join('.'); var v8 = true; if (!v2[v3]) { v8 = false; v2[v3] = new Object(); v5 = v4 > 0 ? v5 + '.' + v3 : v5; v2[v3].sPath = v5; v2[v3].iType = iType; v2[v3].isBranch = isBranch; v2[v3].sName = v3; } v2 = v2[v3]; if (v4 == v6.length - 1 && !v8) { var v9 = link.split('.'); var v13 = v9.pop(); link = v9.join('.') + '.' + sName; v2.sPath = link; v2.iType = iType; v2.isBranch = isBranch; v2.sName = sName; } ++v4; } } else { if (!this.objMap[link]) { this.objMap[link] = new Object(); } this.objMap[link].sPath = link; this.objMap[link].iType = iType; this.objMap[link].isBranch = isBranch; this.objMap[link].sName = sName; } }; v2.buildTree = function (obj) { var len = (this.currentObjPath.split('.')).length; var aTemp = obj.sPath.split('.'); aTemp.splice(0, len - 1); var checkPath = (aTemp.join('.') == '') ? false : true; var sNodeName; var sNodeLabel; var sCurrentTarget; var iType; var o; if (obj.sPath != undefined && checkPath && obj.sName != undefined) { sNodeName = this.getName(obj.sName); sNodeName = this.replace(sNodeName, ' ', '_'); sNodeLabel = this.getName(obj.sName); sCurrentTarget = obj.sPath; iType = obj.iType; switch (iType) { case 0: var sClass = com.blitzagency.xray.ClassPath.getClass(eval(sCurrentTarget), false); if (!sClass) { var func = typeof eval(sCurrentTarget); sClass = 'Object'; } sNodeLabel = sNodeLabel + ' (' + sClass + ')'; o = {'label': sNodeLabel, 'mc': sCurrentTarget, 't': iType}; break; case 1: var sClass = com.blitzagency.xray.ClassPath.getClass(eval(sCurrentTarget), false); sNodeLabel = sNodeLabel + ' (' + sClass + ')'; o = {'label': sNodeLabel, 'mc': sCurrentTarget, 't': iType}; break; case 2: var sClass = com.blitzagency.xray.ClassPath.getClass(eval(sCurrentTarget), false); sNodeLabel = sNodeLabel + ' (' + sClass + ')'; o = {'label': sNodeLabel, 'mc': sCurrentTarget, 't': iType}; break; case 3: var sClass = com.blitzagency.xray.ClassPath.getClass(eval(sCurrentTarget), false); sNodeLabel = sNodeLabel + ' (' + sClass + ')'; o = {'label': sNodeLabel, 'mc': sCurrentTarget, 't': iType}; break; case 4: var sClass = com.blitzagency.xray.ClassPath.getClass(eval(sCurrentTarget), false); sNodeLabel = sNodeLabel + ' (' + sClass + ')'; o = {'label': sNodeLabel, 'mc': sCurrentTarget, 't': iType}; break; case 5: var sClass = 'TextField'; sNodeLabel = sNodeLabel + ' (' + sClass + ')'; o = {'label': sNodeLabel, 'mc': sCurrentTarget, 't': iType}; break; case 6: var sClass = com.blitzagency.xray.ClassPath.getClass(eval(sCurrentTarget), false); if (!sClass) { var func = typeof eval(sCurrentTarget); sClass = 'Object'; } sNodeLabel = sNodeLabel + ' (' + sClass + ')'; o = {'label': sNodeLabel, 'mc': sCurrentTarget, 't': iType}; break; case 7: var sClass = com.blitzagency.xray.ClassPath.getClass(eval(sCurrentTarget), false); if (sClass) { sClass = '( ' + sClass + ' )'; } else { sClass = '( function )'; } sNodeLabel += sClass; o = {'label': sNodeLabel, 'mc': sCurrentTarget, 't': iType}; break; case 8: var sClass = com.blitzagency.xray.ClassPath.getClass(eval(sCurrentTarget), false); if (!sClass) { var func = typeof eval(sCurrentTarget); sClass = 'NetStream'; } sNodeLabel = sNodeLabel + ' (' + sClass + ')'; o = {'label': sNodeLabel, 'mc': sCurrentTarget, 't': iType}; break; case 12: var sClass = 'Date'; if (!sClass) { var func = typeof eval(sCurrentTarget); sClass = 'Date'; } sNodeLabel = sNodeLabel + ' (' + sClass + ')'; o = {'label': sNodeLabel, 'mc': sCurrentTarget, 't': iType}; break; default: var sClass = com.blitzagency.xray.ClassPath.getClass(eval(sCurrentTarget), false); if (!sClass) { var func = typeof eval(sCurrentTarget); sClass = 'Object'; } sNodeLabel = sNodeLabel + ' (' + sClass + ')'; o = {'label': sNodeLabel, 'mc': sCurrentTarget, 't': iType}; } this.XMLStr += '<' + sNodeName + ' '; if (obj.isBranch) { o.isBranch = true; } for (var atr in o) { this.XMLStr += atr + '="' + o[atr] + '" '; } this.XMLStr += '>'; } aTemp = new Array(); for (var items in obj) { if (typeof obj[items] == 'object') { aTemp.push(obj[items]); } } aTemp.sortOn('sName'); var x = 0; while (x < aTemp.length) { this.buildTree(aTemp[x]); ++x; } if (sNodeName) { this.XMLStr += '</' + sNodeName + '>'; } }; v2._protect = function (package_obj, unprotected_array) { _global.ASSetPropFlags(package_obj, null, 1, true); _global.ASSetPropFlags(package_obj, unprotected_array, 0, true); _global.ASSetPropFlags(package_obj, ['constructor', '__constructor__', 'prototype', '__proto__'], 1, true); }; v2.viewTree = function (obj, objPath, recursiveSearch, showHidden, objectSearch) { this.dispatchEvent({'type': 'onViewTree', 'obj': obj}); this.objMap = new Object(); this.XMLStr = ''; com.blitzagency.xray.Xray.recursionControl += 1; this.recursionCheck.clear(); var sNodeName; if (typeof obj == 'movieclip') { sNodeName = this.getName(obj); } else { if (typeof obj == 'object') { sNodeName = (objPath.split('.'))[0]; } } var objType = this.getType(obj); var targetPath; if (objType == 2) { targetPath = String(eval(obj._target)); objPath = targetPath; } else { targetPath = objPath; } this.currentObjPath = objPath; var aTemp = this.currentObjPath.split('.'); if (aTemp.length > 1) { aTemp.splice(aTemp.length - 1); } var o; aTemp = targetPath.split('.'); this.XMLDoc = new XML(); if (recursiveSearch || !recursiveSearch && targetPath == '_level0') { var currentNode; var element1 = this.XMLDoc.createElement(aTemp[0]); this.XMLDoc.appendChild(element1); var attribute_obj = {'label': aTemp[0], 'mc': aTemp[0], 't': objType}; this.setAttributes(this.XMLDoc.lastChild, attribute_obj); currentNode = this.XMLDoc.lastChild; } var bParsed = false; this.addObject(sNodeName, objType, sNodeName); if (!objectSearch) { objectSearch = (objType == 0) ? true : false; } this.parseTree(obj, sNodeName, objPath, recursiveSearch, showHidden, objectSearch); this.buildTree(this.objMap); this.XMLDoc = new XML(this.XMLStr); obj = new Object(); obj.XMLDoc = this.XMLDoc; this.dispatchEvent({'type': 'onViewTreeReturn', 'obj': obj}); return this.XMLDoc; }; v2.parseTree = function (obj, sName, sPath, recursiveSearch, showHidden, objectSearch, parent, lastParent) { var unprotected_array = new Array(); if (typeof obj == 'object' || typeof obj == 'movieclip' || typeof obj == 'function') { if (showHidden) { for (var items in obj) { unprotected_array.push(items); } _global.ASSetPropFlags(obj, null, 0, true); } if (recursiveSearch) { if (obj.__recursionCheck == null) { obj.prototype.getRecursionChecked = function () {}; obj.prototype.setRecursionChecked = function (value) {}; var created = obj.prototype.addProperty('__recursionCheck', obj.prototype.getRecursionChecked, obj.prototype.setRecursionChecked); obj.__recursionCheck = 0; _global.ASSetPropFlags(obj, ['__recursionCheck', 'getRecursionChecked', 'setRecursionChecked'], 1, true); } if (Math.floor(obj.__recursionCheck) != Math.floor(com.blitzagency.xray.Xray.recursionControl)) { obj.__recursionCheck = com.blitzagency.xray.Xray.recursionControl; } } else { delete obj.__recursionCheck; delete obj.getRecursionChecked; delete obj.setRecursionChecked; } if (typeof obj == 'object' && recursiveSearch && !objectSearch && (!obj instanceof XML || !obj instanceof XMLNode)) { if (showHidden) { this._protect(obj, unprotected_array); } return undefined; } for (var items in obj) { if (items != '__recursionCheck' && (typeof obj[items] == 'object' || typeof obj[items] == 'movieclip' || typeof obj[items] == 'function' && obj[items].__constructor__ != undefined)) { var bReturn = false; var pathCheck = ''; if (typeof obj[items] == 'movieclip') { var pathLength = (sPath.split('.')).length; var targetLength = ((String(eval(obj[items]._target))).split('.')).length; if (pathLength <= targetLength) { pathCheck = sPath + '.' + items; } else { pathCheck = sPath + '.' + items; } } else { pathCheck = sPath + '.' + items; } if ((typeof obj[items] == 'object' || typeof obj[items] == 'movieclip' || typeof obj[items] == 'function') && items.toLowerCase() != 'xray' && items != '__recursionCheck' && items != 'getRecursionChecked' && items != 'setRecursionChecked' && items != '__proto__' && items != 'prototype' && items != '__constructor__' && items != '__resolve' && items != '__removeReferenceDelegateRelease__' && items != '__removeReferenceDelegatePress__' && items != 'constructor') { if (recursiveSearch && (typeof obj[items] == 'movieclip' || obj[items] instanceof XML || obj[items] instanceof XMLNode)) { this.addObject(pathCheck, this.getType(obj[items]), items); if (Math.floor(obj[items].__recursionCheck) != Math.floor(com.blitzagency.xray.Xray.recursionControl) || obj[items].__recursionCheck < com.blitzagency.xray.Xray.recursionControl + this._recursionCount) { if (Math.floor(obj[items].__recursionCheck) == Math.floor(com.blitzagency.xray.Xray.recursionControl)) { obj[items].__recursionCheck += 0.001; } if (obj[items].__recursionCheck < com.blitzagency.xray.Xray.recursionControl + this._recursionCount || obj[items].__recursionCheck == undefined) { this.parseTree(obj[items], items, pathCheck, recursiveSearch, showHidden, objectSearch, obj, parent); } } } else { var isBranch = false; for (var subItems in obj[items]) { var subObjType = typeof obj[items][subItems]; isBranch = false; if (subObjType == 'movieclip' || subObjType == 'object') { isBranch = true; break; } } this.addObject(pathCheck, this.getType(obj[items]), items, isBranch); } } } } if (showHidden) { this._protect(obj, unprotected_array); } } }; v2.getType = function (obj) { var v14 = Boolean((typeof obj == 'object') ? true : false); var v6 = (obj.constructor == Array) ? true : false; var v8 = obj instanceof MovieClip; var v15 = obj instanceof Button; var v5 = obj instanceof Sound; var v3 = obj instanceof Video; var v9 = obj instanceof NetStream; var v4 = obj instanceof TextField; var v11 = obj instanceof Date; var v12 = Boolean((typeof obj == 'function') ? true : false); var v7 = Boolean((typeof obj == 'string') ? true : false); var v13 = Boolean((typeof obj == 'number') ? true : false); var v10 = Boolean((typeof obj == 'boolean') ? true : false); var v1; if (v14) { v1 = 0; return v1; } if (v6) { v1 = 1; return v1; } if (v8) { v1 = 2; return v1; } if (v15) { v1 = 3; return v1; } if (v5) { v1 = 4; return v1; } if (v4) { v1 = 5; return v1; } if (v3) { v1 = 6; return v1; } if (v12) { v1 = 7; return v1; } if (v9) { v1 = 8; return v1; } if (v7) { v1 = 9; return v1; } if (v13) { v1 = 10; return v1; } if (v10) { v1 = 11; return v1; } if (v11) { v1 = 12; } return v1; }; ASSetPropFlags(com.blitzagency.xray.ObjectViewer.prototype, null, 1); } #endinitclip } movieClip 140 __Packages.com.blitzagency.xray.FPSMeter { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.blitzagency) { _global.com.blitzagency = new Object(); } if (!_global.com.blitzagency.xray) { _global.com.blitzagency.xray = new Object(); } if (!_global.com.blitzagency.xray.FPSMeter) { var v1 = function () { com.blitzagency.events.GDispatcher.initialize(this); this.init(); }; com.blitzagency.xray.FPSMeter = v1; var v2 = v1.prototype; v2.__get__fps = function () { return this._fps; }; v2.__set__fps = function (newValue) { this._fps = newValue; this.dispatchEvent({'type': 'onFpsUpdate', 'fps': newValue}); return this.__get__fps(); }; v2.__get__modus = function () { return this._modus; }; v2.__set__modus = function (newValue) { this._modus = newValue; return this.__get__modus(); }; v2.__get__runFPS = function () { return this._runFPS; }; v2.__set__runFPS = function (newValue) { this._runFPS = newValue; clearInterval(this.fpsSI); if (newValue) { this.fpsSI = setInterval(this, 'update', this.__get__pollInterval()); } return this.__get__runFPS(); }; v2.__get__pollInterval = function () { return this._pollInterval; }; v2.__set__pollInterval = function (newValue) { this._pollInterval = newValue; clearInterval(this.fpsSI); if (this.__get__runFPS()) { this.fpsSI = setInterval(this, 'update', this.__get__pollInterval()); } return this.__get__pollInterval(); }; v1.getInstance = function () { if (com.blitzagency.xray.FPSMeter._instance == null) { com.blitzagency.xray.FPSMeter._instance = new com.blitzagency.xray.FPSMeter(); } return com.blitzagency.xray.FPSMeter._instance; }; v2.init = function () { this.past = 0; this.now = 0; this.__set__fps(''); this.pass = 0; this.delta = 0; this.populationSize = 10; this.population = new Array(this.populationSize); this.__set__runFPS(false); this.__set__modus(true); this.__set__pollInterval(25); }; v2.update = function () { if (!this.__get__runFPS()) { clearInterval(this.fpsSI); } this.now = getTimer(); this.delta = this.now - this.past; if (this.__get__modus()) { this.population[this.pass] = this.delta; ++this.pass; if (this.pass >= this.populationSize) { var v2 = 0; for (var v3 in this.population) { v2 += this.population[v3]; } var v5 = int(1000 * this.populationSize / v2); this.__set__fps('[' + v5 + 'fps]'); this.pass = 0; } } else { var v4 = int(1000 / this.delta); this.__set__fps('[' + v4 + 'fps]'); } this.past = this.now; }; v1._instance = null; v2.addProperty('fps', v2.__get__fps, v2.__set__fps); v2.addProperty('modus', v2.__get__modus, v2.__set__modus); v2.addProperty('pollInterval', v2.__get__pollInterval, v2.__set__pollInterval); v2.addProperty('runFPS', v2.__get__runFPS, v2.__set__runFPS); ASSetPropFlags(com.blitzagency.xray.FPSMeter.prototype, null, 1); } #endinitclip } movieClip 141 __Packages.mx.events.EventDispatcher { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.events) { _global.mx.events = new Object(); } if (!_global.mx.events.EventDispatcher) { var v1 = function () {}; mx.events.EventDispatcher = v1; var v2 = v1.prototype; v1._removeEventListener = function (queue, event, handler) { if (queue != undefined) { var v4 = queue.length; var v1; v1 = 0; while (v1 < v4) { var v2 = queue[v1]; if (v2 == handler) { queue.splice(v1, 1); return undefined; } ++v1; } } }; v1.initialize = function (object) { if (mx.events.EventDispatcher._fEventDispatcher == undefined) { mx.events.EventDispatcher._fEventDispatcher = new mx.events.EventDispatcher(); } object.addEventListener = mx.events.EventDispatcher._fEventDispatcher.addEventListener; object.removeEventListener = mx.events.EventDispatcher._fEventDispatcher.removeEventListener; object.dispatchEvent = mx.events.EventDispatcher._fEventDispatcher.dispatchEvent; object.dispatchQueue = mx.events.EventDispatcher._fEventDispatcher.dispatchQueue; }; v2.dispatchQueue = function (queueObj, eventObj) { var v7 = '__q_' + eventObj.type; var v4 = queueObj[v7]; if (v4 != undefined) { var v5; for (v5 in v4) { var v1 = v4[v5]; var v3 = typeof v1; if (v3 == 'object' || v3 == 'movieclip') { if (v1.handleEvent != undefined) { v1.handleEvent(eventObj); } if (v1[eventObj.type] != undefined) { if (mx.events.EventDispatcher.exceptions[eventObj.type] == undefined) { v1[eventObj.type](eventObj); } } } else { v1.apply(queueObj, [eventObj]); } } } }; v2.dispatchEvent = function (eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + 'Handler'](eventObj); this.dispatchQueue(this, eventObj); }; v2.addEventListener = function (event, handler) { var v3 = '__q_' + event; if (this[v3] == undefined) { this[v3] = new Array(); } _global.ASSetPropFlags(this, v3, 1); mx.events.EventDispatcher._removeEventListener(this[v3], event, handler); this[v3].push(handler); }; v2.removeEventListener = function (event, handler) { var v2 = '__q_' + event; mx.events.EventDispatcher._removeEventListener(this[v2], event, handler); }; v1._fEventDispatcher = undefined; v1.exceptions = {'move': 1, 'draw': 1, 'load': 1}; ASSetPropFlags(mx.events.EventDispatcher.prototype, null, 1); } #endinitclip } movieClip 142 __Packages.com.blitzagency.xray.Commander { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.blitzagency) { _global.com.blitzagency = new Object(); } if (!_global.com.blitzagency.xray) { _global.com.blitzagency.xray = new Object(); } if (!_global.com.blitzagency.xray.Commander) { var v1 = function () {}; com.blitzagency.xray.Commander = v1; var v2 = v1.prototype; v1.exec = function (str) { var v7 = str.split(';'); var v4 = 0; while (v4 < v7.length) { v7[v4] = com.blitzagency.xray.Commander.retainValue(v7[v4]); v7[v4] = v7[v4].split('.'); v7[v4][v7[v4].length - 1] = com.blitzagency.xray.Commander.restoreValue(v7[v4][v7[v4].length - 1]); var v6 = v7[v4]; var v8 = v6.length; var v3 = 0; while (v3 < v8) { if (v6[v3].indexOf('[') > -1) { var v5 = v6[v3].split('['); v6[v3] = v5[0]; var v1 = 1; while (v1 < v5.length) { var v2 = com.blitzagency.xray.Commander.replace(v5[v1], '"', ''); v2 = com.blitzagency.xray.Commander.replace(v2, ']', ''); v6.splice(v1, 0, v2); ++v1; } } ++v3; } ++v4; } var v9 = com.blitzagency.xray.Commander.script(v7); return v9; }; v1.script = function (cmds) { var c = 0; while (c < cmds.length) { var cmd = cmds[c][cmds[c].length - 1]; cmd = com.blitzagency.xray.Commander.getArguments(cmd); var d = cmds[c].length > 1 ? 1 : 0; var r; if (d > 0) { var exec = eval(cmds[c][0]); d; while (d < cmds[c].length - 1) { exec = exec[cmds[c][d]]; ++d; } if (cmd.method) { r = exec[cmd.method].apply(exec, cmd.args); if (r != undefined) { return r; } } else { exec[cmd.prop] = cmd.val; } } else { r = _global[cmd.method](cmd.args); if (r != undefined) { return r; } } ++c; } }; v1.retainValue = function (str) { var v5 = str.indexOf('='); var v2 = str.indexOf('('); if (v5 > -1) { var v3 = str.split('='); v3[1] = com.blitzagency.xray.Commander.replace(v3[1], '.', '(dot)'); return v3.join('='); } if (v2 > -1) { var v4 = str.indexOf(')', v2); var v6 = str.slice(0, v2); var v7 = str.slice(v4 + 2); var v8 = com.blitzagency.xray.Commander.replace(str.substr(v2, v4), '.', '(dot)'); return v6 + v8 + v7; } return str; }; v1.restoreValue = function (str) { return com.blitzagency.xray.Commander.replace(str, '(dot)', '.'); }; v1.replace = function (str, search, use) { return (str.split(search)).join(use); }; v1.getArguments = function (str) { var v10 = str.indexOf('('); var v12 = str.lastIndexOf(')'); var v13; var v2; var v11; var v7; if (v10 > -1) { v13 = str.substr(0, v10); v2 = (str.substring(v10 + 1, v12)).split(','); var v1 = 0; while (v1 < v2.length) { var v4 = v2[v1].indexOf('"'); var v3 = v2[v1].indexOf('('); if (v3 > -1) { v2[v1] = String(com.blitzagency.xray.Commander.replace(v2[v1], ' ', '')); v2[v1] = com.blitzagency.xray.Commander.exec(v2[v1]); } else { if (v4 > -1 && v3 == -1) { v2[v1] = String(com.blitzagency.xray.Commander.replace(v2[v1], '"', '')); v2[v1] = String(com.blitzagency.xray.Commander.replace(v2[v1], '\'', '')); } else { if (!isNaN(parseInt(v2[v1]))) { v2[v1] = parseInt(v2[v1]); } } } ++v1; } var v6 = new Object(); v6.method = v13; v6.args = v2; v6.prop = v11; v6.val = v7; return v6; } v11 = com.blitzagency.xray.Commander.replace((str.split('='))[0], ' ', ''); var v5 = com.blitzagency.xray.Commander.replace((str.split('='))[1], ' ', ''); var v9; var v14; switch (v5) { case 'true': v9 = true; v7 = v9; var v6 = new Object(); v6.method = v13; v6.args = v2; v6.prop = v11; v6.val = v7; return v6; case 'false': v9 = false; v7 = v9; var v6 = new Object(); v6.method = v13; v6.args = v2; v6.prop = v11; v6.val = v7; return v6; } if (!isNaN(parseInt(v5))) { v14 = parseInt(v5); v7 = v14; var v6 = new Object(); v6.method = v13; v6.args = v2; v6.prop = v11; v6.val = v7; return v6; } v5 = String(com.blitzagency.xray.Commander.replace(v5, '"', '')); v5 = String(com.blitzagency.xray.Commander.replace(v5, '\'', '')); v7 = v5; var v6 = new Object(); v6.method = v13; v6.args = v2; v6.prop = v11; v6.val = v7; return v6; }; ASSetPropFlags(com.blitzagency.xray.Commander.prototype, null, 1); } #endinitclip } movieClip 143 __Packages.com.blitzagency.xray.ControlConnection { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.blitzagency) { _global.com.blitzagency = new Object(); } if (!_global.com.blitzagency.xray) { _global.com.blitzagency.xray = new Object(); } if (!_global.com.blitzagency.xray.ControlConnection) { var v1 = function () { super(); mx.events.EventDispatcher.initialize(this); this.init(); }; com.blitzagency.xray.ControlConnection = v1; com.blitzagency.xray.ControlConnection extends LocalConnection; var v2 = v1.prototype; v2.init = function () { this.objViewer = new com.blitzagency.xray.ObjectViewer(); this.tree_que = new Array(); }; v2.viewTree = function (sTarget_mc, recursiveSearch, showHidden, objectSearch) { var target_mc; if (sTarget_mc.indexOf('addedObject') > -1) { var obj = com.blitzagency.xray.Xray.addedObjects[(sTarget_mc.split('_'))[1]].obj; com.blitzagency.xray.Xray.tt(com.blitzagency.xray.Xray.addedObjects, obj); target_mc = obj; } else { target_mc = eval(sTarget_mc); } var objPath = null; if (typeof target_mc == 'object') { objPath = sTarget_mc; } var tree_xml = this.objViewer.viewTree(target_mc, objPath, recursiveSearch, showHidden, objectSearch); if (!tree_xml) { com.blitzagency.xray.Xray.tt('treeview search returned undefined'); return undefined; } var level_ary = this.findLevels(); var sTree = tree_xml.toString(); var treeLength = sTree.length; if (treeLength > 5000) { this.tree_que = new Array(); var x = 0; while (x < treeLength) { var toSend = sTree.substring(x, x + 5000); var bLast = x + 5000 >= sTree.length ? true : false; this.tree_que.push({'XMLDoc': toSend, 'level_ary': level_ary, 'bLast': bLast}); x += 5000; } this.queSI = setInterval(this, 'processQue', 25); } else { var obj = {'XMLDoc': tree_xml.toString()}; var bSent = this.send('_xray_conn', 'setTree', obj, level_ary, true); } }; v2.findLevels = function () { var iLevelCount = 5000; var level_ary = new Array(); var x = 1; while (x <= iLevelCount) { if (eval('_level' + x)) { level_ary.push(x); } ++x; } return level_ary; }; v2.sendAddedObjects = function (id) { var v2 = this.send('_xray_conn', 'setAddedObjects', id); }; v2.processQue = function () { var v2 = this.tree_que.shift(); var v3 = new Object(); v3.XMLDoc = v2.XMLDoc; var v5 = v2.level_ary; var v4 = v2.bLast; if (this.tree_que.length == 0) { clearInterval(this.queSI); } var v6 = this.send('_xray_conn', 'setTree', v3, v5, v4); }; v2.sendFPS = function (obj) { var v2 = this.send('_xray_conn', 'viewFPS', obj.fps); }; v2.showFPS = function () { this.fpsMeter.__set__runFPS(true); }; v2.hideFPS = function () { this.fpsMeter.__set__runFPS(false); }; v2.fpsOn = function (showFPS) { this.fpsMeter.__set__runFPS(showFPS); }; v2.setFilter = function (sTarget_mc, filter, filterType) { var target_mc = eval(sTarget_mc); var newFilter; switch (filterType) { case 'ds': newFilter = new flash.filters.DropShadowFilter(); break; case 'blur': newFilter = new flash.filters.BlurFilter(); break; case 'glow': newFilter = new flash.filters.GlowFilter(); } for (var items in filter) { newFilter[items] = filter[items]; } target_mc.filters = [newFilter]; }; v2.getMovieClipProperties = function (sTarget_mc, bShowAll) { var target_mc = eval(sTarget_mc); var obj = this.objViewer.getProperties(target_mc, bShowAll); var bSent = this.send('_xray_conn', 'showMovieClipProperties', obj); }; v2.getTipMovieClipProperties = function (sTarget_mc, bShowAll) { var target_mc = eval(sTarget_mc); var obj = this.objViewer.getProperties(target_mc, false); var bSent = this.send('_xray_conn', 'showTipMovieClipProperties', obj); }; v2.getBaseProperties = function (sObj, key) { var sTemp = sObj.split('.'); var target_obj = eval(sTemp[0]); var x = 1; while (x < sTemp.length) { target_obj = target_obj[sTemp[x]]; ++x; } if (key) { target_obj = target_obj[key]; } var obj = this.objViewer.getBaseProperties(target_obj, sObj); var bSent = this.send('_xray_conn', 'showBaseProperties', obj); }; v2.getObjProperties = function (sObj, key) { var sTemp = sObj.split('.'); var target_obj = eval(sTemp[0]); var x = 1; while (x < sTemp.length) { target_obj = target_obj[sTemp[x]]; ++x; } if (key) { target_obj = target_obj[key]; } var obj = this.objViewer.getObjProperties(target_obj); var bSent = this.send('_xray_conn', 'showMovieClipProperties', obj); }; v2.getFunctionProperties = function (sObj) { var target_obj = eval(sObj); var obj = this.objViewer.getFunctionProperties(target_obj); var bSent = this.send('_xray_conn', 'showMovieClipProperties', obj); }; v2.writeChangeHistory = function (obj) { var v4 = '//==========/[ CHANGES ]\\===========//'; _global.trace(v4); for (var v3 in obj) { if (typeof obj[v3] == 'object') { _global.trace(obj[v3].changes + ';'); } } v4 = '//==========\\[ CHANGES ]/===========//'; _global.trace(v4); }; v2.executeScript = function (sExecute) { com.blitzagency.xray.Commander.exec(sExecute); }; v2.getSoundProperties = function (sSound) { var obj = this.objViewer.getSoundProperties(eval(sSound)); var bSent = this.send('_xray_conn', 'setSoundProperties', obj); }; v2.getVideoProperties = function (sNetStream) { var obj = this.objViewer.getVideoProperties(eval(sNetStream)); var bSent = this.send('_xray_conn', 'setVideoProperties', obj); }; v2.playSound = function (sSound, iLoops) { var snd = eval(sSound); snd.start(0, iLoops); }; v2.stopSound = function (sSound) { var snd = eval(sSound); snd.stop(); }; v2.playVideo = function (sVideo, flv) { var ns = eval(sVideo); ns.play(flv); }; v2.pauseVideo = function (sVideo) { var ns = eval(sVideo); ns.pause(); }; v2.stopVideo = function (sVideo) { var ns = eval(sVideo); ns.close(); }; v2.highlightClip = function (sTarget_mc) { var target_mc = eval(sTarget_mc); this.focusEnabledCheck = target_mc.focusEnabled; target_mc.focusEnabled = true; _global.Selection.setFocus(sTarget_mc); }; v2.lowlightClip = function (sTarget_mc) { var target_mc = eval(sTarget_mc); _global.Selection.setFocus(null); target_mc.focusEnabled = this.focusEnabledCheck; }; v2.startExamineClips = function (sTarget_mc, iType) { var target_mc = eval(sTarget_mc); var mc; if (iType == 5 || iType == 3) { } else { if (iType == 3) { } else { if (iType == 2) { mc = target_mc; var colorObj = this.highlightColor.getTransform(); var myColorTransform; if (colorObj && colorObj.rb == 81) { myColorTransform = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; com.blitzagency.xray.DragableMovieClip.remove(target_mc); } else { com.blitzagency.xray.DragableMovieClip.initialize(target_mc); myColorTransform = {'ra': 100, 'rb': 81, 'ga': 100, 'gb': 56, 'ba': 100, 'bb': -57, 'aa': 100, 'ab': 0}; } this.highlightColor = new Color(mc); this.highlightColor.setTransform(myColorTransform); } } } this.boundingBox_mc = mc; }; v2.stopExamineClips = function (sTarget_mc, iType) { var target_mc = eval(sTarget_mc); this.highlightColor = new Color(this.boundingBox_mc); var myColorTransform = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; this.highlightColor.setTransform(myColorTransform); com.blitzagency.xray.DragableMovieClip.remove(target_mc); }; v2.updateHistory = function (target_mc) { var sTarget_mc = String(eval(target_mc._target)); var obj = new Object(); var propsAry = new Array('_x', '_y'); var aTemp = sTarget_mc.split('.'); aTemp.splice(0, 1); sTarget_mc = aTemp.join('.'); var x = 0; while (x < propsAry.length) { var p = propsAry[x]; var key = sTarget_mc + '.' + p; obj[key] = new Object(); var o = obj[key]; o.prop = p; o.value = target_mc[p]; o.key = sTarget_mc + '.' + p; o.sExecute = sTarget_mc + '.' + p + ' = ' + target_mc[p]; ++x; } var bSent = this.send('_xray_conn', 'updateHistory', obj); }; v2.allowDomain = function (sendingDomain) { return true; }; v2.onStatus = function (infoObject) { switch (infoObject.level) { case 'status': break; case 'error': } }; v2.initConnection = function () { this.fpsMeter = com.blitzagency.xray.FPSMeter.getInstance(); this.isConnected = this.connect('_xray_remote_conn'); return this.isConnected; }; ASSetPropFlags(com.blitzagency.xray.ControlConnection.prototype, null, 1); } #endinitclip } movieClip 144 __Packages.com.blitzagency.xray.XrayTrace { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.blitzagency) { _global.com.blitzagency = new Object(); } if (!_global.com.blitzagency.xray) { _global.com.blitzagency.xray = new Object(); } if (!_global.com.blitzagency.xray.XrayTrace) { var v1 = function () { com.blitzagency.events.GDispatcher.initialize(this); this.__set__separator(' :: '); this._recursionCount = 0.003; this.recursionCheck = com.blitzagency.util.RecursionCheck.getInstance(); }; com.blitzagency.xray.XrayTrace = v1; var v2 = v1.prototype; v2.__get__sViewInfo = function () { return this._sViewInfo; }; v2.__set__sViewInfo = function (newValue) { this._sViewInfo = newValue; return this.__get__sViewInfo(); }; v2.__get__sViewInfoClean = function () { return this._sViewInfoClean; }; v2.__set__sViewInfoClean = function (newValue) { this._sViewInfoClean = newValue; return this.__get__sViewInfoClean(); }; v2.__get__queInterval = function () { return this._queInterval; }; v2.__set__queInterval = function (newValue) { this._queInterval = newValue; clearInterval(this.sendSI); this.sendSI = setInterval(this, 'sendData', newValue); return this.__get__queInterval(); }; v2.__get__separator = function () { return this._separator; }; v2.__set__separator = function (newValue) { this._separator = newValue; return this.__get__separator(); }; v1.getInstance = function () { if (com.blitzagency.xray.XrayTrace._instance == null) { com.blitzagency.xray.XrayTrace._instance = new com.blitzagency.xray.XrayTrace(); } return com.blitzagency.xray.XrayTrace._instance; }; v2.sendData = function () { var v2 = this.sendAry.shift(); if (v2) { this.dispatchEvent({'type': 'onSendData', 'info': v2.sViewInfo, 'last': v2.bLast}); } }; v2.examineObj = function (obj) { var v5 = ''; var v6 = ''; var v4 = 0; while (v4 < this.iViewColCount) { v5 += '&nbsp;'; v6 += ' '; ++v4; } if (!(this.recursionCheck.isMember(obj)).exists) { this.recursionCheck.addMember(obj); } for (var v7 in obj) { var v3 = false; if (v7 != 'getRecursionChecked' && v7 != '__recursionCheck') { this.sViewInfo += v5 + '<font size="12" color="#0000FF">' + v7 + '</font>' + ' = ' + obj[v7] + '\n'; this.sViewInfoClean += v6 + v7 + ' = ' + obj[v7] + '\n'; } if (typeof obj[v7] == 'object' || obj[v7] instanceof Array) { if (Math.floor(obj[v7].__recursionCheck) != Math.floor(com.blitzagency.xray.Xray.recursionControl) || obj[v7].__recursionCheck < com.blitzagency.xray.Xray.recursionControl + this._recursionCount) { if (Math.floor(obj[v7].__recursionCheck) == Math.floor(com.blitzagency.xray.Xray.recursionControl)) { obj[v7].__recursionCheck += 0.001; } if (obj[v7].__recursionCheck < com.blitzagency.xray.Xray.recursionControl + this._recursionCount || obj[v7].__recursionCheck == undefined) { this.iViewColCount += 4; if (typeof obj[v7] == 'object') { v3 = this.examineObj(obj[v7]); } if (obj[v7] instanceof Array) { v3 = this.examineAry(obj[v7]); } if (!v3) { return true; } } } } } this.iViewColCount -= 4; this.sViewInfo += '\n'; this.sViewInfoClean += '\n'; return true; }; v2.examineAry = function (obj) { var v7 = ''; var v8 = ''; var v6 = 0; while (v6 < this.iViewColCount) { v7 += '&nbsp;'; v8 += ' '; ++v6; } if (!(this.recursionCheck.isMember(obj)).exists) { this.recursionCheck.addMember(obj); } var v2 = 0; while (v2 < obj.length) { var v5 = false; var v4 = obj[v2]; if (v4 != 'getRecursionChecked' && v4 != '__recursionCheck') { this.sViewInfo += v7 + '<font size="12" color="#0000FF">' + v4 + '</font>' + ' = ' + obj[v2] + '\n'; this.sViewInfoClean += v8 + v4 + ' = ' + obj[v2] + '\n'; } if (typeof obj[v2] == 'object' || obj[v2] instanceof Array) { if (Math.floor(obj[v2].__recursionCheck) != Math.floor(com.blitzagency.xray.Xray.recursionControl) || obj[v2].__recursionCheck < com.blitzagency.xray.Xray.recursionControl + this._recursionCount) { if (Math.floor(obj[v2].__recursionCheck) == Math.floor(com.blitzagency.xray.Xray.recursionControl)) { obj[v2].__recursionCheck += 0.001; } if (obj[v2].__recursionCheck < com.blitzagency.xray.Xray.recursionControl + this._recursionCount || obj[v2].__recursionCheck == undefined) { this.iViewColCount += 4; if (typeof obj[v2] == 'object') { v5 = this.examineObj(obj[v2]); } if (obj[v2] instanceof Array) { v5 = this.examineAry(obj[v2]); } if (!v5) { return true; } } } } ++v2; } this.iViewColCount -= 4; this.sViewInfo += '\n'; this.sViewInfoClean += '\n'; return true; }; v2.trace = function () { this.__set__sViewInfo(''); this.__set__sViewInfoClean(''); this.recursionCheck.clear(); var v4 = 0; while (v4 < arguments.length) { if (typeof arguments[v4] == 'object') { this.sViewInfo += '\n'; this.sViewInfoClean += '\n'; this.iViewColCount = 2; this.dispatchEvent({'type': 'onStatus', 'code': 'Trace.object'}); com.blitzagency.xray.Xray.recursionControl += 1; this.examineObj(arguments[v4]); } else { if (arguments[v4] instanceof Array) { this.sViewInfo += '\n'; this.sViewInfoClean += '\n'; this.iViewColCount = 2; this.dispatchEvent({'type': 'onStatus', 'code': 'Trace.object'}); com.blitzagency.xray.Xray.recursionControl += 1; this.examineAry(arguments[v4]); } else { if (v4 > 0) { this.sViewInfo += arguments[v4] + ' :: '; this.sViewInfoClean += arguments[v4] + ' :: '; } } } ++v4; } if ((this.__get__sViewInfo()).substring((this.__get__sViewInfo()).length - 4, (this.__get__sViewInfo()).length) == ' :: ') { this.__set__sViewInfo((this.__get__sViewInfo()).substring(0, (this.__get__sViewInfo()).length - 4)); } if ((this.__get__sViewInfoClean()).substring((this.__get__sViewInfoClean()).length - 4, (this.__get__sViewInfoClean()).length) == ' :: ') { this.__set__sViewInfoClean((this.__get__sViewInfoClean()).substring(0, (this.__get__sViewInfoClean()).length - 4)); } var v7 = '(' + getTimer() + ') ' + arguments[0] + ': ' + this.__get__sViewInfoClean(); if (com.blitzagency.xray.Xray.lc_info) { if (v7 != undefined) { if (v7.length > 5000) { v4 = 0; while (v4 < v7.length) { var v5 = v7.substring(v4, v4 + 5000); var v8 = v4 + 5000 >= v7.length ? true : false; this.sendAry.push({'sViewInfo': v5, 'bLast': v8}); v4 += 5000; } } else { this.sendAry.push({'sViewInfo': v7, 'bLast': true}); } } } _global.trace('(' + getTimer() + ') ' + arguments[0] + ': ' + this.__get__sViewInfoClean()); this.dispatchEvent({'type': 'onTrace', 'sInfo': v7}); if (com.blitzagency.xray.Xray.lc_info && !this.__get__queInterval() && !_global.isLivePreview) { this.__set__queInterval(50); this.sendAry = new Array(); } return v7; }; v1._instance = null; v2.addProperty('queInterval', v2.__get__queInterval, v2.__set__queInterval); v2.addProperty('sViewInfo', v2.__get__sViewInfo, v2.__set__sViewInfo); v2.addProperty('sViewInfoClean', v2.__get__sViewInfoClean, v2.__set__sViewInfoClean); v2.addProperty('separator', v2.__get__separator, v2.__set__separator); ASSetPropFlags(com.blitzagency.xray.XrayTrace.prototype, null, 1); } #endinitclip } movieClip 145 __Packages.com.blitzagency.xray.LoggerConnection { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.blitzagency) { _global.com.blitzagency = new Object(); } if (!_global.com.blitzagency.xray) { _global.com.blitzagency.xray = new Object(); } if (!_global.com.blitzagency.xray.LoggerConnection) { var v1 = function () { super(); com.blitzagency.events.GDispatcher.initialize(this); }; com.blitzagency.xray.LoggerConnection = v1; com.blitzagency.xray.LoggerConnection extends LocalConnection; var v2 = v1.prototype; v2.setViewInfo = function (obj) { var v2 = this.send('_xray_view_conn', 'setViewInfo', obj.info, obj.last); }; v2.getTraceValue = function (traceValue) { var sInfo = this.xrayTrace.trace('XrayTrace', eval(traceValue)); }; v2.allowDomain = function (sendingDomain) { return true; }; v2.onStatus = function (infoObject) { switch (infoObject.level) { break; case 'status': case 'error': } }; v2.initConnection = function () { this.xrayTrace = com.blitzagency.xray.XrayTrace.getInstance(); this.xrayTrace.addEventListener('onSendData', com.blitzagency.util.Delegate.create(this, this.setViewInfo)); this.isConnected = this.connect('_xray_view_remote_conn'); return this.isConnected; }; ASSetPropFlags(com.blitzagency.xray.LoggerConnection.prototype, null, 1); } #endinitclip } movieClip 146 __Packages.com.blitzagency.util.PointConverter { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.blitzagency) { _global.com.blitzagency = new Object(); } if (!_global.com.blitzagency.util) { _global.com.blitzagency.util = new Object(); } if (!_global.com.blitzagency.util.PointConverter) { var v1 = function () { mx.events.EventDispatcher.initialize(this); _global.localToLocal = function () { com.blitzagency.util.PointConverter.localToLocal.apply(com.blitzagency.util.PointConverter, arguments); }; }; com.blitzagency.util.PointConverter = v1; var v2 = v1.prototype; v1.getInstance = function () { if (com.blitzagency.util.PointConverter._instance == null) { com.blitzagency.util.PointConverter._instance = new com.blitzagency.util.PointConverter(); } return com.blitzagency.util.PointConverter._instance; }; v1.localToLocal = function (from, to) { var v1 = {'x': 0, 'y': 0}; from.localToGlobal(v1); to.globalToLocal(v1); return v1; }; v1._instance = null; ASSetPropFlags(com.blitzagency.util.PointConverter.prototype, null, 1); } #endinitclip } movieClip 147 __Packages.com.blitzagency.xray.FunctionName { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.blitzagency) { _global.com.blitzagency = new Object(); } if (!_global.com.blitzagency.xray) { _global.com.blitzagency.xray = new Object(); } if (!_global.com.blitzagency.xray.FunctionName) { var v1 = function () { com.blitzagency.events.GDispatcher.initialize(this); }; com.blitzagency.xray.FunctionName = v1; var v2 = v1.prototype; v1.getInstance = function () { if (com.blitzagency.xray.FunctionName._instance == null) { com.blitzagency.xray.FunctionName._instance = new com.blitzagency.xray.FunctionName(); } return com.blitzagency.xray.FunctionName._instance; }; v2.traceFunction = function (ary, obj) { _global.ASSetPropFlags(obj, null, 0, true); for (var v7 in obj) { if (typeof obj[v7] == 'function' && obj[v7] == ary.callee) { _global.tt('Function called :: ' + v7 + '\ntarget :: ' + obj + '\narguments', ary); this.dispatchEvent({'type': 'onTraceFunction', 'functionName': v7}); return v7; } } _global.ASSetPropFlags(obj, null, 1, true); }; v1._instance = null; ASSetPropFlags(com.blitzagency.xray.FunctionName.prototype, null, 1); } #endinitclip } frame 2 { stop(); } movieClip 278 { frame 1 { stop(); } } frame 3 { if (!okToPlay) { gotoAndStop(3); } } frame 4 { } frame 5 { stop(); _root.nivel = 0; _root.score = 0; _root.madsooter = new Sound(); _root.madsooter.attachSound('madsooter'); _root.heroshoot = new Sound(); _root.heroshoot.attachSound('heroshoot'); _root.reloadx = new Sound(); _root.reloadx.attachSound('reloadx'); _root.ishitx = new Sound(); _root.ishitx.attachSound('ishitx'); _root.bodydropP = new Sound(); _root.bodydropP.attachSound('bodydropP'); _root.bodydropxxx = new Sound(); _root.bodydropxxx.attachSound('bodydropxxx'); _root.enemy_die = new Sound(); _root.enemy_die.attachSound('enemy_die'); _root.startmusicx = new Sound(); _root.startmusicx.attachSound('startmusicx'); _root.car_away = new Sound(); _root.car_away.attachSound('car_away'); fscommand('allowscale', 'false'); fscommand('trapallkeys', 'true'); } button 288 { on (release) { gotoAndStop(7); _root.startmusicx.start(0, 999); } } instance of movieClip 132 Xray Connector 8-OS { onClipEvent (construct) { classPackages = []; classPackages[0] = 'com'; classPackages[1] = 'org'; classPackages[2] = 'net'; classPackages[3] = 'edu'; classPackages[4] = 'gov'; classPackages[5] = 'ch'; classPackages[6] = 'mx'; classPackages[7] = 'flash'; showFPS = false; } } button 294 { on (release) { getURL('http://www.freeonlinegames.com/?TheProfessionalsII', '_blank'); } } button 297 { on (release) { targetul2 = 'http://www.freeonlinegames.com/?' + _parent.wynume; getURL(targetul2, '_blank'); } } movieClip 304 { frame 1 { stop(); if (_parent.wyaliniere == 'Centru') { this.gotoAndStop(2); } if (_parent.wyaliniere == 'Dreapta') { this.gotoAndStop(3); } } frame 2 { wxculoarea2 = new Color(but2); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); } frame 3 { wxculoarea2 = new Color(but2); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); } } movieClip 306 { } button 309 { on (release) { targetul2 = 'http://www.freeonlinegames.com/?' + _parent.wynume; getURL(targetul2, '_blank'); } } movieClip 310 { frame 1 { stop(); } } button 311 { on (release) { targetul3 = 'http://www.freegamesforyourwebsite.com/?' + _parent.wynume; getURL(targetul3, '_blank'); } } movieClip 314 { frame 1 { stop(); if (_parent.wyaliniere == 'Centru') { this.gotoAndStop(2); } if (_parent.wyaliniere == 'Dreapta') { this.gotoAndStop(3); } } frame 2 { wxculoarea2 = new Color(but3); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); } frame 3 { wxculoarea2 = new Color(but3); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); } } button 315 { on (release, keyPress 'p') { _parent.instructionsFunction(); } } movieClip 322 { frame 1 { stop(); if (_parent.wyaliniere == 'Centru') { this.gotoAndStop(2); } if (_parent.wyaliniere == 'Dreapta') { this.gotoAndStop(3); } } frame 2 { wxculoarea2 = new Color(but4); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); } frame 3 { wxculoarea2 = new Color(but4); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); } } button 323 { on (release, keyPress 'p') { _parent.instructionsFunction(); } } movieClip 324 { frame 1 { stop(); } } movieClip 325 { frame 1 { function instructionsFunction() { _root.gotoAndPlay('instructiuni'); } } frame 1 { stop(); if (wyasezare == 'Orizontal' && wyinstructions == false) { this.gotoAndStop(2); } if (wyasezare == 'Vertical' && wyinstructions == true && wypozitie == 'Sus') { this.gotoAndStop(3); } if (wyasezare == 'Vertical' && wyinstructions == true && wypozitie == 'Jos') { this.gotoAndStop(4); } if (wyasezare == 'Orizontal' && wyinstructions == true && wypozitie == 'Sus') { this.gotoAndStop(5); } if (wyasezare == 'Orizontal' && wyinstructions == true && wypozitie == 'Jos') { this.gotoAndStop(6); } my_color = new Color(my_mc); my_color.setRGB(wyculoare); myValue = (my_color.getRGB()).toString(16); trace(myValue.length); if (myValue.length == 5) { myValue = '0' + myValue; } if (myValue.length == 4) { myValue = '00' + myValue; } if (myValue.length == 3) { myValue = '000' + myValue; } if (myValue.length == 2) { myValue = '0000' + myValue; } if (myValue.length == 1) { myValue = '00000' + myValue; } xtbcolor = myValue; xrtb5 = Number('0x' + xtbcolor.slice(0, 2)) - 1; xgtb5 = Number('0x' + xtbcolor.slice(2, 4)) - 1; xbtb5 = Number('0x' + xtbcolor.slice(4, 6)) - 1; wxculoarea2 = new Color(wynbut1.but1); wxculoarea3 = new Color(wynbut2.but2); wxculoarea4 = new Color(wynbut3.but3); wxculoarea5 = new Color(wynbut4.but4); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': xrtb5, 'ga': '100', 'gb': xgtb5, 'ba': '100', 'bb': xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); wxculoarea3.setTransform(myColorTransform); wxculoarea4.setTransform(myColorTransform); wxculoarea5.setTransform(myColorTransform); } instance wynbut2 of movieClip 304 { onClipEvent (release) { getURL('http://www.freegamesforyourwebsite.com/click.php?gid=68&area=gameover', '_blank'); } } frame 2 { stop(); my_color = new Color(my_mc); my_color.setRGB(wyculoare); myValue = (my_color.getRGB()).toString(16); trace(myValue.length); if (myValue.length == 5) { myValue = '0' + myValue; } if (myValue.length == 4) { myValue = '00' + myValue; } if (myValue.length == 3) { myValue = '000' + myValue; } if (myValue.length == 2) { myValue = '0000' + myValue; } if (myValue.length == 1) { myValue = '00000' + myValue; } xtbcolor = myValue; xrtb5 = Number('0x' + xtbcolor.slice(0, 2)) - 1; xgtb5 = Number('0x' + xtbcolor.slice(2, 4)) - 1; xbtb5 = Number('0x' + xtbcolor.slice(4, 6)) - 1; wxculoarea2 = new Color(wynbut1.but1); wxculoarea3 = new Color(wynbut2.but2); wxculoarea4 = new Color(wynbut3.but3); wxculoarea5 = new Color(wynbut4.but4); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': xrtb5, 'ga': '100', 'gb': xgtb5, 'ba': '100', 'bb': xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); wxculoarea3.setTransform(myColorTransform); wxculoarea4.setTransform(myColorTransform); wxculoarea5.setTransform(myColorTransform); } frame 3 { stop(); my_color = new Color(my_mc); my_color.setRGB(wyculoare); myValue = (my_color.getRGB()).toString(16); trace(myValue.length); if (myValue.length == 5) { myValue = '0' + myValue; } if (myValue.length == 4) { myValue = '00' + myValue; } if (myValue.length == 3) { myValue = '000' + myValue; } if (myValue.length == 2) { myValue = '0000' + myValue; } if (myValue.length == 1) { myValue = '00000' + myValue; } xtbcolor = myValue; xrtb5 = Number('0x' + xtbcolor.slice(0, 2)) - 1; xgtb5 = Number('0x' + xtbcolor.slice(2, 4)) - 1; xbtb5 = Number('0x' + xtbcolor.slice(4, 6)) - 1; wxculoarea2 = new Color(wynbut1.but1); wxculoarea3 = new Color(wynbut2.but2); wxculoarea4 = new Color(wynbut3.but3); wxculoarea5 = new Color(wynbut4.but4); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': xrtb5, 'ga': '100', 'gb': xgtb5, 'ba': '100', 'bb': xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); wxculoarea3.setTransform(myColorTransform); wxculoarea4.setTransform(myColorTransform); wxculoarea5.setTransform(myColorTransform); } frame 4 { stop(); my_color = new Color(my_mc); my_color.setRGB(wyculoare); myValue = (my_color.getRGB()).toString(16); trace(myValue.length); if (myValue.length == 5) { myValue = '0' + myValue; } if (myValue.length == 4) { myValue = '00' + myValue; } if (myValue.length == 3) { myValue = '000' + myValue; } if (myValue.length == 2) { myValue = '0000' + myValue; } if (myValue.length == 1) { myValue = '00000' + myValue; } xtbcolor = myValue; xrtb5 = Number('0x' + xtbcolor.slice(0, 2)) - 1; xgtb5 = Number('0x' + xtbcolor.slice(2, 4)) - 1; xbtb5 = Number('0x' + xtbcolor.slice(4, 6)) - 1; wxculoarea2 = new Color(wynbut1.but1); wxculoarea3 = new Color(wynbut2.but2); wxculoarea4 = new Color(wynbut3.but3); wxculoarea5 = new Color(wynbut4.but4); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': xrtb5, 'ga': '100', 'gb': xgtb5, 'ba': '100', 'bb': xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); wxculoarea3.setTransform(myColorTransform); wxculoarea4.setTransform(myColorTransform); wxculoarea5.setTransform(myColorTransform); } instance wynbut3 of movieClip 314 { onClipEvent (release) { getURL('http://www.freegamesforyourwebsite.com/click.php?gid=68&area=menu', '_blank'); } } frame 5 { stop(); my_color = new Color(my_mc); my_color.setRGB(wyculoare); myValue = (my_color.getRGB()).toString(16); trace(myValue.length); if (myValue.length == 5) { myValue = '0' + myValue; } if (myValue.length == 4) { myValue = '00' + myValue; } if (myValue.length == 3) { myValue = '000' + myValue; } if (myValue.length == 2) { myValue = '0000' + myValue; } if (myValue.length == 1) { myValue = '00000' + myValue; } xtbcolor = myValue; xrtb5 = Number('0x' + xtbcolor.slice(0, 2)) - 1; xgtb5 = Number('0x' + xtbcolor.slice(2, 4)) - 1; xbtb5 = Number('0x' + xtbcolor.slice(4, 6)) - 1; wxculoarea2 = new Color(wynbut1.but1); wxculoarea3 = new Color(wynbut2.but2); wxculoarea4 = new Color(wynbut3.but3); wxculoarea5 = new Color(wynbut4.but4); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': xrtb5, 'ga': '100', 'gb': xgtb5, 'ba': '100', 'bb': xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); wxculoarea3.setTransform(myColorTransform); wxculoarea4.setTransform(myColorTransform); wxculoarea5.setTransform(myColorTransform); } frame 6 { stop(); my_color = new Color(my_mc); my_color.setRGB(wyculoare); myValue = (my_color.getRGB()).toString(16); trace(myValue.length); if (myValue.length == 5) { myValue = '0' + myValue; } if (myValue.length == 4) { myValue = '00' + myValue; } if (myValue.length == 3) { myValue = '000' + myValue; } if (myValue.length == 2) { myValue = '0000' + myValue; } if (myValue.length == 1) { myValue = '00000' + myValue; } xtbcolor = myValue; xrtb5 = Number('0x' + xtbcolor.slice(0, 2)) - 1; xgtb5 = Number('0x' + xtbcolor.slice(2, 4)) - 1; xbtb5 = Number('0x' + xtbcolor.slice(4, 6)) - 1; wxculoarea2 = new Color(wynbut1.but1); wxculoarea3 = new Color(wynbut2.but2); wxculoarea4 = new Color(wynbut3.but3); wxculoarea5 = new Color(wynbut4.but4); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': xrtb5, 'ga': '100', 'gb': xgtb5, 'ba': '100', 'bb': xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); wxculoarea3.setTransform(myColorTransform); wxculoarea4.setTransform(myColorTransform); wxculoarea5.setTransform(myColorTransform); } } instance of movieClip 325 { onClipEvent (construct) { wynume = 'TheProfessionalsII'; wyculoare = 9310210; wyasezare = 'Vertical'; wyaliniere = 'Dreapta'; wypozitie = 'Jos'; wyinstructions = true; } } frame 6 { stop(); } frame 6 { vel_walk = 7; vel_run = 12; y_abajo = 460; y_arriba = 233; habilito = true; no_juego = true; skl_hitman = 30; framreload = 28; frameshot = 8; framecshot = 9; framecrouch = 12; framcreload = 25; framehit = 15; framechit = 19; frameinicio = 67; frameinout = 23; si = true; onEnterFrame = function () { if (Key.isDown(16) && si) { si = false; _root.startmusicx.start(0, 999); _root.gotoAndPlay('game'); } }; } movieClip 395 { } movieClip 412 { } movieClip 441 { frame 15 { if (_root.sunet == true) { _root.reloadx.start(); } } } movieClip 457 { frame 1 { this.onEnterFrame = function () { if (!_root.pauza) { this.play(); } else { this.stop(); } }; } frame 2 { if (_root.sunet == true) { _root.ishitx.start(); } } } movieClip 471 { } movieClip 488 { } movieClip 497 { frame 1 { this.onEnterFrame = function () { if (!_root.pauza) { this.play(); } else { this.stop(); } }; } frame 2 { if (_root.sunet == true && _root.pauza == false) { _root.heroshoot.start(); } } } movieClip 547 { } movieClip 560 { } movieClip 604 { } movieClip 630 { frame 15 { if (_root.sunet == true) { _root.reloadx.start(); } } } movieClip 650 { frame 1 { this.onEnterFrame = function () { if (!_root.pauza) { this.play(); } else { this.stop(); } }; } frame 2 { if (_root.sunet == true) { _root.ishitx.start(); } } } movieClip 660 { frame 1 { this.onEnterFrame = function () { if (!_root.pauza) { this.play(); } else { this.stop(); } }; } frame 2 { if (_root.sunet == true && _root.pauza == false) { _root.heroshoot.start(); } } frame 9 { stop(); } } movieClip 673 { } movieClip 707 { } movieClip 708 { } movieClip 720 { } movieClip 733 { } movieClip 734 { } instance hitman of movieClip 734 { onClipEvent (load) { stop(); prob = 0; cargar = false; } onClipEvent (enterFrame) { if (this.s_iandh._currentframe == _root.frameinicio && _root.s_iandh) { _root.s_iandh = false; } if (!_root.s_iandh && !_root.death && !_root.walk && !_root.run && !_root.crouch && !_root.hit && !_root.s_reload && !_root.shoot && _root.habilito) { this.gotoAndStop('s_idle'); } if (!_root.s_iandh && !_root.death && _root.habilito) { if (this._x > _root.maxpantalla) { _root.nextFrame(); _root.e_shoot = false; this._x = _root.minpantalla + 2; } if (this._x < _root.minpantalla) { _root.prevFrame(); _root.e_shoot = false; this._x = _root.maxpantalla - 2; } if (this.hitTest(_root.topeizq) or this.hitTest(_root.topeizq2)) { toqueizq = true; } else { toqueizq = false; } if (this.hitTest(_root.topeder) or this.hitTest(_root.topeder2)) { toqueder = true; } else { toqueder = false; } if (Key.isDown(37) && !toqueizq && !_root.shoot && !_root.s_reload && !_root.hit) { _root.hman_sentido = -1; this._xscale = -_root.skl_hitman; if (!_root.fincrouch && !_root.crouch) { if (!_root.run) { this.gotoAndStop('walk'); _root.walk = true; this._x -= _root.vel_walk; if (toqueW or toqueG) { this._x += _root.vel_walk; } } else { this.gotoAndStop('run'); _root.run = true; this._x -= _root.vel_run; if (toqueW or toqueG) { this._x += _root.vel_run + 5; } } } } if (Key.isDown(39) && !toqueder && !etoqueder && !_root.shoot && !_root.s_reload && !_root.hit) { this._xscale = _root.skl_hitman; _root.hman_sentido = 1; if (!_root.fincrouch && !_root.crouch) { if (!_root.run) { this.gotoAndStop('walk'); _root.walk = true; this._x += _root.vel_walk; if (toqueW or toqueG) { this._x -= _root.vel_walk; } } else { this.gotoAndStop('run'); _root.run = true; this._x += _root.vel_run; if (toqueW or toqueG) { this._x -= _root.vel_run + 5; } } } } if (!Key.isDown(39) && !Key.isDown(37)) { _root.walk = false; _root.run = false; } if (Key.isDown(83) && _root.walk) { _root.run = true; } else { if (!Key.isDown(32)) { _root.run = false; } } if (Key.isDown(68) && !_root.s_reload && !_root.c_reload && !_root.hit && !_root.shoot && !cargar) { if (!_root.crouch) { _root.shoot = true; this.gotoAndStop('shoot'); prob = random(10) + 1; if (prob < 9 && !_root.hman_shoot) { _root.hman_shoot = true; } trace('Prob hit: ' + prob); } else { if (_root.fincrouch && Key.isDown(40)) { _root.c_shoot = true; this.gotoAndStop('c_shoot'); if (!_root.hman_shoot) { _root.hman_shoot = true; } } } } if (this.shoot._currentframe == _root.frameshot && _root.shoot) { _root.shoot = false; _root.hman_shoot = false; if (_root.guardia1.death or _root.worker2.death or _root.worker.death or _root.guardia2.death) { _root.e_orden = 2; } } if (this.c_shoot._currentframe == _root.framecshot && _root.c_shoot) { _root.c_shoot = false; _root.hman_shoot = false; if (_root.guardia1.death or _root.worker2.death or _root.worker.death or _root.guardia2.death) { _root.e_orden = 2; } this.gotoAndStop('c_idle'); } if (Key.isDown(82) && !_root.shoot && !_root.c_shoot && !_root.hit) { if (!_root.crouch) { _root.s_reload = true; this.gotoAndStop('s_reload'); } else { if (_root.fincrouch) { _root.c_reload = true; this.gotoAndStop('c_reload'); } } } if (this.s_reload._currentframe == _root.framreload && _root.s_reload) { _root.s_reload = false; } if (this.c_reload._currentframe == _root.framcreload && _root.c_reload) { _root.c_reload = false; this.gotoAndStop('c_idle'); } if (Key.isDown(40) && !_root.crouch && !_root.s_reload && !_root.shoot && !_root.hit) { _root.crouch = true; _root.fincrouch = false; this.gotoAndStop('crouch'); } if (this.crouch._currentframe == _root.framecrouch) { _root.fincrouch = true; this.gotoAndStop('c_idle'); } if (!Key.isDown(40) && _root.crouch && !_root.c_shoot && !_root.c_reload && !_root.hit) { if (_root.fincrouch) { this.gotoAndStop('standup'); } } if (this.standup._currentframe == _root.framecrouch) { _root.crouch = false; _root.fincrouch = false; this.gotoAndStop('s_idle'); } } } } movieClip 736 { } frame 7 { stop(); } frame 7 { tapa = 0; dale = false; si = true; onEnterFrame = function () { if (tapa == 0) { _root.tapa1.play(); ++tapa; } if (Key.isDown(16) && si) { si = false; _root.gotoAndPlay('game'); } if (Key.isDown(32) && dale) { ++tapa; dale = false; if (tapa == 8) { _root.gotoAndPlay('game'); } _root['tapa' + tapa].play(); } }; } movieClip 742 { frame 1 { stop(); } frame 15 { stop(); _root.dale = true; } } movieClip 743 { frame 1 { stop(); } frame 15 { stop(); _root.dale = true; } } frame 8 { vel_walk = 7; vel_run = 11; y_abajo = 290; y_arriba = 145; maxpantalla = 640; minpantalla = 13; skl_hitman = 30; habilito = true; no_juego = true; framreload = 28; frameshot = 8; framecshot = 9; framecrouch = 12; framcreload = 25; framehit = 15; framechit = 19; frameinicio = 67; frameinout = 23; maxtiros = 5; tiroshit = 0; fincrouch = false; s_iandh = true; walk = false; hit = false; s_reload = false; unholster = false; standup = false; shoot = false; walk = false; run = false; holster = false; gun_idle = false; death = false; crouch = false; c_shoot = false; c_reload = false; c_idle = false; hman_shoot = false; hman_piso = 1; hman_sentido = 1; hman_frame = 2; hman_miss = false; e_shoot = false; e_sentido = 0; e_piso = 0; _root.pauza = false; _root.sunet = true; _root.pau._visible = false; _root.miss = 0; _root.e_orden = 1; _root.healthp = false; _root.deathws = false; i = 1; while (i <= 9) { _root['deathws' + i] = false; ++i; } i = 1; while (i <= 25) { _root['deathg' + i] = false; ++i; } } frame 9 { stop(); _root.nivel = 1; _root.pau._visible = false; } movieClip 751 { } instance nrg5 of movieClip 751 { onClipEvent (load) { stop(); } } instance nrg4 of movieClip 751 { onClipEvent (load) { stop(); } } instance nrg3 of movieClip 751 { onClipEvent (load) { stop(); } } instance nrg2 of movieClip 751 { onClipEvent (load) { stop(); } } instance nrg1 of movieClip 751 { onClipEvent (load) { stop(); } } movieClip 772 { frame 8 { stop(); } } movieClip 780 { frame 10 { if (_root.sunet == true) { _root.bodydropxxx.start(); } } frame 20 { stop(); } } movieClip 803 { frame 12 { if (_root.sunet == true) { _root.bodydropxxx.start(); } } frame 22 { stop(); } } movieClip 825 { frame 14 { if (_root.sunet == true) { _root.bodydropxxx.start(); } } frame 25 { stop(); } } movieClip 841 { frame 7 { if (_root.sunet == true) { _root.bodydropxxx.start(); } } frame 20 { stop(); } } movieClip 859 { frame 8 { if (_root.sunet == true) { _root.bodydropxxx.start(); } } frame 21 { stop(); } } movieClip 860 { } instance hitman of movieClip 860 { onClipEvent (load) { stop(); prob = 0; cargar = false; balasini = 5; balas = 5; chiorro = 0; falla = 0; cell = 1; _root.bala1.gotoAndStop(2); _root.bala2.gotoAndStop(2); _root.bala3.gotoAndStop(2); _root.bala4.gotoAndStop(2); this._y = _root.y_arriba; } onClipEvent (enterFrame) { if (_root.pauza == false) { if (this.s_iandh._currentframe == _root.frameinicio && _root.s_iandh) { _root.s_iandh = false; } if (!_root.s_iandh && !_root.death && !_root.walk && !_root.run && !_root.crouch && !_root.hit && !_root.s_reload && !_root.shoot && _root.habilito) { this.gotoAndStop('s_idle'); } if (!_root.s_iandh && !_root.death && _root.habilito) { if (this._x > _root.maxpantalla) { _root.nextFrame(); _root.e_shoot = false; this._x = _root.minpantalla + 2; } if (this._x < _root.minpantalla) { _root.prevFrame(); _root.e_shoot = false; this._x = _root.maxpantalla - 2; } if (this.hitTest(_root.topeizq) or this.hitTest(_root.topeizq2)) { toqueizq = true; } else { toqueizq = false; } if (this.hitTest(_root.topeder) or this.hitTest(_root.topeder2)) { toqueder = true; } else { toqueder = false; } if (this.hitTest(_root.worker.etopeizq) && !_root.worker.death or this.hitTest(_root.worker2.etopeizq) && !_root.worker2.death) { etoqueizqw = true; } else { etoqueizqw = false; } if (this.hitTest(_root.worker.etopeder) && !_root.worker.death or this.hitTest(_root.worker2.etopeder) && !_root.worker2.death) { etoquederw = true; } else { etoquederw = false; } if (this.hitTest(_root.guardia1.etopeizq) && !_root.guardia1.death or this.hitTest(_root.guardia2.etopeizq) && !_root.guardia2.death or this.hitTest(_root.guardia21.etopeizq) && !_root.guardia21.death) { etoqueizqg = true; } else { etoqueizqg = false; } if (this.hitTest(_root.guardia1.etopeder) && !_root.guardia1.death or this.hitTest(_root.guardia2.etopeder) && !_root.guardia2.death or this.hitTest(_root.guardia21.etopeder) && !_root.guardia21.death) { etoquederg = true; } else { etoquederg = false; } if (Key.isDown(37) && !toqueizq && !_root.shoot && !_root.s_reload && !_root.hit && !Key.isDown(39)) { this._xscale = -_root.skl_hitman; _root.hman_sentido = -1; if (!_root.fincrouch && !_root.crouch) { if (!_root.run) { this.gotoAndStop('walk'); _root.walk = true; if (!etoquederw && !etoquederg) { this._x -= _root.vel_walk; } } else { this.gotoAndStop('run'); _root.run = true; if (!etoquederw && !etoquederg) { this._x -= _root.vel_run; } else { this._x += 8; } } } } if (Key.isDown(39) && !toqueder && !_root.shoot && !_root.s_reload && !_root.hit && !Key.isDown(37)) { this._xscale = _root.skl_hitman; _root.hman_sentido = 1; if (!_root.fincrouch && !_root.crouch) { if (!_root.run) { this.gotoAndStop('walk'); _root.walk = true; if (!etoqueizqw && !etoqueizqg) { this._x += _root.vel_walk; } } else { this.gotoAndStop('run'); _root.run = true; if (!etoqueizqw && !etoqueizqg) { this._x += _root.vel_run; } else { this._x -= 8; } } } } if (!Key.isDown(39) && !Key.isDown(37)) { _root.walk = false; _root.run = false; } if (Key.isDown(83) && _root.walk) { _root.run = true; } else { if (!Key.isDown(83)) { _root.run = false; } } if (Key.isDown(68) && !_root.s_reload && !_root.c_reload && !_root.hit && !_root.shoot && !cargar) { if (!_root.crouch) { _root.shoot = true; this.gotoAndStop('shoot'); prob = random(10) + 1; if (prob < 9 && !_root.hman_shoot or falla == 2) { _root.hman_shoot = true; falla = 0; } else { _root.hman_miss = true; ++falla; } _root['bala' + balas].gotoAndStop(2); if (balas >= 12) { cargar = true; } ++balas; } else { if (_root.fincrouch && Key.isDown(40) && !_root.c_shoot) { _root.c_shoot = true; this.gotoAndStop('c_shoot'); if (!_root.hman_shoot) { _root.hman_shoot = true; } _root['bala' + balas].gotoAndStop(2); if (balas >= 12) { cargar = true; } ++balas; } } } if (this.shoot._currentframe == _root.frameshot && _root.shoot) { _root.shoot = false; _root.hman_shoot = false; _root.hman_miss = false; if (_root.guardia1.death or _root.worker2.death or _root.worker.death or _root.guardia2.death) { _root.e_orden = 2; } trace('parao' + _root.e_orden); } if (this.c_shoot._currentframe == _root.framecshot - 2 && _root.c_shoot) { _root.c_shoot = false; _root.hman_shoot = false; _root.hman_miss = false; if (_root.guardia1.death or _root.worker2.death or _root.worker.death or _root.guardia2.death) { _root.e_orden = 2; } trace('gachao' + _root.e_orden); this.gotoAndStop('c_idle'); } if (Key.isDown(82) && !_root.shoot && !_root.c_shoot && !_root.hit) { if (!_root.crouch) { _root.s_reload = true; this.gotoAndStop('s_reload'); } else { if (_root.fincrouch) { _root.c_reload = true; this.gotoAndStop('c_reload'); } } } if (this.s_reload._currentframe == _root.framreload && _root.s_reload) { balas = balasini; i = balasini; while (i <= 12) { _root['bala' + i].gotoAndStop(1); cargar = false; ++i; } _root.s_reload = false; } if (this.c_reload._currentframe == _root.framcreload && _root.c_reload) { _root.c_reload = false; this.gotoAndStop('c_idle'); balas = balasini; i = balasini; while (i <= 12) { _root['bala' + i].gotoAndStop(1); cargar = false; ++i; } } if (Key.isDown(40) && !_root.crouch && !_root.s_reload && !_root.shoot && !_root.hit) { _root.crouch = true; _root.fincrouch = false; this.gotoAndStop('crouch'); } if (this.crouch._currentframe == _root.framecrouch) { _root.fincrouch = true; this.gotoAndStop('c_idle'); } if (!Key.isDown(40) && _root.crouch && !_root.c_shoot && !_root.c_reload && !_root.hit) { if (_root.fincrouch) { this.gotoAndStop('standup'); } } if (this.standup._currentframe == _root.framecrouch) { _root.crouch = false; _root.fincrouch = false; this.gotoAndStop('s_idle'); } if (_root.e_shoot && _root.hman_piso == _root.e_piso && (_root.e_sentido == -1 && this._x < _root.e_equis or _root.e_sentido == 1 && this._x > _root.e_equis)) { if ((_root.shoot or _root.c_shoot) && (this.shoot._currentframe == 1 or this.c_shoot._currentframe == 1)) { } else { if (!_root.fincrouch) { _root.s_reload = false; _root.shoot = false; _root.hit = true; ++_root.tiroshit; _root['nrg' + _root.tiroshit].gotoAndStop(3); this.gotoAndStop('s_hit'); ++chiorro; profund = 100 + chiorro; _root.attachMovie('chorro', 'chorro' + chiorro, profund); _root['chorro' + chiorro]._x = this._x + 6; _root['chorro' + chiorro]._y = this._y - 5; _root.crouch = false; } else { _root.c_reload = false; _root.c_shoot = false; _root.hit = true; ++_root.tiroshit; _root['nrg' + _root.tiroshit].gotoAndStop(3); this.gotoAndStop('c_hit'); ++chiorro; profund = 100 + chiorro; _root.attachMovie('chorro2', 'chorro2' + chiorro, profund); _root['chorro2' + chiorro]._x = this._x + 6; _root['chorro2' + chiorro]._y = this._y + 20; } _root.e_shoot = false; } } if (this.s_hit._currentframe == _root.framehit && _root.hit) { _root.hit = false; } if (this.c_hit._currentframe == _root.framechit && _root.hit) { _root.hit = false; this.gotoAndStop('c_idle'); } if (_root.tiroshit >= _root.maxtiros) { caida = random(4) + 1; if (!_root.fincrouch or !_root.crouch) { switch (caida) { case 1: this.gotoAndStop('death_ade1'); break; case 2: this.gotoAndStop('death_ade1'); break; case 3: this.gotoAndStop('death_atr1'); break; case 4: this.gotoAndStop('death_atr2'); } } else { switch (caida) { case 1: this.gotoAndStop('c_death_ade'); break; case 2: this.gotoAndStop('c_death_ade'); break; case 3: this.gotoAndStop('c_death_atr'); break; case 4: this.gotoAndStop('c_death_atr'); } } _root.death = true; _root.fadeoutde.play(); } if (this.hitTest(_root.health) && _root.tiroshit != 0 && cell == 1) { ++cell; _root.health.play(); _root.healthp = true; _root['nrg' + _root.tiroshit].gotoAndStop(1); --_root.tiroshit; } } } } } movieClip 863 { frame 1 { stop(); } } movieClip 872 { } button 873 { on (release) { _root.gotoAndPlay('coperta'); } } movieClip 879 { } movieClip 880 { frame 1 { stop(); } frame 31 { stop(); stopAllSounds(); _root.pauza = true; _root.theMeniu._visible = false; } instance of movieClip 325 { onClipEvent (construct) { wynume = 'TheProfessionalsII'; wyculoare = 9310210; wyasezare = 'Vertical'; wyaliniere = 'Centru'; wypozitie = 'Jos'; wyinstructions = false; } } } button 881 { on (release) { getURL('http://www.freegamesforyourwebsite.com/click.php?gid=68&area=pause', '_blank'); } } button 882 { on (release) { _parent.mainMenuFunction(); } } button 883 { on (release, keyPress 'p') { _parent.pauseFunction(); } } button 884 { on (release, keyPress 'z') { _parent.soundFunction(); } } button 893 { on (release) { targetul3 = 'http://www.freegamesforyourwebsite.com/?' + _parent.wxnume; getURL(targetul3, '_blank'); } } button 894 { on (release) { targetul2 = 'http://www.freeonlinegames.com/?' + _parent.wxnume; getURL(targetul2, '_blank'); } } movieClip 895 { frame 1 { stop(); wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2); } frame 1 { _parent.wxbutno = 6; if (_parent.wxdownload == false && _parent.wxpause == true && _parent.wxsound == true) { this.gotoAndStop(2); _parent.wxbutno = 5; } if (_parent.wxdownload == true && _parent.wxpause == false && _parent.wxsound == true) { this.gotoAndStop(3); _parent.wxbutno = 5; } if (_parent.wxdownload == true && _parent.wxpause == true && _parent.wxsound == false) { this.gotoAndStop(4); _parent.wxbutno = 5; } if (_parent.wxdownload == false && _parent.wxpause == false && _parent.wxsound == true) { this.gotoAndStop(5); _parent.wxbutno = 4; } if (_parent.wxdownload == false && _parent.wxpause == true && _parent.wxsound == false) { this.gotoAndStop(6); _parent.wxbutno = 4; } if (_parent.wxdownload == true && _parent.wxpause == false && _parent.wxsound == false) { this.gotoAndStop(7); _parent.wxbutno = 4; } if (_parent.wxdownload == false && _parent.wxpause == false && _parent.wxsound == false) { this.gotoAndStop(8); _parent.wxbutno = 3; } } frame 2 { wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2); } frame 3 { wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2); } frame 4 { wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2); } frame 5 { wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2); } frame 6 { wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2); } frame 7 { wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2); } frame 8 { wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2); } } button 900 { on (press) { _parent.play(); } } movieClip 903 { frame 1 { stop(); if (_parent.wxaliniere == 'Dreapta-Jos') { this.gotoAndStop(2); } if (_parent.wxaliniere == 'Dreapta-Sus' && _parent.wxbutno == 6) { this.gotoAndStop(3); } if (_parent.wxaliniere == 'Dreapta-Sus' && _parent.wxbutno == 5) { this.gotoAndStop(5); } if (_parent.wxaliniere == 'Dreapta-Sus' && _parent.wxbutno == 4) { this.gotoAndStop(6); } if (_parent.wxaliniere == 'Dreapta-Sus' && _parent.wxbutno == 3) { this.gotoAndStop(7); } if (_parent.wxaliniere == 'Stanga-Sus' && _parent.wxbutno == 6) { this.gotoAndStop(4); } if (_parent.wxaliniere == 'Stanga-Sus' && _parent.wxbutno == 5) { this.gotoAndStop(8); } if (_parent.wxaliniere == 'Stanga-Sus' && _parent.wxbutno == 4) { this.gotoAndStop(9); } if (_parent.wxaliniere == 'Stanga-Sus' && _parent.wxbutno == 3) { this.gotoAndStop(10); } } frame 2 { tg._x = 147; tg._y = 1.1; } frame 3 { tg._x = 147; tg._y = -174.9; } frame 4 { tg._x = 1.5; tg._y = -174.9; } frame 5 { tg._x = 147; tg._y = -152.4; } frame 6 { tg._x = 147; tg._y = -128.9; } frame 7 { tg._x = 147; tg._y = -104.9; } frame 8 { tg._x = 1.5; tg._y = -151.4; } frame 9 { tg._x = 1.5; tg._y = -128.4; } frame 10 { tg._x = 1.5; tg._y = -104.9; } } movieClip 905 { } movieClip 917 { } movieClip 922 { frame 1 { stop(); this.onRollOver = function () { if (_parent._parent._currentframe <= 10) { _parent._parent.gotoAndPlay(11); } }; if (_parent._parent.wxbutno == 5) { this.gotoAndStop(2); } if (_parent._parent.wxbutno == 4) { this.gotoAndStop(3); } if (_parent._parent.wxbutno == 3) { this.gotoAndStop(4); } } } movieClip 923 { frame 1 { stop(); if (_parent.wxaliniere == 'Stanga-Sus' || _parent.wxaliniere == 'Dreapta-Sus') { this.gotoAndStop(2); } } } movieClip 924 { frame 1 { function pauseFunction() { if (_root.pauza == false) { _root.theMeniu.gotoAndStop('deskis'); _root.pauza = true; _root.pau._visible = 1; _root.guardia1._x -= 700; _root.guardia2._x -= 700; _root.guardia21._x -= 700; _root.worker._x -= 700; _root.worker1._x -= 700; _root.worker2._x -= 700; _root.worker21._x -= 700; _root.guardia1._x -= 700; _root.guardia2._x -= 700; _root.guardia21._x -= 700; _root.bguard1._x -= 700; _root.bguard2._x -= 700; _root.boss._x -= 700; } else { _root.theMeniu.gotoAndStop('inkis'); _root.pauza = false; _root.pau._visible = 0; _root.guardia1._x += 700; _root.guardia2._x += 700; _root.guardia21._x += 700; _root.worker._x += 700; _root.worker1._x += 700; _root.worker2._x += 700; _root.worker21._x += 700; _root.guardia1._x += 700; _root.guardia2._x += 700; _root.guardia21._x += 700; _root.bguard1._x += 700; _root.bguard2._x += 700; _root.boss._x += 700; } } function soundFunction() { if (_root.sunet == true) { _root.sunet = false; _root.startmusicx.stop(); } else { _root.sunet = true; _root.startmusicx.start(0, 999); } trace('sunet: ' + _root.sunet); } function mainMenuFunction() { _root.gotoAndStop('coperta'); } } frame 1 { stop(); wxnguides._alpha = 0; my_color = new Color(my_mc); my_color.setRGB(wxculoare); myValue = (my_color.getRGB()).toString(16); trace(myValue.length); if (myValue.length == 5) { myValue = '0' + myValue; } if (myValue.length == 4) { myValue = '00' + myValue; } if (myValue.length == 3) { myValue = '000' + myValue; } if (myValue.length == 2) { myValue = '0000' + myValue; } if (myValue.length == 1) { myValue = '00000' + myValue; } xtbcolor = myValue; xrtb5 = Number('0x' + xtbcolor.slice(0, 2)) - 1; xgtb5 = Number('0x' + xtbcolor.slice(2, 4)) - 1; xbtb5 = Number('0x' + xtbcolor.slice(4, 6)) - 1; wxculoarea2 = new Color(wxnmenu.tg); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': xrtb5, 'ga': '100', 'gb': xgtb5, 'ba': '100', 'bb': xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); wxculoarea3 = new Color(wxnfer); myColorTransform2 = new Object(); myColorTransform2 = {'ra': '100', 'rb': xrtb5, 'ga': '100', 'gb': xgtb5, 'ba': '100', 'bb': xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea3.setTransform(myColorTransform2); } frame 10 { stop(); } frame 20 { gotoAndStop(1); } } instance theMeniu of movieClip 924 { onClipEvent (construct) { wxnume = 'TheProfessionalsII'; wxaliniere = 'Stanga-Sus'; wxculoare = 4148819; wxdownload = true; wxpause = true; wxsound = true; } } frame 10 { stop(); _root.nivel = 2; _root.hman_frame = 3; onEnterFrame = function () { if (hitman.hitTest(gate3) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); } if (_root.hitman.indoor._currentframe == _root.frameinout) { hitman._x = 160; _root.hman_piso = 2; _root.e_shoot = false; if (_root.hman_sentido == -1) { _root.hman_sentido *= -1; _root.hitman._xscale *= -1; } _root.hitman.gotoAndStop('outdoor'); _root.gotoAndStop('cinco'); } if (_root.hitman.outdoor._currentframe == _root.frameinout) { _root.habilito = true; } }; } movieClip 928 { } movieClip 930 { } movieClip 952 { } movieClip 972 { frame 11 { if (_root.sunet == true) { _root.bodydropP.start(); } _root.score += 10; if (_root.sunet == true) { _root.enemy_die.start(); } } frame 23 { stop(); } } movieClip 993 { frame 12 { if (_root.sunet == true) { _root.bodydropP.start(); } _root.score += 10; if (_root.sunet == true) { _root.enemy_die.start(); } } frame 22 { stop(); } } movieClip 1015 { frame 1 { if (_root.sunet == true) { _root.enemy_die.start(); } } frame 12 { if (_root.sunet == true) { _root.bodydropP.start(); } if (_root.sunet == true) { _root.enemy_die.start(); } _root.score += 10; } frame 25 { stop(); } } movieClip 1037 { frame 12 { if (_root.sunet == true) { _root.bodydropP.start(); } if (_root.sunet == true) { _root.enemy_die.start(); } _root.score += 10; } frame 24 { stop(); } } movieClip 1055 { frame 1 { if (_root.sunet == true) { _root.enemy_die.start(); } } frame 9 { if (_root.sunet == true) { _root.bodydropP.start(); } if (_root.sunet == true) { _root.enemy_die.start(); } _root.score += 10; } frame 21 { stop(); } } movieClip 1070 { } movieClip 1082 { frame 1 { this.onEnterFrame = function () { if (!_root.pauza) { this.play(); } else { this.stop(); } }; } frame 6 { if (_root.sunet == true) { _root.madsooter.start(); } } } movieClip 1090 { frame 1 { this.onEnterFrame = function () { if (!_root.pauza) { this.play(); } else { this.stop(); } }; } frame 10 { if (_root.sunet == true) { _root.madsooter.start(); } } } movieClip 1115 { } movieClip 1130 { frame 1 { this.onEnterFrame = function () { if (!_root.pauza) { this.play(); } else { this.stop(); } }; } } movieClip 1141 { frame 1 { this.onEnterFrame = function () { if (!_root.pauza) { this.play(); } else { this.stop(); } }; } } movieClip 1164 { frame 1 { if (_root.sunet == true) { _root.enemy_die.start(); } } frame 11 { if (_root.sunet == true) { _root.bodydropP.start(); } if (_root.sunet == true) { _root.enemy_die.start(); } _root.score += 10; } frame 25 { stop(); } } movieClip 1165 { } instance worker of movieClip 1165 { onClipEvent (load) { if (!_root.deathws) { stop(); } else { loadMovie('', this); } frameshoot = 15; framehols = 24; framehand = 14; firstshot = true; yataw = false; yataun = false; fin_sh = false; fin_hu = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = 1; piso = 1; death = false; esteframe = 3; _root.hman_shoot = false; vuelta = false; yrand = 0; xrand = 0; } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (_root.hman_piso != piso) { if (_root.pauza == false) { this.gotoAndStop('idle'); } } if (!_root.deathws) { if (now - timewait > 1000 && !yataw && _root.hman_piso == piso) { if (_root.pauza == false) { this.gotoAndStop('handup'); } yataw = true; } if (this.handup._currentframe == framehand) { this.handup.gotoAndStop(this.handup._totalframes - 1); timehols = my_date.getTime(); fin_hu = true; } if (now - timehols > 1000 && !yataun) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { if (_root.pauza == false) { this.gotoAndStop('unholster'); } } else { if (_root.pauza == false) { this.gotoAndStop('unholster_b'); } } yataun = true; } if (this.unholster._currentframe == framehols or this.unholster_b._currentframe == framehand && !vuelta) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { if (_root.pauza == false) { this.gotoAndStop('shoot'); } } else { if (_root.pauza == false) { this.gotoAndStop('shoot_b'); } vuelta = true; sentido *= -1; } fin_sh = true; } if (this.shoot._currentframe == 7 or this.shoot_b._currentframe == 11 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 5) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe) { if (_root.pauza == false) { if (_root.hman_shoot && _root.hman_piso == piso) { _root.hman_shoot = false; if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathws = true; death = true; caida = random(2) + 1; if (!vuelta) { if (!fin_hu) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr'); } } else { if (!fin_sh) { if (caida == 1) { this.gotoAndStop('death_h_ade'); } else { this.gotoAndStop('death_h_atr'); } } else { if (fin_sh) { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } else { this.gotoAndStop('deathvuelta'); } } } } } if (_root.hman_miss) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } movieClip 1166 { } instance worker2 of movieClip 1166 { onClipEvent (load) { if (!_root.deathws1) { stop(); } else { loadMovie('', this); } frameshoot = 15; framehols = 24; framehand = 14; firstshot = true; yataw = false; yataun = false; fin_sh = false; fin_hu = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = 1; piso = 2; death = false; esteframe = 3; _root.hman_shoot = false; vuelta = false; yrand = 0; xrand = 0; } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathws1) { if (now - timewait > 1000 && !yataw && _root.hman_piso == piso) { this.gotoAndStop('handup'); yataw = true; } if (this.handup._currentframe == framehand) { this.handup.gotoAndStop(this.handup._totalframes - 1); timehols = my_date.getTime(); fin_hu = true; } if (now - timehols > 1000 && !yataun) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('unholster_b'); } yataun = true; } if (this.unholster._currentframe == framehols or this.unholster_b._currentframe == framehand && !vuelta) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('shoot'); } else { this.gotoAndStop('shoot_b'); vuelta = true; sentido *= -1; } fin_sh = true; } if (this.shoot._currentframe == 7 or this.shoot_b._currentframe == 11 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 5) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe) { if (_root.hman_shoot && _root.hman_piso == piso) { _root.hman_shoot = false; if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathws1 = true; death = true; caida = random(2) + 1; if (!vuelta) { if (!fin_hu) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr'); } } else { if (!fin_sh) { if (caida == 1) { this.gotoAndStop('death_h_ade'); } else { this.gotoAndStop('death_h_atr'); } } else { if (fin_sh) { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } else { this.gotoAndStop('deathvuelta'); } } } } if (_root.hman_miss && _root.hman_piso == piso) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } frame 11 { stop(); _root.nivel = 3; puerta = 0; _root.hman_frame = 4; onEnterFrame = function () { if (hitman.hitTest(gate1) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); puerta = 1; } if (_root.hitman.indoor._currentframe == _root.frameinout && puerta == 1) { hitman._x = 530; hitman._y = _root.y_abajo; _root.hman_piso = 2; _root.e_shoot = false; if (_root.hman_sentido == 1) { _root.hman_sentido *= -1; _root.hitman._xscale *= -1; } _root.hitman.gotoAndStop('outdoor'); } if (hitman.hitTest(gate2) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); puerta = 2; } if (_root.hitman.indoor._currentframe == _root.frameinout && puerta == 2) { hitman._x = 340; hitman._y = _root.y_arriba; _root.hman_piso = 1; _root.e_shoot = false; if (_root.hman_sentido == 1) { _root.hman_sentido *= -1; _root.hitman._xscale *= -1; } _root.hitman.gotoAndStop('outdoor'); } if (_root.hitman.outdoor._currentframe == _root.frameinout) { _root.habilito = true; } }; } movieClip 1169 { } instance worker of movieClip 1169 { onClipEvent (load) { function carga() { frameshoot = 15; framehols = 24; framehand = 14; esteframe = 4; sentido = -1; piso = 2; death = false; refresco = true; firstshot = true; yataw = false; yataun = false; fin_sh = false; fin_hu = false; var v2 = new Date(); timewait = v2.getTime(); _root.hman_shoot = false; vuelta = false; yrand = 0; xrand = 0; } if (!_root.deathws2) { stop(); } else { loadMovie('', this); } carga.call(); } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (_root.hman_piso != piso && refresco && !_root.deathws2) { this.gotoAndStop('idle'); carga.call(); timehols = undefined; refresco = false; } if (_root.hman_piso == piso && !refresco && !_root.deathws2) { refresco = true; } if (!_root.deathws2 && refresco) { if (now - timewait > 1000 && !yataw && _root.hman_piso == piso) { this.gotoAndStop('handup'); yataw = true; } if (this.handup._currentframe == framehand) { this.handup.gotoAndStop(this.handup._totalframes - 1); timehols = my_date.getTime(); fin_hu = true; } if (now - timehols > 1000 && !yataun) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('unholster_b'); } yataun = true; } if (this.unholster._currentframe == framehols or this.unholster_b._currentframe == framehand && !vuelta) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('shoot'); } else { this.gotoAndStop('shoot_b'); vuelta = true; sentido *= -1; } fin_sh = true; } if (this.shoot._currentframe == 7 or this.shoot_b._currentframe == 11 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 5) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe) { if (_root.hman_shoot && _root.hman_piso == piso) { _root.hman_shoot = false; if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathws2 = true; death = true; caida = random(2) + 1; if (!vuelta) { if (!fin_hu) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr'); } } else { if (!fin_sh) { if (caida == 1) { this.gotoAndStop('death_h_ade'); } else { this.gotoAndStop('death_h_atr'); } } else { if (fin_sh) { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } else { this.gotoAndStop('deathvuelta'); } } } } if (_root.hman_miss) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } frame 12 { stop(); _root.nivel = 4; _root.hman_frame = 5; onEnterFrame = function () { if (hitman.hitTest(gate4) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); } if (_root.hitman.indoor._currentframe == _root.frameinout) { hitman._x = 350; _root.hman_piso = 2; _root.e_shoot = false; _root.hitman.gotoAndStop('outdoor'); _root.gotoAndStop('tres'); } if (_root.hitman.outdoor._currentframe == _root.frameinout) { _root.habilito = true; } }; } movieClip 1201 { } movieClip 1210 { frame 1 { this.onEnterFrame = function () { if (!_root.pauza) { this.play(); } else { this.stop(); } }; } } movieClip 1242 { frame 19 { if (_root.sunet == true) { _root.bodydropP.start(); } if (_root.sunet == true) { _root.enemy_die.start(); } _root.score += 15; } frame 35 { stop(); } } movieClip 1269 { frame 15 { if (_root.sunet == true) { _root.bodydropP.start(); } if (_root.sunet == true) { _root.enemy_die.start(); } _root.score += 15; } frame 29 { stop(); } } movieClip 1301 { frame 17 { if (_root.sunet == true) { _root.bodydropP.start(); } if (_root.sunet == true) { _root.enemy_die.start(); } _root.score += 15; } frame 34 { stop(); } } movieClip 1331 { frame 16 { if (_root.sunet == true) { _root.bodydropP.start(); } if (_root.sunet == true) { _root.enemy_die.start(); } _root.score += 15; } frame 32 { stop(); } } movieClip 1354 { frame 11 { if (_root.sunet == true) { _root.bodydropP.start(); } if (_root.sunet == true) { _root.enemy_die.start(); } _root.score += 15; } frame 26 { stop(); } } movieClip 1368 { frame 1 { this.onEnterFrame = function () { if (!_root.pauza) { this.play(); } else { this.stop(); } }; } frame 2 { if (_root.sunet == true) { _root.madsooter.start(); } } } movieClip 1389 { } movieClip 1410 { } movieClip 1425 { frame 1 { this.onEnterFrame = function () { if (!_root.pauza) { this.play(); } else { this.stop(); } }; } } movieClip 1426 { } instance guardia1 of movieClip 1426 { onClipEvent (load) { if (!_root.deathg1) { stop(); } else { loadMovie('', this); } frameshoot = 13; framehols = 8; frameturn = 20; firstshot = true; yataw = false; yataun = false; fin_sh = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = -1; piso = 2; death = false; esteframe = 5; _root.hman_shoot = false; yrand = 0; xrand = 0; } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathg1) { if (now - timewait > 2000 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('turnder'); } yataw = true; } if (this.unholster._currentframe == framehols && yataw) { this.gotoAndStop('shoot'); yataun = true; } if (this.turnder._currentframe == frameturn && yataw) { this._xscale *= -1; sentido *= -1; this.gotoAndStop('unholster'); } if (this.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe) { if (_root.hman_shoot && _root.hman_piso == piso) { _root.hman_shoot = false; if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg1 = true; death = true; caida = random(2) + 1; if (!yataun) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr1'); } } else { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } frame 13 { stop(); _root.nivel = 5; puerta = 0; _root.hman_frame = 6; onEnterFrame = function () { if (hitman.hitTest(gate5) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); puerta = 1; } if (_root.hitman.indoor._currentframe == _root.frameinout && puerta == 1) { hitman._x = 226; hitman._y = _root.y_arriba; _root.hman_piso = 1; _root.e_shoot = false; if (_root.hman_sentido == -1) { _root.hman_sentido *= -1; _root.hitman._xscale *= -1; } _root.hitman.gotoAndStop('outdoor'); } if (hitman.hitTest(gate6) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); puerta = 2; } if (_root.hitman.indoor._currentframe == _root.frameinout && puerta == 2) { hitman._x = 525; hitman._y = _root.y_abajo; _root.hman_piso = 2; _root.e_shoot = false; _root.hitman.gotoAndStop('outdoor'); } if (_root.hitman.outdoor._currentframe == _root.frameinout) { _root.habilito = true; } }; } movieClip 1517 { } movieClip 1528 { frame 1 { this.onEnterFrame = function () { if (!_root.pauza) { this.play(); } else { this.stop(); } }; } } movieClip 1546 { frame 9 { if (_root.sunet == true) { _root.bodydropP.start(); } if (_root.sunet == true) { _root.enemy_die.start(); } _root.score += 15; } frame 21 { stop(); } } movieClip 1567 { frame 10 { if (_root.sunet == true) { _root.bodydropP.start(); } if (_root.sunet == true) { _root.enemy_die.start(); } _root.score += 15; } frame 23 { stop(); } } movieClip 1583 { frame 8 { if (_root.sunet == true) { _root.bodydropP.start(); } if (_root.sunet == true) { _root.enemy_die.start(); } _root.score += 15; } frame 20 { stop(); } } movieClip 1607 { frame 12 { if (_root.sunet == true) { _root.bodydropP.start(); } if (_root.sunet == true) { _root.enemy_die.start(); } _root.score += 15; } frame 26 { stop(); } } movieClip 1617 { frame 1 { this.onEnterFrame = function () { if (!_root.pauza) { this.play(); } else { this.stop(); } }; } frame 2 { if (_root.sunet == true) { _root.madsooter.start(); } } } movieClip 1638 { } movieClip 1659 { } movieClip 1672 { frame 1 { this.onEnterFrame = function () { if (!_root.pauza) { this.play(); } else { this.stop(); } }; } } movieClip 1673 { frame 1 { stop(); } } movieClip 1674 { frame 1 { this.sentido = -1; } frame 45 { this.sentido = 1; } } instance guardia2 of movieClip 1674 { onClipEvent (load) { function carga() { frameshoot = 9; framehols = 10; frameturn = 20; firstshot = true; yataw = false; yataun = false; fataturn; fin_sh = false; sentido = -1; piso = 1; death = false; esteframe = 6; _root.hman_shoot = false; yrand = 0; xrand = 0; refresco = true; } if (_root.deathg2) { loadMovie('', this); } carga.call(); } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (_root.hman_piso != piso && refresco && !_root.deathg2) { this.guardia2.gotoAndStop('idle'); this.guardia2.idle.gotoAndPlay(this._currentframe); this.play(); carga.call(); refresco = false; } if (_root.hman_piso == piso && !refresco && !_root.deathg2) { var my_date = new Date(); timewait = my_date.getTime(); refresco = true; } if (!_root.deathg2 && refresco) { if (now - timewait > 500 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.stop(); this.guardia2.gotoAndStop('unholster'); } else { this.stop(); this.guardia2.gotoAndStop('turn'); } yataw = true; } if (this.guardia2.unholster._currentframe == framehols && yataw) { this.guardia2.gotoAndStop('shoot'); yataun = true; } if (this.guardia2.turn._currentframe == frameturn && yataw) { sentido *= -1; this.guardia2.gotoAndStop('unholster'); yataturn = true; } if (this.guardia2.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe) { if (_root.hman_shoot && _root.hman_piso == piso) { if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg2 = true; death = true; caida = random(2) + 1; this.stop(); if (!yataun) { if (caida == 1) { this.guardia2.gotoAndStop('death_i_ade'); } else { this.guardia2.gotoAndStop('death_i_atr'); } } else { if (caida == 1) { this.guardia2.gotoAndStop('death_g_ade'); } else { this.guardia2.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } frame 14 { stop(); _root.nivel = 6; _root.hman_frame = 7; } movieClip 1679 { frame 1 { stop(); } frame 16 { stop(); _root.healthp = true; loadMovie('', _root.health); } } instance health of movieClip 1679 { onClipEvent (load) { if (_root.healthp) { loadMovie('', this); } } } movieClip 1680 { } instance guardia1 of movieClip 1680 { onClipEvent (load) { if (!_root.deathg3) { stop(); } else { loadMovie('', this); } stop(); frameshoot = 13; framehols = 8; frameturn = 20; firstshot = true; yataw = false; yataun = false; fin_sh = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = -1; piso = 2; death = false; esteframe = 7; _root.hman_shoot = false; yrand = 0; xrand = 0; } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathg3) { if (now - timewait > 1000 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('turnder'); } yataw = true; } if (this.unholster._currentframe == framehols && yataw) { this.gotoAndStop('shoot'); yataun = true; } if (this.turnder._currentframe == frameturn && yataw) { this._xscale *= -1; sentido *= -1; this.gotoAndStop('unholster'); } if (this.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe) { if (_root.hman_shoot && _root.hman_piso == piso) { _root.hman_shoot = false; if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg3 = true; death = true; caida = random(2) + 1; if (!yataun) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr1'); } } else { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } frame 15 { stop(); _root.nivel = 7; _root.hman_frame = 8; } movieClip 1809 { } movieClip 1810 { frame 1 { stop(); } } movieClip 1811 { frame 1 { this.sentido = 1; } frame 63 { this.sentido = -1; } } instance guardia1 of movieClip 1811 { onClipEvent (load) { if (_root.deathg4) { loadMovie('', this); } frameshoot = 13; framehols = 8; frameturn = 20; firstshot = true; yataw = false; yataun = false; fataturn; fin_sh = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = 1; piso = 1; death = false; esteframe = 8; _root.hman_shoot = false; yrand = 0; xrand = 0; _root.e_orden = 1; if (_root.hitman._x > this._x) { orden = 2; } else { orden = 1; } trace('primequio ' + orden); } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathg4) { if (now - timewait > 1000 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.stop(); this.guardia1.gotoAndStop('unholster'); } else { this.stop(); this.guardia1._xscale *= -1; this.guardia1.gotoAndStop('turn'); } yataw = true; } if (this.guardia1.unholster._currentframe == framehols && yataw) { this.guardia1.gotoAndStop('shoot'); yataun = true; } if (this.guardia1.turn._currentframe == frameturn && yataw) { sentido *= -1; this.guardia1.gotoAndStop('unholster'); yataturn = true; } if (this.guardia1.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe && _root.e_orden == orden) { if (_root.hman_shoot && _root.hman_piso == piso) { if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg4 = true; death = true; caida = random(2) + 1; this.stop(); if (!_root.fincrouch) { prob = random(2) + 1; if (prob == 1) { _root.e_orden = 2; } trace('prob matar 2: ' + prob); } if (!yataun) { if (caida == 1) { this.guardia1.gotoAndStop('death_i_ade'); } else { this.guardia1.gotoAndStop('death_i_atr1'); } } else { if (caida == 1) { this.guardia1.gotoAndStop('death_g_ade'); } else { this.guardia1.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } instance guardia2 of movieClip 1674 { onClipEvent (load) { if (_root.deathg5) { loadMovie('', this); } frameshoot = 9; framehols = 10; frameturn = 20; firstshot = true; yataw = false; yataun = false; fataturn; fin_sh = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = -1; piso = 1; death = false; esteframe = 8; _root.hman_shoot = false; yrand = 0; xrand = 0; _root.e_orden = 1; if (_root.hitman._x > this._x) { orden = 1; } else { orden = 2; } trace('primequio ' + orden); } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathg5) { if (now - timewait > 1000 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.stop(); this.guardia2.gotoAndStop('unholster'); } else { this.stop(); this.guardia2.gotoAndStop('turn'); } yataw = true; } if (this.guardia2.unholster._currentframe == framehols && yataw) { this.guardia2.gotoAndStop('shoot'); yataun = true; } if (this.guardia2.turn._currentframe == frameturn && yataw) { sentido *= -1; this.guardia2.gotoAndStop('unholster'); yataturn = true; } if (this.guardia2.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe && _root.e_orden == orden) { if (_root.hman_shoot && _root.hman_piso == piso) { if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg5 = true; death = true; caida = random(2) + 1; this.stop(); if (!_root.fincrouch) { prob = random(2) + 1; if (prob == 1) { _root.e_orden = 2; } trace('prob matar 2: ' + prob); } if (!yataun) { if (caida == 1) { this.guardia2.gotoAndStop('death_i_ade'); } else { this.guardia2.gotoAndStop('death_i_atr'); } } else { if (caida == 1) { this.guardia2.gotoAndStop('death_g_ade'); } else { this.guardia2.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss && _root.e_orden == orden) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } frame 16 { stop(); _root.nivel = 8; _root.hman_frame = 9; } movieClip 1814 { frame 1 { this.sentido = -1; } frame 63 { this.sentido = 1; } } instance guardia1 of movieClip 1814 { onClipEvent (load) { if (_root.deathg6) { loadMovie('', this); } frameshoot = 13; framehols = 8; frameturn = 20; firstshot = true; yataw = false; yataun = false; fataturn; fin_sh = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = -1; piso = 1; death = false; esteframe = 9; _root.hman_shoot = false; yrand = 0; xrand = 0; _root.e_orden = 1; if (_root.hitman._x > this._x) { orden = 2; } else { orden = 1; } trace('primequio ' + orden); } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathg6) { if (now - timewait > 1000 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.stop(); this.guardia1.gotoAndStop('unholster'); } else { this.stop(); this.guardia1.gotoAndStop('turn'); } yataw = true; } if (this.guardia1.unholster._currentframe == framehols && yataw) { this.guardia1.gotoAndStop('shoot'); yataun = true; } if (this.guardia1.turn._currentframe == frameturn && yataw) { sentido *= -1; this.guardia1.gotoAndStop('unholster'); yataturn = true; } if (this.guardia1.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe && _root.e_orden == orden) { if (_root.hman_shoot && _root.hman_piso == piso) { if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg6 = true; death = true; caida = random(2) + 1; this.stop(); if (!_root.fincrouch) { prob = random(2) + 1; if (prob == 1) { _root.e_orden = 2; } trace('prob matar 2: ' + prob); } if (!yataun) { if (caida == 1) { this.guardia1.gotoAndStop('death_i_ade'); } else { this.guardia1.gotoAndStop('death_i_atr1'); } } else { if (caida == 1) { this.guardia1.gotoAndStop('death_g_ade'); } else { this.guardia1.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } frame 17 { stop(); _root.nivel = 9; _root.hman_frame = 10; onEnterFrame = function () { if (hitman.hitTest(gate7) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); } if (_root.hitman.indoor._currentframe == _root.frameinout) { hitman._x = 140; hitman._y = _root.y_abajo; _root.hman_piso = 2; _root.e_shoot = false; if (_root.hman_sentido == -1) { _root.hman_sentido *= -1; _root.hitman._xscale *= -1; } _root.hitman.gotoAndStop('outdoor'); nextFrame(); } if (_root.hitman.outdoor._currentframe == _root.frameinout) { _root.habilito = true; } }; } frame 18 { stop(); _root.nivel = 10; _root.hman_frame = 11; onEnterFrame = function () { if (hitman.hitTest(gate8) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); } if (_root.hitman.indoor._currentframe == _root.frameinout) { hitman._x = 330; hitman._y = _root.y_arriba; _root.hman_piso = 1; _root.e_shoot = false; _root.hitman.gotoAndStop('outdoor'); prevFrame(); } if (_root.hitman.outdoor._currentframe == _root.frameinout) { _root.habilito = true; } }; } movieClip 1819 { } instance worker2 of movieClip 1819 { onClipEvent (load) { if (!_root.deathws4) { stop(); } else { loadMovie('', this); } frameshoot = 15; framehols = 24; framehand = 14; firstshot = true; yataw = false; yataun = false; fin_sh = false; fin_hu = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = -1; piso = 2; death = false; esteframe = 11; _root.hman_shoot = false; vuelta = false; yrand = 0; xrand = 0; _root.e_orden = 1; if (_root.hitman._x > this._x) { orden = 1; } else { orden = 2; } } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathws4) { if (now - timewait > 1000 && !yataw && _root.hman_piso == piso) { this.gotoAndStop('handup'); yataw = true; } if (this.handup._currentframe == framehand) { this.handup.gotoAndStop(this.handup._totalframes - 1); timehols = my_date.getTime(); fin_hu = true; } if (now - timehols > 1000 && !yataun) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('unholster_b'); } yataun = true; } if (this.unholster._currentframe == framehols or this.unholster_b._currentframe == framehand && !vuelta) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('shoot'); } else { this.gotoAndStop('shoot_b'); vuelta = true; sentido *= -1; } fin_sh = true; } if (this.shoot._currentframe == 7 or this.shoot_b._currentframe == 11 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 5) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { ++_root.miss; _root.attachMovie('miss', 'miss' + _root.miss, 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { ++_root.miss; _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe && _root.e_orden == orden) { if (_root.hman_shoot && _root.hman_piso == piso) { if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathws4 = true; death = true; caida = random(2) + 1; if (!_root.fincrouch) { prob = random(2) + 1; if (prob == 1) { _root.e_orden = 2; } } if (!vuelta) { if (!fin_hu) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr'); } } else { if (!fin_sh) { if (caida == 1) { this.gotoAndStop('death_h_ade'); } else { this.gotoAndStop('death_h_atr'); } } else { if (fin_sh) { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } else { this.gotoAndStop('deathvuelta'); } } } } if (_root.hman_miss && _root.e_orden == orden) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } movieClip 1820 { } instance guardia1 of movieClip 1820 { onClipEvent (load) { if (!_root.deathg7) { stop(); } else { loadMovie('', this); } frameshoot = 13; framehols = 8; frameturn = 20; firstshot = true; yataw = false; yataun = false; fin_sh = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = 1; piso = 2; death = false; esteframe = 11; _root.hman_shoot = false; yrand = 0; xrand = 0; } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathg7) { if (now - timewait > 1500 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('turnder'); } yataw = true; } if (this.unholster._currentframe == framehols && yataw) { this.gotoAndStop('shoot'); yataun = true; } if (this.turnder._currentframe == frameturn && yataw) { this._xscale *= -1; sentido *= -1; this.gotoAndStop('unholster'); } if (this.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe) { if (_root.hman_shoot && _root.hman_piso == piso) { _root.hman_shoot = false; if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg7 = true; death = true; caida = random(2) + 1; if (!yataun) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr1'); } } else { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } frame 19 { stop(); _root.nivel = 11; puerta = 0; _root.hman_frame = 12; onEnterFrame = function () { if (hitman.hitTest(gate9) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); puerta = 1; } if (_root.hitman.indoor._currentframe == _root.frameinout && puerta == 1) { hitman._x = 100; hitman._y = _root.y_arriba; _root.hman_piso = 1; _root.e_shoot = false; if (_root.hman_sentido == -1) { _root.hman_sentido *= -1; _root.hitman._xscale *= -1; } _root.hitman.gotoAndStop('outdoor'); } if (hitman.hitTest(gate10) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); puerta = 2; } if (_root.hitman.indoor._currentframe == _root.frameinout && puerta == 2) { hitman._x = 465; hitman._y = _root.y_abajo; _root.hman_piso = 2; _root.e_shoot = false; _root.hitman.gotoAndStop('outdoor'); } if (_root.hitman.outdoor._currentframe == _root.frameinout) { _root.habilito = true; } }; } movieClip 1823 { frame 1 { this.sentido = -1; } frame 63 { this.sentido = 1; } } instance guardia2 of movieClip 1823 { onClipEvent (load) { function carga() { frameshoot = 13; framehols = 8; frameturn = 20; firstshot = true; yataw = false; yataun = false; fin_sh = false; sentido = -1; piso = 1; death = false; esteframe = 12; _root.hman_shoot = false; yrand = 0; xrand = 0; refresco = true; _root.e_orden = 1; if (_root.hitman._x > this._x) { orden = 1; } else { orden = 2; } } if (_root.deathg10) { loadMovie('', this); } carga.call(); } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (_root.hman_piso != piso && refresco && !_root.deathg10) { this.guardia1.gotoAndStop('idle'); this.guardia1.idle.gotoAndPlay(this._currentframe); this.play(); carga.call(); refresco = false; } if (_root.hman_piso == piso && !refresco && !_root.deathg10) { var my_date = new Date(); timewait = my_date.getTime(); refresco = true; } if (!_root.deathg10 && refresco) { if (now - timewait > 2300 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.stop(); this.guardia1.gotoAndStop('unholster'); } else { this.stop(); this.guardia1.gotoAndStop('turn'); } yataw = true; } if (this.guardia1.unholster._currentframe == framehols && yataw) { this.guardia1.gotoAndStop('shoot'); yataun = true; } if (this.guardia1.turn._currentframe == frameturn && yataw) { sentido *= -1; this.guardia1.gotoAndStop('unholster'); yataturn = true; } if (this.guardia1.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe && _root.e_orden == orden) { if (_root.hman_shoot && _root.hman_piso == piso) { if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg10 = true; death = true; caida = random(2) + 1; this.stop(); if (!_root.fincrouch) { prob = random(2) + 1; if (prob == 1) { _root.e_orden = 2; } trace('prob matar 2: ' + prob); } if (!yataun) { if (caida == 1) { this.guardia1.gotoAndStop('death_i_ade'); } else { this.guardia1.gotoAndStop('death_i_atr1'); } } else { if (caida == 1) { this.guardia1.gotoAndStop('death_g_ade'); } else { this.guardia1.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss && _root.e_orden == orden && _root.hman_piso == piso) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } instance guardia21 of movieClip 1674 { onClipEvent (load) { if (_root.deathg8) { loadMovie('', this); } frameshoot = 9; framehols = 10; frameturn = 20; firstshot = true; yataw = false; yataun = false; fataturn; fin_sh = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = -1; piso = 2; death = false; esteframe = 12; _root.hman_shoot = false; yrand = 0; xrand = 0; } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathg8) { if (now - timewait > 1000 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.stop(); this.guardia2.gotoAndStop('unholster'); } else { this.stop(); this.guardia2.gotoAndStop('turnder'); } yataw = true; } if (this.guardia2.unholster._currentframe == framehols && yataw) { this.guardia2.gotoAndStop('shoot'); yataun = true; } if (this.guardia2.turnder._currentframe == frameturn && yataw) { this.guardia2._xscale *= -1; sentido *= -1; this.guardia2.gotoAndStop('unholster'); yataturn = true; } if (this.guardia2.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe) { if (_root.hman_shoot && _root.hman_piso == piso) { if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg8 = true; death = true; caida = random(2) + 1; this.stop(); if (!yataun) { if (caida == 1) { this.guardia2.gotoAndStop('death_i_ade'); } else { this.guardia2.gotoAndStop('death_i_atr'); } } else { if (caida == 1) { this.guardia2.gotoAndStop('death_g_ade'); } else { this.guardia2.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } movieClip 1950 { } movieClip 1951 { frame 1 { stop(); } } movieClip 1952 { frame 1 { this.sentido = 1; } frame 64 { this.sentido = -1; } } instance guardia1 of movieClip 1952 { onClipEvent (load) { function carga() { frameshoot = 13; framehols = 8; frameturn = 20; firstshot = true; yataw = false; yataun = false; fin_sh = false; sentido = 1; piso = 1; death = false; esteframe = 12; _root.hman_shoot = false; yrand = 0; xrand = 0; refresco = true; _root.e_orden = 1; if (_root.hitman._x > this._x) { orden = 2; } else { orden = 1; } } if (_root.deathg9) { loadMovie('', this); } carga.call(); } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (_root.hman_piso != piso && refresco && !_root.deathg9) { this.guardia1.gotoAndStop('idle'); this.guardia1.idle.gotoAndPlay(this._currentframe); this.play(); carga.call(); refresco = false; } if (_root.hman_piso == piso && !refresco && !_root.deathg9) { var my_date = new Date(); timewait = my_date.getTime(); refresco = true; } if (!_root.deathg9 && refresco) { if (now - timewait > 2100 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.stop(); this.guardia1.gotoAndStop('unholster'); } else { this.stop(); this.guardia1.gotoAndStop('turn'); } yataw = true; } if (this.guardia1.unholster._currentframe == framehols && yataw) { this.guardia1.gotoAndStop('shoot'); yataun = true; } if (this.guardia1.turn._currentframe == frameturn && yataw) { sentido *= -1; this.guardia1.gotoAndStop('unholster'); yataturn = true; } if (this.guardia1.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe && _root.e_orden == orden) { if (_root.hman_shoot && _root.hman_piso == piso) { if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg9 = true; death = true; caida = random(2) + 1; this.stop(); if (!_root.fincrouch) { prob = random(2) + 1; if (prob == 1) { _root.e_orden = 2; } trace('prob matar 2: ' + prob); } if (!yataun) { if (caida == 1) { this.guardia1.gotoAndStop('death_i_ade'); } else { this.guardia1.gotoAndStop('death_i_atr1'); } } else { if (caida == 1) { this.guardia1.gotoAndStop('death_g_ade'); } else { this.guardia1.gotoAndStop('death_g_atr'); } } } } } } } } } frame 20 { stop(); _root.nivel = 12; _root.hman_frame = 13; onEnterFrame = function () { if (hitman.hitTest(gate11) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); } if (_root.hitman.indoor._currentframe == _root.frameinout) { hitman._x = 111; hitman._y = _root.y_arriba; _root.hman_piso = 1; _root.e_shoot = false; if (_root.hman_sentido == -1) { _root.hman_sentido *= -1; _root.hitman._xscale *= -1; } _root.hitman.gotoAndStop('outdoor'); _root.gotoAndStop('quince'); } if (_root.hitman.outdoor._currentframe == _root.frameinout) { _root.habilito = true; } }; } instance guardia21 of movieClip 1674 { onClipEvent (load) { if (_root.deathg11) { loadMovie('', this); } frameshoot = 9; framehols = 10; frameturn = 20; firstshot = true; yataw = false; yataun = false; fataturn; fin_sh = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = -1; piso = 1; death = false; esteframe = 13; _root.hman_shoot = false; yrand = 0; xrand = 0; } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathg11) { if (now - timewait > 200 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.stop(); this.guardia2.gotoAndStop('unholster'); } else { this.stop(); this.guardia2.gotoAndStop('turnder'); } yataw = true; } if (this.guardia2.unholster._currentframe == framehols && yataw) { this.guardia2.gotoAndStop('shoot'); yataun = true; } if (this.guardia2.turnder._currentframe == frameturn && yataw) { this.guardia2._xscale *= -1; sentido *= -1; this.guardia2.gotoAndStop('unholster'); yataturn = true; } if (this.guardia2.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe) { if (_root.hman_shoot && _root.hman_piso == piso) { if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg11 = true; death = true; caida = random(2) + 1; this.stop(); if (!yataun) { if (caida == 1) { this.guardia2.gotoAndStop('death_i_ade'); } else { this.guardia2.gotoAndStop('death_i_atr'); } } else { if (caida == 1) { this.guardia2.gotoAndStop('death_g_ade'); } else { this.guardia2.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } frame 21 { stop(); _root.nivel = 13; puerta = 0; _root.hman_frame = 14; onEnterFrame = function () { if (hitman.hitTest(gate12) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); puerta = 1; } if (_root.hitman.indoor._currentframe == _root.frameinout && puerta == 1) { hitman._x = 500; hitman._y = _root.y_abajo; _root.e_shoot = false; _root.hman_piso = 2; if (_root.hman_sentido == 1) { _root.hman_sentido *= -1; _root.hitman._xscale *= -1; } _root.hitman.gotoAndStop('outdoor'); } if (hitman.hitTest(gate13) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); puerta = 2; } if (_root.hitman.indoor._currentframe == _root.frameinout && puerta == 2) { hitman._x = 500; hitman._y = _root.y_arriba; _root.hman_piso = 1; _root.e_shoot = false; if (_root.hman_sentido == 1) { _root.hman_sentido *= -1; _root.hitman._xscale *= -1; } _root.hitman.gotoAndStop('outdoor'); } if (_root.hitman.outdoor._currentframe == _root.frameinout) { _root.habilito = true; } }; } movieClip 1957 { } instance guardia1 of movieClip 1957 { onClipEvent (load) { function carga() { frameshoot = 13; framehols = 8; frameturn = 20; firstshot = true; yataw = false; yataun = false; fin_sh = false; sentido = 1; piso = 2; death = false; esteframe = 14; _root.hman_shoot = false; yrand = 0; xrand = 0; refresco = true; } if (!_root.deathg13) { stop(); } else { loadMovie('', this); } carga.call(); } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (_root.hman_piso != piso && refresco && !_root.deathg13) { this.gotoAndStop('idle'); carga.call(); refresco = false; } if (_root.hman_piso == piso && !refresco && !_root.deathg13) { var my_date = new Date(); timewait = my_date.getTime(); refresco = true; } if (!_root.deathg13 && refresco) { if (now - timewait > 1500 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('turnder'); } yataw = true; } if (this.unholster._currentframe == framehols && yataw) { this.gotoAndStop('shoot'); yataun = true; } if (this.turnder._currentframe == frameturn && yataw) { this._xscale *= -1; sentido *= -1; this.gotoAndStop('unholster'); } if (this.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe) { if (_root.hman_shoot && _root.hman_piso == piso) { _root.hman_shoot = false; if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg13 = true; death = true; caida = random(2) + 1; if (!yataun) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr1'); } } else { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } instance worker of movieClip 1165 { onClipEvent (load) { if (!_root.deathws6) { stop(); } else { loadMovie('', this); } frameshoot = 15; framehols = 24; framehand = 14; firstshot = true; yataw = false; yataun = false; fin_sh = false; fin_hu = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = 1; piso = 1; death = false; esteframe = 14; _root.hman_shoot = false; vuelta = false; yrand = 0; xrand = 0; } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathws6) { if (now - timewait > 10 && !yataw && _root.hman_piso == piso) { this.gotoAndStop('handup'); yataw = true; } if (this.handup._currentframe == framehand) { this.handup.gotoAndStop(this.handup._totalframes - 1); timehols = my_date.getTime(); fin_hu = true; } if (now - timehols > 1000 && !yataun) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('unholster_b'); } yataun = true; } if (this.unholster._currentframe == framehols or this.unholster_b._currentframe == framehand && !vuelta) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('shoot'); } else { this.gotoAndStop('shoot_b'); vuelta = true; sentido *= -1; } fin_sh = true; } if (this.shoot._currentframe == 7 or this.shoot_b._currentframe == 11 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 5) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe) { if (_root.hman_shoot && _root.hman_piso == piso) { _root.hman_shoot = false; if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathws6 = true; death = true; caida = random(2) + 1; if (!vuelta) { if (!fin_hu) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr'); } } else { if (!fin_sh) { if (caida == 1) { this.gotoAndStop('death_h_ade'); } else { this.gotoAndStop('death_h_atr'); } } else { if (fin_sh) { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } else { this.gotoAndStop('deathvuelta'); } } } } if (_root.hman_miss) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } frame 22 { stop(); _root.nivel = 14; _root.hman_frame = 15; onEnterFrame = function () { if (hitman.hitTest(gate14) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); } if (_root.hitman.indoor._currentframe == _root.frameinout) { hitman._x = 505; hitman._y = _root.y_abajo; _root.hman_piso = 2; _root.e_shoot = false; if (_root.hman_sentido == -1) { _root.hman_sentido *= -1; _root.hitman._xscale *= -1; } _root.hitman.gotoAndStop('outdoor'); _root.gotoAndStop('trece'); } if (_root.hitman.outdoor._currentframe == _root.frameinout) { _root.habilito = true; } }; } instance worker2 of movieClip 1819 { onClipEvent (load) { if (!_root.deathws5) { stop(); } else { loadMovie('', this); } frameshoot = 15; framehols = 24; framehand = 14; firstshot = true; yataw = false; yataun = false; fin_sh = false; fin_hu = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = -1; piso = 1; death = false; esteframe = 15; _root.hman_shoot = false; vuelta = false; yrand = 0; xrand = 0; _root.e_orden = 1; if (_root.hitman._x > this._x) { orden = 1; } else { orden = 2; } } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathws5) { if (now - timewait > 500 && !yataw && _root.hman_piso == piso) { this.gotoAndStop('handup'); yataw = true; } if (this.handup._currentframe == framehand) { this.handup.gotoAndStop(this.handup._totalframes - 1); timehols = my_date.getTime(); fin_hu = true; } if (now - timehols > 1000 && !yataun) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('unholster_b'); } yataun = true; } if (this.unholster._currentframe == framehols or this.unholster_b._currentframe == framehand && !vuelta) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('shoot'); } else { this.gotoAndStop('shoot_b'); vuelta = true; sentido *= -1; } fin_sh = true; } if (this.shoot._currentframe == 7 or this.shoot_b._currentframe == 11 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 5) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { ++_root.miss; _root.attachMovie('miss', 'miss' + _root.miss, 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { ++_root.miss; _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe && _root.e_orden == orden) { if (_root.hman_shoot && _root.hman_piso == piso) { if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathws5 = true; death = true; caida = random(2) + 1; if (!_root.fincrouch) { prob = random(2) + 1; if (prob == 1) { _root.e_orden = 2; } } if (!vuelta) { if (!fin_hu) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr'); } } else { if (!fin_sh) { if (caida == 1) { this.gotoAndStop('death_h_ade'); } else { this.gotoAndStop('death_h_atr'); } } else { if (fin_sh) { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } else { this.gotoAndStop('deathvuelta'); } } } } if (_root.hman_miss && _root.e_orden == orden) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } instance guardia1 of movieClip 1820 { onClipEvent (load) { if (!_root.deathg12) { stop(); } else { loadMovie('', this); } frameshoot = 13; framehols = 8; frameturn = 20; firstshot = true; yataw = false; yataun = false; fin_sh = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = 1; piso = 1; death = false; esteframe = 15; _root.hman_shoot = false; yrand = 0; xrand = 0; } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathg12) { if (now - timewait > 500 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('turnder'); } yataw = true; } if (this.unholster._currentframe == framehols && yataw) { this.gotoAndStop('shoot'); yataun = true; } if (this.turnder._currentframe == frameturn && yataw) { this._xscale *= -1; sentido *= -1; this.gotoAndStop('unholster'); } if (this.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe) { if (_root.hman_shoot && _root.hman_piso == piso) { _root.hman_shoot = false; if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg12 = true; death = true; caida = random(2) + 1; if (!yataun) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr1'); } } else { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } frame 23 { stop(); _root.nivel = 15; puerta = 0; _root.hman_frame = 16; onEnterFrame = function () { if (hitman.hitTest(gate15) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); puerta = 1; } if (_root.hitman.indoor._currentframe == _root.frameinout && puerta == 1) { hitman._x = 248; hitman._y = _root.y_abajo; _root.hman_piso = 2; _root.e_shoot = false; if (_root.hman_sentido == -1) { _root.hman_sentido *= -1; _root.hitman._xscale *= -1; } _root.hitman.gotoAndStop('outdoor'); } if (hitman.hitTest(gate16) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); puerta = 2; } if (_root.hitman.indoor._currentframe == _root.frameinout && puerta == 2) { hitman._x = 521; hitman._y = _root.y_arriba; _root.hman_piso = 1; _root.e_shoot = false; if (_root.hman_sentido == 1) { _root.hman_sentido *= -1; _root.hitman._xscale *= -1; } _root.hitman.gotoAndStop('outdoor'); } if (_root.hitman.outdoor._currentframe == _root.frameinout) { _root.habilito = true; } }; } instance worker2 of movieClip 1819 { onClipEvent (load) { if (!_root.deathws8) { stop(); } else { loadMovie('', this); } frameshoot = 15; framehols = 24; framehand = 14; firstshot = true; yataw = false; yataun = false; fin_sh = false; fin_hu = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = -1; piso = 1; death = false; esteframe = 16; _root.hman_shoot = false; vuelta = false; yrand = 0; xrand = 0; _root.e_orden = 1; if (_root.hitman._x > this._x) { orden = 1; } else { orden = 2; } } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathws8) { if (now - timewait > 10 && !yataw && _root.hman_piso == piso) { this.gotoAndStop('handup'); yataw = true; } if (this.handup._currentframe == framehand) { this.handup.gotoAndStop(this.handup._totalframes - 1); timehols = my_date.getTime(); fin_hu = true; } if (now - timehols > 1000 && !yataun) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('unholster_b'); } yataun = true; } if (this.unholster._currentframe == framehols or this.unholster_b._currentframe == framehand && !vuelta) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('shoot'); } else { this.gotoAndStop('shoot_b'); vuelta = true; sentido *= -1; } fin_sh = true; } if (this.shoot._currentframe == 7 or this.shoot_b._currentframe == 11 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 5) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { ++_root.miss; _root.attachMovie('miss', 'miss' + _root.miss, 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { ++_root.miss; _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe && _root.e_orden == orden) { if (_root.hman_shoot && _root.hman_piso == piso) { if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathws8 = true; death = true; caida = random(2) + 1; if (!_root.fincrouch) { prob = random(2) + 1; if (prob == 1) { _root.e_orden = 2; } } if (!vuelta) { if (!fin_hu) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr'); } } else { if (!fin_sh) { if (caida == 1) { this.gotoAndStop('death_h_ade'); } else { this.gotoAndStop('death_h_atr'); } } else { if (fin_sh) { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } else { this.gotoAndStop('deathvuelta'); } } } } if (_root.hman_miss && _root.e_orden == orden) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } instance worker of movieClip 1819 { onClipEvent (load) { if (!_root.deathws9) { stop(); } else { loadMovie('', this); } frameshoot = 15; framehols = 24; framehand = 14; firstshot = true; yataw = false; yataun = false; fin_sh = false; fin_hu = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = -1; piso = 1; death = false; esteframe = 16; _root.hman_shoot = false; vuelta = false; yrand = 0; xrand = 0; _root.e_orden = 1; if (_root.hitman._x > this._x) { orden = 2; } else { orden = 1; } } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathws9) { if (now - timewait > 10 && !yataw && _root.hman_piso == piso) { this.gotoAndStop('handup'); yataw = true; } if (this.handup._currentframe == framehand) { this.handup.gotoAndStop(this.handup._totalframes - 1); timehols = my_date.getTime(); fin_hu = true; } if (now - timehols > 1000 && !yataun) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('unholster_b'); } yataun = true; } if (this.unholster._currentframe == framehols or this.unholster_b._currentframe == framehand && !vuelta) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('shoot'); } else { this.gotoAndStop('shoot_b'); vuelta = true; sentido *= -1; } fin_sh = true; } if (this.shoot._currentframe == 7 or this.shoot_b._currentframe == 11 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 5) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { ++_root.miss; _root.attachMovie('miss', 'miss' + _root.miss, 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { ++_root.miss; _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe && _root.e_orden == orden) { if (_root.hman_shoot && _root.hman_piso == piso) { if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathws9 = true; death = true; caida = random(2) + 1; if (!_root.fincrouch) { prob = random(2) + 1; if (prob == 1) { _root.e_orden = 2; } } if (!vuelta) { if (!fin_hu) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr'); } } else { if (!fin_sh) { if (caida == 1) { this.gotoAndStop('death_h_ade'); } else { this.gotoAndStop('death_h_atr'); } } else { if (fin_sh) { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } else { this.gotoAndStop('deathvuelta'); } } } } if (_root.hman_miss) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } frame 24 { stop(); _root.nivel = 16; _root.hman_frame = 17; } instance guardia1 of movieClip 1811 { onClipEvent (load) { if (_root.deathg15) { loadMovie('', this); } frameshoot = 13; framehols = 8; frameturn = 20; firstshot = true; yataw = false; yataun = false; fataturn; fin_sh = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = 1; piso = 2; death = false; esteframe = 17; _root.hman_shoot = false; yrand = 0; xrand = 0; _root.e_orden = 1; if (_root.hitman._x > this._x) { orden = 2; } else { orden = 1; } trace('primequio ' + orden); } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathg15) { if (now - timewait > 1000 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.stop(); this.guardia1.gotoAndStop('unholster'); } else { this.stop(); this.guardia1._xscale *= -1; this.guardia1.gotoAndStop('turn'); } yataw = true; } if (this.guardia1.unholster._currentframe == framehols && yataw) { this.guardia1.gotoAndStop('shoot'); yataun = true; } if (this.guardia1.turn._currentframe == frameturn && yataw) { sentido *= -1; this.guardia1.gotoAndStop('unholster'); yataturn = true; } if (this.guardia1.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe && _root.e_orden == orden) { if (_root.hman_shoot && _root.hman_piso == piso) { if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg15 = true; death = true; caida = random(2) + 1; this.stop(); if (!_root.fincrouch) { prob = random(2) + 1; if (prob == 1) { _root.e_orden = 2; } trace('prob matar 2: ' + prob); } if (!yataun) { if (caida == 1) { this.guardia1.gotoAndStop('death_i_ade'); } else { this.guardia1.gotoAndStop('death_i_atr1'); } } else { if (caida == 1) { this.guardia1.gotoAndStop('death_g_ade'); } else { this.guardia1.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } instance guardia2 of movieClip 1674 { onClipEvent (load) { if (_root.deathg14) { loadMovie('', this); } frameshoot = 9; framehols = 10; frameturn = 20; firstshot = true; yataw = false; yataun = false; fin_sh = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = -1; piso = 2; death = false; esteframe = 17; _root.hman_shoot = false; yrand = 0; xrand = 0; _root.e_orden = 1; if (_root.hitman._x > this._x) { orden = 1; } else { orden = 2; } trace('primequio ' + orden); } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathg14) { if (now - timewait > 1000 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.stop(); this.guardia2.gotoAndStop('unholster'); } else { this.stop(); this.guardia2.gotoAndStop('turn'); } yataw = true; } if (this.guardia2.unholster._currentframe == framehols && yataw) { this.guardia2.gotoAndStop('shoot'); yataun = true; } if (this.guardia2.turn._currentframe == frameturn && yataw) { sentido *= -1; this.guardia2.gotoAndStop('unholster'); yataturn = true; } if (this.guardia2.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe && _root.e_orden == orden) { if (_root.hman_shoot && _root.hman_piso == piso) { if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg14 = true; death = true; caida = random(2) + 1; this.stop(); if (!_root.fincrouch) { prob = random(2) + 1; if (prob == 1) { _root.e_orden = 2; } trace('prob matar 2: ' + prob); } if (!yataun) { if (caida == 1) { this.guardia2.gotoAndStop('death_i_ade'); } else { this.guardia2.gotoAndStop('death_i_atr'); } } else { if (caida == 1) { this.guardia2.gotoAndStop('death_g_ade'); } else { this.guardia2.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss && _root.e_orden == orden) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } frame 25 { stop(); _root.nivel = 17; puerta = 0; _root.hman_frame = 18; onEnterFrame = function () { if (hitman.hitTest(gate18) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); puerta = 1; } if (_root.hitman.indoor._currentframe == _root.frameinout && puerta == 1) { hitman._x = 259; hitman._y = _root.y_abajo; _root.hman_piso = 2; _root.e_shoot = false; if (_root.hman_sentido == 1) { _root.hman_sentido *= -1; _root.hitman._xscale *= -1; } _root.hitman.gotoAndStop('outdoor'); } if (hitman.hitTest(gate17) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); puerta = 2; } if (_root.hitman.indoor._currentframe == _root.frameinout && puerta == 2) { hitman._x = 190; hitman._y = _root.y_arriba; _root.hman_piso = 1; _root.e_shoot = false; if (_root.hman_sentido == -1) { _root.hman_sentido *= -1; _root.hitman._xscale *= -1; } _root.hitman.gotoAndStop('outdoor'); } if (_root.hitman.outdoor._currentframe == _root.frameinout) { _root.habilito = true; } if (_root.hitman.hitTest(topefin)) { fadeout.play(); } }; } movieClip 1966 { } instance guardia2 of movieClip 1823 { onClipEvent (load) { function carga() { frameshoot = 13; framehols = 8; frameturn = 20; firstshot = true; yataw = false; yataun = false; fin_sh = false; var v3 = new Date(); timewait = v3.getTime(); sentido = -1; piso = 1; death = false; esteframe = 18; _root.hman_shoot = false; yrand = 0; xrand = 0; refresco = true; _root.e_orden = 1; if (_root.hitman._x > this._x) { orden = 1; } else { orden = 2; } } if (_root.deathg20) { loadMovie('', this); } carga.call(); } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (_root.hman_piso != piso && refresco && !_root.deathg20) { this.guardia1.gotoAndStop('idle'); this.guardia1.idle.gotoAndPlay(this._currentframe); this.play(); carga.call(); refresco = false; } if (_root.hman_piso == piso && !refresco && !_root.deathg20) { refresco = true; var my_date = new Date(); timewait = my_date.getTime(); } if (!_root.deathg20 && refresco) { if (now - timewait > 2000 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.stop(); this.guardia1.gotoAndStop('unholster'); } else { this.stop(); this.guardia1.gotoAndStop('turn'); } yataw = true; } if (this.guardia1.unholster._currentframe == framehols && yataw) { this.guardia1.gotoAndStop('shoot'); yataun = true; } if (this.guardia1.turn._currentframe == frameturn && yataw) { sentido *= -1; this.guardia1.gotoAndStop('unholster'); yataturn = true; } if (this.guardia1.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe && _root.e_orden == orden) { if (_root.hman_shoot && _root.hman_piso == piso) { if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg20 = true; death = true; caida = random(2) + 1; this.stop(); if (!_root.fincrouch) { prob = random(2) + 1; if (prob == 1) { _root.e_orden = 2; } trace('prob matar 2: ' + prob); } if (!yataun) { if (caida == 1) { this.guardia1.gotoAndStop('death_i_ade'); } else { this.guardia1.gotoAndStop('death_i_atr1'); } } else { if (caida == 1) { this.guardia1.gotoAndStop('death_g_ade'); } else { this.guardia1.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss && _root.e_orden == orden && _root.hman_piso == piso) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } instance guardia21 of movieClip 1426 { onClipEvent (load) { if (!_root.deathg21) { stop(); } else { loadMovie('', this); } frameshoot = 13; framehols = 8; frameturn = 20; firstshot = true; yataw = false; yataun = false; fin_sh = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = -1; piso = 2; death = false; esteframe = 18; _root.hman_shoot = false; yrand = 0; xrand = 0; } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathg21) { if (now - timewait > 2000 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('turnder'); } yataw = true; } if (this.unholster._currentframe == framehols && yataw) { this.gotoAndStop('shoot'); yataun = true; } if (this.turnder._currentframe == frameturn && yataw) { this._xscale *= -1; sentido *= -1; this.gotoAndStop('unholster'); } if (this.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; if (_root.hman_sentido == -1) { _root.miss1._xscale *= -1; } _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe) { if (_root.hman_shoot && _root.hman_piso == piso) { _root.hman_shoot = false; if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg21 = true; death = true; caida = random(2) + 1; if (!yataun) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr1'); } } else { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } instance guardia1 of movieClip 1952 { onClipEvent (load) { function carga() { frameshoot = 13; framehols = 8; frameturn = 20; firstshot = true; yataw = false; yataun = false; fin_sh = false; sentido = 1; piso = 1; death = false; esteframe = 18; _root.hman_shoot = false; yrand = 0; xrand = 0; refresco = true; _root.e_orden = 1; if (_root.hitman._x > this._x) { orden = 2; } else { orden = 1; } } if (_root.deathg19) { loadMovie('', this); } carga.call(); } onClipEvent (enterFrame) { if (_root.pauza == false) { var my_date = new Date(); now = my_date.getTime(); if (_root.hman_piso != piso && refresco && !_root.deathg19) { this.guardia1.gotoAndStop('idle'); this.guardia1.idle.gotoAndPlay(this._currentframe); this.play(); carga.call(); refresco = false; } if (_root.hman_piso == piso && !refresco && !_root.deathg19) { var my_date = new Date(); timewait = my_date.getTime(); refresco = true; } if (!_root.deathg19 && refresco) { if (now - timewait > 2000 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.stop(); this.guardia1.gotoAndStop('unholster'); } else { this.stop(); this.guardia1.gotoAndStop('turn'); } yataw = true; } if (this.guardia1.unholster._currentframe == framehols && yataw) { this.guardia1.gotoAndStop('shoot'); yataun = true; } if (this.guardia1.turn._currentframe == frameturn && yataw) { sentido *= -1; this.guardia1.gotoAndStop('unholster'); yataturn = true; } if (this.guardia1.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe && _root.e_orden == orden) { if (_root.hman_shoot && _root.hman_piso == piso) { if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg19 = true; death = true; caida = random(2) + 1; this.stop(); if (!_root.fincrouch) { prob = random(2) + 1; if (prob == 1) { _root.e_orden = 2; } trace('prob matar 2: ' + prob); } if (!yataun) { if (caida == 1) { this.guardia1.gotoAndStop('death_i_ade'); } else { this.guardia1.gotoAndStop('death_i_atr1'); } } else { if (caida == 1) { this.guardia1.gotoAndStop('death_g_ade'); } else { this.guardia1.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss && _root.hman_piso == piso) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } } movieClip 1967 { frame 1 { stop(); } frame 20 { _root.gotoAndStop('finlevel1'); } } movieClip 1971 { } movieClip 1972 { } movieClip 1973 { } movieClip 1974 TMPd4lzhusf84 { frame 1 { function earl223(val) { var v3 = new Array('_', 'Z', 'y', 'x', 'W', 'v', 'u', 'T', 's', 'r', 'Q', 'P', 'O', 'n', 'm', 'L', 'K', 'j', 'i', 'H', 'g', 'F', 'e', 'd', 'C', 'B', 'a'); var v2 = ''; val1 = 0; while (val1 < val.length) { if (val.substr(val1, 1) == ':') { v2 += ':'; } else { if (Number(val.substr(val1, 2)) > 26) { v2 += v3[Number(val.substr(val1, 1))]; } else { if (Number(val.substr(val1, 1)) == 0) { v2 += '_'; } else { v2 += v3[Number(val.substr(val1, 2))]; ++val1; } } } ++val1; } return v2; } mcButtonMain.mcButton.FOG.swapDepths(0); mcButtonMain.mcButton.attachMovie(btnMC, 'btnMC', 0); mcButtonMain.mcButton.btnMC.onRelease = function () { var v2 = new LoadVars(); v2.onLoad = function () { getURL('http://www.freeonlinegames.com/scoreboard.php?', '_blank'); }; v2.score = Score; v2.score2 = earl223(String(Score)); v2.gamer = gameID; v2.id = random(9999999); v2.toString(); v2.sendAndLoad('http://www.freeonlinegames.com/scoreboard/score_c.php', v2, 'POST'); delete this.onRelease; }; } } movieClip 1975 { frame 1 { stop(); } frame 31 { stop(); stopAllSounds(); _root.pauza = true; _root.theMeniu._visible = false; subbutton.Score = _root.score; } instance of movieClip 325 { onClipEvent (construct) { wynume = 'TheProfessionalsII'; wyculoare = 9310210; wyasezare = 'Vertical'; wyaliniere = 'Centru'; wypozitie = 'Jos'; wyinstructions = false; } } instance subbutton of movieClip 1974 TMPd4lzhusf84 { onClipEvent (construct) { btnMC = '_submit'; gameID = 171; } } } frame 26 { stop(); tapa = 0; dale = false; si = true; _root.pauza = false; _root.sunet = true; _root.pauza._visible = false; onEnterFrame = function () { if (tapa == 0) { _root.tapa21.play(); ++tapa; } if (Key.isDown(16) && si) { si = false; nextFrame(); } if (Key.isDown(32) && dale) { ++tapa; dale = false; if (tapa == 4) { nextFrame(); } _root['tapa2' + tapa].play(); } }; } movieClip 1978 { frame 10 { stop(); _root.dale = true; } } movieClip 1979 { frame 1 { stop(); } frame 10 { stop(); _root.dale = true; } } movieClip 1980 { frame 1 { stop(); } frame 10 { stop(); _root.dale = true; } } movieClip 2001 { frame 55 { stop(); _root.fadeout.play(); } } movieClip 2019 { frame 18 { stop(); } } movieClip 2022 { } movieClip 2024 { frame 1 { if (_root.sunet == true) { _root.car_away.start(); } } frame 14 { stop(); } } button 2025 { on (release) { _root.gotoAndPlay('level2'); } } movieClip 2031 { } movieClip 2032 { frame 1 { stop(); } frame 9 { stop(); _root.theMeniu._visible = false; } instance of movieClip 325 { onClipEvent (construct) { wynume = 'TheProfessionalsII'; wyculoare = 9310210; wyasezare = 'Vertical'; wyaliniere = 'Centru'; wypozitie = 'Jos'; wyinstructions = false; } } } frame 28 { vel_walk = 7; vel_run = 11; y_abajo = 290; y_arriba = 145; maxpantalla = 640; minpantalla = 13; skl_hitman = 30; habilito = true; no_juego = true; framreload = 28; frameshot = 8; framecshot = 9; framecrouch = 12; framcreload = 25; framehit = 15; framechit = 19; frameinicio = 67; frameinout = 23; maxtiros = 5; tiroshit = 0; fincrouch = false; s_iandh = true; walk = false; hit = false; s_reload = false; unholster = false; standup = false; shoot = false; walk = false; run = false; holster = false; gun_idle = false; death = false; crouch = false; c_shoot = false; c_reload = false; c_idle = false; _root.pauza = false; _root.sunet = true; _root.pau._visible = false; hman_shoot = false; hman_piso = 1; hman_sentido = 1; hman_frame = 6; hman_miss = false; e_shoot = false; e_sentido = 0; e_piso = 0; _root.miss = 0; _root.e_orden = 1; _root.healthp = false; _root.armorp = false; _root.extbullp = false; _root.laserdesact = false; i = 1; while (i <= 25) { _root['deathg' + i] = false; ++i; } play(); } frame 29 { stop(); _root.nivel = 18; _root.pau._visible = false; onEnterFrame = function () { if (hitman.hitTest(vuelve)) { gotoAndStop('volver'); hitman._x = _root.maxpantalla - 2; } if (hitman.hitTest(sigue)) { gotoAndStop('seguir'); hitman._x = _root.minpantalla + 2; } }; } instance hitman of movieClip 860 { onClipEvent (load) { stop(); i = 0; prob = 0; cargar = false; balasini = 5; balas = 5; chiorro = 0; cell = 1; falla = 0; _root.bala1.gotoAndStop(2); _root.bala2.gotoAndStop(2); _root.bala3.gotoAndStop(2); _root.bala4.gotoAndStop(2); this._y = _root.y_arriba; } onClipEvent (enterFrame) { if (_root.pauza == false) { if (this.s_iandh._currentframe == _root.frameinicio && _root.s_iandh) { _root.s_iandh = false; } if (!_root.s_iandh && !_root.death && !_root.walk && !_root.run && !_root.crouch && !_root.hit && !_root.s_reload && !_root.shoot && _root.habilito) { this.gotoAndStop('s_idle'); } if (!_root.s_iandh && !_root.death && _root.habilito) { if (this._x > _root.maxpantalla) { _root.nextFrame(); _root.e_shoot = false; this._x = _root.minpantalla + 2; } if (this._x < _root.minpantalla) { _root.prevFrame(); _root.e_shoot = false; this._x = _root.maxpantalla - 2; } if (this.hitTest(_root.topeizq) or this.hitTest(_root.topeizq2)) { toqueizq = true; } else { toqueizq = false; } if (this.hitTest(_root.topeder) or this.hitTest(_root.topeder2)) { toqueder = true; } else { toqueder = false; } if (this.hitTest(_root.worker.etopeizq) && !_root.worker.death or this.hitTest(_root.worker2.etopeizq) && !_root.worker2.death) { etoqueizqw = true; } else { etoqueizqw = false; } if (this.hitTest(_root.worker.etopeder) && !_root.worker.death or this.hitTest(_root.worker2.etopeder) && !_root.worker2.death) { etoquederw = true; } else { etoquederw = false; } if (this.hitTest(_root.guardia1.etopeizq) && !_root.guardia1.death or this.hitTest(_root.guardia2.etopeizq) && !_root.guardia2.death or this.hitTest(_root.guardia21.etopeizq) && !_root.guardia21.death) { etoqueizqg = true; } else { etoqueizqg = false; } if (this.hitTest(_root.guardia1.etopeder) && !_root.guardia1.death or this.hitTest(_root.guardia2.etopeder) && !_root.guardia2.death or this.hitTest(_root.guardia21.etopeder) && !_root.guardia21.death) { etoquederg = true; } else { etoquederg = false; } if (this.hitTest(_root.bguard1.etopeizq) && !_root.bguard1.death or this.hitTest(_root.bguard2.etopeizq) && !_root.bguard2.death or this.hitTest(_root.bguard21.etopeder) && !_root.bguard21.death) { etoqueizqb = true; } else { etoqueizqb = false; } if (this.hitTest(_root.bguard1.etopeder) && !_root.bguard1.death or this.hitTest(_root.bguard2.etopeder) && !_root.bguard2.death) { etoquederb = true; } else { etoquederb = false; } if (Key.isDown(37) && !toqueizq && !_root.shoot && !_root.s_reload && !_root.hit && !Key.isDown(39)) { _root.hman_sentido = -1; this._xscale = -_root.skl_hitman; if (!_root.fincrouch && !_root.crouch) { if (!_root.run) { this.gotoAndStop('walk'); _root.walk = true; if (!etoquederw && !etoquederg && !etoquederb) { this._x -= _root.vel_walk; } } else { this.gotoAndStop('run'); _root.run = true; if (!etoquederw && !etoquederg && !etoquederb) { this._x -= _root.vel_run; } else { this._x += 8; } } } } if (Key.isDown(39) && !toqueder && !_root.shoot && !_root.s_reload && !_root.hit && !Key.isDown(37)) { this._xscale = _root.skl_hitman; _root.hman_sentido = 1; if (!_root.fincrouch && !_root.crouch) { if (!_root.run) { this.gotoAndStop('walk'); _root.walk = true; if (!etoqueizqw && !etoqueizqg && !etoqueizqb) { this._x += _root.vel_walk; } } else { this.gotoAndStop('run'); _root.run = true; if (!etoqueizqw && !etoqueizqg && !etoqueizqb) { this._x += _root.vel_run; } else { this._x -= 8; } } } } if (!Key.isDown(39) && !Key.isDown(37)) { _root.walk = false; _root.run = false; } if (Key.isDown(83) && _root.walk) { _root.run = true; } else { if (!Key.isDown(83)) { _root.run = false; } } if (Key.isDown(68) && !_root.s_reload && !_root.c_reload && !_root.hit && !_root.shoot && !cargar) { if (!_root.crouch) { _root.shoot = true; this.gotoAndStop('shoot'); prob = random(10) + 1; if (prob < 9 && !_root.hman_shoot or falla == 2) { _root.hman_shoot = true; falla = 0; } else { _root.hman_miss = true; ++falla; } _root['bala' + balas].gotoAndStop(2); if (balas >= 12) { cargar = true; } ++balas; } else { if (_root.fincrouch && Key.isDown(40) && !_root.c_shoot) { _root.c_shoot = true; this.gotoAndStop('c_shoot'); if (!_root.hman_shoot) { _root.hman_shoot = true; } _root['bala' + balas].gotoAndStop(2); if (balas >= 12) { cargar = true; } ++balas; } } } if (this.shoot._currentframe == _root.frameshot && _root.shoot) { _root.shoot = false; _root.hman_shoot = false; _root.hman_miss = false; if (_root.guardia1.death or _root.worker2.death or _root.worker.death or _root.guardia2.death or _root.bguard1.death or _root.bguard2.death) { _root.e_orden = 2; } } if (this.c_shoot._currentframe == _root.framecshot - 2 && _root.c_shoot) { _root.c_shoot = false; _root.hman_shoot = false; _root.hman_miss = false; if (_root.guardia1.death or _root.worker2.death or _root.worker.death or _root.guardia2.death or _root.bguard1.death or _root.bguard2.death) { _root.e_orden = 2; } this.gotoAndStop('c_idle'); } if (Key.isDown(82) && !_root.shoot && !_root.c_shoot && !_root.hit) { if (!_root.crouch) { _root.s_reload = true; this.gotoAndStop('s_reload'); } else { if (_root.fincrouch) { _root.c_reload = true; this.gotoAndStop('c_reload'); } } } if (this.s_reload._currentframe == _root.framreload && _root.s_reload) { balas = balasini; i = balasini; while (i <= 12) { _root['bala' + i].gotoAndStop(1); cargar = false; ++i; } _root.s_reload = false; } if (this.c_reload._currentframe == _root.framcreload && _root.c_reload) { _root.c_reload = false; this.gotoAndStop('c_idle'); balas = balasini; i = balasini; while (i <= 12) { _root['bala' + i].gotoAndStop(1); cargar = false; ++i; } } if (Key.isDown(40) && !_root.crouch && !_root.s_reload && !_root.shoot && !_root.hit) { _root.crouch = true; _root.fincrouch = false; this.gotoAndStop('crouch'); } if (this.crouch._currentframe == _root.framecrouch) { _root.fincrouch = true; this.gotoAndStop('c_idle'); } if (!Key.isDown(40) && _root.crouch && !_root.c_shoot && !_root.c_reload && !_root.hit) { if (_root.fincrouch) { this.gotoAndStop('standup'); } } if (this.standup._currentframe == _root.framecrouch) { _root.crouch = false; _root.fincrouch = false; this.gotoAndStop('s_idle'); } if (_root.e_shoot && _root.hman_piso == _root.e_piso && (_root.e_sentido == -1 && this._x < _root.e_equis or _root.e_sentido == 1 && this._x > _root.e_equis)) { if ((_root.shoot or _root.c_shoot) && (this.shoot._currentframe == 1 or this.c_shoot._currentframe == 1)) { } else { if (!_root.fincrouch) { _root.s_reload = false; _root.shoot = false; _root.hit = true; if (!_root.armor) { ++_root.tiroshit; _root['nrg' + _root.tiroshit].gotoAndStop(3); } else { i = _root.tiroshit + 1; i = i; while (i <= 5) { _root['nrg' + i].gotoAndStop(1); ++i; } _root.armor = false; } this.gotoAndStop('s_hit'); ++chiorro; profund = 100 + chiorro; _root.attachMovie('chorro', 'chorro' + chiorro, profund); _root['chorro' + chiorro]._x = this._x + 6; _root['chorro' + chiorro]._y = this._y - 5; _root.crouch = false; } else { _root.c_reload = false; _root.c_shoot = false; _root.hit = true; ++_root.tiroshit; _root['nrg' + _root.tiroshit].gotoAndStop(3); this.gotoAndStop('c_hit'); ++chiorro; profund = 100 + chiorro; _root.attachMovie('chorro2', 'chorro2' + chiorro, profund); _root['chorro2' + chiorro]._x = this._x + 6; _root['chorro2' + chiorro]._y = this._y + 20; } _root.e_shoot = false; } } if (this.s_hit._currentframe == _root.framehit && _root.hit) { _root.hit = false; } if (this.c_hit._currentframe == _root.framechit && _root.hit) { _root.hit = false; this.gotoAndStop('c_idle'); } if (_root.tiroshit >= _root.maxtiros) { caida = random(4) + 1; if (!_root.fincrouch or !_root.crouch) { switch (caida) { case 1: this.gotoAndStop('death_ade1'); break; case 2: this.gotoAndStop('death_ade1'); break; case 3: this.gotoAndStop('death_atr1'); break; case 4: this.gotoAndStop('death_atr2'); } } else { switch (caida) { case 1: this.gotoAndStop('c_death_ade'); break; case 2: this.gotoAndStop('c_death_ade'); break; case 3: this.gotoAndStop('c_death_atr'); break; case 4: this.gotoAndStop('c_death_atr'); } } _root.death = true; _root.fadeoutde.play(); } if (this.hitTest(_root.health) && _root.tiroshit != 0 && cell == 1) { ++cell; _root.health.play(); _root.healthp = true; _root['nrg' + _root.tiroshit].gotoAndStop(1); --_root.tiroshit; } if (this.hitTest(_root.armor)) { _root.armor.play(); _root.armorp = true; _root.armor = true; i = _root.tiroshit + 1; i = i; while (i <= 5) { _root['nrg' + i].gotoAndStop(2); ++i; } } if (this.hitTest(_root.extbull)) { _root.extbull.play(); i = 1; while (i <= 12) { _root['bala' + i].gotoAndStop(1); ++i; } balasini = 1; balas = 1; } if (this.hitTest(_root.laserdes)) { _root.laserdesact = true; } if (this.hitTest(_root.laser1.laserx) or this.hitTest(_root.laser2.laserx) or this.hitTest(_root.laser3.laserx) or this.hitTest(_root.laser4.laserx)) { ++_root.tiroshit; _root['nrg' + _root.tiroshit].gotoAndStop(3); } } } } } instance nrg5 of movieClip 751 { onClipEvent (load) { stop(); } } instance nrg4 of movieClip 751 { onClipEvent (load) { stop(); } } instance nrg3 of movieClip 751 { onClipEvent (load) { stop(); } } instance nrg2 of movieClip 751 { onClipEvent (load) { stop(); } } instance nrg1 of movieClip 751 { onClipEvent (load) { stop(); } } instance theMeniu of movieClip 924 { onClipEvent (construct) { wxnume = 'TheProfessionalsII'; wxaliniere = 'Stanga-Sus'; wxculoare = 6710886; wxdownload = true; wxpause = true; wxsound = true; } } frame 30 { stop(); _root.nivel = 19; puerta = 0; _root.hman_frame = 3; onEnterFrame = function () { if (hitman.hitTest(gate1) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); puerta = 1; } if (_root.hitman.indoor._currentframe == _root.frameinout && puerta == 1) { hitman._x = 320; hitman._y = _root.y_abajo; _root.hman_piso = 2; if (_root.hman_sentido == -1) { _root.hman_sentido *= -1; _root.hitman._xscale *= -1; } _root.hitman.gotoAndStop('outdoor'); } if (hitman.hitTest(gate2) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); puerta = 2; } if (_root.hitman.indoor._currentframe == _root.frameinout && puerta == 2) { hitman._x = 108; hitman._y = _root.y_arriba; _root.hman_piso = 1; if (_root.hman_sentido == -1) { _root.hman_sentido *= -1; _root.hitman._xscale *= -1; } _root.hitman.gotoAndStop('outdoor'); } if (_root.hitman.outdoor._currentframe == _root.frameinout) { _root.habilito = true; } }; } movieClip 2115 { } movieClip 2137 { frame 11 { if (_root.sunet == true) { _root.bodydropP.start(); } if (_root.sunet == true) { _root.enemy_die.start(); } _root.score += 20; } frame 23 { stop(); } } movieClip 2162 { frame 11 { if (_root.sunet == true) { _root.bodydropP.start(); } if (_root.sunet == true) { _root.enemy_die.start(); } _root.score += 20; } frame 24 { stop(); } } movieClip 2183 { frame 10 { if (_root.sunet == true) { _root.bodydropP.start(); } if (_root.sunet == true) { _root.enemy_die.start(); } _root.score += 20; } frame 23 { stop(); } } movieClip 2208 { frame 13 { if (_root.sunet == true) { _root.bodydropP.start(); } if (_root.sunet == true) { _root.enemy_die.start(); } _root.score += 20; } frame 27 { stop(); } } movieClip 2218 { frame 1 { this.onEnterFrame = function () { if (!_root.pauza) { this.play(); } else { this.stop(); } }; } frame 2 { if (_root.sunet == true) { _root.madsooter.start(); } } } movieClip 2233 { } movieClip 2254 { frame 1 { this.onEnterFrame = function () { if (!_root.pauza) { this.play(); } else { this.stop(); } }; } } movieClip 2255 { frame 1 { stop(); } } movieClip 2256 { frame 1 { this.sentido = -1; } frame 39 { this.sentido = 1; } } instance bguard2 of movieClip 2256 { onClipEvent (load) { function carga() { frameshoot = 8; framehols = 20; frameturn = 14; firstshot = true; yataw = false; yataun = false; fin_sh = false; sentido = -1; piso = 2; death = false; esteframe = 3; _root.hman_shoot = false; yrand = 0; xrand = 0; refresco = true; } if (_root.deathg15) { loadMovie('', this); } carga.call(); } onClipEvent (enterFrame) { var my_date = new Date(); now = my_date.getTime(); if (_root.hman_piso != piso && refresco && !_root.deathg15) { this.bguard2.gotoAndStop('idle'); this.bguard2.idle.gotoAndPlay(this._currentframe); this.play(); carga.call(); refresco = false; } if (_root.hman_piso == piso && !refresco && !_root.deathg15) { var my_date = new Date(); timewait = my_date.getTime(); refresco = true; } if (!_root.deathg15 && refresco) { if (now - timewait > 1000 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.stop(); this.bguard2.gotoAndStop('unholster'); } else { this.stop(); this.bguard2.gotoAndStop('turn'); } yataw = true; } if (this.bguard2.unholster._currentframe == framehols && yataw) { this.bguard2.gotoAndStop('shoot'); yataun = true; } if (this.bguard2.turn._currentframe == frameturn && yataw) { sentido *= -1; this.bguard2.gotoAndStop('unholster'); } if (this.bguard2.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe) { if (_root.hman_shoot && _root.hman_piso == piso) { _root.hman_shoot = false; if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg15 = true; this.stop(); death = true; caida = random(2) + 1; if (!yataun) { if (caida == 1) { this.bguard2.gotoAndStop('death_i_ade'); } else { this.bguard2.gotoAndStop('death_i_atr'); } } else { if (caida == 1) { this.bguard2.gotoAndStop('death_g_ade'); } else { this.bguard2.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } movieClip 2259 { } movieClip 2261 { } movieClip 2262 { } instance laser1 of movieClip 2262 { onClipEvent (load) { if (_root.laserdesact) { this.stop(); } } } movieClip 2264 { } movieClip 2265 { } instance laser2 of movieClip 2265 { onClipEvent (load) { if (_root.laserdesact) { this.stop(); } } } instance laser4 of movieClip 2262 { onClipEvent (load) { if (_root.laserdesact) { this.stop(); } } } movieClip 2266 { frame 1 { stop(); } frame 31 { stop(); stopAllSounds(); _root.pauza = true; _root.theMeniu._visible = false; } instance of movieClip 325 { onClipEvent (construct) { wynume = 'TheProfessionalsII'; wyculoare = 9310210; wyasezare = 'Vertical'; wyaliniere = 'Centru'; wypozitie = 'Jos'; wyinstructions = false; } } } frame 31 { stop(); _root.nivel = 20; _root.hman_frame = 4; } movieClip 2305 { } movieClip 2333 { frame 14 { if (_root.sunet == true) { _root.bodydropP.start(); } if (_root.sunet == true) { _root.enemy_die.start(); } _root.score += 20; } frame 29 { stop(); } } movieClip 2353 { frame 9 { if (_root.sunet == true) { _root.bodydropP.start(); } if (_root.sunet == true) { _root.enemy_die.start(); } _root.score += 20; } frame 22 { stop(); } } movieClip 2382 { frame 13 { if (_root.sunet == true) { _root.bodydropP.start(); } if (_root.sunet == true) { _root.enemy_die.start(); } _root.score += 20; } frame 31 { stop(); } } movieClip 2406 { frame 12 { if (_root.sunet == true) { _root.bodydropP.start(); } if (_root.sunet == true) { _root.enemy_die.start(); } _root.score += 20; } frame 26 { stop(); } } movieClip 2417 { frame 1 { this.onEnterFrame = function () { if (!_root.pauza) { this.play(); } else { this.stop(); } }; } frame 2 { if (_root.sunet == true) { _root.madsooter.start(); } } } movieClip 2440 { } movieClip 2460 { frame 1 { this.onEnterFrame = function () { if (!_root.pauza) { this.play(); } else { this.stop(); } }; } } movieClip 2461 { } instance guardia1 of movieClip 2461 { onClipEvent (load) { if (!_root.deathg14) { stop(); } else { loadMovie('', this); } frameshoot = 11; framehols = 19; frameturn = 22; firstshot = true; yataw = false; yataun = false; fin_sh = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = 1; piso = 1; death = false; esteframe = 4; _root.hman_shoot = false; yrand = 0; xrand = 0; } onClipEvent (enterFrame) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathg14) { if (now - timewait > 10 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('turn'); } yataw = true; } if (this.unholster._currentframe == framehols && yataw) { this.gotoAndStop('shoot'); yataun = true; } if (this.turn._currentframe == frameturn && yataw) { this._xscale *= -1; sentido *= -1; this.gotoAndStop('unholster'); } if (this.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe) { if (_root.hman_shoot && _root.hman_piso == piso) { _root.hman_shoot = false; if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg14 = true; death = true; caida = random(2) + 1; if (!yataun) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr'); } } else { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } instance bguard2 of movieClip 2256 { onClipEvent (load) { if (_root.deathg16) { loadMovie('', this); } frameshoot = 8; framehols = 20; frameturn = 14; firstshot = true; yataw = false; yataun = false; fin_sh = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = -1; piso = 2; death = false; esteframe = 4; _root.hman_shoot = false; yrand = 0; xrand = 0; _root.e_orden = 1; if (_root.hitman._x > this._x) { orden = 2; } else { orden = 1; } } onClipEvent (enterFrame) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathg16) { if (now - timewait > 800 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.stop(); this.bguard2.gotoAndStop('unholster'); } else { this.stop(); this.bguard2.gotoAndStop('turn'); } yataw = true; } if (this.bguard2.unholster._currentframe == framehols && yataw) { this.bguard2.gotoAndStop('shoot'); yataun = true; } if (this.bguard2.turn._currentframe == frameturn && yataw) { this.bguard2._xscale *= -1; sentido *= -1; this.bguard2.gotoAndStop('unholster'); } if (this.bguard2.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe && _root.e_orden == orden) { if (_root.hman_shoot && _root.hman_piso == piso) { _root.hman_shoot = false; if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg16 = true; this.stop(); death = true; caida = random(2) + 1; if (!_root.fincrouch) { prob = random(2) + 1; if (prob == 1) { _root.e_orden = 2; } } if (!yataun) { if (caida == 1) { this.bguard2.gotoAndStop('death_i_ade'); } else { this.bguard2.gotoAndStop('death_i_atr'); } } else { if (caida == 1) { this.bguard2.gotoAndStop('death_g_ade'); } else { this.bguard2.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss && _root.hman_piso == piso) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } instance guardia2 of movieClip 2461 { onClipEvent (load) { stop(); if (_root.deathg17) { loadMovie('', this); } frameshoot = 11; framehols = 19; frameturn = 22; firstshot = true; yataw = false; yataun = false; fin_sh = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = -1; piso = 2; death = false; esteframe = 4; _root.hman_shoot = false; yrand = 0; xrand = 0; _root.e_orden = 1; if (_root.hitman._x > this._x) { orden = 1; } else { orden = 2; } } onClipEvent (enterFrame) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathg17) { if (now - timewait > 300 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('turn'); } yataw = true; } if (this.unholster._currentframe == framehols && yataw) { this.gotoAndStop('shoot'); yataun = true; } if (this.turn._currentframe == frameturn && yataw) { this._xscale *= -1; sentido *= -1; this.gotoAndStop('unholster'); } if (this.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe && _root.e_orden == orden) { if (_root.hman_shoot && _root.hman_piso == piso) { _root.hman_shoot = false; if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg17 = true; death = true; caida = random(2) + 1; if (!yataun) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr'); } } else { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss && _root.hman_piso == piso && _root.e_orden == orden) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } frame 32 { _root.nivel = 21; _root.hman_frame = 5; } movieClip 2466 { frame 1 { stop(); } frame 16 { stop(); _root.armorp = true; loadMovie('', _root.armor); } } instance armor of movieClip 2466 { onClipEvent (load) { if (_root.armorp) { loadMovie('', this); } } } instance health of movieClip 1679 { onClipEvent (load) { if (_root.healthp) { loadMovie('', this); } } } movieClip 2469 { frame 1 { stop(); } frame 16 { stop(); _root.extbullp = true; loadMovie('', _root.extbull); } } instance extbull of movieClip 2469 { onClipEvent (load) { if (_root.extbullp) { loadMovie('', this); } } } frame 33 { stop(); _root.nivel = 22; _root.hman_frame = 6; } frame 34 { stop(); _root.hman_frame = 10; _root.nivel = 23; onEnterFrame = function () { if (hitman.hitTest(tope) && !_root.bossesc) { loadMovie('', tope); hitman.gotoAndStop('s_idle'); _root.s_iandh = true; } }; } movieClip 2505 { } movieClip 2506 { frame 53 { stop(); _root.s_iandh = false; _root.bossesc = true; } } instance of movieClip 2506 { onClipEvent (load) { if (_root.bossesc) { loadMovie('', this); } } } frame 35 { stop(); _root.nivel = 24; _root.hman_frame = 8; } instance bguard1 of movieClip 2461 { onClipEvent (load) { if (!_root.deathg2) { stop(); } else { loadMovie('', this); } frameshoot = 11; framehols = 19; frameturn = 22; firstshot = true; yataw = false; yataun = false; fin_sh = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = -1; piso = 1; death = false; esteframe = 8; _root.hman_shoot = false; yrand = 0; xrand = 0; } onClipEvent (enterFrame) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathg2) { if (now - timewait > 10 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('turn'); } yataw = true; } if (this.unholster._currentframe == framehols && yataw) { this.gotoAndStop('shoot'); yataun = true; } if (this.turn._currentframe == frameturn && yataw) { this._xscale *= -1; sentido *= -1; this.gotoAndStop('unholster'); } if (this.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe) { if (_root.hman_shoot && _root.hman_piso == piso) { _root.hman_shoot = false; if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg2 = true; death = true; caida = random(2) + 1; if (!yataun) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr'); } } else { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss && _root.hman_piso == piso) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } frame 36 { stop(); _root.nivel = 25; puerta = 0; _root.hman_frame = 9; onEnterFrame = function () { if (hitman.hitTest(gate3) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); puerta = 1; } if (_root.hitman.indoor._currentframe == _root.frameinout && puerta == 1) { hitman._x = 120; hitman._y = _root.y_abajo; _root.hman_piso = 2; if (_root.hman_sentido == -1) { _root.hman_sentido *= -1; _root.hitman._xscale *= -1; } _root.hitman.gotoAndStop('outdoor'); } if (hitman.hitTest(gate4) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); puerta = 2; } if (_root.hitman.indoor._currentframe == _root.frameinout && puerta == 2) { hitman._x = 350; hitman._y = _root.y_arriba; _root.hman_piso = 1; if (_root.hman_sentido == -1) { _root.hman_sentido *= -1; _root.hitman._xscale *= -1; } _root.hitman.gotoAndStop('outdoor'); } if (_root.hitman.outdoor._currentframe == _root.frameinout) { _root.habilito = true; } }; } movieClip 2529 { } movieClip 2530 { } instance bguard2 of movieClip 2530 { onClipEvent (load) { if (!_root.deathg1) { stop(); } else { loadMovie('', this); } frameshoot = 8; framehols = 20; frameturn = 14; firstshot = true; yataw = false; yataun = false; fin_sh = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = -1; piso = 1; death = false; esteframe = 9; _root.hman_shoot = false; yrand = 0; xrand = 0; } onClipEvent (enterFrame) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathg1) { if (now - timewait > 10 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('turn'); } yataw = true; } if (this.unholster._currentframe == framehols && yataw) { this.gotoAndStop('shoot'); yataun = true; } if (this.turn._currentframe == frameturn && yataw) { trace('entrñó'); this._xscale *= -1; sentido *= -1; this.gotoAndStop('unholster'); } if (this.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe) { if (_root.hman_shoot && _root.hman_piso == piso) { _root.hman_shoot = false; if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg1 = true; death = true; caida = random(2) + 1; if (!yataun) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr'); } } else { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss && _root.hman_piso == piso) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } frame 37 { stop(); _root.nivel = 26; _root.hman_frame = 10; } instance bguard1 of movieClip 2461 { onClipEvent (load) { if (!_root.deathg4) { stop(); } else { loadMovie('', this); } frameshoot = 11; framehols = 19; frameturn = 22; firstshot = true; yataw = false; yataun = false; fin_sh = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = -1; piso = 2; death = false; esteframe = 10; _root.hman_shoot = false; yrand = 0; xrand = 0; _root.e_orden = 1; if (_root.hitman._x > this._x) { orden = 1; } else { orden = 2; } } onClipEvent (enterFrame) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathg4) { if (now - timewait > 30 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('turn'); } yataw = true; } if (this.unholster._currentframe == framehols && yataw) { this.gotoAndStop('shoot'); yataun = true; } if (this.turn._currentframe == frameturn && yataw) { this._xscale *= -1; sentido *= -1; this.gotoAndStop('unholster'); } if (this.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe && _root.e_orden == orden) { if (_root.hman_shoot && _root.hman_piso == piso) { _root.hman_shoot = false; if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg4 = true; death = true; caida = random(2) + 1; if (!_root.fincrouch) { prob = random(2) + 1; if (prob == 1) { _root.e_orden = 2; } } if (!yataun) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr'); } } else { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss && _root.e_orden == orden) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } instance bguard2 of movieClip 2530 { onClipEvent (load) { if (!_root.deathg3) { stop(); } else { loadMovie('', this); } frameshoot = 8; framehols = 20; frameturn = 14; firstshot = true; yataw = false; yataun = false; fin_sh = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = 1; piso = 2; death = false; esteframe = 10; _root.hman_shoot = false; yrand = 0; xrand = 0; _root.e_orden = 1; if (_root.hitman._x > this._x) { orden = 2; } else { orden = 1; } } onClipEvent (enterFrame) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathg3) { if (now - timewait > 10 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('turn'); } yataw = true; } if (this.unholster._currentframe == framehols && yataw) { this.gotoAndStop('shoot'); yataun = true; } if (this.turn._currentframe == frameturn && yataw) { trace('entrñó'); this._xscale *= -1; sentido *= -1; this.gotoAndStop('unholster'); } if (this.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe && _root.e_orden == orden) { if (_root.hman_shoot && _root.hman_piso == piso) { _root.hman_shoot = false; if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg3 = true; death = true; caida = random(2) + 1; if (!_root.fincrouch) { prob = random(2) + 1; if (prob == 1) { _root.e_orden = 2; } } if (!yataun) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr'); } } else { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } frame 38 { stop(); _root.nivel = 27; puerta = 0; _root.hman_frame = 11; onEnterFrame = function () { if (hitman.hitTest(gate5) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); puerta = 1; } if (_root.hitman.indoor._currentframe == _root.frameinout && puerta == 1) { hitman._x = 540; hitman._y = _root.y_abajo; _root.hman_piso = 2; if (_root.hman_sentido == -1) { _root.hman_sentido *= -1; _root.hitman._xscale *= -1; } _root.hitman.gotoAndStop('outdoor'); } if (hitman.hitTest(gate6) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); puerta = 2; } if (_root.hitman.indoor._currentframe == _root.frameinout && puerta == 2) { hitman._x = 285; hitman._y = _root.y_arriba; _root.hman_piso = 1; if (_root.hman_sentido == -1) { _root.hman_sentido *= -1; _root.hitman._xscale *= -1; } _root.hitman.gotoAndStop('outdoor'); } if (_root.hitman.outdoor._currentframe == _root.frameinout) { _root.habilito = true; } }; } instance bguard2 of movieClip 2256 { onClipEvent (load) { function carga() { frameshoot = 8; framehols = 20; frameturn = 14; firstshot = true; yataw = false; yataun = false; fin_sh = false; sentido = -1; piso = 1; death = false; esteframe = 11; _root.hman_shoot = false; yrand = 0; xrand = 0; refresco = true; } if (_root.deathg5) { loadMovie('', this); } carga.call(); } onClipEvent (enterFrame) { var my_date = new Date(); now = my_date.getTime(); if (_root.hman_piso != piso && refresco && !_root.deathg5) { this.bguard2.gotoAndStop('idle'); this.bguard2.idle.gotoAndPlay(this._currentframe); this.play(); carga.call(); refresco = false; } if (_root.hman_piso == piso && !refresco && !_root.deathg5) { var my_date = new Date(); timewait = my_date.getTime(); refresco = true; } if (!_root.deathg5 && refresco) { if (now - timewait > 2300 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.stop(); this.bguard2.gotoAndStop('unholster'); } else { this.stop(); this.bguard2.gotoAndStop('turn'); } yataw = true; } if (this.bguard2.unholster._currentframe == framehols && yataw) { this.bguard2.gotoAndStop('shoot'); yataun = true; } if (this.bguard2.turn._currentframe == frameturn && yataw) { sentido *= -1; this.bguard2.gotoAndStop('unholster'); } if (this.bguard2.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe) { if (_root.hman_shoot && _root.hman_piso == piso) { if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg5 = true; this.stop(); death = true; caida = random(2) + 1; if (!yataun) { if (caida == 1) { this.bguard2.gotoAndStop('death_i_ade'); } else { this.bguard2.gotoAndStop('death_i_atr'); } } else { if (caida == 1) { this.bguard2.gotoAndStop('death_g_ade'); } else { this.bguard2.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss && _root.hman_piso == piso) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } movieClip 2623 { } movieClip 2624 { frame 1 { stop(); } } movieClip 2625 { } instance guardia21 of movieClip 2625 { onClipEvent (load) { if (_root.deathg7) { loadMovie('', this); } frameshoot = 11; framehols = 19; frameturn = 22; firstshot = true; yataw = false; yataun = false; fin_sh = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = -1; piso = 2; death = false; esteframe = 11; _root.hman_shoot = false; yrand = 0; xrand = 0; } onClipEvent (enterFrame) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathg7) { if (now - timewait > 10 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.stop(); this.bguard1.gotoAndStop('unholster'); } else { this.stop(); this.bguard1.gotoAndStop('turn'); } yataw = true; } if (this.bguard1.unholster._currentframe == framehols && yataw) { this.bguard1.gotoAndStop('shoot'); yataun = true; } if (this.bguard1.turn._currentframe == frameturn && yataw) { this.bguard1._xscale *= -1; sentido *= -1; this.bguard1.gotoAndStop('unholster'); } if (this.bguard1.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe) { if (_root.hman_shoot && _root.hman_piso == piso) { _root.hman_shoot = false; if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg7 = true; this.stop(); death = true; caida = random(2) + 1; if (!yataun) { if (caida == 1) { this.bguard1.gotoAndStop('death_i_ade'); } else { this.bguard1.gotoAndStop('death_i_atr'); } } else { if (caida == 1) { this.bguard1.gotoAndStop('death_g_ade'); } else { this.bguard1.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } instance bguard1 of movieClip 2461 { onClipEvent (load) { function carga() { frameshoot = 11; framehols = 19; frameturn = 22; firstshot = true; yataw = false; yataun = false; fin_sh = false; sentido = 1; piso = 1; death = false; esteframe = 11; _root.hman_shoot = false; yrand = 0; xrand = 0; refresco = true; } stop(); if (_root.deathg6) { loadMovie('', this); } carga.call(); } onClipEvent (enterFrame) { var my_date = new Date(); now = my_date.getTime(); if (_root.hman_piso != piso && refresco && !_root.deathg6) { this.gotoAndStop('idle'); carga.call(); refresco = false; } if (_root.hman_piso == piso && !refresco && !_root.deathg6) { var my_date = new Date(); timewait = my_date.getTime(); refresco = true; } if (!_root.deathg6 && refresco) { if (now - timewait > 2000 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('turn'); } yataw = true; } if (this.unholster._currentframe == framehols && yataw) { this.gotoAndStop('shoot'); yataun = true; } if (this.turn._currentframe == frameturn && yataw) { this._xscale *= -1; sentido *= -1; this.gotoAndStop('unholster'); } if (this.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe) { if (_root.hman_shoot && _root.hman_piso == piso) { if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg6 = true; death = true; caida = random(2) + 1; if (!yataun) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr'); } } else { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss && _root.hman_sentido == -1) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } frame 39 { stop(); _root.nivel = 28; _root.hman_frame = 12; } frame 40 { stop(); _root.nivel = 29; _root.hman_frame = 13; } instance bguard1 of movieClip 2530 { onClipEvent (load) { if (!_root.deathg8) { stop(); idle.gotoAndPlay(4); } else { loadMovie('', this); } frameshoot = 8; framehols = 20; frameturn = 14; firstshot = true; yataw = false; yataun = false; fin_sh = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = -1; piso = 1; death = false; esteframe = 13; _root.hman_shoot = false; yrand = 0; xrand = 0; _root.e_orden = 1; if (_root.hitman._x > this._x) { orden = 1; } else { orden = 2; } } onClipEvent (enterFrame) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathg8) { if (now - timewait > 30 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('turn'); } yataw = true; } if (this.unholster._currentframe == framehols && yataw) { this.gotoAndStop('shoot'); yataun = true; } if (this.turn._currentframe == frameturn && yataw) { trace('entrñó'); this._xscale *= -1; sentido *= -1; this.gotoAndStop('unholster'); } if (this.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe && _root.e_orden == orden) { if (_root.hman_shoot && _root.hman_piso == piso) { _root.hman_shoot = false; if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg8 = true; death = true; caida = random(2) + 1; if (!_root.fincrouch) { prob = random(2) + 1; if (prob == 1) { _root.e_orden = 2; } } if (!yataun) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr'); } } else { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss && _root.e_orden == orden) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } instance bguard2 of movieClip 2530 { onClipEvent (load) { if (!_root.deathg9) { stop(); } else { loadMovie('', this); } frameshoot = 8; framehols = 20; frameturn = 14; firstshot = true; yataw = false; yataun = false; fin_sh = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = -1; piso = 1; death = false; esteframe = 13; _root.hman_shoot = false; yrand = 0; xrand = 0; _root.e_orden = 1; if (_root.hitman._x > this._x) { orden = 2; } else { orden = 1; } } onClipEvent (enterFrame) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathg9) { if (now - timewait > 10 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('turn'); } yataw = true; } if (this.unholster._currentframe == framehols && yataw) { this.gotoAndStop('shoot'); yataun = true; } if (this.turn._currentframe == frameturn && yataw) { trace('entrñó'); this._xscale *= -1; sentido *= -1; this.gotoAndStop('unholster'); } if (this.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe && _root.e_orden == orden) { if (_root.hman_shoot && _root.hman_piso == piso) { _root.hman_shoot = false; if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg9 = true; death = true; caida = random(2) + 1; if (!_root.fincrouch) { prob = random(2) + 1; if (prob == 1) { _root.e_orden = 2; } } if (!yataun) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr'); } } else { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } frame 41 { stop(); _root.nivel = 30; puerta = 0; _root.hman_frame = 14; onEnterFrame = function () { if (hitman.hitTest(gate7) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); puerta = 1; } if (_root.hitman.indoor._currentframe == _root.frameinout && puerta == 1) { hitman._x = 203; hitman._y = _root.y_abajo; _root.hman_piso = 2; if (_root.hman_sentido == -1) { _root.hman_sentido *= -1; _root.hitman._xscale *= -1; } _root.hitman.gotoAndStop('outdoor'); } if (hitman.hitTest(gate8) && Key.isDown(38) && _root.habilito && !_root.crouch && !_root.s_reload && !_root.c_reload && !_root.shoot && !_root.hit && !_root.c_shoot) { _root.habilito = false; _root.hitman.gotoAndStop('indoor'); puerta = 2; } if (_root.hitman.indoor._currentframe == _root.frameinout && puerta == 2) { hitman._x = 320; hitman._y = _root.y_arriba; _root.hman_piso = 1; if (_root.hman_sentido == -1) { _root.hman_sentido *= -1; _root.hitman._xscale *= -1; } _root.hitman.gotoAndStop('outdoor'); } if (_root.hitman.outdoor._currentframe == _root.frameinout) { _root.habilito = true; } }; } instance guardia21 of movieClip 2625 { onClipEvent (load) { if (_root.deathg10) { loadMovie('', this); } frameshoot = 11; framehols = 19; frameturn = 22; firstshot = true; yataw = false; yataun = false; fin_sh = false; var my_date = new Date(); timewait = my_date.getTime(); sentido = -1; piso = 1; death = false; esteframe = 14; _root.hman_shoot = false; yrand = 0; xrand = 0; } onClipEvent (enterFrame) { var my_date = new Date(); now = my_date.getTime(); if (!_root.deathg10) { if (now - timewait > 10 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.stop(); this.bguard1.gotoAndStop('unholster'); } else { this.stop(); this.bguard1.gotoAndStop('turn'); } yataw = true; } if (this.bguard1.unholster._currentframe == framehols && yataw) { this.bguard1.gotoAndStop('shoot'); yataun = true; } if (this.bguard1.turn._currentframe == frameturn && yataw) { this.bguard1._xscale *= -1; sentido *= -1; this.bguard1.gotoAndStop('unholster'); } if (this.bguard1.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe) { if (_root.hman_shoot && _root.hman_piso == piso) { if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg10 = true; this.stop(); death = true; caida = random(2) + 1; if (!yataun) { if (caida == 1) { this.bguard1.gotoAndStop('death_i_ade'); } else { this.bguard1.gotoAndStop('death_i_atr'); } } else { if (caida == 1) { this.bguard1.gotoAndStop('death_g_ade'); } else { this.bguard1.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } instance bguard2 of movieClip 2530 { onClipEvent (load) { function carga() { frameshoot = 8; framehols = 20; frameturn = 14; firstshot = true; yataw = false; yataun = false; fin_sh = false; sentido = -1; piso = 2; death = false; esteframe = 14; _root.hman_shoot = false; yrand = 0; xrand = 0; refresco = true; _root.e_orden = 1; if (_root.hitman._x > this._x) { orden = 2; } else { orden = 1; } } if (!_root.deathg12) { stop(); } else { loadMovie('', this); } carga.call(); } onClipEvent (enterFrame) { var my_date = new Date(); now = my_date.getTime(); if (_root.hman_piso != piso && refresco && !_root.deathg12) { this.gotoAndStop('idle'); carga.call(); refresco = false; } if (_root.hman_piso == piso && !refresco && !_root.deathg12) { var my_date = new Date(); timewait = my_date.getTime(); refresco = true; } if (!_root.deathg12 && refresco) { if (now - timewait > 2000 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('turn'); } yataw = true; } if (this.unholster._currentframe == framehols && yataw) { this.gotoAndStop('shoot'); yataun = true; } if (this.turn._currentframe == frameturn && yataw) { trace('entrñó'); this._xscale *= -1; sentido *= -1; this.gotoAndStop('unholster'); } if (this.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe && _root.e_orden == orden) { if (_root.hman_shoot && _root.hman_piso == piso) { _root.hman_shoot = false; if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg12 = true; death = true; caida = random(2) + 1; if (!_root.fincrouch) { prob = random(2) + 1; if (prob == 1) { _root.e_orden = 2; } } if (!yataun) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr'); } } else { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss && _root.hman_piso == piso) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } instance bguard1 of movieClip 2530 { onClipEvent (load) { function carga() { frameshoot = 8; framehols = 20; frameturn = 14; firstshot = true; yataw = false; yataun = false; fin_sh = false; sentido = -1; piso = 2; death = false; esteframe = 14; _root.hman_shoot = false; yrand = 0; xrand = 0; refresco = true; _root.e_orden = 1; if (_root.hitman._x > this._x) { orden = 1; } else { orden = 2; } } if (!_root.deathg13) { stop(); idle.gotoAndPlay(4); } else { loadMovie('', this); } carga.call(); } onClipEvent (enterFrame) { var my_date = new Date(); now = my_date.getTime(); if (_root.hman_piso != piso && refresco && !_root.deathg13) { this.gotoAndStop('idle'); carga.call(); refresco = false; } if (_root.hman_piso == piso && !refresco && !_root.deathg13) { var my_date = new Date(); timewait = my_date.getTime(); refresco = true; } if (!_root.deathg13 && refresco) { if (now - timewait > 2700 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('turn'); } yataw = true; } if (this.unholster._currentframe == framehols && yataw) { this.gotoAndStop('shoot'); yataun = true; } if (this.turn._currentframe == frameturn && yataw) { trace('entrñó'); this._xscale *= -1; sentido *= -1; this.gotoAndStop('unholster'); } if (this.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe && _root.e_orden == orden) { if (_root.hman_shoot && _root.hman_piso == piso) { if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg13 = true; death = true; caida = random(2) + 1; if (!_root.fincrouch) { prob = random(2) + 1; if (prob == 1) { _root.e_orden = 2; } } if (!yataun) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr'); } } else { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss && _root.hman_piso == piso && _root.e_orden == orden) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } instance guardia21 of movieClip 2461 { onClipEvent (load) { function carga() { frameshoot = 11; framehols = 19; frameturn = 22; firstshot = true; yataw = false; yataun = false; fin_sh = false; sentido = 1; piso = 2; death = false; esteframe = 14; _root.hman_shoot = false; yrand = 0; xrand = 0; refresco = true; } if (!_root.deathg11) { stop(); } else { loadMovie('', this); } carga.call(); } onClipEvent (enterFrame) { var my_date = new Date(); now = my_date.getTime(); if (_root.hman_piso != piso && refresco && !_root.deathg11) { this.gotoAndStop('idle'); carga.call(); refresco = false; } if (_root.hman_piso == piso && !refresco && !_root.deathg11) { var my_date = new Date(); timewait = my_date.getTime(); refresco = true; } if (!_root.deathg11 && refresco) { if (now - timewait > 2500 && !yataw && _root.hman_piso == piso) { if (_root.hitman._x < this._x && sentido == -1 or _root.hitman._x > this._x && sentido == 1) { this.gotoAndStop('unholster'); } else { this.gotoAndStop('turn'); } yataw = true; } if (this.unholster._currentframe == framehols && yataw) { this.gotoAndStop('shoot'); yataun = true; } if (this.turn._currentframe == frameturn && yataw) { this._xscale *= -1; sentido *= -1; this.gotoAndStop('unholster'); } if (this.shoot._currentframe == 3 && _root.hman_piso == piso) { prob = random(10); if (_root.fincrouch && firstshot) { firstshot = false; if (prob > 4) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } else { if (prob > 3) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { _root.attachMovie('miss', 'miss1', 100); yrand = random(20) + 40; xrand = random(20) + 15; _root.miss1._x = _root.hitman._x - xrand; _root.miss1._y = _root.hitman._y - yrand; } } } if (_root.hman_frame == esteframe) { if (_root.hman_shoot && _root.hman_piso == piso) { if (_root.hman_sentido == 1 && _root.hitman._x < this._x or _root.hman_sentido == -1 && _root.hitman._x > this._x) { _root.deathg11 = true; death = true; caida = random(2) + 1; if (!yataun) { if (caida == 1) { this.gotoAndStop('death_i_ade'); } else { this.gotoAndStop('death_i_atr'); } } else { if (caida == 1) { this.gotoAndStop('death_g_ade'); } else { this.gotoAndStop('death_g_atr'); } } } } } if (_root.hman_miss && _root.hman_sentido == -1 && _root.hman_piso == piso) { _root.hman_miss = false; _root.attachMovie('miss', 'miss1', 100); if (_root.hman_sentido == 1) { _root.miss1._xscale *= -1; xrand = random(30) - 25; } else { xrand = random(30) + 25; } yrand = random(20) + 40; _root.miss1._x = this._x - xrand; _root.miss1._y = this._y - yrand; } } } } frame 42 { stop(); _root.hman_frame = 15; _root.nivel = 31; onEnterFrame = function () { if (hitman.hitTest(topefin2)) { fadeout.play(); } }; } button 2634 { on (release) { _root.gotoAndStop('compre'); } } movieClip 2638 { } movieClip 2639 { frame 1 { stop(); } frame 11 { stop(); _root.theMeniu._visible = false; } instance of movieClip 325 { onClipEvent (construct) { wynume = 'TheProfessionalsII'; wyculoare = 9310210; wyasezare = 'Vertical'; wyaliniere = 'Centru'; wypozitie = 'Jos'; wyinstructions = false; } } } frame 43 { stop(); stop(); tapa = 0; dale = false; si = true; onEnterFrame = function () { if (tapa == 0) { _root.tapa1.play(); ++tapa; } if (Key.isDown(16) && si) { si = false; nextFrame(); } if (Key.isDown(32) && dale) { ++tapa; dale = false; if (tapa == 5) { nextFrame(); } _root['tapa' + tapa].play(); } }; } frame 44 { vel_walk = 8; vel_run = 12; habilito = true; no_juego = true; skl_hitman = 30; framreload = 28; frameshot = 8; framecshot = 9; framecrouch = 12; framcreload = 25; framehit = 15; framechit = 19; frameinicio = 67; frameinout = 23; maxtiros = 5; tiroshit = 0; fincrouch = false; s_iandh = true; walk = false; hit = false; s_reload = false; unholster = false; standup = false; shoot = false; walk = false; run = false; holster = false; gun_idle = false; death = false; crouch = false; c_shoot = false; c_reload = false; c_idle = false; _root.pauza = false; _root.sunet = true; _root.pau._visible = false; hman_shoot = false; hman_piso = 2; hman_sentido = 1; hman_frame = 1; e_shoot = false; e_sentido = 0; e_piso = 0; maxpantalla = 980; minpantalla = 13; _root.miss = 0; _root.e_orden = 1; play(); } frame 45 { stop(); _root.pau._visible = false; _root.hman_frame = 1; } movieClip 2672 { } movieClip 2682 { frame 9 { stop(); } } movieClip 2704 { frame 10 { if (_root.sunet == true) { _root.bodydropP.start(); } if (_root.sunet == true) { _root.enemy_die.start(); } _root.score += 50; } frame 21 { stop(); _root.fadeout.play(); } } movieClip 2718 { frame 1 { this.onEnterFrame = function () { if (!_root.pauza) { this.play(); } else { this.stop(); } }; } frame 2 { if (_root.sunet == true) { _root.madsooter.start(); } } } movieClip 2723 { frame 1 { this.onEnterFrame = function () { if (!_root.pauza) { this.play(); } else { this.stop(); } }; } } movieClip 2733 { } movieClip 2734 { } instance boss of movieClip 2734 { onClipEvent (load) { stop(); frameturn = 32; piso = 2; sentido = -1; esteframe = 1; _root.hman_shoot = false; death = false; _root.e_orden = 1; prob = 0; yataturn = false; frameshoot = 13; framehit = 8; framecrouch = 9; shootb = false; crouchb = false; standupb = false; hitb = false; deathb = false; tiroshit = 0; tirosmax = 8; } onClipEvent (enterFrame) { if (_root.pauza == false) { if (this.turn._currentframe == frameturn) { yataturn = true; this.gotoAndStop('shoot'); } if (!deathb) { if (this.shoot._currentframe == 3) { shootb = true; if (!_root.fincrouch && !_root.crouch) { _root.e_shoot = true; _root.e_sentido = sentido; _root.e_piso = piso; _root.e_equis = this._x; } else { prob = random(4) + 1; _root['missb' + prob].play(); } } if (this.shoot._currentframe == frameshoot && shootb) { prob = random(2) + 1; trace('shoot ' + prob); if (prob == 1) { shootb = false; this.gotoAndStop('crouch'); crouchb = true; } } if (this.crouch._currentframe == framecrouch && crouchb) { prob = random(10) + 1; trace('crouch ' + prob); if (prob == 10) { this.gotoAndStop('standup'); standupb = true; } } if (this.standup._currentframe == framecrouch && standupb) { crouchb = false; standupb = false; this.gotoAndStop('shoot'); } if (_root.hman_frame == esteframe && _root.hman_shoot && yataturn) { if (!crouchb && !_root.fincrouch) { if (_root.hman_sentido == 1) { _root.hman_shoot = false; this.gotoAndStop('hit'); hitb = true; ++tiroshit; _root['nrgb' + tiroshit].gotoAndStop(3); if (tiroshit >= tirosmax) { this.gotoAndStop('death'); deathb = true; } } } else { prob = random(4) + 1; _root['missh' + prob].play(); _root.hman_shoot = false; } } if (this.hit._currentframe == framehit && hitb) { hitb = false; prob = random(10) + 1; if (prob > 8) { this.gotoAndStop('crouch'); crouchb = true; } else { this.gotoAndStop('shoot'); } } } } } } instance nrg5 of movieClip 751 { onClipEvent (load) { stop(); } } instance nrg4 of movieClip 751 { onClipEvent (load) { stop(); } } instance nrg3 of movieClip 751 { onClipEvent (load) { stop(); } } instance nrg2 of movieClip 751 { onClipEvent (load) { stop(); } } instance nrg1 of movieClip 751 { onClipEvent (load) { stop(); } } instance nrgb8 of movieClip 751 { onClipEvent (load) { stop(); } } instance nrgb7 of movieClip 751 { onClipEvent (load) { stop(); } } instance nrgb6 of movieClip 751 { onClipEvent (load) { stop(); } } instance nrgb5 of movieClip 751 { onClipEvent (load) { stop(); } } instance nrgb4 of movieClip 751 { onClipEvent (load) { stop(); } } instance nrgb3 of movieClip 751 { onClipEvent (load) { stop(); } } instance nrgb2 of movieClip 751 { onClipEvent (load) { stop(); } } instance nrgb1 of movieClip 751 { onClipEvent (load) { stop(); } } instance hitman of movieClip 860 { onClipEvent (load) { stop(); i = 0; prob = 0; cargar = false; balasini = 5; balas = 5; chiorro = 0; _root.bala1.gotoAndStop(2); _root.bala2.gotoAndStop(2); _root.bala3.gotoAndStop(2); _root.bala4.gotoAndStop(2); this._y = _root.y_abajo; _root.s_iandh = false; } onClipEvent (enterFrame) { if (_root.pauza == false) { if (this.s_iandh._currentframe == _root.frameinicio && _root.s_iandh) { _root.s_iandh = false; } if (!_root.s_iandh && !_root.death && !_root.walk && !_root.run && !_root.crouch && !_root.hit && !_root.s_reload && !_root.shoot && _root.habilito) { this.gotoAndStop('s_idle'); } if (!_root.s_iandh && !_root.death && _root.habilito) { if (this._x > _root.maxpantalla) { _root.nextFrame(); _root.e_shoot = false; this._x = _root.minpantalla + 2; } if (this._x < _root.minpantalla) { _root.prevFrame(); _root.e_shoot = false; this._x = _root.maxpantalla - 2; } if (this.hitTest(_root.topeizq) or this.hitTest(_root.topeizq2)) { toqueizq = true; } else { toqueizq = false; } if (this.hitTest(_root.topeder) or this.hitTest(_root.topeder2)) { toqueder = true; } else { toqueder = false; } if (this.hitTest(_root.worker.etopeizq) && !_root.worker.death or this.hitTest(_root.worker2.etopeizq) && !_root.worker2.death) { etoqueizqw = true; } else { etoqueizqw = false; } if (this.hitTest(_root.worker.etopeder) && !_root.worker.death or this.hitTest(_root.worker2.etopeder) && !_root.worker2.death) { etoquederw = true; } else { etoquederw = false; } if (this.hitTest(_root.guardia1.etopeizq) && !_root.guardia1.death or this.hitTest(_root.guardia2.etopeizq) && !_root.guardia2.death or this.hitTest(_root.guardia21.etopeizq) && !_root.guardia21.death) { etoqueizqg = true; } else { etoqueizqg = false; } if (this.hitTest(_root.guardia1.etopeder) && !_root.guardia1.death or this.hitTest(_root.guardia2.etopeder) && !_root.guardia2.death or this.hitTest(_root.guardia21.etopeder) && !_root.guardia21.death) { etoquederg = true; } else { etoquederg = false; } if (this.hitTest(_root.bguard1.etopeizq) && !_root.bguard1.death or this.hitTest(_root.bguard2.etopeizq) && !_root.bguard2.death) { etoqueizqb = true; } else { etoqueizqb = false; } if (this.hitTest(_root.bguard1.etopeder) && !_root.bguard1.death or this.hitTest(_root.bguard2.etopeder) && !_root.bguard2.death) { etoquederb = true; } else { etoquederb = false; } if (Key.isDown(37) && !toqueizq && !_root.shoot && !_root.crouch && !_root.s_reload && !_root.hit && !Key.isDown(39)) { _root.hman_sentido = -1; this._xscale = -_root.skl_hitman; if (!_root.run) { this.gotoAndStop('walk'); _root.walk = true; if (!etoquederw && !etoquederg && !etoquederb) { this._x -= _root.vel_walk; } } else { this.gotoAndStop('run'); _root.run = true; if (!etoquederw && !etoquederg && !etoquederb) { this._x -= _root.vel_run; } else { this._x += 8; } } } if (Key.isDown(39) && !toqueder && !_root.shoot && !_root.crouch && !_root.s_reload && !_root.hit && !Key.isDown(37)) { this._xscale = _root.skl_hitman; _root.hman_sentido = 1; if (!_root.run) { this.gotoAndStop('walk'); _root.walk = true; if (!etoqueizqw && !etoqueizqg && !etoqueizqb) { this._x += _root.vel_walk; } } else { this.gotoAndStop('run'); _root.run = true; if (!etoqueizqw && !etoqueizqg && !etoqueizqb) { this._x += _root.vel_run; } else { this._x -= 8; } } } if (!Key.isDown(39) && !Key.isDown(37)) { _root.walk = false; _root.run = false; } if (Key.isDown(83) && _root.walk) { _root.run = true; } else { if (!Key.isDown(83)) { _root.run = false; } } if (Key.isDown(68) && !_root.s_reload && !_root.c_reload && !_root.hit && !_root.shoot && !cargar) { if (!_root.crouch) { _root.shoot = true; this.gotoAndStop('shoot'); _root.hman_shoot = true; _root['bala' + balas].gotoAndStop(2); if (balas >= 12) { cargar = true; } ++balas; } else { if (_root.fincrouch && Key.isDown(40) && !_root.c_shoot) { _root.c_shoot = true; this.gotoAndStop('c_shoot'); if (!_root.hman_shoot) { _root.hman_shoot = true; } _root['bala' + balas].gotoAndStop(2); if (balas >= 12) { cargar = true; } ++balas; } } } if (this.shoot._currentframe == _root.frameshot && _root.shoot) { _root.shoot = false; _root.hman_shoot = false; if (_root.guardia1.death or _root.worker2.death or _root.worker.death or _root.guardia2.death or _root.bguard1.death or _root.bguard2.death) { _root.e_orden = 2; } } if (this.c_shoot._currentframe == _root.framecshot && _root.c_shoot) { _root.c_shoot = false; _root.hman_shoot = false; if (_root.guardia1.death or _root.worker2.death or _root.worker.death or _root.guardia2.death or _root.bguard1.death or _root.bguard2.death) { _root.e_orden = 2; } this.gotoAndStop('c_idle'); } if (Key.isDown(82) && !_root.shoot && !_root.c_shoot && !_root.hit) { if (!_root.crouch) { _root.s_reload = true; this.gotoAndStop('s_reload'); } else { if (_root.fincrouch) { _root.c_reload = true; this.gotoAndStop('c_reload'); } } } if (this.s_reload._currentframe == _root.framreload && _root.s_reload) { balas = balasini; i = balasini; while (i <= 12) { _root['bala' + i].gotoAndStop(1); cargar = false; ++i; } _root.s_reload = false; } if (this.c_reload._currentframe == _root.framcreload && _root.c_reload) { _root.c_reload = false; this.gotoAndStop('c_idle'); balas = balasini; i = balasini; while (i <= 12) { _root['bala' + i].gotoAndStop(1); cargar = false; ++i; } } if (Key.isDown(40) && !_root.crouch && !_root.s_reload && !_root.shoot && !_root.hit) { _root.crouch = true; _root.fincrouch = false; this.gotoAndStop('crouch'); } if (this.crouch._currentframe == _root.framecrouch) { _root.fincrouch = true; this.gotoAndStop('c_idle'); } if (!Key.isDown(40) && _root.crouch && !_root.c_shoot && !_root.c_reload && !_root.hit) { if (_root.fincrouch) { this.gotoAndStop('standup'); } } if (this.standup._currentframe == _root.framecrouch) { _root.crouch = false; _root.fincrouch = false; this.gotoAndStop('s_idle'); } if (_root.e_shoot && _root.hman_piso == _root.e_piso && (_root.e_sentido == -1 && this._x < _root.e_equis or _root.e_sentido == 1 && this._x > _root.e_equis)) { if ((_root.shoot or _root.c_shoot) && (this.shoot._currentframe == 1 or this.c_shoot._currentframe == 1)) { } else { if (!_root.fincrouch) { _root.s_reload = false; _root.shoot = false; _root.hit = true; if (!_root.armor) { ++_root.tiroshit; _root['nrg' + _root.tiroshit].gotoAndStop(3); } else { i = 1; while (i <= 5) { _root['nrg' + i].gotoAndStop(1); ++i; } _root.armor = false; } this.gotoAndStop('s_hit'); ++chiorro; profund = 100 + chiorro; _root.attachMovie('chorro', 'chorro' + chiorro, profund); _root['chorro' + chiorro]._x = this._x + 6; _root['chorro' + chiorro]._y = this._y - 5; _root.crouch = false; } else { _root.c_reload = false; _root.c_shoot = false; _root.hit = true; ++_root.tiroshit; _root['nrg' + _root.tiroshit].gotoAndStop(3); this.gotoAndStop('c_hit'); ++chiorro; profund = 100 + chiorro; _root.attachMovie('chorro2', 'chorro2' + chiorro, profund); _root['chorro2' + chiorro]._x = this._x + 6; _root['chorro2' + chiorro]._y = this._y + 20; } _root.e_shoot = false; } } if (this.s_hit._currentframe == _root.framehit && _root.hit) { _root.hit = false; } if (this.c_hit._currentframe == _root.framechit && _root.hit) { _root.hit = false; this.gotoAndStop('c_idle'); } if (_root.tiroshit >= _root.maxtiros) { caida = random(2) + 1; if (!_root.fincrouch or !_root.crouch) { switch (caida) { case 1: this.gotoAndStop('death_atr1'); break; case 2: this.gotoAndStop('death_atr2'); } } else { switch (caida) { case 1: this.gotoAndStop('c_death_ade'); break; case 2: this.gotoAndStop('c_death_ade'); break; case 3: this.gotoAndStop('c_death_atr'); break; case 4: this.gotoAndStop('c_death_atr'); } } _root.death = true; _root.fadeoutde.play(); } if (this.hitTest(_root.health) && _root.tiroshit != 0) { loadMovie('', _root.health); _root.healthp = true; _root['nrg' + _root.tiroshit].gotoAndStop(1); --_root.tiroshit; } if (this.hitTest(_root.armor)) { loadMovie('', _root.armor); _root.armorp = true; _root.armor = true; i = 1; while (i <= 5) { _root['nrg' + i].gotoAndStop(2); ++i; } } if (this.hitTest(_root.extbull)) { loadMovie('', _root.extbull); _root.extbullp = true; i = 1; while (i <= 12) { _root['bala' + i].gotoAndStop(1); ++i; } balasini = 1; balas = 1; } if (this.hitTest(_root.laser1.laserx) or this.hitTest(_root.laser2.laserx) or this.hitTest(_root.laser3.laserx) or this.hitTest(_root.laser4.laserx)) { ++_root.tiroshit; _root['nrg' + _root.tiroshit].gotoAndStop(3); ++_root.tiroshit; _root['nrg' + _root.tiroshit].gotoAndStop(3); ++_root.tiroshit; _root['nrg' + _root.tiroshit].gotoAndStop(3); } } } } } movieClip 2742 { frame 1 { stop(); } } button 2745 { on (release) { _root.gotoAndStop('comfin'); } } movieClip 2748 { } movieClip 2749 { frame 1 { stop(); } frame 10 { stop(); _root.theMeniu._visible = false; } instance of movieClip 325 { onClipEvent (construct) { wynume = 'TheProfessionalsII'; wyculoare = 9310210; wyasezare = 'Vertical'; wyaliniere = 'Centru'; wypozitie = 'Jos'; wyinstructions = false; } } } instance theMeniu of movieClip 924 { onClipEvent (construct) { wxnume = 'TheProfessionalsII'; wxaliniere = 'Stanga-Sus'; wxculoare = 4148819; wxdownload = true; wxpause = true; wxsound = true; } } frame 46 { stop(); tapa = 0; dale = false; si = true; onEnterFrame = function () { if (tapa == 0) { _root.tapa1.play(); ++tapa; } if (Key.isDown(16) && si) { si = false; gotoAndStop('menu'); } if (Key.isDown(32) && dale) { ++tapa; dale = false; if (tapa == 5) { gotoAndStop('menu'); } _root['tapa' + tapa].play(); } }; } frame 47 { stopAllSounds(); removeMovieClip(_root.xxc1); removeMovieClip(_root.xxc2); removeMovieClip(_root.xxc3); removeMovieClip(_root.xxc4); } frame 48 { _root.menu.removeMovieClip(); _root.gameid = 'TheProfessionalsII'; _root.best = _root.score; _root.score = 0; _root.updated = 0; _root.done = 0; done = 0; i = 1; while (i <= 100) { _root['score' + i] = null; _root['name' + i] = null; _root['escore' + i] = null; _root['ename' + i] = null; ++i; } } frame 50 { stop(); } movieClip 2755 { } movieClip 2758 { } button 2762 { on (press) { sboard.dir = 'up'; } on (release) { sboard.dir = 'stop'; } } button 2763 { on (press) { sboard.dir = 'down'; } on (release) { sboard.dir = 'stop'; } } movieClip 2770 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 2771 { } movieClip 2773 { } movieClip 2774 { } movieClip 2775 { } movieClip 2779 { } movieClip 2780 TMP6pbk6uzm9i { frame 1 { var arrScore = new Array(); mcScoreboard.sboard.dir = 'stop'; mcScoreboard.sboard.mcScoreHolder.mcScore._visible = false; mcLabel._visible = false; var main = this; xmlPlayer = new XML(); xmlPlayer.ignoreWhite = true; xmlPlayer.onLoad = function (success) { if (success) { myPlayer = xmlPlayer.firstChild.childNodes; ctr2 = 0; while (ctr2 < myPlayer.length) { thisPlayer = main.mcScoreboard.sboard.mcScoreHolder.mcScore.duplicateMovieClip('mcScore' + ctr2, ctr2); thisPlayer._y = ctr2 * thisPlayer._height; thisPlayer._visible = true; if (ctr2 % 2 > 0) { thisPlayer.gotoAndStop(2); } thisPlayer.txtNumber.text = ctr2 + 1 + ')'; thisPlayer.txtNickname.text = myPlayer[ctr2].attributes.player; thisPlayer.txtScore.text = myPlayer[ctr2].attributes.score; ++ctr2; } main.mcScoreboard.mcLoading._visible = false; main.mcScoreboard.sboard.mcScoreHolder.item = myPlayer.length; main.mcScoreboard.sboard.mcScoreHolder.speedy = 0; main.mcScoreboard.sboard.mcScoreHolder.desty = 0; main.mcScoreboard.sboard.mcScoreHolder.onEnterFrame = function () { if (this.desty < 0 && this._parent.dir == 'up') { this.desty += 10; if (this.desty > 0) { this.desty = 0; } } if (this.desty > this._parent.mcBlock._height - this.mcScore._height * this.item && this._parent.dir == 'down') { this.desty -= 10; if (this.desty < this._parent.mcBlock._height - this.mcScore._height * this.item) { this.desty = this._parent.mcBlock._height - this.mcScore._height * this.item; } } this.speedy = this.desty - this._y + this.speedy * 0.4; this._y += this.speedy; }; } }; xmlPlayer.load('http://www.freeonlinegames.com/scoreboard/getTopPlayer.php?id=' + gameID + '&rand=' + random(999999) + '&filt=1'); } } instance of movieClip 2780 TMP6pbk6uzm9i { onClipEvent (construct) { gameID = 2000003; } } movieClip 2784 { } movieClip 2785 TMP6ojzjuzm8i { frame 1 { var arrScore = new Array(); mcScoreboard.sboard.dir = 'stop'; mcScoreboard.sboard.mcScoreHolder.mcScore._visible = false; mcLabel._visible = false; var main = this; xmlPlayer = new XML(); xmlPlayer.ignoreWhite = true; xmlPlayer.onLoad = function (success) { if (success) { myPlayer = xmlPlayer.firstChild.childNodes; ctr2 = 0; while (ctr2 < myPlayer.length) { thisPlayer = main.mcScoreboard.sboard.mcScoreHolder.mcScore.duplicateMovieClip('mcScore' + ctr2, ctr2); thisPlayer._y = ctr2 * thisPlayer._height; thisPlayer._visible = true; if (ctr2 % 2 > 0) { thisPlayer.gotoAndStop(2); } thisPlayer.txtNumber.text = ctr2 + 1 + ')'; thisPlayer.txtNickname.text = myPlayer[ctr2].attributes.player; thisPlayer.txtScore.text = myPlayer[ctr2].attributes.score; ++ctr2; } main.mcScoreboard.mcLoading._visible = false; main.mcScoreboard.sboard.mcScoreHolder.item = myPlayer.length; main.mcScoreboard.sboard.mcScoreHolder.speedy = 0; main.mcScoreboard.sboard.mcScoreHolder.desty = 0; main.mcScoreboard.sboard.mcScoreHolder.onEnterFrame = function () { if (this.desty < 0 && this._parent.dir == 'up') { this.desty += 10; if (this.desty > 0) { this.desty = 0; } } if (this.desty > this._parent.mcBlock._height - this.mcScore._height * this.item && this._parent.dir == 'down') { this.desty -= 10; if (this.desty < this._parent.mcBlock._height - this.mcScore._height * this.item) { this.desty = this._parent.mcBlock._height - this.mcScore._height * this.item; } } this.speedy = this.desty - this._y + this.speedy * 0.4; this._y += this.speedy; }; } }; xmlPlayer.load('http://www.freeonlinegames.com/scoreboard/getTopPlayer.php?id=' + _root.gameID + '&rand=' + random(999999)); } } instance of movieClip 2785 TMP6ojzjuzm8i { onClipEvent (construct) { gameID = 2000003; } }




http://swfchan.com/15/73658/info.shtml
Created: 8/4 -2019 04:25:41 Last modified: 8/4 -2019 04:25:41 Server time: 18/05 -2024 03:51:13