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

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

Flash Games Tut3.swf

This is the info page for
Flash #67144

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


ActionScript [AS1/AS2]
Combined Code
movieClip 8 { } movieClip 10 { } movieClip 13 { } movieClip 14 Loader Component (Black) { frame 1 { Stage.showMenu = false; _parent.stop(); this._width = 360; this._height = 37; var labelTxtV; var percentTxtV; var textLabel; onEnterFrame = function () { labelText9_mc.labelText9_txt.text = textLabel; labelText9_mc._visible = labelTxtV; percentText9_mc._visible = percentTxtV; percentLoaded = int((_parent.getBytesLoaded() / _parent.getBytesTotal()) * 100); this.gotoAndStop(percentLoaded); percentText9_mc.percentText9_txt.text = percentLoaded + '%'; updateAfterEvent(); }; } frame 100 { Stage.showMenu = false; _parent.stop(); this._width = 360; this._height = 37; var labelTxtV1; var percentTxtV; var textLabel1; onEnterFrame = function () { labelText99_mc.labelText99_txt.text = textLabel1; labelText99_mc._visible = labelTxtV1; percentText9_mc._visible = percentTxtV; if (playOrStop === 'play()') { _parent.play(); } else { if (playOrStop === 'stop()') { _parent.stop(); } } updateAfterEvent(); }; } } frame 1 { MochiAd.showPreGameAd({'id': 'bb56d2433d7f205d', 'res': '550x400', 'background': 16746496, 'color': 16763904, 'outline': 0, 'no_bg': true}); } movieClip 16 { } movieClip 183 __Packages.MochiAd { #initclip if (!_global.MochiAd) { var v1 = function () {}; _global.MochiAd = v1; var v2 = v1.prototype; v1.getVersion = function () { return '2.7'; }; 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 = 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 (!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 = 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; 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) { 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 = MochiAd._parseOptions(options, v9); var clip = options.clip; var v8 = options.ad_timeout; delete options.ad_timeout; if (!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 = 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) { 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 = 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 (!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 = 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; 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) { 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'); MochiAd.showPreGameAd(options); }; v1.showTimedAd = function (options) { trace('[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0'); 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 = MochiAd._parseOptions(options, v13); options.swfv = options.clip.getSWFVersion() || 6; options.mav = MochiAd.getVersion(); var v9 = options.clip; if (!MochiAd._isNetworkAvailable()) { return null; } if (v9._mochiad_loaded) { return null; } var v12 = options.depth; delete options.depth; var v6 = v9.createEmptyMovieClip('_mochiad', v12); var v11 = MochiAd._getRes(options); options.res = v11[0] + 'x' + v11[1]; options.server += options.id; delete options.id; v9._mochiad_loaded = true; var v4 = v6.createEmptyMovieClip('_mochiad_ctr', 1); for (var v7 in options) { v4[v7] = options[v7]; } var v10 = v4.server; delete v4.server; var v14 = MochiAd._allowDomains(v10); v6.onEnterFrame = function () { if (this._mochiad_ctr._url != this._url) { this.onEnterFrame = function () { if (!this._mochiad_ctr) { delete this.onEnterFrame; MochiAd.unload(this._parent); } }; } }; var v5 = new LocalConnection(); var v8 = ['', Math.floor((new Date()).getTime()), random(999999)].join('_'); v5.mc = v6; v5.name = v8; v5.hostname = v14; v5.allowDomain = function (d) { return true; }; v5.allowInsecureDomain = v5.allowDomain; v5.connect(v8); v6.lc = v5; v4.lc = v8; 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': MochiAd.setValue(clip, arg.objectName, arg.value); break; case 'getValue': var v4 = MochiAd.getValue(clip, arg.objectName); clip._mochiad.lc.send(clip._mochiad._containerLCName, 'rpcResult', callbackID, v4); break; case 'runMethod': var v3 = 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(_global.MochiAd.prototype, null, 1); } #endinitclip } frame 3 { Mouse.show(); stop(); } button 23 { on (release) { gotoAndStop(5); } } movieClip 25 { } button 27 { on (release) { nextFrame(); } } button 29 { on (release) { gotoAndStop(19); } } button 31 { on (release) { gotoAndStop(12); } } button 34 { on (release) { getURL('http://www.incision.org.uk', '_blank'); } } button 36 { on (release) { prevFrame(); } } button 38 { on (release) { gotoAndStop(23); } } button 40 { on (release) { gotoAndStop(26); } } button 42 { on (release) { gotoAndStop(28); } } button 45 { on (release) { nextFrame(); } } button 46 { on (release) { gotoAndStop(3); } } movieClip 50 { } instance of movieClip 50 { onClipEvent (load) { _rotation = Math.random() * 360; } onClipEvent (press) { this.startDrag(false); } onClipEvent (release, releaseOutside) { this.stopDrag(); } onClipEvent (enterFrame) { if (_root.deleter == 1) { removeMovieClip(this); } if (_root.bin.hitTest(this._x, this._y, true)) { _root.bin.gotoAndPlay(2); } onMouseUp = function () { if (_root.bin.hitTest(this._x, this._y, true)) { removeMovieClip(this); } _root.bin.gotoAndStop(1); stopDrag(); }; if (_root.ball.dragged == 0) { if (this.hitTest(_root.ball._x, _root.ball._y, true)) { tellTarget ('_root.ball') { α = Math.atan((this._x - _root.ball._x) / (_root.ball._y - this._y)); sinα = Math.sin(α); cosα = Math.cos(α); sin2α = Math.pow(sinα, 2); cos2α = Math.pow(cosα, 2); xVel = xVel * (f * cos2α - e * sin2α) + yVel * sinα * cosα * (f + e); yVel = xVel * sinα * cosα * (f + e) + yVel * (f * sin2α - e * cos2α); } _root.ball._x = this._x + 1.04 * (_root.ball._x - this._x); _root.ball._y = this._y + 1.04 * (_root.ball._y - this._y); } } } } instance of movieClip 50 { onClipEvent (load) { _rotation = Math.random() * 360; } onClipEvent (press) { this.startDrag(false); } onClipEvent (release, releaseOutside) { this.stopDrag(); } onClipEvent (enterFrame) { if (_root.deleter == 1) { removeMovieClip(this); } if (_root.bin.hitTest(this._x, this._y, true)) { _root.bin.gotoAndPlay(2); } onMouseUp = function () { if (_root.bin.hitTest(this._x, this._y, true)) { removeMovieClip(this); } _root.bin.gotoAndStop(1); stopDrag(); }; if (_root.ball.dragged == 0) { if (this.hitTest(_root.ball._x, _root.ball._y, true)) { tellTarget ('_root.ball') { α = Math.atan((this._x - _root.ball._x) / (_root.ball._y - this._y)); sinα = Math.sin(α); cosα = Math.cos(α); sin2α = Math.pow(sinα, 2); cos2α = Math.pow(cosα, 2); xVel = xVel * (f * cos2α - e * sin2α) + yVel * sinα * cosα * (f + e); yVel = xVel * sinα * cosα * (f + e) + yVel * (f * sin2α - e * cos2α); } _root.ball._x = this._x + 1.04 * (_root.ball._x - this._x); _root.ball._y = this._y + 1.04 * (_root.ball._y - this._y); } } } } movieClip 53 { } instance ball of movieClip 53 { onClipEvent (load) { var acceleration = 0.01; var termVelocity = 20; var yVel = 0; var xVel = 0; var e = 0.8; var f = 0.8; var dragged = 0; } onClipEvent (enterFrame) { if (dragged == 0) { _rotation = _rotation + xVel; } this._y += yVel; this._x += xVel; if (this._y < 380) { yVel += (termVelocity - yVel) * acceleration; } else { if (this._y > 380) { yVel *= -1 * e; xVel *= f; this._y = 380; } } if (this._y < 20) { yVel *= -1 * e; xVel *= f; this._y = 20; } if (this._x > 530) { xVel *= -1 * e; yVel *= f; this._x = 530; } else { if (this._x < 20) { xVel *= -1 * e; yVel *= f; this._x = 20; } } if (dragged == 1) { _root.counter = xVel; _root.counter2 = yVel; if (this._x < _root._xmouse) { xVel = (_root._xmouse - _x) / 2; } else { if (this._x > _root._xmouse) { xVel = (_root._xmouse - _x) / 2; } } if (this._y < _root._ymouse) { yVel = (_root._ymouse - _y) / 2; } else { if (this._y > _root._ymouse) { yVel = (_root._ymouse - _y) / 2; } } } } onClipEvent (press) { dragged = 1; } onClipEvent (release, releaseOutside) { this.stopDrag(); dragged = 0; } } button 54 { on (release) { prevFrame(); } } instance ball of movieClip 53 { onClipEvent (load) { var acceleration = 0.01; var termVelocity = 20; var yVel = 0; var xVel = 0; var e = 0.8; var f = 0.8; var dragged = 0; } onClipEvent (enterFrame) { if (dragged == 0) { _rotation = _rotation + xVel; } this._y += yVel; this._x += xVel; if (this._y < 380) { yVel += (termVelocity - yVel) * acceleration; } else { if (this._y > 380) { yVel *= -1 * e; xVel *= f; this._y = 380; } } if (this._y < 20) { yVel *= -1 * e; xVel *= f; this._y = 20; } if (this._x > 530) { xVel *= -1 * e; yVel *= f; this._x = 530; } else { if (this._x < 20) { xVel *= -1 * e; yVel *= f; this._x = 20; } } if (dragged == 1) { _root.counter = xVel; _root.counter2 = yVel; if (this._x < _root._xmouse) { xVel = (_root._xmouse - _x) / 2; } else { if (this._x > _root._xmouse) { xVel = (_root._xmouse - _x) / 2; } } if (this._y < _root._ymouse) { yVel = (_root._ymouse - _y) / 2; } else { if (this._y > _root._ymouse) { yVel = (_root._ymouse - _y) / 2; } } } } onClipEvent (press) { dragged = 1; } onClipEvent (release, releaseOutside) { this.stopDrag(); dragged = 0; } } instance of movieClip 50 { onClipEvent (load) { _rotation = Math.random() * 360; } onClipEvent (press) { this.startDrag(false); } onClipEvent (release, releaseOutside) { this.stopDrag(); } onClipEvent (enterFrame) { if (_root.deleter == 1) { removeMovieClip(this); } if (_root.bin.hitTest(this._x, this._y, true)) { _root.bin.gotoAndPlay(2); } onMouseUp = function () { if (_root.bin.hitTest(this._x, this._y, true)) { removeMovieClip(this); } _root.bin.gotoAndStop(1); stopDrag(); }; if (_root.ball.dragged == 0) { if (this.hitTest(_root.ball._x, _root.ball._y, true)) { tellTarget ('_root.ball') { α = Math.atan((this._x - _root.ball._x) / (_root.ball._y - this._y)); sinα = Math.sin(α); cosα = Math.cos(α); sin2α = Math.pow(sinα, 2); cos2α = Math.pow(cosα, 2); xVel = xVel * (f * cos2α - e * sin2α) + yVel * sinα * cosα * (f + e); yVel = xVel * sinα * cosα * (f + e) + yVel * (f * sin2α - e * cos2α); } _root.ball._x = this._x + 1.04 * (_root.ball._x - this._x); _root.ball._y = this._y + 1.04 * (_root.ball._y - this._y); } } } } instance ball of movieClip 53 { onClipEvent (load) { var acceleration = 0.01; var termVelocity = 20; var yVel = 0; var xVel = 0; var e = 0.8; var f = 0.8; var dragged = 0; } onClipEvent (enterFrame) { if (dragged == 0) { _rotation = _rotation + xVel; } this._y += yVel; this._x += xVel; if (this._y < 380) { yVel += (termVelocity - yVel) * acceleration; } else { if (this._y > 380) { yVel *= -1 * e; xVel *= f; this._y = 380; } } if (this._y < 20) { yVel *= -1 * e; xVel *= f; this._y = 20; } if (this._x > 530) { xVel *= -1 * e; yVel *= f; this._x = 530; } else { if (this._x < 20) { xVel *= -1 * e; yVel *= f; this._x = 20; } } if (dragged == 1) { _root.counter = xVel; _root.counter2 = yVel; if (this._x < _root._xmouse) { xVel = (_root._xmouse - _x) / 2; } else { if (this._x > _root._xmouse) { xVel = (_root._xmouse - _x) / 2; } } if (this._y < _root._ymouse) { yVel = (_root._ymouse - _y) / 2; } else { if (this._y > _root._ymouse) { yVel = (_root._ymouse - _y) / 2; } } } } onClipEvent (press) { dragged = 1; } onClipEvent (release, releaseOutside) { this.stopDrag(); dragged = 0; } } button 74 { on (release) { gotoAndStop(3); } } movieClip 77 { } instance of movieClip 77 { onClipEvent (enterFrame) { if (this.hitTest(_root.walker)) { if (_root.walker._y < _y and _root.walker._x < _x + _width / 2 and _root.walker._x > _x - _width / 2) { _root.hit = 1; _root.walker._y = _y - _root.walker._height / 2 - 0.1; _root.walker.yspeed = 0; } else { if (_root.walker._y > _y and _root.walker._x < _x + _width / 2 and _root.walker._x > _x - _width / 2) { _root.hit = 0; _root.walker._y = _y + _height + _root.walker._height / 2 + 0.1; _root.walker.yspeed = 0; } else { if (_root.walker._x > _x and _root.walker._y < _y + _height / 2 and _root.walker._y > _y - _height / 2) { _root.hit = 0; _root.walker._x = _x + _width / 2 + _root.walker._width / 2 + 0.1; _root.walker.xspeed = 0; } else { if (_root.walker._x < _x and _root.walker._y < _y + _height / 2 and _root.walker._y > _y - _height / 2) { _root.hit = 0; _root.walker._x = _x - _width / 2 - _root.walker._width / 2 - 0.1; _root.walker.xspeed = 0; } } } } } } } instance of movieClip 77 { onClipEvent (enterFrame) { if (this.hitTest(_root.walker)) { if (_root.walker._y < _y and _root.walker._x < _x + _width / 2 and _root.walker._x > _x - _width / 2) { _root.hit = 1; _root.walker._y = _y - _root.walker._height / 2 - 0.1; _root.walker.yspeed = 0; } else { if (_root.walker._y > _y and _root.walker._x < _x + _width / 2 and _root.walker._x > _x - _width / 2) { _root.hit = 0; _root.walker._y = _y + _height + _root.walker._height / 2 + 0.1; _root.walker.yspeed = 0; } else { if (_root.walker._x > _x and _root.walker._y < _y + _height / 2 and _root.walker._y > _y - _height / 2) { _root.hit = 0; _root.walker._x = _x + _width / 2 + _root.walker._width / 2 + 0.1; _root.walker.xspeed = 0; } else { if (_root.walker._x < _x and _root.walker._y < _y + _height / 2 and _root.walker._y > _y - _height / 2) { _root.hit = 0; _root.walker._x = _x - _width / 2 - _root.walker._width / 2 - 0.1; _root.walker.xspeed = 0; } } } } } } } instance of movieClip 77 { onClipEvent (enterFrame) { if (this.hitTest(_root.walker)) { if (_root.walker._y < _y and _root.walker._x < _x + _width / 2 and _root.walker._x > _x - _width / 2) { _root.hit = 1; _root.walker._y = _y - _root.walker._height / 2 - 0.1; _root.walker.yspeed = 0; } else { if (_root.walker._y > _y and _root.walker._x < _x + _width / 2 and _root.walker._x > _x - _width / 2) { _root.hit = 0; _root.walker._y = _y + _height + _root.walker._height / 2 + 0.1; _root.walker.yspeed = 0; } else { if (_root.walker._x > _x and _root.walker._y < _y + _height / 2 and _root.walker._y > _y - _height / 2) { _root.hit = 0; _root.walker._x = _x + _width / 2 + _root.walker._width / 2 + 0.1; _root.walker.xspeed = 0; } else { if (_root.walker._x < _x and _root.walker._y < _y + _height / 2 and _root.walker._y > _y - _height / 2) { _root.hit = 0; _root.walker._x = _x - _width / 2 - _root.walker._width / 2 - 0.1; _root.walker.xspeed = 0; } } } } } } } instance of movieClip 77 { onClipEvent (enterFrame) { if (this.hitTest(_root.walker)) { if (_root.walker._y < _y and _root.walker._x < _x + _width / 2 and _root.walker._x > _x - _width / 2) { _root.hit = 1; _root.walker._y = _y - _root.walker._height / 2 - 0.1; _root.walker.yspeed = 0; } else { if (_root.walker._y > _y and _root.walker._x < _x + _width / 2 and _root.walker._x > _x - _width / 2) { _root.hit = 0; _root.walker._y = _y + _height + _root.walker._height / 2 + 0.1; _root.walker.yspeed = 0; } else { if (_root.walker._x > _x and _root.walker._y < _y + _height / 2 and _root.walker._y > _y - _height / 2) { _root.hit = 0; _root.walker._x = _x + _width / 2 + _root.walker._width / 2 + 0.1; _root.walker.xspeed = 0; } else { if (_root.walker._x < _x and _root.walker._y < _y + _height / 2 and _root.walker._y > _y - _height / 2) { _root.hit = 0; _root.walker._x = _x - _width / 2 - _root.walker._width / 2 - 0.1; _root.walker.xspeed = 0; } } } } } } } instance of movieClip 77 { onClipEvent (enterFrame) { if (this.hitTest(_root.walker)) { if (_root.walker._y < _y and _root.walker._x < _x + _width / 2 and _root.walker._x > _x - _width / 2) { _root.hit = 1; _root.walker._y = _y - _root.walker._height / 2 - 0.1; _root.walker.yspeed = 0; } else { if (_root.walker._y > _y and _root.walker._x < _x + _width / 2 and _root.walker._x > _x - _width / 2) { _root.hit = 0; _root.walker._y = _y + _height + _root.walker._height / 2 + 0.1; _root.walker.yspeed = 0; } else { if (_root.walker._x > _x and _root.walker._y < _y + _height / 2 and _root.walker._y > _y - _height / 2) { _root.hit = 0; _root.walker._x = _x + _width / 2 + _root.walker._width / 2 + 0.1; _root.walker.xspeed = 0; } else { if (_root.walker._x < _x and _root.walker._y < _y + _height / 2 and _root.walker._y > _y - _height / 2) { _root.hit = 0; _root.walker._x = _x - _width / 2 - _root.walker._width / 2 - 0.1; _root.walker.xspeed = 0; } } } } } } } instance of movieClip 77 { onClipEvent (enterFrame) { if (this.hitTest(_root.walker)) { if (_root.walker._y < _y and _root.walker._x < _x + _width / 2 and _root.walker._x > _x - _width / 2) { _root.hit = 1; _root.walker._y = _y - _root.walker._height / 2 - 0.1; _root.walker.yspeed = 0; } else { if (_root.walker._y > _y and _root.walker._x < _x + _width / 2 and _root.walker._x > _x - _width / 2) { _root.hit = 0; _root.walker._y = _y + _height + _root.walker._height / 2 + 0.1; _root.walker.yspeed = 0; } else { if (_root.walker._x > _x and _root.walker._y < _y + _height / 2 and _root.walker._y > _y - _height / 2) { _root.hit = 0; _root.walker._x = _x + _width / 2 + _root.walker._width / 2 + 0.1; _root.walker.xspeed = 0; } else { if (_root.walker._x < _x and _root.walker._y < _y + _height / 2 and _root.walker._y > _y - _height / 2) { _root.hit = 0; _root.walker._x = _x - _width / 2 - _root.walker._width / 2 - 0.1; _root.walker.xspeed = 0; } } } } } } } movieClip 88 { } movieClip 94 { frame 1 { stop(); } } instance walker of movieClip 94 { onClipEvent (load) { acceleration = 0.5; xspeed = 0; yspeed = 0; friction = 0.25; gravity = 0.4; jumppower = 10; } onClipEvent (enterFrame) { if (xspeed > 0) { jumppower = 10 + xspeed / 10; } if (xspeed < 0) { jumppower = 10 - xspeed / 10; } if (Key.isDown(37)) { xspeed -= acceleration / 5; } if (Key.isDown(39)) { xspeed += acceleration / 5; } if (yspeed < -0.5 and xspeed > 0) { _root.hit = 0; gotoAndStop(3); } else { if (yspeed > 0.5 and xspeed > 0) { _root.hit = 0; gotoAndStop(4); } else { if (yspeed < -0.5 and xspeed < 0) { _root.hit = 0; gotoAndStop(6); } else { if (yspeed > 0.5 and xspeed < 0) { _root.hit = 0; gotoAndStop(7); } else { if (yspeed < -0.5) { _root.hit = 0; gotoAndStop(3); } else { if (yspeed > 0.5) { _root.hit = 0; gotoAndStop(4); } else { if (xspeed < -1) { gotoAndStop(5); } else { if (xspeed > 1) { gotoAndStop(2); } else { if (xspeed > -1 and xspeed < 1 and yspeed > -1 and yspeed < 1) { gotoAndStop(1); } } } } } } } } } _y = _y + yspeed; _x = _x + xspeed; yspeed += gravity; if (_root.hit == 1) { if (xspeed < 0) { xspeed += friction; } if (xspeed > 0) { xspeed -= friction; } if (Key.isDown(32)) { yspeed -= jumppower; _root.hit = 0; } else { if (Key.isDown(38)) { yspeed -= jumppower; _root.hit = 0; } } if (Key.isDown(37)) { xspeed -= acceleration; } if (Key.isDown(39)) { xspeed += acceleration; } } } } button 118 { on (release) { gotoAndStop(32); } } button 122 { on (release) { gotoAndStop(33); } } instance of movieClip 77 { onClipEvent (enterFrame) { if (this.hitTest(_root.walker)) { if (_root.walker._y < _y and _root.walker._x < _x + _width / 2 and _root.walker._x > _x - _width / 2) { _root.hit = 1; _root.walker._y = _y - _root.walker._height / 2 - 0.1; _root.walker.yspeed = 0; } else { if (_root.walker._y > _y and _root.walker._x < _x + _width / 2 and _root.walker._x > _x - _width / 2) { _root.hit = 0; _root.walker._y = _y + _height + _root.walker._height / 2 + 0.1; _root.walker.yspeed = 0; } else { if (_root.walker._x > _x and _root.walker._y < _y + _height / 2 and _root.walker._y > _y - _height / 2) { _root.hit = 0; _root.walker._x = _x + _width / 2 + _root.walker._width / 2 + 0.1; _root.walker.xspeed = 0; } else { if (_root.walker._x < _x and _root.walker._y < _y + _height / 2 and _root.walker._y > _y - _height / 2) { _root.hit = 0; _root.walker._x = _x - _width / 2 - _root.walker._width / 2 - 0.1; _root.walker.xspeed = 0; } } } } } } } instance walker of movieClip 94 { onClipEvent (load) { acceleration = 0.5; xspeed = 0; yspeed = 0; friction = 0.25; gravity = 0.4; jumppower = 10; } onClipEvent (enterFrame) { if (xspeed > 0) { jumppower = 10 + xspeed / 10; } if (xspeed < 0) { jumppower = 10 - xspeed / 10; } if (Key.isDown(37)) { xspeed -= acceleration / 5; } if (Key.isDown(39)) { xspeed += acceleration / 5; } if (yspeed < -0.5 and xspeed > 0) { _root.hit = 0; gotoAndStop(3); } else { if (yspeed > 0.5 and xspeed > 0) { _root.hit = 0; gotoAndStop(4); } else { if (yspeed < -0.5 and xspeed < 0) { _root.hit = 0; gotoAndStop(6); } else { if (yspeed > 0.5 and xspeed < 0) { _root.hit = 0; gotoAndStop(7); } else { if (yspeed < -0.5) { _root.hit = 0; gotoAndStop(3); } else { if (yspeed > 0.5) { _root.hit = 0; gotoAndStop(4); } else { if (xspeed < -1) { gotoAndStop(5); } else { if (xspeed > 1) { gotoAndStop(2); } else { if (xspeed > -1 and xspeed < 1 and yspeed > -1 and yspeed < 1) { gotoAndStop(1); } } } } } } } } } _y = _y + yspeed; _x = _x + xspeed; yspeed += gravity; if (_root.hit == 1) { if (xspeed < 0) { xspeed += friction; } if (xspeed > 0) { xspeed -= friction; } if (Key.isDown(32)) { yspeed -= jumppower; _root.hit = 0; } else { if (Key.isDown(38)) { yspeed -= jumppower; _root.hit = 0; } } if (Key.isDown(37)) { xspeed -= acceleration; } if (Key.isDown(39)) { xspeed += acceleration; } } } } movieClip 128 { } instance of movieClip 128 { onClipEvent (load) { speed = 0; xspeed = 0; yspeed = 0; acceleration = 0.5; turnfriction = 2; maxspeed = 0; topspeed = 15; } onClipEvent (enterFrame) { maxspeed = topspeed; _x = _x + xspeed; _y = _y + yspeed; if (Key.isDown(38)) { speed += acceleration; } if (Key.isDown(40)) { speed -= acceleration; } if (speed > 0) { speed -= acceleration / 2; } if (speed < 0) { speed += acceleration / 2; } if (Key.isDown(37)) { _rotation = _rotation - speed / turnfriction; } if (Key.isDown(39)) { _rotation = _rotation + speed / turnfriction; } if (speed > maxspeed) { speed = maxspeed; } xspeed = speed * Math.cos(_rotation * Math.PI / 180); yspeed = speed * Math.sin(_rotation * Math.PI / 180); } } button 135 { on (release) { gotoAndStop(31); } } instance of movieClip 128 { onClipEvent (load) { speed = 0; xspeed = 0; yspeed = 0; acceleration = 0.5; turnfriction = 2; maxspeed = 0; topspeed = 15; } onClipEvent (enterFrame) { maxspeed = topspeed; _x = _x + xspeed; _y = _y + yspeed; if (Key.isDown(38)) { speed += acceleration; } if (Key.isDown(40)) { speed -= acceleration; } if (speed > 0) { speed -= acceleration / 2; } if (speed < 0) { speed += acceleration / 2; } if (Key.isDown(37)) { _rotation = _rotation - speed / turnfriction; } if (Key.isDown(39)) { _rotation = _rotation + speed / turnfriction; } if (speed > maxspeed) { speed = maxspeed; } xspeed = speed * Math.cos(_rotation * Math.PI / 180); yspeed = speed * Math.sin(_rotation * Math.PI / 180); } } movieClip 141 { frame 1 { x00 = _x; y00 = _y; MAAI = 400; } frame 2 { x0 = _x; y0 = _y; x = _root._xmouse; y = _root._ymouse; a = x - x0; b = y - y0; r = Math.sqrt(a * a + b * b); quer_fugir_x = this._x - (a / r) * MAAI / r; quer_fugir_y = this._y - (b / r) * MAAI / r; quer_voltar_x = (x00 - x0) / 2; quer_voltar_y = (y00 - y0) / 2; this._x = quer_fugir_x + quer_voltar_x; this._y = quer_fugir_y + quer_voltar_y; } frame 3 { gotoAndPlay(2); } } movieClip 148 { } movieClip 157 { } instance of movieClip 157 { onClipEvent (load) { this.startDrag(true); Mouse.hide(); } } frame 29 { Mouse.show(); } button 161 { on (release) { gotoAndStop(30); } } button 167 { on (release) { gotoAndStop(29); } } button 172 { on (release) { gotoAndStop(21); } } movieClip 176 { frame 1 { function camControl() { parentColor.setTransform(camColor.getTransform()); var v4 = sX / this._width; var v3 = sY / this._height; _parent._x = cX - this._x * v4; _parent._y = cY - this._y * v3; _parent._xscale = 100 * v4; _parent._yscale = 100 * v3; } function resetStage() { var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; parentColor.setTransform(v2); _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; } this._visible = false; var oldMode = Stage.scaleMode; Stage.scaleMode = 'exactFit'; var cX = Stage.width / 2; var cY = Stage.height / 2; var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; var camColor = new Color(this); var parentColor = new Color(_parent); this.onEnterFrame = camControl; camControl(); this.onUnload = resetStage; } } instance cam of movieClip 176 { onClipEvent (enterFrame) { if (_y < 200) { _y = 200; } if (_y > 750) { _y = 750; } if (Key.isDown(40)) { _y = _y + 5; } if (Key.isDown(38)) { _y = _y - 5; } } } button 177 { on (release) { gotoAndStop(16); } } instance cam of movieClip 176 { onClipEvent (enterFrame) { if (_y < 200) { _y = 200; } if (_y > 900) { _y = 900; } if (Key.isDown(40)) { _y = _y + 5; } if (Key.isDown(38)) { _y = _y - 5; } } } button 180 { on (release) { gotoAndStop(17); } } instance cam of movieClip 176 { onClipEvent (enterFrame) { if (_y < 200) { _y = 200; } if (_y > 600) { _y = 600; } if (Key.isDown(40)) { _y = _y + 5; } if (Key.isDown(38)) { _y = _y - 5; } } }




http://swfchan.com/14/67144/info.shtml
Created: 11/4 -2019 16:57:45 Last modified: 11/4 -2019 16:57:45 Server time: 14/05 -2024 11:16:40