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

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

Girl Games - Beach Resort.swf

This is the info page for
Flash #118781

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


ActionScript [AS1/AS2]
Combined Code
movieClip 3258 { } frame 1 { stop(); mochi.as2.MochiAd.showPreGameAd({'id': '27351bd936fd3772', 'res': '900x700'}); } movieClip 2018 { // unknown tag 90 length 4 } movieClip 4104 { } movieClip 3210 { } movieClip 2504 { } movieClip 497 { frame 1 { onEnterFrame = function () { var v4 = _root.getBytesLoaded(); var v3 = _root.getBytesTotal(); var v5 = int((v4 / v3) * 100); num_txt.text = v5 + '%'; if (v4 == v3) { delete this.onEnterFrame; } }; } } // unknown tag 88 length 87 movieClip 4144 { } movieClip 459 { } movieClip 2946 { } movieClip 2852 { } movieClip 4098 { } movieClip 1848 { frame 1 { onPress = function () { FWGURL(); }; this.cacheAsBitmap = true; } } movieClip 1271 { frame 1 { _x = Stage.width / 2; _y = Stage.height / 2 - 30; } frame 39 { stop(); var rate; var all = _root.getBytesTotal(); onEnterFrame = function () { var v3 = _root.getBytesLoaded(); rate = int((v3 / all) * 100) + '%'; mLoading._alpha = Math.round(SFM.linearCycle(getTimer(), 1000, 100)); if (v3 == all) { if (_root._mochiad instanceof MovieClip != true) { _root.play(); delete this.onEnterFrame; } } }; } } movieClip 279 __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 '3.0 as2'; }; v1.showPreGameAd = function (options) { var v26 = {'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, v26); if ('c862232051e0a94e1c3609b3916ddb17'.substr(0) == 'dfeada81ac97cde83665f81c12da7def') { options.ad_started(); options.ad_finished(); return undefined; } var clip = options.clip; var v22 = 11000; var v25 = 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 v14 = mochi.as2.MochiAd._getRes(options); var v4 = v14[0]; var v13 = v14[1]; mc._x = v4 * 0.5; mc._y = v13 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk._x = v4 * -0.5; chk._y = v13 * -0.5; var v6 = chk.createEmptyMovieClip('_mochiad_bar', 4); if (options.no_progress_bar) { v6._visible = false; delete options.no_progress_bar; } else { v6._x = 10; v6._y = v13 - 20; } var v21 = options.color; delete options.color; var v19 = options.background; delete options.background; var v23 = options.outline; delete options.outline; var v5 = v6.createEmptyMovieClip('_outline', 1); v5.beginFill(v19); v5.moveTo(0, 0); v5.lineTo(v4 - 20, 0); v5.lineTo(v4 - 20, 10); v5.lineTo(0, 10); v5.lineTo(0, 0); v5.endFill(); var v3 = v6.createEmptyMovieClip('_inside', 2); v3.beginFill(v21); v3.moveTo(0, 0); v3.lineTo(v4 - 20, 0); v3.lineTo(v4 - 20, 10); v3.lineTo(0, 10); v3.lineTo(0, 0); v3.endFill(); v3._xscale = 0; var v7 = v6.createEmptyMovieClip('_outline', 3); v7.lineStyle(0, v23, 100); v7.moveTo(0, 0); v7.lineTo(v4 - 20, 0); v7.lineTo(v4 - 20, 10); v7.lineTo(0, 10); v7.lineTo(0, 0); chk.ad_msec = v22; chk.ad_timeout = v25; 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; } }; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; 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 v6 = this._parent._parent; var v11 = this._parent._mochiad_ctr; var v5 = getTimer() - this.started; var v3 = false; var v4 = v6.getBytesTotal(); var v8 = v6.getBytesLoaded(); var v2 = 100 * v8 / v4; var v10 = 100 * v5 / chk.ad_msec; var v9 = this._mochiad_bar._inside; var v13 = Math.min(100, Math.min(v2 || 0, v10)); v13 = Math.max(this.last_pcnt, v13); this.last_pcnt = v13; v9._xscale = v13; options.ad_progress(v13); if (sendHostProgress) { clip._mochiad.lc.send(clip._mochiad._containerLCName, 'notify', {'id': 'hostLoadPcnt', 'pcnt': v2}); if (v2 == 100) { sendHostProgress = false; } } if (!chk.showing) { var v7 = v11.getBytesTotal(); if (v7 > 0 || typeof v7 == 'undefined') { chk.showing = true; chk.started = getTimer(); } else { if (v5 > chk.ad_timeout && v2 == 100) { options.ad_failed(); v3 = true; } } } if (v5 > chk.ad_msec) { v3 = true; } if (v4 > 0 && v8 >= v4 && v3) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; } } }; }; v1.showClickAwayAd = function (options) { var v9 = {'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, v9); var clip = options.clip; var v8 = 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 mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var v4 = mochi.as2.MochiAd._getRes(options); var v10 = v4[0]; var v7 = v4[1]; mc._x = v10 * 0.5; mc._y = v7 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk.ad_timeout = v8; chk.started = getTimer(); chk.showing = false; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; var v20 = false; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; 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 v13 = {'clip': _root, 'server': 'http://x.mochiads.com/srv/1/', 'method': 'load', 'depth': 10333, 'id': '_UNKNOWN_'}; options = mochi.as2.MochiAd._parseOptions(options, v13); options.swfv = options.clip.getSWFVersion() || 6; options.mav = mochi.as2.MochiAd.getVersion(); var v7 = options.clip; if (!mochi.as2.MochiAd._isNetworkAvailable()) { return null; } if (v7._mochiad_loaded) { return null; } var v12 = options.depth; delete options.depth; var v6 = v7.createEmptyMovieClip('_mochiad', v12); var v11 = mochi.as2.MochiAd._getRes(options); options.res = v11[0] + 'x' + v11[1]; options.server += options.id; delete options.id; v7._mochiad_loaded = true; if (v7._url.indexOf('http') != 0) { trace('[MochiAd] NOTE: Security Sandbox Violation errors below are normal'); } var v4 = v6.createEmptyMovieClip('_mochiad_ctr', 1); for (var v8 in options) { v4[v8] = options[v8]; } var v10 = v4.server; delete v4.server; var v14 = mochi.as2.MochiAd._allowDomains(v10); v6.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 LocalConnection(); var v9 = ['', Math.floor((new Date()).getTime()), random(999999)].join('_'); v5.mc = v6; v5.name = v9; v5.hostname = v14; v5.allowDomain = function (d) { return true; }; v5.allowInsecureDomain = v5.allowDomain; v5.connect(v9); v6.lc = v5; v4.lc = v9; v4.st = getTimer(); v4.loadMovie(v10 + '.swf', 'POST'); return v6; }; v1.unload = function (clip) { if (typeof clip == 'undefined') { clip = _root; } if (clip.clip && clip.clip._mochiad) { clip = clip.clip; } if (!clip._mochiad) { return false; } if (clip._mochiad._containerLCName != undefined) { clip._mochiad.lc.send(clip._mochiad._containerLCName, 'notify', {'id': 'unload'}); } 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); clip._mochiad.lc.send(clip._mochiad._containerLCName, 'rpcResult', callbackID, v4); break; case 'runMethod': var v3 = mochi.as2.MochiAd.runMethod(clip, arg.method, arg.args); clip._mochiad.lc.send(clip._mochiad._containerLCName, 'rpcResult', callbackID, v3); 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; } }; ASSetPropFlags(mochi.as2.MochiAd.prototype, null, 1); } #endinitclip } frame 2 { stop(); } movieClip 2688 { } movieClip 4134 { } movieClip 2284 { } movieClip 711 { frame 1 { onRelease = function () { getURL('http://www.freeworldgroup.com', ''); }; } } movieClip 1 { } movieClip 1459 { frame 1 { _x = Stage.width / 2; _y = Stage.height / 2; onRelease = function () { getURL('http://www.freeworldgroup.com/', '_blank'); }; onEnterFrame = function () { if (_currentframe > 80) { delete this.onEnterFrame; } else { _root.stop(); } }; } frame 146 { stop(); _root.play(); } } movieClip 2324 { } movieClip 3790 { } movieClip 3702 { } movieClip 2494 { } movieClip 3342 { // unknown tag 90 length 2 } movieClip 2280 { } movieClip 2868 { } movieClip 21 { frame 1 { stop(); } } movieClip 1962 { } frame 3 { // An attempt to read a value from empty stack return undefined; label 1: goto 1; } frame 5 { str = '<?xml version="1.0" encoding="utf-8" ?><data><file lv="1" timeNum="75" AI="800" \ttimeAI="200" speedAI="0" pass_money=" 500" food1_money="40" \t\t food2_money="50" \t\t\t food3_money="35" \t help_money="120" \tballoon_money="150" \tdock_money="200"\t\tshark_money="150"\t\tsurf_money="220"\t\tdive_money="190"/><file lv="2" timeNum="75" AI="700"\ttimeAI="180" speedAI="0" pass_money="600" food1_money="40" \t\t food2_money="51" \t\t\t food3_money="35" \t help_money="120" \tballoon_money="150" \tdock_money="200"\t\tshark_money="150"\t\tsurf_money="220"\t\tdive_money="190"/><file lv="3" timeNum="75" AI="500"\ttimeAI="160" speedAI="0" pass_money="700" food1_money="40" \t\t food2_money="52" \t\t\t food3_money="35" \t help_money="120" \tballoon_money="150" \tdock_money="200"\t\tshark_money="150"\t\tsurf_money="220"\t\tdive_money="190"/><file lv="4" timeNum="75" AI="300"\ttimeAI="140" speedAI="1" pass_money="700" food1_money="40" \t\t food2_money="53" \t\t\t food3_money="35" \t help_money="120" \tballoon_money="165" \tdock_money="220"\t\tshark_money="150"\t\tsurf_money="250"\t\tdive_money="210"/><file lv="5" timeNum="75" AI="150"\ttimeAI="120" speedAI="1" pass_money="750" food1_money="40" \t\t food2_money="54" \t\t\t food3_money="35" \t help_money="150" \tballoon_money="165" \tdock_money="220"\t\tshark_money="150"\t\tsurf_money="250"\t\tdive_money="210"/><file lv="6" timeNum="75" AI="100"\ttimeAI="100" speedAI="1" pass_money="750" food1_money="40" \t\t food2_money="55" \t\t\t food3_money="40" \t help_money="150" \tballoon_money="165" \tdock_money="220"\t\tshark_money="200"\t\tsurf_money="250"\t\tdive_money="210"/><file lv="7" timeNum="75" AI="80"\ttimeAI="80" speedAI="1" pass_money="800" food1_money="40" \t\t food2_money="56" \t\t\t food3_money="40" \t help_money="150" \tballoon_money="165" \tdock_money="240"\t\tshark_money="200"\t\tsurf_money="280"\t\tdive_money="230"/><file lv="8" timeNum="75" AI="60"\ttimeAI="60" speedAI="1" pass_money="800" food1_money="40" \t\t food2_money="57" \t\t\t food3_money="40" \t help_money="180" \tballoon_money="180" \tdock_money="240"\t\tshark_money="200"\t\tsurf_money="280"\t\tdive_money="230"/><file lv="9" timeNum="75" AI="30"\ttimeAI="50" speedAI="1" pass_money="900" food1_money="40" \t\t food2_money="58" \t\t\t food3_money="40" \t help_money="180" \tballoon_money="180" \tdock_money="240"\t\tshark_money="200"\t\tsurf_money="280"\t\tdive_money="230"/><file lv="10" timeNum="75" AI="10"\ttimeAI="30" speedAI="2" pass_money="1000" food1_money="40" \t\t food2_money="60" \t\t\t food3_money="40" \t help_money="180" \tballoon_money="180" \tdock_money="240"\t\tshark_money="200"\t\tsurf_money="300"\t\tdive_money="230"/><file lv="1" Goods0="50"\tGoods1="60"\tGoods2="48"\tGoods3="30"\tGoods4="40"\tGoods5="45"\tGoods6="26"\tGoods7="70"\tGoods8="90"\tGoods9="1999"/><file lv="2" Goods0="50"\tGoods1="60"\tGoods2="48"\tGoods3="30"\tGoods4="40"\tGoods5="45"\tGoods6="26"\tGoods7="70"\tGoods8="90"\tGoods9="19"/><file lv="3" Goods0="50"\tGoods1="60"\tGoods2="48"\tGoods3="30"\tGoods4="40"\tGoods5="45"\tGoods6="26"\tGoods7="70"\tGoods8="90"\tGoods9="19"/><file lv="4" Goods0="50"\tGoods1="60"\tGoods2="48"\tGoods3="30"\tGoods4="40"\tGoods5="45"\tGoods6="26"\tGoods7="75"\tGoods8="90"\tGoods9="19"/><file lv="5" Goods0="50"\tGoods1="60"\tGoods2="48"\tGoods3="30"\tGoods4="40"\tGoods5="45"\tGoods6="26"\tGoods7="75"\tGoods8="90"\tGoods9="19"/><file lv="6" Goods0="55"\tGoods1="65"\tGoods2="50"\tGoods3="35"\tGoods4="45"\tGoods5="50"\tGoods6="28"\tGoods7="75"\tGoods8="100"\tGoods9="19"/><file lv="7" Goods0="55"\tGoods1="65"\tGoods2="50"\tGoods3="35"\tGoods4="45"\tGoods5="50"\tGoods6="28"\tGoods7="80"\tGoods8="100"\tGoods9="19"/><file lv="8" Goods0="55"\tGoods1="65"\tGoods2="50"\tGoods3="35"\tGoods4="45"\tGoods5="50"\tGoods6="28"\tGoods7="80"\tGoods8="100"\tGoods9="19"/><file lv="9" Goods0="55"\tGoods1="65"\tGoods2="50"\tGoods3="35"\tGoods4="45"\tGoods5="50"\tGoods6="28"\tGoods7="80"\tGoods8="100"\tGoods9="19"/><file lv="10" Goods0="55"\tGoods1="65"\tGoods2="50"\tGoods3="35"\tGoods4="45"\tGoods5="50"\tGoods6="28"\tGoods7="80"\tGoods8="100"\tGoods9="19"/><file lv="1" shop_speedup_money0="1100" shop_speedup_money1="2000" shop_Cap_money="300" shop_Sunglass_money="500" \tshop_Chair_money="560" \tshop_Umbrella_money="600" \t\tshop_SurfArea_money="800" \t\tshop_DiveArea_money="900" \t\tshop_BargeArea_money="1020" \t\t\tshop_Cog_money="600"shop_Barge_money="800" \tshop_LuxuryBarge_money="1300" \t\t\tshop_Balloon_money="1000" \tshop_Accusation_money="600" \tshop_Banana_money="600" \tshop_Flowers_money="600" \t\tshop_Act_money="1000" \t\tshop_Medal_money="900"\t/><file lv="2" shop_speedup_money0="1120" shop_speedup_money1="2020" shop_Cap_money="330" shop_Sunglass_money="500" \tshop_Chair_money="530" \tshop_Umbrella_money="580" \t\tshop_SurfArea_money="860" \t\tshop_DiveArea_money="880" \t\tshop_BargeArea_money="1120" \t\t\tshop_Cog_money="580"shop_Barge_money="860" \tshop_LuxuryBarge_money="1360" \t\t\tshop_Balloon_money="1100" \tshop_Accusation_money="600" \tshop_Banana_money="600" \tshop_Flowers_money="600" \t\tshop_Act_money="1000" \t\tshop_Medal_money="1000"\t/><file lv="3" shop_speedup_money0="1130" shop_speedup_money1="2100" shop_Cap_money="300" shop_Sunglass_money="500" \tshop_Chair_money="570" \tshop_Umbrella_money="600" \t\tshop_SurfArea_money="880" \t\tshop_DiveArea_money="960" \t\tshop_BargeArea_money="1200" \t\t\tshop_Cog_money="630"shop_Barge_money="880" \tshop_LuxuryBarge_money="1330" \t\t\tshop_Balloon_money="1200" \tshop_Accusation_money="600" \tshop_Banana_money="600" \tshop_Flowers_money="600" \t\tshop_Act_money="1100" \t\tshop_Medal_money="1100"\t/><file lv="4" shop_speedup_money0="1150" shop_speedup_money1="2050" shop_Cap_money="350" shop_Sunglass_money="500" \tshop_Chair_money="600" \tshop_Umbrella_money="610" \t\tshop_SurfArea_money="900" \t\tshop_DiveArea_money="920" \t\tshop_BargeArea_money="1260" \t\t\tshop_Cog_money="660"shop_Barge_money="820" \tshop_LuxuryBarge_money="1400" \t\t\tshop_Balloon_money="1150" \tshop_Accusation_money="600" \tshop_Banana_money="600" \tshop_Flowers_money="600" \t\tshop_Act_money="900" \t\tshop_Medal_money="1200"\t/><file lv="5" shop_speedup_money0="1280" shop_speedup_money1="2180" shop_Cap_money="300" shop_Sunglass_money="500" \tshop_Chair_money="630" \tshop_Umbrella_money="590" \t\tshop_SurfArea_money="920" \t\tshop_DiveArea_money="950" \t\tshop_BargeArea_money="1180" \t\t\tshop_Cog_money="600"shop_Barge_money="830" \tshop_LuxuryBarge_money="1420" \t\t\tshop_Balloon_money="1110" \tshop_Accusation_money="600" \tshop_Banana_money="600" \tshop_Flowers_money="600" \t\tshop_Act_money="1000" \t\tshop_Medal_money="1300"\t/><file lv="6" shop_speedup_money0="1260" shop_speedup_money1="2160" shop_Cap_money="360" shop_Sunglass_money="500" \tshop_Chair_money="660" \tshop_Umbrella_money="650" \t\tshop_SurfArea_money="930" \t\tshop_DiveArea_money="1000" \t\tshop_BargeArea_money="1250" \t\t\tshop_Cog_money="680"shop_Barge_money="780" \tshop_LuxuryBarge_money="1440" \t\t\tshop_Balloon_money="1260" \tshop_Accusation_money="600" \tshop_Banana_money="600" \tshop_Flowers_money="600" \t\tshop_Act_money="1050" \t\tshop_Medal_money="1200"\t/><file lv="7" shop_speedup_money0="1260" shop_speedup_money1="2250" shop_Cap_money="390" shop_Sunglass_money="500" \tshop_Chair_money="690" \tshop_Umbrella_money="660" \t\tshop_SurfArea_money="950" \t\tshop_DiveArea_money="1050" \t\tshop_BargeArea_money="1310" \t\t\tshop_Cog_money="700"shop_Barge_money="850" \tshop_LuxuryBarge_money="1500" \t\t\tshop_Balloon_money="1300" \tshop_Accusation_money="600" \tshop_Banana_money="800" \tshop_Flowers_money="600" \t\tshop_Act_money="1000" \t\tshop_Medal_money="1100"\t/><file lv="8" shop_speedup_money0="1290" shop_speedup_money1="2190" shop_Cap_money="400" shop_Sunglass_money="500" \tshop_Chair_money="670" \tshop_Umbrella_money="600" \t\tshop_SurfArea_money="980" \t\tshop_DiveArea_money="1090" \t\tshop_BargeArea_money="1320" \t\t\tshop_Cog_money="730"shop_Barge_money="900" \tshop_LuxuryBarge_money="1530" \t\t\tshop_Balloon_money="1350" \tshop_Accusation_money="600" \tshop_Banana_money="600" \tshop_Flowers_money="600" \t\tshop_Act_money="1100" \t\tshop_Medal_money="1300"\t/><file lv="9" shop_speedup_money0="1300" shop_speedup_money1="2200" shop_Cap_money="410" shop_Sunglass_money="500" \tshop_Chair_money="660" \tshop_Umbrella_money="680" \t\tshop_SurfArea_money="1000" \t\tshop_DiveArea_money="1100" \t\tshop_BargeArea_money="1360" \t\t\tshop_Cog_money="700"shop_Barge_money="920" \tshop_LuxuryBarge_money="1500" \t\t\tshop_Balloon_money="1360" \tshop_Accusation_money="600" \tshop_Banana_money="600" \tshop_Flowers_money="600" \t\tshop_Act_money="1080" \t\tshop_Medal_money="1250"\t/><file lv="10" shop_speedup_money0="1360" shop_speedup_money1="2260" shop_Cap_money="460" shop_Sunglass_money="500" \tshop_Chair_money="700" \tshop_Umbrella_money="700" \t\tshop_SurfArea_money="1100" \t\tshop_DiveArea_money="1200" \t\tshop_BargeArea_money="1380" \t\t\tshop_Cog_money="750"shop_Barge_money="960" \tshop_LuxuryBarge_money="1600" \t\t\tshop_Balloon_money="1390" \tshop_Accusation_money="600" \tshop_Banana_money="600" \tshop_Flowers_money="600" \t\tshop_Act_money="1000" \t\tshop_Medal_money="1300"\t/></data>'; objectArray = new Array(); goodsMoneyArray = new Array(); shopMoneyArray = new Array(); System.useCodepage = true; my_xml = new XML(str); my_xml.ignoreWhite = true; len = my_xml.firstChild.childNodes.length; trace('长度' + len); var i = 0; while (i < len) { if (i < 10) { var ob = new Object(); ob.lv = my_xml.firstChild.childNodes[i].attributes.lv; ob.timeNum = my_xml.firstChild.childNodes[i].attributes.timeNum; ob.pass_money = my_xml.firstChild.childNodes[i].attributes.pass_money; ob.AI = my_xml.firstChild.childNodes[i].attributes.AI; ob.timeAI = my_xml.firstChild.childNodes[i].attributes.timeAI; ob.speedAI = my_xml.firstChild.childNodes[i].attributes.speedAI; trace(ob.speedAI); ob.food1_money = my_xml.firstChild.childNodes[i].attributes.food1_money; ob.food2_money = my_xml.firstChild.childNodes[i].attributes.food2_money; ob.food3_money = my_xml.firstChild.childNodes[i].attributes.food3_money; ob.help_money = my_xml.firstChild.childNodes[i].attributes.help_money; ob.balloon_money = my_xml.firstChild.childNodes[i].attributes.balloon_money; ob.dock_money = my_xml.firstChild.childNodes[i].attributes.dock_money; ob.shark_money = my_xml.firstChild.childNodes[i].attributes.shark_money; ob.surf_money = my_xml.firstChild.childNodes[i].attributes.surf_money; ob.dive_money = my_xml.firstChild.childNodes[i].attributes.dive_money; objectArray.push(ob); } else { if (i < 20) { var ob = new Object(); var j = 0; while (j <= 8) { ob['goods' + j] = my_xml.firstChild.childNodes[i].attributes['Goods' + j]; ++j; } goodsMoneyArray.push(ob); } else { if (i < 30) { var ob = new Object(); ob.lv = my_xml.firstChild.childNodes[i].attributes.lv; ob.shop_speedup_money0 = my_xml.firstChild.childNodes[i].attributes.shop_speedup_money0; ob.shop_speedup_money1 = my_xml.firstChild.childNodes[i].attributes.shop_speedup_money1; trace(ob.shop_speedup_money1); trace(ob.shop_speedup_money0); ob.shop_Cap_money = my_xml.firstChild.childNodes[i].attributes.shop_Cap_money; ob.shop_Sunglass_money = my_xml.firstChild.childNodes[i].attributes.shop_Sunglass_money; ob.shop_Chair_money = my_xml.firstChild.childNodes[i].attributes.shop_Chair_money; ob.shop_Umbrella_money = my_xml.firstChild.childNodes[i].attributes.shop_Umbrella_money; ob.shop_SurfArea_money = my_xml.firstChild.childNodes[i].attributes.shop_SurfArea_money; ob.shop_DiveArea_money = my_xml.firstChild.childNodes[i].attributes.shop_DiveArea_money; ob.shop_BargeArea_money = my_xml.firstChild.childNodes[i].attributes.shop_BargeArea_money; ob.shop_Cog_money = my_xml.firstChild.childNodes[i].attributes.shop_Cog_money; ob.shop_Barge_money = my_xml.firstChild.childNodes[i].attributes.shop_Barge_money; ob.shop_LuxuryBarge_money = my_xml.firstChild.childNodes[i].attributes.shop_LuxuryBarge_money; ob.shop_Balloon_money = my_xml.firstChild.childNodes[i].attributes.shop_Balloon_money; ob.shop_Accusation_money = my_xml.firstChild.childNodes[i].attributes.shop_Accusation_money; ob.shop_Banana_money = my_xml.firstChild.childNodes[i].attributes.shop_Banana_money; ob.shop_Flowers_money = my_xml.firstChild.childNodes[i].attributes.shop_Flowers_money; ob.shop_Act_money = my_xml.firstChild.childNodes[i].attributes.shop_Act_money; ob.shop_Medal_money = my_xml.firstChild.childNodes[i].attributes.shop_Medal_money; shopMoneyArray.push(ob); } } } ++i; } _root.gotoAndStop(10); } movieClip 2064 { } frame 10 { function backSoundFu(id_temp) { if (id_temp == 1) { backSound.start(0, 999); _root.ynbackSound = false; } else { backSound.stop(); _root.ynbackSound = true; } } var w = 0; while (w < 10) { this['way' + w].removeMovieClip(); ++w; } stop(); stopAllSounds(); _root.fenFull = 0; _root.fen = 0; _root.passFen = 0; _root.thispassFen = 0; _root.lv = 0; _root.thisFen = 0; _root._game_name = 'beachresort'; _root.ynbackSound = false; _root.ynsound = false; _root.helpID = 1; backSound = new Sound(); backSound.attachSound('backSound'); _root.isCap = false; _root.isSunglass = false; _root.isChair = false; _root.isUmbrella = false; _root.isSurfArea = false; _root.isDiveArea = false; _root.isBargeArea = false; _root.isCog = false; _root.isBarge = false; _root.isLuxuryBarge = false; _root.isBalloon = false; _root.isAccusation = false; _root.isBanana = false; _root.isFlowers = false; _root.isAct = false; _root.isMedal = false; _root.isSpeedup = false; _root.speedup_lv = 0; stop(); } movieClip 2720 { } movieClip 1326 { } movieClip 1020 { } movieClip 523 { } movieClip 383 { } movieClip 3598 { } movieClip 1966 { } movieClip 1637 { } movieClip 1477 { } movieClip 4136 { } movieClip 3914 { } movieClip 2590 { } movieClip 1596 { } movieClip 2682 { // unknown tag 90 length 3 } movieClip 2574 { } movieClip 3686 { } movieClip 595 { } movieClip 2274 { } movieClip 3642 { } movieClip 3216 { } movieClip 3608 { } movieClip 2370 { } // unknown tag 88 length 50 movieClip 2460 { // unknown tag 90 length 2 } button 1678 { on (release) { gotoAndPlay(203); } } movieClip 3786 { } movieClip 3456 { } movieClip 2732 { } movieClip 3734 { } movieClip 3244 { // unknown tag 88 length 3 } movieClip 2952 { } movieClip 2678 { } movieClip 3612 { } movieClip 2716 { } movieClip 4094 { } movieClip 3078 { } movieClip 2730 { } // unknown tag 88 length 138 movieClip 4084 { } frame 10 { // An attempt to read a value from empty stack return undefined; label 1: goto 1; } movieClip 3910 { } button 935 { on (release) { getURL('http://www.freeworldgroup.com/', '_blank'); } } movieClip 3162 { } movieClip 1912 { } movieClip 3038 { } movieClip 2100 { } movieClip 3212 { } button 934 { on (release) { _parent.gotoAndStop(289); } } movieClip 2856 { } movieClip 1232 { frame 1 { this.onRelease = function () { getURL('http://www.freeworldgroup.com', '_blank'); }; } } movieClip 889 { } movieClip 2052 { } movieClip 3970 { } movieClip 4130 { // unknown tag 88 length 2 } movieClip 3776 { } movieClip 1017 { } // unknown tag 88 length 52 movieClip 3336 { } movieClip 3774 { } movieClip 2232 { } button 504 { on (release) { _root.gotoAndStop(20); } } movieClip 3696 { // unknown tag 91 length 3 } movieClip 2022 { } movieClip 60 { } button 1304 { on (release) { _root.helpID = 1; _root.gotoAndStop(20); } } movieClip 3782 { } movieClip 636 { } button 649 { on (release) { getURL('http://www.ifungames.com', '_blank'); } } movieClip 1368 { } movieClip 3030 { } button 816 { on (release) { getURL('http://www.freeworldgroup.com/games9/gameindex/bedandbreakfast2.htm', '_blank'); } } movieClip 721 { } movieClip 3076 { } button 1312 { on (release) { getURL('http://www.freeworldgroup.com/score/index.asp?game=' + _root._game_name, '_blank'); } } movieClip 3972 { } button 1231 { on (release) { gotoAndStop(285); } } movieClip 1202 { frame 203 { _root.backSoundFu(1); } frame 285 { stop(); } } movieClip 2906 { } movieClip 3550 { } frame 19 { _root.helpID = -1; _root.fen = 0; _root.gotoAndStop(20); } movieClip 2824 { } movieClip 2724 { } frame 20 { function callback() { if (_root.ynmain == false) { _root.hNum = (int((_timeNum % 3600) / 60)).toString(); hh = _root.hNum; if (_root.hNum.length == 1) { hh = '0' + _root.hNum; } ss = (int(_timeNum % 3600 % 60)).toString(); if (ss.length == 1) { ss = '0' + ss; } _root.timeNum = hh + ':' + ss; ++_root._timeNum; if (_root._timeNum >= 720) { _root.AMPM.gotoAndStop(2); } if (_root._timeNum >= 1260) { clearInterval(intervalID); if (_root.fen >= _root.passFen && _root.fen >= _root.pass_moneyFull) { levelcompleteSound.start(); _root.pp_mc.gotoAndStop(5); } else { _root.gotoAndStop(30); } } } } function setLv() { _root.timeNum = int(_root.objectArray[_root.lv].timeNum); _root.pass_money = int(_root.objectArray[_root.lv].pass_money); _root.AI = int(_root.objectArray[_root.lv].AI); _root.timeAI = int(_root.objectArray[_root.lv].timeAI); _root.speedAI = int(_root.objectArray[_root.lv].speedAI); _root.food1_money = int(_root.objectArray[_root.lv].food1_money); _root.food2_money = int(_root.objectArray[_root.lv].food2_money); _root.food3_money = int(_root.objectArray[_root.lv].food3_money); _root.help_money = int(_root.objectArray[_root.lv].help_money); _root.balloon_money = int(_root.objectArray[_root.lv].balloon_money); _root.dock_money = int(_root.objectArray[_root.lv].dock_money); _root.shark_money = int(_root.objectArray[_root.lv].shark_money); _root.surf_money = int(_root.objectArray[_root.lv].surf_money); _root.dive_money = int(_root.objectArray[_root.lv].dive_money); var v2 = 0; while (v2 <= 8) { _root['goods' + v2 + '_money'] = int(_root.goodsMoneyArray[_root.lv]['goods' + v2]); ++v2; } _root.m1 = int(_root.shopMoneyArray[_root.lv].shop_Cap_money); _root.m2 = int(_root.shopMoneyArray[_root.lv].shop_Sunglass_money); _root.m3 = int(_root.shopMoneyArray[_root.lv].shop_Chair_money); _root.m4 = int(_root.shopMoneyArray[_root.lv].shop_Umbrella_money); _root.m5 = int(_root.shopMoneyArray[_root.lv].shop_SurfArea_money); _root.m6 = int(_root.shopMoneyArray[_root.lv].shop_DiveArea_money); _root.m7 = int(_root.shopMoneyArray[_root.lv].shop_BargeArea_money); _root.m8 = int(_root.shopMoneyArray[_root.lv].shop_Cog_money); _root.m9 = int(_root.shopMoneyArray[_root.lv].shop_Barge_money); _root.m10 = int(_root.shopMoneyArray[_root.lv].shop_LuxuryBarge_money); _root.m11 = int(_root.shopMoneyArray[_root.lv].shop_Balloon_money); _root.m12 = int(_root.shopMoneyArray[_root.lv].shop_Accusation_money); _root.m13 = int(_root.shopMoneyArray[_root.lv].shop_Banana_money); _root.m14 = int(_root.shopMoneyArray[_root.lv].shop_Flowers_money); _root.m15 = int(_root.shopMoneyArray[_root.lv].shop_Act_money); _root.m16 = int(_root.shopMoneyArray[_root.lv].shop_Medal_money); if (_root.speedup_lv == 0) { _root.m17 = int(_root.shopMoneyArray[_root.lv].shop_speedup_money0); } else { _root.m17 = int(_root.shopMoneyArray[_root.lv].shop_speedup_money1); } _root.pass_moneyFull = _root.pass_money; } function backSoundFu(id_temp) { if (id_temp == 1) { backSound.start(0, 999); _root.ynbackSound = false; } else { backSound.stop(); _root.ynbackSound = true; } } function soundFu(id_temp) { if (id_temp == 1) { _root.ynsound = false; 跳舞Sound = new Sound(); 跳舞Sound.attachSound('跳舞'); 开船Sound = new Sound(); 开船Sound.attachSound('开船'); 船Sound = new Sound(); 船Sound.attachSound('船'); 冲浪教学Sound = new Sound(); 冲浪教学Sound.attachSound('冲浪教学'); 警告Sound = new Sound(); 警告Sound.attachSound('警告'); 潜水教学Sound = new Sound(); 潜水教学Sound.attachSound('潜水教学'); 铃声Sound = new Sound(); 铃声Sound.attachSound('铃声'); 救命Sound = new Sound(); 救命Sound.attachSound('救命'); 顾客给钱Sound = new Sound(); 顾客给钱Sound.attachSound('顾客给钱'); 警察带走Sound = new Sound(); 警察带走Sound.attachSound('警察带走'); 点火Sound = new Sound(); 点火Sound.attachSound('点火'); 滑到Sound = new Sound(); 滑到Sound.attachSound('滑到'); 花和奖章Sound = new Sound(); 花和奖章Sound.attachSound('花和奖章'); 要潜水Sound = new Sound(); 要潜水Sound.attachSound('要潜水'); 要冲浪Sound = new Sound(); 要冲浪Sound.attachSound('要冲浪'); } else { _root.ynsound = true; 跳舞Sound = null; 开船Sound = null; 船Sound = null; 冲浪教学Sound = null; 警告Sound = null; 潜水教学Sound = null; 铃声Sound = null; 救命Sound = null; 顾客给钱Sound = null; 警察带走Sound = null; 点火Sound = null; 滑到Sound = null; 花和奖章Sound = null; 要潜水Sound = null; 要冲浪Sound = null; } } stop(); _root.thisFen = int(_root.fen); _root.thispassFen = int(_root.passFen); _root.fenFull = _root.thisFen; _root.fen = 0; _root.passFen = 0; stopAllSounds(); _root.ynmain = false; clearInterval(intervalID); _root._timeNum = 360; _root.hNum = 0; callback(); setLv(); if (_root.helpID == -1) { var intervalID = setInterval(callback, _root.timeNum); } else { _root.timeNum = '06:00'; } backSound = new Sound(); backSound.attachSound('backSound'); if (_root.ynbackSound == false) { backSoundFu(1); backSound_mc.gotoAndStop(1); } else { backSound_mc.gotoAndStop(2); backSoundFu(2); } if (_root.ynsound == false) { soundFu(1); soun_mc.gotoAndStop(1); } else { soundFu(2); soun_mc.gotoAndStop(2); } if (_root.helpID == 1) { _root.say_mc.gotoAndStop(1); } else { _root.say_mc.gotoAndStop(11); } _root.lvText = _root.lv + 1; if (_root.isAccusation == true) { T_Accusation_mc.gotoAndStop(1); } else { T_Accusation_mc.gotoAndStop(2); } if (_root.isBanana == true) { T_Banana_mc.gotoAndStop(1); } else { T_Banana_mc.gotoAndStop(2); } if (_root.isFlowers == true) { T_Flowers_mc.gotoAndStop(1); } else { T_Flowers_mc.gotoAndStop(2); } if (_root.isAct == true) { T_Act_mc.gotoAndStop(1); } else { T_Act_mc.gotoAndStop(2); } if (_root.isMedal == true) { T_Medal_mc.gotoAndStop(1); } else { T_Medal_mc.gotoAndStop(2); } _root.toolID = -1; _root.toolFull_mc.gotoAndStop(_root.toolFull_mc._totalframes); FlowersIcon_mc.gotoAndStop(FlowersIcon_mc._totalframes); MedalIcon_mc.gotoAndStop(MedalIcon_mc._totalframes); var w = 0; while (w < 10) { this['way' + w].removeMovieClip(); ++w; } trace('helpID' + _root.helpID); if (_root.helpID == 1) { _root.say_mc.gotoAndStop(1); } else { _root.say_mc.gotoAndStop(_root.say_mc._totalframes); } } movieClip 991 { } movieClip 335 { } movieClip 1163 { } movieClip 76 { } movieClip 958 { frame 1 { stop(); } } movieClip 1374 { } movieClip 1279 { } movieClip 1615 { } movieClip 2368 { } movieClip 1705 { } movieClip 3044 { } movieClip 1046 { } movieClip 683 { } movieClip 3114 { // unknown tag 90 length 4 } movieClip 1103 { } movieClip 3424 { } movieClip 3332 { } movieClip 2858 { } movieClip 3470 { } movieClip 1641 { } movieClip 781 { } movieClip 2180 { } movieClip 3556 { } movieClip 1205 { } movieClip 1274 { } movieClip 1032 { instance of movieClip 958 { onClipEvent (enterFrame) { this.gotoAndStop(int(1 * (_root._timeNum - 360))); } } } movieClip 321 { } movieClip 277 { } movieClip 1110 { } movieClip 835 { } movieClip 3004 { } movieClip 619 { } movieClip 3522 { } movieClip 3564 { } movieClip 1891 { } movieClip 1273 { } movieClip 2894 { } movieClip 3688 { } movieClip 4010 { } movieClip 3262 { } movieClip 3082 { } movieClip 257 { } movieClip 2058 { } movieClip 163 { } movieClip 2140 { } movieClip 2948 { } movieClip 2632 { } movieClip 1824 { } movieClip 447 { } movieClip 3648 { } movieClip 2458 { } movieClip 2728 { } movieClip 147 { } movieClip 2904 { } movieClip 4042 { } movieClip 4138 { } movieClip 885 { frame 8 { // An attempt to read a value from empty stack return undefined; label 1: goto 1; } frame 323 { stop(); } } movieClip 142 { frame 1 { stop(); } } movieClip 2536 { } movieClip 3460 { // unknown tag 91 length 4 } movieClip 872 { frame 1 { stop(); } } movieClip 3880 { } movieClip 3816 { } movieClip 3170 { } movieClip 3042 { // unknown tag 88 length 2 } movieClip 975 { } movieClip 1364 { frame 1 { stop(); } frame 16 { _root.点火Sound.start(0, 1); } frame 138 { man_mc.gotoAndStop(man_mc._totalframes); } } movieClip 2954 { } movieClip 2096 { } movieClip 2758 { } movieClip 1761 { frame 1 { stop(); } } movieClip 1820 { frame 10 { stop(); } } movieClip 1080 { frame 1 { stop(); } } movieClip 3372 { } movieClip 1661 { frame 1 { stop(); } } movieClip 612 { frame 1 { stop(); } } movieClip 63 { frame 1 { stop(); } } movieClip 1478 { frame 1 { stop(); } } movieClip 1952 { frame 1 { stop(); } } movieClip 1293 { frame 1 { stop(); } } movieClip 2712 { } movieClip 1731 { frame 1 { stop(); } } movieClip 387 { frame 1 { stop(); } } movieClip 1030 { } movieClip 1942 { } movieClip 1473 { } movieClip 712 { } movieClip 888 { } movieClip 997 { frame 1 { stop(); } } movieClip 597 { } movieClip 326 { frame 1 { stop(); } frame 2 { _root.开船Sound.start(0, 1); } frame 89 { _root.gameFull_mc.shipBigen(3); } } movieClip 1009 { } movieClip 3378 { } movieClip 1378 { frame 1 { stop(); } frame 2 { _root.开船Sound.start(0, 1); } frame 106 { _root.gameFull_mc.shipBigen(2); } } movieClip 1015 { } movieClip 998 { } movieClip 995 { frame 1 { stop(); } frame 2 { _root.开船Sound.start(0, 1); } frame 114 { _root.gameFull_mc.shipBigen(1); } } movieClip 3334 { } movieClip 807 { frame 1 { stop(); } } movieClip 4008 { } movieClip 1458 { frame 1 { stop(); } } movieClip 2548 { } movieClip 3874 { } movieClip 3878 { } movieClip 3824 { } movieClip 446 { frame 30 { _parent.man_mc.gotoAndStop(_parent.man_mc._totalframes); _parent.gotoAndStop(4); } } movieClip 259 { frame 30 { _parent.man_mc.gotoAndStop(_parent.man_mc._totalframes); _parent.gotoAndStop(4); } } movieClip 1034 { frame 30 { _parent.man_mc.gotoAndStop(_parent.man_mc._totalframes); _parent.gotoAndStop(4); } } movieClip 581 { frame 1 { stop(); } } movieClip 1252 { instance man0_food of movieClip 581 { onClipEvent (load) { this.gotoAndStop(4); } } instance man1_food of movieClip 581 { onClipEvent (load) { this.gotoAndStop(4); } } } frame 20 { // An attempt to read a value from empty stack return undefined; label 1: goto 1; } movieClip 2398 { } movieClip 2006 { } movieClip 573 { } movieClip 3730 { } movieClip 2440 { } movieClip 2994 { } movieClip 2940 { } movieClip 3834 { } movieClip 1960 { } movieClip 3292 { } movieClip 3072 { } movieClip 3464 { } movieClip 1505 { } movieClip 3466 { } movieClip 2356 { } movieClip 2672 { } movieClip 4002 { // unknown tag 90 length 3 } movieClip 2314 { } movieClip 4090 { } movieClip 3420 { } movieClip 2538 { } movieClip 652 { frame 1 { stop(); } frame 119 { _parent.gotoAndStop(_parent._totalframes); } } movieClip 3926 { } // unknown tag 88 length 153 movieClip 3218 { } movieClip 613 { frame 343 { stop(); _root.gameFull_mc.helpOver(); } } movieClip 1821 { frame 1 { stop(); } } movieClip 3386 { } movieClip 3600 { } movieClip 2996 { } movieClip 2272 { } movieClip 2062 { } movieClip 3046 { // unknown tag 88 length 3 } movieClip 3290 { } movieClip 3788 { } movieClip 4056 { } movieClip 1325 { } movieClip 3330 { } movieClip 3156 { } movieClip 3644 { } movieClip 987 { } movieClip 4004 { } movieClip 3818 { } movieClip 1500 { } movieClip 2718 { } movieClip 2402 { } movieClip 4058 { } movieClip 3160 { } movieClip 2412 { } movieClip 1195 { frame 1 { stop(); } frame 119 { _parent.gotoAndStop(_parent._totalframes); } } movieClip 2862 { } movieClip 2986 { } movieClip 1756 { } movieClip 3548 { } movieClip 2002 { } movieClip 2898 { // unknown tag 90 length 4 } movieClip 2818 { } movieClip 2764 { } movieClip 503 { } movieClip 3220 { } movieClip 2892 { } movieClip 4128 { } movieClip 4092 { } movieClip 1788 { } movieClip 2404 { } movieClip 3130 { } movieClip 3836 { } movieClip 4050 { } movieClip 3172 { } movieClip 1972 { } movieClip 1493 { frame 1 { stop(); } frame 116 { _parent.gotoAndStop(_parent._totalframes); } } movieClip 1974 { } movieClip 3962 { } movieClip 2770 { } movieClip 2016 { } movieClip 1964 { } movieClip 3832 { } movieClip 1060 { } movieClip 2584 { } movieClip 3780 { } movieClip 4088 { } movieClip 2456 { } movieClip 4082 { } movieClip 3870 { } movieClip 3242 { // unknown tag 88 length 3 } movieClip 3040 { // unknown tag 88 length 4 } movieClip 4018 { // unknown tag 90 length 2 } movieClip 2054 { } movieClip 3034 { } movieClip 3468 { } movieClip 3128 { } movieClip 2066 { } movieClip 3166 { } movieClip 360 { } movieClip 474 { } movieClip 3606 { } movieClip 3122 { } movieClip 3560 { } movieClip 3174 { } movieClip 2194 { } movieClip 3862 { } movieClip 248 { frame 1 { stop(); } frame 262 { _parent.gotoAndStop(_parent._totalframes); } } movieClip 1772 { frame 1 { stop(); } } movieClip 2776 { } movieClip 2192 { } movieClip 2202 { } movieClip 3168 { } movieClip 3658 { } movieClip 1303 { } movieClip 1397 { } movieClip 2046 { } movieClip 1787 { } movieClip 3288 { } movieClip 556 { } movieClip 2636 { } movieClip 797 { } movieClip 3132 { } movieClip 1635 { } movieClip 585 { } movieClip 2944 { } movieClip 3830 { } movieClip 224 { } movieClip 1427 { frame 1 { stop(); } frame 31 { stop(); } frame 66 { stop(); } } movieClip 2322 { } movieClip 3646 { } movieClip 2366 { } movieClip 2196 { } movieClip 687 { } movieClip 20 { } movieClip 2992 { } movieClip 4086 { } movieClip 2144 { } movieClip 732 { } movieClip 3922 { } movieClip 311 { frame 1 { stop(); } frame 46 { stop(); } frame 93 { stop(); } } movieClip 385 { } movieClip 422 { } movieClip 698 { } movieClip 2942 { } movieClip 3412 { } movieClip 3028 { } movieClip 2594 { } movieClip 882 { } movieClip 1311 { frame 1 { stop(); } frame 46 { stop(); } frame 81 { stop(); } } movieClip 3866 { } movieClip 2988 { } movieClip 2186 { } movieClip 2150 { } movieClip 253 { } movieClip 535 { } movieClip 67 { } movieClip 728 { frame 1 { stop(); } frame 51 { stop(); } frame 86 { stop(); } } movieClip 3504 { } movieClip 2778 { } movieClip 955 { } movieClip 592 { } movieClip 1189 { } movieClip 1051 { } movieClip 1552 { frame 1 { stop(); } frame 36 { stop(); } frame 71 { stop(); } } movieClip 4046 { } movieClip 1930 { } movieClip 159 { } movieClip 1363 { } movieClip 79 { } movieClip 2454 { } movieClip 1976 { } movieClip 2462 { } movieClip 1849 { } movieClip 153 { frame 1 { // An attempt to read a value from empty stack return undefined; label 1: goto 1; } } movieClip 2226 { } movieClip 3514 { } movieClip 2200 { } movieClip 414 { } movieClip 1920 { } movieClip 3426 { } movieClip 3742 { } movieClip 88 { } movieClip 3164 { } movieClip 514 { } movieClip 445 { } movieClip 3906 { } movieClip 587 { } movieClip 2958 { } movieClip 3302 { } movieClip 3462 { } movieClip 2278 { } movieClip 3202 { } movieClip 2050 { } movieClip 2308 { } movieClip 3828 { } movieClip 4096 { } movieClip 3500 { } movieClip 4006 { } movieClip 3380 { } movieClip 754 { } movieClip 2108 { } movieClip 3118 { } movieClip 3254 { } movieClip 2234 { } movieClip 4102 { } movieClip 4012 { } movieClip 2530 { } movieClip 2544 { } movieClip 1546 { } movieClip 3918 { } movieClip 532 { } movieClip 2154 { } movieClip 484 { } movieClip 1298 { } movieClip 3728 { } movieClip 2276 { } movieClip 1870 { } movieClip 1645 { } movieClip 950 { } movieClip 2152 { } movieClip 2500 { } movieClip 2408 { } movieClip 435 { frame 1 { stop(); } } movieClip 3784 { } movieClip 3924 { } movieClip 2760 { } movieClip 2762 { } movieClip 2142 { } movieClip 2012 { } movieClip 339 { } movieClip 2534 { } movieClip 2312 { } movieClip 3604 { } movieClip 3510 { } movieClip 2586 { } movieClip 266 { frame 24 { gotoAndStop(1); } } movieClip 2224 { } movieClip 3740 { } movieClip 2766 { } movieClip 3120 { } movieClip 2406 { } movieClip 2628 { } movieClip 3744 { } movieClip 146 { frame 24 { gotoAndStop(1); } } movieClip 2774 { } movieClip 2810 { } movieClip 1251 { frame 24 { gotoAndStop(1); } } movieClip 541 { frame 1 { stop(); } } movieClip 582 { } movieClip 1148 { } movieClip 2364 { } movieClip 1947 { frame 1 { _root.警告Sound.start(0, 1); } frame 80 { _root.gameFull_mc.player1_mc.ynbook = false; _parent.gotoAndStop(1); } } movieClip 2634 { } movieClip 3088 { } movieClip 3640 { } movieClip 3654 { } movieClip 201 { frame 40 { _root.gameFull_mc.helpKey(1); } frame 103 { _root.gameFull_mc.player1_mc.ynbook = false; _parent.gotoAndStop(1); } } movieClip 2004 { } movieClip 4140 { } movieClip 1958 { } movieClip 3610 { } movieClip 232 { frame 40 { _root.gameFull_mc.helpKey(1); } frame 57 { _root.gameFull_mc.player1_mc.ynbook = false; _parent.gotoAndStop(1); } } movieClip 2136 { } movieClip 3964 { } movieClip 2854 { } movieClip 1932 { frame 40 { _root.gameFull_mc.helpKey(1); } frame 103 { _root.gameFull_mc.player1_mc.ynbook = false; _parent.gotoAndStop(1); } } movieClip 4016 { } movieClip 4044 { } movieClip 1297 { } movieClip 2674 { } movieClip 3476 { } // unknown tag 88 length 76 movieClip 3086 { } movieClip 3820 { } movieClip 479 { } movieClip 2266 { } movieClip 3204 { } movieClip 2666 { } movieClip 3250 { } movieClip 1608 { } movieClip 2908 { } movieClip 791 { } movieClip 2848 { } movieClip 2326 { } movieClip 1712 { } movieClip 2722 { } movieClip 1258 { } movieClip 3124 { } movieClip 2582 { // unknown tag 91 length 2 } movieClip 3958 { } movieClip 932 { } movieClip 3090 { } movieClip 4100 { } movieClip 3000 { } movieClip 866 { } movieClip 3344 { } movieClip 2714 { } movieClip 3298 { } movieClip 3384 { } movieClip 15 { } movieClip 3966 { } movieClip 2806 { } movieClip 942 { } movieClip 3328 { } movieClip 2496 { } movieClip 2900 { } movieClip 293 { } movieClip 2814 { } movieClip 3074 { } movieClip 2452 { } movieClip 2588 { } movieClip 3508 { } movieClip 2014 { } movieClip 2316 { } movieClip 3570 { // unknown tag 90 length 3 } movieClip 1587 { } movieClip 3868 { } movieClip 4148 { } movieClip 3748 { } movieClip 2146 { } movieClip 2230 { } movieClip 713 { } movieClip 3912 { } movieClip 681 { } movieClip 3778 { } movieClip 2820 { } movieClip 3684 { } movieClip 2092 { } movieClip 1771 { } movieClip 2580 { } movieClip 2642 { } movieClip 1662 { frame 7 { _root.gameFull_mc.balloonKey(1); } frame 29 { _root.gameFull_mc.player1_mc.ynbook = false; _parent.gotoAndStop(1); } } movieClip 776 { frame 1 { stop(); } } movieClip 1919 { } movieClip 609 { } movieClip 1309 { frame 1 { stop(); } instance of movieClip 776 { onClipEvent (load) { this.gotoAndStop(_root.gameFull_mc.player1_mc.foodID); } } instance of movieClip 776 { onClipEvent (load) { this.gotoAndStop(_root.gameFull_mc.player1_mc.foodID); } } } movieClip 1929 { frame 1 { _root.潜水教学Sound.start(0, 1); } frame 26 { _root.gameFull_mc.diveKey(1); _root.gameFull_mc.player1_mc.ynbook = false; _parent.gotoAndStop(1); } } movieClip 1835 { frame 2 { _root.冲浪教学Sound.start(0, 1); } frame 30 { _root.gameFull_mc.surfKey(1); _root.gameFull_mc.player1_mc.ynbook = false; _parent.gotoAndStop(1); } } movieClip 1196 { frame 1 { stop(); if (isp_mc == true) { isp_mc = false; player.p_mc.stop(); } } frame 7 { isp_mc = true; } frame 15 { isp_mc = true; } frame 21 { isp_mc = true; } frame 26 { isp_mc = true; } frame 188 { isp_mc = true; } frame 196 { isp_mc = true; } frame 204 { isp_mc = true; _root.gameFull_mc.diveMan_mc.man_mc.gotoAndStop(2); } frame 214 { isp_mc = true; _root.gameFull_mc.surfMan_mc.man_mc.gotoAndStop(2); } } movieClip 2158 { // unknown tag 88 length 2 } movieClip 579 { frame 24 { gotoAndStop(1); } } movieClip 3502 { } movieClip 2318 { } movieClip 628 { frame 24 { gotoAndStop(1); } } movieClip 2328 { } movieClip 3116 { } movieClip 3248 { } movieClip 914 { frame 24 { gotoAndStop(1); } } movieClip 808 { frame 1 { stop(); } } movieClip 2182 { } movieClip 1114 { frame 80 { _root.gameFull_mc.player2_mc.ynbook = false; _parent.gotoAndStop(1); } } movieClip 2984 { } movieClip 2822 { } movieClip 2268 { } movieClip 382 { frame 40 { _root.gameFull_mc.helpKey(2); } frame 64 { _root.gameFull_mc.player2_mc.ynbook = false; _parent.gotoAndStop(1); } } movieClip 3512 { } movieClip 2104 { } movieClip 3732 { } movieClip 3252 { } movieClip 2910 { } movieClip 2488 { } movieClip 3134 { } movieClip 1519 { frame 40 { _root.gameFull_mc.helpKey(2); } frame 85 { // An attempt to read a value from empty stack return undefined; label 1: goto 1; } frame 103 { _root.gameFull_mc.player2_mc.ynbook = false; _parent.gotoAndStop(1); } } movieClip 1065 { } movieClip 3158 { } movieClip 2372 { } movieClip 3568 { } movieClip 85 { frame 40 { _root.gameFull_mc.helpKey(2); } frame 103 { _root.gameFull_mc.player2_mc.ynbook = false; _parent.gotoAndStop(1); } } movieClip 3736 { } movieClip 3296 { } movieClip 2938 { } movieClip 3772 { // unknown tag 90 length 2 } movieClip 1185 { } movieClip 2542 { } movieClip 2138 { // unknown tag 88 length 3 } movieClip 3338 { } movieClip 2864 { } movieClip 1944 { } movieClip 2816 { // unknown tag 91 length 4 } movieClip 46 { } movieClip 3838 { } movieClip 3002 { } movieClip 2414 { } movieClip 2228 { } movieClip 2684 { } movieClip 938 { } movieClip 850 { frame 1 { stop(); } instance of movieClip 776 { onClipEvent (load) { this.gotoAndStop(_root.gameFull_mc.player2_mc.foodID); } } instance of movieClip 776 { onClipEvent (load) { this.gotoAndStop(_root.gameFull_mc.player2_mc.foodID); } } } movieClip 1383 { frame 26 { _root.gameFull_mc.diveKey(2); _root.gameFull_mc.player2_mc.ynbook = false; _parent.gotoAndStop(1); } } movieClip 2502 { } movieClip 2532 { } movieClip 1663 { frame 30 { _root.gameFull_mc.surfKey(2); _root.gameFull_mc.player2_mc.ynbook = false; _parent.gotoAndStop(1); } } movieClip 2578 { } movieClip 2912 { } movieClip 3956 { } movieClip 3692 { } movieClip 3554 { // unknown tag 90 length 2 } movieClip 3954 { } movieClip 3558 { // unknown tag 90 length 2 } movieClip 3474 { } movieClip 4040 { } movieClip 1863 { frame 7 { _root.gameFull_mc.balloonKey(2); } frame 29 { _root.gameFull_mc.player2_mc.ynbook = false; _parent.gotoAndStop(1); } } movieClip 175 { frame 1 { _root.滑到Sound.start(0, 1); } frame 57 { _root.gameFull_mc.player2_mc.ynbook = false; _root.gameFull_mc.player2_mc.ynnext = false; _parent.gotoAndStop(1); } } movieClip 2282 { } movieClip 3516 { } movieClip 552 { } movieClip 156 { } movieClip 890 { frame 1 { _root.警察带走Sound.start(0, 1); } frame 25 { _root.gameFull_mc.player2_mc.ynbook = true; _root.gameFull_mc.player2_mc._visible = false; _parent.gotoAndStop(1); } } movieClip 2190 { } movieClip 2238 { } movieClip 723 { frame 1 { stop(); if (isp_mc == true) { isp_mc = false; player.p_mc.stop(); } } frame 6 { isp_mc = true; } frame 11 { isp_mc = true; } frame 17 { isp_mc = true; } frame 26 { isp_mc = true; } frame 51 { isp_mc = true; _root.gameFull_mc.diveMan_mc.man_mc.gotoAndStop(2); } frame 58 { isp_mc = true; _root.gameFull_mc.surfMan_mc.man_mc.gotoAndStop(2); } frame 65 { isp_mc = true; } frame 71 { isp_mc = true; } frame 79 { isp_mc = true; } } movieClip 3304 { } movieClip 1526 { frame 10 { trace('qqqqqqqqqqqqq=' + _parent._parent.shop_playerID_yis); _root.gameFull_mc.shopYisFu(_parent._parent.shop_playerID_yis, _parent._parent.shop_shopID_yis, _parent._parent); } } movieClip 2442 { } movieClip 724 { frame 1 { stop(); } } movieClip 1005 { frame 1 { stop(); } } movieClip 2008 { } movieClip 341 { frame 1 { stop(); } } movieClip 923 { frame 1 { stop(); } } movieClip 1109 { } movieClip 1688 { frame 1 { stop(); } } frame 20 { // An attempt to read a value from empty stack return undefined; label 1: goto 1; } movieClip 1524 { frame 1 { stop(); z0.array = [['h5', 'h'], ['z2', 'z3', 'z1'], ['c0', 'c', 'l'], ['r0', 'r']]; z2.array = [['z0', 'h', 'c', 'l', 'r'], ['z3', 'z1']]; z3.array = [['z2', 'z0', 'h', 'c', 'l', 'r'], ['z1']]; z1.array = [['z3', 'h', 'c', 'l', 'r']]; h0.array = [['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'h7', 'h8', 'z', 'c', 'l', 'r']]; h1.array = [['h0'], ['h2', 'h3', 'h4', 'h5', 'h6', 'h7', 'h8', 'z', 'c', 'l', 'r']]; h2.array = [['h1', 'h0'], ['h3', 'h4', 'h5', 'h6', 'h7', 'h8', 'z', 'c', 'l', 'r']]; h3.array = [['h2', 'h0', 'h1'], ['h4', 'h5', 'h6', 'h7', 'h8', 'z', 'c', 'l', 'r']]; h4.array = [['h3', 'h2', 'h0', 'h1'], ['h5', 'h6', 'h7', 'h8', 'z', 'c', 'l', 'r']]; h5.array = [['h4', 'h3', 'h2', 'h0', 'h1'], ['z0', 'z', 'c', 'l', 'r'], ['h6', 'h7', 'h8']]; h6.array = [['h5', 'h4', 'h3', 'h2', 'h0', 'h1', 'z', 'c', 'l', 'r'], ['h7', 'h8']]; h7.array = [['h6', 'h5', 'h4', 'h3', 'h2', 'h0', 'h1', 'z', 'c', 'l', 'r'], ['h8']]; h8.array = [['h7', 'h6', 'h5', 'h4', 'h3', 'h2', 'h0', 'h1', 'z', 'c', 'l', 'r']]; c0.array = [['z0', 'r', 'h', 'z'], ['c1', 'c', 'l']]; c1.array = [['c0', 'z', 'r', 'h'], ['c2', 'c3', 'c4', 'c5', 'c6', 'c7', 'l']]; c2.array = [['c1', 'c0', 'z', 'r', 'h'], ['c3', 'c4', 'c5', 'c6', 'c7', 'l']]; c3.array = [['c2', 'c1', 'c0', 'z', 'r', 'h'], ['c4', 'c5', 'c6', 'c7', 'l']]; c4.array = [['c3', 'c2', 'c1', 'c0', 'z', 'r', 'h'], ['c5', 'l'], ['c6', 'c7']]; c5.array = [['c4', 'c3', 'c2', 'c1', 'c0', 'c6', 'c7', 'z', 'r', 'h'], ['l0', 'l']]; c6.array = [['c4', 'c3', 'c2', 'c1', 'c0', 'c5', 'z', 'r', 'h', 'l'], ['c7']]; c7.array = [['c6', 'c4', 'c3', 'c2', 'c1', 'c0', 'c5', 'z', 'r', 'h', 'l']]; l0.array = [['l1'], ['l2', 'l3'], ['c5', 'c', 'z', 'r', 'h']]; l1.array = [['l0', 'l1', 'l2', 'l3', 'c', 'z', 'r', 'h']]; l2.array = [['l3'], ['l0', 'l1', 'c', 'z', 'r', 'h']]; l3.array = [['l2', 'l0', 'l1', 'c', 'z', 'r', 'h']]; r0.array = [['z0', 'z', 'h', 'c', 'l'], ['r4', 'r']]; r4.array = [['r0', 'z', 'h', 'c', 'l'], ['r5', 'r6', 'r7', 'r8', 'r1', 'r2', 'r3']]; r5.array = [['r4', 'r0', 'z', 'h', 'c', 'l'], ['r6', 'r7', 'r8', 'r1', 'r2', 'r3']]; r6.array = [['r5', 'r4', 'r0', 'z', 'h', 'c', 'l'], ['r1'], ['r7', 'r8', 'r2', 'r3']]; r1.array = [['r6', 'r', 'z', 'h', 'c', 'l']]; r7.array = [['r6', 'r5', 'r4', 'r1', 'r0', 'z', 'h', 'c', 'l'], ['r8', 'r2', 'r3']]; r8.array = [['r7', 'r6', 'r5', 'r4', 'r1', 'r0', 'z', 'h', 'c', 'l'], ['r2', 'r3']]; r2.array = [['r8', 'r7', 'r6', 'r5', 'r4', 'r1', 'r0', 'z', 'h', 'c', 'l'], ['r3']]; r3.array = [['r2', 'r8', 'r7', 'r6', 'r5', 'r4', 'r1', 'r0', 'z', 'h', 'c', 'l'], ['r3']]; } frame 1 { function key(obTemp) { if (_root.helpID != -1) { if (_root.say_mc._currentframe == 1) { return undefined; } else { if (_root.say_mc._currentframe == 2 && obTemp._name != 'h6') { return undefined; } else { if (_root.say_mc._currentframe == 3) { return undefined; } else { if (_root.say_mc._currentframe == 4) { if (obTemp._name == 'c0' || obTemp._name == 'c1' || obTemp._name == 'c2' || obTemp._name == 'c3' || obTemp._name == 'c7' || obTemp._name == 'c5') { } else { return undefined; } } else { if (_root.say_mc._currentframe >= 5) { return undefined; } } } } } } if (_root.pp_mc._currentframe == 2) { return undefined; } if (player1_mc.gotoArray.length < 8) { player1_mc.gotoArray.push(obTemp); this[obTemp._name + '_num'].gotoAndStop(player1_mc.gotoArray.length + 1); return undefined; } } function playerKey(KEY) { if (KEY.yngotoArray == false) { if (KEY.gotoArray[0] != null) { if (KEY.goto._name == KEY.gotoArray[0]._name) { if (KEY.playerID == 1) { stepFu(); } stopFu(KEY.gotoArray[0], KEY); KEY.gotoArray.splice(0, 1); KEY.yngotoArray = false; KEY.next_mc = null; } else { KEY.yngotoArray = true; KEY.ynplayerKey = true; KEY.goto = KEY.gotoArray[0]; if (KEY.foodID != -1) { if (KEY.goto._name == 'c3' || KEY.goto._name == 'c7' || KEY.goto._name == 'c5') { } else { KEY.gotoAndStop('走路'); KEY.foodID = -1; } } } } else { KEY.yngotoArray = false; } } if (KEY.ynplayerKey == true && KEY.yngotoArray == true) { KEY.ynplayerKey = false; KEY.str = gotoArrayFu(KEY.into.array, KEY.goto); KEY.next_mc = this[KEY.str]; if (isUndo == true && NEXT.playerID == 1) { trace('没中0=' + NEXT.next_mc); trace('str=' + KEY.str); trace('goto=' + KEY.goto); } KEY.k = (KEY.into._y - KEY.next_mc._y) / (KEY.into._x - KEY.next_mc._x); if (KEY.playerID == 1) { KEY.speed = 1; if (_root.isSpeedup == true) { if (_root.speedup_lv == 1) { KEY.speed = 1.5; } else { KEY.speed = 2; } } else { KEY.speed = 1; } } else { if (KEY.playerID == 2 && player2_mc.isBanana == false) { KEY.speed = 1; } } if (Math.abs(KEY.into._y - KEY.next_mc._y) <= 20) { if (KEY.into._x - KEY.next_mc._x > 0) { KEY.player.gotoAndStop(4); } else { KEY.player.gotoAndStop(2); } KEY.xy = 'x'; if (KEY.into._x - KEY.next_mc._x > 0) { KEY.xSpeed = -(4 + KEY.speed); } else { KEY.xSpeed = 4 + KEY.speed; } } else { if (Math.abs(KEY.into._x - KEY.next_mc._x) <= 20) { if (KEY.into._y - KEY.next_mc._y > 0) { KEY.player.gotoAndStop(3); } else { KEY.player.gotoAndStop(1); } KEY.xy = 'y'; if (KEY.into._y - KEY.next_mc._y > 0) { KEY.ySpeed = -(3 + KEY.speed); } else { KEY.ySpeed = 3 + KEY.speed; } } else { if (KEY.into._y - KEY.next_mc._y > 0 && KEY.into._x - KEY.next_mc._x > 0) { KEY.player.gotoAndStop(4); KEY.xy = 'x'; if (KEY.into._x - KEY.next_mc._x > 0) { KEY.xSpeed = -(4 + KEY.speed); } else { KEY.xSpeed = 4 + KEY.speed; } } else { if (KEY.into._y - KEY.next_mc._y > 0 && KEY.into._x - KEY.next_mc._x < 0) { KEY.player.gotoAndStop(3); KEY.xy = 'y'; if (KEY.into._y - KEY.next_mc._y > 0) { KEY.ySpeed = -(3 + KEY.speed); } else { KEY.ySpeed = 3 + KEY.speed; } } else { if (KEY.into._y - KEY.next_mc._y < 0 && KEY.into._x - KEY.next_mc._x < 0) { KEY.player.gotoAndStop(2); KEY.xy = 'x'; if (KEY.into._x - KEY.next_mc._x > 0) { KEY.xSpeed = -(4 + KEY.speed); } else { KEY.xSpeed = 4 + KEY.speed; } } else { if (KEY.into._y - KEY.next_mc._y < 0 && KEY.into._x - KEY.next_mc._x > 0) { KEY.player.gotoAndStop(1); KEY.xy = 'y'; if (KEY.into._y - KEY.next_mc._y > 0) { KEY.ySpeed = -(3 + KEY.speed); } else { KEY.ySpeed = 3 + KEY.speed; } } } } } } } } } function nextFu(NEXT) { if (isUndo == true && NEXT.playerID == 1) { trace('没中1' + NEXT.next_mc); NEXT.next_mc = player1_mc.goto; } if (NEXT.next_mc != null) { NEXT.player.p_mc.play(); if (NEXT.hit_mc.hitTest(NEXT.next_mc._x + _root.gameFull_mc._x, NEXT.next_mc._y + _root.gameFull_mc._y)) { if (isUndo == true && NEXT.playerID == 1) { trace('中' + NEXT.next_mc); } NEXT._x = NEXT.next_mc._x; NEXT._y = NEXT.next_mc._y; NEXT.into = NEXT.next_mc; if (NEXT.next_mc == NEXT.goto) { NEXT.yngotoArray = false; if (NEXT.playerID == 1) { stepFu(); } if (NEXT.gotoArray.length >= 1) { NEXT.gotoArray.splice(0, 1); } stopFu(NEXT.next_mc, NEXT); NEXT.player.p_mc.gotoAndStop(NEXT.player.p_mc._totalframes); NEXT.next_mc = null; } else { NEXT.ynplayerKey = true; } return undefined; } if (NEXT.xy == 'x') { NEXT._x += NEXT.xSpeed; NEXT._y = NEXT.k * (NEXT._x - NEXT.next_mc._x) + NEXT.next_mc._y; } else { NEXT._y += NEXT.ySpeed; NEXT._x = (NEXT._y - NEXT.next_mc._y) / NEXT.k + NEXT.next_mc._x; } } } function gotoArrayFu(arrayTemp, gotoTemp) { var v1 = 0; while (v1 < arrayTemp.length) { var v2 = 0; while (v2 < arrayTemp[v1].length) { if (arrayTemp[v1][v2].length == 1 && arrayTemp[v1][v2].charAt(0) == gotoTemp._name.charAt(0)) { return arrayTemp[v1][0]; } else { if (arrayTemp[v1][v2] == gotoTemp._name) { return arrayTemp[v1][0]; } } ++v2; } ++v1; } return null; } function stepFu() { var v2 = 0; while (v2 < player1_mc.gotoArray.length) { player1_mc.gotoArray[v2].stepID = false; ++v2; } v2 = 0; while (v2 < player1_mc.gotoArray.length) { if (player1_mc.gotoArray[v2].stepID == false) { player1_mc.gotoArray[v2].stepID = true; this[player1_mc.gotoArray[v2]._name + '_num'].prevFrame(); } ++v2; } } function aiFu() { if (random(500 - ranNum) == 1) { shopManDup(); } if (random(500 - ranNum) == 1) { tableManDup(); } if (_root.isBalloon == true && random(500) == 1) { balloonDup(); } if (_root.isBargeArea == true && (_root.isCog == true || _root.isBarge == true || _root.isLuxuryBarge == true)) { if (random(500 - ranNum) == 1) { dockDup(); } } if (random(700 - ranNum) == 1) { helpDup(); } if (_root.isSurfArea == true && random(600 - ranNum) == 1) { surfDup(); } if (_root.isDiveArea == true && random(600 - ranNum) == 1) { diveDup(); } if (random(600 - ranNum) == 1) { sharkDup(); } if (bookArray[0] == null) { var v4 = random(10); if (v4 == 1) { shopManDup(); } else { if (v4 == 2) { tableManDup(); } else { if (v4 == 3) { helpDup(); } } } } ++timeAI_num; if (timeAI_num > _root.timeAI || random(_root.AI) == 1) { if (bookArray[0] != null && player2_mc.gotoArray[0] == null) { timeAI_num = 0; var v3 = 0; if (bookArray[v3] == 'c3' || bookArray[v3] == 'c5' || bookArray[v3] == 'c7') { player2_mc.gotoArray.push(this['c' + (AC_TobleManArray[v3].clewID - 1)]); } player2_mc.gotoArray.push(this[bookArray[v3]]); } } if (player2_mc.isBanana == true) { --BananaTime; player2_mc.speed = -2; if (BananaTime <= 0) { player2_mc.isBanana = false; player2_mc.speed = 0; } } if (player2_mc.isAccusation == true) { --AccusationTime; if (AccusationTime <= 0) { player2_mc.isAccusation = false; player2_mc.ynbook = false; player2_mc.ynnext = false; player2_mc._visible = true; } } if (isFlowersIcon == true) { --FlowersIconTime; if (FlowersIconTime <= 0) { isFlowersIcon = false; _root.FlowersIcon_mc.gotoAndStop(_root.FlowersIcon_mc._totalframes); if (Act_mc._visible == false) { player2_mc.isNot = false; } } } if (Act_mc._visible == true) { --ActTime; if (ActTime <= 0) { Act_mc._visible = false; if (isFlowersIcon == false) { player2_mc.isNot = false; _root.跳舞Sound.stop('跳舞'); } } } } function main() { if (player1_mc.ynbook == false) { playerKey(player1_mc); } if (player1_mc.ynnext == false) { nextFu(player1_mc); } if (player2_mc.ynbook == false) { playerKey(player2_mc); } if (player2_mc.ynnext == false) { nextFu(player2_mc); } if (_root.helpID == -1) { aiFu(); keyDownFu(); } else { helpFu(); } fenFu(); wayFu(); sharkMain(); } function helpFu() { if (_root.say_mc._currentframe == 2 && ynsay2 == false) { ynsay2 = true; shopManDup(); } if (_root.say_mc._currentframe == 4 && ynsay4 == false) { ynsay4 = true; tableManDup(); } if (_root.say_mc._currentframe == 11) { _root.gotoAndStop(19); } } function stopFu(ob, playerTemp) { trace('检查是否有任务' + bookArray); if (playerTemp.playerID == 2 || playerTemp.playerID == 1 && isUndo == false) { if (ob._name == 'c0') { playerTemp.foodID = 1; playerTemp.gotoAndStop(1); playerTemp.gotoAndStop('拿食物'); playerTemp.player.gotoAndStop(1); return undefined; } else { if (ob._name == 'c1') { playerTemp.foodID = 2; playerTemp.gotoAndStop(1); playerTemp.gotoAndStop('拿食物'); playerTemp.player.gotoAndStop(1); return undefined; } else { if (ob._name == 'c2') { playerTemp.foodID = 3; playerTemp.gotoAndStop(1); playerTemp.gotoAndStop('拿食物'); playerTemp.player.gotoAndStop(1); return undefined; } } } if (playerTemp.isNot == false) { var v3 = 0; while (v3 < bookArray.length) { if (bookArray[v3] == ob._name) { if (ob._name.charAt(0) == 'h') { if (int(ob._name.charAt(1)) == shopManArray[0].clewID && shopManArray[0].isShow == true) { shopManKey(playerTemp.playerID, int(ob._name.charAt(1))); bookArray.splice(v3, 1); if (_root.say_mc._currentframe == 2) { _root.say_mc.gotoAndStop(3); } return undefined; } } else { if (ob._name == 'c3') { if (tableManKey(playerTemp.playerID, 'c3')) { playerTemp.gotoAndStop('走路'); playerTemp.foodID = -1; bookArray.splice(v3, 1); if (_root.say_mc._currentframe == 4) { _root.say_mc.gotoAndStop(5); } } return undefined; } else { if (ob._name == 'c5') { if (tableManKey(playerTemp.playerID, 'c5')) { playerTemp.gotoAndStop('走路'); playerTemp.foodID = -1; bookArray.splice(v3, 1); if (_root.say_mc._currentframe == 4) { _root.say_mc.gotoAndStop(5); } } return undefined; } else { if (ob._name == 'c7') { if (tableManKey(playerTemp.playerID, 'c7')) { playerTemp.gotoAndStop('走路'); playerTemp.foodID = -1; bookArray.splice(v3, 1); if (_root.say_mc._currentframe == 4) { _root.say_mc.gotoAndStop(5); } } return undefined; } else { if (ob._name == 'z1') { playerTemp.foodID = -1; playerTemp.ynbook = true; playerTemp.gotoAndStop('救人' + helpMan_mc.id); helpMan_mc.clew_mc.gotoAndStop(2); bookArray.splice(v3, 1); return undefined; } else { if (ob._name == 'r1') { playerTemp.foodID = -1; playerTemp.ynbook = true; playerTemp.gotoAndStop('开汽球'); balloonKey(playerTemp.playerID); bookArray.splice(v3, 1); return undefined; } else { if (ob._name == 'r3') { playerTemp.foodID = -1; if (dockKey(playerTemp.playerID)) { bookArray.splice(v3, 1); } return undefined; } else { if (ob._name == 'l1') { playerTemp.foodID = -1; playerTemp.ynbook = true; playerTemp.gotoAndStop('吹号'); sharkKey(playerTemp.playerID); bookArray.splice(v3, 1); return undefined; } else { if (ob._name == 'l3') { playerTemp.foodID = -1; playerTemp.ynbook = true; playerTemp.gotoAndStop('教冲浪'); surfMan_mc.clew_mc.gotoAndStop(surfMan_mc.clew_mc._currentframe - 1); bookArray.splice(v3, 1); return undefined; } else { if (ob._name == 'l2') { playerTemp.foodID = -1; playerTemp.ynbook = true; playerTemp.gotoAndStop('教潜水'); diveMan_mc.clew_mc.gotoAndStop(diveMan_mc.clew_mc._currentframe - 1); diveMan_mc.clew_mc.gotoAndStop(2); bookArray.splice(v3, 1); } } } } } } } } } } } ++v3; } } } if (playerTemp.playerID == 1) { isUndo = false; } } function outFu(ob) {} function reFu(str) { --_root.life; _root.life_mc.gotoAndStop(6 - _root.life); if (_root.life <= 0) { _root.gotoAndStop('失败画面'); } i = 0; while (i < bookArray.length) { if (bookArray[i] == str) { bookArray.splice(i, 1); return undefined; } ++i; } } function fenFu() { if (_root.ynfen == false && fenArray.length != 0) { _root.ynfen = true; _root.fenAdd = fenArray[0]; _root.fen += int(fenArray[0]); fenArray.splice(0, 1); _root.fen_mc.gotoAndPlay(2); _root.顾客给钱Sound.start(0, 1); } } function wayBigenFu() { _root.way_mc.gotoAndStop(2); var v2 = 0; while (v2 < 10) { var v3 = _root.way_mc.duplicateMovieClip('way' + v2, v2); v3.gotoAndStop(2); v3.id = v2; wayArray.push(v3); ++v2; } } function wayFu() { var v5 = 0; var v4 = 0; while (v4 < 10) { wayArray[v4].gotoAndStop(2); ++v4; } var v3 = 0; while (v3 < bookArray.length) { bookX = this[bookArray[v3] + '']._x + _root.gameFull_mc._x; bookY = this[bookArray[v3] + '']._y + _root.gameFull_mc._y; if (bookX > 50 && bookX < 850 && bookY > 80 && bookY < 580) { } else { ++v5; var v7 = _root.way_mc._y - bookY; var v6 = _root.way_mc._x - bookX; var v8 = Math.atan2(v7, v6) * 57.29578; wayArray[v5]._rotation = v8 + 180; wayArray[v5].gotoAndStop(1); } ++v3; } } function shopManDegin() { var v1 = 0; while (v1 < shopManArray.length) { shopManArray[v1].isShow = false; shopManArray[v1].clewID = -1; shopManArray[v1].clew_mc.gotoAndStop(shopManArray[v1].clew_mc._totalframes); shopManArray[v1].gotoAndStop(shopManArray[v1]._totalframes); ++v1; } } function shopManDup() { var v2 = 0; while (v2 < shopManArray.length) { if (shopManArray[v2]._currentframe == shopManArray[v2]._totalframes) { shopManArray[v2].isShow = true; shopManArray[v2].manID = random(shopManArray[v2]._totalframes - 1) + 1; shopManArray[v2].gotoAndStop(shopManArray[v2].manID); if (_root.say_mc._currentframe == 2) { shopManArray[v2].clewID = 6; } else { shopManArray[v2].clewID = openClewArray[random(openClewArray.length)]; } shopManArray[v2].clew_mc.gotoAndStop(shopManArray[v2].clewID + 1); bookArray.push('h' + shopManArray[v2].clewID); _root.铃声Sound.start(0, 1); return undefined; } ++v2; } } function shopManKey(playerID, shopID) { if (shopManArray[0].isShow == true && shopManArray[0].clewID == shopID) { shopManArray[0].shop_playerID_yis = playerID; shopManArray[0].shop_shopID_yis = shopID; shopManArray[0].isShow = false; shopManArray[0].clew_mc.gotoAndStop(shopManArray[0].clew_mc._totalframes - 1); var v1 = shopManArray.shift(); shopManArray.push(v1); } } function shopYisFu(playerID, shopID, shopOB) { trace('shopYisFu=' + playerID + ' ' + shopID); if (playerID == 1) { fenArray.push(_root['goods' + shopID + '_money']); } else { _root.passFen += _root['goods' + shopID + '_money']; } shopOB.isShow = false; shopOB.clewID = -1; shopOB.clew_mc.gotoAndStop(shopOB.clew_mc._totalframes); shopOB.gotoAndStop(shopOB._totalframes); var v2 = 0; while (v2 < shopManArray.length) { shopManArray[v2]._x = shopManXYArray[v2]; ++v2; } } function tableManBegin() { var v3 = 0; while (v3 < 6) { var v2 = this['tableMan' + v3]; v2.no = v3; v2.isShow = false; v2.gotoAndStop(v2._totalframes); tableManArray.push(v2); ++v3; } } function tableManDup() { var v4 = new Array(0, 1, 2, 3, 4, 5); var v3 = new Array(); var v2 = 0; while (v2 < 6) { v3.push(v4.splice(random(v4.length), 1)); ++v2; } v2 = 0; while (v2 < v3.length) { var v1 = tableManArray[v3[v2]]; if (v1.isShow == false && v1._currentframe == v1._totalframes) { v1.isShow = true; v1.manID = random(v1._totalframes - 1) + 1; v1.gotoAndStop(v1.manID); v1.clewID = random(3) + 1; v1.clew_mc.gotoAndStop(v1.clewID); bookArray.push(v1.bookID); AC_TobleManArray.push(v1); return undefined; } ++v2; } } function tableManKey(playerID, bookID) { var v4 = 0; while (v4 < AC_TobleManArray.length) { var v3 = AC_TobleManArray[v4]; if (v3.bookID == bookID && v3.clewID == this['player' + playerID + '_mc'].foodID) { v3._parent[v3._name + '_food'].gotoAndStop(v3.clewID); v3.isShow = false; v3.clew_mc.gotoAndStop(v3.clew_mc._totalframes - 1); if (playerID == 1) { fenArray.push(_root['food' + this['player' + playerID + '_mc'].foodID + '_money']); } else { _root.passFen += _root['food' + this['player' + playerID + '_mc'].foodID + '_money']; } AC_TobleManArray.splice(v4, 1); return true; } ++v4; } return false; } function helpBigen() { helpMan1_mc.isShow = false; helpMan1_mc.id = 1; helpMan1_mc.gotoAndStop(helpMan1_mc._totalframes); helpMan2_mc.isShow = false; helpMan2_mc.id = 2; helpMan2_mc.gotoAndStop(helpMan2_mc._totalframes); helpMan3_mc.isShow = false; helpMan3_mc.id = 3; helpMan3_mc.gotoAndStop(helpMan3_mc._totalframes); helpMan_mc = helpMan1_mc; } function helpDup() { if (helpMan_mc.isShow == false && helpMan_mc._currentframe == helpMan_mc._totalframes) { trace('救人'); helpMan_mc.isShow = true; helpMan_mc.manID = random(helpMan_mc._totalframes - 1) + 1; helpMan_mc.gotoAndStop(helpMan_mc.manID); helpMan_mc.clewID = 1; helpMan_mc.clew_mc.gotoAndStop(1); bookArray.push('z1'); _root.救命Sound.start(0, 3); } } function helpKey(playerID) { if (helpMan_mc.isShow == true) { helpMan_mc.isShow = false; helpMan_mc.clewID = -1; helpMan_mc.clew_mc.gotoAndStop(2); helpMan_mc.man_mc.gotoAndPlay(5); var v3 = random(3) + 1; helpMan_mc = this['helpMan' + v3 + '_mc']; if (playerID == 1) { fenArray.push(_root.help_money); } else { _root.passFen += _root.help_money; } } } function helpOver() { helpBigen(); deleteBookArrayFu('z1'); } function balloonBigen() { balloonFull_mc.isShow = false; balloonFull_mc.gotoAndStop(1); balloonFull_mc.man_mc.gotoAndStop(balloonFull_mc.man_mc._totalframes); } function balloonDup() { if (balloonFull_mc._currentframe == 1 && balloonFull_mc.isShow == false) { balloonFull_mc.isShow = true; balloonFull_mc.man_mc.gotoAndStop(random(balloonFull_mc.man_mc._totalframes - 1) + 1); balloonFull_mc.clew_mc.gotoAndStop(1); bookArray.push('r1'); balloonFull_mc.gotoAndStop(2); _root.点火Sound.start(0, 1); } } function balloonKey(playerID) { if (balloonFull_mc.isShow == true) { balloonFull_mc.isShow = false; balloonFull_mc.gotoAndPlay(3); balloonFull_mc.man_mc.clew_mc.gotoAndStop(2); if (playerID == 1) { fenArray.push(_root.balloon_money); } else { _root.passFen += _root.balloon_money; } } } function dockBigen() { dockMan_mc.isShow = false; dockMan_mc.manID = -1; dockMan_mc.gotoAndStop(dockMan_mc._totalframes); } function dockDup() { if (dockMan_mc.isShow == false) { dockMan_mc.isShow = true; dockMan_mc.manID = random(dockMan_mc._totalframes - 1) + 1; trace(dockMan_mc.manID); trace(dockMan_mc); dockMan_mc.gotoAndStop(dockMan_mc.manID); dockMan_mc.clew_mc.gotoAndStop(1); bookArray.push('r3'); _root.船Sound.start(0, 1); } } function dockKey(playerID) { trace('码头key'); if (shipDup(dockMan_mc.manID) == true) { if (dockMan_mc.isShow == true && dockMan_mc._currentframe != dockMan_mc._totalframes) { dockMan_mc.isShow = false; dockMan_mc.gotoAndStop(dockMan_mc._totalframes); if (playerID == 1) { fenArray.push(_root.dock_money); } else { _root.passFen += _root.dock_money; } return true; } } return false; } function shipBigen($shipID) { if ($shipID == 1) { ship1.gotoAndStop(1); ship1.ship_mc.man1.isShow = false; ship1.ship_mc.man1.gotoAndStop(ship1.ship_mc.man1._totalframes); ship1.ship_mc.man2.isShow = false; ship1.ship_mc.man2.gotoAndStop(ship1.ship_mc.man2._totalframes); } else { if ($shipID == 2) { ship2.gotoAndStop(1); ship2.ship_mc.man1.isShow = false; ship2.ship_mc.man1.gotoAndStop(ship2.ship_mc.man1._totalframes); ship2.ship_mc.man2.isShow = false; ship2.ship_mc.man2.gotoAndStop(ship2.ship_mc.man2._totalframes); ship2.ship_mc.man3.isShow = false; ship2.ship_mc.man3.gotoAndStop(ship2.ship_mc.man3._totalframes); ship2.ship_mc.man4.isShow = false; ship2.ship_mc.man4.gotoAndStop(ship2.ship_mc.man4._totalframes); } else { if ($shipID == 3) { ship3.gotoAndStop(1); ship3.ship_mc.man1.isShow = false; ship3.ship_mc.man1.gotoAndStop(ship3.ship_mc.man1._totalframes); ship3.ship_mc.man2.isShow = false; ship3.ship_mc.man2.gotoAndStop(ship3.ship_mc.man2._totalframes); ship3.ship_mc.man3.isShow = false; ship3.ship_mc.man3.gotoAndStop(ship3.ship_mc.man3._totalframes); ship3.ship_mc.man4.isShow = false; ship3.ship_mc.man4.gotoAndStop(ship3.ship_mc.man4._totalframes); ship3.ship_mc.man5.isShow = false; ship3.ship_mc.man5.gotoAndStop(ship3.ship_mc.man5._totalframes); ship3.ship_mc.man6.isShow = false; ship3.ship_mc.man6.gotoAndStop(ship3.ship_mc.man6._totalframes); } } } } function shipDup($manID) { var v1 = 0; while (v1 < shipManArray.length) { if (shipManArray[v1]._currentframe == shipManArray[v1]._totalframes && shipManArray[v1].isShow == false && shipManArray[v1]._parent._parent._currentframe == 1) { shipManArray[v1].isShow = true; shipManArray[v1].gotoAndStop($manID); --shipManArray[v1]._parent._parent.okNum; if (shipManArray[v1]._parent._parent._currentframe == 1 && shipManArray[v1]._parent._parent.okNum <= 0) { shipManArray[v1]._parent._parent.gotoAndPlay(2); shipManArray[v1]._parent._parent.okNum = 2 * shipManArray[v1]._parent._parent.id; } return true; } ++v1; } return false; } function sharkBigen() { sharkFull_mc.isShow = false; sharkFull_mc._visible = false; sharkClew_mc.gotoAndStop(2); } function sharkDup() { if (sharkArray.length == 0 && sharkFull_mc.isShow == false) { var v3 = 0; while (v3 <= 4) { if (this['sharkMan' + v3 + '_mc']._currentframe == 1) { sharkFull_mc.isShow = true; sharkClew_mc.gotoAndStop(1); var v4 = this.sharkFull_mc.duplicateMovieClip('shark' + v3, v3); v4.obyy = this['sharkMan' + v3 + '_mc']; sharkArray.push(v4); } ++v3; } bookArray.push('l1'); _root.警告Sound.start(0, 1); } } function sharkMain() { var v3 = sharkArray.length - 1; while (v3 >= 0) { if (sharkArray[v3]._y < sharkArray[v3].obyy._y) { sharkArray[v3]._y += 0.7; sharkArray[v3]._x -= 0.5; } else { sharkArray[v3]._x -= 2; } var v2 = 0; while (v2 <= 4) { if (this['sharkMan' + v2 + '_mc']._currentframe == 1 && sharkArray[v3].hitTest(this['sharkMan' + v2 + '_mc'])) { if (this['sharkMan' + v2 + '_mc']._y <= sharkArray[v3]._y) { sharkFull_mc.isShow = false; sharkClew_mc.gotoAndStop(2); deleteBookArrayFu('l1'); if (this['sharkMan' + v2 + '_mc']._currentframe == 1) { this['sharkMan' + v2 + '_mc'].gotoAndPlay('被吃'); } sharkArray[v3]._visible = false; } } ++v2; } if (sharkArray[v3]._x < -300) { sharkArray[v3].removeMovieClip(); sharkArray.splice(v3, 1); } if (sharkArray.length == 0) { sharkGO(2); } --v3; } } function sharkKey(playerID) { if (sharkFull_mc.isShow == true) { sharkClew_mc.gotoAndStop(2); sharkFull_mc.isShow = false; if (playerID == 1) { fenArray.push(_root.shark_money); } else { _root.passFen += _root.shark_money; } sharkGO(1); } } function sharkManBigenFu() { var v2 = 0; while (v2 < 5) { this['sharkMan' + v2 + '_mc'].gotoAndStop(this['sharkMan' + v2 + '_mc']._totalframes); ++v2; } this['sharkMan' + random(5) + '_mc'].gotoAndStop(1); } function sharkGO(type) { if (type == 2) { this['sharkMan' + random(5) + '_mc'].gotoAndStop(1); } var v2 = 0; while (v2 < 5) { if (type == 1) { if (this['sharkMan' + v2 + '_mc']._currentframe == 1) { this['sharkMan' + v2 + '_mc'].gotoAndPlay('被救'); } } else { if (type == 2) { sharkFull_mc.isShow = false; } else { sharkFull_mc.isShow = false; sharkClew_mc.gotoAndStop(2); deleteBookArrayFu('l1'); if (this['sharkMan' + v2 + '_mc']._currentframe == 1) { this['sharkMan' + v2 + '_mc'].gotoAndPlay('被吃'); } } } ++v2; } } function surfBigen() { surfMan_mc.isShow = false; surfMan_mc.manID = -1; surfMan_mc.gotoAndStop(surfMan_mc._totalframes); } function surfDup() { if (surfMan_mc.isShow == false && surfMan_mc._currentframe == surfMan_mc._totalframes) { trace('教冲浪'); surfMan_mc.isShow = true; surfMan_mc.manID = random(surfMan_mc._totalframes - 1) + 1; surfMan_mc.gotoAndStop(surfMan_mc.manID); surfMan_mc.clew_mc.gotoAndStop(1); bookArray.push('l3'); _root.要冲浪Sound.start(0, 1); } } function surfKey(playerID) { if (surfMan_mc.isShow == true) { surfMan_mc.isShow = false; surfMan_mc.gotoAndStop(surfMan_mc._totalframes); surfMan_mc.clew_mc.gotoAndStop(3); if (playerID == 1) { fenArray.push(_root.surf_money); } else { _root.passFen += _root.surf_money; } } } function diveBigen() { diveMan_mc.isShow = false; diveMan_mc.manID = -1; diveMan_mc.gotoAndStop(diveMan_mc._totalframes); } function diveDup() { if (diveMan_mc.isShow == false && diveMan_mc._currentframe == diveMan_mc._totalframes) { trace('教潜水'); diveMan_mc.isShow = true; diveMan_mc.manID = random(diveMan_mc._totalframes - 1) + 1; diveMan_mc.gotoAndStop(diveMan_mc.manID); diveMan_mc.clew_mc.gotoAndStop(1); bookArray.push('l2'); _root.要潜水Sound.start(0, 1); } } function diveKey(playerID) { if (diveMan_mc.isShow == true) { diveMan_mc.isShow = false; diveMan_mc.gotoAndStop(diveMan_mc._totalframes); diveMan_mc.clew_mc.gotoAndStop(diveMan_mc.clew_mc._currentframe); if (playerID == 1) { fenArray.push(_root.dive_money); } else { _root.passFen += _root.dive_money; } } } function deleteBookArrayFu(str) { i = 0; while (i < bookArray.length) { if (bookArray[i] == str) { bookArray.splice(i, 1); return undefined; } ++i; } } function re_player2GotoArrayFu(str) { i = 0; while (i < player2_mc.gotoArray.length) { if (player2_mc.gotoArray[i] == str) { trace('要删除记录'); player2_mc.gotoArray.splice(i, 1); return undefined; } ++i; } } function undoFu() { trace('后退一步'); trace(player1_mc.gotoArray.length); if (player1_mc.gotoArray.length >= 1) { if (player1_mc.gotoArray.length == 1) { isUndo = true; trace(player1_mc.next_mc); if (player1_mc.next_mc != null) { player1_mc.goto = player1_mc.next_mc; } } this[player1_mc.gotoArray[player1_mc.gotoArray.length - 1]._name + '_num'].gotoAndStop(1); player1_mc.gotoArray.splice(player1_mc.gotoArray.length - 1, 1); var v2 = 0; while (v2 < player1_mc.gotoArray.length) { this[player1_mc.gotoArray[v2]._name + '_num'].gotoAndStop(v2 + 2); ++v2; } } } _root.gameFull_mc._x = 200; _root.gameFull_mc._y = -30; player1_mc.player.p_mc.gotoAndStop(1); player1_mc.playerID = 1; player1_mc.ynaction = false; player1_mc.ynplayerKey = false; player1_mc.goto = z0; player1_mc.into = z0; player1_mc._x = player1_mc.goto._x; player1_mc._y = player1_mc.goto._y; player1_mc.next_mc = null; player1_mc.speed = 1; player1_mc.gotoArray = new Array(); player1_mc.yngotoArray = false; player2_mc.player.p_mc.gotoAndStop(1); player2_mc.playerID = 2; player2_mc.ynaction = false; player2_mc.ynplayerKey = false; player2_mc.goto = h5; player2_mc.into = h5; player2_mc._x = player2_mc.goto._x; player2_mc._y = player2_mc.goto._y; player2_mc.next_mc = null; player2_mc.speed = 1; player2_mc.gotoArray = new Array(); player2_mc.yngotoArray = false; if (_root.isSurfArea == false) { SurfArea_mc._visible = false; } if (_root.isDiveArea == false) { DiveArea_mc._visible = false; } if (_root.isBargeArea == false) { BargeArea_mc._visible = false; } if (_root.isBalloon == false) { balloonFull_mc._visible = false; } Act_mc._visible = false; var ranNum = (_root.lv - 1) * 40; timeAI_num = 0; player1_mc.ynbook = false; player2_mc.ynbook = false; player1_mc.ynnext = false; player2_mc.ynnext = false; ynsay2 = false; ynsay4 = false; bookArray = new Array(); _root.life = 5; fenArray = new Array(); _root.ynfen = false; wayArray = new Array(); wayBigenFu(); openClewArray = new Array(3, 4, 5, 6); if (_root.isCap == false) { capDo_mc._x = -9999; cap_mc._x = -9999; } else { openClewArray.push(2); } if (_root.isSunglass == false) { Sunglass2_mc._x = -9999; Sunglass1_mc._x = -9999; SunglassDo2_mc._x = -9999; SunglassDo1_mc._x = -9999; } else { openClewArray.push(0); openClewArray.push(1); } if (_root.isChair == false) { Chair_mc._x = -9999; ChairDo_mc._x = -9999; } else { openClewArray.push(7); } if (_root.isUmbrella == false) { Umbrella_mc._x = -9999; UmbrellaDo_mc._x = -9999; } else { openClewArray.push(8); } shopManArray = new Array(shopMan0, shopMan1, shopMan2); shopManXYArray = new Array(shopMan0._x, shopMan1._x, shopMan2._x); shopManDegin(); tableManArray = new Array(); tableMan0 = table0.man0; tableMan1 = table0.man1; tableMan2 = table1.man0; tableMan3 = table1.man1; tableMan4 = table2.man0; tableMan5 = table2.man1; tableMan0.bookID = 'c5'; tableMan1.bookID = 'c5'; tableMan2.bookID = 'c3'; tableMan3.bookID = 'c3'; tableMan4.bookID = 'c7'; tableMan5.bookID = 'c7'; table0.man0_food.man_mc = table0.man0; table0.man1_food.man_mc = table0.man1; table1.man0_food.man_mc = table1.man0; table1.man1_food.man_mc = table1.man1; table2.man0_food.man_mc = table2.man0; table2.man1_food.man_mc = table2.man1; tableManBegin(); AC_TobleManArray = new Array(); helpBigen(); balloonBigen(); dockBigen(); if (_root.isCog == false) { ship1._visible = false; } if (_root.isBarge == false) { ship2._visible = false; } if (_root.isLuxuryBarge == false) { ship3._visible = false; } shipManArray = new Array(); var s = 1; while (s <= 3) { this['ship' + s]._visible = _root['isShip' + s]; this['ship' + s].id = s; this['ship' + s].okNum = s * 2; ++s; } if (_root.isCog == true) { shipManArray.push(ship1.ship_mc.man1); shipManArray.push(ship1.ship_mc.man2); } if (_root.isBarge == true) { shipManArray.push(ship2.ship_mc.man1); shipManArray.push(ship2.ship_mc.man2); shipManArray.push(ship2.ship_mc.man3); shipManArray.push(ship2.ship_mc.man4); } if (_root.isLuxuryBarge == true) { shipManArray.push(ship3.ship_mc.man1); shipManArray.push(ship3.ship_mc.man2); shipManArray.push(ship3.ship_mc.man3); shipManArray.push(ship3.ship_mc.man4); shipManArray.push(ship3.ship_mc.man5); shipManArray.push(ship3.ship_mc.man6); } shipBigen(1); shipBigen(2); shipBigen(3); sharkBigen(); sharkArray = new Array(); sharkManBigenFu(); surfBigen(); diveBigen(); isUndo = false; } frame 1 { function AccusationFu() { player2_mc.ynbook = true; player2_mc.ynnext = true; player2_mc.gotoAndStop('诬告'); player2_mc.isAccusation = true; AccusationTime = 500; } function BananaFu() { player2_mc.ynbook = true; player2_mc.ynnext = true; player2_mc.isBanana = true; BananaTime = 500; player2_mc.gotoAndStop('香蕉皮'); } function ActFu() { Act_mc._visible = true; player2_mc.isNot = true; _root.跳舞Sound.start(0, 99); ActTime = 500; } function FlowersFu() { _root.FlowersIcon_mc.gotoAndPlay(1); isFlowersIcon = true; player2_mc.isNot = true; FlowersIconTime = 500; } function MedalFu() { _root.MedalIcon_mc.gotoAndPlay(1); isMedalIcon = true; MedalIconTime = 500; } function keyDownFu() { if (Key.isDown(38) || Key.isDown(87)) { if (_root.gameFull_mc._y < -20) { _root.gameFull_mc._y += 20; } } if (Key.isDown(40) || Key.isDown(83)) { if (_root.gameFull_mc._y > -300) { _root.gameFull_mc._y -= 20; } } if (Key.isDown(39) || Key.isDown(68)) { if (_root.gameFull_mc._x > -380) { _root.gameFull_mc._x -= 20; } } if (Key.isDown(37) || Key.isDown(65)) { if (_root.gameFull_mc._x < 840) { _root.gameFull_mc._x += 20; } } } player2_mc.isAccusation = false; player2_mc.isBanana = false; isFlowersIcon = false; player2_mc.isNot = false; player1_mc.isNot = false; isMedalIcon = false; } instance of movieClip 277 { onClipEvent (load) { this.swapDepths(this._y); } } instance of movieClip 163 { onClipEvent (release) { _parent.key(_parent.c2); } } instance of movieClip 1824 { onClipEvent (release) { _parent.key(_parent.c1); } } instance of movieClip 447 { onClipEvent (release) { _parent.key(_parent.c0); } } instance balloonFull_mc of movieClip 1364 { onClipEvent (release) { _parent.key(_parent.r1); } } instance surfMan_mc of movieClip 1952 { onClipEvent (release) { _parent.key(_parent.l3); } } instance diveMan_mc of movieClip 1731 { onClipEvent (load) { this.swapDepths(this._y); } onClipEvent (release) { _parent.key(_parent.l2); } } instance table0 of movieClip 1252 { onClipEvent (load) { this.swapDepths(this._y); } } instance table2 of movieClip 1252 { onClipEvent (load) { this.swapDepths(this._y); } } instance helpMan1_mc of movieClip 1772 { onClipEvent (load) { this.swapDepths(this._y); } onClipEvent (release) { _parent.z1_num._x = -8; _parent.z1_num._y = 627; _parent.key(_parent.z1); } } instance table1 of movieClip 1252 { onClipEvent (load) { this.swapDepths(this._y); } } instance helpMan3_mc of movieClip 435 { onClipEvent (load) { this.swapDepths(this._y); } onClipEvent (release) { _parent.z1_num._x = 423; _parent.z1_num._y = 665; _parent.key(_parent.z1); } } instance helpMan2_mc of movieClip 1772 { onClipEvent (load) { this.swapDepths(this._y); } onClipEvent (release) { _parent.z1_num._x = 148; _parent.z1_num._y = 684; _parent.key(_parent.z1); } } instance player1_mc of movieClip 1196 { onClipEvent (enterFrame) { if (_root.ynmain == false) { _parent.main(); } this.swapDepths(this._y + 1); _root.gameFull_mc.player2_mc.swapDepths(_root.gameFull_mc.player2_mc._y); } onClipEvent (keyDown) { if (Key.isDown(80) && _root.pp_mc._currentframe <= 2) { if (_root.pp_mc._currentframe == 1) { _root.pp_mc.gotoAndStop(2); } else { if (_root.pp_mc._currentframe == 2) { _root.pp_mc.gotoAndStop(1); } } } } } instance shopMan0 of movieClip 1005 { onClipEvent (load) { this.swapDepths(this._y); } } instance shopMan1 of movieClip 1005 { onClipEvent (load) { this.swapDepths(this._y); } } instance shopMan2 of movieClip 1005 { onClipEvent (load) { this.swapDepths(this._y); } } instance dockMan_mc of movieClip 923 { onClipEvent (release) { _parent.key(_parent.r3); } } instance c3 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance z0 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance h4 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance h3 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance h5 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance h6 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance h7 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance h2 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance h0 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance c2 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance c1 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance c0 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance h8 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance c4 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance c6 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance c7 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance z1 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance r6 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance r1 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance r2 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance r3 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance l1 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance l3 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance l2 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance c5 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance l0 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance h1 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance z2 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance z3 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance r0 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance r4 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance r5 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance r7 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance r8 of movieClip 1109 { onClipEvent (release) { _parent.key(this); } } instance SunglassDo1_mc of movieClip 257 { onClipEvent (release) { _parent.key(_parent.h0); } } instance SunglassDo2_mc of movieClip 257 { onClipEvent (release) { _parent.key(_parent.h1); } } instance of movieClip 257 { onClipEvent (release) { _parent.key(_parent.h6); } } instance of movieClip 257 { onClipEvent (release) { _parent.key(_parent.h3); } } instance of movieClip 257 { onClipEvent (release) { _parent.key(_parent.h4); } } instance of movieClip 257 { onClipEvent (release) { _parent.key(_parent.h5); } } instance ChairDo_mc of movieClip 257 { onClipEvent (release) { _parent.key(_parent.h7); } } instance UmbrellaDo_mc of movieClip 257 { onClipEvent (release) { _parent.key(_parent.h8); } } instance capDo_mc of movieClip 257 { onClipEvent (release) { _parent.key(_parent.h2); } } instance of movieClip 257 { onClipEvent (release) { _parent.key(_parent.c3); } } instance of movieClip 257 { onClipEvent (release) { _parent.key(_parent.c5); } } instance of movieClip 257 { onClipEvent (release) { _parent.key(_parent.c7); } } instance of movieClip 257 { onClipEvent (release) { _parent.key(_parent.l1); } } instance c3_num of movieClip 1688 { onClipEvent (load) { this.swapDepths(this._y); } } instance c7_num of movieClip 1688 { onClipEvent (load) { this.swapDepths(this._y); } } instance c5_num of movieClip 1688 { onClipEvent (load) { this.swapDepths(this._y); } } frame 2 { function key(obTemp) { if (gotoArray.length < 8) { trace(obTemp._name); gotoArray.push(obTemp); this[obTemp._name + '_num'].gotoAndStop(gotoArray.length + 1); return undefined; } } function playerKey() { if (yngotoArray == false) { if (gotoArray[0] != null) { if (goto._name == gotoArray[0]._name) { stepFu(); stopFu(gotoArray[0]); gotoArray.splice(0, 1); yngotoArray = false; next_mc = null; } else { yngotoArray = true; ynplayerKey = true; goto = gotoArray[0]; } } else { yngotoArray = false; } } if (ynplayerKey == true && yngotoArray == true) { ynplayerKey = false; str = gotoArrayFu(into.array, goto); next_mc = this[str]; k = (into._y - next_mc._y) / (into._x - next_mc._x); trace('------------------------'); trace('k=' + k); trace(into + ' ' + next_mc); trace(Math.abs(into._y - next_mc._y)); trace(Math.abs(into._x - next_mc._x)); if (Math.abs(into._y - next_mc._y) <= 20) { if (into._x - next_mc._x > 0) { player_mc.player.gotoAndStop(4); } else { player_mc.player.gotoAndStop(2); } xy = 'x'; if (into._x - next_mc._x > 0) { xSpeed = -4; } else { xSpeed = 4; } } else { if (Math.abs(into._x - next_mc._x) <= 20) { if (into._y - next_mc._y > 0) { player_mc.player.gotoAndStop(3); } else { player_mc.player.gotoAndStop(1); } xy = 'y'; if (into._y - next_mc._y > 0) { ySpeed = -3; } else { ySpeed = 3; } } else { if (into._y - next_mc._y > 0 && into._x - next_mc._x > 0) { player_mc.player.gotoAndStop(4); xy = 'x'; if (into._x - next_mc._x > 0) { xSpeed = -4; } else { xSpeed = 4; } } else { if (into._y - next_mc._y > 0 && into._x - next_mc._x < 0) { player_mc.player.gotoAndStop(3); xy = 'y'; if (into._y - next_mc._y > 0) { ySpeed = -3; } else { ySpeed = 3; } } else { if (into._y - next_mc._y < 0 && into._x - next_mc._x < 0) { player_mc.player.gotoAndStop(2); xy = 'x'; if (into._x - next_mc._x > 0) { xSpeed = -4; } else { xSpeed = 4; } } else { if (into._y - next_mc._y < 0 && into._x - next_mc._x > 0) { player_mc.player.gotoAndStop(1); xy = 'y'; if (into._y - next_mc._y > 0) { ySpeed = -3; } else { ySpeed = 3; } } } } } } } } } function nextFu() { if (next_mc != null) { if (xy == 'x') { player_mc._x += xSpeed; player_mc._y = k * (player_mc._x - next_mc._x) + next_mc._y; } else { player_mc._y += ySpeed; player_mc._x = (player_mc._y - next_mc._y) / k + next_mc._x; } if (player_mc.hit_mc.hitTest(next_mc._x + _root.gameFull_mc._x, next_mc._y + _root.gameFull_mc._y)) { trace('asdfasdfsae'); player_mc._x = next_mc._x; player_mc._y = next_mc._y; into = next_mc; if (next_mc == goto) { yngotoArray = false; stepFu(); gotoArray.splice(0, 1); trace('完成一个目标'); stopFu(next_mc); next_mc = null; } else { ynplayerKey = true; } } } } function gotoArrayFu(arrayTemp, gotoTemp) { trace(arrayTemp); trace(gotoTemp); var v1 = 0; while (v1 < arrayTemp.length) { var v2 = 0; while (v2 < arrayTemp[v1].length) { if (arrayTemp[v1][v2].length == 1 && arrayTemp[v1][v2].charAt(0) == goto._name.charAt(0)) { return arrayTemp[v1][0]; } else { if (arrayTemp[v1][v2] == goto._name) { return arrayTemp[v1][0]; } } ++v2; } ++v1; } return null; } function stepFu() { var v2 = 0; while (v2 < gotoArray.length) { gotoArray[v2].stepID = false; ++v2; } v2 = 0; while (v2 < gotoArray.length) { if (gotoArray[v2].stepID == false) { gotoArray[v2].stepID = true; this[gotoArray[v2]._name + '_num'].prevFrame(); } ++v2; } } function ai() { if (random(50) == 1) { shopManDup(); } if (random(100) == 1) { tableManDup(); } if (random(200) == 1) { balloonDup(); } if (random(100) == 1) { dockDup(); } } function main() { if (ynbook == false) { playerKey(); } nextFu(); if (_root.helpID == -1) { ai(); } else { helpFu(); } } function inFu() { if (inArray.length == 0) { inDup(); _root.deskbellSound.start(); } } function inDup() { ++inNum; var v2 = in_mc.duplicateMovieClip('in' + inNum, inNum); if (_root.helpID == -1) { v2.ynbag = random(2); v2.playerID = random(6) + 1; } else { v2.ynbag = 0; v2.playerID = 4; } v2.gotoAndStop(v2.playerID); v2.yndie = false; v2._x += inArray.length * 25; v2._y += inArray.length * 25; v2.swapDepths(v2._y); v2.ynpush = false; if (v2.ynbag == 0) { v2.bagID = random(4) + 1; v2.bag_mc.gotoAndStop(v2.bagID); } else { v2.bag_mc.gotoAndStop(v2.bag_mc._totalframes); } inArray.push(v2); } function inKey() { if (inArray[0].ynpush == false) { inArray[0].ynpush = true; if (inArray[0].ynbag == 0) { bag_mc.gotoAndStop(inArray[0].bagID); } else { bag_mc.gotoAndStop(inArray[0].bag_mc._totalframes); } t1.actionArray.push(1); bookArray.push('t1'); } if (inArray[0].yndie == true) { bag_mc.gotoAndStop(bag_mc._totalframes); inArray[0].removeMovieClip(); inArray.splice(0, 1); var v1 = 0; while (v1 < t1.actionArray.length) { if (t1.actionArray[v1] == 1) { t1.actionArray.splice(v1, 1); } else {} ++v1; } var v2 = 0; while (v2 < inArray.length) { inArray[v2]._x = in_mc._x + v2 * 50; ++v2; } reFu('t1'); } } function stopFu(ob) { trace('检查是否有任务' + bookArray); if (ob._name == 'c0') { player_mc.gotoAndStop('拿东西'); player_mc.getID = 0; trace(player_mc.getID); bookArray.splice(i, 1); return undefined; } else { if (ob._name == 'c1') { player_mc.gotoAndStop('拿东西'); player_mc.getID = 1; trace(player_mc.getID); bookArray.splice(i, 1); return undefined; } else { if (ob._name == 'c2') { player_mc.gotoAndStop('拿东西'); player_mc.getID = 2; trace(player_mc.getID); bookArray.splice(i, 1); return undefined; } } } var i = 0; while (i < bookArray.length) { if (bookArray[i] == ob._name) { if (ob._name.charAt(0) == 'h') { trace('买到东西0'); if (int(ob._name.charAt(1)) == shopManArray[0].clewID && shopManArray[0].isShow == true) { trace('买到东西1'); shopManKey(1, int(ob._name.charAt(1))); bookArray.splice(i, 1); return undefined; } } else { if (ob._name == 'c3') { player_mc.gotoAndStop('递东西'); tableManKey(1, player_mc.getID, 'c3'); player_mc.getID = -1; bookArray.splice(i, 1); return undefined; } else { if (ob._name == 'c5') { player_mc.gotoAndStop('递东西'); tableManKey(1, player_mc.getID, 'c5'); player_mc.getID = -1; bookArray.splice(i, 1); return undefined; } else { if (ob._name == 'c7') { player_mc.gotoAndStop('递东西'); tableManKey(1, player_mc.getID, 'c7'); player_mc.getID = -1; bookArray.splice(i, 1); return undefined; } else { if (ob._name == 'z1') { ynbook = true; player_mc.gotoAndStop('救人'); helpKey(1); bookArray.splice(i, 1); return undefined; } else { if (ob._name == 'r1') { ynbook = true; player_mc.gotoAndStop('开汽球'); balloonKey(1); bookArray.splice(i, 1); return undefined; } else { if (ob._name == 'r3') { if (dockKey(1)) { ynbook = true; player_mc.gotoAndStop('码头'); bookArray.splice(i, 1); } return undefined; } else { if (ob._name == 'l1') { ynbook = true; player_mc.gotoAndStop('吹号'); sharkKey(1); bookArray.splice(i, 1); return undefined; } else { if (ob._name == 'l3') { ynbook = true; player_mc.gotoAndStop('教冲浪'); surfMan_mc.clew_mc.gotoAndStop(2); bookArray.splice(i, 1); return undefined; } else { if (ob._name == 'l2') { ynbook = true; player_mc.gotoAndStop('教潜水'); diveMan_mc.clew_mc.gotoAndStop(2); bookArray.splice(i, 1); } } } } } } } } } } } ++i; } } function outFu(ob) {} function reFu(str) { --_root.life; _root.life_mc.gotoAndStop(6 - _root.life); if (_root.life <= 0) { _root.gotoAndStop('失败画面'); } i = 0; while (i < bookArray.length) { if (bookArray[i] == str) { bookArray.splice(i, 1); return undefined; } ++i; } } function wayFu() { if (bookArray.length > 0) { var v4 = -1; var v3 = 0; while (v3 < bookArray.length) { if (bookArray[v3].charAt(0) != 'f') { v4 = v3; v3 = bookArray.length; } ++v3; } if (v4 == -1) { return undefined; } bookX = this[bookArray[v4] + '']._x + _root.gameFull_mc._x; bookY = this[bookArray[v4] + '']._y + _root.gameFull_mc._y; if (bookX > 50 && bookX < 550 && bookY > 80 && bookY < 480) { _root.way_mc.gotoAndStop(2); } else { _l4 = _root.way_mc._y - bookY; _l5 = _root.way_mc._x - bookX; _l2 = Math.atan2(_l4, _l5) * 57.29578; _root.way_mc._rotation = _l2 + 180; _root.way_mc.gotoAndStop(1); } } else { _root.way_mc.gotoAndStop(2); } } function shopManDegin() { var v1 = 0; while (v1 < shopManArray.length) { shopManArray[v1].isShow = false; shopManArray[v1].clewID = -1; shopManArray[v1].clew_mc.gotoAndStop(shopManArray[v1].clew_mc._totalFrames); shopManArray[v1].gotoAndStop(shopManArray[v1]._totalFrames); ++v1; } } function shopManDup() { var v1 = 0; while (v1 < shopManArray.length) { if (shopManArray[v1]._currentframe == shopManArray[v1]._totalFrames) { shopManArray[v1].isShow = true; shopManArray[v1].manID = random(shopManArray[v1]._totalFrames); shopManArray[v1].gotoAndStop(shopManArray[v1].manID); shopManArray[v1].clewID = openClewArray[random(openClewArray.length)]; shopManArray[v1].clew_mc.gotoAndStop(shopManArray[v1].clewID + 1); bookArray.push('h' + shopManArray[v1].clewID); return undefined; } ++v1; } } function shopManKey(playerID, shopID) { if (shopManArray[0].isShow == true && shopManArray[0].clewID == shopID) { trace('买到东西2'); if (playerID == 1) { fenArray.push(_root['ware' + shopID + '_money']); } shopManArray[0].isShow = false; shopManArray[0].clewID = -1; shopManArray[0].clew_mc.gotoAndStop(shopManArray[0]._totalFrames); shopManArray[0].gotoAndStop(shopManArray[0]._totalFrames); var v3 = shopManArray.shift(); shopManArray.push(v3); var v2 = 0; while (v2 < shopManArray.length) { shopManArray[v2]._x = shopManXYArray[v2]; ++v2; } } else { return undefined; } } function tableManBegin() { var v3 = 0; while (v3 < 6) { var v2 = this['tableMan' + v3]; v2.no = v3; v2.isShow = false; v2.gotoAndStop(v2._totalframes); tableManArray.push(v2); ++v3; } } function tableManDup() { var v4 = new Array(0, 1, 2, 3, 4, 5); var v3 = new Array(); var v2 = 0; while (v2 < 6) { v3.push(v4.splice(random(v4.length), 1)); ++v2; } v2 = 0; while (v2 < v3.length) { var v1 = tableManArray[v3[v2]]; if (v1.isShow == false) { v1.isShow = true; v1.manID = random(v1._totalFrames); v1.gotoAndStop(v1.manID); v1.clewID = random(3); v1.clew_mc.gotoAndStop(v1.clewID + 1); bookArray.push(v1.bookID); AC_TobleManArray.push(v1); return undefined; } ++v2; } } function tableManKey(playerID, shopID, bookID) { var v3 = 0; while (v3 < AC_TobleManArray.length) { trace('吃完'); var v2 = AC_TobleManArray[v3]; trace(v2.bookID + ' ' + bookID); trace(v2.clewID + ' ' + shopID); if (v2.bookID == bookID && v2.clewID == shopID) { v2.isShow = false; v2.gotoAndStop(v2._totalFrames); if (playerID == 1) { fenArray.push(_root['ware' + shopID + '_money']); } AC_TobleManArray.splice(v3, 1); return undefined; } ++v3; } } function helpBigen() { helpMan_mc.isShow = false; helpMan_mc.gotoAndStop(helpMan_mc._totalFrames); } function helpDup() { if (helpMan_mc.isShow == false) { helpMan_mc.isShow = true; helpMan_mc.manID = radom(helpMan_mc._totalFrames); helpMan_mc.clewID = 1; helpMan_mc.clew_mc.gotoAndStop(1); bookArray.push('z1'); } } function helpKey(playerID) { if (helpMan_mc.isShow == true) { helpMan_mc.isShow = false; helpMan_mc.clewID = -1; helpMan_mc.gotoAndStop(helpMan_mc._totalFrames); if (playerID == 1) { fenArray.push(_root.help_money); } } } function balloonBigen() { balloonFull_mc.isShow = false; balloonFull_mc.gotoAndStop(1); balloonFull_mc.man_mc.gotoAndStop(balloonFull_mc.man_mc._totalFrames); } function balloonDup() { if (balloonFull_mc._currentframe == 1 && balloonFull_mc.isShow == false) { trace('坐热气球'); balloonFull_mc.isShow = true; balloonFull_mc.man_mc.gotoAndStop(random(balloonFull_mc.man_mc._totalFrames) + 1); balloonFull_mc.clew_mc.gotoAndStop(1); bookArray.push('r1'); } } function balloonKey(playerID) { if (balloonFull_mc.isShow == true) { balloonFull_mc.isShow = false; balloonFull_mc.gotoAndPlay(2); balloonFull_mc.clew_mc.gotoAndStop(2); if (playerID == 1) { fenArray.push(_root.balloon_money); } } } function dockBigen() { dockMan_mc.isShow = false; dockMan_mc.manID = -1; dockMan_mc.gotoAndStop(dockMan_mc._totalFrames); } function dockDup() { if (dockMan_mc.isShow == false) { dockMan_mc.isShow = true; dockMan_mc.manID = random(dockMan_mc._totalFrames + 1); dockMan_mc.gotoAndStop(dockMan_mc.manID); dockMan_mc.clew_mc.gotoAndStop(1); bookArray.push('r3'); } } function dockKey(playerID) { if (shipDup(dockMan_mc.manID) == true) { if (dockMan_mc.isShow == true) { dockMan_mc.isShow = false; dockMan_mc.gotoAndStop(dockMan_mc._totalFrames); if (playerID == 1) { fenArray.push(_root.dock_money); } return true; } } return false; } function shipBigen($shipID) { if ($shipID == 1) { ship1.gotoAndStop(1); trace(ship1.ship_mc.man1); ship1.ship_mc.man1.isShow = false; ship1.ship_mc.man1.gotoAndStop(ship1.ship_mc.man1._totalFrames); ship1.ship_mc.man2.isShow = false; ship1.ship_mc.man2.gotoAndStop(ship1.ship_mc.man2._totalFrames); } else { if ($shipID == 2) { ship2.gotoAndStop(2); ship2.ship_mc.man1.isShow = false; ship2.ship_mc.man1.gotoAndStop(ship2.ship_mc.man1._totalFrames); ship2.ship_mc.man2.isShow = false; ship2.ship_mc.man2.gotoAndStop(ship2.ship_mc.man2._totalFrames); ship2.ship_mc.man3.isShow = false; ship2.ship_mc.man3.gotoAndStop(ship2.ship_mc.man3._totalFrames); ship2.ship_mc.man4.isShow = false; ship2.ship_mc.man4.gotoAndStop(ship2.ship_mc.man4._totalFrames); } else { if ($shipID == 3) { ship3.gotoAndStop(3); ship3.ship_mc.man1.isShow = false; ship3.ship_mc.man1.gotoAndStop(ship3.ship_mc.man1._totalFrames); ship3.ship_mc.man2.isShow = false; ship3.ship_mc.man2.gotoAndStop(ship3.ship_mc.man2._totalFrames); ship3.ship_mc.man3.isShow = false; ship3.ship_mc.man3.gotoAndStop(ship3.ship_mc.man3._totalFrames); ship3.ship_mc.man4.isShow = false; ship3.ship_mc.man4.gotoAndStop(ship3.ship_mc.man4._totalFrames); ship3.ship_mc.man5.isShow = false; ship3.ship_mc.man5.gotoAndStop(ship3.ship_mc.man5._totalFrames); ship3.ship_mc.man6.isShow = false; ship3.ship_mc.man6.gotoAndStop(ship3.ship_mc.man6._totalFrames); } } } } function shipDup($manID) { var v1 = 0; while (v1 < shipManArray.legnth) { if (shipManArray[v1]._currentframe == shipManArray[v1]._totalFrames && shipManArray[v1].isShow == false) { shipManArray[v1].isShow = true; shipManArray[v1].gotoAndStop($manID); --shipManArray[v1]._parent._parent.okNum; if (shipManArray[v1]._parent._parent._currentframe == 1 && shipManArray[v1]._parent._parent.okNum <= 0) { shipManArray[v1]._parent._parent.gotoAndPlay(2); shipManArray[v1]._parent._parent.okNum = 2 * shipManArray[v1]._parent._parent.id; } return true; } ++v1; } return false; } function sharkBigen() { sharkFull_mc.isShow = false; sharkClew_mc.gotoAndStop(2); sharkFull_mc.gotoAndStop(sharkFull_mc._totalFrames); } function sharkDup() { if (sharkFull_mc._currentframe == 3 && sharkFull_mc.isShow == false) { sharkFull_mc.isShow = true; sharkClew_mc.gotoAndStop(1); sharkFull_mc.gotoAndStop(1); bookArray.push('l1'); } } function sharkKey(playerID) { if (sharkFull_mc.isShow == true) { sharkFull_mc.isShow = false; sharkFull_mc.gotoAndStop(2); if (playerID == 1) { fenArray.push(_root.shark_money); } } } function surfBigen() { surfMan_mc.isShow = false; surfMan_mc.manID = -1; surfMan_mc.gotoAndStop(surfMan_mc._totalFrames); } function surfDup() { if (surfMan_mc.isShow == false) { surfMan_mc.isShow = true; surfMan_mc.manID = random(surfMan_mc._totalFrames + 1); surfMan_mc.gotoAndStop(surfMan_mc.manID); surfMan_mc.clew_mc.gotoAndStop(1); bookArray.push('l3'); } } function surfKey(playerID) { if (surfMan_mc.isShow == true) { surfMan_mc.isShow = false; surfMan_mc.gotoAndStop(surfMan_mc._totalFrames); surfMan_mc.clew_mc.gotoAndStop(2); if (playerID == 1) { fenArray.push(_root.surf_money); } } } function diveBigen() { diveMan_mc.isShow = false; diveMan_mc.manID = -1; diveMan_mc.gotoAndStop(diveMan_mc._totalFrames); } function diveDup() { if (diveMan_mc.isShow == false) { diveMan_mc.isShow = true; diveMan_mc.manID = random(diveMan_mc._totalFrames + 1); diveMan_mc.gotoAndStop(diveMan_mc.manID); diveMan_mc.clew_mc.gotoAndStop(1); bookArray.push('l2'); } } function diveKey(playerID) { if (diveMan_mc.isShow == true) { diveMan_mc.isShow = false; diveMan_mc.gotoAndStop(diveMan_mc._totalFrames); diveMan_mc.clew_mc.gotoAndStop(2); if (playerID == 1) { fenArray.push(_root.dive_money); } } } stop(); ynaction = false; ynplayerKey = false; goto = z0; into = z0; player_mc._x = goto._x; player_mc._y = goto._y; next_mc = null; gotoArray = new Array(); yngotoArray = false; ynbook = false; bookArray = new Array(); in_mc.gotoAndStop(in_mc._totalframes); inArray = new Array(); inNum = 0; _root.life = 5; shopManArray = new Array(shopMan0, shopMan1, shopMan2); shopManXYArray = new Array(shopMan0._x, shopMan1._x, shopMan2._x); openClewArray = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8); shopManDegin(); tableManArray = new Array(); tableMan0 = table0.man0; tableMan1 = table0.man1; tableMan2 = table1.man0; tableMan3 = table1.man1; tableMan4 = table2.man0; tableMan5 = table2.man1; tableMan0.bookID = 'c5'; tableMan1.bookID = 'c5'; tableMan2.bookID = 'c3'; tableMan3.bookID = 'c3'; tableMan4.bookID = 'c7'; tableMan5.bookID = 'c7'; table0.swapDepths(table0._y); table1.swapDepths(table1._y); table2.swapDepths(table2._y); tableManBegin(); AC_TobleManArray = new Array(); _root.help_money = 88; helpBigen(); _root.balloon_money = 3; balloonBigen(); _root.dock_money = 4; shipManArray = new Array(); _root.isShip1 = true; _root.isShip2 = true; _root.isShip3 = true; var s = 1; while (s <= 3) { this['ship' + s]._visible = _root['isShip' + s]; this['ship' + s].id = s; this['ship' + s].okNum = s * 2; ++s; } if (_root.isShip1 == true) { shipManArray.push(ship1.ship_mc.man1); shipManArray.push(ship1.ship_mc.man2); } if (_root.isShip2 == true) { shipManArray.push(ship2.ship_mc.man1); shipManArray.push(ship2.ship_mc.man2); shipManArray.push(ship2.ship_mc.man3); shipManArray.push(ship2.ship_mc.man4); } if (_root.isShip3 == true) { shipManArray.push(ship3.ship_mc.man1); shipManArray.push(ship3.ship_mc.man2); shipManArray.push(ship3.ship_mc.man3); shipManArray.push(ship3.ship_mc.man4); shipManArray.push(ship3.ship_mc.man5); shipManArray.push(ship3.ship_mc.man6); } shipBigen(1); shipBigen(2); shipBigen(3); _root.shark_money = 5; sharkBigen(); _root.surf_money = 77; _root.dive_money = 66; } } movieClip 2242 { // unknown tag 90 length 2 } movieClip 2156 { // unknown tag 91 length 3 } movieClip 1938 { } movieClip 3614 { } movieClip 2270 { } movieClip 1569 { frame 1 { stop(); } frame 30 { _root.ynfen = false; } } movieClip 2416 { } // unknown tag 88 length 79 movieClip 2236 { } movieClip 2056 { } // unknown tag 88 length 52 movieClip 1978 { } movieClip 2102 { } movieClip 2998 { } movieClip 1331 { frame 1 { stop(); } } movieClip 2240 { } movieClip 2198 { } movieClip 737 { } movieClip 3346 { // unknown tag 90 length 3 } movieClip 2622 { } movieClip 2360 { // unknown tag 91 length 2 } button 1463 { on (release) { if (_root.pp_mc._currentframe == 1) { _root.pp_mc.gotoAndStop(2); } else { if (_root.pp_mc._currentframe == 2) { _root.pp_mc.gotoAndStop(1); } } } } movieClip 3422 { } button 1347 { on (release) { _root.pp_mc.gotoAndStop(3); } } movieClip 230 { } button 1703 { on (release) { _root.pp_mc.gotoAndStop(4); } } movieClip 2640 { } movieClip 2990 { } movieClip 2106 { } button 1028 { on (release) { _root.gameFull_mc.undoFu(); } } button 1362 { on (release) { _root.backSoundFu(2); gotoAndStop(2); } } button 794 { on (release) { _root.backSoundFu(1); gotoAndStop(1); } } movieClip 171 { frame 1 { stop(); } } movieClip 3920 { } movieClip 3428 { } button 480 { on (release) { _root.soundFu(2); gotoAndStop(2); } } button 1881 { on (release) { _root.soundFu(1); gotoAndStop(1); } } movieClip 167 { frame 1 { stop(); } } movieClip 3876 { } movieClip 441 { frame 1 { stop(); } } instance T_Accusation_mc of movieClip 441 { onClipEvent (release) { if (this._currentframe == 1) { _root.toolID = 1; _root.toolFull_mc.gotoAndPlay(1); _root.toolFull_mc.tool_mc.gotoAndStop(_root.toolID); this.gotoAndStop(2); } } } movieClip 1893 { frame 1 { stop(); } } instance T_Banana_mc of movieClip 1893 { onClipEvent (release) { if (this._currentframe == 1) { _root.toolID = 2; _root.toolFull_mc.gotoAndPlay(1); _root.toolFull_mc.tool_mc.gotoAndStop(_root.toolID); this.gotoAndStop(2); } } } movieClip 1857 { frame 1 { stop(); } } movieClip 2490 { } instance T_Flowers_mc of movieClip 1857 { onClipEvent (release) { if (this._currentframe == 1) { _root.toolID = 3; _root.toolFull_mc.gotoAndPlay(1); _root.toolFull_mc.tool_mc.gotoAndStop(_root.toolID); this.gotoAndStop(2); } } } movieClip 134 { frame 1 { stop(); } } instance T_Act_mc of movieClip 134 { onClipEvent (release) { if (this._currentframe == 1) { _root.toolID = 4; _root.toolFull_mc.gotoAndPlay(1); _root.toolFull_mc.tool_mc.gotoAndStop(_root.toolID); this.gotoAndStop(2); } } } movieClip 83 { frame 1 { stop(); } } instance T_Medal_mc of movieClip 83 { onClipEvent (release) { if (this._currentframe == 1) { _root.toolID = 5; _root.toolFull_mc.gotoAndPlay(1); _root.toolFull_mc.tool_mc.gotoAndStop(_root.toolID); this.gotoAndStop(2); } } } movieClip 316 { } movieClip 342 { frame 7 { stop(); } } movieClip 716 { } movieClip 1590 { frame 7 { stop(); } } movieClip 4054 { } movieClip 919 { frame 1 { stop(); } frame 3 { _root.花和奖章Sound.start(0, 1); } frame 5 { _root.花和奖章Sound.start(0, 1); } } movieClip 811 { frame 26 { stop(); switch (_root.toolID) { case 1: _root.gameFull_mc.AccusationFu(); break; case 2: _root.gameFull_mc.BananaFu(); break; case 3: _root.gameFull_mc.FlowersFu(); break; case 4: _root.gameFull_mc.ActFu(); break; case 5: _root.gameFull_mc.MedalFu(); } } } movieClip 1155 { } movieClip 2098 { } movieClip 3416 { } movieClip 2638 { } movieClip 3520 { } movieClip 2592 { } // unknown tag 88 length 143 movieClip 3690 { } movieClip 2400 { } button 1928 { on (release) { this.nextFrame(); } } movieClip 1545 { } movieClip 757 { } movieClip 1877 { } button 845 { on (release) { _parent.nextFrame(); } } movieClip 1940 { frame 1 { stop(); } } movieClip 2896 { } button 1482 { on (release) { _root.gotoAndStop(19); } } movieClip 2358 { } movieClip 488 { } // unknown tag 88 length 137 movieClip 2048 { } movieClip 3206 { } movieClip 3214 { } button 1014 { on (release) { _root.gotoAndStop(19); } } movieClip 741 { frame 1 { stop(); } } movieClip 3968 { } movieClip 1350 { } movieClip 3746 { } movieClip 3208 { } movieClip 1076 { } movieClip 1243 { frame 1 { stop(); } } movieClip 4142 { } movieClip 2110 { } movieClip 3200 { } movieClip 2850 { } movieClip 3376 { } movieClip 2184 { } movieClip 3596 { } movieClip 4000 { } button 1904 { on (release) { gotoAndStop(1); } } movieClip 4052 { } movieClip 3960 { } movieClip 11 { frame 1 { stop(); } } movieClip 1592 { frame 1 { stop(); } } movieClip 1670 { frame 1 { stop(); } } movieClip 1822 { frame 1 { stop(); } } movieClip 2804 { } button 1316 { on (press) { _root._quality = _root._qualityText; gotoAndStop(1); } } button 1847 { on (release) { gotoAndStop(1); } } movieClip 1595 { } button 1675 { on (release) { _root.gotoAndStop(10); } } button 1152 { on (release) { gotoAndStop(1); } } movieClip 750 { frame 75 { if (_root.lv >= 9) { _root.gotoAndStop(31); } else { _root.gotoAndStop(21); } } } movieClip 1639 { } movieClip 1425 { frame 1 { stop(); _root.ynmain = false; } frame 2 { _root.ynmain = true; } frame 3 { _root._qualityText = _root._quality; _root.ynmain = true; if (_root._qualityText == 'LOW') { btn1.gotoAndStop(2); } else { if (_root._qualityText == 'MEDIUM') { btn2.gotoAndStop(2); } else { if (_root._qualityText == 'HIGH') { btn3.gotoAndStop(2); } else { if (_root._qualityText == 'BEST') { btn4.gotoAndStop(2); } } } } } instance btn1 of movieClip 11 { onClipEvent (release) { _parent.btn1.gotoAndStop(2); _parent.btn2.gotoAndStop(1); _parent.btn3.gotoAndStop(1); _parent.btn4.gotoAndStop(1); _root._qualityText = 'LOW'; _root._quality = 'LOW'; } } instance btn2 of movieClip 1592 { onClipEvent (release) { _parent.btn1.gotoAndStop(1); _parent.btn2.gotoAndStop(2); _parent.btn3.gotoAndStop(1); _parent.btn4.gotoAndStop(1); _root._qualityText = 'MEDIUM'; _root._quality = 'MEDIUM'; } } instance btn3 of movieClip 1670 { onClipEvent (release) { _parent.btn1.gotoAndStop(1); _parent.btn2.gotoAndStop(1); _parent.btn3.gotoAndStop(2); _parent.btn4.gotoAndStop(1); _root._qualityText = 'HIGH'; _root._quality = 'HIGH'; } } instance btn4 of movieClip 1822 { onClipEvent (release) { _parent.btn1.gotoAndStop(1); _parent.btn2.gotoAndStop(1); _parent.btn3.gotoAndStop(1); _parent.btn4.gotoAndStop(2); _root._qualityText = 'BEST'; _root._quality = 'BEST'; } } frame 4 { _root.ynmain = true; } frame 5 { _root.ynmain = true; } } movieClip 2576 { } movieClip 2094 { } movieClip 2354 { } movieClip 2626 { } movieClip 3602 { } movieClip 3306 { } movieClip 3822 { } movieClip 3908 { } movieClip 3458 { // unknown tag 91 length 4 } movieClip 3518 { } movieClip 3652 { } movieClip 2310 { } frame 21 { function cashFu($keyid) { _root.keyid = $keyid; if (int(_root['m' + _root.keyid]) > int(_root.fen)) { _root.tipCash_mc.gotoAndStop(3); } else { _root.tipCash_mc.gotoAndStop(2); } _root.thisCash = int(_root['m' + _root.keyid]); } function cashOKFu() { _root.fen -= int(_root['m' + _root.keyid]); saveArray.push(_root.keyid); switch (_root.keyid) { case 1: _root.isCap = true; break; case 2: _root.isSunglass = true; break; case 3: _root.isChair = true; break; case 4: _root.isUmbrella = true; break; case 5: _root.isSurfArea = true; break; case 6: _root.isDiveArea = true; break; case 7: _root.isBargeArea = true; break; case 8: _root.isCog = true; break; case 9: _root.isBarge = true; break; case 10: _root.isLuxuryBarge = true; break; case 11: _root.isBalloon = true; break; case 12: _root.isAccusation = true; break; case 13: _root.isBanana = true; break; case 14: _root.isFlowers = true; break; case 15: _root.isAct = true; break; case 16: _root.isMedal = true; break; case 17: _root.isSpeedup = true; ++_root.speedup_lv; if (_root.speedup_lv >= 2) { _root.speedup_lv = 2; } if (_root.speedup_lv == 0) { _root.m17 = int(_root.shopMoneyArray[_root.lv].shop_speedup_money0); } else { _root.m17 = int(_root.shopMoneyArray[_root.lv].shop_speedup_money1); } } shopShowFu(); } function shopShowFu() { var v1 = 1; while (v1 <= 17) { showFu(v1); ++v1; } } function showFu(id) { var v2 = 1; switch (id) { case 1: if (_root.isCap == true) { v2 = 2; } _root['explain' + id] = 'Hats\nSell hats in your shop!'; break; case 2: if (_root.isSunglass == true) { v2 = 2; } _root['explain' + id] = 'Sunglasses\nSell sunglasses in your shop!'; break; case 3: if (_root.isChair == true) { v2 = 2; } _root['explain' + id] = 'Beach chairs\nSell beach chairs in your shop!'; break; case 4: if (_root.isUmbrella == true) { v2 = 2; } _root['explain' + id] = 'Beach Umbrella\nSell beach umbrellas in your shop!'; break; case 5: if (_root.isSurfArea == true) { v2 = 2; } _root['explain' + id] = 'Teach surfing\nTeach surfing and make more money!'; break; case 6: if (_root.isDiveArea == true) { v2 = 2; } _root['explain' + id] = 'Teach diving\nTeaching diving and make more money!'; break; case 7: if (_root.isBargeArea == true) { v2 = 2; } _root['explain' + id] = 'Port\nBuy a jetty for your boats.'; break; case 8: if (_root.isCog == true || _root.isBargeArea == false) { v2 = 2; } _root['explain' + id] = 'Row-boat\nGet a small row-boat!'; break; case 9: if (_root.isBarge == true || _root.isBargeArea == false) { v2 = 2; } _root['explain' + id] = 'Speed boat\nUpgrade your rowboat to a speed boat!'; break; case 10: if (_root.isLuxuryBarge == true || _root.isBargeArea == false) { v2 = 2; } _root['explain' + id] = 'Cruise\nOffer cruise deals to holiday goers.'; break; case 11: if (_root.isBalloon == true) { v2 = 2; } _root['explain' + id] = 'Hot-air Balloon\nBuy a hot-air balloon!'; break; case 12: if (_root.isAccusation == true) { v2 = 2; } _root['explain' + id] = 'Blackmail\nBlackmail your computer opponent to stop her selling for a while!'; break; case 13: if (_root.isBanana == true) { v2 = 2; } _root['explain' + id] = 'Banana Skin\nMake your computer opponent fall to the ground!'; break; case 14: if (_root.isFlowers == true) { v2 = 2; } _root['explain' + id] = 'Flowers\nGive flowers to a customer, so that he/she only uses your service.'; break; case 15: if (_root.isAct == true) { v2 = 2; } _root['explain' + id] = 'Hula-hula \nDuring the dance, customers will only use your services!'; break; case 16: if (_root.isMedal == true) { v2 = 2; } _root['explain' + id] = 'Badges\nIf you have this badge, the customer will select you when you and your competitor serves the customer at the same time.'; break; case 17: _root['explain' + id] = 'Buy rocket boots for faster movement!'; if (_root.speedup_lv == 0) { _root.m17 = int(_root.shopMoneyArray[_root.lv].shop_speedup_money0); v2 = 1; _root['ware' + id].lv_mc.gotoAndStop(1); } else { if (_root.speedup_lv == 1) { v2 = 1; _root['ware' + id].lv_mc.gotoAndStop(2); _root.m17 = int(_root.shopMoneyArray[_root.lv].shop_speedup_money1); } else { if (_root.speedup_lv != 2) break; v2 = 2; _root.m17 = int(_root.shopMoneyArray[_root.lv].shop_speedup_money1); } } } _root['ware' + id].gotoAndStop(v2); } function ReleaseFu(ob_mc) { if (ob_mc._currentframe == 1) { cashFu(ob_mc.id); } } function OverFu(ob_mc) { ob_mc.explain_mc.gotoAndStop(2); ob_mc.explain_mc.textSay.text = _root['explain' + ob_mc.id]; } function OutFu(ob_mc) { ob_mc.explain_mc.gotoAndStop(1); } _root.跳舞Sound.stop('跳舞'); _root.fenFull += _root.fen; _root.fen = _root.fenFull; _root.thisFen = int(_root.fen); var w = 0; while (w < 10) { this['way' + w].removeMovieClip(); ++w; } stop(); _root.keyid = 0; var saveArray = new Array(); _root.returnFenFull = _root.fenFull; shopSound = new Sound(); shopSound.attachSound('shopSound'); if (_root.ynbackSound == false) { shopSound.start(0, 999); } else { shopSound.stop(); } shopShowFu(); wareArray = new Array(); var i = 1; while (i <= 17) { var ob = _root['ware' + i]; ob.id = i; wareArray.push(ob); ob.onRelease = function () { ReleaseFu(this); }; ob.onRollOver = function () { OverFu(this); }; ob.onRollOut = function () { OutFu(this); }; ++i; } } // unknown tag 88 length 58 movieClip 3872 { } // unknown tag 88 length 62 movieClip 2624 { } movieClip 956 { frame 1 { stop(); } } // unknown tag 88 length 153 movieClip 742 { frame 1 { stop(); } } movieClip 1669 { frame 1 { stop(); } } movieClip 946 { frame 1 { stop(); } } movieClip 3656 { } movieClip 2498 { } movieClip 44 { frame 1 { stop(); } } movieClip 610 { frame 1 { stop(); } } movieClip 1644 { frame 1 { stop(); } } movieClip 2060 { } movieClip 470 { frame 1 { stop(); } } movieClip 3294 { } movieClip 1010 { frame 1 { stop(); } } movieClip 3694 { // unknown tag 91 length 3 } movieClip 2768 { } movieClip 3084 { } movieClip 351 { frame 1 { stop(); } } movieClip 3998 { } movieClip 691 { frame 1 { stop(); } } movieClip 3414 { } movieClip 3256 { // unknown tag 88 length 2 } movieClip 3826 { } movieClip 2188 { } movieClip 1237 { frame 1 { stop(); } } movieClip 1632 { } movieClip 924 { frame 1 { stop(); } } movieClip 3916 { } movieClip 3410 { } movieClip 993 { frame 1 { stop(); } } movieClip 3882 { } // unknown tag 88 length 59 movieClip 3388 { } movieClip 213 { frame 1 { stop(); } } movieClip 1970 { } movieClip 2362 { // unknown tag 88 length 2 } movieClip 3260 { } movieClip 2802 { } movieClip 261 { frame 1 { stop(); } } movieClip 2866 { } movieClip 2630 { } movieClip 2902 { // unknown tag 90 length 4 } movieClip 53 { frame 1 { stop(); } } movieClip 3032 { } movieClip 2670 { // unknown tag 90 length 3 } movieClip 1410 { frame 1 { stop(); } } movieClip 1968 { } movieClip 3300 { } movieClip 3700 { } movieClip 1764 { frame 1 { stop(); } } // unknown tag 88 length 59 button 1875 { on (release) { _root.cashOKFu(); gotoAndStop(1); } } button 517 { on (release) { gotoAndStop(1); } } movieClip 854 { frame 1 { stop(); } } button 972 { on (release) { ++_root.lv; _root.gotoAndStop(20); } } movieClip 3928 { } movieClip 3374 { } movieClip 2044 { } movieClip 2448 { } movieClip 2860 { } movieClip 3340 { // unknown tag 90 length 4 } movieClip 3562 { } movieClip 2446 { } movieClip 2726 { } frame 30 { function returnFu() { if (_root.lvText == 1) { _root.gotoAndStop(20); } else { _root.fenFull = _root.returnFenFull; _root.fen = 0; var v2 = 0; while (v2 < saveArray.length) { switch (saveArray[v2]) { case 1: _root.isCap = false; break; case 2: _root.isSunglass = false; break; case 3: _root.isChair = false; break; case 4: _root.isUmbrella = false; break; case 5: _root.isSurfArea = false; break; case 6: _root.isDiveArea = false; break; case 7: _root.isBargeArea = false; break; case 8: _root.isCog = false; break; case 9: _root.isBarge = false; break; case 10: _root.isLuxuryBarge = false; break; case 11: _root.isBalloon = false; break; case 12: _root.isAccusation = false; break; case 13: _root.isBanana = false; break; case 14: _root.isFlowers = false; break; case 15: _root.isAct = false; break; case 16: _root.isMedal = false; break; case 17: --_root.speedup_lv; if (_root.speedup_lv <= 0) { _root.speedup_lv = 0; _root.isSpeedup = false; } } ++v2; } --_root.lv; _root.gotoAndStop(21); } } stop(); var w = 0; while (w < 10) { this['way' + w].removeMovieClip(); ++w; } _root.fenFull += _root.fen; _root.fen = _root.fenFull; } movieClip 2486 { } movieClip 3126 { } movieClip 2450 { } movieClip 3430 { } movieClip 3552 { } movieClip 2676 { } movieClip 1619 { } movieClip 3738 { } button 1209 { on (release) { _root.returnFu(); } } movieClip 2772 { } movieClip 3036 { // unknown tag 88 length 3 } movieClip 489 { } button 1366 { on (release) { getURL('http://www.freeworldgroup.com/score/index.asp?game=' + _root._game_name, '_blank'); } } movieClip 4048 { } movieClip 615 { } button 569 { on (release) { _root.gotoAndStop(10); } } movieClip 1842 { frame 39 { stop(); } } movieClip 2956 { } movieClip 3650 { } button 648 { on (release) { gotoAndStop('submit'); } } movieClip 2492 { } movieClip 3750 { } movieClip 2148 { } movieClip 3370 { } movieClip 2596 { } movieClip 4014 { } movieClip 2410 { } movieClip 3506 { } movieClip 2950 { } movieClip 3698 { } button 602 { on (release) { gotoAndStop('submited'); } } movieClip 2680 { } movieClip 2540 { } movieClip 3418 { } movieClip 4146 { } movieClip 3566 { // unknown tag 90 length 4 } movieClip 2546 { } movieClip 1371 { } button 1634 { on (release) { viewHighscore(); } } movieClip 3864 { } movieClip 1809 { frame 1 { stop(); game_name = _root._game_name; var highscore = eval(score_var); _global.viewHighscore = function () { getURL('http://www.freeworldgroup.com/score/index.asp?game=' + _root._game_name, '_blank'); }; if (highscore <= 0) { this._visible = false; } trace(game_name); trace(highscore); trace('http://www.freeworldgroup.com/score/index.asp?game=' + game_name); if (ynok == true) { pl._visible = false; } } frame 2 { // An attempt to read a value from empty stack return undefined; label 1: goto 1; } frame 3 { function sendData() { ynok = true; send_var.game = game_name; send_var.score = highscore; send_var.name = name_txt.text; if (send_var.name == '') { send_var.name = 'guest' + int(Math.random() * 1000); } send_var.sendAndLoad('http://www.freeworldgroup.com/score/score.asp', load_var, 'POST'); gotoAndStop('sending'); } stop(); gold_txt.text = highscore; send_var = new LoadVars(); load_var = new LoadVars(); ok_btn.onRelease = sendData; load_var.onLoad = function () { gotoAndStop('done'); }; baffle_mc.useHandCursor = false; } } movieClip 2686 { } movieClip 1480 { instance of movieClip 1809 { onClipEvent (construct) { _game_name = 'bedandbreakfast'; score_var = '_root.fen'; } } frame 115 { stop(); } } movieClip 3382 { } frame 31 { var w = 0; while (w < 10) { this['way' + w].removeMovieClip(); ++w; } stop(); _root.isCap = false; _root.isSunglass = false; _root.isChair = false; _root.isUmbrella = false; _root.isSurfArea = false; _root.isDiveArea = false; _root.isBargeArea = false; _root.isCog = false; _root.isBarge = false; _root.isLuxuryBarge = false; _root.isBalloon = false; _root.isAccusation = false; _root.isBanana = false; _root.isFlowers = false; _root.isAct = false; _root.isMedal = false; _root.lv = 0; _root.room_lv = _root.setSleepNum / 2; _root.table_lv = _root.setDaisNum / 2 + 1; _root.bullpen_lv = 0; _root.fenFull += _root.fen; _root.fen = _root.fenFull; } movieClip 3472 { } movieClip 2668 { } movieClip 3080 { } movieClip 3952 { } movieClip 2808 { } movieClip 4132 { } movieClip 2010 { } movieClip 1753 { } movieClip 2020 { } movieClip 2444 { } movieClip 2320 { } movieClip 1650 { } button 1165 { on (release) { getURL('http://www.freeworldgroup.com/score/index.asp?game=' + _root._game_name, '_blank'); } } movieClip 2812 { } movieClip 3246 { // unknown tag 88 length 2 } movieClip 1294 { } button 278 { on (release) { _root.gotoAndStop(10); } } movieClip 39 { instance of movieClip 1809 { onClipEvent (construct) { _game_name = 'bedandbreakfast'; score_var = '_root.fen'; } } frame 150 { stop(); } frame 150 { stop(); } }




http://swfchan.com/24/118781/info.shtml
Created: 6/3 -2019 07:23:00 Last modified: 6/3 -2019 07:23:00 Server time: 15/11 -2024 01:43:07