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

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

Luis Launch - How many days will it take you to get into outer space-.swf

This is the info page for
Flash #90208

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


ActionScript [AS1/AS2]
Combined Code
frame 1 { hud.unloadMovie(); hud.removeMovieClip(); endscene.unloadMovie(); endscene.removeMovieClip(); stopAllSounds(); playsign._visible = false; NewgroundsAPI.connectMovie(8229); stop(); this.onEnterFrame = function () { var v4 = this.getBytesTotal(); var v3 = this.getBytesLoaded(); var v2 = (v3 / v4) * 100; bar._xscale = v2; if (v2 >= 100) { playsign._visible = true; delete this.onEnterFrame; playsign.onPress = function () { gotoAndStop('game'); }; } }; } // unknown tag 88 length 65 // unknown tag 88 length 103 movieClip 9 { } movieClip 10 { } button 16 { on (release) { NewgroundsAPI.loadNewgrounds(); } } movieClip 17 { } movieClip 18 { frame 1 { function startAd(ngad_url) { trace('opening ' + ngad_url); System.security.allowDomain('70.87.128.99'); System.security.allowInsecureDomain('70.87.128.99'); System.security.allowDomain('ads.shizmoo.com'); System.security.allowInsecureDomain('ads.shizmoo.com'); System.security.allowDomain('www.cpmstar.com'); System.security.allowInsecureDomain('www.cpmstar.com'); System.security.allowDomain('server.cpmstar.com'); System.security.allowInsecureDomain('server.cpmstar.com'); var ngads_redirect = new XML(); ngads_redirect.ignoreWhite = true; ngads_redirect.onLoad = function (success) { trace('[NEWGROUNDS FLASH ADS] :: You may get a \'Security Sandbox Violation\' ... this is normal, do not freak out!'); if (success) { ng_ad.loadMovie(ngads_redirect.toString(), 'GET'); } else {} }; ngads_redirect.load(ngad_url); } if (NewgroundsAPI.getAdURL()) { startAd(NewgroundsAPI.getAdURL()); } NewgroundsAPI.onAdsApproved = function (ad_url) { startAd(ad_url); }; stop(); } } movieClip 21 { } movieClip 25 { } // unknown tag 88 length 143 movieClip 29 { frame 1 { this.cacheAsBitmap = true; } } movieClip 167 __Packages.NewgroundsAPI { #initclip if (!_global.NewgroundsAPI) { var v1 = function () {}; _global.NewgroundsAPI = v1; var v2 = v1.prototype; v1.connectMovie = function (id) { if (!id) { NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.connectMovie(id:Number)'); } else { if (!NewgroundsAPI.tracker_id) { NewgroundsAPI.SendMessage('Connecting to API gateway...'); NewgroundsAPI.tracker_id = id; NewgroundsAPI.host = (_url.split('/'))[2].toLowerCase(); if (NewgroundsAPI.host.length < 1) { NewgroundsAPI.host = 'localhost'; } var v2 = new Object(); NewgroundsAPI.SendEvent(NewgroundsAPI.MOVIE_VIEWS); } } }; v1.setMovieVersion = function (movie_version) { if (!movie_version) { NewgroundsAPI.SendError('Missing required \'version\' in NewgroundsAPI.setMovieVersion(version:String)'); } else { NewgroundsAPI.version = movie_version; } }; v1.debugMode = function () { NewgroundsAPI.debug = true; }; v1.addCustomEvent = function (stat_id, stat_name) { if (!stat_id) { NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)'); } else { if (!stat_name) { NewgroundsAPI.SendError('Missing required \'event_name\' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)'); } else { NewgroundsAPI.custom_events[stat_name] = NewgroundsAPI.CUSTOM_STATS + stat_id; NewgroundsAPI.SendMessage('Created custom event: ' + stat_name); } } }; v1.addCustomLink = function (stat_id, stat_name) { if (!stat_id) { NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)'); } else { if (!stat_name) { NewgroundsAPI.SendError('Missing required \'link_name\' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)'); } else { NewgroundsAPI.custom_links[stat_name] = NewgroundsAPI.CUSTOM_STATS + stat_id; NewgroundsAPI.SendMessage('Created custom link ' + stat_id + ': ' + stat_name); } } }; v1.loadMySite = function () { NewgroundsAPI.SendLink(NewgroundsAPI.AUTHOR_SITE); }; v1.loadNewgrounds = function (special) { if (special) { var v1 = {'page': special}; } NewgroundsAPI.SendLink(NewgroundsAPI.NEWGROUNDS, v1); }; v1.logCustomEvent = function (event_name) { if (!event_name) { NewgroundsAPI.SendError('Missing required \'event_name\' parameter in NewgroundsAPI.logCustomEvent(event_name:String)'); } else { if (!NewgroundsAPI.custom_events[event_name]) { NewgroundsAPI.SendError('Attempted to log undefined custom event: ' + event_name); } else { NewgroundsAPI.SendEvent(NewgroundsAPI.custom_events[event_name]); } } }; v1.loadCustomLink = function (link_name) { if (!link_name) { NewgroundsAPI.SendError('Missing required \'link_name\' parameter in NewgroundsAPI.loadCustomLink(link_name:String)'); } else { if (!NewgroundsAPI.custom_links[link_name]) { NewgroundsAPI.SendError('Attempted to open undefined custom link: ' + link_name); } else { NewgroundsAPI.SendLink(NewgroundsAPI.custom_links[link_name]); } } }; v1.getAdURL = function () { return NewgroundsAPI.movie_options.ad_url; }; v1.getMovieURL = function () { if (NewgroundsAPI.movie_options.movie_url) { return NewgroundsAPI.movie_options.movie_url; } else { return 'Newgrounds.com'; } }; v1.getNewVersionURL = function () { return NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&host=' + escape(NewgroundsAPI.host) + '&stat=' + NewgroundsAPI.NEW_VERSION; }; v1.SendEvent = function (id) { NewgroundsAPI.SendStat(id, false); }; v1.SendLink = function (id, extra) { NewgroundsAPI.SendStat(id, true, extra); }; v1.ReadGatewayData = function (params) { for (var v2 in params) { params[v2] = unescape(params[v2]); NewgroundsAPI.movie_options[v2] = params[v2]; } if (params.settings_loaded) { NewgroundsAPI.SendMessage('You have successfully connected to the Newgrounds API gateway!'); NewgroundsAPI.SendMessage('Movie Identified as \'' + NewgroundsAPI.movie_options.movie_name + '\''); if (NewgroundsAPI.movie_options.message) { NewgroundsAPI.SendMessage(NewgroundsAPI.movie_options.message); } if (NewgroundsAPI.movie_options.ad_url) { NewgroundsAPI.SendMessage('Your movie has been approved to run Flash Ads'); NewgroundsAPI.onAdsApproved(NewgroundsAPI.movie_options.ad_url); } if (NewgroundsAPI.movie_options.movie_version and NewgroundsAPI.movie_options.movie_version.toString() != NewgroundsAPI.version.toString()) { NewgroundsAPI.SendMessage('WARNING: The movie version configured in your API settings does not match this movie\'s version!'); NewgroundsAPI.onNewVersionAvailable(NewgroundsAPI.movie_options.movie_version, NewgroundsAPI.getMovieURL(), NewgroundsAPI.getNewVersionURL()); } if (NewgroundsAPI.movie_options.deny_host) { NewgroundsAPI.SendMessage('You have blocked \'localHost\' in your API settings.'); NewgroundsAPI.SendMessage('If you wish to test your movie you will need to remove this block.'); NewgroundsAPI.onDenyHost(NewgroundsAPI.host, NewgroundsAPI.getMovieURL(), NewgroundsAPI.getNewVersionURL()); } if (NewgroundsAPI.movie_options.request_portal_url == 1) { var v4 = NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&portal_url=' + escape(_url); var v3 = new XML(); v3.ignoreWhite = true; v3.load(v4); } } else { if (!NewgroundsAPI.movie_options.settings_loaded) { NewgroundsAPI.SendError('Could not establish connection to the API gateway.'); } } }; v1.SendStat = function (stat_id, open_in_browser, extra) { if (!NewgroundsAPI.tracker_id) { NewgroundsAPI.SendError('API calls cannot be made without a valid movie id.'); NewgroundsAPI.SendError('Did you remember to add the "NewgroundsAPI.connectMovie()" code?'); } else { var v7 = NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&host=' + escape(NewgroundsAPI.host) + '&stat=' + stat_id; for (var v9 in extra) { v7 += '&' + escape(v9) + '=' + escape(extra[v9]); } trace(v7); if (NewgroundsAPI.debug) { v7 += '&debug=1'; } if (open_in_browser) { getURL(v7, '_blank'); } else { var v10 = new XML(); v10.ignoreWhite = true; v10.onLoad = function (success) { var v6 = new Object(); var v3 = 0; while (v3 < this.firstChild.childNodes.length) { var v4 = this.firstChild.childNodes[v3]; var v5 = v4.nodeName; var v2 = v4.attributes.value; if (v2 == Number(v2)) { v2 = Number(v2); } v6[v5] = v2; ++v3; } NewgroundsAPI.ReadGatewayData(v6); }; v10.load(v7); } } }; v1.SendError = function (msg) { trace('[NEWGROUNDS API ERROR] :: ' + msg); }; v1.SendMessage = function (msg) { trace('[NEWGROUNDS API] :: ' + msg); }; v1.InitTextFormats = function () { if (!NewgroundsAPI.error_format) { NewgroundsAPI.error_format = new TextFormat(); NewgroundsAPI.error_format.font = 'Arial Black'; NewgroundsAPI.error_format.size = 48; NewgroundsAPI.error_format.color = 16711680; } if (!NewgroundsAPI.header_format) { NewgroundsAPI.header_format = new TextFormat(); NewgroundsAPI.header_format.font = 'Arial Black'; NewgroundsAPI.header_format.size = 24; NewgroundsAPI.header_format.color = 16777215; } if (!NewgroundsAPI.normal_format) { NewgroundsAPI.normal_format = new TextFormat(); NewgroundsAPI.normal_format.font = 'Arial'; NewgroundsAPI.normal_format.bold = true; NewgroundsAPI.normal_format.size = 12; NewgroundsAPI.normal_format.color = 16777215; } if (!NewgroundsAPI.link_format) { NewgroundsAPI.link_format = new TextFormat(); NewgroundsAPI.link_format.color = 16776960; NewgroundsAPI.link_format.underline = true; } }; v1.onNewVersionAvailable = function (version, movie_url, redirect_url) { NewgroundsAPI.InitTextFormats(); var v2 = new Object(); v2.x = Stage.width / 2; v2.y = Stage.height / 2; _root.createEmptyMovieClip('NGAPI_new_version_overlay', _root.getNextHighestDepth()); _root.NGAPI_new_version_overlay.lineStyle(1, 0, 100); _root.NGAPI_new_version_overlay.beginFill(0, 70); _root.NGAPI_new_version_overlay.moveTo(-10, -10); _root.NGAPI_new_version_overlay.lineTo(-10, 1000); _root.NGAPI_new_version_overlay.lineTo(1000, 1000); _root.NGAPI_new_version_overlay.lineTo(1000, -10); _root.NGAPI_new_version_overlay.lineTo(-10, -10); _root.NGAPI_new_version_overlay.endFill(); _root.NGAPI_new_version_overlay.lineStyle(10, 0, 100); _root.NGAPI_new_version_overlay.beginFill(51); _root.NGAPI_new_version_overlay.moveTo(v2.x - 240, v2.y - 120); _root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y - 120); _root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y + 80); _root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y + 80); _root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y - 120); _root.NGAPI_new_version_overlay.endFill(); _root.NGAPI_new_version_overlay.createEmptyMovieClip('exit', 1000); _root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100); _root.NGAPI_new_version_overlay.exit.beginFill(0, 50); _root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 210, v2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 110); _root.NGAPI_new_version_overlay.exit.endFill(); _root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 214, v2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 226, v2.y - 94); _root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 226, v2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 214, v2.y - 94); _root.NGAPI_new_version_overlay.exit.onMouseUp = function () { if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) { _root.NGAPI_new_version_overlay.removeMovieClip(); } }; var v3 = 'Version ' + version + ' is now available at:' + '\n'; var v5 = v3.length; v3 += movie_url; var v4 = v3.length; _root.NGAPI_new_version_overlay.createTextField('mouseblocker', 99, -10, -10, 1000, 1000); _root.NGAPI_new_version_overlay.createTextField('newversion', 100, v2.x - 210, v2.y - 90, 400, 80); _root.NGAPI_new_version_overlay.newversion.text = 'New Version Available!'; _root.NGAPI_new_version_overlay.newversion.setTextFormat(NewgroundsAPI.header_format); _root.NGAPI_new_version_overlay.createTextField('message', 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40); _root.NGAPI_new_version_overlay.message.text = v3; _root.NGAPI_new_version_overlay.message.multiline = true; _root.NGAPI_new_version_overlay.message.wordWrap = true; _root.NGAPI_new_version_overlay.message.html = true; _root.NGAPI_new_version_overlay.message.setTextFormat(NewgroundsAPI.normal_format); NewgroundsAPI.link_format.url = redirect_url; _root.NGAPI_new_version_overlay.message.setTextFormat(v5, v4, NewgroundsAPI.link_format); }; v1.onDenyHost = function (hostname, movie_url, redirect_url) { NewgroundsAPI.InitTextFormats(); _root.createEmptyMovieClip('NGAPI_deny_host_overlay', _root.getNextHighestDepth()); _root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100); _root.NGAPI_deny_host_overlay.beginFill(6684672); _root.NGAPI_deny_host_overlay.moveTo(0, 0); _root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0); _root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height); _root.NGAPI_deny_host_overlay.lineTo(0, Stage.height); _root.NGAPI_deny_host_overlay.lineTo(0, 0); _root.NGAPI_deny_host_overlay.endFill(); var v2 = 'This movie has not been approved for use on ' + hostname + '.'; v2 += '\r\rFor an aproved copy, please visit:\r'; var v4 = v2.length; v2 += movie_url; var v3 = v2.length; _root.NGAPI_deny_host_overlay.createTextField('mousekill', 100, 0, 0, Stage.width, Stage.height); _root.NGAPI_deny_host_overlay.createTextField('error', 101, (Stage.width - 400) / 2, Stage.height / 2 - 100, 400, 200); _root.NGAPI_deny_host_overlay.error.text = 'ERROR!'; _root.NGAPI_deny_host_overlay.error.setTextFormat(NewgroundsAPI.error_format); _root.NGAPI_deny_host_overlay.createTextField('message', 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200); _root.NGAPI_deny_host_overlay.message.text = v2; _root.NGAPI_deny_host_overlay.message.multiline = true; _root.NGAPI_deny_host_overlay.message.wordWrap = true; _root.NGAPI_deny_host_overlay.message.html = true; _root.NGAPI_deny_host_overlay.message.setTextFormat(NewgroundsAPI.normal_format); NewgroundsAPI.link_format.url = redirect_url; _root.NGAPI_deny_host_overlay.message.setTextFormat(v4, v3, NewgroundsAPI.link_format); }; v1.isInstalled = function () { return true; }; v1.onAdsApproved = function (ad_url) {}; v1.movie_options = new Object(); v1.custom_events = new Object(); v1.custom_links = new Object(); v1.MOVIE_VIEWS = 1; v1.AUTHOR_SITE = 2; v1.NEWGROUNDS = 3; v1.NEW_VERSION = 4; v1.CUSTOM_STATS = 50; v1.GATEWAY_URL = 'http://www.ngads.com/gateway.php'; ASSetPropFlags(_global.NewgroundsAPI.prototype, null, 1); } #endinitclip } movieClip 32 bean { } movieClip 45 splat { frame 19 { stop(); this.cacheAsBitmap = true; } } movieClip 47 bone0 { } movieClip 49 bone1 { } movieClip 51 bone2 { } movieClip 62 fart { frame 21 { stop(); this.unloadMovie(); this.removeMovieClip(); } } movieClip 64 { frame 1 { this.onPress = function () {}; } } // unknown tag 88 length 44 // unknown tag 88 length 96 // unknown tag 88 length 76 movieClip 80 { } movieClip 81 { } movieClip 91 store { frame 1 { function updateStuff() { this.mon.text = '$' + Math.floor(this.monies * 100) / 100; this.days.text = 'DAY ' + this.numdays; } function chkCost(who) { if (!who.chk._visible) { if (this.monies > who.cost) { cashsound.start(); this.monies -= who.cost; var i = 0; while (i <= who.cc) { var tar = eval('r' + who.rr + '_' + i); tar.chk._visible = true; ++i; } if (who.rr == 0) { this._parent.game.BANDSTRENGTH = dat[who.rr].vals[who.cc]; } if (who.rr == 1) { this._parent.game.BANDLENGTH = dat[who.rr].vals[who.cc]; } if (who.rr == 2) { this._parent.game.STARTBEANS = dat[who.rr].vals[who.cc]; } if (who.rr == 3) { this._parent.game.BEANSTRENGTH = dat[who.rr].vals[who.cc]; } if (who.rr == 4) { this._parent.game.MONEYMULT = dat[who.rr].vals[who.cc]; } updateStuff(); } } } this.cashsound = new Sound(this); cashsound.attachSound('cashregister'); var dat = new Array(); dat[0] = new Array(); dat[0].v = this._parent.game.BANDSTRENGTH; dat[0].costs = new Array(10, 50, 100); dat[0].vals = new Array(15, 35, 70); dat[1] = new Array(); dat[1].v = this._parent.game.BANDLENGTH; dat[1].costs = new Array(10, 50, 100); dat[1].vals = new Array(130, 200, 310); dat[2] = new Array(); dat[2].v = this._parent.game.STARTBEANS; dat[2].costs = new Array(10, 50, 100); dat[2].vals = new Array(1, 2, 5); dat[3] = new Array(); dat[3].v = this._parent.game.BEANSTRENGTH; dat[3].costs = new Array(10, 50, 100); dat[3].vals = new Array(15.8, 17, 19); dat[4] = new Array(); dat[4].v = this._parent.game.MONEYMULT; dat[4].costs = new Array(10, 50, 100); dat[4].vals = new Array(0.07000000000000001, 0.09, 0.12); updateStuff(); var r = 0; while (r < 5) { var c = 0; while (c < 3) { var tar = eval('r' + r + '_' + c); tar.rr = r; tar.cc = c; if (dat[r].vals[c] <= dat[r].v) { tar.chk._visible = true; } else { tar.chk._visible = false; } tar.cost = dat[r].costs[c]; tar.onPress = function () { this._parent.chkCost(this); }; tar.onRollOver = function () { cost.text = '$' + this.cost; }; tar.onRollOut = function () { cost.text = '---'; }; ++c; } ++r; } but_done.onPress = function () { var v2 = this._parent._parent; trace('monies: ' + this._parent.monies); v2.game.MONEY = this._parent.monies; v2.game.init(); this._parent.unloadMovie(); this._parent.removeMovieClip(); }; but_luis.onPress = function () { getURL('http://luis.newgrounds.com', '_blank'); }; } } movieClip 94 { } movieClip 96 { } movieClip 101 endscene { frame 193 { but_again.onPress = function () { _root.gotoAndStop(1); }; } frame 217 { stop(); } } movieClip 109 { frame 1 { stop(); } } frame 3 { stop(); } movieClip 112 { } movieClip 114 { } movieClip 116 { } movieClip 118 { } movieClip 120 { } movieClip 121 { frame 1 { this.cacheAsBitmap = true; } } movieClip 124 { } movieClip 126 { } movieClip 127 { frame 1 { this.cacheAsBitmap = true; } } movieClip 130 { } movieClip 132 { } movieClip 133 { frame 1 { this.cacheAsBitmap = true; } } movieClip 135 { } movieClip 137 { frame 1 { this.cacheAsBitmap = true; } } movieClip 139 { } movieClip 141 { } movieClip 142 { frame 1 { this.cacheAsBitmap = true; } } movieClip 144 { } movieClip 145 { } movieClip 150 { } movieClip 156 { frame 119 { stop(); } } movieClip 157 { frame 1 { stop(); } } movieClip 159 { } movieClip 160 { } movieClip 161 { frame 1 { function makePress() { this.onPress = function () { this.boost(dude); }; } function init() { delete this.onPress; launched = false; dude._visible = true; dude._rotation = 0; counter = 0; dude._x = -25; dude._y = 60; centerOn(dude); if (!firsttime) { dude.swapDepths(8889991); nextup = dude.getDepth(); } roots.swapDepths(nextup + 1); storeup = false; splatted = false; _root.hud._visible = true; R = 39; L = 37; A = 65; D = 68; S = 32; fcv = 0; dude.guts.bod.stop(); GRAV = 1; dude.xvel = 0; dude.yvel = 0; pausy = false; daleft = bg0._x; dude.speed = 1; dude.beans = STARTBEANS; airtime = 0; var bcv = 0; beanarray = new Array(); var i = 0; while (i < 25) { var b = this.attachMovie('bean', 'bean' + i, i + 999); b._x = random(185) - 120; b._y = -random(8400) - 200; beanarray.push(b); ++i; } var i = 0; while (i < 4) { var tar = eval('bg' + i); tar._x = daleft; if (i > 0) { var pn = i - 1; var prev = eval('bg' + pn); tar._y = prev._y - 2795; } ++i; } pulling = false; launched = false; dude.onPress = function () { this._parent.pulling = true; trace('pulling'); delete this.onPress; }; dude.onRelease = function () { if (!this._parent.launched) { this._parent.makePress(); this.guts.bod.play(); this._parent.launched = true; this._parent.pulling = false; this._parent.bands.unloadMovie(); this._parent.bands.removeMovieClip(); var v2 = this._y - 55; this.yvel = -v2 / 2; delete this.onRelease; delete eval(this.onReleaseOutside()); } }; dude.onReleaseOutside = function () { if (!this._parent.launched) { this._parent.makePress(); this.guts.bod.play(); this._parent.launched = true; this._parent.pulling = false; this._parent.bands.unloadMovie(); this._parent.bands.removeMovieClip(); var v2 = this._y - 55; this.yvel = -v2 / 2; delete this.onRelease; delete eval(this.onReleaseOutside()); } }; updateHud(); } function phys(who) { if (who.yvel < -60) { who.yvel = -60; } who._y += who.yvel; if (!pulling && launched) { who.yvel += GRAV; } who._x += who.xvel; who.xvel *= 0.99; if (who._y > 135 && launched && who.yvel > 0) { who._y = 135; splatted = true; dude._visible = false; var v9 = this.attachMovie('splat', 'splat' + splatcv, 899 + splatcv); var v10 = random(2); if (v10 == 1) { v9._xscale = -100; } ++splatcv; v9._x = dude._x; v9._y = dude._y + random(20) - 10; var v5 = 0; while (v5 < 5) { var v7 = 'bone' + random(3); var v2 = this.attachMovie(v7, 'bone' + splatcv, 912 + splatcv); ++splatcv; v2._x = dude._x + random(50) - 25; v2._y = dude._y - random(50); v2.home = dude._y + random(120) - 25; v2.yvel = -random(20); v2.xvel = random(40) - 20; var v6 = random(2); if (v6 == 1) { v2._xscale = -100; } v2.onEnterFrame = function () { if (!pausy) { this._x += this.xvel; this._y += this.yvel; this.yvel += GRAV; this.xvel *= 0.9; this.angle = Math.atan2(this.yvel, this.xvel); this.finale = this.angle * 180 / Math.PI; this._rotation = this.finale - 90; if (this._y >= this.home) { var v2 = Math.abs(this.yvel); if (v2 < 5) { this.yvel = 0; this._rotation = 0; delete this.onEnterFrame; this.cacheAsBitmap = true; } this._y = this.home; this.yvel = -this.yvel * 0.4; } } }; ++v5; } } if (pulling) { dude._y = this._ymouse; if (dude._y < 55) { dude._y = 55; } if (dude._y > 55 + BANDLENGTH) { dude._y = 55 + BANDLENGTH; } } if (launched) { who.angle = Math.atan2(who.yvel, who.xvel); who.finale = who.angle * 180 / Math.PI; if (who.finale == 0 || who.finale == 180) { ++who.finale; } who.goalrot = who.finale + 90; var v11 = who.goalrot - who._rotation; who._rotation += v11; if (who._x < -200) { who._x = -200; who.xvel *= -1; } if (who._x > 180) { who._x = 180; who.xvel *= -1; } who.virtx = this._x + who._x; who.virty = this._y + who._y; v5 = 0; while (v5 < beanarray.length) { var v4 = beanarray[v5]; if (v4.hitTest(who.hitarea)) { ++who.beans; ding.start(); updateHud(); v4.unloadMovie(); v4.removeMovieClip(); } ++v5; } ++airtime; MONEY += MONEYMULT; updateHud(); } } function centerOn(who) { if (launched) { this.goaly = -who._y + Stage.height / 2 - who.yvel; var v5 = goaly - this._y; this._y += v5 / 1.5; if (who._y < -10500) { who._y = -10500; this._y = -who._y + Stage.height / 2; who.yvel = -20; _root.hud._visible = false; if (!ending) { stopAllSounds(); endsong.start(); endsong.setVolume(50); who.guts.gotoAndStop('die'); ending = true; _root.attachMovie('endscene', 'endscene', 99811112); } } } else { if (!firsttime) { a = this.createEmptyMovieClip('bands', nextup + 2); } else { firsttime = false; a = this.createEmptyMovieClip('bands', 999); } a.lineStyle(7, 159707); a.moveTo(-190, 55); a.lineTo(dude._x, dude._y + 5); a.moveTo(140, 55); a.lineTo(dude._x, dude._y + 5); var v4 = new flash.filters.GlowFilter(13158, 1, 7, 7, 6); a.filters = [v4]; } } function updateHud() { _root.hud.bamt.text = '= ' + dude.beans; var v2 = Math.floor(MONEY * 100) / 100; _root.hud.money.text = '$' + v2; } function controls(who) { if (launched) { if (Key.isDown(A) || Key.isDown(L)) { who.xvel -= who.speed; } if (Key.isDown(D) || Key.isDown(R)) { who.xvel += who.speed; } if (!Key.isDown(S)) { sup = true; } if (Key.isDown(S) && sup) { sup = false; boost(who); } } } function boost(who) { if (who.beans > 0 && launched && !splatted) { var which = random(3); var pla = eval('fart' + which); trace('fart' + which); pla.start(); who.yvel -= BEANSTRENGTH; if (who.yvel > -BEANSTRENGTH) { who.yvel = -BEANSTRENGTH; } --who.beans; var f = this.attachMovie('fart', 'fart' + fcv, fcv + 77722); ++fcv; f._x = who._x; f._y = who._y; updateHud(); } } fart0 = new Sound(this); fart0.attachSound('fart0'); fart1 = new Sound(this); fart1.attachSound('fart1'); fart2 = new Sound(this); fart2.attachSound('fart2'); ding = new Sound(this); ding.attachSound('ding'); endsong = new Sound(this); endsong.attachSound('endsong'); this.createEmptyMovieClip('mainsound', -100); mainsound.mingle = new Sound(mainsound); mainsound.mingle.attachSound('mingle'); mainsound.mingle.start(0, 999); mainsound.mingle.setVolume(20); BANDLENGTH = 100; BEANSTRENGTH = 15; BANDSTRENGTH = 10; STARTBEANS = 0; MONEYMULT = 0.05; firsttime = true; MONEY = 5; DAYS = 1; splatcv = 0; init(); this.onEnterFrame = function () { if (!splatted) { if (!pausy) { phys(dude); controls(dude); centerOn(dude); } } else { ++counter; if (counter >= 100) { if (!storeup) { ++DAYS; _root.hud._visible = false; storeup = true; var v2 = _root.attachMovie('store', 'store', 8889999); v2.monies = MONEY; v2.numdays = DAYS; v2._x = 27; v2._y = 25; } } } }; } } movieClip 166 { }




http://swfchan.com/19/90208/info.shtml
Created: 28/3 -2019 13:51:26 Last modified: 28/3 -2019 13:51:26 Server time: 13/05 -2024 02:06:38