Frame 1
totalBytes = Math.floor(_root.getBytesTotal() / 1000);
bytesLoaded = Math.floor(_root.getBytesLoaded() / 1000);
percent = Math.round((bytesLoaded * 100) / totalBytes) + "%";
Frame 5
if (bytesLoaded >= totalBytes) {
play();
} else {
gotoAndPlay (1);
}
Frame 6
stop();
scoresShown = false;
score = 0;
hits = 0;
shots = 0;
headshots = 0;
played = ("Played " + pagehits) + " times";
Selection.setFocus("myName");
scoreArray = new Array();
scoreArray.uspbody = 250;
scoreArray.usphead = 500;
scoreArray.awpbody = 450;
scoreArray.awphead = 1000;
sniper1.text = scoreArray.awphead;
sniper2.text = scoreArray.awpbody;
pistol1.text = scoreArray.usphead;
pistol2.text = scoreArray.uspbody;
Instance of Symbol 126 MovieClip "body" in Frame 6
onClipEvent (mouseDown) {
_parent.hittarget(this);
}
Instance of Symbol 126 MovieClip "head" in Frame 6
onClipEvent (mouseDown) {
_parent.hittarget(this);
}
Frame 9
function zoom() {
if (zoomed == true) {
sight.gotoAndStop(2);
} else {
sight.gotoAndStop(1);
}
}
function loadlevel() {
lc.attachMovie(gamelevel[nextLevel], "scene", "1");
allowfire = true;
allowawpfire = true;
if (nextLevel < (gamelevel.length - 1)) {
nextLevel++;
} else {
nextLevel = 0;
}
}
function lives() {
_root.loselifeSound.start();
_root.lifeleft.prevFrame();
}
function addscore() {
scoretype = (shottype + "") + targethit;
score = score + scoreArray[scoretype];
trace(((("...Added score from scoreArray[" + scoretype) + "] (") + scoreArray[scoretype]) + ")");
}
function stopIntervals() {
clearInterval(intervalID);
clearInterval(timeInterval);
}
function pauseGame() {
if (gameOn != false) {
gamePaused = true;
lc.scene.targets.stop();
ps = _root.attachMovie("pauseScreen", "pauseScreen", 11);
ps.button.useHandCursor = false;
clearInterval(timeInterval);
}
}
function resumeGame() {
gamePaused = false;
ps.removeMovieClip();
lc.scene.targets.play();
_root.timeInterval = setInterval(timeleft.timer, 1000);
}
stop();
gameOn = true;
Mouse.hide();
_root.allowuspfire = true;
_root.allowawpfire = true;
zoomlevel = 110;
scoresaved = false;
gamelevel = new Array();
gamelevel[0] = "dust";
gamelevel[1] = "oilrig";
gamelevel[2] = "aztec";
beepSound = new Sound();
beepSound.attachSound("beep");
awp_clipinsound = new Sound();
awp_clipinsound.attachSound("awp_clipin");
loselifeSound = new Sound();
loselifeSound.attachSound("loselife");
buzzersound = new Sound();
buzzersound.attachSound("buzzer");
if (!nextLevel) {
nextLevel = 0;
}
Key.addListener(Key);
Key.onKeyDown = function () {
var dwn = String.fromCharCode(this.getAscii());
if (dwn.length) {
this.broadcastMessage(("onKey" + dwn) + "Down");
}
};
Key.onKeyUp = function () {
var up = String.fromCharCode(this.getAscii());
if (up.length) {
this.broadcastMessage(("onKey" + up) + "Up");
}
};
_root.addListener(reListener);
Key.addListener(this);
this.onKeyrUp = function () {
if ((gamePaused != true) && (gameOn != false)) {
uspammo.gotoAndStop(1);
awpammo.gotoAndStop(12);
awp_clipinsound.start();
}
};
this.onKeypUp = function () {
if (gamePaused != true) {
pauseGame();
} else {
resumeGame();
}
};
loadLevel();
Instance of Symbol 230 MovieClip "sight" in Frame 9
onClipEvent (enterFrame) {
if (_root.gamePaused != true) {
this._x = _root._xmouse;
this._y = _root._ymouse;
_parent.mask._y = this._y;
_parent.mask._x = this._x;
if (_root.shottype == "awp") {
sc._x = sc._x - (sc._x + _root._xmouse);
sc._y = sc._y - (sc._y + _root._ymouse);
}
if (key.isDown(32) && (zoomnow == true)) {
zoomnow = false;
zoom();
} else if (!key.isDown(32)) {
zoomnow = true;
}
}
}
Instance of Symbol 233 MovieClip "usp" in Frame 9
onClipEvent (load) {
yoffset = this._y;
myarea = this._height;
}
onClipEvent (enterFrame) {
if (_root.gamePaused != true) {
this._x = _parent.sight._x;
this._y = ((_root._ymouse / 400) * myarea) + yoffset;
}
}
Frame 10
_quality = "HIGH";
gameOn = false;
stop();
Mouse.show();
stopIntervals();
txt = gamelevel[nextLevel].toUpperCase();
thumbs.gotoAndStop(gamelevel[nextLevel]);
Frame 11
_quality = "HIGH";
gameOn = false;
stop();
stopIntervals();
nextLevel = 0;
scoretxt = score;
percenttxt = Math.round((hits / shots) * 100);
headshotstxt = headshots;
Mouse.show();
if (scoresShown == false) {
buzzersound.start();
}
if (score > 0) {
resultStr = (((((("num=" + _root.num) + "&playername=") + playername) + "&accuracy=") + percenttxt) + "&score=") + scoretxt;
loadVariablesNum ("http://www.mikebarrax.f2s.com/camperstrike/updatescores.php?" + resultStr, 0, "GET");
}
Symbol 11 MovieClip [FPSMeter] Frame 1
#initclip 2
FPSMeterClass = function () {
this.listenersList = [];
this.init();
};
Object.registerClass("FPSMeter", FPSMeterClass);
FPSMeterClass.prototype.init = function () {
if (this._targetInstanceName.length > 0) {
this.FPSMeterTarget = (this.targetInstance = this._parent[this._targetInstanceName]);
if (this.FPSMeterTarget instanceof TextField) {
this._visible = false;
this.past = 0;
this.now = 0;
this.fps = 0;
this.pass = 0;
this.delta = 0;
this.population = new Array(this.populationSize);
} else {
trace("FPSMeter Component: no target TextField found!");
}
}
};
FPSMeterClass.prototype.onEnterFrame = function () {
this.now = getTimer();
this.delta = this.now - this.past;
if (this.modus) {
this.population[this.pass] = this.delta;
this.pass++;
if (this.pass >= this.populationSize) {
var sum = 0;
for (var measurement in this.population) {
sum = sum + this.population[measurement];
}
this.fps = int((1000 * this.populationSize) / sum);
this.sendFPSMeterEvent(this.fps);
this.pass = 0;
}
} else {
this.fps = int(1000 / this.delta);
this.sendFPSMeterEvent(this.fps);
}
this.past = this.now;
};
FPSMeterClass.prototype.getFPS = function () {
return(this.fps);
};
FPSMeterClass.prototype.addListener = function (ref) {
this.listenersList[ref] = ref;
};
FPSMeterClass.prototype.removeListener = function (ref) {
delete this.listenersList[ref];
};
FPSMeterClass.prototype.sendFPSMeterEvent = function (value) {
this.FPSMeterTarget.text = (this.prefix + value) + this.suffix;
for (var i in this.listenersList) {
this.listenersList[i].getFPS(value);
}
};
#endinitclip
Symbol 13 MovieClip [scoretable] Frame 1
nocacheURL = "http://www.mikebarrax.f2s.com/camperstrike/showscores.php?" + Math.floor(Math.random() * 99999);
this.loadVariables(nocacheURL);
this.onData = function () {
scoresXML = new XML();
scoresXML.load("http://www.mikebarrax.f2s.com/camperstrike/scores.xml?" + Math.floor(Math.random() * 99999));
scoresXML.ignoreWhite = true;
scoresXML.onLoad = function (success) {
if (success) {
rootNode = scoresXML.firstChild;
_root.num = rootNode.firstChild.firstChild;
scores = rootNode.childNodes;
i = 1;
while (i < scores.length) {
_root.trophy.topplayer = scores[1].firstChild.nextSibling.firstChild;
sc_id = scores[i].firstChild.firstChild;
sc_playername = scores[i].firstChild.nextSibling.firstChild;
sc_accuracy = scores[i].firstChild.nextSibling.nextSibling.firstChild;
sc_score = scores[i].firstChild.nextSibling.nextSibling.nextSibling.firstChild;
item = attachMovie("scoreitem", "scoreitem" + i, i);
item.rank = i;
item.playername = ("" + sc_playername) + "";
item.accuracy = sc_accuracy + "%";
item.score = sc_score;
item._y = ypos;
ypos = ypos + 20;
i++;
}
_root.scorepane.getScrollContent()._height;
_root.scorepane.refreshPane();
} else {
trace("...failed to load scoresXML");
}
};
};
Symbol 21 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
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._width = (this.deadPreview._height = 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 i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
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 funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
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, inner);
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 tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((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 || (!global)) {
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 textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
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 myColor = new Color(skinMCRef);
myColor.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 i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 34 MovieClip 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");
Symbol 44 MovieClip 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");
Symbol 53 MovieClip 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");
Symbol 54 MovieClip [UpArrow] Frame 1
stop();
Symbol 54 MovieClip [UpArrow] Frame 2
stop();
Symbol 54 MovieClip [UpArrow] Frame 3
stop();
Symbol 61 MovieClip 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");
Symbol 68 MovieClip 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");
Symbol 73 MovieClip 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");
Symbol 74 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 82 MovieClip 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");
Symbol 90 MovieClip 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");
Symbol 98 MovieClip 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");
Symbol 99 MovieClip [DownArrow] Frame 1
stop();
Symbol 99 MovieClip [DownArrow] Frame 2
stop();
Symbol 99 MovieClip [DownArrow] Frame 3
stop();
Symbol 102 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 103 MovieClip [FScrollBarSymbol] Frame 1
#initclip 3
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 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.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var tmp = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
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.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
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;
tmp = Math.min(tmp, this.maxPos);
this.setScrollPosition(Math.max(tmp, 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 wasEnabled = this.enable;
if (enabledFlag && (!wasEnabled)) {
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) && (wasEnabled)) {
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.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 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 delt = this.smallScroll;
if (inc != "one") {
delt = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var newPos = (this.getScrollPosition() + (mode * delt));
if (newPos > this.maxPos) {
newPos = this.maxPos;
} else if (newPos < this.minPos) {
newPos = this.minPos;
}
this.setScrollPosition(newPos);
};
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.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 c = this.controller;
c.scrollPosition = Math.round(((c.maxPos - c.minPos) * (this._y - c.scrollTop)) / c.trackHeight) + c.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 pos = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxhscroll));
} else {
var pos = this.textField.scroll;
var pageSize = (this.textField.bottomScroll - this.textField.scroll);
this.setScrollProperties(pageSize, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(pos, 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
Symbol 106 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 106 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 110 MovieClip [FScrollPaneSymbol] Frame 1
#initclip 4
function FScrollPaneClass() {
function boolToString(str) {
if (str == "false") {
return(false);
}
if (str == "true") {
return(true);
}
return(str);
}
this.init();
this.width = this._width;
this.height = this._height;
this._xscale = (this._yscale = 100);
this.contentWidth = (this.contentHeight = 0);
if (this.hScroll == undefined) {
this.hScroll = (this.vScroll = "auto");
this.dragContent = false;
}
this.offset = new Object();
this.vScroll = boolToString(this.vScroll);
this.hScroll = boolToString(this.hScroll);
this.attachMovie("FScrollBarSymbol", "hScrollBar_mc", 100, {hostStyle:this.styleTable});
this.hScrollBar_mc.setHorizontal(true);
this.hScrollBar_mc.setSmallScroll(5);
this.hScrollBar_mc.setChangeHandler("onScroll", this);
this.attachMovie("FScrollBarSymbol", "vScrollBar_mc", 99, {hostStyle:this.styleTable});
this.vScrollBar_mc.setSmallScroll(5);
this.vScrollBar_mc.setChangeHandler("onScroll", this);
this.setSize(this.width, this.height);
if (this.scrollContent != "") {
this.setScrollContent(this.scrollContent);
}
this.setDragContent(this.dragContent);
}
FScrollPaneClass.prototype = new FUIComponentClass();
Object.registerClass("FScrollPaneSymbol", FScrollPaneClass);
FScrollPaneClass.prototype.getScrollContent = function () {
return(this.content_mc);
};
FScrollPaneClass.prototype.getPaneWidth = function () {
return(this.width);
};
FScrollPaneClass.prototype.getPaneHeight = function () {
return(this.height);
};
FScrollPaneClass.prototype.getScrollPosition = function () {
var xPos = ((this.hScrollBar_mc == undefined) ? 0 : (this.hScrollBar_mc.getScrollPosition()));
var yPos = ((this.vScrollBar_mc == undefined) ? 0 : (this.vScrollBar_mc.getScrollPosition()));
return({x:xPos, y:yPos});
};
FScrollPaneClass.prototype.setScrollContent = function (target) {
this.offset.x = 0;
this.offset.y = 0;
if (this.content_mc != undefined) {
if (target != this.content_mc) {
this.content_mc._visible = false;
this.content_mc.removeMovieClip();
this.content_mc.unloadMovie();
}
}
if (typeof(target) == "string") {
this.attachMovie(target, "tmp_mc", 3);
this.content_mc = this.tmp_mc;
} else if (target == undefined) {
this.content_mc.unloadMovie();
} else {
this.content_mc = target;
}
this.localToGlobal(this.offset);
this.content_mc._parent.globalToLocal(this.offset);
this.content_mc._x = this.offset.x;
this.content_mc._y = this.offset.y;
var contentBounds = this.content_mc.getBounds(this);
this.offset.x = -contentBounds.xMin;
this.offset.y = -contentBounds.yMin;
this.localToGlobal(this.offset);
this.content_mc._parent.globalToLocal(this.offset);
this.content_mc._x = this.offset.x;
this.content_mc._y = this.offset.y;
this.contentWidth = this.content_mc._width;
this.contentHeight = this.content_mc._height;
this.content_mc.setMask(this.mask_mc);
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setSize = function (w, h) {
if (((arguments.length < 2) || (isNaN(w))) || (isNaN(h))) {
return(undefined);
}
super.setSize(w, h);
this.width = Math.max(w, 60);
this.height = Math.max(h, 60);
this.boundingBox_mc._xscale = 100;
this.boundingBox_mc._yscale = 100;
this.boundingBox_mc._width = this.width;
this.boundingBox_mc._height = this.height;
this.setHandV();
this.initScrollBars();
if (this.mask_mc == undefined) {
this.attachMovie("FBoundingBoxSymbol", "mask_mc", 3000);
}
this.mask_mc._xscale = 100;
this.mask_mc._yscale = 100;
this.mask_mc._width = this.hWidth;
this.mask_mc._height = this.vHeight;
this.mask_mc._alpha = 0;
};
FScrollPaneClass.prototype.setScrollPosition = function (x, y) {
x = Math.max(this.hScrollBar_mc.minPos, x);
x = Math.min(this.hScrollBar_mc.maxPos, x);
y = Math.max(this.vScrollBar_mc.minPos, y);
y = Math.min(this.vScrollBar_mc.maxPos, y);
this.hScrollBar_mc.setScrollPosition(x);
this.vScrollBar_mc.setScrollPosition(y);
};
FScrollPaneClass.prototype.refreshPane = function () {
this.setScrollContent(this.content_mc);
};
FScrollPaneClass.prototype.loadScrollContent = function (url, handler, location) {
this.content_mc.removeMovieClip();
this.content_mc.unloadMovie();
this.content_mc._visible = 0;
this.loadContent.duplicateMovieClip("loadTemp", 3);
this.dupeFlag = true;
this.contentLoaded = function () {
this.loadReady = false;
this.content_mc = this.loadTemp;
this.refreshPane();
this.executeCallBack();
};
this.setChangeHandler(handler, location);
this.loadTemp.loadMovie(url);
};
FScrollPaneClass.prototype.setHScroll = function (prop) {
this.hScroll = prop;
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setVScroll = function (prop) {
this.vScroll = prop;
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setDragContent = function (dragFlag) {
if (dragFlag) {
this.boundingBox_mc.useHandCursor = true;
this.boundingBox_mc.onPress = function () {
this._parent.startDragLoop();
};
this.boundingBox_mc.tabEnabled = false;
this.boundingBox_mc.onRelease = (this.boundingBox_mc.onReleaseOutside = function () {
this._parent.pressFocus();
this._parent.onMouseMove = null;
});
} else {
delete this.boundingBox_mc.onPress;
this.boundingBox_mc.useHandCursor = false;
}
};
FScrollPaneClass.prototype.setSmallScroll = function (x, y) {
this.hScrollBar_mc.setSmallScroll(x);
this.vScrollBar_mc.setSmallScroll(y);
};
FScrollPaneClass.prototype.setHandV = function () {
if ((((this.contentHeight - this.height) > 2) && (this.vScroll != false)) || (this.vScroll == true)) {
this.hWidth = this.width - this.vScrollBar_mc._width;
} else {
this.hWidth = this.width;
}
if ((((this.contentWidth - this.width) > 2) && (this.hScroll != false)) || (this.hScroll == true)) {
this.vHeight = this.height - this.hScrollBar_mc._height;
} else {
this.vHeight = this.height;
}
};
FScrollPaneClass.prototype.startDragLoop = function () {
this.tabFocused = false;
this.myOnSetFocus();
this.lastX = this._xmouse;
this.lastY = this._ymouse;
this.onMouseMove = function () {
this.scrollXMove = this.lastX - this._xmouse;
this.scrollYMove = this.lastY - this._ymouse;
this.scrollXMove = this.scrollXMove + this.hScrollBar_mc.getScrollPosition();
this.scrollYMove = this.scrollYMove + this.vScrollBar_mc.getScrollPosition();
this.setScrollPosition(this.scrollXMove, this.scrollYMove);
if ((this.scrollXMove < this.hScrollBar_mc.maxPos) && (this.scrollXMove > this.hScrollBar_mc.minPos)) {
this.lastX = this._xmouse;
}
if ((this.scrollYMove < this.vScrollBar_mc.maxPos) && (this.scrollYMove > this.vScrollBar_mc.minPos)) {
this.lastY = this._ymouse;
}
this.updateAfterEvent();
};
};
FScrollPaneClass.prototype.initScrollBars = function () {
this.hScrollBar_mc._y = this.height - this.hScrollBar_mc._height;
this.hScrollBar_mc.setSize(this.hWidth);
this.hScrollBar_mc.setScrollProperties(this.hWidth, 0, this.contentWidth - this.hWidth);
this.vScrollBar_mc._visible = ((this.hWidth == this.width) ? false : true);
this.vScrollBar_mc._x = this.width - this.vScrollBar_mc._width;
this.vScrollBar_mc.setSize(this.vHeight);
this.vScrollBar_mc.setScrollProperties(this.vHeight, 0, this.contentHeight - this.vHeight);
this.hScrollBar_mc._visible = ((this.vHeight == this.height) ? false : true);
};
FScrollPaneClass.prototype.onScroll = function (component) {
var pos = component.getScrollPosition();
var XorY = ((component._name == "hScrollBar_mc") ? "x" : "y");
if (component._name == "hScrollBar_mc") {
this.content_mc._x = (-pos) + this.offset.x;
} else {
this.content_mc._y = (-pos) + this.offset.y;
}
};
FScrollPaneClass.prototype.myOnKeyDown = function () {
var posX = this.hScrollBar_mc.getScrollPosition();
var posY = this.vScrollBar_mc.getScrollPosition();
if (this.hScrollBar_mc.maxPos > this.hScrollBar_mc.minPos) {
if (Key.isDown(37)) {
this.setScrollPosition(posX - 3, posY);
} else if (Key.isDown(39)) {
this.setScrollPosition(posX + 3, posY);
}
}
if (this.vScrollBar_mc.maxPos > this.vScrollBar_mc.minPos) {
if (Key.isDown(38)) {
this.setScrollPosition(posX, posY - 3);
} else if (Key.isDown(40)) {
this.setScrollPosition(posX, posY + 3);
} else if (Key.isDown(34)) {
this.setScrollPosition(posX, posY + this.vScrollBar_mc.pageSize);
} else if (Key.isDown(33)) {
this.setScrollPosition(posX, posY - this.vScrollBar_mc.pageSize);
}
}
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 103 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 110 MovieClip [FScrollPaneSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
Instance of Symbol 107 MovieClip "loadContent" in Symbol 110 MovieClip [FScrollPaneSymbol] Frame 1
onClipEvent (load) {
if (this._parent.loadReady) {
this._parent.contentLoaded();
delete this._parent.loadReady;
} else if (this._name != "loadContent") {
this._parent.loadReady = true;
}
}
Symbol 121 MovieClip [explosion1] Frame 15
this.removeMovieClip();
Symbol 130 MovieClip Frame 1
if (_parent.headshot == false) {
score = _parent.topscore;
} else {
score = _root.hsscore;
}
Symbol 145 MovieClip Frame 1
function nextTarget() {
rnd = random(3);
_parent.gotoAndPlay(_parent.anim[rnd]);
gotoAndStop (1);
}
function checkshotallowed() {
if ((st == "awp") && (_root.allowawpfire == true)) {
shotallowed = true;
} else if ((st == "usp") && (_root.allowuspfire == true)) {
shotallowed = true;
} else {
shotallowed = false;
}
}
function hittarget(me) {
hitit = me.hitTest(_root._xmouse, _root._ymouse, true);
if (hitit) {
checkshotallowed();
if (shotallowed == true) {
trace("the shot is allowed");
_parent.stop();
_root.targethit = me._name;
trace("_root.targethit = " + _root.targethit);
_root.hits++;
_root.addscore();
if (_root.targethit == "head") {
_root.headshots++;
gotoAndPlay (20);
} else {
gotoAndPlay (2);
}
} else {
trace("the shot is NOT allowed");
}
}
}
stop();
st = _root.shottype;
Instance of Symbol 126 MovieClip "body" in Symbol 145 MovieClip Frame 1
onClipEvent (mouseDown) {
_parent.hittarget(this);
}
Instance of Symbol 126 MovieClip "head" in Symbol 145 MovieClip Frame 1
onClipEvent (mouseDown) {
_parent.hittarget(this);
}
Symbol 145 MovieClip Frame 19
nextTarget();
Symbol 145 MovieClip Frame 35
nextTarget();
Symbol 150 MovieClip Frame 1
anim = new Array();
anim[0] = "one";
anim[1] = "two";
anim[2] = "three";
Symbol 150 MovieClip Frame 234
_root.lives();
Symbol 150 MovieClip Frame 476
_root.lives();
Symbol 150 MovieClip Frame 697
_root.lives();
Symbol 157 MovieClip Frame 1
anim = new Array();
anim[0] = "one";
anim[1] = "two";
anim[2] = "three";
Symbol 157 MovieClip Frame 209
_root.lives();
Symbol 157 MovieClip Frame 396
_root.lives();
Symbol 157 MovieClip Frame 579
_root.lives();
Symbol 164 MovieClip Frame 1
anim = new Array();
anim[0] = "one";
anim[1] = "two";
anim[2] = "three";
Symbol 164 MovieClip Frame 209
_root.lives();
Symbol 164 MovieClip Frame 396
_root.lives();
Symbol 164 MovieClip Frame 579
_root.lives();
Symbol 169 MovieClip [bullethole] Frame 3
t++;
if (t > 15) {
play();
t = 0;
} else {
gotoAndPlay (1);
}
Symbol 169 MovieClip [bullethole] Frame 20
this.removeMovieClip();
Symbol 201 Button
on (release) {
getURL ("http://www.barraxworld.co.uk", "_blank");
}
Symbol 207 Button
on (release) {
playername = myName.text;
if (((playername != null) && (playername.length <= 10)) && (playername != "")) {
stopAllSounds();
gotoAndStop (9);
} else if (!playername) {
errortxt = "Please enter a name\n10 characters max";
}
}
on (rollOut) {
errortxt = "";
}
Symbol 228 Button
on (press) {
if (gamePaused != true) {
fire();
}
}
Symbol 230 MovieClip Frame 1
function bullethole() {
id++;
this.attachMovie("explosion1", "explosion", 1);
_root.lc.scene.attachMovie("bulletHole", "bulletHole" + id, id);
bh = _root.lc.scene["bulletHole" + id];
bh._x = _root.lc.scene._xmouse;
bh._y = _root.lc.scene._ymouse;
}
function awpammo() {
if (aa.reload == false) {
reload = false;
aa.prevFrame();
aaremaining = aa._currentframe - 2;
} else {
reload = true;
}
}
function fireawp() {
awpammo();
if ((reload == false) && (_root.awp_ammo == true)) {
_root.allowawpfire = false;
awpsound.start();
bullethole();
firebutton.enabled = false;
this.onEnterFrame = function () {
t++;
if (t == (delay / 2)) {
awpdeploysound.start();
}
if (t >= delay) {
_root.allowawpfire = true;
firebutton.enabled = true;
t = 0;
delete this.onEnterFrame;
}
};
} else {
_root.allowawpfire = false;
noammosound.start();
}
}
function fireusp() {
if (_root.usp_ammo == true) {
uspsound.start();
bullethole();
ua.nextFrame();
_parent.usp.play();
_root.allowuspfire = true;
} else {
_root.allowuspfire = false;
noammosound.start();
}
}
function fire() {
_root.shots++;
if (_root.shottype == "awp") {
fireawp();
} else {
fireusp();
}
}
function zoom() {
zoomsound.start();
play();
}
stop();
_quality = "HIGH";
_root.shottype = "usp";
_parent.usp._visible = true;
delay = 50;
weight = 2;
aa = _root.awpammo;
ua = _root.uspammo;
id = 200;
sc = _root.lc.scene;
lc = _root.lc.scene;
lc._xscale = 53.7;
lc._yscale = 53.7;
lc._x = 0;
lc._y = 0;
awpsound = new Sound();
awpsound.attachSound("awp");
uspsound = new Sound();
uspsound.attachSound("usp");
zoomsound = new Sound();
zoomsound.attachSound("zoom");
awpdeploysound = new Sound();
awpdeploysound.attachSound("awpdeploy");
noammosound = new Sound();
noammosound.attachSound("outtaammo");
Symbol 230 MovieClip Frame 2
stop();
_quality = "LOW";
_parent.usp._visible = false;
_root.shottype = "awp";
lc._xscale = _root.zoomlevel;
lc._yscale = _root.zoomlevel;
Symbol 233 MovieClip Frame 1
stop();
Symbol 240 MovieClip Frame 1
reload = false;
_root.awp_ammo = false;
gotoAndStop (12);
Symbol 240 MovieClip Frame 2
reload = true;
Symbol 240 MovieClip Frame 12
reload = false;
_root.awp_ammo = true;
Symbol 247 MovieClip Frame 1
function timer() {
timeDisp = timeDisp - 1;
if (timeDisp < 6) {
_parent.beepSound.start();
}
if (timeDisp == 0) {
if (_root.nextlevel != 0) {
_root.play();
} else {
_root.gotoAndPlay("summary");
}
}
}
_root.timeInterval = setInterval(timer, 1000);
Symbol 253 MovieClip Frame 1
gotoAndStop (7);
Symbol 253 MovieClip Frame 2
_root.gotoAndPlay("summary", 1);
Symbol 257 MovieClip Frame 1
_root.usp_ammo = true;
stop();
Symbol 257 MovieClip Frame 13
_root.usp_ammo = false;
Symbol 266 Button
on (release) {
gotoAndPlay (9);
}
Symbol 271 Button
on (release) {
stopAllSounds();
gotoAndPlay (6);
}