Frame 1
_root.nbrOfImages = 32;
_root.imBorder = 2;
Frame 2
function affiliatesXmlOnLoad(success) {
if (success) {
this.extractAffiliateData();
}
}
function extractAffiliateData() {
var _local2 = affiliatesXml.firstChild.childNodes;
var _local3 = _local2[0].attributes.aff_id;
_global.affiliateID = _local3;
setLinks();
}
function setLinks() {
_global.vcCasinoUrl = "http://banners.victor.com/processing/clickthrgh.asp?btag=" + _global.affiliateID;
_global.vcCasinoLinkEvent = "LoadSection::vcCasinoLink" + _global.affiliateID;
_global.vcCasinoBannerEvent = "LoadSection::vcCasinoBanner" + _global.affiliateID;
}
stop();
var _xmlLocation = "xml/affiliates.xml";
var affiliatesXml = new XML();
affiliatesXml.ignoreWhite = true;
affiliatesXml.load(_xmlLocation);
affiliatesXml.onLoad = mx.utils.Delegate.create(this, affiliatesXmlOnLoad);
onEnterFrame = function () {
var _local2 = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
trace(_local2);
preloader_mc.gotoAndStop(_local2);
preloader_mc.percentage.text = _local2.toString() + "%";
if (_local2 == 100) {
delete onEnterFrame;
gotoAndPlay ("start");
}
};
Instance of Symbol 36 MovieClip "preloader_mc" in Frame 2
onClipEvent (enterFrame) {
var bTotal = _parent.getBytesTotal();
var bLoaded = _parent.getBytesLoaded();
bLoadedText = Math.round(bLoaded / 1000) + " kb";
_root.percentage = (bLoaded / bTotal) * 100;
percTxt = Math.floor(_root.percentage) + " %";
gotoAndStop(Math.floor(_root.percentage));
trace(_root._framesloaded);
if (_root.percentage == 100) {
_parent.gotoAndPlay("start");
} else {
var ld = _root._framesloaded;
if (ld > 6) {
ld = 6;
}
if (ld > 2) {
_parent.gotoAndStop(ld);
}
}
}
Instance of Symbol 48 MovieClip [NPBTracker] "npbTracker" in Frame 2
//component parameters
onClipEvent (construct) {
autohide = true;
clientID = 24;
instance = "Victor Chandler Chip Challenge";
passkey = "v1ct0rch4ndl3r";
productID = 53;
}
Frame 19
stop();
Symbol 22 MovieClip Frame 1
stop();
Symbol 22 MovieClip Frame 44
stop();
this._parent._parent.wellDone();
Symbol 23 MovieClip [ball] Frame 7
this.stop();
Symbol 23 MovieClip [ball] Frame 17
this._parent.resetLevel();
Symbol 28 MovieClip [Cheats] Frame 1
stop();
Symbol 28 MovieClip [Cheats] Frame 61
stop();
Symbol 33 MovieClip Frame 10
stop();
Symbol 36 MovieClip Frame 1
stop();
Symbol 48 MovieClip [NPBTracker] Frame 1
#initclip 9
Object.registerClass("NPBTracker", npb.NPBTracker);
#endinitclip
Symbol 341 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 342 MovieClip [__Packages.highScoresNew] Frame 0
class highScoresNew
{
var cpid, scoreText, submitURL, hs;
function highScoresNew (cpid) {
this.cpid = cpid;
scoreText = "";
submitURL = "http://www.npbmedia.com/npbhighscores/newUpdateScoreFileSudoku.php";
hs = new LoadVars();
}
function sendScore(username, score, updates, handler, ref) {
trace("enter send Score");
trace("score = " + score);
hs.obj = ref;
hs.call = "set";
hs.cpid = cpid;
trace(("passing " + updates) + " to php...");
hs.acceptEmail = updates;
hs.username = username;
hs.score = score;
hs.addRequestHeader("Accept-Language", "fs");
hs.sendAndLoad(submitURL, hs, "POST");
hs.onLoad = handler;
}
function loadScores(handler) {
hs.obj = this;
hs.call = "get";
hs.cpid = cpid;
hs.withID = "true";
hs.lineDelim = newline;
hs.addRequestHeader("Accept-Language", "fs");
hs.sendAndLoad(submitURL, hs, "POST");
hs.onLoad = handler;
}
function getScores() {
scoreText = str_replace(scoreText, " - ", " , ");
var _local2 = 0;
while (_local2 < 10) {
scoreText = str_replace(scoreText, _local2 + ".", _local2 + ",");
_local2++;
}
scoreText = str_replace(scoreText, newline, ",");
var _local3 = scoreText.split(",");
return(_local3);
}
function str_replace(haystack, needle, replace) {
var _local1 = haystack.split(needle);
var _local2 = _local1.join(replace);
return(_local2);
}
}
Symbol 343 MovieClip [__Packages.com.npb.controls.Control] Frame 0
class com.npb.controls.Control extends MovieClip
{
var state, frames, gotoAndStop, _currentframe, nextFrame, prevFrame, onEnterFrame, dispatchEvent;
function Control () {
super();
mx.events.EventDispatcher.initialize(this);
}
function onLoad() {
waitForDependencies(dependencies.Initialise, mx.utils.Delegate.create(this, initialise));
}
function initialise() {
if (!state) {
state = labels[0];
}
indexFrameLabels();
}
function indexFrameLabels() {
frames = new Object();
var _local3 = labels.length;
while (_local3--) {
var _local2 = labels[_local3];
gotoAndStop(_local2);
frames[_local2] = _currentframe;
}
gotoAndStop(frames[state]);
action();
}
function action() {
if (!_enabled) {
(gotoAndStop(frames[state]));// not popped
}
if (_currentframe < frames[state]) {
(nextFrame());// not popped
} else if (_currentframe > frames[state]) {
(prevFrame());// not popped
} else {
if (enabled != _enabled) {
enabled = _enabled;
}
onEnterFrame = null;
var _local2 = dependencies[state];
var _local3 = mx.utils.Delegate.create(this, envokeFrameAction);
waitForDependencies(_local2, _local3);
}
}
function waitForDependencies(list, func) {
if (list instanceof Array) {
var waitID;
waitID = setInterval(function () {
var _local1 = true;
for (var _local2 in list) {
if (list == undefined) {
_local1 = false;
}
}
if (_local1 == true) {
clearInterval(waitID);
func();
}
}, 10);
} else {
func();
}
}
function envokeFrameAction() {
dispatchEvent({target:this, type:"frame" + state, state:state});
if (this["onFrame" + state] instanceof Function) {
this["onFrame" + state]();
}
}
function setState(state, jump) {
if (enabled) {
if (jump) {
gotoAndStop(frames[state]);
}
this.state = state;
onEnterFrame = action;
}
}
var enabled = true;
var dependencies = new Object();
var _enabled = true;
var labels = [];
}
Symbol 344 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 345 MovieClip [__Packages.com.npb.controls.Button] Frame 0
class com.npb.controls.Button extends com.npb.controls.Control
{
var label, dependencies, onDragOver, onDragOut, onReleaseOutside, _onPressActions, _onReleaseActions, setState, _onRollOverActions, _onRollOutActions, _width, startDrag, stopDrag, _dragable, _enabled, enabled;
function Button () {
super();
dependencies.Initialise = new Array(label);
}
function initialise() {
super.initialise();
onRelease = (_onRelease);
onPress = (_onPress);
onRollOver = (_onRollOver);
onRollOut = (_onRollOut);
onDragOver = onRollOver;
onDragOut = onRollOut;
onReleaseOutside = onRelease;
onPress = (function () {
this.setState("Down");
});
if (label) {
label.addEventListener("update", this);
}
}
function _onPress() {
var _local2 = _onPressActions.length;
while (_local2--) {
_onPressActions[_local2].apply(this);
}
}
function set onPress(f) {
if (f != onPress) {
if (!_onPressActions) {
_onPressActions = new Array();
}
_onPressActions.push(f);
}
//return(onPress);
}
function get onPress() {
return(_onPress);
}
function _onRelease() {
var _local2 = _onReleaseActions.length;
setState("Over");
while (_local2--) {
_onReleaseActions[_local2].apply(this);
}
}
function _onRollOver() {
var _local2 = _onRollOverActions.length;
setState("Over");
while (_local2--) {
_onRollOverActions[_local2].apply(this);
}
}
function _onRollOut() {
var _local2 = _onRollOutActions.length;
setState("Off");
while (_local2--) {
_onRollOutActions[_local2].apply(this);
}
}
function set onRelease(f) {
if (f != onRelease) {
if (!_onReleaseActions) {
_onReleaseActions = new Array();
}
_onReleaseActions.push(f);
}
//return(onRelease);
}
function get onRelease() {
return(_onRelease);
}
function get onRollOver() {
return(_onRollOver);
}
function set onRollOver(f) {
if (f != onRollOver) {
if (!_onRollOverActions) {
_onRollOverActions = new Array();
}
_onRollOverActions.push(f);
}
//return(onRollOver);
}
function get onRollOut() {
return(_onRollOut);
}
function set onRollOut(f) {
if (f != onRollOut) {
if (!_onRollOutActions) {
_onRollOutActions = new Array();
}
_onRollOutActions.push(f);
}
//return(onRollOut);
}
function clearHandler(e) {
var _local2 = ("_" + e) + "Actions";
this[_local2] = new Array();
}
function removeHandler(e, f) {
var _local3 = ("_" + e) + "Actions";
if (f != undefined) {
var _local2 = this[_local3].length;
while (_local2--) {
if (_local3[_local2] == f) {
_local3[_local2].splice(_local2, 1);
}
}
} else {
delete this[_local3];
}
}
function update() {
centerLabel();
}
function centerLabel() {
label._x = (_width - label._width) / 2;
}
function set dragable(dragable) {
if (dragable) {
onPress = (startDrag);
onRelease = (stopDrag);
} else {
removeHandler("onPress", startDrag);
removeHandler("onRelease", startDrag);
}
_dragable = dragable;
//return(this.dragable);
}
function get dragable() {
return(_dragable);
}
function setEnabled(e) {
_enabled = e;
if (!_enabled) {
setState("Disabled");
} else {
enabled = true;
setState("Off");
}
}
function getEnabled() {
return(_enabled);
}
var labels = ["Off", "Over", "Down", "Disabled"];
var useHandCursor = false;
}
Symbol 346 MovieClip [__Packages.com.npb.controls.Label] Frame 0
class com.npb.controls.Label extends com.npb.controls.Control
{
var textField, dependencies, dispatchEvent, __get__embedFonts, _x, _width, _parent;
function Label () {
super();
dependencies.Initialise = new Array(textField);
}
function initialise() {
super.initialise();
autosize = (true);
}
function set autosize(autosize) {
textField.autoSize = autosize;
dispatchEvent({type:"update"});
//return(this.autosize);
}
function get autosize() {
return((textField.autoSize ? true : false));
}
function set align(align) {
textFormat.align = align;
dispatchEvent({type:"update"});
//return(this.align);
}
function get align() {
return(textFormat.align);
}
function set textFormat(textFormat) {
textField.setNewTextFormat(textFormat);
dispatchEvent({type:"update"});
//return(this.textFormat);
}
function get textFormat() {
return(textField.getTextFormat());
}
function set embedFonts(embedFonts) {
textField.embedFonts = embedFonts;
dispatchEvent({type:"update"});
//return(__get__embedFonts());
}
function set text(txt) {
__text = txt;
dispatchEvent({type:"update"});
//return(text);
}
function get text() {
return(__text);
}
function position() {
if (!(align === "center")) {
} else {
_x = (_parent._width - _width) / 2;
}
}
var password = false;
var __text = "";
}
Symbol 347 MovieClip [__Packages.com.npb.controls.ToggleButton] Frame 0
class com.npb.controls.ToggleButton extends com.npb.controls.Button
{
var __set__onRelease, _selected, state, onEnterFrame, action, _onRollOverActions, enabled, setState, _onRollOutActions;
function ToggleButton () {
super();
}
function initialise() {
super.initialise();
__set__onRelease(setSelected);
_selected = false;
}
function setSelected(sel) {
if (sel != undefined) {
_selected = !sel;
}
if (_selected) {
state = "Off";
} else {
state = "Selected";
}
_selected = !_selected;
onEnterFrame = action;
}
function _onRollOver() {
var _local2 = _onRollOverActions.length;
if (enabled) {
if (state != "Selected") {
setState("Over");
}
}
while (_local2--) {
_onRollOverActions[_local2].apply(this);
}
}
function _onRollOut() {
var _local2 = _onRollOutActions.length;
if (state != "Selected") {
setState("Off");
}
while (_local2--) {
_onRollOutActions[_local2].apply(this);
}
}
function set selected(val) {
_selected = !val;
setSelected();
//return(selected);
}
function get selected() {
return(_selected);
}
var labels = ["Off", "Over", "Down", "Selected"];
}
Symbol 37 MovieClip [__Packages.npb.NPBTracker] Frame 0
class npb.NPBTracker extends MovieClip
{
var trackerVersion, trackerVersiontxt, eventCount, npbso, watch, autohide, _visible, productID, clientID, passkey, createEmptyMovieClip, instance, status, display, machineID, _url;
function NPBTracker () {
super();
trackerVersion = "1.2";
trackerVersiontxt.text = trackerVersion;
setStatus("NPB Tracker", true);
eventCount = 0;
AsBroadcaster.initialize(this);
npbso = getSharedObject();
System.security.allowDomain(SCRIPT_DOMAIN);
_global.npbTracker = this;
}
function onLoad() {
if (!init()) {
watch("productID", init);
watch("clientID", init);
watch("passkey", init);
} else {
if (autohide) {
_visible = false;
}
recordEvent("load");
}
}
function getSharedObject() {
return(SharedObject.getLocal("NPBTracker" + productID, "/"));
}
function init() {
if (productID < 0) {
setStatus("Error: Product ID not specified", true);
return(false);
}
if (clientID == -1) {
setStatus("Error: ClientID not specified", true);
return(false);
}
if (passkey == "") {
setStatus("Error: Passkey not specified", true);
return(false);
}
setStatus("Initialised", true);
return(true);
}
function onRelease() {
if (isDebug) {
recordEvent("Test Event");
}
}
function recordEvent(eventName) {
if (isDisabled()) {
setStatus("Error: This Tracker has been remotely disabled");
return(undefined);
}
if (!isValid) {
setStatus("Error: Invalid clientid / password combination");
return(undefined);
}
if (!isValidConnection) {
setStatus("Error: Connection unavailable");
return(undefined);
}
var me = this;
var sendEvent = createEmptyMovieClip("sendEvent" + eventCount, eventCount);
var e = sendEvent.createEmptyMovieClip("e", 0);
eventCount++;
e.eventName = eventName;
e.instance = instance;
e.productID = productID;
e.domain = domain;
e.clientID = clientID;
e.trackerversion = trackerVersion;
e.passkey = passkey;
e.machineid = getMachineID();
sendEvent.onData = function () {
var interval;
var timeout = 0;
trace("sendEvent.onData");
interval = setInterval(function () {
if ((timeout++) < 100) {
if (e.eventid || ((timeout++) > 100)) {
clearInterval(interval);
trace("SendEvent::onData");
me.setStatus((("recieve:'" + eventName) + "':") + e.eventid);
me.setStatus("recieve:'isvalid':" + e.isvalid);
me.setStatus("recieve:'machineid':" + e.machineid);
if (me.machineID != Number(e.machineid)) {
me.setMachineID(e.machineid);
}
if (e.disableDate != undefined) {
var dd = e.disableDate.split("|");
var checkBack = new Date(dd[0], dd[1] - 1, dd[2], 12, 0, 0);
me.disable(checkBack);
}
me.isValid = e.isvalid;
me.broadcastMessage("onData", sendEvent);
}
} else {
this.isValidConnection = false;
}
}, 100);
};
if (isDev) {
SCRIPT_URL = TEST_SCRIPT_URL;
}
trace("NPBTracker::recordEvent" + SCRIPT_URL);
e.loadMovie(SCRIPT_URL, "POST");
setStatus((("send:'" + eventName) + "':") + eventCount);
}
function setStatus(str, reset) {
if (reset) {
status = str + newline;
} else {
status = status + (str + newline);
}
display.scroll = display.maxscroll;
}
function getMachineID() {
machineID = npbso.data.machineID;
if (machineID == "") {
trace("no machine id set");
machineID = -1;
}
return(Number(machineID));
}
function setMachineID(id) {
npbso.data.machineID = id;
npbso.flush();
}
function isDisabled() {
trace("Checking Enable");
if (npbso.data.disabled != undefined) {
var now = new Date();
if (now.getTime() < npbso.data.disabled.getTime()) {
trace(npbso.data.disabled);
return(true);
}
trace("time elaspsed: " + npbso.data.disabled);
enable();
}
return(false);
}
function disable(d) {
npbso.data.disabled = d;
npbso.flush();
trace("disabled");
}
function enable() {
npbso.data.disabled = null;
delete npbso.data.disabled;
npbso.flush();
delete npbso;
npbso = getSharedObject();
trace("enabled");
}
var domain = _url;
var SCRIPT_PROTOCOL = "http://";
var SCRIPT_DOMAIN = "www.npbmedia.com";
var TEST_SCRIPT_DOMAIN = "devserver2";
var SCRIPT_URL = (npb.NPBTracker.prototype.SCRIPT_PROTOCOL + npb.NPBTracker.prototype.SCRIPT_DOMAIN) + "/tracker/tracker_recorder.php";
var TEST_SCRIPT_URL = (npb.NPBTracker.prototype.SCRIPT_PROTOCOL + npb.NPBTracker.prototype.TEST_SCRIPT_DOMAIN) + "/tracker_1_1/tracker_recorder.php";
var isDev = false;
var isDebug = true;
var isValid = true;
var isValidConnection = true;
}
Symbol 63 MovieClip [MenuItem_btn_ScalextricURL] Frame 1
#initclip 26
Object.registerClass("MenuItem_btn_ScalextricURL", com.npb.controls.Button);
#endinitclip
Symbol 72 MovieClip [menuItem_btn_instructions] Frame 1
#initclip 10
Object.registerClass("menuItem_btn_instructions", com.npb.controls.Button);
#endinitclip
Symbol 75 MovieClip [menuItem_btn_leaderboard] Frame 1
#initclip 11
Object.registerClass("menuItem_btn_leaderboard", com.npb.controls.Button);
#endinitclip
Symbol 78 MovieClip [menuItem_btn_sendfriend] Frame 1
#initclip 12
Object.registerClass("menuItem_btn_sendfriend", com.npb.controls.Button);
#endinitclip
Symbol 81 MovieClip [menuItem_btn_vccasino] Frame 1
#initclip 13
Object.registerClass("menuItem_btn_vccasino", com.npb.controls.Button);
#endinitclip
Symbol 90 MovieClip [MenuItem_btn_play] Frame 1
#initclip 14
Object.registerClass("MenuItem_btn_play", com.npb.controls.Button);
#endinitclip
Symbol 116 MovieClip Frame 1
this.onRelease = function () {
_global.npbTracker.recordEvent(_global.vcCasinoBannerEvent);
getURL (_global.vcCasinoUrl, "_blank");
};
Symbol 117 MovieClip Frame 1
play_btn.onRelease = function () {
_global.npbTracker.recordEvent("LoadSection::PlayGame");
_parent.play();
};
Symbol 117 MovieClip Frame 11
stop();
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 15
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 15
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 15
stop();
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 15
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 15
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 15
stop();
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 15
stop();
Symbol 150 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 15
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 15
stop();
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 15
stop();
Symbol 159 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 2
stop();
Symbol 159 MovieClip Frame 3
stop();
Symbol 159 MovieClip Frame 4
stop();
Symbol 159 MovieClip Frame 5
stop();
Symbol 159 MovieClip Frame 6
stop();
Symbol 159 MovieClip Frame 7
stop();
Symbol 159 MovieClip Frame 8
stop();
Symbol 159 MovieClip Frame 9
stop();
Symbol 159 MovieClip Frame 10
stop();
Symbol 179 MovieClip Frame 101
stop();
_parent._parent._stopped = false;
Symbol 200 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 2
stop();
Symbol 228 MovieClip Frame 1
function setPosition() {
this._parent.ballMC.ballIN.gotoAndStop(1);
this._parent.ballMC.gotoAndPlay(1);
this._parent.ballMC._x = 70;
this._parent.ballMC._y = 70;
this._parent.ball.dx = 0;
this._parent.ball.dy = 0;
}
stop();
trace("should have countdown");
this._parent.level = 1;
setPosition();
this._parent.createGate(92, 298);
Symbol 228 MovieClip Frame 2
stop();
trace("ENTERING LEVEL 2!!!!!!!!!!!!!!!!!!!!!");
this._parent.level = 2;
setPosition();
this._parent.createGate(342, 330);
Symbol 228 MovieClip Frame 3
stop();
this._parent.level = 3;
setPosition();
this._parent.createSwitch(55, 309);
this._parent.createGate(225, 288);
Symbol 228 MovieClip Frame 4
stop();
this._parent.level = 4;
setPosition();
this._parent.createSwitch(85, 336);
this._parent.wall.b1.gotoAndStop(1);
this._parent.createGate(607, 190);
Symbol 228 MovieClip Frame 5
stop();
this._parent.level = 5;
setPosition();
this._parent.createSwitch(192, 304);
this._parent.wall.b1.gotoAndStop(1);
this._parent.createGate(630, 72);
Symbol 228 MovieClip Frame 6
stop();
this._parent.level = 6;
setPosition();
this._parent.createSwitch(588, 40);
this._parent.wall.b1.gotoAndStop(1);
this._parent.createGate(600, 313);
Symbol 228 MovieClip Frame 7
stop();
this._parent.level = 7;
setPosition();
this._parent.createSwitch(183, 46);
this._parent.wall.b1.gotoAndStop(1);
this._parent.createGate(587, 321);
Symbol 228 MovieClip Frame 8
stop();
this._parent.level = 8;
setPosition();
this._parent.createSwitch(599, 46);
this._parent.createGate(607, 172);
this._parent.wall.b1.gotoAndStop(1);
this._parent.wall.animal.removeMovieClip();
Symbol 228 MovieClip Frame 9
stop();
this._parent.level = 9;
setPosition();
this._parent.createSwitch(315, 287);
this._parent.createGate(203, 315);
this._parent.wall.b1.gotoAndStop(1);
this._parent.wall.animal.removeMovieClip();
Symbol 228 MovieClip Frame 10
stop();
this._parent.level = 10;
setPosition();
this._parent.createSwitch(582, 309);
this._parent.createGate(592, 57);
this._parent.wall.b1.gotoAndStop(1);
this._parent.wall.animal.removeMovieClip();
Symbol 228 MovieClip Frame 11
stop();
delete this._parent.handler.onEnterFrame;
lost_txt.text = ("You lost " + this._parent.lives) + " lives";
lastTime.text = ("Your time is: " + _global.proper_time) + "sec";
this._parent.ballMC.removeMovieClip();
this._parent.gate.removeMovieClip();
this._parent.switcher.removeMovieClip();
this._parent.timerMC.removeMovieClip();
Symbol 230 MovieClip Frame 1
function stopTakeOff() {
main.stopTakeOff();
}
function removeLis() {
trace("removeLis_removeLis_removeLis_removeLis");
}
function checkCheat() {
k = Key.getCode();
switch (k) {
case 86 :
_cheat_str = _cheat_str + "v";
break;
case 67 :
_cheat_str = _cheat_str + "c";
break;
case 65 :
_cheat_str = _cheat_str + "a";
break;
case 83 :
_cheat_str = _cheat_str + "s";
break;
case 73 :
_cheat_str = _cheat_str + "i";
break;
case 78 :
_cheat_str = _cheat_str + "n";
break;
case 79 :
_cheat_str = _cheat_str + "o";
}
if (_cheat_str.length > 8) {
_cheat_str = _cheat_str.substring(1, cheatText.length);
}
trace(_cheat_str);
if (_cheat_str == "vccasino") {
doCheat();
}
}
function doCheat() {
trace("cheat");
Key.removeListener(cheatListener);
wall.patterns.swapDepths(wall.getNextHighestDepth());
wall.patterns.removeMovieClip();
wall.c.gotoAndPlay("cheats");
}
function gameOnEnterFrame() {
if (_stopped) {
return(undefined);
}
ball.dy = ball.dy + gravity;
ballMC._x = ballMC._x + (ball.dx * friction);
ballMC._y = ballMC._y + ball.dy;
ballMC._rotation = ballMC._rotation + rot;
rot = rot * 0.975;
if (Key.isDown(38)) {
if (_pressing != "up") {
_pressing = "up";
main.playTakeOff();
}
ball.dy = ball.dy - accel;
} else if (Key.isDown(40)) {
if (_pressing != "down") {
_pressing = "down";
main.playTakeOff();
}
ball.dy = ball.dy + accel;
} else if (Key.isDown(37)) {
if (_pressing != "left") {
_pressing = "left";
main.playTakeOff();
}
ball.dx = ball.dx - accel2;
rot = rot - 1;
} else if (Key.isDown(39)) {
if (_pressing != "right") {
_pressing = "right";
main.playTakeOff();
}
ball.dx = ball.dx + accel2;
rot = rot + 1;
}
if (ballMC._currentframe == 7) {
canWin = true;
} else {
canWin = false;
}
obj = {x:ballMC._x, y:ballMC._y};
this.localToGlobal(obj);
if (((wall.hitTest(obj.x - ball.radius, obj.y - ball.radius, true) || (wall.hitTest(obj.x + ball.radius, obj.y - ball.radius, true))) || (wall.hitTest(obj.x - ball.radius, obj.y + ball.radius, true))) || (wall.hitTest(obj.x + ball.radius, obj.y + ball.radius, true))) {
trace("Wall collision");
canWin = false;
updatePosition();
updateLives();
main.playDeathSound();
delete this.onEnterFrame;
}
if (ballMC.hitTest(gate) && (canWin)) {
trace("finish");
main.deleteInterval();
main.playWinSound();
ballMC.ballIN.play();
ballMC._x = gate._x;
ballMC._y = gate._y;
delete this.onEnterFrame;
}
}
function calcScore() {
trace("enter calcScore");
if (level == 1) {
trace("setting score to ---");
score_mc.score_txt.text = "---";
return(undefined);
}
tScore = _global.proper_time / 10;
trace("current level = " + level);
trace((("setting score to: " + level) + " ") + tScore);
score_mc.score_txt.text = getScoreString(level, tScore);
if (level > chipChallange.data.bestLevel) {
trace("level greater than best level");
chipChallange.data.bestLevel = level;
chipChallange.data.bestTime = tScore;
score_mc.best_txt.text = getScoreString(level, tScore);
} else if (level == chipChallange.data.bestLevel) {
trace("level equal to best level");
if (tScore < chipChallange.data.bestTime) {
chipChallange.data.bestTime = tScore;
score_mc.best_txt.text = getScoreString(level, tScore);
}
}
}
function updateLives() {
trace("enter updateLives");
lives++;
main.ingame.lives_txt.text = _totLives - lives;
timerMC.lost_lives_txt.text = "lost lives: " + lives;
if (lives >= _totLives) {
badLuck();
}
}
function badLuck() {
main.deleteInterval();
timerMC.removeMovieClip();
main.stopLoop();
_stopped = true;
trace("enter bad Luck");
main.gotoAndStop("badLuck");
main.panel_mc.tryAgain_btn.onRelease = restartGame;
}
function restartGame() {
trace("enter restartGame");
delete this.timerMC.onEnterFrame;
main.gotoAndPlay(79);
}
function wellDone() {
main.stopLoop();
background_mc.bg.play();
wall.patterns._alpha = 0;
switcher._alpha = 0;
gate._alpha = 0;
_stopped = true;
trace("enter wellDone");
trace("current level = " + level);
if (level == 10) {
main.gotoAndStop("congratulations");
trace("proper time :::::::::::::::: " + _global.proper_time);
trace("main.panel_mc.score_txt.text :::::::::::::::: " + main.panel_mc.score_txt);
main.panel_mc.score_txt.text = (_global.proper_time / 10) + " seconds";
calcScore();
_global.finalScore = _global.proper_time;
delete this.timerMC.onEnterFrame;
return(undefined);
}
main.gotoAndStop("wellDone");
main.panel_mc.level_txt.text = level.toString();
main.panel_mc.nextLevel_btn.onRelease = nextLevel;
Key.addListener(main.t_obj);
main.t_obj.onKeyDown = function () {
if (Key.getAscii() == 32) {
trace("space bar!!!");
nextLevel();
}
};
}
function submitScore() {
main.gotoAndStop("submitScore");
}
function nextLevel() {
main.ingame.startTimer();
trace("enter nextLevel");
Key.removeListener(main.t_obj);
main.gotoAndPlay("game");
wall.gotoAndStop((level + 1).toString());
background_mc.gotoAndStop(level + 1);
if ((level + 1) == 9) {
Key.addListener(cheatListener);
cheatListener.onKeyDown = checkCheat;
}
resetLevel();
_stopped = false;
}
function getScoreString(level, time) {
trace("TIEMIMEIEM " + time);
return(((("level " + level) + " - ") + time) + "sec");
}
stop();
trace(this);
_stopped = true;
laserPlaying = false;
cheat = false;
main = _parent._parent;
trace("this ===== " + this);
score_mc = _parent.score_mc;
_global.score = 0;
_global.proper_time = 0;
main.ingame.time_txt.text = "0";
_totLives = 5;
main.ingame.lives_txt.text = _totLives;
score_mc.score_txt.text = _global.score.toString();
main.t_obj = new Object();
keyUpListener = new Object();
cheatListener = new Object();
_cheat_str = "";
Key.addListener(keyUpListener);
keyUpListener.onKeyUp = stopTakeOff;
main.startLoop();
main.sendToAFriend_btn.onRelease = function () {
this._parent.gotoAndStop("sendToAFriend");
};
chipChallange = SharedObject.getLocal("ChipChallange");
if (chipChallange.data.bestLevel == undefined) {
trace("UNDEFINED");
chipChallange.data.bestLevel = new Number();
chipChallange.data.bestTime = new Number();
chipChallange.data.bestLevel = 1;
score_mc.best_txt.text = "---";
chipChallange.flush();
} else {
trace("SHARED");
score_mc.best_txt.text = getScoreString(chipChallange.data.bestLevel, chipChallange.data.bestTime);
}
_lockroot = true;
moveTheBall = function () {
trace("enter moveTheBall");
this.attachMovie("ball", "ballMC", 100);
ballMC._x = 70;
ballMC._y = 70;
ball = new Object();
ball.mc = this.ballMC;
ball.x = ball.mc._x;
ball.y = ball.mc._y;
ball.radius = 20;
ball.dx = 0;
ball.dy = 0;
gravity = 0.1;
friction = 0.8;
accel = 0.65;
accel2 = 0.8;
rot = 0;
scale = 0;
trace("background at: " + background_mc._currentframe);
this.onEnterFrame = gameOnEnterFrame;
};
playKeySound();
updatePosition = function () {
trace("enter updatePosition");
ball.mc.play();
ball.dx = 0;
ball.dy = 0;
};
createGate = function (x, y) {
trace("enter createGate");
calcScore();
this.attachMovie("gate", "gate", 1);
this.gate._x = x;
this.gate._y = y;
};
createSwitch = function (x, y) {
trace("enter createSwitch");
this.attachMovie("switcher", "switcher", 6);
this.switcher._x = x;
this.switcher._y = y;
this.switcher.onEnterFrame = function () {
if (ballMC.hitTest(switcher) && (canWin)) {
this._parent.main.stopLoopLaser();
laserPlaying = false;
this._parent.wall.patterns.b1.gotoAndStop(2);
switcher.removeMovieClip();
}
};
};
createCumber = function () {
trace("enter createCumber");
this.wall.attachMovie("animal", "animal", 21);
trace((this.wall.animal._x + ", ") + this.wall.animal._y);
point = {};
point.x = this.wall.animal._x;
point.y = this.wall.animal._y;
this.wall.localToGlobal(point);
handler.onEnterFrame = function () {
point = {};
point.x = this._parent.wall.animal._x;
point.y = this._parent.wall.animal._y;
trace(point.x);
this._parent.wall.localToGlobal(point);
a = ballMC._x - point.x;
b = ballMC._y - point.y;
distance = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
if (distance < 800) {
this._parent.wall.animal._rotation = (Math.atan2(a, b) / Math.PI) * -180;
this._parent.wall.animal._x = this._parent.wall.animal._x + ((-0.5 * Math.sin((this._parent.wall.animal._rotation * Math.PI) / 180)) * 1.2);
this._parent.wall.animal._y = this._parent.wall.animal._y + ((0.5 * Math.cos((this._parent.wall.animal._rotation * Math.PI) / 180)) * 1.2);
}
};
};
resetLevel = function () {
trace("enter resetLevel");
if ((wall.patterns.b1 != undefined) && (!laserPlaying)) {
main.startLoopLaser();
laserPlaying = true;
}
main.startLoop();
if (this.timerMC.onEnterFrame == undefined) {
timerOEF();
}
ballMC._x = 70;
ballMC._y = 70;
ball.dx = 0;
ball.dy = 0;
wall.animal._x = 0;
wall.animal._y = 0;
wall.animal.gotoAndPlay(1);
wall.patterns._alpha = 100;
gate._alpha = 100;
switcher._alpha = 100;
gotoAndStop (1);
this.onEnterFrame = gameOnEnterFrame;
canWin = true;
};
moveTheBall();
main.ingame.startTimer();
lives = 0;
timerMC.lost_lives_txt.text = "lost lives: " + lives;
Symbol 246 MovieClip Frame 1
function startTimer() {
trace("enter start timer");
trace("interval : " + _parent.intervalID);
trace("interval undefined: " + (_parent.intervalID == undefined));
if (_parent.intervalID != undefined) {
_parent.deleteInterval();
}
freq = _parent.intervalFrequency;
_parent.intervalID = setInterval(mx.utils.Delegate.create(this, timer), freq);
}
function timer() {
if (game_mc._stopped) {
return(undefined);
}
trace("_global.proper_time = " + _global.proper_time);
_global.proper_time++;
t_time = _global.proper_time;
time_txt.text = (t_time / 10).toString();
if ((t_time % 10) == 0) {
time_txt.text = time_txt.text + ".0";
}
}
Symbol 253 MovieClip [MenuItem_btn_nextLevel] Frame 1
#initclip 15
Object.registerClass("MenuItem_btn_nextLevel", com.npb.controls.Button);
#endinitclip
Symbol 263 MovieClip [MenuItem_btn_tryAgain] Frame 1
#initclip 16
Object.registerClass("MenuItem_btn_tryAgain", com.npb.controls.Button);
#endinitclip
Symbol 267 MovieClip Frame 1
vcCasino_btn.onRelease = function () {
_global.npbTracker.recordEvent(_global.vcCasinoLinkEvent);
getURL (_global.vcCasinoUrl, "_blank");
};
Symbol 270 MovieClip [MenuItem_btn_playAgain] Frame 1
#initclip 17
Object.registerClass("MenuItem_btn_playAgain", com.npb.controls.Button);
#endinitclip
Symbol 273 MovieClip [MenuItem_btn_submitScore] Frame 1
#initclip 18
Object.registerClass("MenuItem_btn_submitScore", com.npb.controls.Button);
#endinitclip
Symbol 278 MovieClip Frame 1
submitScore_btn.onRelease = function () {
_parent.gotoAndPlay("submitScore");
};
playAgain_btn.onRelease = function () {
_parent.gotoAndPlay(79);
};
vcCasino_btn.onRelease = function () {
_global.npbTracker.recordEvent(_global.vcCasinoLinkEvent);
getURL (_global.vcCasinoUrl, "_blank");
};
Symbol 287 MovieClip [MenuItem_btn_send] Frame 1
#initclip 19
Object.registerClass("MenuItem_btn_send", com.npb.controls.Button);
#endinitclip
Symbol 294 MovieClip [MenuItem_IconExit] Frame 1
#initclip 20
Object.registerClass("MenuItem_IconExit", com.npb.controls.Button);
#endinitclip
Symbol 303 MovieClip [MenuItem_btn_back] Frame 1
#initclip 21
Object.registerClass("MenuItem_btn_back", com.npb.controls.Button);
#endinitclip
Symbol 306 MovieClip [MenuItem_btn_sendAnother] Frame 1
#initclip 22
Object.registerClass("MenuItem_btn_sendAnother", com.npb.controls.Button);
#endinitclip
Symbol 308 MovieClip Frame 1
function form_check_email(email) {
if (email.indexOf(" ") != -1) {
gotoAndStop ("error");
errorMsg.text = "PLEASE ENTER A VALID EMAIL ADDRESS!";
return(false);
}
if (email.indexOf(".") == -1) {
gotoAndStop ("error");
errorMsg.text = "PLEASE ENTER A VALID EMAIL ADDRESS!";
return(false);
}
if (email.length < 6) {
gotoAndStop ("error");
errorMsg.text = "PLEASE ENTER A VALID EMAIL ADDRESS!";
return(false);
}
if (email.indexOf("@") == -1) {
gotoAndStop ("error");
errorMsg.text = "PLEASE ENTER A VALID EMAIL ADDRESS!";
return(false);
}
if (email.lastIndexOf(".") < email.indexOf("@")) {
gotoAndStop ("error");
errorMsg.text = "PLEASE ENTER A VALID EMAIL ADDRESS!";
return(false);
}
if (email.indexOf("@") == 0) {
gotoAndStop ("error");
errorMsg.text = "PLEASE ENTER A VALID EMAIL ADDRESS!";
return(false);
}
return(true);
}
stop();
name_txt._visible = true;
email_txt._visible = true;
f1name_txt._visible = true;
f1email_txt._visible = true;
Selection.setFocus(focusVar);
name_txt.tabIndex = 1;
email_txt.tabIndex = 2;
f1name_txt.tabIndex = 3;
f1email_txt.tabIndex = 4;
close_btn.onRelease = function () {
_parent.gotoAndStop("instructions");
};
form_submit.onRelease = function () {
if (name_txt.text.length == 0) {
gotoAndStop ("error");
errorMsg.text = "PLEASE ENTER A VALID NAME!";
return(undefined);
}
if (email_txt.text.length == 0) {
gotoAndStop ("error");
errorMsg.text = "PLEASE ENTER A VALID EMAIL ADDRESS!";
return(undefined);
}
if (f1name_txt.text.length == 0) {
gotoAndStop ("error");
errorMsg.text = "PLEASE ENTER YOUR FRIEND'S NAME!";
return(undefined);
}
if (f1email_txt.text.length == 0) {
gotoAndStop ("error");
errorMsg.text = "PLEASE SUBMIT YOUR FRIEND'S EMAIL ADDRESS!";
return(undefined);
}
if (!form_check_email(email_txt.text)) {
return(undefined);
}
hs = new LoadVars();
hs.onLoad = function (success) {
if (success) {
gotoAndStop ("sent");
errorMsg.text = "YOUR EMAIL HAS BEEN SENT!";
} else {
gotoAndStop ("error");
errorMsg.text = "UNFORTUNATELY, THE SERVER HAS REFUSED A CONNECTION. PLEASE TRY AGAIN!";
}
};
hs.fromname = name_txt.text;
hs.fromemail = email_txt.text;
hs.name1 = f1name_txt.text;
hs.email1 = f1email_txt.text;
hs.addRequestHeader("Accept-Language", "fs");
hs.sendAndLoad("http://hosting.npbmedia.com/vc/airball/sendMultiMail2.php", hs, "POST");
};
Symbol 308 MovieClip Frame 10
stop();
name_txt._visible = false;
email_txt._visible = false;
f1name_txt._visible = false;
f1email_txt._visible = false;
back_btn.onRelease = function () {
gotoAndStop ("form");
};
Symbol 308 MovieClip Frame 20
stop();
_global.npbTracker.recordEvent("LoadSection::SendToAFriend");
name_txt._visible = false;
email_txt._visible = false;
f1name_txt._visible = false;
f1email_txt._visible = false;
f1name_txt.text = "";
f1email_txt.text = "";
focusVar = "f1name_txt";
sendAgain_btn.onRelease = function () {
gotoAndStop ("form");
};
Symbol 311 MovieClip [MenuItem_btn_next] Frame 1
#initclip 23
Object.registerClass("MenuItem_btn_next", com.npb.controls.Button);
#endinitclip
Symbol 314 MovieClip [MenuItem_btn_previous] Frame 1
#initclip 24
Object.registerClass("MenuItem_btn_previous", com.npb.controls.Button);
#endinitclip
Symbol 318 MovieClip Frame 1
function showLeaderBoard() {
function handle(success) {
if (success) {
this.obj.scoreText = this.highScoresText;
trace(this.highScoresText);
showScores();
}
}
function showScores() {
trace("enter SHOWW");
displayScores.gotoAndStop("loaded");
for (var _local1 in displayScores) {
if (displayScores[_local1] instanceof TextField) {
displayScores[_local1].removeTextField();
}
}
a = scores.getScores();
i = page * 40;
while (i < ((page * 40) + 40)) {
t = displayScores.createTextField("txt" + i, i, startX + 10, (startY + 7) + ((((i - (page * 40)) / 4) * 3) * vSpacing), 35, 25);
t.text = a[i] + ".";
t.selectable = false;
t.embedFonts = true;
t.antiAliasType = "advanced";
t.setTextFormat(my_fmt);
t = displayScores.createTextField("txt" + (i + 2), i + 2, startX + 40, (startY + 7) + ((((i - (page * 40)) / 4) * 3) * vSpacing), 140, 25);
t.text = a[i + 2];
if (t.text == " empty ") {
t.text = " -----";
}
t.selectable = false;
t.embedFonts = true;
t.antiAliasType = "advanced";
t.setTextFormat(my_fmt);
tscore = displayScores.createTextField("txt" + (i + 1), i + 1, startX + 160, (startY + 7) + ((((i - (page * 40)) / 4) * 3) * vSpacing), 95, 25);
if (a[i + 1] == " 9999 ") {
tscore.text = " -----";
} else {
t_score = scores.str_replace(a[i + 1], " ", "");
tScore = Number(t_score);
tScore = tScore / 10;
tscore.text = " " + tScore.toString();
}
trace(tscore.text);
tscore.selectable = false;
tscore.embedFonts = true;
tscore.antiAliasType = "advanced";
tscore.setTextFormat(my_fmt);
i = i + 4;
}
}
trace("enter AshowLeaderBoard");
var page = 0;
var startX = 25;
var startY = -35;
var vSpacing = 5;
var my_fmt = new TextFormat();
my_fmt.font = "my font";
my_fmt.size = 11;
my_fmt.color = 5329233 /* 0x515151 */;
var scores = new highScoresNew(18);
scores.loadScores(handle);
displayScores.forward_btn.onRelease = function () {
if (page > 8) {
page = 0;
} else {
page++;
}
showScores();
};
displayScores.back_btn.onRelease = function () {
if (page < 1) {
page = 9;
} else {
page--;
}
showScores();
};
}
stop();
_global.npbTracker.recordEvent("LoadSection::Leaderboard");
close_btn.onRelease = function () {
_parent.gotoAndStop("instructions");
};
showLeaderBoard();
Symbol 323 MovieClip [MenuItem_btn_TickToggle_light] Frame 1
#initclip 25
Object.registerClass("MenuItem_btn_TickToggle_light", com.npb.controls.ToggleButton);
#endinitclip
Symbol 330 MovieClip Frame 1
function test() {
_parent.gotoAndStop("leaderboard");
}
function form_check_email(email) {
if (email.indexOf(" ") != -1) {
trace("error1");
return(false);
}
if (email.indexOf(".") == -1) {
trace("error2");
return(false);
}
if (email.length < 6) {
trace("error3");
return(false);
}
if (email.indexOf("@") == -1) {
trace("error4");
return(false);
}
if (email.lastIndexOf(".") < email.indexOf("@")) {
trace("error5");
return(false);
}
if (email.indexOf("@") == 0) {
trace("error6");
return(false);
}
return(true);
}
stop();
updates_box = "y";
_sent = false;
updates.onRelease = function () {
if (updates_box == "y") {
this.gotoAndStop("Selected");
updates_box = "n";
trace(updates_box);
} else {
this.gotoAndStop("off");
updates_box = "y";
trace(updates_box);
}
};
submit_btn.onRelease = function () {
if (_sent) {
return(undefined);
}
valid = true;
if ((name_txt.text == "") || (name_txt.text == "please enter nickname")) {
name_txt.text = "please enter nickname";
valid = false;
}
if ((email_txt.text.length == 0) || (email_txt.text == "please enter a valid email address")) {
email_txt.text = "please enter a valid email address";
valid = false;
} else if (!form_check_email(email_txt.text)) {
email_txt.text = "please enter a valid email address";
valid = false;
}
if (valid) {
trace("valid!!!");
var _local2 = new highScoresNew(18);
_local2.sendScore(name_txt.text, _global.finalScore, updates_box, test);
_sent = true;
}
};
Instance of Symbol 63 MovieClip [MenuItem_btn_ScalextricURL] in Symbol 331 MovieClip Frame 35
on (release) {
getURL ("http://www.nakedpenguinboy.com", "_blank");
}
Symbol 331 MovieClip Frame 65
function deleteInterval() {
trace("enter deleteInterval |||||||||||||||||||||||||||||");
clearInterval(intervalID);
intervalID = undefined;
}
var intervalID;
var intervalFrequency = 100;
_global.proper_time = 0;
Symbol 331 MovieClip Frame 90
function startLoop() {
if (my_sound != undefined) {
my_sound.stop();
my_sound = undefined;
}
my_sound = new Sound();
my_sound.attachSound("loop.mp3");
my_sound.start(0, 99);
}
function stopLoop() {
my_sound.stop();
my_sound = undefined;
}
function startLoopLaser() {
trace("START LOOP LASER!!!!!!!!!!!!!");
if (l1_sound != undefined) {
trace("RETURN!!!!!!!!!!!!!");
return(undefined);
}
l1_mc = createEmptyMovieClip("l1", this.getNextHighestDepth());
l1_sound = new Sound(l1_mc);
l1_sound.attachSound("loopLaser");
l1_sound.setVolume(40);
l1_sound.start(0, 999);
}
function stopLoopLaser() {
if (l1_sound != undefined) {
l1_sound.stop();
l1_mc.removeMovieClip();
l1_sound = (l1_mc = undefined);
}
playKeySound();
}
function playKeySound() {
k1_mc = createEmptyMovieClip("k1", this.getNextHighestDepth());
k1_sound = new Sound(k1_mc);
k1_sound.attachSound("keySound");
k1_sound.setVolume(70);
k1_sound.start();
}
function playDeathSound() {
d1_mc = createEmptyMovieClip("d1", this.getNextHighestDepth());
d1_sound = new Sound(d1_mc);
d1_sound.attachSound("deathSound");
d1_sound.setVolume(60);
d1_sound.start();
}
function playWinSound() {
w1_mc = createEmptyMovieClip("w1", this.getNextHighestDepth());
w1_sound = new Sound(w1_mc);
w1_sound.attachSound("winSound");
w1_sound.setVolume(60);
w1_sound.start();
}
function playAmbienceSound() {
ambience_mc = createEmptyMovieClip("ambience1", this.getNextHighestDepth());
ambience_sound = new Sound(ambience_mc);
ambience_sound.attachSound("ambienceSound");
ambience_sound.setVolume(60);
ambience_sound.start(0, 999);
}
function playTakeOff() {
s1_mc = createEmptyMovieClip("t1", this.getNextHighestDepth());
s1_sound = new Sound(s1_mc);
s1_sound.attachSound("takeOff");
s1_sound.setVolume(40);
s1_sound.start();
}
function stopTakeOff() {
if (s1_sound != undefined) {
s1_sound.stop();
s1_mc.removeMovieClip();
s1_sound = (s1_mc = undefined);
}
}
stop();
_playingGame = false;
stopAllSounds();
playAmbienceSound();
sendToAFriend_btn.onRelease = function () {
Key.removeListener(t_obj);
trace("t_obj: " + t_obj);
trace("this: " + this);
gotoAndStop ("sendToAFriend");
};
instructions_btn.onRelease = function () {
Key.removeListener(t_obj);
gotoAndStop ("instructions");
};
leaderboard_btn.onRelease = function () {
Key.removeListener(t_obj);
gotoAndStop ("leaderboard");
};
vcCasino_btn.onRelease = function () {
_global.npbTracker.recordEvent(_global.vcCasinoLinkEvent);
getURL (_global.vcCasinoUrl, "_blank");
};
Symbol 331 MovieClip Frame 99
stopAllSounds();
Symbol 331 MovieClip Frame 100
stop();
_playingGame = true;
game = ingame.game_mc;
Symbol 331 MovieClip Frame 130
stop();
Symbol 331 MovieClip Frame 141
stop();
var gameover_sound = new Sound();
gameover_sound.attachSound("gameOver");
gameover_sound.start();
Symbol 331 MovieClip Frame 152
stop();
Symbol 331 MovieClip Frame 166
stop();
deleteInterval();
_global.proper_time = 0;
Symbol 331 MovieClip Frame 180
stop();
deleteInterval();
_global.proper_time = 0;
Symbol 331 MovieClip Frame 190
stop();