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

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

Me And The Key 2.swf

This is the info page for
Flash #100294

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


ActionScript [AS1/AS2]
Combined Code
// unknown tag 88 length 68 movieClip 3 notie { } movieClip 5 bal { } movieClip 7 { } movieClip 9 balleke { frame 1 { var blur2 = new flash.filters.BlurFilter(2, 2, 1); bb.filters = [blur2]; } } frame 1 { mochi.as2.MochiAd.showPreGameAd({'id': 'd71818af08e2b5a6', 'res': '600x600', 'background': 16777215, 'color': 16747008, 'outline': 14973191, 'no_bg': true}); } movieClip 241 __Packages.mochi.as2.MochiAd { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiAd) { var v1 = function () {}; mochi.as2.MochiAd = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.showPreGameAd = function (options) { var v27 = {'clip': _root, 'ad_timeout': 3000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showPreloaderAd', 'color': 16747008, 'background': 16777161, 'outline': 13994812, 'no_progress_bar': false, 'ad_started': function () { this.clip.stop(); }, 'ad_finished': function () { this.clip.play(); }, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_loaded': function (width, height) {}, 'ad_skipped': function () {}, 'ad_progress': function (percent) {}}; options = mochi.as2.MochiAd._parseOptions(options, v27); if ('c862232051e0a94e1c3609b3916ddb17'.substr(0) == 'dfeada81ac97cde83665f81c12da7def') { options.ad_started(); options.ad_finished(); return undefined; } var clip = options.clip; var v24 = 11000; var v19 = options.ad_timeout; if (options.skip) { v19 = 0; } delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!mochi.as2.MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var v15 = mochi.as2.MochiAd._getRes(options); var v5 = v15[0]; var v14 = v15[1]; mc._x = v5 * 0.5; mc._y = v14 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk._x = v5 * -0.5; chk._y = v14 * -0.5; var v7 = chk.createEmptyMovieClip('_mochiad_bar', 4); if (options.no_progress_bar) { v7._visible = false; delete options.no_progress_bar; } else { v7._x = 10; v7._y = v14 - 20; } var v23 = options.color; delete options.color; var v21 = options.background; delete options.background; var v25 = options.outline; delete options.outline; var v6 = v7.createEmptyMovieClip('_outline', 1); v6.beginFill(v21); v6.moveTo(0, 0); v6.lineTo(v5 - 20, 0); v6.lineTo(v5 - 20, 10); v6.lineTo(0, 10); v6.lineTo(0, 0); v6.endFill(); var v4 = v7.createEmptyMovieClip('_inside', 2); v4.beginFill(v23); v4.moveTo(0, 0); v4.lineTo(v5 - 20, 0); v4.lineTo(v5 - 20, 10); v4.lineTo(0, 10); v4.lineTo(0, 0); v4.endFill(); v4._xscale = 0; var v8 = v7.createEmptyMovieClip('_outline', 3); v8.lineStyle(0, v25, 100); v8.moveTo(0, 0); v8.lineTo(v5 - 20, 0); v8.lineTo(v5 - 20, 10); v8.lineTo(0, 10); v8.lineTo(0, 0); chk.ad_msec = v24; chk.ad_timeout = v19; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var v2 = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time); if (v2 > 0) { this._parent._alpha = v2; } else { var v3 = this._parent._parent; mochi.as2.MochiAd.unload(v3); delete this.onEnterFrame; } }; var sendHostProgress = false; mc.lc.sendHostLoadProgress = function (lc_name) { sendHostProgress = true; }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var v2 = this.mc._mochiad_wait; v2.server_control = true; v2.started = getTimer(); v2.ad_msec = msec; }; mc.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; chk.onEnterFrame = function () { var v10 = this._parent._parent; var v3 = v10; for (;;) { if (!(!v3.getBytesTotal() && v3)) break; v3 = v3._parent; } if (!v3) { v3 = _root; } var v13 = this._parent._mochiad_ctr; var v7 = getTimer() - this.started; var v5 = false; var v6 = v3.getBytesTotal(); var v9 = v3.getBytesLoaded(); var v4 = 100 * v9 / v6; var v12 = 100 * v7 / chk.ad_msec; var v11 = this._mochiad_bar._inside; var v15 = Math.min(100, Math.min(v4 || 0, v12)); v15 = Math.max(this.last_pcnt, v15); this.last_pcnt = v15; v11._xscale = v15; options.ad_progress(v15); if (sendHostProgress) { mochi.as2.MochiAd.containerNotify(clip, {'id': 'hostLoadPcnt', 'pcnt': v4}, clip._mochiad._containerLCName); if (v4 == 100) { sendHostProgress = false; } } if (!chk.showing) { var v8 = v13.getBytesTotal(); if (v8 > 0 || typeof v8 == 'undefined') { chk.showing = true; chk.started = getTimer(); } else { if (v7 > chk.ad_timeout && v4 == 100) { options.ad_failed(); v5 = true; } } } if (v7 > chk.ad_msec) { v5 = true; } if (v6 > 0 && v9 >= v6 && v5) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; } } }; }; v1.showClickAwayAd = function (options) { var v10 = {'clip': _root, 'ad_timeout': 2000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showClickAwayAd', 'res': '300x250', 'no_bg': true, 'ad_started': function () {}, 'ad_finished': function () {}, 'ad_loaded': function (width, height) {}, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_skipped': function () {}}; options = mochi.as2.MochiAd._parseOptions(options, v10); var clip = options.clip; var v9 = options.ad_timeout; delete options.ad_timeout; if (!mochi.as2.MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var v3 = clip._mochiad; v3.onUnload = function () { options.ad_finished(); }; var v5 = mochi.as2.MochiAd._getRes(options); var v11 = v5[0]; var v8 = v5[1]; v3._x = v11 * 0.5; v3._y = v8 * 0.5; var chk = v3.createEmptyMovieClip('_mochiad_wait', 3); chk.ad_timeout = v9; chk.started = getTimer(); chk.showing = false; v3.lc.adLoaded = options.ad_loaded; v3.lc.adSkipped = options.ad_skipped; v3.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; v3.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; var v21 = false; chk.onEnterFrame = function () { var v5 = this._parent._mochiad_ctr; var v4 = getTimer() - this.started; var v2 = false; if (!chk.showing) { var v3 = v5.getBytesTotal(); if (v3 > 0 || typeof v3 == 'undefined') { v2 = true; chk.showing = true; chk.started = getTimer(); } else { if (v4 > chk.ad_timeout) { options.ad_failed(); v2 = true; } } } if (v2) { delete this.onEnterFrame; } }; }; v1.showInterLevelAd = function (options) { var v13 = {'clip': _root, 'ad_timeout': 2000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showTimedAd', 'ad_started': function () { this.clip.stop(); }, 'ad_finished': function () { this.clip.play(); }, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_loaded': function (width, height) {}, 'ad_skipped': function () {}}; options = mochi.as2.MochiAd._parseOptions(options, v13); var clip = options.clip; var v10 = 11000; var v12 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!mochi.as2.MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var v5 = mochi.as2.MochiAd._getRes(options); var v14 = v5[0]; var v11 = v5[1]; mc._x = v14 * 0.5; mc._y = v11 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk.ad_msec = v10; chk.ad_timeout = v12; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var v2 = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time); if (v2 > 0) { this._parent._alpha = v2; } else { var v3 = this._parent._parent; mochi.as2.MochiAd.unload(v3); delete this.onEnterFrame; } }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var v2 = this.mc._mochiad_wait; v2.server_control = true; v2.started = getTimer(); v2.ad_msec = msec - 250; }; mc.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; chk.onEnterFrame = function () { var v5 = this._parent._mochiad_ctr; var v4 = getTimer() - this.started; var v2 = false; if (!chk.showing) { var v3 = v5.getBytesTotal(); if (v3 > 0 || typeof v3 == 'undefined') { chk.showing = true; chk.started = getTimer(); } else { if (v4 > chk.ad_timeout) { options.ad_failed(); v2 = true; } } } if (v4 > chk.ad_msec) { v2 = true; } if (v2) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; } } }; }; v1.showPreloaderAd = function (options) { trace('[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0'); mochi.as2.MochiAd.showPreGameAd(options); }; v1.showTimedAd = function (options) { trace('[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0'); mochi.as2.MochiAd.showInterLevelAd(options); }; v1._allowDomains = function (server) { var v1 = ((server.split('/'))[2].split(':'))[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain('*'); System.security.allowDomain(v1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain('*'); System.security.allowInsecureDomain(v1); } } return v1; }; v1.load = function (options) { var v12 = {'clip': _root, 'server': 'http://x.mochiads.com/srv/1/', 'method': 'load', 'depth': 10333, 'id': '_UNKNOWN_'}; options = mochi.as2.MochiAd._parseOptions(options, v12); options.swfv = options.clip.getSWFVersion() || 6; options.mav = mochi.as2.MochiAd.getVersion(); var v6 = options.clip; if (!mochi.as2.MochiAd._isNetworkAvailable()) { return null; } if (v6._mochiad_loaded) { return null; } var v11 = options.depth; delete options.depth; var mc = v6.createEmptyMovieClip('_mochiad', v11); var v10 = mochi.as2.MochiAd._getRes(options); options.res = v10[0] + 'x' + v10[1]; options.server += options.id; delete options.id; v6._mochiad_loaded = true; if (v6._url.indexOf('http') != 0) { trace('[MochiAd] NOTE: Security Sandbox Violation errors below are normal'); } var v4 = mc.createEmptyMovieClip('_mochiad_ctr', 1); for (var v7 in options) { v4[v7] = options[v7]; } var v9 = v4.server; delete v4.server; var v13 = mochi.as2.MochiAd._allowDomains(v9); mc.onEnterFrame = function () { if (this._mochiad_ctr._url != this._url) { this.onEnterFrame = function () { if (!this._mochiad_ctr) { delete this.onEnterFrame; mochi.as2.MochiAd.unload(this._parent); } }; } }; var v5 = new Object(); var v8 = ['', Math.floor((new Date()).getTime()), random(999999)].join('_'); v5.mc = mc; v5.name = v8; v5.hostname = v13; v5.allowDomain = function (d) { return true; }; v5.allowInsecureDomain = v5.allowDomain; v5.connect(v8); mc.lc = v5; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; v4.lc = v8; v4.st = getTimer(); if (!options.skip) { v4.loadMovie(v9 + '.swf', 'POST'); } return mc; }; v1.unload = function (clip) { if (typeof clip == 'undefined') { clip = _root; } if (clip.clip && clip.clip._mochiad) { clip = clip.clip; } if (!clip._mochiad) { return false; } mochi.as2.MochiAd.containerNotify(clip, {'id': 'unload'}, clip._mochiad._containerLCName); clip._mochiad.removeMovieClip(); delete clip._mochiad_loaded; delete clip._mochiad; return true; }; v1._isNetworkAvailable = function () { if (System.security) { var v1 = System.security; if (v1.sandboxType == 'localWithFile') { return false; } } return true; }; v1._getRes = function (options) { var v3 = options.clip.getBounds(); var v2 = 0; var v1 = 0; if (typeof options.res != 'undefined') { var v4 = options.res.split('x'); v2 = parseFloat(v4[0]); v1 = parseFloat(v4[1]); } else { v2 = v3.xMax - v3.xMin; v1 = v3.yMax - v3.yMin; } if (v2 == 0 || v1 == 0) { v2 = Stage.width; v1 = Stage.height; } return [v2, v1]; }; v1._parseOptions = function (options, defaults) { var v4 = {}; for (var v8 in defaults) { v4[v8] = defaults[v8]; } if (options) { for (v8 in options) { v4[v8] = options[v8]; } } if (_root.mochiad_options) { var v5 = _root.mochiad_options.split('&'); var v2 = 0; while (v2 < v5.length) { var v3 = v5[v2].split('='); v4[unescape(v3[0])] = unescape(v3[1]); ++v2; } } if (v4.id == 'test') { trace('[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!'); } return v4; }; v1.rpc = function (clip, callbackID, arg) { switch (arg.id) { case 'setValue': mochi.as2.MochiAd.setValue(clip, arg.objectName, arg.value); break; case 'getValue': var v4 = mochi.as2.MochiAd.getValue(clip, arg.objectName); mochi.as2.MochiAd.containerRpcResult(clip, callbackID, v4, clip._mochiad._containerLCName); break; case 'runMethod': var v3 = mochi.as2.MochiAd.runMethod(clip, arg.method, arg.args); mochi.as2.MochiAd.containerRpcResult(clip, callbackID, v3, clip._mochiad._containerLCName); break; default: trace('[mochiads rpc] unknown rpc id: ' + arg.id); } }; v1.setValue = function (base, objectName, value) { var v2 = objectName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } base[v2[v1]] = value; }; v1.getValue = function (base, objectName) { var v2 = objectName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } return base[v2[v1]]; }; v1.runMethod = function (base, methodName, argsArray) { var v2 = methodName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } if (typeof base[v2[v1]] == 'function') { return base[v2[v1]].apply(base, argsArray); } else { return undefined; } }; v1.containerNotify = function (clip, args, lcName) { var v1 = clip._mochiad._mochiad_ctr.ad.app; if (v1.notify) { v1.notify(args); } else { (new LocalConnection()).send(lcName, 'notify', args); } }; v1.containerRpcResult = function (clip, callbackID, val, lcName) { var v1 = clip._mochiad._mochiad_ctr.ad.app; if (v1.rpcResult) { v1.rpcResult(callbackID, val); } else { (new LocalConnection()).send(lcName, 'rpcResult', callbackID, val); } }; ASSetPropFlags(mochi.as2.MochiAd.prototype, null, 1); } #endinitclip } movieClip 242 __Packages.mochi.as2.MochiEventDispatcher { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiEventDispatcher) { var v1 = function () { this.eventTable = {}; }; mochi.as2.MochiEventDispatcher = v1; var v2 = v1.prototype; v2.buildDelegate = function (thisObject, thatObject) { var v2 = {'thisObject': thisObject, 'thatObject': thatObject}; if (thatObject != undefined) { var funct = (typeof thatObject == 'string') ? thisObject[thatObject] : thatObject; v2.delegate = function (args) { funct.call(thisObject, args); }; return v2; } v2.delegate = thisObject; return v2; }; v2.compareDelegate = function (d_A, d_B) { if (d_A.thisObject != d_B.thisObject || d_A.thatObject != d_B.thatObject) { return false; } return true; }; v2.addEventListener = function (event, thisObject, thatObject) { this.removeEventListener(event, thisObject, thatObject); this.eventTable[event].push(this.buildDelegate(thisObject, thatObject)); }; v2.removeEventListener = function (event, thisObject, thatObject) { var v3 = this.buildDelegate(thisObject, thatObject); if (this.eventTable[event] == undefined) { this.eventTable[event] = []; return undefined; } for (var v4 in this.eventTable[event]) { if (!this.compareDelegate(this.eventTable[event][v4], v3)) { continue; } this.eventTable[event].splice(Number(v4), 1); } }; v2.triggerEvent = function (event, args) { if (this.eventTable[event] == undefined) { return undefined; } for (var v4 in this.eventTable[event]) { this.eventTable[event][v4].delegate(args); } }; ASSetPropFlags(mochi.as2.MochiEventDispatcher.prototype, null, 1); } #endinitclip } movieClip 243 __Packages.mochi.as2.MochiServices { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiServices) { var v1 = function () {}; mochi.as2.MochiServices = v1; var v2 = v1.prototype; v1.__get__id = function () { return mochi.as2.MochiServices._id; }; v1.__get__clip = function () { return mochi.as2.MochiServices._container; }; v1.__get__childClip = function () { return mochi.as2.MochiServices._clip; }; v1.getVersion = function () { return '3.9.1 as2'; }; v1.allowDomains = function (server) { var v1 = ((server.split('/'))[2].split(':'))[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain('*'); System.security.allowDomain(v1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain('*'); System.security.allowInsecureDomain(v1); } } return v1; }; v1.__get__isNetworkAvailable = function () { if (System.security) { var v1 = System.security; if (v1.sandboxType == 'localWithFile') { return false; } } return true; }; v1.__set__comChannelName = function (val) { if (val != undefined) { if (val.length > 3) { mochi.as2.MochiServices._sendChannelName = val + '_fromgame'; mochi.as2.MochiServices.initComChannels(); } } return mochi.as2.MochiServices.__get__comChannelName(); }; v1.__get__connected = function () { return mochi.as2.MochiServices._connected; }; v1.connect = function (id, clip, onError) { mochi.as2.MochiServices.warnID(id, false); if (!mochi.as2.MochiServices._connected && mochi.as2.MochiServices._clip == undefined) { trace('MochiServices Connecting...'); mochi.as2.MochiServices._connecting = true; mochi.as2.MochiServices.init(id, clip); } if (onError != undefined) { mochi.as2.MochiServices.onError = onError; } else { if (mochi.as2.MochiServices.onError == undefined) { mochi.as2.MochiServices.onError = function (errorCode) { trace(errorCode); }; } } }; v1.disconnect = function () { if (mochi.as2.MochiServices._connected || mochi.as2.MochiServices._connecting) { mochi.as2.MochiServices._connected = false; mochi.as2.MochiServices._connecting = mochi.as2.MochiServices._connected; mochi.as2.MochiServices.flush(true); if (mochi.as2.MochiServices._clip != undefined) { mochi.as2.MochiServices._clip.removeMovieClip(); delete mochi.as2.MochiServices._clip; } mochi.as2.MochiServices._listenChannel.close(); } }; v1.init = function (id, clip) { mochi.as2.MochiServices._id = id; if (clip != undefined) { mochi.as2.MochiServices._container = clip; } else { mochi.as2.MochiServices._container = _root; } mochi.as2.MochiServices.loadCommunicator(id, mochi.as2.MochiServices._container); }; v1.loadCommunicator = function (id, clip) { var v6 = '_mochiservices_com_' + id; var v5 = new MovieClipLoader(); var v3 = {}; if (mochi.as2.MochiServices._clip != null) { return mochi.as2.MochiServices._clip; } if (!mochi.as2.MochiServices.__get__isNetworkAvailable()) { return null; } if ((mochi.as2.MochiServices.urlOptions()).servURL) { mochi.as2.MochiServices._servURL = (mochi.as2.MochiServices.urlOptions()).servURL; } var v4 = mochi.as2.MochiServices._servURL + mochi.as2.MochiServices._services; if ((mochi.as2.MochiServices.urlOptions()).servicesURL) { v4 = (mochi.as2.MochiServices.urlOptions()).servicesURL; } mochi.as2.MochiServices.allowDomains(v4); mochi.as2.MochiServices._clip = clip.createEmptyMovieClip(v6, 10336, false); mochi.as2.MochiServices._listenChannelName += Math.floor((new Date()).getTime()) + '_' + Math.floor(Math.random() * 99999); mochi.as2.MochiServices.listen(); if (v3.waitInterval != null) { clearInterval(v3.waitInterval); } v3.onLoadError = mochi.as2.MochiServices.loadError; v3.onLoadStart = function (target_mc) { this.isLoading = true; }; v3.onLoadComplete = function (target_mc) { target_mc.MochiServices = mochi.as2.MochiServices; }; v3.startTime = getTimer(); v3.wait = function () { if (getTimer() - this.startTime > 10000) { if (!this.isLoading) { mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError.apply(null, ['IOError']); } clearInterval(this.waitInterval); } }; v3.waitInterval = setInterval(v3, 'wait', 1000); v5.addListener(v3); v5.loadClip(v4 + '?listenLC=' + mochi.as2.MochiServices._listenChannelName + '&mochiad_options=' + escape(_root.mochiad_options) + '&api_version=' + mochi.as2.MochiServices.getVersion(), mochi.as2.MochiServices._clip); mochi.as2.MochiServices._sendChannel = new LocalConnection(); mochi.as2.MochiServices._sendChannel._queue = []; return mochi.as2.MochiServices._clip; }; v1.loadError = function (target_mc, errorCode, httpStatus) { trace('MochiServices could not load.'); mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError.apply(null, [errorCode]); }; v1.onStatus = function (infoObject) { if (infoObject.level !== 'error') { } else { mochi.as2.MochiServices._connected = false; mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName); } }; v1.listen = function () { mochi.as2.MochiServices._listenChannel = new LocalConnection(); mochi.as2.MochiServices._listenChannel.handshake = function (args) { mochi.as2.MochiServices.__set__comChannelName(args.newChannel); }; mochi.as2.MochiServices._listenChannel.allowDomain = function (d) { return true; }; mochi.as2.MochiServices._listenChannel.allowInsecureDomain = mochi.as2.MochiServices._listenChannel.allowDomain; mochi.as2.MochiServices._listenChannel._nextcallbackID = 0; mochi.as2.MochiServices._listenChannel._callbacks = {}; mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName); trace('Waiting for MochiAds services to connect...'); }; v1.initComChannels = function () { if (!mochi.as2.MochiServices._connected) { mochi.as2.MochiServices._sendChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'handshakeDone'}); mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'registerGame', 'id': mochi.as2.MochiServices._id, 'version': mochi.as2.MochiServices.getVersion()}); mochi.as2.MochiServices._listenChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; mochi.as2.MochiServices._listenChannel.onReceive = function (pkg) { var v5 = pkg.callbackID; var v4 = this._callbacks[v5]; if (!v4) { return undefined; } var v2 = v4.callbackMethod; var v3 = v4.callbackObject; if (v3 && typeof v2 == 'string') { v2 = v3[v2]; } if (v2 != undefined) { v2.apply(v3, pkg.args); } delete this._callbacks[v5]; }; mochi.as2.MochiServices._listenChannel.onEvent = function (pkg) { switch (pkg.target) { case 'services': mochi.as2.MochiServices.triggerEvent(pkg.event, pkg.args); break; case 'events': mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args); break; case 'coins': mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args); break; case 'social': mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args); } }; mochi.as2.MochiServices._listenChannel.onError = function () { mochi.as2.MochiServices.onError.apply(null, ['IOError']); }; trace('[SERVICES_API] connected!'); mochi.as2.MochiServices._connecting = false; mochi.as2.MochiServices._connected = true; while (mochi.as2.MochiServices._sendChannel._queue.length > 0) { mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', mochi.as2.MochiServices._sendChannel._queue.shift()); } } }; v1.flush = function (error) { var v1; var v2; while (mochi.as2.MochiServices._sendChannel._queue.length > 0) { v1 = mochi.as2.MochiServices._sendChannel._queue.shift(); false; if (v1.callbackID != null) { v2 = mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID]; } delete mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID]; if (error) { mochi.as2.MochiServices.handleError(v1.args, v2.callbackObject, v2.callbackMethod); } } }; v1.handleError = function (args, callbackObject, callbackMethod) { if (args != null) { if (args.onError != null) { args.onError.apply(null, ['NotConnected']); } if (args.options != null && args.options.onError != null) { args.options.onError.apply(null, ['NotConnected']); } } if (callbackMethod != null) { args = {}; args.error = true; args.errorCode = 'NotConnected'; if (callbackObject != null && typeof callbackMethod == 'string') { callbackObject[callbackMethod](args); } else { if (callbackMethod != null) { callbackMethod.apply(args); } } } }; v1.send = function (methodName, args, callbackObject, callbackMethod) { if (mochi.as2.MochiServices._connected) { mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID}); } else { if (mochi.as2.MochiServices._clip == undefined || !mochi.as2.MochiServices._connecting) { trace('Error: MochiServices not connected. Please call MochiServices.connect(). Function: ' + methodName); mochi.as2.MochiServices.handleError(args, callbackObject, callbackMethod); mochi.as2.MochiServices.flush(true); return undefined; } else { mochi.as2.MochiServices._sendChannel._queue.push({'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID}); } } mochi.as2.MochiServices._listenChannel._callbacks[mochi.as2.MochiServices._listenChannel._nextcallbackID] = {'callbackObject': callbackObject, 'callbackMethod': callbackMethod}; ++mochi.as2.MochiServices._listenChannel._nextcallbackID; }; v1.urlOptions = function () { var v5 = {}; var v6; if (_root._url.indexOf('mochiad_options') != -1) { var v2 = _root._url.indexOf('mochiad_options') + 'mochiad_options'.length + 1; v6 = _root._url.substr(v2, _root._url.length); } else { if (_root.mochiad_options) { v6 = _root.mochiad_options; } } if (v6) { var v4 = _root.mochiad_options.split('&'); var v2 = 0; while (v2 < v4.length) { var v3 = v4[v2].split('='); v5[unescape(v3[0])] = unescape(v3[1]); ++v2; } } return v5; }; v1.warnID = function (bid, leaderboard) { bid = bid.toLowerCase(); if (bid.length != 16) { trace('WARNING: ' + (leaderboard ? 'board' : 'game') + ' ID is not the appropriate length'); return undefined; } else { if (bid == '1e113c7239048b3f') { if (leaderboard) { trace('WARNING: Using testing board ID'); } else { trace('WARNING: Using testing board ID as game ID'); } return undefined; } else { if (bid == '84993a1de4031cd8') { if (leaderboard) { trace('WARNING: Using testing game ID as board ID'); } else { trace('WARNING: Using testing game ID'); } return undefined; } } } var v1 = 0; while (v1 < bid.length) { switch (bid.charAt(v1)) { if (bid.charAt(v1) !== 'f') { } else { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case 'a': break; case 'b': case 'c': case 'd': case 'e': } default: trace('WARNING: Board ID contains illegal characters: ' + bid); return undefined; } ++v1; } }; v1.addLinkEvent = function (url, burl, btn, onClick) { var timeout = 1500; var t0 = getTimer(); var v2 = new Object(); v2.mav = mochi.as2.MochiServices.getVersion(); v2.swfv = btn.getSWFVersion() || 6; v2.swfurl = btn._url; v2.fv = System.capabilities.version; v2.os = System.capabilities.os; v2.lang = System.capabilities.language; v2.scres = System.capabilities.screenResolutionX + 'x' + System.capabilities.screenResolutionY; var s = '?'; var v3 = 0; for (var v6 in v2) { if (v3 != 0) { s += '&'; } ++v3; s = s + v6 + '=' + escape(v2[v6]); } if (!(mochi.as2.MochiServices.netupAttempted || mochi.as2.MochiServices._connected)) { var ping = btn.createEmptyMovieClip('ping', 777); var v7 = btn.createEmptyMovieClip('nettest', 778); mochi.as2.MochiServices.netupAttempted = true; ping.loadMovie('http://link.mochiads.com/linkping.swf?t=' + getTimer()); v7.onEnterFrame = function () { if (ping._totalframes > 0 && ping._totalframes == ping._framesloaded) { delete this.onEnterFrame; } else { if (getTimer() - t0 > timeout) { delete this.onEnterFrame; mochi.as2.MochiServices.netup = false; } } }; } var v4 = btn.createEmptyMovieClip('clk', 1001); v4._alpha = 0; v4.beginFill(1044735); v4.moveTo(0, 0); v4.lineTo(0, btn._height); v4.lineTo(btn._width, btn._height); v4.lineTo(btn._width, 0); v4.lineTo(0, 0); v4.endFill(); v4.onRelease = function () { if (mochi.as2.MochiServices.netup) { getURL(url + s, '_blank'); } else { getURL(burl, '_blank'); } if (onClick != undefined) { onClick(); } }; }; v1.setContainer = function (clip) {}; v1.stayOnTop = function (clip) {}; v1.addEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiServices._dispatcher.addEventListener(eventType, thisObject, thatObject); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiServices._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiServices._dispatcher.removeEventListener(eventType, thisObject, thatObject); }; v1.CONNECTED = 'onConnected'; v1._servURL = 'http://www.mochiads.com/static/lib/services/'; v1._services = 'services.swf'; v1._mochiLC = 'MochiLC.swf'; v1._listenChannelName = '__ms_'; v1._connecting = false; v1._connected = false; v1.netup = true; v1.netupAttempted = false; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); v1.addProperty('childClip', v1.__get__childClip, function () {}); v1.addProperty('clip', v1.__get__clip, function () {}); v1.addProperty('comChannelName', function () {}, v1.__set__comChannelName); v1.addProperty('connected', v1.__get__connected, function () {}); v1.addProperty('id', v1.__get__id, function () {}); v1.addProperty('isNetworkAvailable', v1.__get__isNetworkAvailable, function () {}); ASSetPropFlags(mochi.as2.MochiServices.prototype, null, 1); } #endinitclip } movieClip 244 __Packages.mochi.as2.MochiEvents { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiEvents) { var v1 = function () {}; mochi.as2.MochiEvents = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.startSession = function (achievementID) { mochi.as2.MochiServices.send('events_beginSession', {'achievementID': achievementID}, null, null); }; v1.setNotifications = function (clip, style) { var v2 = {}; for (var v3 in style) { v2[v3] = style[v3]; } v2.clip = clip; mochi.as2.MochiServices.send('events_setNotifications', v2, null, null); }; v1.addEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiEvents._dispatcher.addEventListener(eventType, thisObject, thatObject); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiEvents._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiEvents._dispatcher.removeEventListener(eventType, thisObject, thatObject); }; v1.startPlay = function (tag) { if (tag == undefined) { tag = 'gameplay'; } mochi.as2.MochiServices.send('events_setRoundID', {'tag': String(tag)}, null, null); }; v1.endPlay = function () { mochi.as2.MochiServices.send('events_clearRoundID', null, null, null); }; v1.trackEvent = function (tag, value) { mochi.as2.MochiServices.send('events_trackEvent', {'tag': tag, 'value': value}, null, null); }; v1.ACHIEVEMENT_RECEIVED = 'AchievementReceived'; v1.ALIGN_TOP_LEFT = 'ALIGN_TL'; v1.ALIGN_TOP = 'ALIGN_T'; v1.ALIGN_TOP_RIGHT = 'ALIGN_TR'; v1.ALIGN_LEFT = 'ALIGN_L'; v1.ALIGN_CENTER = 'ALIGN_C'; v1.ALIGN_RIGHT = 'ALIGN_R'; v1.ALIGN_BOTTOM_LEFT = 'ALIGN_BL'; v1.ALIGN_BOTTOM = 'ALIGN_B'; v1.ALIGN_BOTTOM_RIGHT = 'ALIGN_BR'; v1.FORMAT_SHORT = 'ShortForm'; v1.FORMAT_LONG = 'LongForm'; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); ASSetPropFlags(mochi.as2.MochiEvents.prototype, null, 1); } #endinitclip } movieClip 245 __Packages.mochi.as2.MochiCoins { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiCoins) { var v1 = function () {}; mochi.as2.MochiCoins = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.showStore = function (options) { mochi.as2.MochiServices.send('coins_showStore', {'options': options}, null, null); }; v1.showItem = function (options) { if (options == undefined || typeof options.item != 'string') { trace('ERROR: showItem call must pass an Object with an item key'); return undefined; } mochi.as2.MochiServices.send('coins_showItem', {'options': options}, null, null); }; v1.showVideo = function (options) { if (options == undefined || typeof options.item != 'string') { trace('ERROR: showVideo call must pass an Object with an item key'); return undefined; } mochi.as2.MochiServices.send('coins_showVideo', {'options': options}, null, null); }; v1.getStoreItems = function () { mochi.as2.MochiServices.send('coins_getStoreItems'); }; v1.requestFunding = function (properties) { mochi.as2.MochiServices.send('social_requestFunding', properties); }; v1.addEventListener = function (eventType, delegate) { mochi.as2.MochiCoins._dispatcher.addEventListener(eventType, delegate); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiCoins._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, delegate) { mochi.as2.MochiCoins._dispatcher.removeEventListener(eventType, delegate); }; v1.STORE_SHOW = 'StoreShow'; v1.STORE_HIDE = 'StoreHide'; v1.ITEM_OWNED = 'ItemOwned'; v1.ITEM_NEW = 'ItemNew'; v1.STORE_ITEMS = 'StoreItems'; v1.ERROR = 'Error'; v1.IO_ERROR = 'IOError'; v1.NO_USER = 'NoUser'; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); ASSetPropFlags(mochi.as2.MochiCoins.prototype, null, 1); } #endinitclip } movieClip 246 __Packages.mochi.as2.MochiSocial { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiSocial) { var v1 = function () {}; mochi.as2.MochiSocial = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.showLoginWidget = function (options) { mochi.as2.MochiServices.setContainer(); mochi.as2.MochiServices.stayOnTop(); mochi.as2.MochiServices.send('social_showLoginWidget', {'options': options}); }; v1.hideLoginWidget = function () { mochi.as2.MochiServices.send('social_hideLoginWidget'); }; v1.requestLogin = function (properties) { mochi.as2.MochiServices.send('social_requestLogin', properties); }; v1.getFriendsList = function (properties) { mochi.as2.MochiServices.send('social_getFriendsList', properties); }; v1.postToStream = function (properties) { mochi.as2.MochiServices.send('social_postToStream', properties); }; v1.inviteFriends = function (properties) { mochi.as2.MochiServices.send('social_inviteFriends', properties); }; v1.requestFan = function (properties) { mochi.as2.MochiServices.send('social_requestFan', properties); }; v1.saveUserProperties = function (properties) { mochi.as2.MochiServices.send('social_saveUserProperties', properties); }; v1.addEventListener = function (eventType, delegate) { mochi.as2.MochiSocial._dispatcher.addEventListener(eventType, delegate); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiSocial._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, delegate) { mochi.as2.MochiSocial._dispatcher.removeEventListener(eventType, delegate); }; v1.LOGGED_IN = 'LoggedIn'; v1.LOGGED_OUT = 'LoggedOut'; v1.LOGIN_SHOW = 'LoginShow'; v1.LOGIN_HIDE = 'LoginHide'; v1.LOGIN_SHOWN = 'LoginShown'; v1.PROFILE_SHOW = 'ProfileShow'; v1.PROFILE_HIDE = 'ProfileHide'; v1.PROPERTIES_SAVED = 'PropertySaved'; v1.WIDGET_LOADED = 'WidgetLoaded'; v1.FRIEND_LIST = 'FriendsList'; v1.PROFILE_DATA = 'ProfileData'; v1.GAMEPLAY_DATA = 'GameplayData'; v1.ACTION_CANCELED = 'onCancel'; v1.ACTION_COMPLETE = 'onComplete'; v1.USER_INFO = 'UserInfo'; v1.ERROR = 'Error'; v1.IO_ERROR = 'IOError'; v1.NO_USER = 'NoUser'; v1.PROPERTIES_SIZE = 'PropertiesSize'; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); ASSetPropFlags(mochi.as2.MochiSocial.prototype, null, 1); } #endinitclip } frame 2 { stop(); } movieClip 18 { } button 23 { on (press) { getURL('http://www.armorgames.com', '_blank'); } } movieClip 26 { frame 1 { _root.stop(); gotoAndPlay(2); } frame 218 { _parent.gotoAndPlay(3); } } button 28 { on (press) { getURL('http://www.armorgames.com/', '_blank'); } } frame 3 { gotoAndPlay('begin'); } frame 4 { stopAllSounds(); } frame 4 { stopAllSounds(); } frame 4 { stopAllSounds(); } frame 4 { stopAllSounds(); } frame 4 { stopAllSounds(); } frame 4 { stopAllSounds(); } frame 4 { stopAllSounds(); } frame 4 { stopAllSounds(); } frame 5 { _focusrect = false; var sound_ok = new Sound(this); sound_ok.attachSound('ok2'); var sound_pop = new Sound(this); sound_pop.attachSound('pop_final'); var sound_key = new Sound(this); sound_key.attachSound('coin'); var sound_pong1 = new Sound(this); sound_pong1.attachSound('pong1'); var sound_pong3 = new Sound(this); sound_pong3.attachSound('pong3'); var sound_buzzer = new Sound(this); sound_buzzer.attachSound('buzzer'); var sound_loop1 = new Sound(this); sound_loop1.attachSound('loop1'); var sound_loop2 = new Sound(this); sound_loop2.attachSound('loop2'); } frame 6 { mk2shared = SharedObject.getLocal('mk2shared'); sohigh = 1; if (mk2shared.data.sohigh > 1) { sohigh = mk2shared.data.sohigh; } soundmute = false; sound_loop1.stop(); sound_loop1.start(0, 9999); stop(); } movieClip 38 { } movieClip 40 { } movieClip 42 { } movieClip 46 { frame 1 { oogrnd = 75 + Math.floor(Math.random() * 75); oogtel = 0; } frame 2 { ++oogtel; } frame 3 { if (oogtel < oogrnd) { gotoAndPlay(2); } } } movieClip 47 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 49 { } movieClip 51 { } movieClip 56 { } movieClip 59 { } movieClip 60 { } movieClip 61 { frame 21 { stop(); } } movieClip 62 { frame 1 { stop(); } frame 20 { _parent._parent.nextFrame(); stop(); } } movieClip 63 { frame 1 { var blur2 = new flash.filters.BlurFilter(2, 2, 1); ping0.filters = [blur2]; } instance of movieClip 51 { onClipEvent (press) { _parent.fout.gotoAndPlay(2); } } instance of movieClip 51 { onClipEvent (press) { getURL('http://www.armorgames.com/', '_blank'); } } instance of movieClip 51 { onClipEvent (press) { getURL('http://armorgames.com/guide/Me-and-the-Key-2-Game-Guide', '_blank'); } } instance of movieClip 51 { onClipEvent (press) { getURL('http://www.bontegames.com/', '_blank'); } } instance of movieClip 56 { onClipEvent (press) { getURL('http://www.facebook.com/pages/Armor-Games/19522089061', '_blank'); } } instance of movieClip 59 { onClipEvent (press) { getURL('http://twitter.com/armorgames', '_blank'); } } } frame 7 { stop(); } movieClip 64 { } movieClip 66 { } button 67 { on (press) { _parent._parent._parent.initlevel = sel; _parent.fout.gotoAndPlay(2); } } movieClip 69 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 71 { frame 1 { sel01.sel = '1'; sel02.sel = '2'; sel03.sel = '3'; sel04.sel = '4'; sel05.sel = '5'; sel06.sel = '6'; sel07.sel = '7'; sel08.sel = '8'; sel09.sel = '9'; sel10.sel = '10'; sel11.sel = '11'; sel12.sel = '12'; sel13.sel = '13'; sel14.sel = '14'; sel15.sel = '15'; sel16.sel = '16'; sel17.sel = '17'; sel18.sel = '18'; sel19.sel = '19'; sel20.sel = '20'; sel21.sel = '21'; sel22.sel = '22'; sel23.sel = '23'; sel24.sel = '24'; sel25.sel = '25'; hoogste = _parent._parent.sohigh; sel01.gotoAndStop(2); if (hoogste >= 2) { sel02.gotoAndStop(2); } if (hoogste >= 3) { sel03.gotoAndStop(2); } if (hoogste >= 4) { sel04.gotoAndStop(2); } if (hoogste >= 5) { sel05.gotoAndStop(2); } if (hoogste >= 6) { sel06.gotoAndStop(2); } if (hoogste >= 7) { sel07.gotoAndStop(2); } if (hoogste >= 8) { sel08.gotoAndStop(2); } if (hoogste >= 9) { sel09.gotoAndStop(2); } if (hoogste >= 10) { sel10.gotoAndStop(2); } if (hoogste >= 11) { sel11.gotoAndStop(2); } if (hoogste >= 12) { sel12.gotoAndStop(2); } if (hoogste >= 13) { sel13.gotoAndStop(2); } if (hoogste >= 14) { sel14.gotoAndStop(2); } if (hoogste >= 15) { sel15.gotoAndStop(2); } if (hoogste >= 16) { sel16.gotoAndStop(2); } if (hoogste >= 17) { sel17.gotoAndStop(2); } if (hoogste >= 18) { sel18.gotoAndStop(2); } if (hoogste >= 19) { sel19.gotoAndStop(2); } if (hoogste >= 20) { sel20.gotoAndStop(2); } if (hoogste >= 21) { sel21.gotoAndStop(2); } if (hoogste >= 22) { sel22.gotoAndStop(2); } if (hoogste >= 23) { sel23.gotoAndStop(2); } if (hoogste >= 24) { sel24.gotoAndStop(2); } if (hoogste >= 25) { sel25.gotoAndStop(2); } } } movieClip 73 { } button 75 { on (press) { _parent.fromgame = true; _parent.gotoAndPlay('intro'); } } button 76 { on (press) { if (!_parent.soundmute) { _parent.sound_loop1.stop(); _parent.soundmute = true; slasher._visible = true; } else { _parent.sound_loop1.start(0, 9999); _parent.soundmute = false; slasher._visible = false; } } } movieClip 78 { } button 80 { on (press) { getURL('http://armorgames.com/guide/Me-and-the-Key-2-Game-Guide', '_blank'); } } movieClip 84 { } movieClip 87 { } movieClip 89 { } movieClip 92 { } button 95 { on (press) { _parent._parent.fadeout.gotoAndPlay(2); _parent.stop(); gotoAndPlay(2); } } movieClip 96 { frame 1 { var glow = new flash.filters.GlowFilter(16777215, 0.5, 2, 2, 8, 4); sleutel.filters = [glow]; stop(); } frame 2 { stop(); } } movieClip 97 { frame 1 { var glow = new flash.filters.GlowFilter(16777215, 0.5, 4, 4, 8, 4); sleutel.filters = [glow]; stop(); } instance ping of movieClip 47 { onClipEvent (press) { this.dragging = true; this.dropping = false; this.startDrag(false, this._x, this.origy, this._x, this.origy - 140); } onClipEvent (release, releaseOutside) { this.hoogte = this._y; this.vy = 0; this.dragging = false; this.dropping = true; this.stopDrag(); } } } movieClip 99 { } movieClip 100 { } movieClip 101 { frame 21 { stop(); } } movieClip 102 { frame 1 { stop(); } frame 2 { _parent._parent.sound_ok.start(); } frame 50 { _parent.gotoAndPlay(_parent._currentframe + 1); stop(); } } movieClip 104 { } movieClip 105 { frame 1 { onEnterFrame = function () { if (_parent.dropit) { if (_parent.sleuteldrop._y < 583) { _parent.sleuteldrop._y += 15; } if (_parent.sleuteldrop._y > 583) { _parent.sleuteldrop._y = 583; } if (_parent.sleuteldrop._y == 583 && !_parent.dropdone) { _parent._parent.sound_key.start(); _parent.dropdone = true; } } }; } } button 106 { on (press) { _parent.fadeout.gotoAndPlay(2); gotoAndPlay(3); } } movieClip 107 { frame 1 { stop(); } frame 2 { var glow = new flash.filters.GlowFilter(16777215, 0.8, 4, 4, 4, 4); sleutel.filters = [glow]; stop(); } frame 3 { stop(); } } movieClip 108 { } movieClip 109 { frame 21 { stop(); } } movieClip 110 { frame 1 { stop(); } frame 2 { _parent._parent.sound_ok.start(); } frame 50 { _parent.gotoAndPlay(_parent._currentframe + 1); stop(); } } movieClip 112 { } movieClip 116 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 118 { } button 119 { on (press) { _parent.fadeout.gotoAndPlay(2); gotoAndPlay('weg'); } } movieClip 120 { frame 1 { stop(); } frame 20 { _parent._parent.sound_key.start(); } frame 28 { _parent._parent.sound_key.start(); var glow = new flash.filters.GlowFilter(16777215, 0.75, 4, 4, 8, 4); sleutel.filters = [glow]; stop(); } frame 29 { stop(); } } movieClip 122 { } movieClip 124 { } movieClip 126 { } button 128 { on (press) { _parent.pingpress(letter); gotoAndPlay(2); } } movieClip 134 { frame 1 { var glow = new flash.filters.GlowFilter(16777215, 0.5, 4, 4, 8, 4); sleutel.filters = [glow]; stop(); } } movieClip 136 { } movieClip 138 { } movieClip 140 { } button 141 { on (press) { fadeout.gotoAndPlay(2); } } movieClip 142 { } movieClip 143 { instance of movieClip 142 { onClipEvent (press) { this.startDrag(false, -600, this._y, 600, this._y); } onClipEvent (release, releaseOutside) { this.stopDrag(); } } instance of movieClip 142 { onClipEvent (press) { this.startDrag(false, -600, this._y, 600, this._y); } onClipEvent (release, releaseOutside) { this.stopDrag(); } } instance of movieClip 142 { onClipEvent (press) { this.startDrag(false, -600, this._y, 600, this._y); } onClipEvent (release, releaseOutside) { this.stopDrag(); } } instance of movieClip 142 { onClipEvent (press) { this.startDrag(false, -600, this._y, 600, this._y); } onClipEvent (release, releaseOutside) { this.stopDrag(); } } instance of movieClip 142 { onClipEvent (press) { this.startDrag(false, -600, this._y, 600, this._y); } onClipEvent (release, releaseOutside) { this.stopDrag(); } } } movieClip 144 { } movieClip 145 { frame 1 { stop(); } frame 9 { (eval('_parent.bb' + _parent.baltel))._visible = true; } } button 146 { on (press) { _parent.fadeout.gotoAndPlay(2); gotoAndPlay('weg'); } } movieClip 147 { frame 1 { stop(); } frame 6 { _parent._parent.sound_key.start(); } frame 10 { _parent._parent.sound_key.start(); var glow = new flash.filters.GlowFilter(16777215, 0.5, 4, 4, 8, 4); sleutel.filters = [glow]; stop(); } frame 11 { stop(); } } movieClip 149 { } movieClip 151 { } movieClip 153 { } movieClip 155 { } movieClip 156 { frame 429 { stop(); } instance of movieClip 92 { onClipEvent (press) { _parent._parent.keyfound = true; _parent._parent.fadeout.gotoAndPlay(2); } } } movieClip 157 { instance of movieClip 7 { onClipEvent (rollOver) { _parent._parent.baloon = true; } onClipEvent (rollOut) { _parent._parent.baloon = false; } onClipEvent (dragOver) { _parent._parent.baloon = true; } onClipEvent (dragOut) { _parent._parent.baloon = false; } } } movieClip 159 { } movieClip 161 { } movieClip 162 { frame 1 { stop(); } frame 6 { stop(); } } movieClip 164 { } button 165 { on (press) { if (!_parent.keyfound) { _parent._parent.sound_pong1.start(); ++this.tel; if (this.tel == 26) { this.tel = 0; } this.letter = _parent.letters[this.tel]; if (_parent.ping0.letter == 'K' && _parent.ping1.letter == 'E' && _parent.ping2.letter == 'Y') { _parent.keyfound = true; this.ketting._visible = true; } } } } movieClip 167 { frame 1 { var glow = new flash.filters.GlowFilter(16777215, 0.5, 4, 4, 8, 4); sleutel.filters = [glow]; stop(); } } movieClip 169 { frame 1 { stop(); } frame 11 { stop(); } } movieClip 171 { } movieClip 173 { } movieClip 175 { } movieClip 177 { } movieClip 178 { } movieClip 179 { } movieClip 181 { } movieClip 183 { } movieClip 184 { } button 186 { on (press) { if (!dif1) { dif1 = true; tv2.strook._x -= 10; --tellermov.teller; _parent.sound_pong1.start(); if (dif1 && dif2 && dif3 && dif4 && dif5) { sleuteldrop.gotoAndPlay(2); } } } } button 187 { on (press) { if (!dif2) { dif2 = true; tv2.ping.oog._x += 1; --tellermov.teller; _parent.sound_pong1.start(); if (dif1 && dif2 && dif3 && dif4 && dif5) { sleuteldrop.gotoAndPlay(2); } } } } button 188 { on (press) { if (!dif3) { dif3 = true; tv2.neus._visible = false; --tellermov.teller; _parent.sound_pong1.start(); if (dif1 && dif2 && dif3 && dif4 && dif5) { sleuteldrop.gotoAndPlay(2); } } } } button 189 { on (press) { if (!dif4) { dif4 = true; tv2.gedacht._visible = false; --tellermov.teller; _parent.sound_pong1.start(); if (dif1 && dif2 && dif3 && dif4 && dif5) { sleuteldrop.gotoAndPlay(2); } } } } button 190 { on (press) { if (!dif5) { dif5 = true; tv2.bal2._visible = false; --tellermov.teller; _parent.sound_pong1.start(); if (dif1 && dif2 && dif3 && dif4 && dif5) { sleuteldrop.gotoAndPlay(2); } } } } movieClip 192 { } movieClip 194 { } movieClip 196 { } movieClip 198 { } button 199 { on (press) { _parent.fadeout.gotoAndPlay(2); gotoAndPlay('weg'); } } movieClip 200 { frame 1 { stop(); } frame 20 { _parent._parent.sound_key.start(); } frame 28 { _parent._parent.sound_key.start(); var glow = new flash.filters.GlowFilter(16777215, 0.5, 4, 4, 8, 4); sleutel.filters = [glow]; stop(); } frame 29 { stop(); } } movieClip 202 { } movieClip 204 { } movieClip 206 { } movieClip 208 { } movieClip 210 { } movieClip 221 { } movieClip 222 { } movieClip 224 { } movieClip 225 { } button 229 { on (press) { getURL('http://www.bontegames.com', '_blank'); } } button 231 { on (press) { getURL('http://www.armorgames.com', '_blank'); } } button 232 { on (press) { getURL('http://jayisgames.com/archives/2010/11/me_and_the_key_2.php', '_blank'); } } movieClip 235 { frame 1 { var blur2 = new flash.filters.BlurFilter(2, 2, 1); ruis.filters = [blur2]; stop(); } frame 2 { var blur2 = new flash.filters.BlurFilter(4, 4, 1); strepen.filters = [blur2]; stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } } movieClip 236 { frame 1 { onEnterFrame = function () { if (_parent.balllaunched) { _parent.movetheBall(); } else { _parent.ball._x = _parent.paddle._x; } }; onMouseDown = function () { _parent.balllaunched = true; }; } } movieClip 237 { } movieClip 239 { frame 1 { tel = -75; tv1.onEnterFrame = function () { ++tel; if (tel == 50) { tv15.gotoAndStop(3); } else { if (tel == 54) { tv6.gotoAndStop(3); tv6.letter = 'E'; } else { if (tel == 58) { tv3.gotoAndStop(3); } else { if (tel == 62) { tv12.gotoAndStop(3); tv12.letter = 'E'; } else { if (tel == 66) { tv9.gotoAndStop(3); tv9.letter = 'D'; } else { if (tel == 70) { tv1.gotoAndStop(3); } else { if (tel == 74) { tv7.gotoAndStop(3); tv7.letter = 'L'; } else { if (tel == 78) { tv10.gotoAndStop(3); tv10.letter = 'O'; } else { if (tel == 82) { tv13.gotoAndStop(3); } else { if (tel == 86) { tv4.gotoAndStop(3); } else { if (tel == 90) { tv5.gotoAndStop(3); tv5.letter = 'W'; } else { if (tel == 94) { tv14.gotoAndStop(3); } else { if (tel == 98) { tv8.gotoAndStop(3); tv8.letter = 'L'; } else { if (tel == 102) { tv16.gotoAndStop(3); } else { if (tel == 106) { tv11.gotoAndStop(3); tv11.letter = 'N'; } else { if (tel == 110) { tv2.gotoAndStop(3); } else { if (tel == 190) { i = 1; while (i <= 16) { (eval('tv' + i)).gotoAndStop(1); ++i; } } else { if (tel == 200) { i = 1; while (i <= 16) { (eval('tv' + i)).gotoAndStop(3); ++i; } } else { if (tel == 210) { i = 1; while (i <= 16) { (eval('tv' + i)).gotoAndStop(1); ++i; } } else { if (tel == 220) { i = 1; while (i <= 16) { (eval('tv' + i)).gotoAndStop(3); ++i; } } else { if (tel == 230) { i = 1; while (i <= 16) { (eval('tv' + i)).gotoAndStop(1); ++i; } } else { if (tel == 240) { i = 1; while (i <= 16) { (eval('tv' + i)).gotoAndStop(3); ++i; } } else { if (tel == 250) { i = 1; while (i <= 16) { (eval('tv' + i)).gotoAndStop(1); ++i; } } else { if (tel == 260) { i = 1; while (i <= 16) { (eval('tv' + i)).gotoAndStop(3); ++i; } } else { if (tel == 270) { i = 1; while (i <= 16) { (eval('tv' + i)).gotoAndStop(1); ++i; } } else { if (tel == 280) { i = 1; while (i <= 16) { (eval('tv' + i)).gotoAndStop(3); ++i; } } else { if (tel == 290) { i = 1; while (i <= 16) { (eval('tv' + i)).gotoAndStop(1); ++i; } } else { if (tel == 300) { i = 1; while (i <= 16) { (eval('tv' + i)).gotoAndStop(3); ++i; } } else { if (tel == 310) { tv1.gotoAndStop(1); } else { if (tel == 314) { tv2.gotoAndStop(1); } else { if (tel == 318) { tv3.gotoAndStop(1); } else { if (tel == 322) { tv4.gotoAndStop(1); } else { if (tel == 326) { tv8.gotoAndStop(1); } else { if (tel == 330) { tv12.gotoAndStop(1); } else { if (tel == 334) { tv16.gotoAndStop(1); } else { if (tel == 338) { tv15.gotoAndStop(1); } else { if (tel == 342) { tv14.gotoAndStop(1); } else { if (tel == 346) { tv13.gotoAndStop(1); } else { if (tel == 350) { tv9.gotoAndStop(1); } else { if (tel == 354) { tv5.gotoAndStop(1); } else { if (tel == 358) { tv6.gotoAndStop(1); } else { if (tel == 362) { tv7.gotoAndStop(1); } else { if (tel == 366) { tv11.gotoAndStop(1); } else { if (tel == 370) { tv10.gotoAndStop(1); } else { if (tel == 440) { posities = []; pos_titel = Math.floor(Math.random() * 16) + 1; posities.push(pos_titel); (eval('tv' + pos_titel)).gotoAndStop(4); do { pos_ping = Math.floor(Math.random() * 16) + 1; contns = false; i = 0; while (i < posities.length) { if (posities[i] == pos_ping) { contns = true; } ++i; } } while (contns); posities.push(pos_ping); (eval('tv' + pos_ping)).gotoAndStop(5); do { pos_more = Math.floor(Math.random() * 16) + 1; contns = false; i = 0; while (i < posities.length) { if (posities[i] == pos_more) { contns = true; } ++i; } } while (contns); posities.push(pos_more); (eval('tv' + pos_more)).gotoAndStop(6); do { pos_by = Math.floor(Math.random() * 16) + 1; contns = false; i = 0; while (i < posities.length) { if (posities[i] == pos_by) { contns = true; } ++i; } } while (contns); posities.push(pos_by); (eval('tv' + pos_by)).gotoAndStop(7); do { pos_ag1 = Math.floor(Math.random() * 16) + 1; contns = false; i = 0; while (i < posities.length) { if (posities[i] == pos_ag1) { contns = true; } ++i; } } while (contns); posities.push(pos_ag1); (eval('tv' + pos_ag1)).gotoAndStop(8); do { pos_ag2 = Math.floor(Math.random() * 16) + 1; contns = false; i = 0; while (i < posities.length) { if (posities[i] == pos_ag2) { contns = true; } ++i; } } while (contns); posities.push(pos_ag2); (eval('tv' + pos_ag2)).gotoAndStop(9); do { pos_jig = Math.floor(Math.random() * 16) + 1; contns = false; i = 0; while (i < posities.length) { if (posities[i] == pos_jig) { contns = true; } ++i; } } while (contns); posities.push(pos_jig); (eval('tv' + pos_jig)).gotoAndStop(10); } else { if (tel == 570) { (eval('tv' + pos_titel)).gotoAndStop(1); (eval('tv' + pos_ping)).gotoAndStop(1); (eval('tv' + pos_more)).gotoAndStop(1); (eval('tv' + pos_by)).gotoAndStop(1); (eval('tv' + pos_ag1)).gotoAndStop(1); (eval('tv' + pos_ag2)).gotoAndStop(1); (eval('tv' + pos_jig)).gotoAndStop(1); tel = 439; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }; } } movieClip 240 { frame 1 { var blur = new flash.filters.BlurFilter(8, 8, 1); stop(); } frame 2 { _parent.sound_loop1.stop(); _parent.sound_loop1.start(0, 9999); slasher._visible = false; level = _parent.initlevel; gotoAndPlay('l' + level); } frame 3 { level = 1; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; ping0.ping.origy = ping0.ping._y; ping0.ping.vy = 0; ping0.ping.hoogte = ping0.ping._y; dampK = 0.98; gravK = 0.1; ping0.ping.onEnterFrame = function () { ping0.ketting._y = ping0.ping._y + 121; if (!this.dragging && this.dropping) { this.vy *= dampK; this.vy += gravK; if (this._y + this.vy >= this.origy) { this._y = this.origy; this.dropping = false; } else { this._y += this.vy; } } }; stop(); } instance ping0 of movieClip 97 { } frame 4 { function moveBall2() { if (this.vis) { this.vx *= dampK; this.vy *= dampK; this.vy += gravK; var v9 = 0; var v8 = 0; var v2 = mcs.length - 1; while (v2 >= 0) { if (mcs[v2] != this && this.hitTest(mcs[v2])) { var v4 = this._x + this.vx - mcs[v2]._x; var v3 = this._y + this.vy - mcs[v2]._y; var v6 = Math.sqrt(v4 * v4 + v3 * v3); var v7 = this.ballRadius + mcs[v2].ballRadius - v6; if (v7 > 0) { var v5 = v7 * dampCollision / v6; v9 += v4 * v5; v8 += v3 * v5; } } --v2; } this.vx += v9; this.vy += v8; if (this._y + this.ballRadius + this.vy >= 554 || this._y - this.ballRadius + this.vy < -6000) { this.vy *= -dampCollision; } if (this._x - this.ballRadius + this.vx <= 112 || this._x + this.ballRadius + this.vx >= 412) { this.vx *= -dampCollision; } if (this.vx > 1 || this.vx < -1) { this._x += this.vx; } if (this.vy > 1 || this.vy < -1) { this._y += this.vy; } } } level = 2; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; dampK = 0.98; gravK = 0.7; dampCollision = 0.5; mcs = []; dropit = false; dropdone = false; var keyListener = new Object(); keyListener.onKeyDown = function () { if (!dropit) { inp = ''; if (Key.getAscii() >= 65 && Key.getAscii() <= 90 || Key.getAscii() >= 97 && Key.getAscii() <= 122) { inp = (chr(Key.getAscii())).toUpperCase(); lettervis = false; i = 0; while (i < mcs.length) { if (mcs[i].vis && mcs[i].letter == inp) { valx = mcs[i]._x; valy = mcs[i]._y; mcs[i]._y = -1000; mcs[i].vis = false; _parent.sound_pop.start(); lettervis = true; break; } ++i; } if (!lettervis) { i = 0; while (i < mcs.length) { if (mcs[i].letter == inp) { mcs[i]._x = 300; mcs[i]._y = -75; mcs[i].vis = true; break; } ++i; } } else { vistel = 0; i = 0; while (i < mcs.length) { if (mcs[i].vis) { ++vistel; } ++i; } if (vistel == 0) { sleuteldrop._x = valx + 30; sleuteldrop._y = valy + 30; sleuteldrop.gotoAndPlay(2); dropit = true; Key.removeListener(keyListener); } } } } }; Key.addListener(keyListener); bb1.letter = 'A'; bb1.vx = 0; bb1.vy = 0; bb1.ballRadius = bb1._width / 2; bb1.onEnterFrame = moveBall2; bb1.vis = true; bb12.letter = 'C'; bb12.vx = 0; bb12.vy = 0; bb12.ballRadius = bb12._width / 2; bb12.onEnterFrame = moveBall2; bb12.vis = true; bb2.letter = 'D'; bb2.vx = 0; bb2.vy = 0; bb2.ballRadius = bb2._width / 2; bb2.onEnterFrame = moveBall2; bb2.vis = true; bb3.letter = 'F'; bb3.vx = 0; bb3.vy = 0; bb3.ballRadius = bb3._width / 2; bb3.onEnterFrame = moveBall2; bb3.vis = true; bb4.letter = 'H'; bb4.vx = 0; bb4.vy = 0; bb4.ballRadius = bb4._width / 2; bb4.onEnterFrame = moveBall2; bb4.vis = true; bb10.letter = 'K'; bb10.vx = 0; bb10.vy = 0; bb10.ballRadius = bb10._width / 2; bb10.onEnterFrame = moveBall2; bb10.vis = true; bb11.letter = 'M'; bb11.vx = 0; bb11.vy = 0; bb11.ballRadius = bb11._width / 2; bb11.onEnterFrame = moveBall2; bb11.vis = true; bb5.letter = 'N'; bb5.vx = 0; bb5.vy = 0; bb5.ballRadius = bb5._width / 2; bb5.onEnterFrame = moveBall2; bb5.vis = true; bb9.letter = 'O'; bb9.vx = 0; bb9.vy = 0; bb9.ballRadius = bb9._width / 2; bb9.onEnterFrame = moveBall2; bb9.vis = true; bb6.letter = 'P'; bb6.vx = 0; bb6.vy = 0; bb6.ballRadius = bb6._width / 2; bb6.onEnterFrame = moveBall2; bb6.vis = true; bb8.letter = 'Q'; bb8.vx = 0; bb8.vy = 0; bb8.ballRadius = bb8._width / 2; bb8.onEnterFrame = moveBall2; bb8.vis = true; bb7.letter = 'Z'; bb7.vx = 0; bb7.vy = 0; bb7.ballRadius = bb7._width / 2; bb7.onEnterFrame = moveBall2; bb7.vis = true; bb13.letter = 'B'; bb13.vx = 0; bb13.vy = 0; bb13.ballRadius = bb13._width / 2; bb13.onEnterFrame = moveBall2; bb13.vis = false; bb14.letter = 'E'; bb14.vx = 0; bb14.vy = 0; bb14.ballRadius = bb14._width / 2; bb14.onEnterFrame = moveBall2; bb14.vis = false; bb15.letter = 'G'; bb15.vx = 0; bb15.vy = 0; bb15.ballRadius = bb15._width / 2; bb15.onEnterFrame = moveBall2; bb15.vis = false; bb16.letter = 'I'; bb16.vx = 0; bb16.vy = 0; bb16.ballRadius = bb16._width / 2; bb16.onEnterFrame = moveBall2; bb16.vis = false; bb17.letter = 'J'; bb17.vx = 0; bb17.vy = 0; bb17.ballRadius = bb17._width / 2; bb17.onEnterFrame = moveBall2; bb17.vis = false; bb18.letter = 'L'; bb18.vx = 0; bb18.vy = 0; bb18.ballRadius = bb18._width / 2; bb18.onEnterFrame = moveBall2; bb18.vis = false; bb19.letter = 'R'; bb19.vx = 0; bb19.vy = 0; bb19.ballRadius = bb19._width / 2; bb19.onEnterFrame = moveBall2; bb19.vis = false; bb20.letter = 'S'; bb20.vx = 0; bb20.vy = 0; bb20.ballRadius = bb20._width / 2; bb20.onEnterFrame = moveBall2; bb20.vis = false; bb21.letter = 'T'; bb21.vx = 0; bb21.vy = 0; bb21.ballRadius = bb21._width / 2; bb21.onEnterFrame = moveBall2; bb21.vis = false; bb22.letter = 'U'; bb22.vx = 0; bb22.vy = 0; bb22.ballRadius = bb22._width / 2; bb22.onEnterFrame = moveBall2; bb22.vis = false; bb23.letter = 'V'; bb23.vx = 0; bb23.vy = 0; bb23.ballRadius = bb23._width / 2; bb23.onEnterFrame = moveBall2; bb23.vis = false; bb24.letter = 'W'; bb24.vx = 0; bb24.vy = 0; bb24.ballRadius = bb24._width / 2; bb24.onEnterFrame = moveBall2; bb24.vis = false; bb25.letter = 'X'; bb25.vx = 0; bb25.vy = 0; bb25.ballRadius = bb25._width / 2; bb25.onEnterFrame = moveBall2; bb25.vis = false; bb26.letter = 'Y'; bb26.vx = 0; bb26.vy = 0; bb26.ballRadius = bb26._width / 2; bb26.onEnterFrame = moveBall2; bb26.vis = false; mcs.push(bb1); mcs.push(bb2); mcs.push(bb3); mcs.push(bb4); mcs.push(bb5); mcs.push(bb6); mcs.push(bb7); mcs.push(bb8); mcs.push(bb9); mcs.push(bb10); mcs.push(bb11); mcs.push(bb12); mcs.push(bb13); mcs.push(bb14); mcs.push(bb15); mcs.push(bb16); mcs.push(bb17); mcs.push(bb18); mcs.push(bb19); mcs.push(bb20); mcs.push(bb21); mcs.push(bb22); mcs.push(bb23); mcs.push(bb24); mcs.push(bb25); mcs.push(bb26); stop(); } frame 5 { function presstt() { if (!leveldone) { _parent.sound_pong1.start(); this._visible = false; if (this.tel == 0) { ts07._visible = true; } else { if (this.tel == 1) { ts02._visible = true; } else { if (this.tel == 2) { ts13._visible = true; } else { if (this.tel == 3) { ts11._visible = true; } else { if (this.tel == 4) { ts05._visible = true; } else { if (this.tel == 5) { ts09._visible = true; } else { if (this.tel == 6) { ts01._visible = true; } else { if (this.tel == 7) { ts10._visible = true; } else { if (this.tel == 8) { ts04._visible = true; } else { if (this.tel == 9) { ts06._visible = true; } else { if (this.tel == 10) { ts12._visible = true; } else { if (this.tel == 11) { ts08._visible = true; } else { if (this.tel == 12) { ts03._visible = true; } } } } } } } } } } } } } if (ts01._visible && ts02._visible && ts03._visible && ts04._visible && ts05._visible && ts06._visible && ts07._visible && ts08._visible && ts09._visible && ts10._visible && ts11._visible && ts12._visible && ts13._visible) { leveldone = true; sleutel.gotoAndPlay(2); } } } function pressts() { if (!leveldone) { _parent.sound_pong1.start(); this._visible = false; if (this.tel == 6) { tt01._visible = true; } else { if (this.tel == 1) { tt02._visible = true; } else { if (this.tel == 12) { tt03._visible = true; } else { if (this.tel == 10) { tt04._visible = true; } else { if (this.tel == 4) { tt05._visible = true; } else { if (this.tel == 8) { tt06._visible = true; } else { if (this.tel == 0) { tt07._visible = true; } else { if (this.tel == 9) { tt08._visible = true; } else { if (this.tel == 3) { tt09._visible = true; } else { if (this.tel == 5) { tt10._visible = true; } else { if (this.tel == 11) { tt11._visible = true; } else { if (this.tel == 7) { tt12._visible = true; } else { if (this.tel == 2) { tt13._visible = true; } } } } } } } } } } } } } } } level = 3; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; leveldone = false; ts01._visible = false; ts07._visible = false; ts13._visible = false; ts02._visible = false; ts08._visible = false; ts03._visible = false; ts09._visible = false; ts04._visible = false; ts10._visible = false; ts05._visible = false; ts11._visible = false; ts06._visible = false; ts12._visible = false; tt01.tel = 0; tt07.tel = 6; tt13.tel = 12; tt02.tel = 1; tt08.tel = 7; tt03.tel = 2; tt09.tel = 8; tt04.tel = 3; tt10.tel = 9; tt05.tel = 4; tt11.tel = 10; tt06.tel = 5; tt12.tel = 11; tt01.onPress = presstt; tt07.onPress = presstt; tt13.onPress = presstt; tt02.onPress = presstt; tt08.onPress = presstt; tt03.onPress = presstt; tt09.onPress = presstt; tt04.onPress = presstt; tt10.onPress = presstt; tt05.onPress = presstt; tt11.onPress = presstt; tt06.onPress = presstt; tt12.onPress = presstt; ts01.onPress = pressts; ts07.onPress = pressts; ts13.onPress = pressts; ts02.onPress = pressts; ts08.onPress = pressts; ts03.onPress = pressts; ts09.onPress = pressts; ts04.onPress = pressts; ts10.onPress = pressts; ts05.onPress = pressts; ts11.onPress = pressts; ts06.onPress = pressts; ts12.onPress = pressts; ts01.tel = 0; ts07.tel = 6; ts13.tel = 12; ts02.tel = 1; ts08.tel = 7; ts03.tel = 2; ts09.tel = 8; ts04.tel = 3; ts10.tel = 9; ts05.tel = 4; ts11.tel = 10; ts06.tel = 5; ts12.tel = 11; stop(); } frame 6 { function setupsnake() { sleutelfound = false; eaten1 = false; bb1._visible = true; eaten2 = true; bb2._visible = false; eaten3 = true; sleutel._visible = false; deadwait = false; direction = 'down'; bodypart0._x = 240; bodypart0._y = 10; if (bodypartsy) { i = bodypartsy.length - 1; while (i > 0) { removeMovieClip(eval('bodypart' + i)); --i; } } bodypartsx = new Array(); bodypartsy = new Array(); bodypartsx.push(bodypart0._x); bodypartsy.push(bodypart0._y); i = 0; while (i < 10) { addbodypart(); ++i; } game = true; framecount = 0; } function addbodypart() { duplicateMovieClip(bodypart, 'bodypart' + bodypartsy.length, this.getNextHighestDepth()); bodypart0.swapDepths(this.getNextHighestDepth()); (eval('bodypart' + bodypartsy.length))._y = (eval('bodypart' + (bodypartsy.length - 1)))._y; (eval('bodypart' + bodypartsx.length))._x = (eval('bodypart' + (bodypartsy.length - 1)))._x; bodypartsy.push((eval('bodypart' + bodypartsy.length))._y); bodypartsx.push((eval('bodypart' + bodypartsx.length))._x); } function dead() { if (!sleutelfound) { _parent.sound_buzzer.start(); } game = false; framecount = 0; deadwait = true; } function eat1() { if (!eaten1) { _parent.sound_pop.start(); eaten1 = true; bb1._visible = false; i = 0; while (i < 10) { addbodypart(); ++i; } eaten2 = false; bb2._visible = true; } } function eat2() { if (!eaten2) { _parent.sound_pop.start(); eaten2 = true; bb2._visible = false; i = 0; while (i < 10) { addbodypart(); ++i; } eaten3 = false; sleutel._visible = true; } } function eat3() { if (!eaten3) { eaten3 = true; sleutel._visible = false; i = 0; while (i < 10) { addbodypart(); ++i; } fadeout.gotoAndPlay(2); sleutelfound = true; if (bodypartsy) { i = bodypartsy.length - 1; while (i > 0) { removeMovieClip(eval('bodypart' + i)); --i; } } removeMovieClip(bodypart0); } } function insideSnake(xneedle, yneedle, skiphead) { if (skiphead) { startat = 1; } else { startat = 0; } q = startat; while (q < bodypartsx.length) { if (bodypartsx[q] == xneedle) { if (bodypartsy[q] == yneedle) { return true; } } ++q; } return false; } level = 4; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; var glow = new flash.filters.GlowFilter(16777215, 0.8, 4, 4, 4, 4); sleutel.filters = [glow]; setupsnake(); bodypart0.onMouseDown = function () { if (game) { if (direction == 'down') { direction = 'right'; } else { if (direction == 'right') { direction = 'up'; } else { if (direction == 'up') { direction = 'left'; } else { if (direction == 'left') { direction = 'down'; } } } } } }; bodypart0.onEnterFrame = function () { if (sleutelfound) { } else { if (deadwait) { ++framecount; if (framecount == 25) { setupsnake(); } } else { if (game) { if (framecount / 2 == Math.ceil(framecount / 2)) { if (!(bodypart0._y <= snakepit._y && direction == 'up') && !(bodypart0._y + bodypart0._height >= snakepit._y + snakepit._height - 2 && direction == 'down') && !(bodypart0._x + bodypart0._width >= snakepit._x + snakepit._width - 2 && direction == 'right') && !(bodypart0._x <= snakepit._x && direction == 'left')) { bodypartsy[0] = bodypart0._y; bodypartsx[0] = bodypart0._x; i = bodypartsy.length - 1; while (i > 0) { (eval('bodypart' + i))._y = bodypartsy[i - 1]; (eval('bodypart' + i))._x = bodypartsx[i - 1]; bodypartsy[i] = (eval('bodypart' + i))._y; bodypartsx[i] = (eval('bodypart' + i))._x; --i; } } if (bodypart0.hitTest(bb1)) { eat1(); } if (bodypart0.hitTest(bb2)) { eat2(); } if (bodypart0.hitTest(sleutel)) { eat3(); } if (direction) { if (direction == 'up') { if (bodypart0._y <= snakepit._y) { dead(); } else { bodypart0._y -= 10; bodypart0._width; } } else { if (direction == 'down') { if (bodypart0._y + bodypart0._height >= snakepit._y + snakepit._height - 2) { dead(); } else { bodypart0._y += 10; bodypart0._width; } } else { if (direction == 'right') { if (bodypart0._x + bodypart0._width >= snakepit._x + snakepit._width - 2) { dead(); } else { bodypart0._x += 10; bodypart0._width; } } else { if (direction == 'left') { if (bodypart0._x <= snakepit._x) { dead(); } else { bodypart0._x -= 10; bodypart0._width; } } } } } } if (game) { if (insideSnake(bodypart0._x, bodypart0._y, true)) { dead(); } } } ++framecount; } } } }; stop(); } frame 7 { level = 5; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; ping0.ketting._visible = false; ping1.ketting._visible = false; ping2.ketting._visible = false; ping3.ketting._visible = false; ping4.ketting._visible = false; ping5.ketting._visible = false; ping6.ketting._visible = false; ping7.ketting._visible = false; ping8.ketting._visible = false; ping9.ketting._visible = false; ping0.letter = 'A'; ping1.letter = 'D'; ping2.letter = 'E'; ping3.letter = 'H'; ping4.letter = 'K'; ping5.letter = 'M'; ping6.letter = 'N'; ping7.letter = 'T'; ping8.letter = 'Y'; ping9.letter = '2'; woord = ''; woordfound = false; pingpress = function (letter) { if (!woordfound) { if (letter == 'M') { woord = 'M'; } else { woord += letter; } if (woord == 'MEANDTHEKEY2') { ping9.ketting._visible = true; woordfound = true; } } }; stop(); } instance ping9 of movieClip 134 { } instance ping7 of movieClip 134 { } instance ping8 of movieClip 134 { } instance ping4 of movieClip 134 { } instance ping5 of movieClip 134 { } instance ping6 of movieClip 134 { } instance ping0 of movieClip 134 { } instance ping1 of movieClip 134 { } instance ping2 of movieClip 134 { } instance ping3 of movieClip 134 { } frame 8 { function setup6() { bal._y = 275; orix = -780; oriy = 225; shiftx = [0, 0, 100, -50, 30, 120, -35, 80, -40, 20, 90, -20, 30, -35, -50, 130, 60, -40, 20, 150, 0, -20, 140, -40, 150, -50]; strook1._x = orix + shiftx[1]; strook1._y = oriy + 50; strook1._alpha = 50; strook2._x = orix + shiftx[2]; strook2._y = oriy + 100; strook2._alpha = 75; strook3._x = orix + shiftx[3]; strook3._y = oriy + 150; strook3._alpha = 50; strook4._x = orix + shiftx[4]; strook4._y = oriy + 200; strook4._alpha = 75; strook5._x = orix + shiftx[5]; strook5._y = oriy + 250; strook5._alpha = 50; strook6._x = orix + shiftx[6]; strook6._y = oriy + 300; strook6._alpha = 75; strook7._x = orix + shiftx[7]; strook7._y = oriy + 350; strook7._alpha = 50; strook8._x = orix + shiftx[8]; strook8._y = oriy + 400; strook8._alpha = 75; strook9._x = orix + shiftx[9]; strook9._y = oriy + 450; strook9._alpha = 50; strook10._x = orix + shiftx[10]; strook10._y = oriy + 500; strook10._alpha = 75; strook11._x = orix + shiftx[11]; strook11._y = oriy + 550; strook11._alpha = 50; strook12._x = orix + shiftx[12]; strook12._y = oriy + 600; strook12._alpha = 75; strook13._x = orix + shiftx[13]; strook13._y = oriy + 650; strook13._alpha = 50; strook14._x = orix + shiftx[14]; strook14._y = oriy + 700; strook14._alpha = 75; strook15._x = orix + shiftx[15]; strook15._y = oriy + 750; strook15._alpha = 50; strook16._x = orix + shiftx[16]; strook16._y = oriy + 800; strook16._alpha = 75; strook17._x = orix + shiftx[17]; strook17._y = oriy + 850; strook17._alpha = 50; strook18._x = orix + shiftx[18]; strook18._y = oriy + 900; strook18._alpha = 75; strook19._x = orix + shiftx[19]; strook19._y = oriy + 950; strook19._alpha = 50; strook20._x = orix + shiftx[20]; strook20._y = oriy + 1000; strook20._alpha = 75; strook21._x = orix + shiftx[21]; strook21._y = oriy + 1050; strook21._alpha = 50; strook22._x = orix + shiftx[22]; strook22._y = oriy + 1100; strook22._alpha = 75; strook23._x = orix + shiftx[23]; strook23._y = oriy + 1150; strook23._alpha = 50; strook24._x = orix + shiftx[24]; strook24._y = oriy + 1200; strook24._alpha = 75; strook25._x = orix; strook25._y = oriy + 1250; strook25._alpha = 75; sleutel._y = strook1._y + 44 + 1150; orim = 250; strook = 1; keyfound = false; ouch = false; } level = 6; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; var glow = new flash.filters.GlowFilter(16777215, 0.8, 4, 4, 4, 4); sleutel.filters = [glow]; setup6(); bal.onEnterFrame = function () { if (!keyfound && !ouch) { dist_x = _xmouse - orim; distance = Math.sqrt(dist_x * dist_x); angle = Math.atan2(1, dist_x); speed = distance / 2; xspeed = speed * Math.cos(angle); difm = xspeed; orim = _xmouse; strook1._x += difm; strook2._x -= difm; strook3._x += difm; strook4._x -= difm; strook5._x += difm; strook6._x -= difm; strook7._x += difm; strook8._x -= difm; strook9._x += difm; strook10._x -= difm; strook11._x += difm; strook12._x -= difm; strook13._x += difm; strook14._x -= difm; strook15._x += difm; strook16._x -= difm; strook17._x += difm; strook18._x -= difm; strook19._x += difm; strook20._x -= difm; strook21._x += difm; strook22._x -= difm; strook23._x += difm; strook24._x -= difm; bal._x = (eval('strook' + strook))._x + 1032; bal._y -= 1.5; sleutel._x = strook24._x + 1032 + 25; sleutel._y -= 1.5; i = 1; while (i < 26) { (eval('strook' + i))._y -= 1.5; ++i; } strookn = strook + 1; difs = (eval('strook' + strook))._x - (eval('strook' + strookn))._x; if (difs < 2.5 && difs > -2.5) { bal._y += 50; _parent.sound_pong3.start(); ++strook; if (strook == 24) { keyfound = true; fadeout.gotoAndPlay(2); } } if (!keyfound && bal._y < 25) { ouch = true; } } else { if (keyfound) { } else { if (ouch) { setup6(); ouch = false; _parent.sound_pop.start(); } } } }; stop(); } frame 9 { level = 7; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; stripe.filters = [blur]; var glow = new flash.filters.GlowFilter(16777215, 0.8, 4, 4, 4, 4); sleutel.filters = [glow]; ping0.ping.origy = ping0.ping._y; ping0.ping.vy = 0; ping0.ping.hoogte = ping0.ping._y; ping0.ping.ketting._visible = false; dampK = 0.98; gravK = 0.1; ping0.ping.onEnterFrame = function () { if (!this.dragging && this.dropping) { this.vy *= dampK; this.vy += gravK; if (this._y + this.vy >= this.origy) { this._y = this.origy; this.dropping = false; } else { this._y += this.vy; } } }; stop(); } instance stripe of movieClip 142 { onClipEvent (press) { this.startDrag(false, -600, this._y, 600, this._y); } onClipEvent (release, releaseOutside) { this.stopDrag(); } } instance ping0 of movieClip 97 { } frame 10 { function setup8() { bb1._visible = true; bb2._visible = false; bb3._visible = false; bb4._visible = false; bb5._visible = false; bb6._visible = false; bb7._visible = false; bb8._visible = false; bb9._visible = false; bb10._visible = false; baltel = 1; } function pressbal8(bal) { if (!keyfound) { if (bal == baltel) { ++baltel; if (baltel < 11) { levelfader.gotoAndPlay(2); } if (baltel == 11) { keyfound = true; sleuteldrop.gotoAndPlay(2); } } else { _parent.sound_buzzer.start(); setup8(); levelfader.gotoAndPlay(2); } } } level = 8; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; keyfound = false; setup8(); stop(); } instance bb1 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(1); } } instance bb2 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(2); } } instance bb3 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(3); } } instance bb4 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(4); } } instance bb5 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(5); } } instance bb6 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(6); } } instance bb7 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(7); } } instance bb8 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(8); } } instance bb9 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(9); } } instance bb10 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(10); } } frame 11 { level = 9; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; keyfound = false; ping0.onMouseMove = function () { if (!keyfound) { wolk.gotoAndPlay(1); } }; stop(); } frame 12 { level = 10; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; ballon.gotoAndStop(1); balloneindframe = 102; baloondone = false; baloonleeg = false; baloonframe = 1; baloonfaktor = 1; ballon.onEnterFrame = function () { if (!baloondone) { if (baloonleeg) { baloonfaktor += 2; baloonframe -= baloonfaktor; if (baloonframe <= 1) { baloonframe = 1; baloonleeg = false; baloonfaktor = 1; } ballon.gotoAndStop(baloonframe); } else { if (baloon) { ++baloonframe; if (baloonframe < balloneindframe) { ballon.gotoAndStop(baloonframe); } else { ballon.gotoAndStop(balloneindframe); baloondone = true; _parent.sound_pop.start(); sleuteldrop.gotoAndPlay(2); } } else { baloonleeg = true; } } } }; stop(); } frame 13 { level = 11; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; ping0.ping0.gotoAndStop(2); origx = 150; origy = 358; endx = 460; keyfound = false; bal._x = origx; bal._y = origy; mal._alpha = 50; mal.filters = [blur]; bal.onPress = function () { if (!keyfound) { ping0.ping0.gotoAndStop(1); this.dragging = true; this.startDrag(false, 0, 0, 600, 600); } }; bal.onRelease = function () { this.dragging = false; this.stopDrag(); if (!keyfound) { this._x = origx; this._y = origy; ping0.ping0.gotoAndStop(2); } }; bal.onReleaseOutside = function () { this.dragging = false; this.stopDrag(); if (!keyfound) { this._x = origx; this._y = origy; ping0.ping0.gotoAndStop(2); } }; bal.onEnterFrame = function () { if (!keyfound) { var v4 = this._x - mal._x; var v3 = this._y - mal._y; var v5 = Math.sqrt(v4 * v4 + v3 * v3); if (this.hitTest(ping1)) { this.dragging = false; this.stopDrag(); this._x = endx; this._y = origy; keyfound = true; ping0.gotoAndPlay(2); ping1.gotoAndStop(2); } else { if (v5 < 150 || v5 > 176 || this._y > 370) { if (this.dragging) { this.dragging = false; this.stopDrag(); } _parent.sound_buzzer.start(); this._x = origx; this._y = origy; } } } }; stop(); } frame 14 { function moveBall2() { if (this.vis) { this.vx *= dampK; this.vy *= dampK; this.vy += gravK; var v9 = 0; var v8 = 0; var v2 = mcs.length - 1; while (v2 >= 0) { if (mcs[v2] != this && this.hitTest(mcs[v2])) { var v4 = this._x + this.vx - mcs[v2]._x; var v3 = this._y + this.vy - mcs[v2]._y; var v6 = Math.sqrt(v4 * v4 + v3 * v3); var v7 = this.ballRadius + mcs[v2].ballRadius - v6; if (v7 > 0) { var v5 = v7 * dampCollision / v6; v9 += v4 * v5; v8 += v3 * v5; } } --v2; } this.vx += v9; this.vy += v8; if (this._y + this.ballRadius + this.vy >= 554 || this._y - this.ballRadius + this.vy < -6000) { this.vy *= -dampCollision; } if (this._x - this.ballRadius + this.vx <= 112 || this._x + this.ballRadius + this.vx >= 412) { this.vx *= -dampCollision; } if (this.vx > 1 || this.vx < -1) { this._x += this.vx; } if (this.vy > 1 || this.vy < -1) { this._y += this.vy; } } } level = 12; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; dampK = 0.98; gravK = 0.7; dampCollision = 0.5; mcs = []; dropit = false; dropdone = false; bb1.letter = 'I'; bb1.vx = 0; bb1.vy = 0; bb1.ballRadius = bb1._width / 2; bb1.onEnterFrame = moveBall2; bb1.vis = true; bb12.letter = 'Y'; bb12.vx = 0; bb12.vy = 0; bb12.ballRadius = bb12._width / 2; bb12.onEnterFrame = moveBall2; bb12.vis = true; bb2.letter = 'L'; bb2.vx = 0; bb2.vy = 0; bb2.ballRadius = bb2._width / 2; bb2.onEnterFrame = moveBall2; bb2.vis = true; bb3.letter = 'O'; bb3.vx = 0; bb3.vy = 0; bb3.ballRadius = bb3._width / 2; bb3.onEnterFrame = moveBall2; bb3.vis = true; bb4.letter = 'S'; bb4.vx = 0; bb4.vy = 0; bb4.ballRadius = bb4._width / 2; bb4.onEnterFrame = moveBall2; bb4.vis = true; bb10.letter = 'V'; bb10.vx = 0; bb10.vy = 0; bb10.ballRadius = bb10._width / 2; bb10.onEnterFrame = moveBall2; bb10.vis = true; bb11.letter = 'W'; bb11.vx = 0; bb11.vy = 0; bb11.ballRadius = bb11._width / 2; bb11.onEnterFrame = moveBall2; bb11.vis = true; bb5.letter = 'K'; bb5.vx = 0; bb5.vy = 0; bb5.ballRadius = bb5._width / 2; bb5.onEnterFrame = moveBall2; bb5.vis = true; bb9.letter = 'Z'; bb9.vx = 0; bb9.vy = 0; bb9.ballRadius = bb9._width / 2; bb9.onEnterFrame = moveBall2; bb9.vis = true; bb6.letter = 'E'; bb6.vx = 0; bb6.vy = 0; bb6.ballRadius = bb6._width / 2; bb6.onEnterFrame = moveBall2; bb6.vis = true; bb8.letter = 'B'; bb8.vx = 0; bb8.vy = 0; bb8.ballRadius = bb8._width / 2; bb8.onEnterFrame = moveBall2; bb8.vis = true; bb7.letter = 'D'; bb7.vx = 0; bb7.vy = 0; bb7.ballRadius = bb7._width / 2; bb7.onEnterFrame = moveBall2; bb7.vis = true; bb13.letter = 'A'; bb13.vx = 0; bb13.vy = 0; bb13.ballRadius = bb13._width / 2; bb13.onEnterFrame = moveBall2; bb13.vis = false; bb14.letter = 'C'; bb14.vx = 0; bb14.vy = 0; bb14.ballRadius = bb14._width / 2; bb14.onEnterFrame = moveBall2; bb14.vis = false; bb15.letter = 'F'; bb15.vx = 0; bb15.vy = 0; bb15.ballRadius = bb15._width / 2; bb15.onEnterFrame = moveBall2; bb15.vis = false; bb16.letter = 'G'; bb16.vx = 0; bb16.vy = 0; bb16.ballRadius = bb16._width / 2; bb16.onEnterFrame = moveBall2; bb16.vis = false; bb17.letter = 'H'; bb17.vx = 0; bb17.vy = 0; bb17.ballRadius = bb17._width / 2; bb17.onEnterFrame = moveBall2; bb17.vis = false; bb18.letter = 'J'; bb18.vx = 0; bb18.vy = 0; bb18.ballRadius = bb18._width / 2; bb18.onEnterFrame = moveBall2; bb18.vis = false; bb19.letter = 'M'; bb19.vx = 0; bb19.vy = 0; bb19.ballRadius = bb19._width / 2; bb19.onEnterFrame = moveBall2; bb19.vis = false; bb20.letter = 'N'; bb20.vx = 0; bb20.vy = 0; bb20.ballRadius = bb20._width / 2; bb20.onEnterFrame = moveBall2; bb20.vis = false; bb21.letter = 'P'; bb21.vx = 0; bb21.vy = 0; bb21.ballRadius = bb21._width / 2; bb21.onEnterFrame = moveBall2; bb21.vis = false; bb22.letter = 'Q'; bb22.vx = 0; bb22.vy = 0; bb22.ballRadius = bb22._width / 2; bb22.onEnterFrame = moveBall2; bb22.vis = false; bb23.letter = 'R'; bb23.vx = 0; bb23.vy = 0; bb23.ballRadius = bb23._width / 2; bb23.onEnterFrame = moveBall2; bb23.vis = false; bb24.letter = 'T'; bb24.vx = 0; bb24.vy = 0; bb24.ballRadius = bb24._width / 2; bb24.onEnterFrame = moveBall2; bb24.vis = false; bb25.letter = 'U'; bb25.vx = 0; bb25.vy = 0; bb25.ballRadius = bb25._width / 2; bb25.onEnterFrame = moveBall2; bb25.vis = false; bb26.letter = 'X'; bb26.vx = 0; bb26.vy = 0; bb26.ballRadius = bb26._width / 2; bb26.onEnterFrame = moveBall2; bb26.vis = false; mcs.push(bb1); mcs.push(bb2); mcs.push(bb3); mcs.push(bb4); mcs.push(bb5); mcs.push(bb6); mcs.push(bb7); mcs.push(bb8); mcs.push(bb9); mcs.push(bb10); mcs.push(bb11); mcs.push(bb12); mcs.push(bb13); mcs.push(bb14); mcs.push(bb15); mcs.push(bb16); mcs.push(bb17); mcs.push(bb18); mcs.push(bb19); mcs.push(bb20); mcs.push(bb21); mcs.push(bb22); mcs.push(bb23); mcs.push(bb24); mcs.push(bb25); mcs.push(bb26); var keyListener2 = new Object(); keyListener2.onKeyDown = function () { if (!dropit) { inp = ''; if (Key.getAscii() >= 65 && Key.getAscii() <= 90 || Key.getAscii() >= 97 && Key.getAscii() <= 122) { inp = (chr(Key.getAscii())).toUpperCase(); lettervis = false; i = 0; while (i < mcs.length) { if (mcs[i].vis && mcs[i].letter == inp) { if (inp != 'K' && inp != 'E' && inp != 'Y') { valx = mcs[i]._x; valy = mcs[i]._y; mcs[i]._y = -1000; mcs[i].vis = false; _parent.sound_pop.start(); lettervis = true; break; } else { lettervis = false; } } ++i; } if (!lettervis) { if (inp == 'K' || inp == 'E' || inp == 'Y') { noginvisfound = false; i = 0; while (i < mcs.length) { if (!mcs[i].vis) { inp = mcs[i].letter; noginvisfound = true; break; } ++i; } if (noginvisfound) { i = 0; while (i < mcs.length) { if (mcs[i].letter == inp) { mcs[i]._x = 300; mcs[i]._y = -75; mcs[i].vis = true; break; } ++i; } } } else { i = 0; while (i < mcs.length) { if (mcs[i].letter == inp) { mcs[i]._x = 300; mcs[i]._y = -75; mcs[i].vis = true; break; } ++i; } } } else { vistel = 0; i = 0; while (i < mcs.length) { if (mcs[i].vis) { ++vistel; } ++i; } if (vistel == 3) { sleuteldrop._x = valx + 30; sleuteldrop._y = valy + 30; sleuteldrop.gotoAndPlay(2); dropit = true; Key.removeListener(keyListener2); } } } } }; Key.addListener(keyListener2); stop(); } frame 15 { level = 13; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; letters = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']; ping0.ketting._visible = false; ping1.ketting._visible = false; ping2.ketting._visible = false; ping0.letter = letters[0]; ping1.letter = letters[0]; ping2.letter = letters[0]; ping0.tel = 0; ping1.tel = 0; ping2.tel = 0; keyfound = false; stop(); } frame 16 { function setupsnake() { nbrtoeat = 12; sleutelfound = false; sleutelvis = false; sleutel._visible = false; bb1._visible = true; deadwait = false; direction = 'down'; bodypart0._x = 240; bodypart0._y = 10; if (bodypartsy) { i = bodypartsy.length - 1; while (i > 0) { removeMovieClip(eval('bodypart' + i)); --i; } } bodypartsx = new Array(); bodypartsy = new Array(); bodypartsx.push(bodypart0._x); bodypartsy.push(bodypart0._y); i = 0; while (i < 10) { addbodypart(); ++i; } game = true; framecount = 0; } function addbodypart() { duplicateMovieClip(bodypart, 'bodypart' + bodypartsy.length, this.getNextHighestDepth()); bodypart0.swapDepths(this.getNextHighestDepth()); (eval('bodypart' + bodypartsy.length))._y = (eval('bodypart' + (bodypartsy.length - 1)))._y; (eval('bodypart' + bodypartsx.length))._x = (eval('bodypart' + (bodypartsy.length - 1)))._x; bodypartsy.push((eval('bodypart' + bodypartsy.length))._y); bodypartsx.push((eval('bodypart' + bodypartsx.length))._x); } function dead() { if (!sleutelfound) { _parent.sound_buzzer.start(); } game = false; framecount = 0; deadwait = true; } function eat1() { i = 0; while (i < 10) { addbodypart(); ++i; } --nbrtoeat; _parent.sound_pop.start(); if (nbrtoeat > 0) { do { bb1._x = 150 + Math.floor(270 * Math.random()); bb1._y = 10 + Math.floor(550 * Math.random()); } while (insideSnake2(bb1._x, bb1._y)); } else { bb1._visible = false; do { sleutel._x = 170 + Math.floor(230 * Math.random()); sleutel._y = 30 + Math.floor(510 * Math.random()); } while (insideSnake2(sleutel._x, sleutel._y)); sleutel._visible = true; sleutelvis = true; } } function eatsleutel() { if (!sleutelfound) { sleutelfound = true; sleutel._visible = false; i = 0; while (i < 10) { addbodypart(); ++i; } fadeout.gotoAndPlay(2); if (bodypartsy) { i = bodypartsy.length - 1; while (i > 0) { removeMovieClip(eval('bodypart' + i)); --i; } } removeMovieClip(bodypart0); } } function insideSnake2(xneedle, yneedle) { q = 0; while (q < bodypartsx.length) { if (xneedle > bodypartsx[q] - 30 && xneedle < bodypartsx[q] + 45 && yneedle > bodypartsy[q] - 30 && yneedle < bodypartsy[q] + 45) { return true; } ++q; } return false; } function insideSnake(xneedle, yneedle, skiphead) { if (skiphead) { startat = 1; } else { startat = 0; } q = startat; while (q < bodypartsx.length) { if (bodypartsx[q] == xneedle) { if (bodypartsy[q] == yneedle) { return true; } } ++q; } return false; } level = 14; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; var glow = new flash.filters.GlowFilter(16777215, 0.8, 4, 4, 4, 4); sleutel.filters = [glow]; setupsnake(); bodypart0.onMouseDown = function () { if (game) { if (direction == 'down') { direction = 'right'; } else { if (direction == 'right') { direction = 'up'; } else { if (direction == 'up') { direction = 'left'; } else { if (direction == 'left') { direction = 'down'; } } } } } }; bodypart0.onEnterFrame = function () { if (sleutelfound) { } else { if (deadwait) { ++framecount; if (framecount == 50) { setupsnake(); } } else { if (game) { if (framecount / 2 == Math.ceil(framecount / 2)) { if (!(bodypart0._y <= snakepit._y && direction == 'up') && !(bodypart0._y + bodypart0._height >= snakepit._y + snakepit._height - 2 && direction == 'down') && !(bodypart0._x + bodypart0._width >= snakepit._x + snakepit._width - 2 && direction == 'right') && !(bodypart0._x <= snakepit._x && direction == 'left')) { bodypartsy[0] = bodypart0._y; bodypartsx[0] = bodypart0._x; i = bodypartsy.length - 1; while (i > 0) { (eval('bodypart' + i))._y = bodypartsy[i - 1]; (eval('bodypart' + i))._x = bodypartsx[i - 1]; bodypartsy[i] = (eval('bodypart' + i))._y; bodypartsx[i] = (eval('bodypart' + i))._x; --i; } } if (!sleutelvis && bodypart0.hitTest(bb1)) { eat1(); } if (sleutelvis && bodypart0.hitTest(sleutel)) { eatsleutel(); } if (direction) { if (direction == 'up') { if (bodypart0._y <= snakepit._y) { dead(); } else { bodypart0._y -= 10; bodypart0._width; } } else { if (direction == 'down') { if (bodypart0._y + bodypart0._height >= snakepit._y + snakepit._height - 2) { dead(); } else { bodypart0._y += 10; bodypart0._width; } } else { if (direction == 'right') { if (bodypart0._x + bodypart0._width >= snakepit._x + snakepit._width - 2) { dead(); } else { bodypart0._x += 10; bodypart0._width; } } else { if (direction == 'left') { if (bodypart0._x <= snakepit._x) { dead(); } else { bodypart0._x -= 10; bodypart0._width; } } } } } } if (game) { if (insideSnake(bodypart0._x, bodypart0._y, true)) { dead(); } } } ++framecount; } } } }; stop(); } frame 17 { level = 15; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; ping0.letter = '?'; ping1.letter = '?'; ping2.letter = '?'; nbrpings = 3; dropit = false; var keyListener = new Object(); keyListener.onKeyDown = function () { if (!dropit) { if (Key.getAscii() == 127 || Key.getAscii() == 8) { if (nbrpings == 3) { ping0.gotoAndPlay(2); --nbrpings; } else { if (nbrpings == 2) { ping1.gotoAndPlay(2); --nbrpings; } else { if (nbrpings == 1) { ping2.gotoAndPlay(2); --nbrpings; dropit = true; sleutel.gotoAndPlay(2); Key.removeListener(keyListener); } } } } } }; Key.addListener(keyListener); stop(); } frame 18 { level = 16; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; var glow = new flash.filters.GlowFilter(16777215, 0.8, 4, 4, 4, 4); tellermov.filters = [glow]; tellermov.teller = 5; dif1 = false; dif2 = false; dif3 = false; dif4 = false; dif5 = false; tv2.strook._x += 10; tv2.ping.oog._x -= 1; tv1.neus._visible = false; tv1.gedacht._visible = false; tv1.bal2._visible = false; stop(); } frame 19 { level = 17; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; ping0.ping0.gotoAndStop(2); origx = 117; origy = 355; endx = 495; keyfound = false; bal._x = origx; bal._y = origy; mal._alpha = 50; mal._rotation = 0; mal.filters = [blur]; bal.onPress = function () { if (!keyfound) { ping0.ping0.gotoAndStop(1); oldymouse = _ymouse; this.dragging = true; this.startDrag(false, 0, this._y, 600, this._y); } }; bal.onRelease = function () { this.dragging = false; this.stopDrag(); if (!keyfound) { this._x = origx; this._y = origy; mal._rotation = 0; ping0.ping0.gotoAndStop(2); } }; bal.onReleaseOutside = function () { this.dragging = false; this.stopDrag(); if (!keyfound) { this._x = origx; this._y = origy; mal._rotation = 0; ping0.ping0.gotoAndStop(2); } }; bal.onEnterFrame = function () { if (!keyfound) { if (this.dragging) { if (_ymouse > oldymouse) { mal._rotation += 1; } else { if (_ymouse < oldymouse) { mal._rotation -= 1; } } oldymouse = _ymouse; if (this._x > 480) { this.dragging = false; this.stopDrag(); this._x = endx; this._y = origy; keyfound = true; mal._rotation = 0; ping0.gotoAndPlay(2); ping1.gotoAndStop(2); } else { if (mal.hitTest(bal._x - 25, bal._y, true) || mal.hitTest(bal._x + 25, bal._y, true) || mal.hitTest(bal._x, bal._y - 25, true) || mal.hitTest(bal._x, bal._y + 25, true)) { _parent.sound_buzzer.start(); this.dragging = false; this.stopDrag(); this._x = origx; this._y = origy; mal._rotation = 0; } } } } }; stop(); } frame 20 { function pressk() { if (!leveldone) { (eval('k' + this.tel))._visible = false; volgende = this.tel + 100; if (volgende > 513) { volgende -= 500; } _parent.sound_pong1.start(); (eval('k' + volgende))._visible = true; if (k101._visible && k102._visible && k103._visible && k104._visible && k105._visible && k106._visible && k107._visible && k108._visible && k109._visible && k110._visible && k111._visible && k112._visible && k113._visible) { leveldone = true; sleutel.gotoAndPlay(2); } } } level = 18; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; leveldone = false; k101._visible = true; k105._visible = false; k109._visible = false; k113._visible = false; k102._visible = false; k106._visible = false; k110._visible = false; k103._visible = false; k107._visible = true; k111._visible = false; k104._visible = false; k108._visible = false; k112._visible = false; k201._visible = false; k205._visible = false; k209._visible = false; k213._visible = false; k202._visible = false; k206._visible = false; k210._visible = false; k203._visible = false; k207._visible = false; k211._visible = true; k204._visible = false; k208._visible = true; k212._visible = false; k301._visible = false; k305._visible = false; k309._visible = false; k313._visible = true; k302._visible = true; k306._visible = false; k310._visible = true; k303._visible = false; k307._visible = false; k311._visible = false; k304._visible = true; k308._visible = false; k312._visible = false; k401._visible = false; k405._visible = true; k409._visible = false; k413._visible = false; k402._visible = false; k406._visible = false; k410._visible = false; k403._visible = false; k407._visible = false; k411._visible = false; k404._visible = false; k408._visible = false; k412._visible = true; k501._visible = false; k505._visible = false; k509._visible = true; k513._visible = false; k502._visible = false; k506._visible = true; k510._visible = false; k503._visible = true; k507._visible = false; k511._visible = false; k504._visible = false; k508._visible = false; k512._visible = false; k101.onPress = pressk; k105.onPress = pressk; k109.onPress = pressk; k113.onPress = pressk; k102.onPress = pressk; k106.onPress = pressk; k110.onPress = pressk; k103.onPress = pressk; k107.onPress = pressk; k111.onPress = pressk; k104.onPress = pressk; k108.onPress = pressk; k112.onPress = pressk; k201.onPress = pressk; k205.onPress = pressk; k209.onPress = pressk; k213.onPress = pressk; k202.onPress = pressk; k206.onPress = pressk; k210.onPress = pressk; k203.onPress = pressk; k207.onPress = pressk; k211.onPress = pressk; k204.onPress = pressk; k208.onPress = pressk; k212.onPress = pressk; k301.onPress = pressk; k305.onPress = pressk; k309.onPress = pressk; k313.onPress = pressk; k302.onPress = pressk; k306.onPress = pressk; k310.onPress = pressk; k303.onPress = pressk; k307.onPress = pressk; k311.onPress = pressk; k304.onPress = pressk; k308.onPress = pressk; k312.onPress = pressk; k401.onPress = pressk; k405.onPress = pressk; k409.onPress = pressk; k413.onPress = pressk; k402.onPress = pressk; k406.onPress = pressk; k410.onPress = pressk; k403.onPress = pressk; k407.onPress = pressk; k411.onPress = pressk; k404.onPress = pressk; k408.onPress = pressk; k412.onPress = pressk; k501.onPress = pressk; k505.onPress = pressk; k509.onPress = pressk; k513.onPress = pressk; k502.onPress = pressk; k506.onPress = pressk; k510.onPress = pressk; k503.onPress = pressk; k507.onPress = pressk; k511.onPress = pressk; k504.onPress = pressk; k508.onPress = pressk; k512.onPress = pressk; k101.tel = 101; k105.tel = 105; k109.tel = 109; k113.tel = 113; k102.tel = 102; k106.tel = 106; k110.tel = 110; k103.tel = 103; k107.tel = 107; k111.tel = 111; k104.tel = 104; k108.tel = 108; k112.tel = 112; k201.tel = 201; k205.tel = 205; k209.tel = 209; k213.tel = 213; k202.tel = 202; k206.tel = 206; k210.tel = 210; k203.tel = 203; k207.tel = 207; k211.tel = 211; k204.tel = 204; k208.tel = 208; k212.tel = 212; k301.tel = 301; k305.tel = 305; k309.tel = 309; k313.tel = 313; k302.tel = 302; k306.tel = 306; k310.tel = 310; k303.tel = 303; k307.tel = 307; k311.tel = 311; k304.tel = 304; k308.tel = 308; k312.tel = 312; k401.tel = 401; k405.tel = 405; k409.tel = 409; k413.tel = 413; k402.tel = 402; k406.tel = 406; k410.tel = 410; k403.tel = 403; k407.tel = 407; k411.tel = 411; k404.tel = 404; k408.tel = 408; k412.tel = 412; k501.tel = 501; k505.tel = 505; k509.tel = 509; k513.tel = 513; k502.tel = 502; k506.tel = 506; k510.tel = 510; k503.tel = 503; k507.tel = 507; k511.tel = 511; k504.tel = 504; k508.tel = 508; k512.tel = 512; stop(); } frame 21 { level = 19; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; var glow = new flash.filters.GlowFilter(16777215, 0.8, 4, 4, 4, 4); txtl19.filters = [glow]; ping0.ketting._visible = false; ping1.ketting._visible = false; ping2.ketting._visible = false; ping3.ketting._visible = false; ping4.ketting._visible = false; ping5.ketting._visible = false; ping6.ketting._visible = false; ping0.letter = 'N'; ping1.letter = 'O'; ping2.letter = 'T'; ping3.letter = 'E'; ping4.letter = 'B'; ping5.letter = 'A'; ping6.letter = 'R'; woord = ''; woordfound = false; pingpress = function (letter) { if (!woordfound) { woord += letter; if (woord.length > 9) { woord = woord.substring(1); } if (woord == 'BARTBONTE') { ping3.ketting._visible = true; woordfound = true; } } }; stop(); } instance ping3 of movieClip 134 { } instance ping1 of movieClip 134 { } instance ping5 of movieClip 134 { } instance ping0 of movieClip 134 { } instance ping2 of movieClip 134 { } instance ping4 of movieClip 134 { } instance ping6 of movieClip 134 { } frame 22 { function pressk() { if (!sleutelfound) { _parent.sound_pong1.start(); (eval('k' + this.tel))._visible = false; volgende = this.tel + 100; if (volgende > 210) { volgende -= 200; } if (volgende < 200) { _parent.sound_pong1.start(); } else { _parent.sound_pong3.start(); } (eval('k' + volgende))._visible = true; } } function setupsnake() { k101._visible = true; k105._visible = true; k109._visible = true; k102._visible = true; k106._visible = true; k110._visible = true; k103._visible = true; k107._visible = true; k104._visible = true; k108._visible = true; k201._visible = false; k205._visible = false; k209._visible = false; k202._visible = false; k206._visible = false; k210._visible = false; k203._visible = false; k207._visible = false; k204._visible = false; k208._visible = false; sleutelfound = false; eaten1 = false; bb1._visible = true; eaten2 = true; bb2._visible = false; eaten3 = true; sleutel._visible = false; deadwait = false; direction = 'down'; bodypart0._x = 240; bodypart0._y = 10; if (bodypartsy) { i = bodypartsy.length - 1; while (i > 0) { removeMovieClip(eval('bodypart' + i)); --i; } } bodypartsx = new Array(); bodypartsy = new Array(); bodypartsx.push(bodypart0._x); bodypartsy.push(bodypart0._y); i = 0; while (i < 10) { addbodypart(); ++i; } game = true; framecount = 0; bodyparts = new Array(); bodyparts.push(bodypart0); } function addbodypart() { duplicateMovieClip(bodypart, 'bodypart' + bodypartsy.length, this.getNextHighestDepth()); eval(undefined) = undefined; bodypart0.swapDepths(this.getNextHighestDepth()); (eval('bodypart' + bodypartsy.length))._y = (eval('bodypart' + (bodypartsy.length - 1)))._y; (eval('bodypart' + bodypartsx.length))._x = (eval('bodypart' + (bodypartsy.length - 1)))._x; bodyparts.push(eval('bodypart' + bodypartsy.length)); bodypartsy.push((eval('bodypart' + bodypartsy.length))._y); bodypartsx.push((eval('bodypart' + bodypartsx.length))._x); } function dead() { if (!sleutelfound) { _parent.sound_buzzer.start(); } game = false; framecount = 0; deadwait = true; } function eat1() { if (!eaten1) { eaten1 = true; _parent.sound_pop.start(); bb1._visible = false; i = 0; while (i < 10) { addbodypart(); ++i; } eaten2 = false; bb2._visible = true; } } function eat2() { if (!eaten2) { eaten2 = true; _parent.sound_pop.start(); bb2._visible = false; i = 0; while (i < 10) { addbodypart(); ++i; } eaten3 = false; sleutel._visible = true; } } function eat3() { if (!eaten3) { eaten3 = true; sleutel._visible = false; i = 0; while (i < 10) { addbodypart(); ++i; } fadeout.gotoAndPlay(2); sleutelfound = true; if (bodypartsy) { i = bodypartsy.length - 1; while (i > 0) { removeMovieClip(eval('bodypart' + i)); --i; } } removeMovieClip(bodypart0); } } function insideSnake(xneedle, yneedle, skiphead) { if (skiphead) { startat = 1; } else { startat = 0; } q = startat; while (q < bodypartsx.length) { if (bodypartsx[q] == xneedle) { if (bodypartsy[q] == yneedle) { return true; } } ++q; } return false; } level = 20; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; var glow = new flash.filters.GlowFilter(16777215, 0.8, 4, 4, 4, 4); sleutel.filters = [glow]; k101.onPress = pressk; k105.onPress = pressk; k109.onPress = pressk; k102.onPress = pressk; k106.onPress = pressk; k110.onPress = pressk; k103.onPress = pressk; k107.onPress = pressk; k104.onPress = pressk; k108.onPress = pressk; k201.onPress = pressk; k205.onPress = pressk; k209.onPress = pressk; k202.onPress = pressk; k206.onPress = pressk; k210.onPress = pressk; k203.onPress = pressk; k207.onPress = pressk; k204.onPress = pressk; k208.onPress = pressk; k101.tel = 101; k105.tel = 105; k109.tel = 109; k102.tel = 102; k106.tel = 106; k110.tel = 110; k103.tel = 103; k107.tel = 107; k104.tel = 104; k108.tel = 108; k201.tel = 201; k205.tel = 205; k209.tel = 209; k202.tel = 202; k206.tel = 206; k210.tel = 210; k203.tel = 203; k207.tel = 207; k204.tel = 204; k208.tel = 208; setupsnake(); bodypart0.onMouseDown = function () { if (game) { if (direction == 'down') { direction = 'right'; } else { if (direction == 'right') { direction = 'up'; } else { if (direction == 'up') { direction = 'left'; } else { if (direction == 'left') { direction = 'down'; } } } } } }; bodypart0.onEnterFrame = function () { if (sleutelfound) { } else { if (deadwait) { ++framecount; if (framecount == 50) { setupsnake(); } } else { if (game) { if (framecount / 2 == Math.ceil(framecount / 2)) { if (!(bodypart0._y <= snakepit._y && direction == 'up') && !(bodypart0._y + bodypart0._height >= snakepit._y + snakepit._height - 2 && direction == 'down') && !(bodypart0._x + bodypart0._width >= snakepit._x + snakepit._width - 2 && direction == 'right') && !(bodypart0._x <= snakepit._x && direction == 'left')) { bodypartsy[0] = bodypart0._y; bodypartsx[0] = bodypart0._x; i = bodypartsy.length - 1; while (i > 0) { (eval('bodypart' + i))._y = bodypartsy[i - 1]; (eval('bodypart' + i))._x = bodypartsx[i - 1]; bodypartsy[i] = (eval('bodypart' + i))._y; bodypartsx[i] = (eval('bodypart' + i))._x; --i; } } q = 0; while (q < bodyparts.length) { if (k101._visible && bodyparts[q].hitTest(k101)) { dead(); } if (k102._visible && bodyparts[q].hitTest(k102)) { dead(); } if (k103._visible && bodyparts[q].hitTest(k103)) { dead(); } if (k104._visible && bodyparts[q].hitTest(k104)) { dead(); } if (k105._visible && bodyparts[q].hitTest(k105)) { dead(); } if (k106._visible && bodyparts[q].hitTest(k106)) { dead(); } if (k107._visible && bodyparts[q].hitTest(k107)) { dead(); } if (k108._visible && bodyparts[q].hitTest(k108)) { dead(); } if (k109._visible && bodyparts[q].hitTest(k109)) { dead(); } if (k110._visible && bodyparts[q].hitTest(k110)) { dead(); } if (k201._visible && bodyparts[q].hitTest(k201)) { dead(); } if (k202._visible && bodyparts[q].hitTest(k202)) { dead(); } if (k203._visible && bodyparts[q].hitTest(k203)) { dead(); } if (k204._visible && bodyparts[q].hitTest(k204)) { dead(); } if (k205._visible && bodyparts[q].hitTest(k205)) { dead(); } if (k206._visible && bodyparts[q].hitTest(k206)) { dead(); } if (k207._visible && bodyparts[q].hitTest(k207)) { dead(); } if (k208._visible && bodyparts[q].hitTest(k208)) { dead(); } if (k209._visible && bodyparts[q].hitTest(k209)) { dead(); } if (k210._visible && bodyparts[q].hitTest(k210)) { dead(); } ++q; } if (bodypart0.hitTest(bb1)) { eat1(); } if (bodypart0.hitTest(bb2)) { eat2(); } if (bodypart0.hitTest(sleutel)) { eat3(); } if (direction) { if (direction == 'up') { if (bodypart0._y <= snakepit._y) { dead(); } else { bodypart0._y -= 10; bodypart0._width; } } else { if (direction == 'down') { if (bodypart0._y + bodypart0._height >= snakepit._y + snakepit._height - 2) { dead(); } else { bodypart0._y += 10; bodypart0._width; } } else { if (direction == 'right') { if (bodypart0._x + bodypart0._width >= snakepit._x + snakepit._width - 2) { dead(); } else { bodypart0._x += 10; bodypart0._width; } } else { if (direction == 'left') { if (bodypart0._x <= snakepit._x) { dead(); } else { bodypart0._x -= 10; bodypart0._width; } } } } } } if (game) { if (insideSnake(bodypart0._x, bodypart0._y, true)) { dead(); } } } ++framecount; } } } }; stop(); } frame 23 { level = 21; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; var glow = new flash.filters.GlowFilter(16777215, 0.9, 8, 8, 4, 4); txtlvl21.filters = [glow]; ping0.ketting._visible = false; ping1.ketting._visible = false; ping2.ketting._visible = false; ping3.ketting._visible = false; ping4.ketting._visible = false; ping5.ketting._visible = false; ping0.letter = 'N'; ping1.letter = 'E'; ping2.letter = 'W'; ping3.letter = 'T'; ping4.letter = 'O'; ping5.letter = 'Y'; woord = ''; woordfound = false; pingpress = function (letter) { if (!woordfound) { woord += letter; if (woord.length > 9) { woord = woord.substring(1); } if (woord == 'TWENTYONE') { ping1.ketting._visible = true; woordfound = true; } } }; stop(); } instance ping2 of movieClip 134 { } instance ping1 of movieClip 134 { } instance ping0 of movieClip 134 { } instance ping3 of movieClip 134 { } instance ping4 of movieClip 134 { } instance ping5 of movieClip 134 { } frame 24 { level = 22; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; var glow = new flash.filters.GlowFilter(16777215, 0.8, 4, 4, 4, 4); sleutel.filters = [glow]; stop(); } instance sleutel of movieClip 92 { onClipEvent (press) { this._visible = false; _parent.fadeout.gotoAndPlay(2); } } instance sleutelgat3 of movieClip 206 { onClipEvent (press) { this.startDrag(false, 178, 17, 418, 496); } onClipEvent (release, releaseOutside) { this.stopDrag(); } } instance sleutelgat2 of movieClip 208 { onClipEvent (press) { this.startDrag(false, 186, 36, 412, 490); } onClipEvent (release, releaseOutside) { this.stopDrag(); } } instance sleutelgat1 of movieClip 210 { onClipEvent (press) { this.startDrag(false, 196, 56, 404, 480); } onClipEvent (release, releaseOutside) { this.stopDrag(); } } frame 25 { level = 23; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; keyfound = false; tv1.gotoAndStop(2); tv2.gotoAndStop(2); tv3.gotoAndStop(2); tv4.gotoAndStop(2); tv5.gotoAndStop(2); tv6.gotoAndStop(2); tv7.gotoAndStop(2); tv1.schermback.backtel = 1; tv1.schermback.gotoAndStop(tv1.schermback.backtel); tv1.schermback.tel = 1; tv2.schermback.backtel = 5; tv2.schermback.gotoAndStop(tv2.schermback.backtel); tv2.schermback.tel = 2; tv3.schermback.backtel = 2; tv3.schermback.gotoAndStop(tv3.schermback.backtel); tv3.schermback.tel = 3; tv4.schermback.backtel = 4; tv4.schermback.gotoAndStop(tv4.schermback.backtel); tv4.schermback.tel = 4; tv5.schermback.backtel = 3; tv5.schermback.gotoAndStop(tv5.schermback.backtel); tv5.schermback.tel = 5; tv6.schermback.backtel = 1; tv6.schermback.gotoAndStop(tv6.schermback.backtel); tv6.schermback.tel = 6; tv7.schermback.backtel = 4; tv7.schermback.gotoAndStop(tv7.schermback.backtel); tv7.schermback.tel = 7; presstv = function () { if (!keyfound) { if (this.tel == 1) { if (this.backtel == 1) { this.backtel = 5; this.gotoAndStop(this.backtel); } else { if (this.backtel == 5) { this.backtel = 2; this.gotoAndStop(this.backtel); } else { if (this.backtel == 2) { this.backtel = 4; this.gotoAndStop(this.backtel); } else { if (this.backtel == 4) { this.backtel = 1; this.gotoAndStop(this.backtel); } } } } } else { if (this.tel == 2) { if (this.backtel == 5) { this.backtel = 4; this.gotoAndStop(this.backtel); } else { if (this.backtel == 4) { this.backtel = 3; this.gotoAndStop(this.backtel); } else { if (this.backtel == 3) { this.backtel = 2; this.gotoAndStop(this.backtel); } else { if (this.backtel == 2) { this.backtel = 5; this.gotoAndStop(this.backtel); } } } } } else { if (this.tel == 3) { if (this.backtel == 2) { this.backtel = 3; this.gotoAndStop(this.backtel); } else { if (this.backtel == 3) { this.backtel = 5; this.gotoAndStop(this.backtel); } else { if (this.backtel == 5) { this.backtel = 1; this.gotoAndStop(this.backtel); } else { if (this.backtel == 1) { this.backtel = 2; this.gotoAndStop(this.backtel); } } } } } else { if (this.tel == 4) { if (this.backtel == 4) { this.backtel = 1; this.gotoAndStop(this.backtel); } else { if (this.backtel == 1) { this.backtel = 2; this.gotoAndStop(this.backtel); } else { if (this.backtel == 2) { this.backtel = 3; this.gotoAndStop(this.backtel); } else { if (this.backtel == 3) { this.backtel = 4; this.gotoAndStop(this.backtel); } } } } } else { if (this.tel == 5) { if (this.backtel == 3) { this.backtel = 5; this.gotoAndStop(this.backtel); } else { if (this.backtel == 5) { this.backtel = 4; this.gotoAndStop(this.backtel); } else { if (this.backtel == 4) { this.backtel = 2; this.gotoAndStop(this.backtel); } else { if (this.backtel == 2) { this.backtel = 3; this.gotoAndStop(this.backtel); } } } } } else { if (this.tel == 6) { if (this.backtel == 1) { this.backtel = 2; this.gotoAndStop(this.backtel); } else { if (this.backtel == 2) { this.backtel = 4; this.gotoAndStop(this.backtel); } else { if (this.backtel == 4) { this.backtel = 5; this.gotoAndStop(this.backtel); } else { if (this.backtel == 5) { this.backtel = 1; this.gotoAndStop(this.backtel); } } } } } else { if (this.tel == 7) { if (this.backtel == 4) { this.backtel = 1; this.gotoAndStop(this.backtel); } else { if (this.backtel == 1) { this.backtel = 5; this.gotoAndStop(this.backtel); } else { if (this.backtel == 5) { this.backtel = 2; this.gotoAndStop(this.backtel); } else { if (this.backtel == 2) { this.backtel = 4; this.gotoAndStop(this.backtel); } } } } } } } } } } } if (tv1.schermback.backtel == 2 && tv2.schermback.backtel == 2 && tv3.schermback.backtel == 2 && tv4.schermback.backtel == 2 && tv5.schermback.backtel == 2 && tv6.schermback.backtel == 2 && tv7.schermback.backtel == 2 && tv1.schermping.pingtel == 1 && tv2.schermping.pingtel == 1 && tv3.schermping.pingtel == 1 && tv4.schermping.pingtel == 1 && tv5.schermping.pingtel == 1 && tv6.schermping.pingtel == 1 && tv7.schermping.pingtel == 1) { keyfound = true; sleutel.gotoAndPlay(2); } } }; tv1.schermback.onPress = presstv; tv2.schermback.onPress = presstv; tv3.schermback.onPress = presstv; tv4.schermback.onPress = presstv; tv5.schermback.onPress = presstv; tv6.schermback.onPress = presstv; tv7.schermback.onPress = presstv; tv1.schermping.pingtel = 3; tv1.schermping.gotoAndStop(tv1.schermping.pingtel); tv1.schermping.tel = 1; tv2.schermping.pingtel = 2; tv2.schermping.gotoAndStop(tv2.schermping.pingtel); tv2.schermping.tel = 2; tv3.schermping.pingtel = 4; tv3.schermping.gotoAndStop(tv3.schermping.pingtel); tv3.schermping.tel = 3; tv4.schermping.pingtel = 1; tv4.schermping.gotoAndStop(tv4.schermping.pingtel); tv4.schermping.tel = 4; tv5.schermping.pingtel = 3; tv5.schermping.gotoAndStop(tv5.schermping.pingtel); tv5.schermping.tel = 5; tv6.schermping.pingtel = 4; tv6.schermping.gotoAndStop(tv6.schermping.pingtel); tv6.schermping.tel = 6; tv7.schermping.pingtel = 4; tv7.schermping.gotoAndStop(tv7.schermping.pingtel); tv7.schermping.tel = 7; pressping = function () { if (!keyfound) { if (this.tel == 1) { if (this.pingtel == 3) { this.pingtel = 4; this.gotoAndStop(this.pingtel); } else { if (this.pingtel == 4) { this.pingtel = 1; this.gotoAndStop(this.pingtel); } else { if (this.pingtel == 1) { this.pingtel = 2; this.gotoAndStop(this.pingtel); } else { if (this.pingtel == 2) { this.pingtel = 3; this.gotoAndStop(this.pingtel); } } } } } else { if (this.tel == 2) { if (this.pingtel == 2) { this.pingtel = 3; this.gotoAndStop(this.pingtel); } else { if (this.pingtel == 3) { this.pingtel = 4; this.gotoAndStop(this.pingtel); } else { if (this.pingtel == 4) { this.pingtel = 1; this.gotoAndStop(this.pingtel); } else { if (this.pingtel == 1) { this.pingtel = 2; this.gotoAndStop(this.pingtel); } } } } } else { if (this.tel == 3) { if (this.pingtel == 4) { this.pingtel = 5; this.gotoAndStop(this.pingtel); } else { if (this.pingtel == 5) { this.pingtel = 1; this.gotoAndStop(this.pingtel); } else { if (this.pingtel == 1) { this.pingtel = 2; this.gotoAndStop(this.pingtel); } else { if (this.pingtel == 2) { this.pingtel = 4; this.gotoAndStop(this.pingtel); } } } } } else { if (this.tel == 4) { if (this.pingtel == 1) { this.pingtel = 2; this.gotoAndStop(this.pingtel); } else { if (this.pingtel == 2) { this.pingtel = 3; this.gotoAndStop(this.pingtel); } else { if (this.pingtel == 3) { this.pingtel = 5; this.gotoAndStop(this.pingtel); } else { if (this.pingtel == 5) { this.pingtel = 1; this.gotoAndStop(this.pingtel); } } } } } else { if (this.tel == 5) { if (this.pingtel == 3) { this.pingtel = 4; this.gotoAndStop(this.pingtel); } else { if (this.pingtel == 4) { this.pingtel = 1; this.gotoAndStop(this.pingtel); } else { if (this.pingtel == 1) { this.pingtel = 2; this.gotoAndStop(this.pingtel); } else { if (this.pingtel == 2) { this.pingtel = 3; this.gotoAndStop(this.pingtel); } } } } } else { if (this.tel == 6) { if (this.pingtel == 4) { this.pingtel = 5; this.gotoAndStop(this.pingtel); } else { if (this.pingtel == 5) { this.pingtel = 1; this.gotoAndStop(this.pingtel); } else { if (this.pingtel == 1) { this.pingtel = 2; this.gotoAndStop(this.pingtel); } else { if (this.pingtel == 2) { this.pingtel = 4; this.gotoAndStop(this.pingtel); } } } } } else { if (this.tel == 7) { if (this.pingtel == 4) { this.pingtel = 1; this.gotoAndStop(this.pingtel); } else { if (this.pingtel == 1) { this.pingtel = 2; this.gotoAndStop(this.pingtel); } else { if (this.pingtel == 2) { this.pingtel = 3; this.gotoAndStop(this.pingtel); } else { if (this.pingtel == 3) { this.pingtel = 4; this.gotoAndStop(this.pingtel); } } } } } } } } } } } if (tv1.schermback.backtel == 2 && tv2.schermback.backtel == 2 && tv3.schermback.backtel == 2 && tv4.schermback.backtel == 2 && tv5.schermback.backtel == 2 && tv6.schermback.backtel == 2 && tv7.schermback.backtel == 2 && tv1.schermping.pingtel == 1 && tv2.schermping.pingtel == 1 && tv3.schermping.pingtel == 1 && tv4.schermping.pingtel == 1 && tv5.schermping.pingtel == 1 && tv6.schermping.pingtel == 1 && tv7.schermping.pingtel == 1) { keyfound = true; sleutel.gotoAndPlay(2); } } }; tv1.schermping.onPress = pressping; tv2.schermping.onPress = pressping; tv3.schermping.onPress = pressping; tv4.schermping.onPress = pressping; tv5.schermping.onPress = pressping; tv6.schermping.onPress = pressping; tv7.schermping.onPress = pressping; stop(); } frame 26 { function setup8() { bb1._visible = true; bb2._visible = false; bb3._visible = false; bb4._visible = false; bb5._visible = false; bb6._visible = false; bb7._visible = false; bb8._visible = false; bb9._visible = false; bb10._visible = false; bb11._visible = false; bb12._visible = false; bb13._visible = false; bb14._visible = false; bb15._visible = false; bb16._visible = false; bb17._visible = false; bb18._visible = false; bb19._visible = false; bb20._visible = false; baltel = 1; } function pressbal8(bal) { if (!keyfound) { if (bal == baltel) { ++baltel; if (baltel < 21) { levelfader.gotoAndPlay(2); } if (baltel == 21) { keyfound = true; sleuteldrop.gotoAndPlay(2); } } else { _parent.sound_buzzer.start(); setup8(); levelfader.gotoAndPlay(2); } } } level = 24; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; keyfound = false; setup8(); stop(); } instance bb1 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(1); } } instance bb2 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(2); } } instance bb3 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(3); } } instance bb4 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(4); } } instance bb5 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(5); } } instance bb6 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(6); } } instance bb7 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(7); } } instance bb8 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(8); } } instance bb9 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(9); } } instance bb20 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(20); } } instance bb10 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(10); } } instance bb11 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(11); } } instance bb12 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(12); } } instance bb13 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(13); } } instance bb14 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(14); } } instance bb15 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(15); } } instance bb16 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(16); } } instance bb17 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(17); } } instance bb18 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(18); } } instance bb19 of movieClip 7 { onClipEvent (press) { _parent.pressbal8(19); } } frame 27 { function setup25() { i = 12; while (i < 43) { (eval('tile' + i))._x += 2000; ++i; } sleutel._visible = false; hits = 0; } function movetheBall() { ball._x += ball.deltaX; ball._y += ball.deltaY; if (sleutel._visible && ball.hitTest(sleutel)) { fadeout.gotoAndPlay(2); sleutelfound = true; sleutel._visible = false; } if (ball._y < 159) { ball.deltaY *= -1; lasttile = 99; } ishit = false; i = 0; while (i < tiles.length) { if (tiles[i].hitTest(ball._x, ball._y + 9, true)) { _parent.sound_pong3.start(); ball.deltaY *= -1; tiles[i]._x += 2000; ++hits; ishit = true; break; } else { if (tiles[i].hitTest(ball._x - 9, ball._y, true)) { _parent.sound_pong3.start(); ball.deltaX *= -1; tiles[i]._x += 2000; ++hits; ishit = true; break; } else { if (tiles[i].hitTest(ball._x, ball._y - 9, true)) { _parent.sound_pong3.start(); ball.deltaY *= -1; tiles[i]._x += 2000; ++hits; ishit = true; break; } else { if (tiles[i].hitTest(ball._x + 9, ball._y, true)) { _parent.sound_pong3.start(); ball.deltaX *= -1; tiles[i]._x += 2000; ++hits; ishit = true; break; } } } } ++i; } if (ishit) { if (hits == 11) { i = 12; while (i < 22) { (eval('tile' + i))._x -= 2000; ++i; } } if (hits == 21) { i = 22; while (i < 29) { (eval('tile' + i))._x -= 2000; ++i; } } if (hits == 28) { i = 29; while (i < 43) { (eval('tile' + i))._x -= 2000; ++i; } sleutel._visible = true; } } if (ball._y > 416 && ball.hitTest(paddle) && ball.deltaY > 0) { lasttile = 99; _parent.sound_pong1.start(); ball.deltaX = (ball._x - paddle._x) / 4; ball.deltaY *= -1; ball._y = Math.min(ball._y, paddle._y + 10); } if (ball._x < 19 || ball._x > 581) { ball.deltaX *= -1; lasttile = 99; } if (ball._y > 460) { lasttile = 99; balllaunched = false; ball._y = paddle._y - 15; ball.deltaX = 5; ball.deltaY = -10; if (!sleutelfound) { i = 0; while (i < tiles.length) { if (tiles[i]._x > 1000) { tiles[i]._x -= 2000; } ++i; } setup25(); } } } level = 25; if (level > _parent.sohigh) { _parent.mk2shared.data.sohigh = level; _parent.mk2shared.flush(); } stripes.filters = [blur]; balllaunched = false; ball.deltaX = 5; ball.deltaY = -10; var tiles = [tile1, tile2, tile3, tile4, tile5, tile6, tile7, tile8, tile9, tile10, tile11, tile12, tile13, tile14, tile15, tile16, tile17, tile18, tile19, tile20, tile21, tile22, tile23, tile24, tile25, tile26, tile27, tile28, tile29, tile30, tile31, tile32, tile33, tile34, tile35, tile36, tile37, tile38, tile39, tile40, tile41, tile42]; sleutelfound = false; setup25(); var blur = new flash.filters.BlurFilter(8, 8, 1); stripes.filters = [blur]; var glow = new flash.filters.GlowFilter(16777215, 0.8, 4, 4, 4, 4); sleutel.filters = [glow]; stop(); } instance paddle of movieClip 237 { onClipEvent (enterFrame) { this._x = _parent._xmouse; if (this._x < 35) { this._x = 35; } else { if (this._x > 565) { this._x = 565; } } } } frame 28 { _parent.sound_loop1.stop(); _parent.sound_loop2.start(); stop(); } }




http://swfchan.com/21/100294/info.shtml
Created: 21/3 -2019 10:10:30 Last modified: 21/3 -2019 10:10:30 Server time: 24/04 -2024 22:07:25