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/65566862?noj=FRM65566862-15DC" width="1" height="1"></div>

Crash-N-Smash-Derby.swf

This is the info page for
Flash #113793

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


ActionScript [AS1/AS2]
Combined Code
movieClip 6 grooveBg { } movieClip 17 BoundingBox { } movieClip 18 DataProvider { #initclip Object.registerClass('DataProvider', mx.controls.listclasses.DataProvider); #endinitclip frame 1 { stop(); } } movieClip 19 DataSelector { #initclip Object.registerClass('DataSelector', mx.controls.listclasses.DataSelector); #endinitclip frame 1 { stop(); } } movieClip 20 Defaults { #initclip Object.registerClass('Defaults', mx.skins.halo.Defaults); #endinitclip } movieClip 21 UIObjectExtensions { #initclip Object.registerClass('UIObjectExtensions', mx.core.ext.UIObjectExtensions); #endinitclip } movieClip 22 UIObject { #initclip Object.registerClass('UIObject', mx.core.UIObject); #endinitclip frame 1 { stop(); } } button 25 { on (keyPress '<Tab>') { this.tabHandler(); } } movieClip 26 { #initclip Object.registerClass('FocusManager', mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, 'focusManager', mx.managers.DepthManager.highestDepth--); } #endinitclip frame 1 { } } movieClip 27 FocusRect { #initclip Object.registerClass('FocusRect', mx.skins.halo.FocusRect); #endinitclip } movieClip 28 FocusManager { #initclip Object.registerClass('FocusManager', mx.managers.FocusManager); #endinitclip frame 1 { stop(); } } movieClip 29 UIComponentExtensions { #initclip Object.registerClass('UIComponentExtensions', mx.core.ext.UIComponentExtensions); #endinitclip } movieClip 30 UIComponent { #initclip Object.registerClass('UIComponent', mx.core.UIComponent); #endinitclip frame 1 { stop(); } } movieClip 31 SelectableRow { #initclip Object.registerClass('SelectableRow', mx.controls.listclasses.SelectableRow); #endinitclip frame 1 { stop(); } } movieClip 33 BrdrShdw { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'shadowColor'); } } movieClip 35 BrdrFace { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'buttonColor'); } } movieClip 36 SimpleButtonDown { } movieClip 38 BrdrBlk { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'borderColor'); } } movieClip 40 BrdrHilght { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'highlightColor'); } } movieClip 41 SimpleButtonIn { } movieClip 42 SimpleButtonUp { } movieClip 43 SimpleButton { #initclip Object.registerClass('SimpleButton', mx.controls.SimpleButton); #endinitclip frame 1 { stop(); } } movieClip 44 Border { #initclip Object.registerClass('Border', mx.skins.Border); #endinitclip frame 1 { stop(); } } movieClip 45 RectBorder { #initclip mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder)); Object.registerClass('RectBorder', mx.skins.halo.RectBorder); #endinitclip frame 1 { stop(); } } movieClip 46 ButtonSkin { #initclip Object.registerClass('ButtonSkin', mx.skins.halo.ButtonSkin); #endinitclip } movieClip 47 Button { #initclip Object.registerClass('Button', mx.controls.Button); #endinitclip frame 1 { stop(); } instance of movieClip 43 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 48 CustomBorder { #initclip Object.registerClass('CustomBorder', mx.skins.CustomBorder); mx.skins.SkinElement.registerElement('CustomBorder', mx.skins.CustomBorder); #endinitclip frame 1 { } } movieClip 51 ScrollTrack { } movieClip 58 ScrollDownArrowDisabled { } movieClip 60 ScrollThemeColor1 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 62 ScrollThemeColor2 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 63 ScrollDownArrowDown { } movieClip 64 ScrollDownArrowOver { } movieClip 65 ScrollDownArrowUp { } movieClip 71 ScrollThumbBottomDisabled { } movieClip 73 ThumbThemeColor1 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 75 ThumbThemeColor3 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 76 ScrollThumbBottomDown { } movieClip 77 ScrollThumbBottomOver { } movieClip 78 ScrollThumbBottomUp { } movieClip 80 ScrollThumbGripDisabled { } movieClip 82 ThumbThemeColor2 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 83 ScrollThumbGripDown { } movieClip 84 ScrollThumbGripOver { } movieClip 85 ScrollThumbGripUp { } movieClip 87 ScrollThumbMiddleDisabled { } movieClip 88 ScrollThumbMiddleDown { } movieClip 89 { } movieClip 91 { } movieClip 92 ScrollThumbMiddleOver { } movieClip 93 ScrollThumbMiddleUp { } movieClip 94 ScrollThumbTopDisabled { } movieClip 95 ScrollThumbTopDown { } movieClip 96 ScrollThumbTopOver { } movieClip 97 ScrollThumbTopUp { } movieClip 98 ScrollTrackDisabled { } movieClip 99 ScrollUpArrowDisabled { } movieClip 100 ScrollUpArrowDown { } movieClip 101 ScrollUpArrowOver { } movieClip 102 ScrollUpArrowUp { } movieClip 103 BtnDownArrow { #initclip Object.registerClass('BtnDownArrow', mx.controls.SimpleButton); #endinitclip } movieClip 104 BtnUpArrow { #initclip Object.registerClass('BtnUpArrow', mx.controls.SimpleButton); #endinitclip } movieClip 105 ScrollBarAssets { } movieClip 106 HScrollBar { #initclip Object.registerClass('HScrollBar', mx.controls.HScrollBar); #endinitclip frame 1 { stop(); } instance of movieClip 47 Button { onClipEvent (initialize) { icon = ''; label = 'Button'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 43 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 107 VScrollBar { #initclip Object.registerClass('VScrollBar', mx.controls.VScrollBar); #endinitclip frame 1 { stop(); } instance of movieClip 47 Button { onClipEvent (initialize) { icon = ''; label = 'Button'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 43 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 108 View { #initclip Object.registerClass('View', mx.core.View); #endinitclip frame 1 { stop(); } } movieClip 109 ScrollView { #initclip Object.registerClass('ScrollView', mx.core.ScrollView); #endinitclip frame 1 { stop(); } instance of movieClip 106 HScrollBar { onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 107 VScrollBar { onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 110 ScrollSelectList { #initclip Object.registerClass('ScrollSelectList', mx.controls.listclasses.ScrollSelectList); #endinitclip frame 1 { stop(); } } movieClip 111 List { #initclip Object.registerClass('List', mx.controls.List); #endinitclip frame 1 { stop(); } } button 146 { on (release) { com.newgrounds.API.loadNewgrounds(); } } movieClip 152 { frame 1 { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (865 % 511) * true; if (!'') { } else {} return ; } var  = -67 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  += 374;  -= 28; var eval( != 287) = true;  -= 514;  += 348;  += 608;  -= 521;  -= 268;  -= 160;  -= 678;  += 737;  += 747;  -= 291;  += 270;  += 302;  -= 204;  -= 753;  += 398;  -= 819;  -= 748; } } } } } } } } } } } } } } } } } } } } } } } } } } ''; 1; !''; eval(true); } } movieClip 153 { frame 11 { gotoAndPlay(1); } } movieClip 154 Flash Ad (NewgroundsAPI) { #initclip Object.registerClass('Flash Ad (NewgroundsAPI)', com.newgrounds.components.FlashAd); #endinitclip } frame 1 { function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; var pv; mb = '__mochibot__'; mbc = 'mochibot.com'; g = _global ? _global : _level0._root; if (g[mb + swfid]) { return g[mb + swfid]; } s = System.security; x = mc._root.getSWFVersion; fv = x ? mc.getSWFVersion() : (_global ? 6 : 5); if (!s) { s = {}; } sb = s.sandboxType; if (sb == 'localWithFile') { return null; } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } pv = (fv == 5) ? /:$version : System.capabilities.version; u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : ''); lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv); g[mb + 'level'] = lv; if (fv == 5) { res = '_level' + lv; if (!eval(res)) { loadMovieNum(u, lv); } return res; } res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); return res; } __com_mochibot__('9a13f67b', this, 10301, true); } frame 1 { function sitelock(urls_allowed) { lock = true; domain_parts = _url.split('://'); real_domain = domain_parts[1].split('/'); domain.text = real_domain[0]; for (x in urls_allowed) { if (urls_allowed[x] == real_domain[0]) { lock = false; } } if (lock) { ad._visible = false; } } var percentageLoaded; var bytesLoaded; var bytesTotal; stop(); invisibleButton_mc.onPress = function () { getURL('http://www.BootyArcade.com', '_blank'); }; domain_parts = _url.split('://'); real_domain = domain_parts[1].split('/'); domain.text = real_domain[0]; urls_allowed = ['www.armorgames.com', 'cache.armorgames.com', 'www.freeonlinegames.com', 'freeonlinegames.com', 'www.8agame.com', '3.xiaoyouxi.cn', 'files.game.com.cn', 'files.game.asia']; sitelock(urls_allowed); onEnterFrame = function () { bytesLoaded = _root.getBytesLoaded(); bytesTotal = _root.getBytesTotal(); percentageLoaded = (bytesLoaded / bytesTotal) * 100; _root.myPreloader.preloader_mc.info_txt.text = Math.round(percentageLoaded) + '%'; if (percentageLoaded >= 100) { _root.gotoAndPlay('lblgame'); delete this.onEnterFrame; } }; } // unknown tag 88 length 64 movieClip 178 { } movieClip 181 { } movieClip 182 { instance of movieClip 181 { onClipEvent (load) { this.onPress = function () { _root.startURL('http://www.bootyarcade.com'); }; } } } movieClip 185 { } // unknown tag 88 length 64 movieClip 188 { } movieClip 190 { instance of movieClip 185 { onClipEvent (load) { this.onPress = function () { _root.startURL('http://www.bootyarcade.com'); }; } } frame 90 { stop(); } } movieClip 198 { frame 1 { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (2892 % 511) * true; if (!'') { } else {} return ; } var  = -160 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  += 121; continue; if ( != 713) break; for (;;) {  += 93; if ( != 540) break;  += 246; if ( == 922) {  -= 382; } if ( != 983) goto 387;  -= 147; label 387: if ( != 724) break;  += 208; for (;;) { } if ( == 886) {  += 89; } if ( == 786) {  -= 786; }  += 713; if (!true) {  += 421; for (;;) { } }  += 632;  += 170;  -= 505;  -= 131;  += 308; var  = 1;  -= 763;  -= 219;  -= 263;  += 510;  += 775;  -= 327;  += 46;  -= 421;  += 250; } } } } } } } } } } } } } } } } } } } } } } } } } } } } }  != 177; true; '';  != 173; eval( == 174); true; } } movieClip 200 { frame 10 { stop(); } } movieClip 202 { frame 37 { _parent.setGotoFrame('done'); stop(); } } movieClip 204 { } movieClip 206 NewgroundsAPIAsset_Medal_Icon_Placeholder { } movieClip 214 NewgroundsAPIAsset_Medal_Popup { frame 1 { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (737 % 511) * true; if (!'') { } else {} return ; } var  = 9 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  += 132; continue; if ( == 894) { for (;;) {  -= 891; var eval( != 235) = true; if ( == 434) {  += 345; // An attempt to read a value from empty stack if (!undefined) { break; }  += 29; } if ( == 268) {  += 166; // An attempt to read a value from empty stack !undefined; } if ( != 465) break;  += 77; if ( != 313) break;  += 206; if ( != 718) goto 523;  -= 422; label 523: if ( != 542) goto 573;  -= 355; label 573: if ( == 367) { for (;;) {  -= 135; } } if ( == 561) {  -= 235; }  -= 105;  -= 669;  += 29;  -= 171;  -= 128;  += 953;  -= 490;  += 556;  -= 54;  -= 408;  += 401;  += 185;  += 252;  += 541;  += 568;  -= 293;  -= 318;  -= 688;  -= 425; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }  != 235; true; } frame 2 { medal.attachIcon(icon); } frame 10 { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (2142 % 511) * true; if (!'') { } else {} return ; } var  = 78 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( != 176) break;  += 609; if ( != 293) break; for (;;) {  += 436; if ( == 306) {  += 231; } if ( == 832) {  += 5; } if ( != 890) goto 460;  += 93; label 460:  += 176;  += 286;  -= 784;  += 356;  += 909;  -= 455;  += 716;  -= 447;  -= 25;  += 515;  += 342;  += 890;  -= 600;  -= 210; var eval( != 180) = true;  -= 347;  -= 25;  -= 224;  -= 252;  -= 791;  -= 170;  -= 121;  -= 150;  -= 549;  -= 124;  -= 859; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } true;  == 361; true; ''; ''; eval(1); } frame 21 { this.removeMovieClip(); _visible = false; stop(); } } movieClip 220 NewgroundsAPIAsset_Login_Warning { frame 1 { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (2309 % 511) * true; if (!'') { } else {} return ; } var  = 253 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  -= 105; continue; if ( == 39) { for (;;) {  += 855; if ( == 413) {  += 520; if (!'') { break; }  -= 739; } if ( == 194) {  += 184; } if ( != 913) break;  -= 889; if ( != 482) break;  -= 443; var eval(true) = ''; if ( != 894) goto 503;  -= 669; label 503: if ( != 954) goto 564;  -= 472; label 564:  += 117;  += 423;  += 503;  -= 308;  += 574;  -= 739;  += 231;  -= 419;  += 63;  -= 24;  += 346;  -= 46;  += 151;  += 275;  -= 2;  -= 338; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }  != 518; true; } frame 10 { stop(); } frame 21 { this.removeMovieClip(); _visible = false; stop(); } } movieClip 223 NewgroundsAPIAsset_Connection_Error { frame 1 { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (1793 % 511) * true; if (!'') { } else {} return ; } var  = 705 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  -= 568; continue; if ( == 764) { for (;;) {  += 3; if ( != 920) break;  -= 156; if ( == 28) {  += 917; } if ( == 698) {  -= 334; } if ( != 277) goto 440;  += 421; label 440:  -= 509; if ( != 537) break; for (;;) {  += 266; } if ( == 364) {  += 482; for (;;) { } } if ( == 725) {  += 39; }  += 216; for (;;) {  -= 595; var eval(eval(true ::: !true)) =  != 151;  -= 616; }  -= 339;  += 62;  -= 73;  -= 724;  += 346;  -= 468; } } } } } } } } } } } } } } } } } } } } } } }  != 965; true; } frame 10 { stop(); } frame 21 { this.removeMovieClip(); _visible = false; stop(); } } movieClip 225 { } movieClip 227 { } movieClip 229 { } movieClip 231 { } movieClip 233 { } movieClip 235 { } movieClip 237 { } movieClip 239 { } movieClip 241 { } movieClip 243 { } movieClip 244 NewgroundsAPIAsset_big_popup_background { frame 1 { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (827 % 511) * true; if (!'') { } else {} return ; } var  = 669 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  -= 86; continue; if ( == 4) { for (;;) {  += 812; if ( == 545) {  += 156; if (!true) { break; }  -= 450; } if ( == 497) {  -= 229; } if ( == 702) {  -= 400; } if ( != 701) break;  -= 450; if ( == 899) {  += 77; } if ( == 816) {  -= 377; }  += 565; if ( == 251) {  -= 221; } for (;;) { if ( != 439) goto 814;  -= 116; } label 814:  -= 534;  += 234;  -= 553;  += 145;  -= 96;  += 96;  += 666;  += 162;  += 199;  += 165;  -= 47;  -= 105;  += 166; var  = 1;  -= 111;  -= 30;  += 364;  -= 18;  -= 779; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }  != 985; true; } } button 248 { on (release) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (2726 % 511) * true; if (!'') { } else {} return ; } var  = 118 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 289) {  += 703; true; } if ( != 628) break; for (;;) {  -= 63; // An attempt to read a value from empty stack if (!undefined) { goto 235; }  += 53; label 235: if ( == 859) {  += 37; // An attempt to read a value from empty stack !undefined; } if ( == 896) {  -= 852; // An attempt to read a value from empty stack if (!undefined) { goto 369; }  += 682; label 369: } if ( == 618) {  -= 553; } if ( == 279) {  -= 15; } if ( == 19) {  += 840; // An attempt to read a value from empty stack eval(undefined); } if ( == 726) {  += 107; }  -= 319; if ( != 732) goto 715;  -= 280; for (;;) { label 715:  -= 74; }  += 115;  += 315;  += 448;  += 215;  -= 481;  -= 40;  -= 136;  += 357;  += 53;  -= 355; var eval(true) = true;  -= 221;  -= 732;  += 183;  -= 21;  -= 243;  += 530;  += 682;  -= 833; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }  != 827; true; ''; ''; 1; } } button 254 { on (release) { getURL(official_version_url, '_blank'); } } movieClip 256 NewgroundsAsset_New_Version_Available { frame 1 { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (980 % 511) * true; if (!'') { } else {} return ; } var  = -291 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 178) {  += 237; true; } if ( != 100) break; for (;;) {  += 80; // An attempt to read a value from empty stack if (!undefined) { goto 235; }  += 713; label 235: if ( == 893) {  -= 86; } if ( == 844) {  -= 744; // An attempt to read a value from empty stack !undefined; } if ( == 678) {  -= 541; // An attempt to read a value from empty stack if (!undefined) { goto 424; }  -= 116; label 424: } if ( == 111) {  += 96; } if ( == 121) {  += 723; // An attempt to read a value from empty stack eval(undefined); } if ( == 993) {  -= 947; // An attempt to read a value from empty stack // An attempt to read a value from empty stack var eval(undefined) = undefined; }  += 553; if ( == 21) {  += 317; for (;;) { } }  += 419;  += 713;  += 16;  -= 541;  += 471;  -= 807;  += 75;  -= 332;  -= 116; } } } } } } } } } } } } } } } } } } } } } } }  != 574; ''; 1; true; ''; } } button 257 { on (release) { getURL(official_version_url, '_blank'); } } movieClip 261 NewgroundsAsset_Illegal_Host { frame 1 { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (2307 % 511) * true; if (!'') { } else {} return ; } var  = -142 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  += 383; continue; if ( == 505) { for (;;) {  += 45; if ( != 418) break;  += 276; if ( == 661) {  -= 104; var eval( != 121) = !true; } if ( == 134) {  += 305; } if ( != 439) goto 487;  += 176; label 487:  += 243;  += 6; for (;;) {  -= 560; }  += 388;  += 359;  += 409;  -= 527;  += 561;  -= 903;  -= 615;  -= 315;  += 89;  -= 203; } } } } } } } } } } } } } } } } } } } } } } } }  != 121; true; } } movieClip 262 API Connector (NewgroundsAPI) { #initclip Object.registerClass('API Connector (NewgroundsAPI)', com.newgrounds.components.APIConnector); #endinitclip frame 20 { _visible = false; } } instance of movieClip 262 API Connector (NewgroundsAPI) { onClipEvent (construct) { api_id = '13192:24JtLCMb'; encryption_key = 'U9nv6itz4kgR7BSdalbc9EB0UFfmPf7h'; version = ''; fake_session = true; debug = true; error_screens = true; medal_popups = true; } } instance ad of movieClip 154 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } movieClip 267 { } movieClip 1569 __Packages.Song { #initclip if (!_global.Song) { var v1 = function (e, a, t, m, g, au) { this.earl = e; this.artist = a; this.track = t; this.musicId = m; this.genre = g; this.authorUrl = au; }; _global.Song = v1; var v2 = v1.prototype; ASSetPropFlags(_global.Song.prototype, null, 1); } #endinitclip } movieClip 1570 __Packages.Car { #initclip if (!_global.Car) { var v1 = function () { this.speed = Math.random() * (Car.carSpeedMax - Car.carSpeedMin) + Car.carSpeedMin; this.turnMax = Car.PI2 / 64; this.turnDirection = Math.ceil(Math.random() * 2); this.healthFront = this.healthFrontMax; this.healthBack = this.healthBackMax; this.healthLeft = this.healthLeftMax; this.healthRight = this.healthRightMax; }; _global.Car = v1; var v2 = v1.prototype; v2.drive = function (Void) {}; v2.turn = function (Void) { this.heading += Math.random() * this.turnMax * 2 - this.turnMax; if (this.heading < 0) { this.heading += Car.PI2; } else { if (this.heading >= Car.PI2) { this.heading %= Car.PI2; } } }; v2.turn2 = function (Void) { if (this.turnDirection == 0) { this.turnDirection = Math.ceil(Math.random() * 2); } switch (this.turnDirection) { case 1: this.heading -= this.turnMax; if (this.heading < 0) { this.heading += Car.PI2; } break; case 2: this.heading += this.turnMax; if (this.heading >= Car.PI2) { this.heading %= Car.PI2; } break; case 3: this.heading -= this.turnMax * 4; if (this.heading < 0) { this.heading += Car.PI2 * 4; } break; case 4: this.heading += this.turnMax * 4; if (this.heading >= Car.PI2) { this.heading = (this.heading % Car.PI2) * 4; } } }; v2.changeSpeed = function (Void) { this.speed = Math.random() * (Car.carSpeedMax - Car.carSpeedMin) + Car.carSpeedMin; }; v2.chase = function (targetX, targetY) { var v2 = targetX - this.posX; var v3 = targetY - this.posY; if (v2 > 0) { this.theta = Math.atan(v3 / v2); } else { this.theta = 3.141593 + Math.atan(v3 / v2); } if (this.theta < 0) { this.theta += Car.PI2; } this.thetaDiff = this.heading - this.theta; if (this.thetaDiff < 0) { if (this.thetaDiff > -3.141593) { if (this.thetaDiff > -this.turnMax) { this.heading -= this.thetaDiff; } else { this.heading += this.turnMax; } } else { this.heading -= this.turnMax; } } else { if (this.thetaDiff > 0) { if (this.thetaDiff > 3.141593) { this.heading += this.turnMax; } else { if (this.turnMax > this.thetaDiff) { this.heading -= this.thetaDiff; } else { this.heading -= this.turnMax; } } } } if (this.heading < 0) { this.heading += Car.PI2; } else { if (this.heading >= Car.PI2) { this.heading %= Car.PI2; } } }; v2.changeCState = function (Void) { if (Math.random() < this.propensityWander) { this.cState = this.cStateCount - 1; } else { this.cState = Math.floor(Math.random() * this.cStateCount); } }; v1.RAD2DEG = 57.29578; v1.PI2 = 6.283185; v1.carSpeedMin = 1.5; v1.carSpeedMax = 5; v2.cStateCount = 4; v2.propensityWander = 0.6; v2.velocityX = 0; v2.velocityY = 0; v2.speedX = 0; v2.speedY = 0; v2.speedMax = 4; v2.speedMaxReverse = 3; v2.frontX = 73; v2.frontSideX = 73; v2.frontSideY = 19; v2.backSideX = -17; v2.backSideY = 19; v2.frontSideX2 = 69; v2.frontSideY2 = 19; v2.backSideX2 = -13; v2.backSideY2 = 19; v2.frontSideX3 = 73; v2.frontSideY3 = 19; v2.backSideX3 = -17; v2.backSideY3 = 19; v2.lookAheadX = 200; v2.healthFrontMax = 150; v2.healthBackMax = 100; v2.healthLeftMax = 100; v2.healthRightMax = 100; v2.shieldFront = 2; v2.shieldLeft = 1; v2.shieldRight = 1; v2.shieldBack = 1; v2.velocityHeading = 0; v2.velocityTheta = 0; v2.acceleration = 0.4; v2.frictionRolling = 0.05; v2.tireGrip = 0.25; v2.velocityLateral = 0; v2.mass = 50; v2.thrust = 2; v2.isAlive = true; v2.cState = 0; v2.pointValue = 1000; v2.carExplodeCountdown = 48; v2.destroyed = false; v2.clearSmoke = false; v2.blackSmoke = false; ASSetPropFlags(_global.Car.prototype, null, 1); } #endinitclip } movieClip 1571 __Packages.CarPlayer2 { #initclip if (!_global.CarPlayer2) { var v1 = function () { super(); this.speed = 0; this.turnMax = (Car.PI2 / 64) * 1.2; this.turnDirection = Math.ceil(Math.random() * 2); this.thrustDiag = this.thrust * Math.cos(CarPlayer2.PIQUARTER); this.healthFront = this.healthFrontMax; this.healthBack = this.healthBackMax; this.healthLeft = this.healthLeftMax; this.healthRight = this.healthRightMax; }; _global.CarPlayer2 = v1; _global.CarPlayer2 extends Car; var v2 = v1.prototype; v2.drive = function (Void) {}; v2.turn = function (Void) { this.heading += Math.random() * this.turnMax * 2 - this.turnMax; }; v2.turn2 = function (Void) { if (this.turnDirection == 0) { this.turnDirection = Math.ceil(Math.random() * 2); } switch (this.turnDirection) { case 1: this.heading -= this.turnMax; break; case 2: this.heading += this.turnMax; } }; v2.changeSpeed = function (Void) { this.speed = Math.random() * (Car.carSpeedMax - Car.carSpeedMin) + Car.carSpeedMin; }; v1.RAD2DEG = 57.29578; v1.PI2 = 6.283185; v1.PIQUARTER = 0.7853982000000001; v2.friction = 0.75; v2.airFrictionCoefficient = 3; v2.horsePower = 0; v2.speedDiff = 0; v2.velocityX = 0; v2.velocityY = 0; v2.vX2 = 0; v2.vY2 = 0; v2.diffX = 0; v2.diffY = 0; v2.diffHeading = 0; v2.mass = 65; v2.speedX = 0; v2.speedY = 0; v2.speedMax = 12; v2.speedMaxReverse = -7; v2.velocityHeading = 0; v2.velocityTheta = 0; v2.acceleration = 0.65; v2.frictionRolling = 0.07500000000000001; v2.tireGrip = 0.675; v2.velocityLateral = 0; v2.thrust = 2; v2.frontX = 73; v2.frontY = 0; v2.backX = -17; v2.backY = 0; v2.frontSideX = 73; v2.frontSideY = 19; v2.backSideX = -17; v2.backSideY = 19; v2.frontSideX2 = 53; v2.frontSideY2 = 19; v2.backSideX2 = 3; v2.backSideY2 = 19; v2.frontSideX3 = 33; v2.frontSideY3 = -19; v2.backSideX3 = -17; v2.backSideY3 = -19; v2.healthFrontMax = 225; v2.healthBackMax = 150; v2.healthLeftMax = 150; v2.healthRightMax = 150; v2.shieldFront = 5; v2.shieldLeft = 3; v2.shieldRight = 3; v2.shieldBack = 3; v2.baseShieldFront = 5; v2.baseShieldLeft = 3; v2.baseShieldRight = 3; v2.baseShieldBack = 3; v2.baseSpeedMax = 12; v2.baseSpeedMaxReverse = -7; v2.baseAcceleration = 0.65; v2.baseMass = 65; ASSetPropFlags(_global.CarPlayer2.prototype, null, 1); } #endinitclip } movieClip 1572 __Packages.CarA { #initclip if (!_global.CarA) { var v1 = function () { super(); this.speed = Math.random() * (Car.carSpeedMax - Car.carSpeedMin) + Car.carSpeedMin; this.turnMax = Car.PI2 / 64; this.turnDirection = Math.ceil(Math.random() * 2); this.healthFront = this.healthFrontMax; this.healthBack = this.healthBackMax; this.healthLeft = this.healthLeftMax; this.healthRight = this.healthRightMax; }; _global.CarA = v1; _global.CarA extends Car; var v2 = v1.prototype; v2.drive = function (Void) {}; v2.turn = function (Void) { this.heading += Math.random() * this.turnMax * 2 - this.turnMax; if (this.heading < 0) { this.heading += Car.PI2; } else { if (this.heading >= Car.PI2) { this.heading %= Car.PI2; } } }; v2.turn2 = function (Void) { if (this.turnDirection == 0) { this.turnDirection = Math.ceil(Math.random() * 2); } switch (this.turnDirection) { case 1: this.heading -= this.turnMax; if (this.heading < 0) { this.heading += Car.PI2; } break; case 2: this.heading += this.turnMax; if (this.heading >= Car.PI2) { this.heading %= Car.PI2; } break; case 3: this.heading -= this.turnMax * 4; if (this.heading < 0) { this.heading += Car.PI2 * 4; } break; case 4: this.heading += this.turnMax * 4; if (this.heading >= Car.PI2) { this.heading = (this.heading % Car.PI2) * 4; } break; case 5: } }; v2.changeSpeed = function (Void) { this.speed = Math.random() * (Car.carSpeedMax - Car.carSpeedMin) + Car.carSpeedMin; }; v2.chase = function (targetX, targetY) { var v2 = targetX - this.posX; var v3 = targetY - this.posY; if (v2 > 0) { this.theta = Math.atan(v3 / v2); } else { this.theta = 3.141593 + Math.atan(v3 / v2); } if (this.theta < 0) { this.theta += Car.PI2; } this.thetaDiff = this.heading - this.theta; if (this.thetaDiff < 0) { if (this.thetaDiff > -3.141593) { if (this.thetaDiff > -this.turnMax) { this.heading -= this.thetaDiff; } else { this.heading += this.turnMax; } } else { this.heading -= this.turnMax; } } else { if (this.thetaDiff > 0) { if (this.thetaDiff > 3.141593) { this.heading += this.turnMax; } else { if (this.turnMax > this.thetaDiff) { this.heading -= this.thetaDiff; } else { this.heading -= this.turnMax; } } } } if (this.heading < 0) { this.heading += Car.PI2; } else { if (this.heading >= Car.PI2) { this.heading %= Car.PI2; } } }; v2.changeCState = function (Void) { if (Math.random() < this.propensityWander) { this.cState = this.cStateCount - 1; } else { this.cState = Math.floor(Math.random() * this.cStateCount); } }; v1.RAD2DEG = 57.29578; v1.PI2 = 6.283185; v1.carSpeedMin = 1.5; v1.carSpeedMax = 5; v2.cStateCount = 4; v2.propensityWander = 0.6; v2.velocityX = 0; v2.velocityY = 0; v2.speedX = 0; v2.speedY = 0; v2.speedMax = 6; v2.speedMaxReverse = 5; v2.pointValue = 1250; v2.frontX = 73; v2.frontY = 0; v2.backX = -17; v2.backY = 0; v2.frontSideX = 73; v2.frontSideY = 19; v2.backSideX = -17; v2.backSideY = 19; v2.frontSideX2 = 53; v2.frontSideY2 = 19; v2.backSideX2 = 3; v2.backSideY2 = 19; v2.frontSideX3 = 33; v2.frontSideY3 = -19; v2.backSideX3 = -17; v2.backSideY3 = -19; v2.lookAheadX = 200; v2.healthFrontMax = 120; v2.healthBackMax = 70; v2.healthLeftMax = 70; v2.healthRightMax = 70; v2.shieldFront = 2; v2.shieldLeft = 1; v2.shieldRight = 1; v2.shieldBack = 1; v2.velocityHeading = 0; v2.velocityTheta = 0; v2.acceleration = 0.4; v2.frictionRolling = 0.05; v2.tireGrip = 0.25; v2.velocityLateral = 0; v2.mass = 50; v2.thrust = 2; v2.isAlive = true; v2.destroyed = false; ASSetPropFlags(_global.CarA.prototype, null, 1); } #endinitclip } movieClip 1573 __Packages.CarPlayer4 { #initclip if (!_global.CarPlayer4) { var v1 = function () { super(); this.speed = 0; this.turnMax = (Car.PI2 / 64) * 1.6; this.turnDirection = Math.ceil(Math.random() * 2); this.thrustDiag = this.thrust * Math.cos(CarPlayer4.PIQUARTER); this.healthFront = this.healthFrontMax; this.healthBack = this.healthBackMax; this.healthLeft = this.healthLeftMax; this.healthRight = this.healthRightMax; }; _global.CarPlayer4 = v1; _global.CarPlayer4 extends Car; var v2 = v1.prototype; v2.drive = function (Void) {}; v2.turn = function (Void) { this.heading += Math.random() * this.turnMax * 2 - this.turnMax; }; v2.turn2 = function (Void) { if (this.turnDirection == 0) { this.turnDirection = Math.ceil(Math.random() * 2); } switch (this.turnDirection) { case 1: this.heading -= this.turnMax; break; case 2: this.heading += this.turnMax; } }; v2.changeSpeed = function (Void) { this.speed = Math.random() * (Car.carSpeedMax - Car.carSpeedMin) + Car.carSpeedMin; }; v1.RAD2DEG = 57.29578; v1.PI2 = 6.283185; v1.PIQUARTER = 0.7853982000000001; v2.friction = 1.25; v2.airFrictionCoefficient = 5; v2.horsePower = 0; v2.speedDiff = 0; v2.velocityX = 0; v2.velocityY = 0; v2.vX2 = 0; v2.vY2 = 0; v2.diffX = 0; v2.diffY = 0; v2.diffHeading = 0; v2.mass = 75; v2.speedX = 0; v2.speedY = 0; v2.speedMax = 16; v2.speedMaxReverse = -10; v2.velocityHeading = 0; v2.velocityTheta = 0; v2.acceleration = 1; v2.frictionRolling = 0.125; v2.tireGrip = 1.125; v2.velocityLateral = 0; v2.thrust = 2; v2.frontX = 73; v2.frontY = 0; v2.backX = -17; v2.backY = 0; v2.frontSideX = 73; v2.frontSideY = 19; v2.backSideX = -17; v2.backSideY = 19; v2.frontSideX2 = 53; v2.frontSideY2 = 19; v2.backSideX2 = 3; v2.backSideY2 = 19; v2.frontSideX3 = 33; v2.frontSideY3 = -19; v2.backSideX3 = -17; v2.backSideY3 = -19; v2.healthFrontMax = 315; v2.healthBackMax = 210; v2.healthLeftMax = 210; v2.healthRightMax = 210; v2.shieldFront = 7; v2.shieldLeft = 4; v2.shieldRight = 4; v2.shieldBack = 4; v2.baseShieldFront = 7; v2.baseShieldLeft = 4; v2.baseShieldRight = 4; v2.baseShieldBack = 4; v2.baseSpeedMax = 16; v2.baseSpeedMaxReverse = -10; v2.baseAcceleration = 1; v2.baseMass = 75; ASSetPropFlags(_global.CarPlayer4.prototype, null, 1); } #endinitclip } movieClip 1574 __Packages.CarB { #initclip if (!_global.CarB) { var v1 = function () { super(); this.speed = Math.random() * (Car.carSpeedMax - Car.carSpeedMin) + Car.carSpeedMin; this.turnMax = Car.PI2 / 64; this.turnDirection = Math.ceil(Math.random() * 2); this.healthFront = this.healthFrontMax; this.healthBack = this.healthBackMax; this.healthLeft = this.healthLeftMax; this.healthRight = this.healthRightMax; }; _global.CarB = v1; _global.CarB extends Car; var v2 = v1.prototype; v2.drive = function (Void) {}; v2.turn = function (Void) { this.heading += Math.random() * this.turnMax * 2 - this.turnMax; if (this.heading < 0) { this.heading += Car.PI2; } else { if (this.heading >= Car.PI2) { this.heading %= Car.PI2; } } }; v2.turn2 = function (Void) { if (this.turnDirection == 0) { this.turnDirection = Math.ceil(Math.random() * 2); } switch (this.turnDirection) { case 1: this.heading -= this.turnMax; if (this.heading < 0) { this.heading += Car.PI2; } break; case 2: this.heading += this.turnMax; if (this.heading >= Car.PI2) { this.heading %= Car.PI2; } break; case 3: this.heading -= this.turnMax * 4; if (this.heading < 0) { this.heading += Car.PI2 * 4; } break; case 4: this.heading += this.turnMax * 4; if (this.heading >= Car.PI2) { this.heading = (this.heading % Car.PI2) * 4; } break; case 5: } }; v2.changeSpeed = function (Void) { this.speed = Math.random() * (Car.carSpeedMax - Car.carSpeedMin) + Car.carSpeedMin; }; v2.chase = function (targetX, targetY) { var v2 = targetX - this.posX; var v3 = targetY - this.posY; if (v2 > 0) { this.theta = Math.atan(v3 / v2); } else { this.theta = 3.141593 + Math.atan(v3 / v2); } if (this.theta < 0) { this.theta += Car.PI2; } this.thetaDiff = this.heading - this.theta; if (this.thetaDiff < 0) { if (this.thetaDiff > -3.141593) { if (this.thetaDiff > -this.turnMax) { this.heading -= this.thetaDiff; } else { this.heading += this.turnMax; } } else { this.heading -= this.turnMax; } } else { if (this.thetaDiff > 0) { if (this.thetaDiff > 3.141593) { this.heading += this.turnMax; } else { if (this.turnMax > this.thetaDiff) { this.heading -= this.thetaDiff; } else { this.heading -= this.turnMax; } } } } if (this.heading < 0) { this.heading += Car.PI2; } else { if (this.heading >= Car.PI2) { this.heading %= Car.PI2; } } }; v2.changeCState = function (Void) { if (Math.random() < this.propensityWander) { this.cState = this.cStateCount - 1; } else { this.cState = Math.floor(Math.random() * this.cStateCount); } }; v1.RAD2DEG = 57.29578; v1.PI2 = 6.283185; v1.carSpeedMin = 1.5; v1.carSpeedMax = 5; v2.cStateCount = 4; v2.propensityWander = 0.6; v2.velocityX = 0; v2.velocityY = 0; v2.speedX = 0; v2.speedY = 0; v2.speedMax = 6; v2.speedMaxReverse = 5; v2.pointValue = 1250; v2.frontX = 73; v2.frontY = 0; v2.backX = -17; v2.backY = 0; v2.frontSideX = 73; v2.frontSideY = 19; v2.backSideX = -17; v2.backSideY = 19; v2.frontSideX2 = 53; v2.frontSideY2 = 19; v2.backSideX2 = 3; v2.backSideY2 = 19; v2.frontSideX3 = 33; v2.frontSideY3 = -19; v2.backSideX3 = -17; v2.backSideY3 = -19; v2.lookAheadX = 200; v2.healthFrontMax = 120; v2.healthBackMax = 70; v2.healthLeftMax = 70; v2.healthRightMax = 70; v2.shieldFront = 2; v2.shieldLeft = 1; v2.shieldRight = 1; v2.shieldBack = 1; v2.velocityHeading = 0; v2.velocityTheta = 0; v2.acceleration = 0.4; v2.frictionRolling = 0.05; v2.tireGrip = 0.25; v2.velocityLateral = 0; v2.mass = 50; v2.thrust = 2; v2.isAlive = true; v2.cState = 0; v2.destroyed = false; ASSetPropFlags(_global.CarB.prototype, null, 1); } #endinitclip } movieClip 1575 __Packages.CarC { #initclip if (!_global.CarC) { var v1 = function () { super(); this.speed = Math.random() * (Car.carSpeedMax - Car.carSpeedMin) + Car.carSpeedMin; this.turnMax = Car.PI2 / 64; this.turnDirection = Math.ceil(Math.random() * 2); this.healthFront = this.healthFrontMax; this.healthBack = this.healthBackMax; this.healthLeft = this.healthLeftMax; this.healthRight = this.healthRightMax; }; _global.CarC = v1; _global.CarC extends Car; var v2 = v1.prototype; v2.drive = function (Void) {}; v2.turn = function (Void) { this.heading += Math.random() * this.turnMax * 2 - this.turnMax; if (this.heading < 0) { this.heading += Car.PI2; } else { if (this.heading >= Car.PI2) { this.heading %= Car.PI2; } } }; v2.turn2 = function (Void) { if (this.turnDirection == 0) { this.turnDirection = Math.ceil(Math.random() * 2); } switch (this.turnDirection) { case 1: this.heading -= this.turnMax; if (this.heading < 0) { this.heading += Car.PI2; } break; case 2: this.heading += this.turnMax; if (this.heading >= Car.PI2) { this.heading %= Car.PI2; } break; case 3: this.heading -= this.turnMax * 4; if (this.heading < 0) { this.heading += Car.PI2 * 4; } break; case 4: this.heading += this.turnMax * 4; if (this.heading >= Car.PI2) { this.heading = (this.heading % Car.PI2) * 4; } break; case 5: } }; v2.changeSpeed = function (Void) { this.speed = Math.random() * (Car.carSpeedMax - Car.carSpeedMin) + Car.carSpeedMin; }; v2.chase = function (targetX, targetY) { var v2 = targetX - this.posX; var v3 = targetY - this.posY; if (v2 > 0) { this.theta = Math.atan(v3 / v2); } else { this.theta = 3.141593 + Math.atan(v3 / v2); } if (this.theta < 0) { this.theta += Car.PI2; } this.thetaDiff = this.heading - this.theta; if (this.thetaDiff < 0) { if (this.thetaDiff > -3.141593) { if (this.thetaDiff > -this.turnMax) { this.heading -= this.thetaDiff; } else { this.heading += this.turnMax; } } else { this.heading -= this.turnMax; } } else { if (this.thetaDiff > 0) { if (this.thetaDiff > 3.141593) { this.heading += this.turnMax; } else { if (this.turnMax > this.thetaDiff) { this.heading -= this.thetaDiff; } else { this.heading -= this.turnMax; } } } } if (this.heading < 0) { this.heading += Car.PI2; } else { if (this.heading >= Car.PI2) { this.heading %= Car.PI2; } } }; v2.changeCState = function (Void) { if (Math.random() < this.propensityWander) { this.cState = this.cStateCount - 1; } else { this.cState = Math.floor(Math.random() * this.cStateCount); } }; v1.RAD2DEG = 57.29578; v1.PI2 = 6.283185; v1.carSpeedMin = 1.5; v1.carSpeedMax = 5; v2.cStateCount = 4; v2.propensityWander = 0.6; v2.velocityX = 0; v2.velocityY = 0; v2.speedX = 0; v2.speedY = 0; v2.speedMax = 6; v2.speedMaxReverse = 5; v2.pointValue = 1250; v2.frontX = 73; v2.frontY = 0; v2.backX = -17; v2.backY = 0; v2.frontSideX = 73; v2.frontSideY = 19; v2.backSideX = -17; v2.backSideY = 19; v2.frontSideX2 = 53; v2.frontSideY2 = 19; v2.backSideX2 = 3; v2.backSideY2 = 19; v2.frontSideX3 = 33; v2.frontSideY3 = -19; v2.backSideX3 = -17; v2.backSideY3 = -19; v2.lookAheadX = 200; v2.healthFrontMax = 120; v2.healthBackMax = 70; v2.healthLeftMax = 70; v2.healthRightMax = 70; v2.shieldFront = 2; v2.shieldLeft = 1; v2.shieldRight = 1; v2.shieldBack = 1; v2.velocityHeading = 0; v2.velocityTheta = 0; v2.acceleration = 0.4; v2.frictionRolling = 0.05; v2.tireGrip = 0.25; v2.velocityLateral = 0; v2.mass = 50; v2.thrust = 2; v2.isAlive = true; v2.cState = 0; v2.destroyed = false; ASSetPropFlags(_global.CarC.prototype, null, 1); } #endinitclip } movieClip 1576 __Packages.mx.data.binding.DataAccessor { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.data) { _global.mx.data = new Object(); } if (!_global.mx.data.binding) { _global.mx.data.binding = new Object(); } if (!_global.mx.data.binding.DataAccessor) { var v1 = function () {}; mx.data.binding.DataAccessor = v1; var v2 = v1.prototype; v2.getAnyTypedValue = function (suggestedTypes) { var v3 = 0; while (v3 < suggestedTypes.length) { var v5 = this.getTypedValue(suggestedTypes[v3]); if (v5 != null) { return v5; } ++v3; } v5 = this.getTypedValue(); v3 = 0; while (v3 < suggestedTypes.length) { var v2 = suggestedTypes[v3]; if (v2 == 'String') { return new mx.data.binding.TypedValue(String(v5.value), v2); } if (v2 == 'Number') { return new mx.data.binding.TypedValue(Number(v5.value), v2); } if (v2 == 'Boolean') { return new mx.data.binding.TypedValue(Boolean(v5.value), v2); } ++v3; } return v5; }; v2.setAnyTypedValue = function (newValue) { var v7 = this.getSettableTypes(); if (v7 == null || -1 != mx.data.binding.DataAccessor.findString(newValue.typeName, v7)) { return this.setTypedValue(newValue); return this.dataAccessor.setTypedValue(newValue); } var v3 = 0; while (v3 < v7.length) { var v2 = v7[v3]; if (v2 == 'String') { return this.setTypedValue(new mx.data.binding.TypedValue(String(newValue.value), v2)); } if (v2 == 'Number') { var v5 = Number(newValue.value); var v6 = this.setTypedValue(new mx.data.binding.TypedValue(v5, v2)); if (v5.toString() == 'NaN') { return ['Failed to convert \'' + newValue.value + '\' to a number']; } else { return v6; } } if (v2 == 'Boolean') { return this.setTypedValue(new mx.data.binding.TypedValue(Boolean(newValue.value), v2)); } ++v3; } return this.dataAccessor.setTypedValue(newValue); }; v2.getTypedValue = function (requestedType) { var v2 = this.dataAccessor.getTypedValue(requestedType); return v2; }; v2.getGettableTypes = function () { return null; }; v2.setTypedValue = function (newValue) { return this.dataAccessor.setTypedValue(newValue); }; v2.getSettableTypes = function () { return null; }; v2.findLastAccessor = function () { return (this.dataAccessor == null) ? this : this.dataAccessor.findLastAccessor(); }; v2.setupDataAccessor = function (component, property, location) { this.component = component; this.property = property; this.location = location; this.type = component.findSchema(property, location); }; v1.findString = function (str, arr) { var v3 = str.toLowerCase(); var v1 = 0; while (v1 < arr.length) { if (arr[v1].toLowerCase() == v3) { return v1; } ++v1; } return -1; }; v1.conversionFailed = function (newValue, target) { return 'Failed to convert to ' + target + ': \'' + newValue.value + '\''; }; ASSetPropFlags(mx.data.binding.DataAccessor.prototype, null, 1); } #endinitclip } movieClip 1577 __Packages.mx.data.binding.TypedValue { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.data) { _global.mx.data = new Object(); } if (!_global.mx.data.binding) { _global.mx.data.binding = new Object(); } if (!_global.mx.data.binding.TypedValue) { var v1 = function (value, typeName, type) { this.value = value; this.typeName = typeName; this.type = type; }; mx.data.binding.TypedValue = v1; var v2 = v1.prototype; ASSetPropFlags(mx.data.binding.TypedValue.prototype, null, 1); } #endinitclip } movieClip 1578 __Packages.CarPlayer3 { #initclip if (!_global.CarPlayer3) { var v1 = function () { super(); this.speed = 0; this.turnMax = (Car.PI2 / 64) * 1.4; this.turnDirection = Math.ceil(Math.random() * 2); this.thrustDiag = this.thrust * Math.cos(CarPlayer3.PIQUARTER); this.healthFront = this.healthFrontMax; this.healthBack = this.healthBackMax; this.healthLeft = this.healthLeftMax; this.healthRight = this.healthRightMax; }; _global.CarPlayer3 = v1; _global.CarPlayer3 extends Car; var v2 = v1.prototype; v2.drive = function (Void) {}; v2.turn = function (Void) { this.heading += Math.random() * this.turnMax * 2 - this.turnMax; }; v2.turn2 = function (Void) { if (this.turnDirection == 0) { this.turnDirection = Math.ceil(Math.random() * 2); } switch (this.turnDirection) { case 1: this.heading -= this.turnMax; break; case 2: this.heading += this.turnMax; } }; v2.changeSpeed = function (Void) { this.speed = Math.random() * (Car.carSpeedMax - Car.carSpeedMin) + Car.carSpeedMin; }; v1.RAD2DEG = 57.29578; v1.PI2 = 6.283185; v1.PIQUARTER = 0.7853982000000001; v2.friction = 1; v2.airFrictionCoefficient = 4; v2.horsePower = 0; v2.speedDiff = 0; v2.velocityX = 0; v2.velocityY = 0; v2.vX2 = 0; v2.vY2 = 0; v2.diffX = 0; v2.diffY = 0; v2.diffHeading = 0; v2.mass = 70; v2.speedX = 0; v2.speedY = 0; v2.speedMax = 14; v2.speedMaxReverse = -9; v2.velocityHeading = 0; v2.velocityTheta = 0; v2.acceleration = 0.75; v2.frictionRolling = 0.1; v2.tireGrip = 0.9; v2.velocityLateral = 0; v2.thrust = 2; v2.frontX = 73; v2.frontY = 0; v2.backX = -17; v2.backY = 0; v2.frontSideX = 73; v2.frontSideY = 19; v2.backSideX = -17; v2.backSideY = 19; v2.frontSideX2 = 53; v2.frontSideY2 = 19; v2.backSideX2 = 3; v2.backSideY2 = 19; v2.frontSideX3 = 33; v2.frontSideY3 = -19; v2.backSideX3 = -17; v2.backSideY3 = -19; v2.healthFrontMax = 270; v2.healthBackMax = 180; v2.healthLeftMax = 180; v2.healthRightMax = 180; v2.shieldFront = 6; v2.shieldLeft = 4; v2.shieldRight = 4; v2.shieldBack = 4; v2.baseShieldFront = 6; v2.baseShieldLeft = 4; v2.baseShieldRight = 4; v2.baseShieldBack = 4; v2.baseSpeedMax = 14; v2.baseSpeedMaxReverse = -9; v2.baseAcceleration = 0.75; v2.baseMass = 70; ASSetPropFlags(_global.CarPlayer3.prototype, null, 1); } #endinitclip } movieClip 1579 __Packages.CarPlayer1 { #initclip if (!_global.CarPlayer1) { var v1 = function () { super(); this.speed = 0; this.turnMax = Car.PI2 / 64; this.turnDirection = Math.ceil(Math.random() * 2); this.thrustDiag = this.thrust * Math.cos(CarPlayer1.PIQUARTER); this.healthFront = this.healthFrontMax; this.healthBack = this.healthBackMax; this.healthLeft = this.healthLeftMax; this.healthRight = this.healthRightMax; }; _global.CarPlayer1 = v1; _global.CarPlayer1 extends Car; var v2 = v1.prototype; v2.drive = function (Void) {}; v2.turn = function (Void) { this.heading += Math.random() * this.turnMax * 2 - this.turnMax; }; v2.turn2 = function (Void) { if (this.turnDirection == 0) { this.turnDirection = Math.ceil(Math.random() * 2); } switch (this.turnDirection) { case 1: this.heading -= this.turnMax; break; case 2: this.heading += this.turnMax; break; case 5: } }; v2.changeSpeed = function (Void) { this.speed = Math.random() * (Car.carSpeedMax - Car.carSpeedMin) + Car.carSpeedMin; }; v1.RAD2DEG = 57.29578; v1.PI2 = 6.283185; v1.PIQUARTER = 0.7853982000000001; v2.friction = 0.5; v2.airFrictionCoefficient = 2; v2.horsePower = 0; v2.speedDiff = 0; v2.velocityX = 0; v2.velocityY = 0; v2.vX2 = 0; v2.vY2 = 0; v2.diffX = 0; v2.diffY = 0; v2.diffHeading = 0; v2.mass = 50; v2.speedX = 0; v2.speedY = 0; v2.speedMax = 10; v2.speedMaxReverse = -5; v2.velocityHeading = 0; v2.velocityTheta = 0; v2.acceleration = 0.5; v2.frictionRolling = 0.05; v2.tireGrip = 0.45; v2.velocityLateral = 0; v2.thrust = 2; v2.frontX = 73; v2.frontY = 0; v2.backX = -17; v2.backY = 0; v2.frontSideX = 73; v2.frontSideY = 19; v2.backSideX = -17; v2.backSideY = 19; v2.frontSideX2 = 53; v2.frontSideY2 = 19; v2.backSideX2 = 3; v2.backSideY2 = 19; v2.frontSideX3 = 33; v2.frontSideY3 = -19; v2.backSideX3 = -17; v2.backSideY3 = -19; v2.healthFrontMax = 180; v2.healthBackMax = 120; v2.healthLeftMax = 120; v2.healthRightMax = 120; v2.shieldFront = 3; v2.shieldLeft = 2; v2.shieldRight = 2; v2.shieldBack = 2; v2.baseShieldFront = 3; v2.baseShieldLeft = 2; v2.baseShieldRight = 2; v2.baseShieldBack = 2; v2.baseSpeedMax = 10; v2.baseSpeedMaxReverse = -5; v2.baseAcceleration = 0.5; v2.baseMass = 50; ASSetPropFlags(_global.CarPlayer1.prototype, null, 1); } #endinitclip } movieClip 1580 __Packages.SpawnPoint { #initclip if (!_global.SpawnPoint) { var v1 = function (xPos, yPos) { this.xPos = xPos; this.yPos = yPos; }; _global.SpawnPoint = v1; var v2 = v1.prototype; ASSetPropFlags(_global.SpawnPoint.prototype, null, 1); } #endinitclip } movieClip 1581 __Packages.BoosterPackets { #initclip if (!_global.BoosterPackets) { var v1 = function () { super(); this.initBooster(); }; _global.BoosterPackets = v1; _global.BoosterPackets extends MovieClip; var v2 = v1.prototype; v2.initBooster = function () {}; v2.lifeSpan = 5; ASSetPropFlags(_global.BoosterPackets.prototype, null, 1); } #endinitclip } movieClip 7 __Packages.mx.core.UIObject { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.UIObject) { var v1 = function () { super(); this.constructObject(); }; mx.core.UIObject = v1; var v2 = new MovieClip(); mx.core.UIObject.prototype = v2; v2.__get__width = function () { return this._width; }; v2.__get__height = function () { return this._height; }; v2.__get__left = function () { return this._x; }; v2.__get__x = function () { return this._x; }; v2.__get__top = function () { return this._y; }; v2.__get__y = function () { return this._y; }; v2.__get__right = function () { return this._parent.width - (this._x + this.__get__width()); }; v2.__get__bottom = function () { return this._parent.height - (this._y + this.__get__height()); }; v2.getMinHeight = function (Void) { return this._minHeight; }; v2.setMinHeight = function (h) { this._minHeight = h; }; v2.__get__minHeight = function () { return this.getMinHeight(); }; v2.__set__minHeight = function (h) { this.setMinHeight(h); return this.__get__minHeight(); }; v2.getMinWidth = function (Void) { return this._minWidth; }; v2.setMinWidth = function (w) { this._minWidth = w; }; v2.__get__minWidth = function () { return this.getMinWidth(); }; v2.__set__minWidth = function (w) { this.setMinWidth(w); return this.__get__minWidth(); }; v2.setVisible = function (x, noEvent) { if (x != this._visible) { this._visible = x; if (noEvent != true) { this.dispatchEvent({'type': x ? 'reveal' : 'hide'}); } } }; v2.__get__visible = function () { return this._visible; }; v2.__set__visible = function (x) { this.setVisible(x, false); return this.__get__visible(); }; v2.__get__scaleX = function () { return this._xscale; }; v2.__set__scaleX = function (x) { this._xscale = x; return this.__get__scaleX(); }; v2.__get__scaleY = function () { return this._yscale; }; v2.__set__scaleY = function (y) { this._yscale = y; return this.__get__scaleY(); }; v2.doLater = function (obj, fn) { if (this.methodTable == undefined) { this.methodTable = new Array(); } this.methodTable.push({'obj': obj, 'fn': fn}); this.onEnterFrame = this.doLaterDispatcher; }; v2.doLaterDispatcher = function (Void) { delete this.onEnterFrame; if (this.invalidateFlag) { this.redraw(); } var v3 = this.methodTable; this.methodTable = new Array(); if (v3.length > 0) { var v2; v2 = v3.shift(); while (v2 != undefined) { v2.obj[v2.fn](); } } }; v2.cancelAllDoLaters = function (Void) { delete this.onEnterFrame; this.methodTable = new Array(); }; v2.invalidate = function (Void) { this.invalidateFlag = true; this.onEnterFrame = this.doLaterDispatcher; }; v2.invalidateStyle = function (Void) { this.invalidate(); }; v2.redraw = function (bAlways) { if (this.invalidateFlag || bAlways) { this.invalidateFlag = false; var v2; for (v2 in this.tfList) { this.tfList[v2].draw(); } this.draw(); this.dispatchEvent({'type': 'draw'}); } }; v2.draw = function (Void) {}; v2.move = function (x, y, noEvent) { var v3 = this._x; var v2 = this._y; this._x = x; this._y = y; if (noEvent != true) { this.dispatchEvent({'type': 'move', 'oldX': v3, 'oldY': v2}); } }; v2.setSize = function (w, h, noEvent) { var v2 = this.__width; var v3 = this.__height; this.__width = w; this.__height = h; this.size(); if (noEvent != true) { this.dispatchEvent({'type': 'resize', 'oldWidth': v2, 'oldHeight': v3}); } }; v2.size = function (Void) { this._width = this.__width; this._height = this.__height; }; v2.drawRect = function (x1, y1, x2, y2) { this.moveTo(x1, y1); this.lineTo(x2, y1); this.lineTo(x2, y2); this.lineTo(x1, y2); this.lineTo(x1, y1); }; v2.createLabel = function (name, depth, text) { this.createTextField(name, depth, 0, 0, 0, 0); var v2 = this[name]; v2._color = mx.core.UIObject.textColorList; v2._visible = false; v2.__text = text; if (this.tfList == undefined) { this.tfList = new Object(); } this.tfList[name] = v2; v2.invalidateStyle(); this.invalidate(); v2.styleName = this; return v2; }; v2.createObject = function (linkageName, id, depth, initobj) { return this.attachMovie(linkageName, id, depth, initobj); }; v2.createClassObject = function (className, id, depth, initobj) { var v3 = className.symbolName == undefined; if (v3) { Object.registerClass(className.symbolOwner.symbolName, className); } var v4 = this.createObject(className.symbolOwner.symbolName, id, depth, initobj); if (v3) { Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner); } return v4; }; v2.createEmptyObject = function (id, depth) { return this.createClassObject(mx.core.UIObject, id, depth); }; v2.destroyObject = function (id) { var v2 = this[id]; if (v2.getDepth() < 0) { var v4 = this.buildDepthTable(); var v5 = this.findNextAvailableDepth(0, v4, 'up'); var v3 = v5; v2.swapDepths(v3); } v2.removeMovieClip(); delete this[id]; }; v2.getSkinIDName = function (tag) { return this.idNames[tag]; }; v2.setSkin = function (tag, linkageName, initObj) { if (_global.skinRegistry[linkageName] == undefined) { mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement); } return this.createObject(linkageName, this.getSkinIDName(tag), tag, initObj); }; v2.createSkin = function (tag) { var v2 = this.getSkinIDName(tag); this.createEmptyObject(v2, tag); return this[v2]; }; v2.createChildren = function (Void) {}; v2._createChildren = function (Void) { this.createChildren(); this.childrenCreated = true; }; v2.constructObject = function (Void) { if (this._name == undefined) { return undefined; } this.init(); this._createChildren(); this.createAccessibilityImplementation(); this._endInit(); if (this.validateNow) { this.redraw(true); } else { this.invalidate(); } }; v2.initFromClipParameters = function (Void) { var v4 = false; var v2; for (v2 in this.clipParameters) { if (this.hasOwnProperty(v2)) { v4 = true; this['def_' + v2] = this[v2]; delete this[v2]; } } if (v4) { for (v2 in this.clipParameters) { var v3 = this['def_' + v2]; if (v3 != undefined) { this[v2] = v3; } } } }; v2.init = function (Void) { this.__width = this._width; this.__height = this._height; if (this.initProperties == undefined) { this.initFromClipParameters(); } else { this.initProperties(); } if (_global.cascadingStyles == true) { this.stylecache = new Object(); } }; v2.getClassStyleDeclaration = function (Void) { var v4 = this; var v3 = this.className; while (v3 != undefined) { if (this.ignoreClassStyleDeclaration[v3] == undefined) { if (_global.styles[v3] != undefined) { return _global.styles[v3]; } } v4 = v4.__proto__; v3 = v4.className; } }; v2.setColor = function (color) {}; v2.__getTextFormat = function (tf, bAll) { var v8 = this.stylecache.tf; if (v8 != undefined) { var v3; for (v3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v3]) { if (tf[v3] == undefined) { tf[v3] = v8[v3]; } } } return false; } var v6 = false; for (v3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v3]) { if (tf[v3] == undefined) { var v5 = this._tf[v3]; if (v5 != undefined) { tf[v3] = v5; } else { if (v3 == 'font' && this.fontFamily != undefined) { tf[v3] = this.fontFamily; } else { if (v3 == 'size' && this.fontSize != undefined) { tf[v3] = this.fontSize; } else { if (v3 == 'color' && this.color != undefined) { tf[v3] = this.color; } else { if (v3 == 'leftMargin' && this.marginLeft != undefined) { tf[v3] = this.marginLeft; } else { if (v3 == 'rightMargin' && this.marginRight != undefined) { tf[v3] = this.marginRight; } else { if (v3 == 'italic' && this.fontStyle != undefined) { tf[v3] = this.fontStyle == v3; } else { if (v3 == 'bold' && this.fontWeight != undefined) { tf[v3] = this.fontWeight == v3; } else { if (v3 == 'align' && this.textAlign != undefined) { tf[v3] = this.textAlign; } else { if (v3 == 'indent' && this.textIndent != undefined) { tf[v3] = this.textIndent; } else { if (v3 == 'underline' && this.textDecoration != undefined) { tf[v3] = this.textDecoration == v3; } else { if (v3 == 'embedFonts' && this.embedFonts != undefined) { tf[v3] = this.embedFonts; } else { v6 = true; } } } } } } } } } } } } } } } if (v6) { var v9 = this.styleName; if (v9 != undefined) { if (typeof v9 != 'string') { v6 = v9.__getTextFormat(tf, true, this); } else { if (_global.styles[v9] != undefined) { v6 = _global.styles[v9].__getTextFormat(tf, true, this); } } } } if (v6) { var v10 = this.getClassStyleDeclaration(); if (v10 != undefined) { v6 = v10.__getTextFormat(tf, true, this); } } if (v6) { if (_global.cascadingStyles) { if (this._parent != undefined) { v6 = this._parent.__getTextFormat(tf, false); } } } if (v6) { v6 = _global.style.__getTextFormat(tf, true, this); } return v6; }; v2._getTextFormat = function (Void) { var v2 = this.stylecache.tf; if (v2 != undefined) { return v2; } v2 = new TextFormat(); this.__getTextFormat(v2, true); this.stylecache.tf = v2; if (this.enabled == false) { var v3 = this.getStyle('disabledColor'); v2.color = v3; } return v2; }; v2.getStyleName = function (Void) { var v2 = this.styleName; if (v2 != undefined) { if (typeof v2 != 'string') { return v2.getStyleName(); } else { return v2; } } if (this._parent != undefined) { return this._parent.getStyleName(); } else { return undefined; } }; v2.getStyle = function (styleProp) { var v3; ++_global.getStyleCounter; if (this[styleProp] != undefined) { return this[styleProp]; } var v6 = this.styleName; if (v6 != undefined) { if (typeof v6 != 'string') { v3 = v6.getStyle(styleProp); } else { var v7 = _global.styles[v6]; v3 = v7.getStyle(styleProp); } } if (v3 != undefined) { return v3; } v7 = this.getClassStyleDeclaration(); if (v7 != undefined) { v3 = v7[styleProp]; } if (v3 != undefined) { return v3; } if (_global.cascadingStyles) { if (mx.styles.StyleManager.isInheritingStyle(styleProp) || mx.styles.StyleManager.isColorStyle(styleProp)) { var v5 = this.stylecache; if (v5 != undefined) { if (v5[styleProp] != undefined) { return v5[styleProp]; } } if (this._parent != undefined) { v3 = this._parent.getStyle(styleProp); } else { v3 = _global.style[styleProp]; } if (v5 != undefined) { v5[styleProp] = v3; } return v3; } } if (v3 == undefined) { v3 = _global.style[styleProp]; } return v3; }; v1.mergeClipParameters = function (o, p) { for (var v3 in p) { o[v3] = p[v3]; } return true; }; v1.symbolName = 'UIObject'; v1.symbolOwner = mx.core.UIObject; v1.version = '2.0.2.127'; v1.textColorList = {'color': 1, 'disabledColor': 1}; v2.invalidateFlag = false; v2.lineWidth = 1; v2.lineColor = 0; v2.tabEnabled = false; v2.clipParameters = {'visible': 1, 'minHeight': 1, 'minWidth': 1, 'maxHeight': 1, 'maxWidth': 1, 'preferredHeight': 1, 'preferredWidth': 1}; v2.addProperty('bottom', v2.__get__bottom, function () {}); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('left', v2.__get__left, function () {}); v2.addProperty('minHeight', v2.__get__minHeight, v2.__set__minHeight); v2.addProperty('minWidth', v2.__get__minWidth, v2.__set__minWidth); v2.addProperty('right', v2.__get__right, function () {}); v2.addProperty('scaleX', v2.__get__scaleX, v2.__set__scaleX); v2.addProperty('scaleY', v2.__get__scaleY, v2.__set__scaleY); v2.addProperty('top', v2.__get__top, function () {}); v2.addProperty('visible', v2.__get__visible, v2.__set__visible); v2.addProperty('width', v2.__get__width, function () {}); v2.addProperty('x', v2.__get__x, function () {}); v2.addProperty('y', v2.__get__y, function () {}); ASSetPropFlags(mx.core.UIObject.prototype, null, 1); } #endinitclip } movieClip 8 __Packages.mx.core.UIComponent { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.UIComponent) { var v1 = function () { super(); }; mx.core.UIComponent = v1; var v2 = new mx.core.UIObject(); mx.core.UIComponent.prototype = v2; v2.__get__width = function () { return this.__width; }; v2.__get__height = function () { return this.__height; }; v2.setVisible = function (x, noEvent) { super.setVisible(x, noEvent); }; v2.enabledChanged = function (id, oldValue, newValue) { this.setEnabled(newValue); this.invalidate(); delete this.stylecache.tf; return newValue; }; v2.setEnabled = function (enabled) { this.invalidate(); }; v2.getFocus = function () { var selFocus = Selection.getFocus(); return (selFocus === null) ? null : eval(selFocus); }; v2.setFocus = function () { Selection.setFocus(this); }; v2.getFocusManager = function () { var v2 = this; while (v2 != undefined) { if (v2.focusManager != undefined) { return v2.focusManager; } v2 = v2._parent; } return undefined; }; v2.onKillFocus = function (newFocus) { this.removeEventListener('keyDown', this); this.removeEventListener('keyUp', this); this.dispatchEvent({'type': 'focusOut'}); this.drawFocus(false); }; v2.onSetFocus = function (oldFocus) { this.addEventListener('keyDown', this); this.addEventListener('keyUp', this); this.dispatchEvent({'type': 'focusIn'}); if ((this.getFocusManager()).bDrawFocus != false) { this.drawFocus(true); } }; v2.findFocusInChildren = function (o) { if (o.focusTextField != undefined) { return o.focusTextField; } if (o.tabEnabled == true) { return o; } return undefined; }; v2.findFocusFromObject = function (o) { if (o.tabEnabled != true) { if (o._parent == undefined) { return undefined; } if (o._parent.tabEnabled == true) { o = o._parent; return o; } if (o._parent.tabChildren) { o = this.findFocusInChildren(o._parent); return o; } o = this.findFocusFromObject(o._parent); } return o; }; v2.pressFocus = function () { var v3 = this.findFocusFromObject(this); var v2 = this.getFocus(); if (v3 != v2) { v2.drawFocus(false); if ((this.getFocusManager()).bDrawFocus != false) { v3.drawFocus(true); } } }; v2.releaseFocus = function () { var v2 = this.findFocusFromObject(this); if (v2 != this.getFocus()) { v2.setFocus(); } }; v2.isParent = function (o) { while (o != undefined) { if (o == this) { return true; } o = o._parent; } return false; }; v2.size = function () {}; v2.init = function () { super.init(); this._xscale = 100; this._yscale = 100; this._focusrect = _global.useFocusRect == false; this.watch('enabled', this.enabledChanged); if (this.enabled == false) { this.setEnabled(false); } }; v2.dispatchValueChangedEvent = function (value) { this.dispatchEvent({'type': 'valueChanged', 'value': value}); }; v1.symbolName = 'UIComponent'; v1.symbolOwner = mx.core.UIComponent; v1.version = '2.0.2.127'; v1.kStretch = 5000; v2.focusEnabled = true; v2.tabEnabled = true; v2.origBorderStyles = {'themeColor': 16711680}; v2.clipParameters = {}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(mx.core.UIComponent.prototype, null, 1); } #endinitclip } movieClip 9 __Packages.mx.core.View { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.View) { var v1 = function () { super(); }; mx.core.View = v1; var v2 = new mx.core.UIComponent(); mx.core.View.prototype = v2; v2.init = function () { super.init(); this.tabChildren = true; this.tabEnabled = false; this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; }; v2.size = function () { this.border_mc.move(0, 0); this.border_mc.setSize(this.__get__width(), this.__get__height()); this.doLayout(); }; v2.draw = function () { this.size(); }; v2.__get__numChildren = function () { var v3 = mx.core.View.childNameBase; var v2 = 0; while (!false) { if (this[v3 + v2] == undefined) { return v2; } ++v2; } return -1; }; v2.__get__tabIndex = function () { return this.tabEnabled ? this.__tabIndex : undefined; }; v2.__set__tabIndex = function (n) { this.__tabIndex = n; return this.__get__tabIndex(); }; v2.addLayoutObject = function (object) {}; v2.createChild = function (className, instanceName, initProps) { if (this.depth == undefined) { this.depth = 1; } var v2; if (typeof className == 'string') { v2 = this.createObject(className, instanceName, this.depth++, initProps); } else { v2 = this.createClassObject(className, instanceName, this.depth++, initProps); } if (v2 == undefined) { v2 = this.loadExternal(className, this._loadExternalClass, instanceName, this.depth++, initProps); this.addLayoutObject(v2); return v2; } this[mx.core.View.childNameBase + this.__get__numChildren()] = v2; v2._complete = true; this.childLoaded(v2); this.addLayoutObject(v2); return v2; }; v2.getChildAt = function (childIndex) { return this[mx.core.View.childNameBase + childIndex]; }; v2.destroyChildAt = function (childIndex) { if (!(childIndex >= 0 && childIndex < this.__get__numChildren())) { return undefined; } var v4 = mx.core.View.childNameBase + childIndex; var v6 = this.__get__numChildren(); var v3; for (v3 in this) { if (v3 == v4) { v4 = ''; this.destroyObject(v3); break; } } var v2 = Number(childIndex); while (v2 < v6 - 1) { this[mx.core.View.childNameBase + v2] = this[mx.core.View.childNameBase + (v2 + 1)]; ++v2; } delete this[mx.core.View.childNameBase + (v6 - 1)]; --this.depth; }; v2.initLayout = function () { if (!this.hasBeenLayedOut) { this.doLayout(); } }; v2.doLayout = function () { this.hasBeenLayedOut = true; }; v2.createChildren = function () { if (this.border_mc == undefined) { this.border_mc = this.createClassChildAtDepth(_global.styles.rectBorderClass, mx.managers.DepthManager.kBottom, {'styleName': this}); } this.doLater(this, 'initLayout'); }; v2.convertToUIObject = function (obj) {}; v2.childLoaded = function (obj) { this.convertToUIObject(obj); }; v1.extension = function () { mx.core.ExternalContent.enableExternalContent(); }; v1.symbolName = 'View'; v1.symbolOwner = mx.core.View; v1.version = '2.0.2.127'; v2.className = 'View'; v1.childNameBase = '_child'; v2.hasBeenLayedOut = false; v2._loadExternalClass = 'UIComponent'; v2.addProperty('numChildren', v2.__get__numChildren, function () {}); v2.addProperty('tabIndex', v2.__get__tabIndex, v2.__set__tabIndex); ASSetPropFlags(mx.core.View.prototype, null, 1); } #endinitclip } movieClip 10 __Packages.mx.core.ScrollView { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.ScrollView) { var v1 = function () { super(); }; mx.core.ScrollView = v1; var v2 = new mx.core.View(); mx.core.ScrollView.prototype = v2; v2.getHScrollPolicy = function (Void) { return this.__hScrollPolicy; }; v2.setHScrollPolicy = function (policy) { this.__hScrollPolicy = policy.toLowerCase(); if (this.__width == undefined) { return undefined; } this.setScrollProperties(this.numberOfCols, this.columnWidth, this.rowC, this.rowH, this.heightPadding, this.widthPadding); }; v2.__get__hScrollPolicy = function () { return this.getHScrollPolicy(); }; v2.__set__hScrollPolicy = function (policy) { this.setHScrollPolicy(policy); return this.__get__hScrollPolicy(); }; v2.getVScrollPolicy = function (Void) { return this.__vScrollPolicy; }; v2.setVScrollPolicy = function (policy) { this.__vScrollPolicy = policy.toLowerCase(); if (this.__width == undefined) { return undefined; } this.setScrollProperties(this.numberOfCols, this.columnWidth, this.rowC, this.rowH, this.heightPadding, this.widthPadding); }; v2.__get__vScrollPolicy = function () { return this.getVScrollPolicy(); }; v2.__set__vScrollPolicy = function (policy) { this.setVScrollPolicy(policy); return this.__get__vScrollPolicy(); }; v2.__get__hPosition = function () { return this.getHPosition(); }; v2.__set__hPosition = function (pos) { this.setHPosition(pos); return this.__get__hPosition(); }; v2.getHPosition = function (Void) { return this.__hPosition; }; v2.setHPosition = function (pos) { this.hScroller.__set__scrollPosition(pos); this.__hPosition = pos; }; v2.__get__vPosition = function () { return this.getVPosition(); }; v2.__set__vPosition = function (pos) { this.setVPosition(pos); return this.__get__vPosition(); }; v2.getVPosition = function (Void) { return this.__vPosition; }; v2.setVPosition = function (pos) { this.vScroller.__set__scrollPosition(pos); this.__vPosition = pos; }; v2.__get__maxVPosition = function () { var v2 = this.vScroller.maxPos; return (v2 == undefined) ? 0 : v2; }; v2.__get__maxHPosition = function () { return this.getMaxHPosition(); }; v2.__set__maxHPosition = function (pos) { this.setMaxHPosition(pos); return this.__get__maxHPosition(); }; v2.getMaxHPosition = function (Void) { if (this.__maxHPosition != undefined) { return this.__maxHPosition; } var v2 = this.hScroller.maxPos; return (v2 == undefined) ? 0 : v2; }; v2.setMaxHPosition = function (pos) { this.__maxHPosition = pos; }; v2.setScrollProperties = function (colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) { var v3 = this.getViewMetrics(); if (hPadding == undefined) { hPadding = 0; } if (wPadding == undefined) { wPadding = 0; } this.propsInited = true; delete this.scrollAreaChanged; this.heightPadding = hPadding; this.widthPadding = wPadding; if (colWidth == 0) { colWidth = 1; } if (rwHeight == 0) { rwHeight = 1; } var v5 = Math.ceil((this.__width - v3.left - v3.right - this.widthPadding) / colWidth); if (this.__hScrollPolicy == 'on' || v5 < colCount && this.__hScrollPolicy == 'auto') { if (this.hScroller == undefined || this.specialHScrollCase) { delete this.specialHScrollCase; this.hScroller = this.createObject('HScrollBar', 'hSB', 1001); this.hScroller.__set__lineScrollSize(20); this.hScroller.scrollHandler = this.scrollProxy; this.hScroller.__set__scrollPosition(this.__hPosition); this.scrollAreaChanged = true; } if (this.numberOfCols != colCount || this.columnWidth != colWidth || this.viewableColumns != v5 || this.scrollAreaChanged) { this.hScroller.setScrollProperties(v5, 0, colCount - v5); this.viewableColumns = v5; this.numberOfCols = colCount; this.columnWidth = colWidth; } } else { if ((this.__hScrollPolicy == 'auto' || this.__hScrollPolicy == 'off') && this.hScroller != undefined) { this.hScroller.removeMovieClip(); delete this.hScroller; this.scrollAreaChanged = true; } } if (this.heightPadding == undefined) { this.heightPadding = 0; } var v4 = Math.ceil((this.__height - v3.top - v3.bottom - this.heightPadding) / rwHeight); var v8 = (this.__height - v3.top - v3.bottom) % rwHeight != 0; if (this.__vScrollPolicy == 'on' || v4 < rwCount + v8 && this.__vScrollPolicy == 'auto') { if (this.vScroller == undefined) { this.vScroller = this.createObject('VScrollBar', 'vSB', 1002); this.vScroller.scrollHandler = this.scrollProxy; this.vScroller.__set__scrollPosition(this.__vPosition); this.scrollAreaChanged = true; this.rowH = 0; } if (this.rowC != rwCount || this.rowH != rwHeight || this.viewableRows + v8 != v4 + this.oldRndUp || this.scrollAreaChanged) { this.vScroller.setScrollProperties(v4, 0, rwCount - v4 + v8); this.viewableRows = v4; this.rowC = rwCount; this.rowH = rwHeight; this.oldRndUp = v8; } } else { if ((this.__vScrollPolicy == 'auto' || this.__vScrollPolicy == 'off') && this.vScroller != undefined) { this.vScroller.removeMovieClip(); delete this.vScroller; this.scrollAreaChanged = true; } } this.numberOfCols = colCount; this.columnWidth = colWidth; if (this.scrollAreaChanged) { this.doLayout(); var v2 = this.__viewMetrics; var v12 = (this.owner != undefined) ? this.owner : this; v12.layoutContent(v2.left, v2.top, this.columnWidth * this.numberOfCols - v2.left - v2.right, this.rowC * this.rowH, this.__width - v2.left - v2.right, this.__height - v2.top - v2.bottom); } if (!this.enabled) { this.setEnabled(false); } }; v2.getViewMetrics = function (Void) { var v2 = this.__viewMetrics; var v3 = this.border_mc.__get__borderMetrics(); v2.left = v3.left; v2.right = v3.right; if (this.vScroller != undefined) { v2.right += this.vScroller.minWidth; } v2.top = v3.top; if (this.hScroller == undefined && (this.__hScrollPolicy == 'on' || this.__hScrollPolicy == true)) { this.hScroller = this.createObject('FHScrollBar', 'hSB', 1001); this.specialHScrollCase = true; } v2.bottom = v3.bottom; if (this.hScroller != undefined) { v2.bottom += this.hScroller.minHeight; } return v2; }; v2.doLayout = function (Void) { var v10 = this.__get__width(); var v8 = this.__get__height(); delete this.invLayout; this.__viewMetrics = this.getViewMetrics(); var v3 = this.__viewMetrics; var v2 = v3.left; var v9 = v3.right; var v5 = v3.top; var v11 = v3.bottom; var v7 = this.hScroller; var v6 = this.vScroller; v7.setSize(v10 - v2 - v9, v7.minHeight + 0); v7.move(v2, v8 - v11); v6.setSize(v6.minWidth + 0, v8 - v5 - v11); v6.move(v10 - v9, v5); var v4 = this.mask_mc; v4._width = v10 - v2 - v9; v4._height = v8 - v5 - v11; v4._x = v2; v4._y = v5; }; v2.createChild = function (id, name, props) { var v2 = super.createChild(id, name, props); return v2; }; v2.init = function (Void) { super.init(); this.__viewMetrics = new Object(); if (_global.__SVMouseWheelManager == undefined) { _global.__SVMouseWheelManager = new Object(); var v4 = _global.__SVMouseWheelManager; v4.onMouseWheel = this.__onMouseWheel; Mouse.addListener(v4); } }; v2.__onMouseWheel = function (delta, scrollTarget) { var v4 = scrollTarget; var v1; while (v4 != undefined) { if (v4 instanceof mx.core.ScrollView) { v1 = v4; false; } v4 = v4._parent; } if (v1 != undefined) { v4 = delta <= 0 ? 1 : -1; var v2 = v1.vScroller.lineScrollSize; if (v2 == undefined) { v2 = 0; } v2 = Math.max(Math.abs(delta), v2); var v3 = v1.vPosition + v2 * v4; v1.vPosition = Math.max(0, Math.min(v3, v1.maxVPosition)); v1.dispatchEvent({'type': 'scroll', 'direction': 'vertical', 'position': v1.vPosition}); } }; v2.createChildren = function (Void) { super.createChildren(); if (this.mask_mc == undefined) { this.mask_mc = this.createObject('BoundingBox', 'mask_mc', this.MASK_DEPTH); } this.mask_mc._visible = false; }; v2.invalidate = function (Void) { super.invalidate(); }; v2.draw = function (Void) { this.size(); }; v2.size = function (Void) { super.size(); }; v2.scrollProxy = function (docObj) { this._parent.onScroll(docObj); }; v2.onScroll = function (docObj) { var v3 = docObj.target; var v2 = v3.scrollPosition; if (v3 == this.vScroller) { var v4 = 'vertical'; var v5 = '__vPosition'; } else { var v4 = 'horizontal'; var v5 = '__hPosition'; } this[v5] = v2; this.dispatchEvent({'type': 'scroll', 'direction': v4, 'position': v2}); }; v2.setEnabled = function (v) { this.hScroller.enabled = v; this.vScroller.enabled = this.hScroller.enabled; }; v2.childLoaded = function (obj) { super.childLoaded(obj); obj.setMask(this.mask_mc); }; v1.symbolName = 'ScrollView'; v1.symbolOwner = mx.core.ScrollView; v1.version = '2.0.2.127'; v2.className = 'ScrollView'; v2.__vScrollPolicy = 'auto'; v2.__hScrollPolicy = 'off'; v2.__vPosition = 0; v2.__hPosition = 0; v2.numberOfCols = 0; v2.rowC = 0; v2.columnWidth = 1; v2.rowH = 0; v2.heightPadding = 0; v2.widthPadding = 0; v2.MASK_DEPTH = 10000; v2.addProperty('hPosition', v2.__get__hPosition, v2.__set__hPosition); v2.addProperty('hScrollPolicy', v2.__get__hScrollPolicy, v2.__set__hScrollPolicy); v2.addProperty('maxHPosition', v2.__get__maxHPosition, v2.__set__maxHPosition); v2.addProperty('maxVPosition', v2.__get__maxVPosition, function () {}); v2.addProperty('vPosition', v2.__get__vPosition, v2.__set__vPosition); v2.addProperty('vScrollPolicy', v2.__get__vScrollPolicy, v2.__set__vScrollPolicy); ASSetPropFlags(mx.core.ScrollView.prototype, null, 1); } #endinitclip } movieClip 11 __Packages.mx.controls.listclasses.DataSelector { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.listclasses) { _global.mx.controls.listclasses = new Object(); } if (!_global.mx.controls.listclasses.DataSelector) { var v1 = function () { super(); }; mx.controls.listclasses.DataSelector = v1; var v2 = new Object(); mx.controls.listclasses.DataSelector.prototype = v2; v1.Initialize = function (obj) { var v3 = mx.controls.listclasses.DataSelector.mixinProps; var v4 = v3.length; obj = obj.prototype; var v1 = 0; while (v1 < v4) { obj[v3[v1]] = mx.controls.listclasses.DataSelector.mixins[v3[v1]]; ++v1; } mx.controls.listclasses.DataSelector.mixins.createProp(obj, 'dataProvider', true); mx.controls.listclasses.DataSelector.mixins.createProp(obj, 'length', false); mx.controls.listclasses.DataSelector.mixins.createProp(obj, 'value', false); mx.controls.listclasses.DataSelector.mixins.createProp(obj, 'selectedIndex', true); mx.controls.listclasses.DataSelector.mixins.createProp(obj, 'selectedIndices', true); mx.controls.listclasses.DataSelector.mixins.createProp(obj, 'selectedItems', false); mx.controls.listclasses.DataSelector.mixins.createProp(obj, 'selectedItem', true); return true; }; v2.createProp = function (obj, propName, setter) { var p = (propName.charAt(0)).toUpperCase() + propName.substr(1); var v2 = null; var v4 = function (Void) { return this['get' + p](); }; if (setter) { v2 = function (val) { this['set' + p](val); }; } obj.addProperty(propName, v4, v2); }; v2.setDataProvider = function (dP) { if (this.__vPosition != 0) { this.setVPosition(0); } this.clearSelected(); this.__dataProvider.removeEventListener(this); this.__dataProvider = dP; dP.addEventListener('modelChanged', this); dP.addView(this); this.modelChanged({'eventName': 'updateAll'}); }; v2.getDataProvider = function (Void) { return this.__dataProvider; }; v2.addItemAt = function (index, label, data) { if (index < 0 || !this.enabled) { return undefined; } var v2 = this.__dataProvider; if (v2 == undefined) { this.__dataProvider = new Array(); v2 = this.__dataProvider; v2.addEventListener('modelChanged', this); index = 0; } if (typeof label == 'object' || typeof v2.getItemAt(0) == 'string') { v2.addItemAt(index, label); } else { v2.addItemAt(index, {'label': label, 'data': data}); } }; v2.addItem = function (label, data) { this.addItemAt(this.__dataProvider.length, label, data); }; v2.removeItemAt = function (index) { return this.__dataProvider.removeItemAt(index); }; v2.removeAll = function (Void) { this.__dataProvider.removeAll(); }; v2.replaceItemAt = function (index, newLabel, newData) { if (typeof newLabel == 'object') { this.__dataProvider.replaceItemAt(index, newLabel); } else { this.__dataProvider.replaceItemAt(index, {'label': newLabel, 'data': newData}); } }; v2.sortItemsBy = function (fieldName, order) { this.lastSelID = this.__dataProvider.getItemID(this.lastSelected); this.__dataProvider.sortItemsBy(fieldName, order); }; v2.sortItems = function (compareFunc, order) { this.lastSelID = this.__dataProvider.getItemID(this.lastSelected); this.__dataProvider.sortItems(compareFunc, order); }; v2.getLength = function (Void) { return this.__dataProvider.length; }; v2.getItemAt = function (index) { return this.__dataProvider.getItemAt(index); }; v2.modelChanged = function (eventObj) { var v3 = eventObj.firstItem; var v6 = eventObj.lastItem; var v7 = eventObj.eventName; if (v7 == undefined) { v7 = eventObj.event; v3 = eventObj.firstRow; v6 = eventObj.lastRow; if (v7 == 'addRows') { eventObj.eventName = 'addItems'; v7 = 'addItems'; } else { if (v7 == 'deleteRows') { eventObj.eventName = 'removeItems'; v7 = 'removeItems'; } else { if (v7 == 'updateRows') { eventObj.eventName = 'updateItems'; v7 = 'updateItems'; } } } } if (v7 == 'addItems') { for (var v2 in this.selected) { var v5 = this.selected[v2]; if (v5 != undefined && v5 >= v3) { this.selected[v2] += v6 - v3 + 1; } } } else { if (v7 == 'removeItems') { if (this.__dataProvider.length == 0) { delete this.selected; } else { var v9 = eventObj.removedIDs; var v10 = v9.length; var v2 = 0; while (v2 < v10) { var v4 = v9[v2]; if (this.selected[v4] != undefined) { delete this.selected[v4]; } ++v2; } for (v2 in this.selected) { if (this.selected[v2] >= v3) { this.selected[v2] -= v6 - v3 + 1; } } } } else { if (v7 == 'sort') { if (typeof this.__dataProvider.getItemAt(0) != 'object') { delete this.selected; } else { var v10 = this.__dataProvider.length; var v2 = 0; while (v2 < v10) { if (this.isSelected(v2)) { var v4 = this.__dataProvider.getItemID(v2); if (v4 == this.lastSelID) { this.lastSelected = v2; } this.selected[v4] = v2; } ++v2; } } } else { if (v7 == 'filterModel') { this.setVPosition(0); } } } } this.invUpdateControl = true; this.invalidate(); }; v2.getValue = function (Void) { var v2 = this.getSelectedItem(); if (typeof v2 != 'object') { return v2; } return (v2.data == undefined) ? v2.label : v2.data; }; v2.getSelectedIndex = function (Void) { for (var v3 in this.selected) { var v2 = this.selected[v3]; if (v2 != undefined) { return v2; } } }; v2.setSelectedIndex = function (index) { if (index >= 0 && index < this.__dataProvider.length && this.enabled) { delete this.selected; this.selectItem(index, true); this.lastSelected = index; this.invUpdateControl = true; this.invalidate(); } else { if (index == undefined) { this.clearSelected(); } } }; v2.getSelectedIndices = function (Void) { var v2 = new Array(); for (var v3 in this.selected) { v2.push(this.selected[v3]); } v2.reverse(); return v2.length > 0 ? v2 : undefined; }; v2.setSelectedIndices = function (indexArray) { if (this.multipleSelection != true) { return undefined; } delete this.selected; var v3 = 0; while (v3 < indexArray.length) { var v2 = indexArray[v3]; if (v2 >= 0 && v2 < this.__dataProvider.length) { this.selectItem(v2, true); } ++v3; } this.invUpdateControl = true; this.updateControl(); }; v2.getSelectedItems = function (Void) { var v3 = this.getSelectedIndices(); var v4 = new Array(); var v2 = 0; while (v2 < v3.length) { v4.push(this.getItemAt(v3[v2])); ++v2; } return v4.length > 0 ? v4 : undefined; }; v2.getSelectedItem = function (Void) { return this.__dataProvider.getItemAt(this.getSelectedIndex()); }; v2.selectItem = function (index, selectedFlag) { if (this.selected == undefined) { this.selected = new Object(); } var v2 = this.__dataProvider.getItemID(index); if (v2 == undefined) { return undefined; } if (selectedFlag && !this.isSelected(index)) { this.selected[v2] = index; } else { if (!selectedFlag) { delete this.selected[v2]; } } }; v2.isSelected = function (index) { var v2 = this.__dataProvider.getItemID(index); if (v2 == undefined) { return false; } return this.selected[v2] != undefined; }; v2.clearSelected = function (transition) { var v3 = 0; for (var v4 in this.selected) { var v2 = this.selected[v4]; if (v2 != undefined && this.__vPosition <= v2 && v2 < this.__vPosition + this.__rowCount) { this.rows[v2 - this.__vPosition].drawRow(this.rows[v2 - this.__vPosition].item, 'normal', transition && v3 % 3 == 0); } ++v3; } delete this.selected; }; v1.mixins = new mx.controls.listclasses.DataSelector(); v1.mixinProps = ['setDataProvider', 'getDataProvider', 'addItem', 'addItemAt', 'removeAll', 'removeItemAt', 'replaceItemAt', 'sortItemsBy', 'sortItems', 'getLength', 'getItemAt', 'modelChanged', 'calcPreferredWidthFromData', 'calcPreferredHeightFromData', 'getValue', 'getSelectedIndex', 'getSelectedItem', 'getSelectedIndices', 'getSelectedItems', 'selectItem', 'isSelected', 'clearSelected', 'setSelectedIndex', 'setSelectedIndices']; ASSetPropFlags(mx.controls.listclasses.DataSelector.prototype, null, 1); } #endinitclip } movieClip 12 __Packages.mx.events.EventDispatcher { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.events) { _global.mx.events = new Object(); } if (!_global.mx.events.EventDispatcher) { var v1 = function () {}; mx.events.EventDispatcher = v1; var v2 = v1.prototype; v1._removeEventListener = function (queue, event, handler) { if (queue != undefined) { var v4 = queue.length; var v1; v1 = 0; while (v1 < v4) { var v2 = queue[v1]; if (v2 == handler) { queue.splice(v1, 1); return undefined; } ++v1; } } }; v1.initialize = function (object) { if (mx.events.EventDispatcher._fEventDispatcher == undefined) { mx.events.EventDispatcher._fEventDispatcher = new mx.events.EventDispatcher(); } object.addEventListener = mx.events.EventDispatcher._fEventDispatcher.addEventListener; object.removeEventListener = mx.events.EventDispatcher._fEventDispatcher.removeEventListener; object.dispatchEvent = mx.events.EventDispatcher._fEventDispatcher.dispatchEvent; object.dispatchQueue = mx.events.EventDispatcher._fEventDispatcher.dispatchQueue; }; v2.dispatchQueue = function (queueObj, eventObj) { var v7 = '__q_' + eventObj.type; var v4 = queueObj[v7]; if (v4 != undefined) { var v5; for (v5 in v4) { var v1 = v4[v5]; var v3 = typeof v1; if (v3 == 'object' || v3 == 'movieclip') { if (v1.handleEvent != undefined) { v1.handleEvent(eventObj); } if (v1[eventObj.type] != undefined) { if (mx.events.EventDispatcher.exceptions[eventObj.type] == undefined) { v1[eventObj.type](eventObj); } } } else { v1.apply(queueObj, [eventObj]); } } } }; v2.dispatchEvent = function (eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + 'Handler'](eventObj); this.dispatchQueue(this, eventObj); }; v2.addEventListener = function (event, handler) { var v3 = '__q_' + event; if (this[v3] == undefined) { this[v3] = new Array(); } _global.ASSetPropFlags(this, v3, 1); mx.events.EventDispatcher._removeEventListener(this[v3], event, handler); this[v3].push(handler); }; v2.removeEventListener = function (event, handler) { var v2 = '__q_' + event; mx.events.EventDispatcher._removeEventListener(this[v2], event, handler); }; v1._fEventDispatcher = undefined; v1.exceptions = {'move': 1, 'draw': 1, 'load': 1}; ASSetPropFlags(mx.events.EventDispatcher.prototype, null, 1); } #endinitclip } movieClip 13 __Packages.mx.controls.listclasses.DataProvider { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.listclasses) { _global.mx.controls.listclasses = new Object(); } if (!_global.mx.controls.listclasses.DataProvider) { var v1 = function (obj) { super(); }; mx.controls.listclasses.DataProvider = v1; var v2 = new Object(); mx.controls.listclasses.DataProvider.prototype = v2; v1.Initialize = function (obj) { var v4 = mx.controls.listclasses.DataProvider.mixinProps; var v6 = v4.length; obj = obj.prototype; var v3 = 0; while (v3 < v6) { obj[v4[v3]] = mx.controls.listclasses.DataProvider.mixins[v4[v3]]; _global.ASSetPropFlags(obj, v4[v3], 1); ++v3; } mx.events.EventDispatcher.initialize(obj); _global.ASSetPropFlags(obj, 'addEventListener', 1); _global.ASSetPropFlags(obj, 'removeEventListener', 1); _global.ASSetPropFlags(obj, 'dispatchEvent', 1); _global.ASSetPropFlags(obj, 'dispatchQueue', 1); Object.prototype.LargestID = 0; Object.prototype.getID = function () { if (this.__ID__ == undefined) { this.__ID__ = Object.prototype.LargestID++; _global.ASSetPropFlags(this, '__ID__', 1); } return this.__ID__; }; _global.ASSetPropFlags(Object.prototype, 'LargestID', 1); _global.ASSetPropFlags(Object.prototype, 'getID', 1); return true; }; v2.addItemAt = function (index, value) { if (index < this.length) { this.splice(index, 0, value); } else { if (index > this.length) { trace('Cannot add an item past the end of the DataProvider'); return undefined; } } this[index] = value; this.updateViews('addItems', index, index); }; v2.addItem = function (value) { this.addItemAt(this.length, value); }; v2.addItemsAt = function (index, newItems) { index = Math.min(this.length, index); newItems.unshift(index, 0); this.splice.apply(this, newItems); newItems.splice(0, 2); this.updateViews('addItems', index, index + newItems.length - 1); }; v2.removeItemsAt = function (index, len) { var v3 = new Array(); var v2 = 0; while (v2 < len) { v3.push(this.getItemID(index + v2)); ++v2; } var v6 = this.splice(index, len); this.dispatchEvent({'type': 'modelChanged', 'eventName': 'removeItems', 'firstItem': index, 'lastItem': index + len - 1, 'removedItems': v6, 'removedIDs': v3}); }; v2.removeItemAt = function (index) { var v2 = this[index]; this.removeItemsAt(index, 1); return v2; }; v2.removeAll = function (Void) { this.splice(0); this.updateViews('removeItems', 0, this.length - 1); }; v2.replaceItemAt = function (index, itemObj) { if (index < 0 || index >= this.length) { return undefined; } var v3 = this.getItemID(index); this[index] = itemObj; this[index].__ID__ = v3; this.updateViews('updateItems', index, index); }; v2.getItemAt = function (index) { return this[index]; }; v2.getItemID = function (index) { var v2 = this[index]; if (typeof v2 != 'object' && v2 != undefined) { return index; } else { return v2.getID(); } }; v2.sortItemsBy = function (fieldName, order) { if (typeof order == 'string') { this.sortOn(fieldName); if (order.toUpperCase() == 'DESC') { this.reverse(); } } else { this.sortOn(fieldName, order); } this.updateViews('sort'); }; v2.sortItems = function (compareFunc, optionFlags) { this.sort(compareFunc, optionFlags); this.updateViews('sort'); }; v2.editField = function (index, fieldName, newData) { this[index][fieldName] = newData; this.dispatchEvent({'type': 'modelChanged', 'eventName': 'updateField', 'firstItem': index, 'lastItem': index, 'fieldName': fieldName}); }; v2.getEditingData = function (index, fieldName) { return this[index][fieldName]; }; v2.updateViews = function (event, first, last) { this.dispatchEvent({'type': 'modelChanged', 'eventName': event, 'firstItem': first, 'lastItem': last}); }; v1.mixinProps = ['addView', 'addItem', 'addItemAt', 'removeAll', 'removeItemAt', 'replaceItemAt', 'getItemAt', 'getItemID', 'sortItemsBy', 'sortItems', 'updateViews', 'addItemsAt', 'removeItemsAt', 'getEditingData', 'editField']; v1.evtDipatcher = mx.events.EventDispatcher; v1.mixins = new mx.controls.listclasses.DataProvider(); ASSetPropFlags(mx.controls.listclasses.DataProvider.prototype, null, 1); } #endinitclip } movieClip 14 __Packages.mx.controls.listclasses.ScrollSelectList { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.listclasses) { _global.mx.controls.listclasses = new Object(); } if (!_global.mx.controls.listclasses.ScrollSelectList) { var v1 = function () { super(); }; mx.controls.listclasses.ScrollSelectList = v1; var v2 = new mx.core.ScrollView(); mx.controls.listclasses.ScrollSelectList.prototype = v2; v2.layoutContent = function (x, y, w, h) { delete this.invLayoutContent; var v4 = Math.ceil(h / this.__rowHeight); this.roundUp = h % this.__rowHeight != 0; var v12 = v4 - this.__rowCount; if (v12 < 0) { var v3 = v4; while (v3 < this.__rowCount) { this.rows[v3].removeMovieClip(); delete this.rows[v3]; ++v3; } this.topRowZ += v12; } else { if (v12 > 0) { if (this.rows == undefined) { this.rows = new Array(); } var v3 = this.__rowCount; while (v3 < v4) { this.rows[v3] = this.listContent.createObject(this.__rowRenderer, 'listRow' + this.topRowZ++, this.topRowZ, {'owner': this, 'styleName': this, 'rowIndex': v3}); var v2 = this.rows[v3]; v2._x = x; v2._y = Math.round(v3 * this.__rowHeight + y); v2.setSize(w, this.__rowHeight); v2.drawRow(this.__dataProvider.getItemAt(this.__vPosition + v3), this.getStateAt(this.__vPosition + v3)); v2.lastY = v2._y; ++v3; } } } if (w != this.tW) { var v11 = v12 > 0 ? this.__rowCount : v4; v3 = 0; while (v3 < v11) { this.rows[v3].setSize(w, this.__rowHeight); ++v3; } } if (this.layoutX != x || this.layoutY != y) { v3 = 0; while (v3 < v4) { this.rows[v3]._x = x; this.rows[v3]._y = Math.round(v3 * this.__rowHeight + y); ++v3; } } this.__rowCount = v4; this.layoutX = x; this.layoutY = y; this.tW = w; this.tH = h; }; v2.getRowHeight = function (Void) { return this.__rowHeight; }; v2.setRowHeight = function (v) { this.__rowHeight = v; this.invRowHeight = true; this.invalidate(); }; v2.__get__rowHeight = function () { return this.getRowHeight(); }; v2.__set__rowHeight = function (w) { this.setRowHeight(w); return this.__get__rowHeight(); }; v2.setRowCount = function (v) { this.__rowCount = v; }; v2.getRowCount = function (Void) { if (this.__rowCount != 0) { var v2 = this.__rowCount; return v2; } var v2 = Math.ceil(this.__height / this.__rowHeight); return v2; }; v2.__get__rowCount = function () { return this.getRowCount(); }; v2.__set__rowCount = function (w) { this.setRowCount(w); return this.__get__rowCount(); }; v2.setEnabled = function (v) { super.setEnabled(v); this.invUpdateControl = true; this.invalidate(); }; v2.setCellRenderer = function (cR) { this.__cellRenderer = cR; var v2 = 0; while (v2 < this.rows.length) { this.rows[v2].setCellRenderer(true); ++v2; } this.invUpdateControl = true; this.invalidate(); }; v2.__set__cellRenderer = function (cR) { this.setCellRenderer(cR); return this.__get__cellRenderer(); }; v2.__get__cellRenderer = function () { return this.__cellRenderer; }; v2.__set__labelField = function (field) { this.setLabelField(field); return this.__get__labelField(); }; v2.setLabelField = function (field) { this.__labelField = field; this.invUpdateControl = true; this.invalidate(); }; v2.__get__labelField = function () { return this.__labelField; }; v2.__set__labelFunction = function (func) { this.setLabelFunction(func); return this.__get__labelFunction(); }; v2.setLabelFunction = function (func) { this.__labelFunction = func; this.invUpdateControl = true; this.invalidate(); }; v2.__get__labelFunction = function () { return this.__labelFunction; }; v2.__set__iconField = function (field) { this.setIconField(field); return this.__get__iconField(); }; v2.setIconField = function (field) { this.__iconField = field; this.invUpdateControl = true; this.invalidate(); }; v2.__get__iconField = function () { return this.__iconField; }; v2.__set__iconFunction = function (func) { this.setIconFunction(func); return this.__get__iconFunction(); }; v2.setIconFunction = function (func) { this.__iconFunction = func; this.invUpdateControl = true; this.invalidate(); }; v2.__get__iconFunction = function () { return this.__iconFunction; }; v2.setVPosition = function (pos) { if (pos < 0) { return undefined; } if (pos > 0 && pos > this.getLength() - this.__rowCount + this.roundUp) { return undefined; } var v8 = pos - this.__vPosition; if (v8 == 0) { return undefined; } this.__vPosition = pos; var v10 = v8 > 0; v8 = Math.abs(v8); if (v8 >= this.__rowCount) { this.updateControl(); } else { var v4 = new Array(); var v9 = this.__rowCount - v8; var v12 = v8 * this.__rowHeight; var v11 = v9 * this.__rowHeight; var v6 = v10 ? 1 : -1; var v3 = 0; while (v3 < this.__rowCount) { if (v3 < v8 && v10 || v3 >= v9 && !v10) { this.rows[v3]._y += Math.round(v6 * v11); var v5 = v3 + v6 * v9; var v7 = this.__vPosition + v5; v4[v5] = this.rows[v3]; v4[v5].rowIndex = v5; v4[v5].drawRow(this.__dataProvider.getItemAt(v7), this.getStateAt(v7), false); } else { this.rows[v3]._y -= Math.round(v6 * v12); var v5 = v3 - v6 * v8; v4[v5] = this.rows[v3]; v4[v5].rowIndex = v5; } ++v3; } this.rows = v4; v3 = 0; while (v3 < this.__rowCount) { this.rows[v3].swapDepths(this.baseRowZ + v3); ++v3; } } this.lastPosition = pos; super.setVPosition(pos); }; v2.setPropertiesAt = function (index, obj) { var v2 = this.__dataProvider.getItemID(index); if (v2 == undefined) { return undefined; } if (this.propertyTable == undefined) { this.propertyTable = new Object(); } this.propertyTable[v2] = obj; this.rows[index - this.__vPosition].drawRow(this.__dataProvider.getItemAt(index), this.getStateAt(index)); }; v2.getPropertiesAt = function (index) { var v2 = this.__dataProvider.getItemID(index); if (v2 == undefined) { return undefined; } return this.propertyTable[v2]; }; v2.getPropertiesOf = function (obj) { var v2 = obj.getID(); if (v2 == undefined) { return undefined; } return this.propertyTable[v2]; }; v2.getStyle = function (styleProp) { var v2 = super.getStyle(styleProp); var v3 = mx.styles.StyleManager.colorNames[v2]; if (v3 != undefined) { v2 = v3; } return v2; }; v2.updateControl = function (Void) { var v2 = 0; while (v2 < this.__rowCount) { this.rows[v2].drawRow(this.__dataProvider.getItemAt(v2 + this.__vPosition), this.getStateAt(v2 + this.__vPosition)); ++v2; } delete this.invUpdateControl; }; v2.getStateAt = function (index) { return this.isSelected(index) ? 'selected' : 'normal'; }; v2.selectRow = function (rowIndex, transition, allowChangeEvent) { if (!this.selectable) { return undefined; } var v3 = this.__vPosition + rowIndex; var v8 = this.__dataProvider.getItemAt(v3); var v5 = this.rows[rowIndex]; if (v8 == undefined) { return undefined; } if (transition == undefined) { transition = true; } if (allowChangeEvent == undefined) { allowChangeEvent = this.wasKeySelected; } this.changeFlag = true; if (!this.multipleSelection && !Key.isDown(17) || !Key.isDown(16) && !Key.isDown(17)) { this.clearSelected(transition); this.selectItem(v3, true); this.lastSelected = v3; v5.drawRow(v5.item, this.getStateAt(v3), transition); } else { if (Key.isDown(16) && this.multipleSelection) { if (this.lastSelected == undefined) { this.lastSelected = v3; } var v4 = this.lastSelected < v3 ? 1 : -1; this.clearSelected(false); var v2 = this.lastSelected; while (v2 != v3) { this.selectItem(v2, true); if (v2 >= this.__vPosition && v2 < this.__vPosition + this.__rowCount) { this.rows[v2 - this.__vPosition].drawRow(this.rows[v2 - this.__vPosition].item, 'selected', false); } v2 += v4; } this.selectItem(v3, true); v5.drawRow(v5.item, 'selected', transition); } else { if (Key.isDown(17)) { var v7 = this.isSelected(v3); if (!this.multipleSelection || this.wasKeySelected) { this.clearSelected(transition); } if (!(!this.multipleSelection && v7)) { this.selectItem(v3, !v7); var v9 = !v7 ? 'selected' : 'normal'; v5.drawRow(v5.item, v9, transition); } this.lastSelected = v3; } } } if (allowChangeEvent) { this.dispatchEvent({'type': 'change'}); } delete this.wasKeySelected; }; v2.dragScroll = function (Void) { clearInterval(this.dragScrolling); if (this._ymouse < 0) { this.setVPosition(this.__vPosition - 1); this.selectRow(0, false); var v2 = Math.min(-this._ymouse - 30, 0); this.scrollInterval = 0.593 * v2 * v2 + 1 + this.minScrollInterval; this.dragScrolling = setInterval(this, 'dragScroll', this.scrollInterval); this.dispatchEvent({'type': 'scroll', 'direction': 'vertical', 'position': this.__vPosition}); } else { if (this._ymouse > this.__height) { var v3 = this.__vPosition; this.setVPosition(this.__vPosition + 1); if (v3 != this.__vPosition) { this.selectRow(this.__rowCount - 1 - this.roundUp, false); } var v2 = Math.min(this._ymouse - this.__height - 30, 0); this.scrollInterval = 0.593 * v2 * v2 + 1 + this.minScrollInterval; this.dragScrolling = setInterval(this, 'dragScroll', this.scrollInterval); this.dispatchEvent({'type': 'scroll', 'direction': 'vertical', 'position': this.__vPosition}); } else { this.dragScrolling = setInterval(this, 'dragScroll', 15); } } updateAfterEvent(); }; v2.__onMouseUp = function (Void) { clearInterval(this.dragScrolling); delete this.dragScrolling; delete this.dragScrolling; delete this.isPressed; delete this.onMouseUp; if (!this.selectable) { return undefined; } if (this.changeFlag) { this.dispatchEvent({'type': 'change'}); } delete this.changeFlag; }; v2.moveSelBy = function (incr) { if (!this.selectable) { this.setVPosition(this.__vPosition + incr); return undefined; } var v3 = this.getSelectedIndex(); if (v3 == undefined) { v3 = -1; } var v2 = v3 + incr; v2 = Math.max(0, v2); v2 = Math.min(this.getLength() - 1, v2); if (v2 == v3) { return undefined; } if (v3 < this.__vPosition || v3 >= this.__vPosition + this.__rowCount) { this.setVPosition(v3); } if (v2 >= this.__vPosition + this.__rowCount - this.roundUp || v2 < this.__vPosition) { this.setVPosition(this.__vPosition + incr); } this.wasKeySelected = true; this.selectRow(v2 - this.__vPosition, false); }; v2.keyDown = function (e) { if (this.selectable) { if (this.findInputText()) { return undefined; } } if (e.code == 40) { this.moveSelBy(1); } else { if (e.code == 38) { this.moveSelBy(-1); } else { if (e.code == 34) { if (this.selectable) { var v3 = this.getSelectedIndex(); if (v3 == undefined) { v3 = 0; } this.setVPosition(v3); } this.moveSelBy(this.__rowCount - 1 - this.roundUp); } else { if (e.code == 33) { if (this.selectable) { var v3 = this.getSelectedIndex(); if (v3 == undefined) { v3 = 0; } this.setVPosition(v3); } this.moveSelBy(1 - this.__rowCount + this.roundUp); } else { if (e.code == 36) { this.moveSelBy(-this.__dataProvider.length); } else { if (e.code == 35) { this.moveSelBy(this.__dataProvider.length); } } } } } } }; v2.findInputText = function (Void) { var v2 = Key.getAscii(); if (v2 >= 33 && v2 <= 126) { this.findString(String.fromCharCode(v2)); return true; } }; v2.findString = function (str) { if (this.__dataProvider.length == 0) { return undefined; } var v4 = this.getSelectedIndex(); if (v4 == undefined) { v4 = 0; } var v6 = 0; var v3 = v4 + 1; while (v3 != v4) { var v2 = this.__dataProvider.getItemAt(v3); if (v2 instanceof XMLNode) { v2 = v2.attributes[this.__labelField]; } else { if (typeof v2 != 'string') { v2 = String(v2[this.__labelField]); } } v2 = v2.substring(0, str.length); if (str == v2 || str.toUpperCase() == v2.toUpperCase()) { v6 = v3 - v4; break; } if (v3 >= this.getLength() - 1) { v3 = -1; } ++v3; } if (v6 != 0) { this.moveSelBy(v6); } }; v2.onRowPress = function (rowIndex) { if (!this.enabled) { return undefined; } this.isPressed = true; this.dragScrolling = setInterval(this, 'dragScroll', 15); this.onMouseUp = this.__onMouseUp; if (!this.selectable) { return undefined; } this.selectRow(rowIndex); }; v2.onRowRelease = function (rowIndex) {}; v2.onRowRollOver = function (rowIndex) { if (!this.enabled) { return undefined; } var v2 = this.rows[rowIndex].item; if (this.getStyle('useRollOver') && v2 != undefined) { this.rows[rowIndex].drawRow(v2, 'highlighted', false); } this.dispatchEvent({'type': 'itemRollOver', 'index': rowIndex + this.__vPosition}); }; v2.onRowRollOut = function (rowIndex) { if (!this.enabled) { return undefined; } if (this.getStyle('useRollOver')) { this.rows[rowIndex].drawRow(this.rows[rowIndex].item, this.getStateAt(rowIndex + this.__vPosition), false); } this.dispatchEvent({'type': 'itemRollOut', 'index': rowIndex + this.__vPosition}); }; v2.onRowDragOver = function (rowIndex) { if (!this.enabled || this.isPressed != true || !this.selectable) { return undefined; } if (this.dropEnabled) { } else { if (this.dragScrolling) { this.selectRow(rowIndex, false); } else { this.onMouseUp = this.__onMouseUp; this.onRowPress(rowIndex); } } }; v2.onRowDragOut = function (rowIndex) { if (!this.enabled) { return undefined; } if (this.dragEnabled) { } else { this.onRowRollOut(rowIndex); } }; v2.init = function (Void) { super.init(); this.tabEnabled = true; this.tabChildren = false; if (this.__dataProvider == undefined) { this.__dataProvider = new Array(); this.__dataProvider.addEventListener('modelChanged', this); } this.topRowZ = 10; this.baseRowZ = 10; }; v2.createChildren = function (Void) { super.createChildren(); this.listContent = this.createEmptyMovieClip('content_mc', this.CONTENTDEPTH); this.invLayoutContent = true; this.invalidate(); }; v2.draw = function (Void) { if (this.invRowHeight) { delete this.invRowHeight; this.__rowCount = 0; this.listContent.removeMovieClip(); this.listContent = this.createEmptyMovieClip('content_mc', this.CONTENTDEPTH); } if (this.invUpdateControl) { this.updateControl(); } this.border_mc.draw(); }; v2.invalidateStyle = function (propName) { if (this.isRowStyle[propName]) { this.invUpdateControl = true; this.invalidate(); } else { var v3 = 0; while (v3 < this.__rowCount) { this.rows[v3].invalidateStyle(propName); ++v3; } } super.invalidateStyle(propName); }; v1.mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.listclasses.ScrollSelectList); v1.mixIt2 = mx.controls.listclasses.DataProvider.Initialize(Array); v2.CONTENTDEPTH = 100; v2.__hPosition = 0; v2.__rowRenderer = 'SelectableRow'; v2.__rowHeight = 22; v2.__rowCount = 0; v2.__labelField = 'label'; v2.minScrollInterval = 30; v2.dropEnabled = false; v2.dragEnabled = false; v2.className = 'ScrollSelectList'; v2.isRowStyle = {'styleName': true, 'backgroundColor': true, 'selectionColor': true, 'rollOverColor': true, 'selectionDisabledColor': true, 'backgroundDisabledColor': true, 'textColor': true, 'textSelectedColor': true, 'textRollOverColor': true, 'textDisabledColor': true, 'alternatingRowColors': true, 'defaultIcon': true}; v2.roundUp = 0; v2.selectable = true; v2.multipleSelection = false; v2.addProperty('cellRenderer', v2.__get__cellRenderer, v2.__set__cellRenderer); v2.addProperty('iconField', v2.__get__iconField, v2.__set__iconField); v2.addProperty('iconFunction', v2.__get__iconFunction, v2.__set__iconFunction); v2.addProperty('labelField', v2.__get__labelField, v2.__set__labelField); v2.addProperty('labelFunction', v2.__get__labelFunction, v2.__set__labelFunction); v2.addProperty('rowCount', v2.__get__rowCount, v2.__set__rowCount); v2.addProperty('rowHeight', v2.__get__rowHeight, v2.__set__rowHeight); ASSetPropFlags(mx.controls.listclasses.ScrollSelectList.prototype, null, 1); } #endinitclip } movieClip 15 __Packages.mx.controls.List { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.List) { var v1 = function () { super(); }; mx.controls.List = v1; var v2 = new mx.controls.listclasses.ScrollSelectList(); mx.controls.List.prototype = v2; v2.setEnabled = function (v) { super.setEnabled(v); this.border_mc.backgroundColorName = v ? 'backgroundColor' : 'backgroundDisabledColor'; this.border_mc.invalidate(); }; v2.__get__labels = function () { return this.__labels; }; v2.__set__labels = function (lbls) { this.__labels = lbls; this.setDataProvider(lbls); return this.__get__labels(); }; v2.setVPosition = function (pos) { pos = Math.min(this.__dataProvider.length - this.__get__rowCount() + this.roundUp, pos); pos = Math.max(0, pos); super.setVPosition(pos); }; v2.setHPosition = function (pos) { pos = Math.max(Math.min(this.__maxHPosition, pos), 0); super.setHPosition(pos); this.hScroll(pos); }; v2.setMaxHPosition = function (pos) { this.__maxHPosition = pos; this.invScrollProps = true; this.invalidate(); }; v2.setHScrollPolicy = function (policy) { if (policy.toLowerCase() == 'auto' && !this.autoHScrollAble) { return undefined; } super.setHScrollPolicy(policy); if (policy == 'off') { this.setHPosition(0); this.setVPosition(Math.min(this.__dataProvider.length - this.__get__rowCount() + this.roundUp, this.__vPosition)); } }; v2.setRowCount = function (rC) { if (isNaN(rC)) { return undefined; } var v2 = this.getViewMetrics(); this.setSize(this.__width, this.__rowHeight * rC + v2.top + v2.bottom); }; v2.layoutContent = function (x, y, tW, tH, dW, dH) { this.totalWidth = tW; this.totalHeight = tH; this.displayWidth = dW; var v4 = (this.__hScrollPolicy == 'on' || this.__hScrollPolicy == 'auto') ? Math.max(tW, dW) : dW; super.layoutContent(x, y, v4, dH); }; v2.modelChanged = function (eventObj) { super.modelChanged(eventObj); var v3 = eventObj.eventName; if (v3 == 'addItems' || v3 == 'removeItems' || v3 == 'updateAll' || v3 == 'filterModel') { this.invScrollProps = true; this.invalidate('invScrollProps'); } }; v2.onScroll = function (eventObj) { var v3 = eventObj.target; if (v3 == this.vScroller) { this.setVPosition(v3.scrollPosition); } else { this.hScroll(v3.scrollPosition); } super.onScroll(eventObj); }; v2.hScroll = function (pos) { this.__hPosition = pos; this.listContent._x = -pos; }; v2.init = function (Void) { super.init(); if ((this.__get__labels()).length > 0) { var v6 = new Array(); var v3 = 0; while (v3 < (this.__get__labels()).length) { v6.addItem({'label': (this.__get__labels())[v3], 'data': this.data[v3]}); ++v3; } this.setDataProvider(v6); } this.__maxHPosition = 0; }; v2.createChildren = function (Void) { super.createChildren(); this.listContent.setMask(this.mask_mc); this.border_mc.move(0, 0); this.border_mc.setSize(this.__width, this.__height); }; v2.getRowCount = function (Void) { var v2 = this.getViewMetrics(); return (this.__rowCount == 0) ? Math.ceil((this.__height - v2.top - v2.bottom) / this.__rowHeight) : this.__rowCount; }; v2.size = function (Void) { super.size(); this.configureScrolling(); var v3 = this.getViewMetrics(); this.layoutContent(v3.left, v3.top, this.__width + this.__maxHPosition, this.totalHeight, this.__width - v3.left - v3.right, this.__height - v3.top - v3.bottom); }; v2.draw = function (Void) { if (this.invRowHeight) { this.invScrollProps = true; super.draw(); this.listContent.setMask(this.mask_mc); this.invLayoutContent = true; } if (this.invScrollProps) { this.configureScrolling(); delete this.invScrollProps; } if (this.invLayoutContent) { var v3 = this.getViewMetrics(); this.layoutContent(v3.left, v3.top, this.__width + this.__maxHPosition, this.totalHeight, this.__width - v3.left - v3.right, this.__height - v3.top - v3.bottom); } super.draw(); }; v2.configureScrolling = function (Void) { var v2 = this.__dataProvider.length; if (this.__vPosition > Math.max(0, v2 - this.getRowCount() + this.roundUp)) { this.setVPosition(Math.max(0, Math.min(v2 - this.getRowCount() + this.roundUp, this.__vPosition))); } var v3 = this.getViewMetrics(); var v4 = (this.__hScrollPolicy != 'off') ? this.__maxHPosition + this.__width - v3.left - v3.right : this.__width - v3.left - v3.right; if (v2 == undefined) { v2 = 0; } this.setScrollProperties(v4, 1, v2, this.__rowHeight); if (this.oldVWidth != v4) { this.invLayoutContent = true; } this.oldVWidth = v4; }; v1.symbolOwner = mx.controls.List; v1.symbolName = 'List'; v2.className = 'List'; v1.version = '2.0.2.127'; v2.clipParameters = {'rowHeight': 1, 'enabled': 1, 'visible': 1, 'labels': 1}; v2.scrollDepth = 1; v2.__vScrollPolicy = 'on'; v2.autoHScrollAble = false; v2.addProperty('labels', v2.__get__labels, v2.__set__labels); ASSetPropFlags(mx.controls.List.prototype, null, 1); } #endinitclip } movieClip 112 __Packages.mx.skins.SkinElement { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.SkinElement) { var v1 = function () { super(); }; mx.skins.SkinElement = v1; var v2 = new MovieClip(); mx.skins.SkinElement.prototype = v2; v1.registerElement = function (name, className) { Object.registerClass(name, (className == undefined) ? mx.skins.SkinElement : className); _global.skinRegistry[name] = true; }; v2.__set__visible = function (visible) { this._visible = visible; }; v2.move = function (x, y) { this._x = x; this._y = y; }; v2.setSize = function (w, h) { this._width = w; this._height = h; }; ASSetPropFlags(mx.skins.SkinElement.prototype, null, 1); } #endinitclip } movieClip 113 __Packages.mx.styles.CSSTextStyles { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.CSSTextStyles) { var v1 = function () {}; mx.styles.CSSTextStyles = v1; var v2 = v1.prototype; v1.addTextStyles = function (o, bColor) { o.addProperty('textAlign', function () { return this._tf.align; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.align = x; }); o.addProperty('fontWeight', function () { return (this._tf.bold != undefined) ? (this._tf.bold ? 'bold' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.bold = x == 'bold'; }); if (bColor) { o.addProperty('color', function () { return this._tf.color; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.color = x; }); } o.addProperty('fontFamily', function () { return this._tf.font; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.font = x; }); o.addProperty('textIndent', function () { return this._tf.indent; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.indent = x; }); o.addProperty('fontStyle', function () { return (this._tf.italic != undefined) ? (this._tf.italic ? 'italic' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.italic = x == 'italic'; }); o.addProperty('marginLeft', function () { return this._tf.leftMargin; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.leftMargin = x; }); o.addProperty('marginRight', function () { return this._tf.rightMargin; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.rightMargin = x; }); o.addProperty('fontSize', function () { return this._tf.size; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.size = x; }); o.addProperty('textDecoration', function () { return (this._tf.underline != undefined) ? (this._tf.underline ? 'underline' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.underline = x == 'underline'; }); o.addProperty('embedFonts', function () { return this._tf.embedFonts; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.embedFonts = x; }); }; ASSetPropFlags(mx.styles.CSSTextStyles.prototype, null, 1); } #endinitclip } movieClip 114 __Packages.mx.styles.StyleManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.StyleManager) { var v1 = function () {}; mx.styles.StyleManager = v1; var v2 = v1.prototype; v1.registerInheritingStyle = function (styleName) { mx.styles.StyleManager.inheritingStyles[styleName] = true; }; v1.isInheritingStyle = function (styleName) { return mx.styles.StyleManager.inheritingStyles[styleName] == true; }; v1.registerColorStyle = function (styleName) { mx.styles.StyleManager.colorStyles[styleName] = true; }; v1.isColorStyle = function (styleName) { return mx.styles.StyleManager.colorStyles[styleName] == true; }; v1.registerColorName = function (colorName, colorValue) { mx.styles.StyleManager.colorNames[colorName] = colorValue; }; v1.isColorName = function (colorName) { return mx.styles.StyleManager.colorNames[colorName] != undefined; }; v1.getColorName = function (colorName) { return mx.styles.StyleManager.colorNames[colorName]; }; v1.inheritingStyles = {'color': true, 'direction': true, 'fontFamily': true, 'fontSize': true, 'fontStyle': true, 'fontWeight': true, 'textAlign': true, 'textIndent': true}; v1.colorStyles = {'barColor': true, 'trackColor': true, 'borderColor': true, 'buttonColor': true, 'color': true, 'dateHeaderColor': true, 'dateRollOverColor': true, 'disabledColor': true, 'fillColor': true, 'highlightColor': true, 'scrollTrackColor': true, 'selectedDateColor': true, 'shadowColor': true, 'strokeColor': true, 'symbolBackgroundColor': true, 'symbolBackgroundDisabledColor': true, 'symbolBackgroundPressedColor': true, 'symbolColor': true, 'symbolDisabledColor': true, 'themeColor': true, 'todayIndicatorColor': true, 'shadowCapColor': true, 'borderCapColor': true, 'focusColor': true}; v1.colorNames = {'black': 0, 'white': 16777215, 'red': 16711680, 'green': 65280, 'blue': 255, 'magenta': 16711935, 'yellow': 16776960, 'cyan': 65535, 'haloGreen': 8453965, 'haloBlue': 2881013, 'haloOrange': 16761344}; v1.TextFormatStyleProps = {'font': true, 'size': true, 'color': true, 'leftMargin': false, 'rightMargin': false, 'italic': true, 'bold': true, 'align': true, 'indent': true, 'underline': false, 'embedFonts': false}; v1.TextStyleMap = {'textAlign': true, 'fontWeight': true, 'color': true, 'fontFamily': true, 'textIndent': true, 'fontStyle': true, 'lineHeight': true, 'marginLeft': true, 'marginRight': true, 'fontSize': true, 'textDecoration': true, 'embedFonts': true}; ASSetPropFlags(mx.styles.StyleManager.prototype, null, 1); } #endinitclip } movieClip 115 __Packages.mx.styles.CSSStyleDeclaration { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.CSSStyleDeclaration) { var v1 = function () {}; mx.styles.CSSStyleDeclaration = v1; var v2 = v1.prototype; v2.__getTextFormat = function (tf, bAll) { var v5 = false; if (this._tf != undefined) { var v2; for (v2 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v2]) { if (tf[v2] == undefined) { var v3 = this._tf[v2]; if (v3 != undefined) { tf[v2] = v3; } else { v5 = true; } } } } return v5; } v5 = true; return v5; }; v2.getStyle = function (styleProp) { var v2 = this[styleProp]; var v3 = mx.styles.StyleManager.getColorName(v2); return (v3 == undefined) ? v2 : v3; }; v1.classConstruct = function () { mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true); return true; }; v1.classConstructed = mx.styles.CSSStyleDeclaration.classConstruct(); v1.CSSTextStylesDependency = mx.styles.CSSTextStyles; ASSetPropFlags(mx.styles.CSSStyleDeclaration.prototype, null, 1); } #endinitclip } movieClip 116 __Packages.mx.skins.Border { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.Border) { var v1 = function () { super(); }; mx.skins.Border = v1; var v2 = new mx.core.UIObject(); mx.skins.Border.prototype = v2; v2.init = function (Void) { super.init(); }; v1.symbolName = 'Border'; v1.symbolOwner = mx.skins.Border; v2.className = 'Border'; v2.tagBorder = 0; v2.idNames = new Array('border_mc'); ASSetPropFlags(mx.skins.Border.prototype, null, 1); } #endinitclip } movieClip 117 __Packages.mx.skins.RectBorder { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.RectBorder) { var v1 = function () { super(); }; mx.skins.RectBorder = v1; var v2 = new mx.skins.Border(); mx.skins.RectBorder.prototype = v2; v2.__get__width = function () { return this.__width; }; v2.__get__height = function () { return this.__height; }; v2.init = function (Void) { super.init(); }; v2.draw = function (Void) { this.size(); }; v2.getBorderMetrics = function (Void) { var v2 = this.offset; if (this.__borderMetrics == undefined) { this.__borderMetrics = {'left': v2, 'top': v2, 'right': v2, 'bottom': v2}; return this.__borderMetrics; } this.__borderMetrics.left = v2; this.__borderMetrics.top = v2; this.__borderMetrics.right = v2; this.__borderMetrics.bottom = v2; return this.__borderMetrics; }; v2.__get__borderMetrics = function () { return this.getBorderMetrics(); }; v2.drawBorder = function (Void) {}; v2.size = function (Void) { this.drawBorder(); }; v2.setColor = function (Void) { this.drawBorder(); }; v1.symbolName = 'RectBorder'; v1.symbolOwner = mx.skins.RectBorder; v1.version = '2.0.2.127'; v2.className = 'RectBorder'; v2.borderStyleName = 'borderStyle'; v2.borderColorName = 'borderColor'; v2.shadowColorName = 'shadowColor'; v2.highlightColorName = 'highlightColor'; v2.buttonColorName = 'buttonColor'; v2.backgroundColorName = 'backgroundColor'; v2.addProperty('borderMetrics', v2.__get__borderMetrics, function () {}); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(mx.skins.RectBorder.prototype, null, 1); } #endinitclip } movieClip 118 __Packages.mx.managers.DepthManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.DepthManager) { var v1 = function () { MovieClip.prototype.createClassChildAtDepth = this.createClassChildAtDepth; MovieClip.prototype.createChildAtDepth = this.createChildAtDepth; MovieClip.prototype.setDepthTo = this.setDepthTo; MovieClip.prototype.setDepthAbove = this.setDepthAbove; MovieClip.prototype.setDepthBelow = this.setDepthBelow; MovieClip.prototype.findNextAvailableDepth = this.findNextAvailableDepth; MovieClip.prototype.shuffleDepths = this.shuffleDepths; MovieClip.prototype.getDepthByFlag = this.getDepthByFlag; MovieClip.prototype.buildDepthTable = this.buildDepthTable; _global.ASSetPropFlags(MovieClip.prototype, 'createClassChildAtDepth', 1); _global.ASSetPropFlags(MovieClip.prototype, 'createChildAtDepth', 1); _global.ASSetPropFlags(MovieClip.prototype, 'setDepthTo', 1); _global.ASSetPropFlags(MovieClip.prototype, 'setDepthAbove', 1); _global.ASSetPropFlags(MovieClip.prototype, 'setDepthBelow', 1); _global.ASSetPropFlags(MovieClip.prototype, 'findNextAvailableDepth', 1); _global.ASSetPropFlags(MovieClip.prototype, 'shuffleDepths', 1); _global.ASSetPropFlags(MovieClip.prototype, 'getDepthByFlag', 1); _global.ASSetPropFlags(MovieClip.prototype, 'buildDepthTable', 1); }; mx.managers.DepthManager = v1; var v2 = v1.prototype; v1.sortFunction = function (a, b) { if (a.getDepth() > b.getDepth()) { return 1; } return -1; }; v1.test = function (depth) { if (depth == mx.managers.DepthManager.reservedDepth) { return false; } else { return true; } }; v1.createClassObjectAtDepth = function (className, depthSpace, initObj) { var v1; switch (depthSpace) { case mx.managers.DepthManager.kCursor: v1 = mx.managers.DepthManager.holder.createClassChildAtDepth(className, mx.managers.DepthManager.kTopmost, initObj); return v1; case mx.managers.DepthManager.kTooltip: v1 = mx.managers.DepthManager.holder.createClassChildAtDepth(className, mx.managers.DepthManager.kTop, initObj); return v1; } return v1; }; v1.createObjectAtDepth = function (linkageName, depthSpace, initObj) { var v1; switch (depthSpace) { case mx.managers.DepthManager.kCursor: v1 = mx.managers.DepthManager.holder.createChildAtDepth(linkageName, mx.managers.DepthManager.kTopmost, initObj); return v1; case mx.managers.DepthManager.kTooltip: v1 = mx.managers.DepthManager.holder.createChildAtDepth(linkageName, mx.managers.DepthManager.kTop, initObj); return v1; } return v1; }; v2.createClassChildAtDepth = function (className, depthFlag, initObj) { if (this._childCounter == undefined) { this._childCounter = 0; } var v3 = this.buildDepthTable(); var v2 = this.getDepthByFlag(depthFlag, v3); var v6 = 'down'; if (depthFlag == mx.managers.DepthManager.kBottom) { v6 = 'up'; } var v5; if (v3[v2] != undefined) { v5 = v2; v2 = this.findNextAvailableDepth(v2, v3, v6); } var v4 = this.createClassObject(className, 'depthChild' + this._childCounter++, v2, initObj); if (v5 != undefined) { v3[v2] = v4; this.shuffleDepths(v4, v5, v3, v6); } if (depthFlag == mx.managers.DepthManager.kTopmost) { v4._topmost = true; } return v4; }; v2.createChildAtDepth = function (linkageName, depthFlag, initObj) { if (this._childCounter == undefined) { this._childCounter = 0; } var v3 = this.buildDepthTable(); var v2 = this.getDepthByFlag(depthFlag, v3); var v6 = 'down'; if (depthFlag == mx.managers.DepthManager.kBottom) { v6 = 'up'; } var v5; if (v3[v2] != undefined) { v5 = v2; v2 = this.findNextAvailableDepth(v2, v3, v6); } var v4 = this.createObject(linkageName, 'depthChild' + this._childCounter++, v2, initObj); if (v5 != undefined) { v3[v2] = v4; this.shuffleDepths(v4, v5, v3, v6); } if (depthFlag == mx.managers.DepthManager.kTopmost) { v4._topmost = true; } return v4; }; v2.setDepthTo = function (depthFlag) { var v2 = this._parent.buildDepthTable(); var v3 = this._parent.getDepthByFlag(depthFlag, v2); if (v2[v3] != undefined) { this.shuffleDepths(this, v3, v2, undefined); } else { this.swapDepths(v3); } if (depthFlag == mx.managers.DepthManager.kTopmost) { this._topmost = true; } else { delete this._topmost; } }; v2.setDepthAbove = function (targetInstance) { if (targetInstance._parent != this._parent) { return undefined; } var v2 = targetInstance.getDepth() + 1; var v3 = this._parent.buildDepthTable(); if (v3[v2] != undefined && this.getDepth() < v2) { v2 -= 1; } if (v2 > mx.managers.DepthManager.highestDepth) { v2 = mx.managers.DepthManager.highestDepth; } if (v2 == mx.managers.DepthManager.highestDepth) { this._parent.shuffleDepths(this, v2, v3, 'down'); } else { if (v3[v2] != undefined) { this._parent.shuffleDepths(this, v2, v3, undefined); } else { this.swapDepths(v2); } } }; v2.setDepthBelow = function (targetInstance) { if (targetInstance._parent != this._parent) { return undefined; } var v6 = targetInstance.getDepth() - 1; var v3 = this._parent.buildDepthTable(); if (v3[v6] != undefined && this.getDepth() > v6) { v6 += 1; } var v4 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; var v5; for (v5 in v3) { var v2 = v3[v5]; if (v2._parent != undefined) { v4 = Math.min(v4, v2.getDepth()); } } if (v6 < v4) { v6 = v4; } if (v6 == v4) { this._parent.shuffleDepths(this, v6, v3, 'up'); } else { if (v3[v6] != undefined) { this._parent.shuffleDepths(this, v6, v3, undefined); } else { this.swapDepths(v6); } } }; v2.findNextAvailableDepth = function (targetDepth, depthTable, direction) { var v5 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; if (targetDepth < v5) { targetDepth = v5; } if (depthTable[targetDepth] == undefined) { return targetDepth; } var v2 = targetDepth; var v1 = targetDepth; if (direction == 'down') { while (depthTable[v1] != undefined) { --v1; } return v1; } while (depthTable[v2] != undefined) { ++v2; } return v2; }; v2.shuffleDepths = function (subject, targetDepth, depthTable, direction) { var v9 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; var v8 = v9; var v5; for (v5 in depthTable) { var v7 = depthTable[v5]; if (v7._parent != undefined) { v9 = Math.min(v9, v7.getDepth()); } } if (direction == undefined) { if (subject.getDepth() > targetDepth) { direction = 'up'; } else { direction = 'down'; } } var v1 = new Array(); for (v5 in depthTable) { v7 = depthTable[v5]; if (v7._parent != undefined) { v1.push(v7); } } v1.sort(mx.managers.DepthManager.sortFunction); if (direction == 'up') { var v3; var v11; while (v1.length > 0) { v3 = v1.pop(); if (v3 == subject) { break; } } while (v1.length > 0) { v11 = subject.getDepth(); v3 = v1.pop(); var v4 = v3.getDepth(); if (v11 > v4 + 1) { if (v4 >= 0) { subject.swapDepths(v4 + 1); } else { if (v11 > v8 && v4 < v8) { subject.swapDepths(v8); } } } subject.swapDepths(v3); if (v4 == targetDepth) { break; } } } else { if (direction == 'down') { var v3; while (v1.length > 0) { v3 = v1.shift(); if (v3 == subject) { break; } } while (v1.length > 0) { var v11 = v3.getDepth(); v3 = v1.shift(); var v4 = v3.getDepth(); if (v11 < v4 - 1 && v4 > 0) { subject.swapDepths(v4 - 1); } subject.swapDepths(v3); if (v4 == targetDepth) { break; } } } } }; v2.getDepthByFlag = function (depthFlag, depthTable) { var v2 = 0; if (depthFlag == mx.managers.DepthManager.kTop || depthFlag == mx.managers.DepthManager.kNotopmost) { var v5 = 0; var v7 = false; var v8; for (v8 in depthTable) { var v9 = depthTable[v8]; var v3 = typeof v9; if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) { if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) { if (!v9._topmost) { v2 = Math.max(v2, v9.getDepth()); } else { if (!v7) { v5 = v9.getDepth(); v7 = true; } else { v5 = Math.min(v5, v9.getDepth()); } } } } } v2 += 20; if (v7) { if (v2 >= v5) { v2 = v5 - 1; } } } else { if (depthFlag == mx.managers.DepthManager.kBottom) { for (var v8 in depthTable) { var v9 = depthTable[v8]; var v3 = typeof v9; if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) { if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) { v2 = Math.min(v2, v9.getDepth()); } } } v2 -= 20; } else { if (depthFlag == mx.managers.DepthManager.kTopmost) { for (var v8 in depthTable) { var v9 = depthTable[v8]; var v3 = typeof v9; if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) { if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) { v2 = Math.max(v2, v9.getDepth()); } } } v2 += 100; } } } if (v2 >= mx.managers.DepthManager.highestDepth) { v2 = mx.managers.DepthManager.highestDepth; } var v6 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; for (v9 in depthTable) { var v4 = depthTable[v9]; if (v4._parent != undefined) { v6 = Math.min(v6, v4.getDepth()); } } if (v2 <= v6) { v2 = v6; } return v2; }; v2.buildDepthTable = function (Void) { var v5 = new Array(); var v4; for (v4 in this) { var v2 = this[v4]; var v3 = typeof v2; if (v3 == 'movieclip' || v3 == 'object' && v2.__getTextFormat != undefined) { if (v2._parent == this) { v5[v2.getDepth()] = v2; } } } return v5; }; v1.reservedDepth = 1048575; v1.highestDepth = 1048574; v1.lowestDepth = -16383; v1.numberOfAuthortimeLayers = 383; v1.kCursor = 101; v1.kTooltip = 102; v1.kTop = 201; v1.kBottom = 202; v1.kTopmost = 203; v1.kNotopmost = 204; v1.holder = _root.createEmptyMovieClip('reserved', mx.managers.DepthManager.reservedDepth); v1.__depthManager = new mx.managers.DepthManager(); ASSetPropFlags(mx.managers.DepthManager.prototype, null, 1); } #endinitclip } movieClip 119 __Packages.mx.events.UIEventDispatcher { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.events) { _global.mx.events = new Object(); } if (!_global.mx.events.UIEventDispatcher) { var v1 = function () { super(); }; mx.events.UIEventDispatcher = v1; var v2 = new mx.events.EventDispatcher(); mx.events.UIEventDispatcher.prototype = v2; v1.addKeyEvents = function (obj) { if (obj.keyHandler == undefined) { obj.keyHandler = new Object(); var v1 = obj.keyHandler; v1.owner = obj; v1.onKeyDown = mx.events.UIEventDispatcher._fEventDispatcher.onKeyDown; v1.onKeyUp = mx.events.UIEventDispatcher._fEventDispatcher.onKeyUp; } Key.addListener(obj.keyHandler); }; v1.removeKeyEvents = function (obj) { Key.removeListener(obj.keyHandler); }; v1.addLoadEvents = function (obj) { if (obj.onLoad == undefined) { obj.onLoad = mx.events.UIEventDispatcher._fEventDispatcher.onLoad; obj.onUnload = mx.events.UIEventDispatcher._fEventDispatcher.onUnload; if (obj.getBytesTotal() == obj.getBytesLoaded()) { obj.doLater(obj, 'onLoad'); } } }; v1.removeLoadEvents = function (obj) { delete obj.onLoad; delete obj.onUnload; }; v1.initialize = function (obj) { if (mx.events.UIEventDispatcher._fEventDispatcher == undefined) { mx.events.UIEventDispatcher._fEventDispatcher = new mx.events.UIEventDispatcher(); } obj.addEventListener = mx.events.UIEventDispatcher._fEventDispatcher.__addEventListener; obj.__origAddEventListener = mx.events.UIEventDispatcher._fEventDispatcher.addEventListener; obj.removeEventListener = mx.events.UIEventDispatcher._fEventDispatcher.removeEventListener; obj.dispatchEvent = mx.events.UIEventDispatcher._fEventDispatcher.dispatchEvent; obj.dispatchQueue = mx.events.UIEventDispatcher._fEventDispatcher.dispatchQueue; }; v2.dispatchEvent = function (eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + 'Handler'](eventObj); this.dispatchQueue(mx.events.EventDispatcher, eventObj); this.dispatchQueue(this, eventObj); }; v2.onKeyDown = function (Void) { this.owner.dispatchEvent({'type': 'keyDown', 'code': Key.getCode(), 'ascii': Key.getAscii(), 'shiftKey': Key.isDown(16), 'ctrlKey': Key.isDown(17)}); }; v2.onKeyUp = function (Void) { this.owner.dispatchEvent({'type': 'keyUp', 'code': Key.getCode(), 'ascii': Key.getAscii(), 'shiftKey': Key.isDown(16), 'ctrlKey': Key.isDown(17)}); }; v2.onLoad = function (Void) { if (this.__sentLoadEvent != true) { this.dispatchEvent({'type': 'load'}); } this.__sentLoadEvent = true; }; v2.onUnload = function (Void) { this.dispatchEvent({'type': 'unload'}); }; v2.__addEventListener = function (event, handler) { this.__origAddEventListener(event, handler); var v3 = mx.events.UIEventDispatcher.lowLevelEvents; for (var v5 in v3) { if (mx.events.UIEventDispatcher[v5][event] != undefined) { var v2 = v3[v5][0]; mx.events.UIEventDispatcher[v2](this); } } }; v2.removeEventListener = function (event, handler) { var v6 = '__q_' + event; mx.events.EventDispatcher._removeEventListener(this[v6], event, handler); if (this[v6].length == 0) { var v2 = mx.events.UIEventDispatcher.lowLevelEvents; for (var v5 in v2) { if (mx.events.UIEventDispatcher[v5][event] != undefined) { var v3 = v2[v5][1]; mx.events.UIEventDispatcher[v2[v5][1]](this); } } } }; v1.keyEvents = {'keyDown': 1, 'keyUp': 1}; v1.loadEvents = {'load': 1, 'unload': 1}; v1.lowLevelEvents = {'keyEvents': ['addKeyEvents', 'removeKeyEvents'], 'loadEvents': ['addLoadEvents', 'removeLoadEvents']}; v1._fEventDispatcher = undefined; ASSetPropFlags(mx.events.UIEventDispatcher.prototype, null, 1); } #endinitclip } movieClip 120 __Packages.mx.core.ExternalContent { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.ExternalContent) { var v1 = function () {}; mx.core.ExternalContent = v1; var v2 = v1.prototype; v2.loadExternal = function (url, placeholderClassName, instanceName, depth, initProps) { var v2; v2 = this.createObject(placeholderClassName, instanceName, depth, initProps); this[mx.core.View.childNameBase + this.numChildren] = v2; if (this.prepList == undefined) { this.prepList = new Object(); } this.prepList[instanceName] = {'obj': v2, 'url': url, 'complete': false, 'initProps': initProps}; this.prepareToLoadMovie(v2); return v2; }; v2.prepareToLoadMovie = function (obj) { obj.unloadMovie(); this.doLater(this, 'waitForUnload'); }; v2.waitForUnload = function () { var v3; for (v3 in this.prepList) { var v2 = this.prepList[v3]; if (v2.obj.getBytesTotal() == 0) { if (this.loadList == undefined) { this.loadList = new Object(); } this.loadList[v3] = v2; v2.obj.loadMovie(v2.url); delete this.prepList[v3]; this.doLater(this, 'checkLoadProgress'); } else { this.doLater(this, 'waitForUnload'); } } }; v2.checkLoadProgress = function () { var v8 = false; var v3; for (v3 in this.loadList) { var v2 = this.loadList[v3]; v2.loaded = v2.obj.getBytesLoaded(); v2.total = v2.obj.getBytesTotal(); if (v2.total > 0) { v2.obj._visible = false; this.dispatchEvent({'type': 'progress', 'target': v2.obj, 'current': v2.loaded, 'total': v2.total}); if (v2.loaded == v2.total) { if (this.loadedList == undefined) { this.loadedList = new Object(); } this.loadedList[v3] = v2; delete this.loadList[v3]; this.doLater(this, 'contentLoaded'); } } else { if (v2.total == -1) { if (v2.failedOnce != undefined) { ++v2.failedOnce; if (v2.failedOnce > 3) { this.dispatchEvent({'type': 'complete', 'target': v2.obj, 'current': v2.loaded, 'total': v2.total}); delete this.loadList[v3]; false; } } else { v2.failedOnce = 0; } } } v8 = true; } if (v8) { this.doLater(this, 'checkLoadProgress'); } }; v2.contentLoaded = function () { var v4; for (v4 in this.loadedList) { var v2 = this.loadedList[v4]; v2.obj._visible = true; v2.obj._complete = true; var v3; for (v3 in v2.initProps) { v2.obj[v3] = v2.initProps[v3]; } this.childLoaded(v2.obj); this.dispatchEvent({'type': 'complete', 'target': v2.obj, 'current': v2.loaded, 'total': v2.total}); delete this.loadedList[v4]; false; } }; v2.convertToUIObject = function (obj) { if (obj.setSize == undefined) { var v2 = mx.core.UIObject.prototype; obj.addProperty('width', v2.__get__width, null); obj.addProperty('height', v2.__get__height, null); obj.addProperty('left', v2.__get__left, null); obj.addProperty('x', v2.__get__x, null); obj.addProperty('top', v2.__get__top, null); obj.addProperty('y', v2.__get__y, null); obj.addProperty('right', v2.__get__right, null); obj.addProperty('bottom', v2.__get__bottom, null); obj.addProperty('visible', v2.__get__visible, v2.__set__visible); obj.move = mx.core.UIObject.prototype.move; obj.setSize = mx.core.UIObject.prototype.setSize; obj.size = mx.core.UIObject.prototype.size; mx.events.UIEventDispatcher.initialize(obj); } }; v1.enableExternalContent = function () {}; v1.classConstruct = function () { var v1 = mx.core.View.prototype; var v2 = mx.core.ExternalContent.prototype; v1.loadExternal = v2.loadExternal; v1.prepareToLoadMovie = v2.prepareToLoadMovie; v1.waitForUnload = v2.waitForUnload; v1.checkLoadProgress = v2.checkLoadProgress; v1.contentLoaded = v2.contentLoaded; v1.convertToUIObject = v2.convertToUIObject; return true; }; v1.classConstructed = mx.core.ExternalContent.classConstruct(); v1.ViewDependency = mx.core.View; ASSetPropFlags(mx.core.ExternalContent.prototype, null, 1); } #endinitclip } movieClip 121 __Packages.mx.skins.CustomBorder { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.CustomBorder) { var v1 = function () { super(); }; mx.skins.CustomBorder = v1; var v2 = new mx.skins.Border(); mx.skins.CustomBorder.prototype = v2; v2.__get__width = function () { return this.__width; }; v2.__get__height = function () { return this.__height; }; v2.init = function (Void) { super.init(); }; v2.createChildren = function (Void) {}; v2.draw = function (Void) { if (this.l_mc == undefined) { var v2 = this.setSkin(mx.skins.CustomBorder.tagL, this.leftSkin); if (this.horizontal) { this.minHeight = this.l_mc._height; this.minWidth = this.l_mc._width; } else { this.minHeight = this.l_mc._height; this.minWidth = this.l_mc._width; } } if (this.m_mc == undefined) { this.setSkin(mx.skins.CustomBorder.tagM, this.middleSkin); if (this.horizontal) { this.minHeight = this.m_mc._height; this.minWidth += this.m_mc._width; } else { this.minHeight += this.m_mc._height; this.minWidth = this.m_mc._width; } } if (this.r_mc == undefined) { this.setSkin(mx.skins.CustomBorder.tagR, this.rightSkin); if (this.horizontal) { this.minHeight = this.r_mc._height; this.minWidth += this.r_mc._width; } else { this.minHeight += this.r_mc._height; this.minWidth = this.r_mc._width; } } this.size(); }; v2.size = function (Void) { this.l_mc.move(0, 0); if (this.horizontal) { this.r_mc.move(this.__get__width() - this.r_mc.width, 0); this.m_mc.move(this.l_mc.width, 0); this.m_mc.setSize(this.r_mc.x - this.m_mc.x, this.m_mc.height); } else { this.r_mc.move(0, this.__get__height() - this.r_mc.height, 0); this.m_mc.move(0, this.l_mc.height); this.m_mc.setSize(this.m_mc.width, this.r_mc.y - this.m_mc.y); } }; v1.symbolName = 'CustomBorder'; v1.symbolOwner = mx.skins.CustomBorder; v1.version = '2.0.2.127'; v2.className = 'CustomBorder'; v1.tagL = 0; v1.tagM = 1; v1.tagR = 2; v2.idNames = new Array('l_mc', 'm_mc', 'r_mc'); v2.leftSkin = 'F3PieceLeft'; v2.middleSkin = 'F3PieceMiddle'; v2.rightSkin = 'F3PieceRight'; v2.horizontal = true; v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(mx.skins.CustomBorder.prototype, null, 1); } #endinitclip } movieClip 122 __Packages.mx.controls.scrollClasses.ScrollThumb { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.scrollClasses) { _global.mx.controls.scrollClasses = new Object(); } if (!_global.mx.controls.scrollClasses.ScrollThumb) { var v1 = function () { super(); }; mx.controls.scrollClasses.ScrollThumb = v1; var v2 = new mx.skins.CustomBorder(); mx.controls.scrollClasses.ScrollThumb.prototype = v2; v2.createChildren = function (Void) { super.createChildren(); this.useHandCursor = false; }; v2.setRange = function (_ymin, _ymax, _datamin, _datamax) { this.ymin = _ymin; this.ymax = _ymax; this.datamin = _datamin; this.datamax = _datamax; }; v2.dragThumb = function (Void) { this.scrollMove = this._ymouse - this.lastY; this.scrollMove += this._y; if (this.scrollMove < this.ymin) { this.scrollMove = this.ymin; } else { if (this.scrollMove > this.ymax) { this.scrollMove = this.ymax; } } this._parent.isScrolling = true; this._y = this.scrollMove; var v2 = Math.round((this.datamax - this.datamin) * (this._y - this.ymin) / (this.ymax - this.ymin)) + this.datamin; this._parent.scrollPosition = v2; this._parent.dispatchScrollEvent('ThumbTrack'); updateAfterEvent(); }; v2.stopDragThumb = function (Void) { this._parent.isScrolling = false; this._parent.dispatchScrollEvent('ThumbPosition'); this._parent.dispatchScrollChangedEvent(); delete this.onMouseMove; }; v2.onPress = function (Void) { this._parent.pressFocus(); this.lastY = this._ymouse; this.onMouseMove = this.dragThumb; super.onPress(); }; v2.onRelease = function (Void) { this._parent.releaseFocus(); this.stopDragThumb(); super.onRelease(); }; v2.onReleaseOutside = function (Void) { this._parent.releaseFocus(); this.stopDragThumb(); super.onReleaseOutside(); }; v2.draw = function () { super.draw(); if (this.grip_mc == undefined) { this.setSkin(3, this.gripSkin); } }; v2.size = function () { super.size(); this.grip_mc.move((this.__get__width() - this.grip_mc.width) / 2, (this.__get__height() - this.grip_mc.height) / 2); }; v1.symbolOwner = mx.skins.CustomBorder.symbolOwner; v2.className = 'ScrollThumb'; v2.btnOffset = 0; v2.horizontal = false; v2.idNames = new Array('l_mc', 'm_mc', 'r_mc', 'grip_mc'); ASSetPropFlags(mx.controls.scrollClasses.ScrollThumb.prototype, null, 1); } #endinitclip } movieClip 123 __Packages.mx.controls.SimpleButton { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.SimpleButton) { var v1 = function () { super(); }; mx.controls.SimpleButton = v1; var v2 = new mx.core.UIComponent(); mx.controls.SimpleButton.prototype = v2; v2.init = function (Void) { super.init(); if (this.preset == undefined) { this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; } this.useHandCursor = false; }; v2.createChildren = function (Void) { if (this.preset != undefined) { var v2 = this[this.idNames[this.preset]]; this[this.refNames[this.preset]] = v2; this.skinName = v2; if (this.falseOverSkin.length == 0) { this.rolloverSkin = this.fus; } if (this.falseOverIcon.length == 0) { this.rolloverIcon = this.fui; } this.initializing = false; } else { if (this.__state == true) { this.setStateVar(true); } else { if (this.falseOverSkin.length == 0) { this.rolloverSkin = this.fus; } if (this.falseOverIcon.length == 0) { this.rolloverIcon = this.fui; } } } }; v2.setIcon = function (tag, linkageName) { return this.setSkin(tag + 8, linkageName); }; v2.changeIcon = function (tag, linkageName) { this.linkLength = linkageName.length; var v2 = this.stateNames[tag] + 'Icon'; this[v2] = linkageName; this[this.idNames[tag + 8]] = v2; this.setStateVar(this.getState()); }; v2.changeSkin = function (tag, linkageName) { var v2 = this.stateNames[tag] + 'Skin'; this[v2] = linkageName; this[this.idNames[tag]] = v2; this.setStateVar(this.getState()); }; v2.viewIcon = function (varName) { var v4 = varName + 'Icon'; var v3 = this[v4]; if (typeof v3 == 'string') { var v5 = v3; if (this.__emphasized) { if (this[v3 + 'Emphasized'].length > 0) { v3 += 'Emphasized'; } } if (this[v3].length == 0) { return undefined; } v3 = this.setIcon(this.tagMap[v5], this[v3]); if (v3 == undefined && _global.isLivePreview) { v3 = this.setIcon(0, 'ButtonIcon'); } this[v4] = v3; } this.iconName._visible = false; this.iconName = v3; this.iconName._visible = true; }; v2.removeIcons = function () { var v3 = 0; while (v3 < 2) { var v2 = 8; while (v2 < 16) { this.destroyObject(this.idNames[v2]); this[this.stateNames[v2 - 8] + 'Icon'] = ''; ++v2; } ++v3; } this.refresh(); }; v2.setSkin = function (tag, linkageName, initobj) { if (initobj == undefined) { var v3 = super.setSkin(tag, linkageName, {'styleName': this}); this.calcSize(tag, v3); return v3; } var v3 = super.setSkin(tag, linkageName, initobj); this.calcSize(tag, v3); return v3; }; v2.calcSize = function (Void) { this.__width = this._width; this.__height = this._height; }; v2.viewSkin = function (varName, initObj) { var v3 = varName + 'Skin'; var v2 = this[v3]; if (typeof v2 == 'string') { var v4 = v2; if (this.__emphasized) { if (this[v2 + 'Emphasized'].length > 0) { v2 += 'Emphasized'; } } if (this[v2].length == 0) { return undefined; } v2 = this.setSkin(this.tagMap[v4], this[v2], (initObj != undefined) ? initObj : {'styleName': this}); this[v3] = v2; } this.skinName._visible = false; this.skinName = v2; this.skinName._visible = true; }; v2.showEmphasized = function (e) { if (e && !this.__emphatic) { if (mx.controls.SimpleButton.emphasizedStyleDeclaration != undefined) { this.__emphaticStyleName = this.styleName; this.styleName = mx.controls.SimpleButton.emphasizedStyleDeclaration; } this.__emphatic = true; } else { if (this.__emphatic) { this.styleName = this.__emphaticStyleName; } this.__emphatic = false; } }; v2.refresh = function (Void) { var v2 = this.getState(); if (this.enabled == false) { this.viewIcon('disabled'); this.viewSkin('disabled'); } else { this.viewSkin(this.phase); this.viewIcon(this.phase); } this.setView(this.phase == 'down'); this.iconName.enabled = this.enabled; }; v2.setView = function (offset) { if (this.iconName == undefined) { return undefined; } var v2 = offset ? this.btnOffset : 0; this.iconName._x = (this.__width - this.iconName._width) / 2 + v2; this.iconName._y = (this.__height - this.iconName._height) / 2 + v2; }; v2.setStateVar = function (state) { if (state) { if (this.trueOverSkin.length == 0) { this.rolloverSkin = this.tus; } else { this.rolloverSkin = this.trs; } if (this.trueOverIcon.length == 0) { this.rolloverIcon = this.tui; } else { this.rolloverIcon = this.tri; } this.upSkin = this.tus; this.downSkin = this.tds; this.disabledSkin = this.dts; this.upIcon = this.tui; this.downIcon = this.tdi; this.disabledIcon = this.dti; } else { if (this.falseOverSkin.length == 0) { this.rolloverSkin = this.fus; } else { this.rolloverSkin = this.frs; } if (this.falseOverIcon.length == 0) { this.rolloverIcon = this.fui; } else { this.rolloverIcon = this.fri; } this.upSkin = this.fus; this.downSkin = this.fds; this.disabledSkin = this.dfs; this.upIcon = this.fui; this.downIcon = this.fdi; this.disabledIcon = this.dfi; } this.__state = state; }; v2.setState = function (state) { if (state != this.__state) { this.setStateVar(state); this.invalidate(); } }; v2.size = function (Void) { this.refresh(); }; v2.draw = function (Void) { if (this.initializing) { this.initializing = false; this.skinName.visible = true; this.iconName.visible = true; } this.size(); }; v2.getState = function (Void) { return this.__state; }; v2.setToggle = function (val) { this.__toggle = val; if (this.__toggle == false) { this.setState(false); } }; v2.getToggle = function (Void) { return this.__toggle; }; v2.__set__toggle = function (val) { this.setToggle(val); return this.__get__toggle(); }; v2.__get__toggle = function () { return this.getToggle(); }; v2.__set__value = function (val) { this.setSelected(val); return this.__get__value(); }; v2.__get__value = function () { return this.getSelected(); }; v2.__set__selected = function (val) { this.setSelected(val); return this.__get__selected(); }; v2.__get__selected = function () { return this.getSelected(); }; v2.setSelected = function (val) { if (this.__toggle) { this.setState(val); } else { this.setState(this.initializing ? val : this.__state); } }; v2.getSelected = function () { return this.__state; }; v2.setEnabled = function (val) { if (this.enabled != val) { super.setEnabled(val); this.invalidate(); } }; v2.onPress = function (Void) { this.pressFocus(); this.phase = 'down'; this.refresh(); this.dispatchEvent({'type': 'buttonDown'}); if (this.autoRepeat) { this.interval = setInterval(this, 'onPressDelay', this.getStyle('repeatDelay')); } }; v2.onPressDelay = function (Void) { this.dispatchEvent({'type': 'buttonDown'}); if (this.autoRepeat) { clearInterval(this.interval); this.interval = setInterval(this, 'onPressRepeat', this.getStyle('repeatInterval')); } }; v2.onPressRepeat = function (Void) { this.dispatchEvent({'type': 'buttonDown'}); updateAfterEvent(); }; v2.onRelease = function (Void) { this.releaseFocus(); this.phase = 'rollover'; if (this.interval != undefined) { clearInterval(this.interval); delete this.interval; } if (this.getToggle()) { this.setState(!this.getState()); } else { this.refresh(); } this.dispatchEvent({'type': 'click'}); }; v2.onDragOut = function (Void) { this.phase = 'up'; this.refresh(); this.dispatchEvent({'type': 'buttonDragOut'}); }; v2.onDragOver = function (Void) { if (this.phase != 'up') { this.onPress(); return undefined; } else { this.phase = 'down'; this.refresh(); } }; v2.onReleaseOutside = function (Void) { this.releaseFocus(); this.phase = 'up'; if (this.interval != undefined) { clearInterval(this.interval); delete this.interval; } }; v2.onRollOver = function (Void) { this.phase = 'rollover'; this.refresh(); }; v2.onRollOut = function (Void) { this.phase = 'up'; this.refresh(); }; v2.getLabel = function (Void) { return this.fui.text; }; v2.setLabel = function (val) { if (typeof this.fui == 'string') { this.createLabel('fui', 8, val); this.fui.styleName = this; } else { this.fui.text = val; } var v4 = this.fui._getTextFormat(); var v2 = v4.getTextExtent2(val); this.fui._width = v2.width + 5; this.fui._height = v2.height + 5; this.iconName = this.fui; this.setView(this.__state); }; v2.__get__emphasized = function () { return this.__emphasized; }; v2.__set__emphasized = function (val) { this.__emphasized = val; var v2 = 0; while (v2 < 8) { this[this.idNames[v2]] = this.stateNames[v2] + 'Skin'; if (typeof this[this.idNames[v2 + 8]] == 'movieclip') { this[this.idNames[v2 + 8]] = this.stateNames[v2] + 'Icon'; } ++v2; } this.showEmphasized(this.__emphasized); this.setStateVar(this.__state); this.invalidateStyle(); return this.__get__emphasized(); }; v2.keyDown = function (e) { if (e.code == 32) { this.onPress(); } }; v2.keyUp = function (e) { if (e.code == 32) { this.onRelease(); } }; v2.onKillFocus = function (newFocus) { super.onKillFocus(); if (this.phase != 'up') { this.phase = 'up'; this.refresh(); } }; v1.symbolName = 'SimpleButton'; v1.symbolOwner = mx.controls.SimpleButton; v1.version = '2.0.2.127'; v2.className = 'SimpleButton'; v2.style3dInset = 4; v2.btnOffset = 1; v2.__toggle = false; v2.__state = false; v2.__emphasized = false; v2.__emphatic = false; v1.falseUp = 0; v1.falseDown = 1; v1.falseOver = 2; v1.falseDisabled = 3; v1.trueUp = 4; v1.trueDown = 5; v1.trueOver = 6; v1.trueDisabled = 7; v2.falseUpSkin = 'SimpleButtonUp'; v2.falseDownSkin = 'SimpleButtonIn'; v2.falseOverSkin = ''; v2.falseDisabledSkin = 'SimpleButtonUp'; v2.trueUpSkin = 'SimpleButtonIn'; v2.trueDownSkin = ''; v2.trueOverSkin = ''; v2.trueDisabledSkin = 'SimpleButtonIn'; v2.falseUpIcon = ''; v2.falseDownIcon = ''; v2.falseOverIcon = ''; v2.falseDisabledIcon = ''; v2.trueUpIcon = ''; v2.trueDownIcon = ''; v2.trueOverIcon = ''; v2.trueDisabledIcon = ''; v2.phase = 'up'; v2.fui = 'falseUpIcon'; v2.fus = 'falseUpSkin'; v2.fdi = 'falseDownIcon'; v2.fds = 'falseDownSkin'; v2.frs = 'falseOverSkin'; v2.fri = 'falseOverIcon'; v2.dfi = 'falseDisabledIcon'; v2.dfs = 'falseDisabledSkin'; v2.tui = 'trueUpIcon'; v2.tus = 'trueUpSkin'; v2.tdi = 'trueDownIcon'; v2.tds = 'trueDownSkin'; v2.trs = 'trueOverSkin'; v2.tri = 'trueOverIcon'; v2.dts = 'trueDisabledSkin'; v2.dti = 'trueDisabledIcon'; v2.rolloverSkin = mx.controls.SimpleButton.prototype.frs; v2.rolloverIcon = mx.controls.SimpleButton.prototype.fri; v2.upSkin = mx.controls.SimpleButton.prototype.fus; v2.downSkin = mx.controls.SimpleButton.prototype.fds; v2.disabledSkin = mx.controls.SimpleButton.prototype.dfs; v2.upIcon = mx.controls.SimpleButton.prototype.fui; v2.downIcon = mx.controls.SimpleButton.prototype.fdi; v2.disabledIcon = mx.controls.SimpleButton.prototype.dfi; v2.initializing = true; v2.idNames = ['fus', 'fds', 'frs', 'dfs', 'tus', 'tds', 'trs', 'dts', 'fui', 'fdi', 'fri', 'dfi', 'tui', 'tdi', 'tri', 'dti']; v2.stateNames = ['falseUp', 'falseDown', 'falseOver', 'falseDisabled', 'trueUp', 'trueDown', 'trueOver', 'trueDisabled']; v2.refNames = ['upSkin', 'downSkin', 'rolloverSkin', 'disabledSkin']; v2.tagMap = {'falseUpSkin': 0, 'falseDownSkin': 1, 'falseOverSkin': 2, 'falseDisabledSkin': 3, 'trueUpSkin': 4, 'trueDownSkin': 5, 'trueOverSkin': 6, 'trueDisabledSkin': 7, 'falseUpIcon': 0, 'falseDownIcon': 1, 'falseOverIcon': 2, 'falseDisabledIcon': 3, 'trueUpIcon': 4, 'trueDownIcon': 5, 'trueOverIcon': 6, 'trueDisabledIcon': 7}; v2.addProperty('emphasized', v2.__get__emphasized, v2.__set__emphasized); v2.addProperty('selected', v2.__get__selected, v2.__set__selected); v2.addProperty('toggle', v2.__get__toggle, v2.__set__toggle); v2.addProperty('value', v2.__get__value, v2.__set__value); ASSetPropFlags(mx.controls.SimpleButton.prototype, null, 1); } #endinitclip } movieClip 124 __Packages.mx.controls.scrollClasses.ScrollBar { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.scrollClasses) { _global.mx.controls.scrollClasses = new Object(); } if (!_global.mx.controls.scrollClasses.ScrollBar) { var v1 = function () { super(); }; mx.controls.scrollClasses.ScrollBar = v1; var v2 = new mx.core.UIComponent(); mx.controls.scrollClasses.ScrollBar.prototype = v2; v2.__get__scrollPosition = function () { return this._scrollPosition; }; v2.__set__scrollPosition = function (pos) { this._scrollPosition = pos; if (this.isScrolling != true) { pos = Math.min(pos, this.maxPos); pos = Math.max(pos, this.minPos); var v3 = (pos - this.minPos) * (this.scrollTrack_mc.height - this.scrollThumb_mc._height) / (this.maxPos - this.minPos) + this.scrollTrack_mc.top; this.scrollThumb_mc.move(0, v3); } return this.__get__scrollPosition(); }; v2.__get__pageScrollSize = function () { return this.largeScroll; }; v2.__set__pageScrollSize = function (lScroll) { this.largeScroll = lScroll; return this.__get__pageScrollSize(); }; v2.__set__lineScrollSize = function (sScroll) { this.smallScroll = sScroll; return this.__get__lineScrollSize(); }; v2.__get__lineScrollSize = function () { return this.smallScroll; }; v2.__get__virtualHeight = function () { return this.__height; }; v2.init = function (Void) { super.init(); this._scrollPosition = 0; this.tabEnabled = false; this.focusEnabled = false; this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; }; v2.createChildren = function (Void) { if (this.scrollTrack_mc == undefined) { this.setSkin(mx.controls.scrollClasses.ScrollBar.skinIDTrack, this.scrollTrackName); } this.scrollTrack_mc.visible = false; var v3 = new Object(); v3.enabled = false; v3.preset = mx.controls.SimpleButton.falseDisabled; v3.initProperties = 0; v3.autoRepeat = true; v3.tabEnabled = false; var v2; if (this.upArrow_mc == undefined) { v2 = this.createButton(this.upArrowName, 'upArrow_mc', mx.controls.scrollClasses.ScrollBar.skinIDUpArrow, v3); } v2.buttonDownHandler = this.onUpArrow; v2.clickHandler = this.onScrollChanged; this._minHeight = v2.height; this._minWidth = v2.width; if (this.downArrow_mc == undefined) { v2 = this.createButton(this.downArrowName, 'downArrow_mc', mx.controls.scrollClasses.ScrollBar.skinIDDownArrow, v3); } v2.buttonDownHandler = this.onDownArrow; v2.clickHandler = this.onScrollChanged; this._minHeight += v2.height; }; v2.createButton = function (linkageName, id, skinID, o) { if (skinID == mx.controls.scrollClasses.ScrollBar.skinIDUpArrow) { o.falseUpSkin = this.upArrowUpName; o.falseDownSkin = this.upArrowDownName; o.falseOverSkin = this.upArrowOverName; var v3 = this.createObject(linkageName, id, skinID, o); this[id].visible = false; this[id].useHandCursor = false; return v3; } o.falseUpSkin = this.downArrowUpName; o.falseDownSkin = this.downArrowDownName; o.falseOverSkin = this.downArrowOverName; var v3 = this.createObject(linkageName, id, skinID, o); this[id].visible = false; this[id].useHandCursor = false; return v3; }; v2.createThumb = function (Void) { var v2 = new Object(); v2.validateNow = true; v2.tabEnabled = false; v2.leftSkin = this.thumbTopName; v2.middleSkin = this.thumbMiddleName; v2.rightSkin = this.thumbBottomName; v2.gripSkin = this.thumbGripName; this.createClassObject(mx.controls.scrollClasses.ScrollThumb, 'scrollThumb_mc', mx.controls.scrollClasses.ScrollBar.skinIDThumb, v2); }; v2.setScrollProperties = function (pSize, mnPos, mxPos, ls) { var v4; var v2 = this.scrollTrack_mc; this.pageSize = pSize; this.largeScroll = (ls != undefined && ls > 0) ? ls : pSize; this.minPos = Math.max(mnPos, 0); this.maxPos = Math.max(mxPos, 0); this._scrollPosition = Math.max(this.minPos, this._scrollPosition); this._scrollPosition = Math.min(this.maxPos, this._scrollPosition); if (this.maxPos - this.minPos > 0 && this.enabled) { var v5 = this._scrollPosition; if (!this.initializing) { this.upArrow_mc.enabled = true; this.downArrow_mc.enabled = true; } v2.onDragOver = this.startTrackScroller; v2.onPress = v2.onDragOver; v2.onRelease = this.releaseScrolling; v2.stopScrolling = this.stopScrolling; v2.onDragOut = v2.stopScrolling; v2.onReleaseOutside = this.releaseScrolling; v2.useHandCursor = false; if (this.scrollThumb_mc == undefined) { this.createThumb(); } var v3 = this.scrollThumb_mc; if (this.scrollTrackOverName.length > 0) { v2.onRollOver = this.trackOver; v2.onRollOut = this.trackOut; } v4 = (this.pageSize / (this.maxPos - this.minPos + this.pageSize)) * v2.height; if (v4 < v3.minHeight) { if (v2.height < v3.minHeight) { v3.__set__visible(false); } else { v4 = v3.minHeight; v3.__set__visible(true); v3.setSize(this._minWidth, v3.minHeight + 0); } } else { v3.__set__visible(true); v3.setSize(this._minWidth, v4); } v3.setRange(this.upArrow_mc.__get__height() + 0, this.__get__virtualHeight() - this.downArrow_mc.__get__height() - v3.__get__height(), this.minPos, this.maxPos); v5 = Math.min(v5, this.maxPos); this.__set__scrollPosition(Math.max(v5, this.minPos)); } else { this.scrollThumb_mc.__set__visible(false); if (!this.initializing) { this.upArrow_mc.enabled = false; this.downArrow_mc.enabled = false; } delete v2.onPress; delete v2.onDragOver; delete v2.onRelease; delete v2.onDragOut; delete v2.onRollOver; delete v2.onRollOut; delete v2.onReleaseOutside; } if (this.initializing) { this.scrollThumb_mc.__set__visible(false); } }; v2.setEnabled = function (enabledFlag) { super.setEnabled(enabledFlag); this.setScrollProperties(this.pageSize, this.minPos, this.maxPos, this.largeScroll); }; v2.draw = function (Void) { if (this.initializing) { this.initializing = false; this.scrollTrack_mc.visible = true; this.upArrow_mc.__set__visible(true); this.downArrow_mc.__set__visible(true); } this.size(); }; v2.size = function (Void) { if (this._height == 1) { return undefined; } if (this.upArrow_mc == undefined) { return undefined; } var v3 = this.upArrow_mc.__get__height(); var v2 = this.downArrow_mc.__get__height(); this.upArrow_mc.move(0, 0); var v4 = this.scrollTrack_mc; v4._y = v3; v4._height = this.__get__virtualHeight() - v3 - v2; this.downArrow_mc.move(0, this.__get__virtualHeight() - v2); this.setScrollProperties(this.pageSize, this.minPos, this.maxPos, this.largeScroll); }; v2.dispatchScrollEvent = function (detail) { this.dispatchEvent({'type': 'scroll', 'detail': detail}); }; v2.isScrollBarKey = function (k) { if (k == 36) { if (this.__get__scrollPosition() != 0) { this.__set__scrollPosition(0); this.dispatchScrollEvent(this.minMode); } return true; return false; } if (k == 35) { if (this.__get__scrollPosition() < this.maxPos) { this.__set__scrollPosition(this.maxPos); this.dispatchScrollEvent(this.maxMode); } return true; } return false; }; v2.scrollIt = function (inc, mode) { var v3 = this.smallScroll; if (inc != 'Line') { v3 = (this.largeScroll == 0) ? this.pageSize : this.largeScroll; } var v2 = this._scrollPosition + mode * v3; if (v2 > this.maxPos) { v2 = this.maxPos; } else { if (v2 < this.minPos) { v2 = this.minPos; } } if (this.__get__scrollPosition() != v2) { this.__set__scrollPosition(v2); var v4 = mode < 0 ? this.minusMode : this.plusMode; this.dispatchScrollEvent(inc + v4); } }; v2.startTrackScroller = function (Void) { this._parent.pressFocus(); if (this._parent.scrollTrackDownName.length > 0) { if (this._parent.scrollTrackDown_mc == undefined) { this._parent.setSkin(mx.controls.scrollClasses.ScrollBar.skinIDTrackDown, this.scrollTrackDownName); } else { this._parent.scrollTrackDown_mc.visible = true; } } this._parent.trackScroller(); this._parent.scrolling = setInterval(this._parent, 'scrollInterval', this.getStyle('repeatDelay'), 'Page', -1); }; v2.scrollInterval = function (inc, mode) { clearInterval(this.scrolling); if (inc == 'Page') { this.trackScroller(); } else { this.scrollIt(inc, mode); } this.scrolling = setInterval(this, 'scrollInterval', this.getStyle('repeatInterval'), inc, mode); }; v2.trackScroller = function (Void) { if (this.scrollThumb_mc._y + this.scrollThumb_mc.__get__height() < this._ymouse) { this.scrollIt('Page', 1); } else { if (this.scrollThumb_mc._y > this._ymouse) { this.scrollIt('Page', -1); } } }; v2.dispatchScrollChangedEvent = function (Void) { this.dispatchEvent({'type': 'scrollChanged'}); }; v2.stopScrolling = function (Void) { clearInterval(this._parent.scrolling); this._parent.scrollTrackDown_mc.visible = false; }; v2.releaseScrolling = function (Void) { this._parent.releaseFocus(); this.stopScrolling(); this._parent.dispatchScrollChangedEvent(); }; v2.trackOver = function (Void) { if (this._parent.scrollTrackOverName.length > 0) { if (this._parent.scrollTrackOver_mc == undefined) { this._parent.setSkin(mx.controls.scrollClasses.ScrollBar.skinIDTrackOver, this.scrollTrackOverName); } else { this._parent.scrollTrackOver_mc.visible = true; } } }; v2.trackOut = function (Void) { this._parent.scrollTrackOver_mc.visible = false; }; v2.onUpArrow = function (Void) { this._parent.scrollIt('Line', -1); }; v2.onDownArrow = function (Void) { this._parent.scrollIt('Line', 1); }; v2.onScrollChanged = function (Void) { this._parent.dispatchScrollChangedEvent(); }; v1.symbolOwner = mx.core.UIComponent; v2.className = 'ScrollBar'; v2.minPos = 0; v2.maxPos = 0; v2.pageSize = 0; v2.largeScroll = 0; v2.smallScroll = 1; v2._scrollPosition = 0; v2.scrollTrackName = 'ScrollTrack'; v2.scrollTrackOverName = ''; v2.scrollTrackDownName = ''; v2.upArrowName = 'BtnUpArrow'; v2.upArrowUpName = 'ScrollUpArrowUp'; v2.upArrowOverName = 'ScrollUpArrowOver'; v2.upArrowDownName = 'ScrollUpArrowDown'; v2.downArrowName = 'BtnDownArrow'; v2.downArrowUpName = 'ScrollDownArrowUp'; v2.downArrowOverName = 'ScrollDownArrowOver'; v2.downArrowDownName = 'ScrollDownArrowDown'; v2.thumbTopName = 'ScrollThumbTopUp'; v2.thumbMiddleName = 'ScrollThumbMiddleUp'; v2.thumbBottomName = 'ScrollThumbBottomUp'; v2.thumbGripName = 'ScrollThumbGripUp'; v1.skinIDTrack = 0; v1.skinIDTrackOver = 1; v1.skinIDTrackDown = 2; v1.skinIDUpArrow = 3; v1.skinIDDownArrow = 4; v1.skinIDThumb = 5; v2.idNames = new Array('scrollTrack_mc', 'scrollTrackOver_mc', 'scrollTrackDown_mc', 'upArrow_mc', 'downArrow_mc'); v2.clipParameters = {'minPos': 1, 'maxPos': 1, 'pageSize': 1, 'scrollPosition': 1, 'lineScrollSize': 1, 'pageScrollSize': 1, 'visible': 1, 'enabled': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.scrollClasses.ScrollBar.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters); v2.initializing = true; v2.addProperty('lineScrollSize', v2.__get__lineScrollSize, v2.__set__lineScrollSize); v2.addProperty('pageScrollSize', v2.__get__pageScrollSize, v2.__set__pageScrollSize); v2.addProperty('scrollPosition', v2.__get__scrollPosition, v2.__set__scrollPosition); v2.addProperty('virtualHeight', v2.__get__virtualHeight, function () {}); ASSetPropFlags(mx.controls.scrollClasses.ScrollBar.prototype, null, 1); } #endinitclip } movieClip 125 __Packages.mx.effects.Tween { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.effects) { _global.mx.effects = new Object(); } if (!_global.mx.effects.Tween) { var v1 = function (listenerObj, init, end, dur) { super(); if (listenerObj == undefined) { return undefined; } if (typeof init != 'number') { this.arrayMode = true; } this.listener = listenerObj; this.initVal = init; this.endVal = end; if (dur != undefined) { this.duration = dur; } this.startTime = getTimer(); if (this.duration == 0) { this.endTween(); } else { mx.effects.Tween.AddTween(this); } }; mx.effects.Tween = v1; var v2 = new Object(); mx.effects.Tween.prototype = v2; v1.AddTween = function (tween) { tween.ID = mx.effects.Tween.ActiveTweens.length; mx.effects.Tween.ActiveTweens.push(tween); if (mx.effects.Tween.IntervalToken == undefined) { mx.effects.Tween.Dispatcher.DispatchTweens = mx.effects.Tween.DispatchTweens; mx.effects.Tween.IntervalToken = setInterval(mx.effects.Tween.Dispatcher, 'DispatchTweens', mx.effects.Tween.Interval); } }; v1.RemoveTweenAt = function (index) { var v2 = mx.effects.Tween.ActiveTweens; if (index >= v2.length || index < 0 || index == undefined) { return undefined; } v2.splice(index, 1); var v4 = v2.length; var v1 = index; while (v1 < v4) { --v2[v1].ID; ++v1; } if (v4 == 0) { clearInterval(mx.effects.Tween.IntervalToken); delete mx.effects.Tween.IntervalToken; } }; v1.DispatchTweens = function (Void) { var v2 = mx.effects.Tween.ActiveTweens; var v3 = v2.length; var v1 = 0; while (v1 < v3) { v2[v1].doInterval(); ++v1; } updateAfterEvent(); }; v2.doInterval = function () { var v2 = getTimer() - this.startTime; var v3 = this.getCurVal(v2); if (v2 >= this.duration) { this.endTween(); } else { if (this.updateFunc != undefined) { this.listener[this.updateFunc](v3); } else { this.listener.onTweenUpdate(v3); } } }; v2.getCurVal = function (curTime) { if (this.arrayMode) { var v3 = new Array(); var v2 = 0; while (v2 < this.initVal.length) { v3[v2] = this.easingEquation(curTime, this.initVal[v2], this.endVal[v2] - this.initVal[v2], this.duration); ++v2; } return v3; } else { return this.easingEquation(curTime, this.initVal, this.endVal - this.initVal, this.duration); } }; v2.endTween = function () { if (this.endFunc != undefined) { this.listener[this.endFunc](this.endVal); } else { this.listener.onTweenEnd(this.endVal); } mx.effects.Tween.RemoveTweenAt(this.ID); }; v2.setTweenHandlers = function (update, end) { this.updateFunc = update; this.endFunc = end; }; v2.easingEquation = function (t, b, c, d) { return (c / 2) * (Math.sin(Math.PI * (t / d - 0.5)) + 1) + b; }; v1.ActiveTweens = new Array(); v1.Interval = 10; v1.Dispatcher = new Object(); v2.duration = 3000; ASSetPropFlags(mx.effects.Tween.prototype, null, 1); } #endinitclip } movieClip 126 __Packages.mx.controls.listclasses.SelectableRow { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.listclasses) { _global.mx.controls.listclasses = new Object(); } if (!_global.mx.controls.listclasses.SelectableRow) { var v1 = function () { super(); }; mx.controls.listclasses.SelectableRow = v1; var v2 = new mx.core.UIComponent(); mx.controls.listclasses.SelectableRow.prototype = v2; v2.setValue = function (itmObj, state) { var v7 = this.__height; var v2 = this.cell; var v5 = this.owner; var v8 = this.itemToString(itmObj); if (v2.getValue() != v8) { v2.setValue(v8, itmObj, state); } var v4 = (v5.getPropertiesAt(this.rowIndex + v5.__vPosition)).icon; if (v4 == undefined) { v4 = v5.__iconFunction(itmObj); if (v4 == undefined) { v4 = itmObj[v5.__iconField]; if (v4 == undefined) { v4 = v5.getStyle('defaultIcon'); } } } var v3 = this.icon_mc; if (v4 != undefined && itmObj != undefined) { v3 = this.createObject(v4, 'icon_mc', 20); v3._x = 2; v3._y = (v7 - v3._height) / 2; v2._x = 4 + v3._width; } else { v3.removeMovieClip(); v2._x = 2; } var v9 = (v3 == undefined) ? 0 : v3._width; v2.setSize(this.__width - v9, Math.min(v7, v2.getPreferredHeight())); v2._y = (v7 - v2._height) / 2; }; v2.size = function (Void) { var v3 = this.backGround; var v2 = this.cell; var v4 = this.__height; var v5 = this.__width; var v6 = (this.icon_mc == undefined) ? 0 : this.icon_mc._width; v2.setSize(v5 - v6, Math.min(v4, v2.getPreferredHeight())); v2._y = (v4 - v2._height) / 2; this.icon_mc._y = (v4 - this.icon_mc._height) / 2; v3._x = 0; v3._width = v5; v3._height = v4; this.drawRowFill(v3, this.normalColor); this.drawRowFill(this.highlight, this.highlightColor); }; v2.setCellRenderer = function (forceSizing) { var v3 = this.owner.__cellRenderer; var v4; if (this.cell != undefined) { v4 = this.cell._x; this.cell.removeMovieClip(); this.cell.removeTextField(); } var v2; if (v3 == undefined) { this.cell = this.createLabel('cll', 0, {'styleName': this}); v2 = this.cell; v2.styleName = this.owner; v2.selectable = false; v2.tabEnabled = false; v2.background = false; v2.border = false; } else { if (typeof v3 == 'string') { this.cell = this.createObject(v3, 'cll', 0, {'styleName': this}); v2 = this.cell; } else { this.cell = this.createClassObject(v3, 'cll', 0, {'styleName': this}); v2 = this.cell; } } v2.owner = this; v2.listOwner = this.owner; v2.getCellIndex = this.getCellIndex; v2.getDataLabel = this.getDataLabel; if (v4 != undefined) { v2._x = v4; } if (forceSizing) { this.size(); } }; v2.getCellIndex = function (Void) { return {'columnIndex': 0, 'itemIndex': this.owner.rowIndex + this.listOwner.__vPosition}; }; v2.getDataLabel = function () { return this.listOwner.labelField; }; v2.init = function (Void) { super.init(); this.tabEnabled = false; }; v2.createChildren = function (Void) { this.setCellRenderer(false); this.setupBG(); this.setState(this.state, false); }; v2.drawRow = function (itmObj, state, transition) { this.item = itmObj; this.setState(state, transition); this.setValue(itmObj, state, transition); }; v2.itemToString = function (itmObj) { if (itmObj == undefined) { return ' '; } var v2 = this.owner.__labelFunction(itmObj); if (v2 == undefined) { v2 = itmObj instanceof XMLNode ? itmObj.attributes[this.owner.__labelField] : itmObj[this.owner.__labelField]; if (v2 == undefined) { v2 = ' '; if (typeof itmObj == 'object') { for (var v4 in itmObj) { if (v4 != '__ID__') { v2 = itmObj[v4] + ', ' + v2; } } v2 = v2.substring(0, v2.length - 2); return v2; } v2 = itmObj; } } return v2; }; v2.setupBG = function (Void) { this.backGround = this.createEmptyMovieClip('bG_mc', mx.controls.listclasses.SelectableRow.LOWEST_DEPTH); var v2 = this.backGround; this.drawRowFill(v2, this.normalColor); this.highlight = this.createEmptyMovieClip('tran_mc', mx.controls.listclasses.SelectableRow.LOWEST_DEPTH + 10); v2.owner = this; v2.grandOwner = this.owner; v2.onPress = this.bGOnPress; v2.onRelease = this.bGOnRelease; v2.onRollOver = this.bGOnRollOver; v2.onRollOut = this.bGOnRollOut; v2.onDragOver = this.bGOnDragOver; v2.onDragOut = this.bGOnDragOut; v2.useHandCursor = false; v2.trackAsMenu = true; v2.drawRect = this.drawRect; this.highlight.drawRect = this.drawRect; }; v2.drawRowFill = function (mc, newClr) { mc.clear(); mc.beginFill(newClr); mc.drawRect(1, 0, this.__width, this.__height); mc.endFill(); mc._width = this.__width; mc._height = this.__height; }; v2.setState = function (newState, transition) { var v2 = this.highlight; var v8 = this.backGround; var v4 = this.__height; var v3 = this.owner; if (!v3.enabled) { if (newState == 'selected' || this.state == 'selected') { this.highlightColor = v3.getStyle('selectionDisabledColor'); this.drawRowFill(v2, this.highlightColor); v2._visible = true; v2._y = 0; v2._height = v4; } else { v2._visible = false; this.normalColor = v3.getStyle('backgroundDisabledColor'); this.drawRowFill(v8, this.normalColor); } this.cell.__enabled = false; this.cell.setColor(v3.getStyle('disabledColor')); } else { this.cell.__enabled = true; if (transition && (newState == this.state || newState == 'highlighted' && this.state == 'selected')) { this.isChangedToSelected = true; return undefined; } var v6 = v3.getStyle('selectionDuration'); var v7 = 0; if (this.isChangedToSelected && newState == 'selected') { transition = false; } var v10 = transition && v6 != 0; if (newState == 'normal') { v7 = v3.getStyle('color'); this.normalColor = this.getNormalColor(); this.drawRowFill(v8, this.normalColor); if (v10) { v6 /= 2; v2._height = v4; v2._width = this.__width; v2._y = 0; this.bGTween = new mx.effects.Tween(this, v4 + 2, v4 * 0.2, v6, 5); } else { v2._visible = false; } delete this.isChangedToSelected; } else { this.highlightColor = v3.getStyle((newState == 'highlighted') ? 'rollOverColor' : 'selectionColor'); this.drawRowFill(v2, this.highlightColor); v2._visible = true; v7 = v3.getStyle((newState == 'highlighted') ? 'textRollOverColor' : 'textSelectedColor'); if (v10) { v2._height = v4 * 0.5; v2._y = (v4 - v2._height) / 2; this.bGTween = new mx.effects.Tween(this, v2._height, v4 + 2, v6, 5); var v9 = v3.getStyle('selectionEasing'); if (v9 != undefined) { this.bGTween.easingEquation = v9; } } else { v2._y = 0; v2._height = v4; } } this.cell.setColor(v7); } this.state = newState; }; v2.onTweenUpdate = function (val) { this.highlight._height = val; this.highlight._y = (this.__height - val) / 2; }; v2.onTweenEnd = function (val) { this.onTweenUpdate(val); this.highlight._visible = this.state != 'normal'; }; v2.getNormalColor = function (Void) { var v3; var v2 = this.owner; if (!this.owner.enabled) { v3 = v2.getStyle('backgroundDisabledColor'); return v3; } var v5 = this.rowIndex + v2.__vPosition; if (this.rowIndex == undefined) { v3 = (v2.getPropertiesOf(this.item)).backgroundColor; } else { v3 = (v2.getPropertiesAt(v5)).backgroundColor; } if (v3 == undefined) { var v4 = v2.getStyle('alternatingRowColors'); if (v4 == undefined) { v3 = v2.getStyle('backgroundColor'); return v3; } v3 = v4[v5 % v4.length]; } return v3; }; v2.invalidateStyle = function (propName) { this.cell.invalidateStyle(propName); super.invalidateStyle(propName); }; v2.bGOnPress = function (Void) { this.grandOwner.pressFocus(); this.grandOwner.onRowPress(this.owner.rowIndex); }; v2.bGOnRelease = function (Void) { this.grandOwner.releaseFocus(); this.grandOwner.onRowRelease(this.owner.rowIndex); }; v2.bGOnRollOver = function (Void) { this.grandOwner.onRowRollOver(this.owner.rowIndex); }; v2.bGOnRollOut = function (Void) { this.grandOwner.onRowRollOut(this.owner.rowIndex); }; v2.bGOnDragOver = function (Void) { this.grandOwner.onRowDragOver(this.owner.rowIndex); }; v2.bGOnDragOut = function (Void) { this.grandOwner.onRowDragOut(this.owner.rowIndex); }; v1.LOWEST_DEPTH = -16384; v2.state = 'normal'; v2.disabledColor = 15263976; v2.normalColor = 16777215; ASSetPropFlags(mx.controls.listclasses.SelectableRow.prototype, null, 1); } #endinitclip } movieClip 127 __Packages.mx.skins.ColoredSkinElement { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.ColoredSkinElement) { var v1 = function () {}; mx.skins.ColoredSkinElement = v1; var v2 = v1.prototype; v2.setColor = function (c) { if (c != undefined) { var v2 = new Color(this); v2.setRGB(c); } }; v2.draw = function (Void) { this.setColor(this.getStyle(this._color)); this.onEnterFrame = undefined; }; v2.invalidateStyle = function (Void) { this.onEnterFrame = this.draw; }; v1.setColorStyle = function (p, colorStyle) { if (p._color == undefined) { p._color = colorStyle; } p.setColor = mx.skins.ColoredSkinElement.mixins.setColor; p.invalidateStyle = mx.skins.ColoredSkinElement.mixins.invalidateStyle; p.draw = mx.skins.ColoredSkinElement.mixins.draw; p.setColor(p.getStyle(colorStyle)); }; v1.mixins = new mx.skins.ColoredSkinElement(); ASSetPropFlags(mx.skins.ColoredSkinElement.prototype, null, 1); } #endinitclip } movieClip 128 __Packages.mx.core.ext.UIObjectExtensions { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.ext) { _global.mx.core.ext = new Object(); } if (!_global.mx.core.ext.UIObjectExtensions) { var v1 = function () {}; mx.core.ext.UIObjectExtensions = v1; var v2 = v1.prototype; v1.addGeometry = function (tf, ui) { tf.addProperty('width', ui.__get__width, null); tf.addProperty('height', ui.__get__height, null); tf.addProperty('left', ui.__get__left, null); tf.addProperty('x', ui.__get__x, null); tf.addProperty('top', ui.__get__top, null); tf.addProperty('y', ui.__get__y, null); tf.addProperty('right', ui.__get__right, null); tf.addProperty('bottom', ui.__get__bottom, null); tf.addProperty('visible', ui.__get__visible, ui.__set__visible); }; v1.Extensions = function () { if (mx.core.ext.UIObjectExtensions.bExtended == true) { return true; } mx.core.ext.UIObjectExtensions.bExtended = true; var v6 = mx.core.UIObject.prototype; var v9 = mx.skins.SkinElement.prototype; mx.core.ext.UIObjectExtensions.addGeometry(v9, v6); mx.events.UIEventDispatcher.initialize(v6); var v13 = mx.skins.ColoredSkinElement; mx.styles.CSSTextStyles.addTextStyles(v6); var v5 = MovieClip.prototype; v5.getTopLevel = v6.getTopLevel; v5.createLabel = v6.createLabel; v5.createObject = v6.createObject; v5.createClassObject = v6.createClassObject; v5.createEmptyObject = v6.createEmptyObject; v5.destroyObject = v6.destroyObject; _global.ASSetPropFlags(v5, 'getTopLevel', 1); _global.ASSetPropFlags(v5, 'createLabel', 1); _global.ASSetPropFlags(v5, 'createObject', 1); _global.ASSetPropFlags(v5, 'createClassObject', 1); _global.ASSetPropFlags(v5, 'createEmptyObject', 1); _global.ASSetPropFlags(v5, 'destroyObject', 1); v5.__getTextFormat = v6.__getTextFormat; v5._getTextFormat = v6._getTextFormat; v5.getStyleName = v6.getStyleName; v5.getStyle = v6.getStyle; _global.ASSetPropFlags(v5, '__getTextFormat', 1); _global.ASSetPropFlags(v5, '_getTextFormat', 1); _global.ASSetPropFlags(v5, 'getStyleName', 1); _global.ASSetPropFlags(v5, 'getStyle', 1); var v7 = TextField.prototype; mx.core.ext.UIObjectExtensions.addGeometry(v7, v6); v7.addProperty('enabled', function () { return this.__enabled; }, function (x) { this.__enabled = x; this.invalidateStyle(); }); v7.move = v9.move; v7.setSize = v9.setSize; v7.invalidateStyle = function () { this.invalidateFlag = true; }; v7.draw = function () { if (this.invalidateFlag) { this.invalidateFlag = false; var v2 = this._getTextFormat(); this.setTextFormat(v2); this.setNewTextFormat(v2); this.embedFonts = v2.embedFonts == true; if (this.__text != undefined) { if (this.text == '') { this.text = this.__text; } delete this.__text; } this._visible = true; } }; v7.setColor = function (color) { this.textColor = color; }; v7.getStyle = v5.getStyle; v7.__getTextFormat = v6.__getTextFormat; v7.setValue = function (v) { this.text = v; }; v7.getValue = function () { return this.text; }; v7.addProperty('value', function () { return this.getValue(); }, function (v) { this.setValue(v); }); v7._getTextFormat = function () { var v2 = this.stylecache.tf; if (v2 != undefined) { return v2; } v2 = new TextFormat(); this.__getTextFormat(v2); this.stylecache.tf = v2; if (this.__enabled == false) { if (this.enabledColor == undefined) { var v4 = this.getTextFormat(); this.enabledColor = v4.color; } var v3 = this.getStyle('disabledColor'); v2.color = v3; return v2; } if (this.enabledColor != undefined) { if (v2.color == undefined) { v2.color = this.enabledColor; } } return v2; }; v7.getPreferredWidth = function () { this.draw(); return this.textWidth + 4; }; v7.getPreferredHeight = function () { this.draw(); return this.textHeight + 4; }; TextFormat.prototype.getTextExtent2 = function (s) { var v3 = _root._getTextExtent; if (v3 == undefined) { _root.createTextField('_getTextExtent', -2, 0, 0, 1000, 100); v3 = _root._getTextExtent; v3._visible = false; } _root._getTextExtent.text = s; var v4 = this.align; this.align = 'left'; _root._getTextExtent.setTextFormat(this); this.align = v4; return {'width': v3.textWidth, 'height': v3.textHeight}; }; if (_global.style == undefined) { _global.style = new mx.styles.CSSStyleDeclaration(); _global.cascadingStyles = true; _global.styles = new Object(); _global.skinRegistry = new Object(); if (_global._origWidth == undefined) { _global.origWidth = Stage.width; _global.origHeight = Stage.height; } } var v4 = _root; while (v4._parent != undefined) { v4 = v4._parent; } v4.addProperty('width', function () { return Stage.width; }, null); v4.addProperty('height', function () { return Stage.height; }, null); _global.ASSetPropFlags(v4, 'width', 1); _global.ASSetPropFlags(v4, 'height', 1); return true; }; v1.bExtended = false; v1.UIObjectExtended = mx.core.ext.UIObjectExtensions.Extensions(); v1.UIObjectDependency = mx.core.UIObject; v1.SkinElementDependency = mx.skins.SkinElement; v1.CSSTextStylesDependency = mx.styles.CSSTextStyles; v1.UIEventDispatcherDependency = mx.events.UIEventDispatcher; ASSetPropFlags(mx.core.ext.UIObjectExtensions.prototype, null, 1); } #endinitclip } movieClip 129 __Packages.mx.skins.halo.Defaults { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.Defaults) { var v1 = function () {}; mx.skins.halo.Defaults = v1; var v2 = v1.prototype; v1.setThemeDefaults = function () { var v2 = _global.style; v2.themeColor = 8453965; v2.disabledColor = 8684164; v2.modalTransparency = 0; v2.filled = true; v2.stroked = true; v2.strokeWidth = 1; v2.strokeColor = 0; v2.fillColor = 16777215; v2.repeatInterval = 35; v2.repeatDelay = 500; v2.fontFamily = '_sans'; v2.fontSize = 12; v2.selectionColor = 13500353; v2.rollOverColor = 14942166; v2.useRollOver = true; v2.backgroundDisabledColor = 14540253; v2.selectionDisabledColor = 14540253; v2.selectionDuration = 200; v2.openDuration = 250; v2.borderStyle = 'inset'; v2.color = 734012; v2.textSelectedColor = 24371; v2.textRollOverColor = 2831164; v2.textDisabledColor = 16777215; v2.vGridLines = true; v2.hGridLines = false; v2.vGridLineColor = 6710886; v2.hGridLineColor = 6710886; v2.headerColor = 15395562; v2.indentation = 17; v2.folderOpenIcon = 'TreeFolderOpen'; v2.folderClosedIcon = 'TreeFolderClosed'; v2.defaultLeafIcon = 'TreeNodeIcon'; v2.disclosureOpenIcon = 'TreeDisclosureOpen'; v2.disclosureClosedIcon = 'TreeDisclosureClosed'; v2.popupDuration = 150; v2.todayColor = 6710886; _global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.ScrollSelectList; v2.backgroundColor = 16777215; v2.borderColor = 13290186; v2.borderStyle = 'inset'; _global.styles.ComboBox = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.ComboBox; v2.borderStyle = 'inset'; _global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.NumericStepper; v2.textAlign = 'center'; _global.styles.RectBorder = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.RectBorder; v2.borderColor = 14015965; v2.buttonColor = 7305079; v2.shadowColor = 15658734; v2.highlightColor = 12897484; v2.shadowCapColor = 14015965; v2.borderCapColor = 9542041; var v4 = new Object(); v4.borderColor = 16711680; v4.buttonColor = 16711680; v4.shadowColor = 16711680; v4.highlightColor = 16711680; v4.shadowCapColor = 16711680; v4.borderCapColor = 16711680; mx.core.UIComponent.prototype.origBorderStyles = v4; var v3; _global.styles.TextInput = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.TextInput; v3.backgroundColor = 16777215; v3.borderStyle = 'inset'; _global.styles.TextArea = _global.styles.TextInput; _global.styles.Window = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.Window; v3.borderStyle = 'default'; _global.styles.windowStyles = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.windowStyles; v3.fontWeight = 'bold'; _global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.dataGridStyles; v3.fontWeight = 'bold'; _global.styles.Alert = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.Alert; v3.borderStyle = 'alert'; _global.styles.ScrollView = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.ScrollView; v3.borderStyle = 'inset'; _global.styles.View = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.View; v3.borderStyle = 'none'; _global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.ProgressBar; v3.color = 11187123; v3.fontWeight = 'bold'; _global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.AccordionHeader; v3.fontWeight = 'bold'; v3.fontSize = '11'; _global.styles.Accordion = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.Accordion; v3.borderStyle = 'solid'; v3.backgroundColor = 16777215; v3.borderColor = 9081738; v3.headerHeight = 22; v3.marginBottom = -1; v3.marginTop = -1; v3.marginRight = -1; v3.marginLeft = -1; v3.verticalGap = -1; _global.styles.DateChooser = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.DateChooser; v3.borderColor = 9542041; v3.headerColor = 16777215; _global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.CalendarLayout; v3.fontSize = 10; v3.textAlign = 'right'; v3.color = 2831164; _global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.WeekDayStyle; v3.fontWeight = 'bold'; v3.fontSize = 11; v3.textAlign = 'center'; v3.color = 2831164; _global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.TodayStyle; v3.color = 16777215; _global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.HeaderDateText; v3.fontSize = 12; v3.fontWeight = 'bold'; v3.textAlign = 'center'; }; v2.drawRoundRect = function (x, y, w, h, r, c, alpha, rot, gradient, ratios) { if (typeof r == 'object') { var v18 = r.br; var v16 = r.bl; var v15 = r.tl; var v10 = r.tr; } else { var v10 = r; var v15 = v10; var v16 = v15; var v18 = v16; } if (typeof c == 'object') { if (typeof alpha != 'object') { var v9 = [alpha, alpha]; } else { var v9 = alpha; } if (ratios == undefined) { ratios = [0, 255]; } var v14 = h * 0.7; if (typeof rot != 'object') { var v11 = {'matrixType': 'box', 'x': -v14, 'y': v14, 'w': w * 2, 'h': h * 4, 'r': rot * 0.0174532925199433}; } else { var v11 = rot; } if (gradient == 'radial') { this.beginGradientFill('radial', c, v9, ratios, v11); } else { this.beginGradientFill('linear', c, v9, ratios, v11); } } else { if (c != undefined) { this.beginFill(c, alpha); } } r = v18; var v13 = r - r * Math.SQRT1_2; var v12 = r - r * 0.414213562373095; this.moveTo(x + w, y + h - r); this.lineTo(x + w, y + h - r); this.curveTo(x + w, y + h - v12, x + w - v13, y + h - v13); this.curveTo(x + w - v12, y + h, x + w - r, y + h); r = v16; v13 = r - r * Math.SQRT1_2; v12 = r - r * 0.414213562373095; this.lineTo(x + r, y + h); this.curveTo(x + v12, y + h, x + v13, y + h - v13); this.curveTo(x, y + h - v12, x, y + h - r); r = v15; v13 = r - r * Math.SQRT1_2; v12 = r - r * 0.414213562373095; this.lineTo(x, y + r); this.curveTo(x, y + v12, x + v13, y + v13); this.curveTo(x + v12, y, x + r, y); r = v10; v13 = r - r * Math.SQRT1_2; v12 = r - r * 0.414213562373095; this.lineTo(x + w - r, y); this.curveTo(x + w - v12, y, x + w - v13, y + v13); this.curveTo(x + w, y + v12, x + w, y + r); this.lineTo(x + w, y + h - r); if (c != undefined) { this.endFill(); } }; v1.classConstruct = function () { mx.core.ext.UIObjectExtensions.Extensions(); mx.skins.halo.Defaults.setThemeDefaults(); mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return true; }; v1.classConstructed = mx.skins.halo.Defaults.classConstruct(); v1.CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; v1.UIObjectDependency = mx.core.UIObject; ASSetPropFlags(mx.skins.halo.Defaults.prototype, null, 1); } #endinitclip } movieClip 130 __Packages.mx.managers.SystemManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.SystemManager) { var v1 = function () {}; mx.managers.SystemManager = v1; var v2 = v1.prototype; v1.init = function (Void) { if (mx.managers.SystemManager._initialized == false) { mx.managers.SystemManager._initialized = true; mx.events.EventDispatcher.initialize(mx.managers.SystemManager); Mouse.addListener(mx.managers.SystemManager); Stage.addListener(mx.managers.SystemManager); mx.managers.SystemManager._xAddEventListener = mx.managers.SystemManager.addEventListener; mx.managers.SystemManager.addEventListener = mx.managers.SystemManager.__addEventListener; mx.managers.SystemManager._xRemoveEventListener = mx.managers.SystemManager.removeEventListener; mx.managers.SystemManager.removeEventListener = mx.managers.SystemManager.__removeEventListener; } }; v1.addFocusManager = function (f) { mx.managers.SystemManager.form = f; f.focusManager.activate(); }; v1.removeFocusManager = function (f) {}; v1.onMouseDown = function (Void) { var v1 = mx.managers.SystemManager.form; v1.focusManager._onMouseDown(); }; v1.onResize = function (Void) { var v7 = Stage.width; var v6 = Stage.height; var v9 = _global.origWidth; var v8 = _global.origHeight; var v3 = Stage.align; var v5 = (v9 - v7) / 2; var v4 = (v8 - v6) / 2; if (v3 == 'T') { v4 = 0; } else { if (v3 == 'B') { v4 = v8 - v6; } else { if (v3 == 'L') { v5 = 0; } else { if (v3 == 'R') { v5 = v9 - v7; } else { if (v3 == 'LT') { v4 = 0; v5 = 0; } else { if (v3 == 'TR') { v4 = 0; v5 = v9 - v7; } else { if (v3 == 'LB') { v4 = v8 - v6; v5 = 0; } else { if (v3 == 'RB') { v4 = v8 - v6; v5 = v9 - v7; } } } } } } } } if (mx.managers.SystemManager.__screen == undefined) { mx.managers.SystemManager.__screen = new Object(); } mx.managers.SystemManager.__screen.x = v5; mx.managers.SystemManager.__screen.y = v4; mx.managers.SystemManager.__screen.width = v7; mx.managers.SystemManager.__screen.height = v6; _root.focusManager.relocate(); mx.managers.SystemManager.dispatchEvent({'type': 'resize'}); }; v1.__get__screen = function () { mx.managers.SystemManager.init(); if (mx.managers.SystemManager.__screen == undefined) { mx.managers.SystemManager.onResize(); } return mx.managers.SystemManager.__screen; }; v1._initialized = false; v1.idleFrames = 0; v1.isMouseDown = false; v1.forms = new Array(); v1.addProperty('screen', v1.__get__screen, function () {}); ASSetPropFlags(mx.managers.SystemManager.prototype, null, 1); } #endinitclip } movieClip 131 __Packages.mx.managers.FocusManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.FocusManager) { var v1 = function () { super(); }; mx.managers.FocusManager = v1; var v2 = new mx.core.UIComponent(); mx.managers.FocusManager.prototype = v2; v2.__get__defaultPushButton = function () { return this.__defaultPushButton; }; v2.__set__defaultPushButton = function (x) { if (x != this.__defaultPushButton) { this.__defaultPushButton.__set__emphasized(false); this.__defaultPushButton = x; this.defPushButton = x; x.__set__emphasized(true); } return this.__get__defaultPushButton(); }; v2.getMaxTabIndex = function (o) { var v3 = 0; var v6; for (v6 in o) { var v2 = o[v6]; if (v2._parent == o) { if (v2.tabIndex != undefined) { if (v2.tabIndex > v3) { v3 = v2.tabIndex; } } if (v2.tabChildren == true) { var v4 = this.getMaxTabIndex(v2); if (v4 > v3) { v3 = v4; } } } } return v3; }; v2.getNextTabIndex = function (Void) { return this.getMaxTabIndex(this.form) + 1; }; v2.__get__nextTabIndex = function () { return this.getNextTabIndex(); }; v2.relocate = function (Void) { var v2 = mx.managers.SystemManager.__get__screen(); this.move(v2.x - 1, v2.y - 1); }; v2.init = function (Void) { super.init(); this.tabEnabled = false; this._height = 1; this._width = 1; this._y = -1; this._x = -1; this._alpha = 0; this._parent.focusManager = this; this._parent.tabChildren = true; this._parent.tabEnabled = false; this.form = this._parent; this._parent.addEventListener('hide', this); this._parent.addEventListener('reveal', this); mx.managers.SystemManager.init(); mx.managers.SystemManager.addFocusManager(this.form); this.tabCapture.tabIndex = 0; this.watch('enabled', this.enabledChanged); Selection.addListener(this); this.lastMouse = new Object(); _global.ASSetPropFlags(this._parent, 'focusManager', 1); _global.ASSetPropFlags(this._parent, 'tabChildren', 1); _global.ASSetPropFlags(this._parent, 'tabEnabled', 1); }; v2.enabledChanged = function (id, oldValue, newValue) { this._visible = newValue; return newValue; }; v2.activate = function (Void) { Key.addListener(this); this._visible = true; this.activated = this._visible; if (this.lastFocus != undefined) { this.bNeedFocus = true; if (!mx.managers.SystemManager.isMouseDown) { this.doLater(this, 'restoreFocus'); } } }; v2.deactivate = function (Void) { Key.removeListener(this); this._visible = false; this.activated = this._visible; var v2 = this.getSelectionFocus(); var v3 = this.getActualFocus(v2); if (this.isOurFocus(v3)) { this.lastSelFocus = v2; this.lastFocus = v3; } this.cancelAllDoLaters(); }; v2.isOurFocus = function (o) { if (o.focusManager == this) { return true; } while (o != undefined) { if (o.focusManager != undefined) { return false; } if (o._parent == this._parent) { return true; } o = o._parent; } return false; }; v2.onSetFocus = function (o, n) { if (n == null) { if (this.activated) { this.bNeedFocus = true; } } else { var v2 = this.getFocus(); if (this.isOurFocus(v2)) { this.bNeedFocus = false; this.lastFocus = v2; this.lastSelFocus = n; } } }; v2.restoreFocus = function (Void) { var v2 = this.lastSelFocus.hscroll; if (v2 != undefined) { var v5 = this.lastSelFocus.scroll; var v4 = this.lastSelFocus.background; } this.lastFocus.setFocus(); var v3 = Selection; Selection.setSelection(v3.lastBeginIndex, v3.lastEndIndex); if (v2 != undefined) { this.lastSelFocus.scroll = v5; this.lastSelFocus.hscroll = v2; this.lastSelFocus.background = v4; } }; v2.onUnload = function (Void) { mx.managers.SystemManager.removeFocusManager(this.form); }; v2.setFocus = function (o) { if (o == null) { Selection.setFocus(null); } else { if (o.setFocus == undefined) { Selection.setFocus(o); } else { o.setFocus(); } } }; v2.getActualFocus = function (o) { var v1 = o._parent; while (v1 != undefined) { if (v1.focusTextField != undefined) { while (v1.focusTextField != undefined) { o = v1; v1 = v1._parent; if (v1 == undefined) { return undefined; } if (v1.focusTextField == undefined) { return o; } } } if (v1.tabEnabled != true) { return o; } o = v1; v1 = o._parent; } return undefined; }; v2.getSelectionFocus = function () { var m = Selection.getFocus(); var o = eval(m); return o; }; v2.getFocus = function (Void) { var v2 = this.getSelectionFocus(); return this.getActualFocus(v2); }; v2.walkTree = function (p, index, groupName, dir, lookup, firstChild) { var v5 = true; var v11; for (v11 in p) { var v2 = p[v11]; if (v2._parent == p && v2.enabled != false && v2._visible != false && (v2.tabEnabled == true || v2.tabEnabled != false && (v2.onPress != undefined || v2.onRelease != undefined || v2.onReleaseOutside != undefined || v2.onDragOut != undefined || v2.onDragOver != undefined || v2.onRollOver != undefined || v2.onRollOut != undefined || v2 instanceof TextField))) { if (v2._searchKey == this._searchKey) { continue; } v2._searchKey = this._searchKey; if (v2 != this._lastTarget) { if ((v2.groupName != undefined || groupName != undefined) && v2.groupName == groupName) { continue; } if (v2 instanceof TextField && v2.selectable == false) { continue; } if (v5 || v2.groupName != undefined && v2.groupName == this._firstNode.groupName && v2.selected == true) { if (firstChild) { this._firstNode = v2; firstChild = false; } } if (this._nextIsNext == true) { if (v2.groupName != undefined && v2.groupName == this._nextNode.groupName && v2.selected == true || this._nextNode == undefined && (v2.groupName == undefined || v2.groupName != undefined && v2.groupName != groupName)) { this._nextNode = v2; } } if (v2.groupName == undefined || groupName != v2.groupName) { if (this._lastx.groupName != undefined && v2.groupName == this._lastx.groupName && this._lastx.selected == true) { } else { this._lastx = v2; } } } else { this._prevNode = this._lastx; this._needPrev = false; this._nextIsNext = true; } if (v2.tabIndex != undefined) { if (v2.tabIndex == index) { if (this._foundList[v2._name] == undefined) { if (this._needPrev) { this._prevObj = v2; this._needPrev = false; } this._nextObj = v2; } } if (dir && v2.tabIndex > index) { if (this._nextObj == undefined || this._nextObj.tabIndex > v2.tabIndex && (v2.groupName == undefined || this._nextObj.groupName == undefined || v2.groupName != this._nextObj.groupName) || this._nextObj.groupName != undefined && this._nextObj.groupName == v2.groupName && this._nextObj.selected != true && (v2.selected == true || this._nextObj.tabIndex > v2.tabIndex)) { this._nextObj = v2; } } else { if (!dir && v2.tabIndex < index) { if (this._prevObj == undefined || this._prevObj.tabIndex < v2.tabIndex && (v2.groupName == undefined || this._prevObj.groupName == undefined || v2.groupName != this._prevObj.groupName) || this._prevObj.groupName != undefined && this._prevObj.groupName == v2.groupName && this._prevObj.selected != true && (v2.selected == true || this._prevObj.tabIndex < v2.tabIndex)) { this._prevObj = v2; } } } if (this._firstObj == undefined || v2.tabIndex < this._firstObj.tabIndex && (v2.groupName == undefined || this._firstObj.groupName == undefined || v2.groupName != this._firstObj.groupName) || this._firstObj.groupName != undefined && this._firstObj.groupName == v2.groupName && this._firstObj.selected != true && (v2.selected == true || v2.tabIndex < this._firstObj.tabIndex)) { this._firstObj = v2; } if (this._lastObj == undefined || v2.tabIndex > this._lastObj.tabIndex && (v2.groupName == undefined || this._lastObj.groupName == undefined || v2.groupName != this._lastObj.groupName) || this._lastObj.groupName != undefined && this._lastObj.groupName == v2.groupName && this._lastObj.selected != true && (v2.selected == true || v2.tabIndex > this._lastObj.tabIndex)) { this._lastObj = v2; } } if (v2.tabChildren) { this.getTabCandidateFromChildren(v2, index, groupName, dir, v5 && firstChild); } v5 = false; } else { if (v2._parent == p && v2.tabChildren == true && v2._visible != false) { if (v2 == this._lastTarget) { if (v2._searchKey == this._searchKey) { continue; } v2._searchKey = this._searchKey; if (this._prevNode == undefined) { var v3 = this._lastx; var v7 = false; while (v3 != undefined) { if (v3 == v2) { v7 = true; break; } v3 = v3._parent; } if (v7 == false) { this._prevNode = this._lastx; } } this._needPrev = false; if (this._nextNode == undefined) { this._nextIsNext = true; } } else { if (!(v2.focusManager != undefined && v2.focusManager._parent == v2)) { if (v2._searchKey == this._searchKey) { continue; } v2._searchKey = this._searchKey; this.getTabCandidateFromChildren(v2, index, groupName, dir, v5 && firstChild); } } v5 = false; } } } this._lastNode = this._lastx; if (lookup) { if (p._parent != undefined) { if (p != this._parent) { if (this._prevNode == undefined && dir) { this._needPrev = true; } else { if (this._nextNode == undefined && !dir) { this._nextIsNext = false; } } this._lastTarget = this._lastTarget._parent; this.getTabCandidate(p._parent, index, groupName, dir, true); } } } }; v2.getTabCandidate = function (o, index, groupName, dir, firstChild) { var v2; var v3 = true; if (o == this._parent) { v2 = o; v3 = false; } else { v2 = o._parent; if (v2 == undefined) { v2 = o; v3 = false; } } this.walkTree(v2, index, groupName, dir, v3, firstChild); }; v2.getTabCandidateFromChildren = function (o, index, groupName, dir, firstChild) { this.walkTree(o, index, groupName, dir, false, firstChild); }; v2.getFocusManagerFromObject = function (o) { while (o != undefined) { if (o.focusManager != undefined) { return o.focusManager; } o = o._parent; } return undefined; }; v2.tabHandler = function (Void) { this.bDrawFocus = true; var v5 = this.getSelectionFocus(); var v4 = this.getActualFocus(v5); if (v4 != v5) { v5 = v4; } if (this.getFocusManagerFromObject(v5) != this) { v5 == undefined; } if (v5 == undefined) { v5 = this.form; } else { if (v5.tabIndex != undefined) { if (this._foundList != undefined || this._foundList.tabIndex != v5.tabIndex) { this._foundList = new Object(); this._foundList.tabIndex = v5.tabIndex; } this._foundList[v5._name] = v5; } } var v3 = Key.isDown(16) != true; this._searchKey = getTimer(); this._needPrev = true; this._nextIsNext = false; this._lastx = undefined; this._firstNode = undefined; this._lastNode = undefined; this._nextNode = undefined; this._prevNode = undefined; this._firstObj = undefined; this._lastObj = undefined; this._nextObj = undefined; this._prevObj = undefined; this._lastTarget = v5; var v6 = v5; this.getTabCandidate(v6, (v5.tabIndex == undefined) ? 0 : v5.tabIndex, v5.groupName, v3, true); var v2; if (v3) { if (this._nextObj != undefined) { v2 = this._nextObj; } else { v2 = this._firstObj; } } else { if (this._prevObj != undefined) { v2 = this._prevObj; } else { v2 = this._lastObj; } } if (v2.tabIndex != v5.tabIndex) { this._foundList = new Object(); this._foundList.tabIndex = v2.tabIndex; this._foundList[v2._name] = v2; } else { if (this._foundList == undefined) { this._foundList = new Object(); this._foundList.tabIndex = v2.tabIndex; } this._foundList[v2._name] = v2; } if (v2 == undefined) { if (v3 == false) { if (this._nextNode != undefined) { v2 = this._nextNode; } else { v2 = this._firstNode; } } else { if (this._prevNode == undefined || v5 == this.form) { v2 = this._lastNode; } else { v2 = this._prevNode; } } } if (v2 == undefined) { return undefined; } this.lastTabFocus = v2; this.setFocus(v2); if (v2.emphasized != undefined) { if (this.defPushButton != undefined) { v5 = this.defPushButton; this.defPushButton = v2; v5.emphasized = false; v2.emphasized = true; } } else { if (this.defPushButton != undefined && this.defPushButton != this.__defaultPushButton) { v5 = this.defPushButton; this.defPushButton = this.__defaultPushButton; v5.emphasized = false; this.__defaultPushButton.__set__emphasized(true); } } }; v2.onKeyDown = function (Void) { mx.managers.SystemManager.idleFrames = 0; if (this.defaultPushButtonEnabled) { if (Key.getCode() == 13) { if (this.__get__defaultPushButton() != undefined) { this.doLater(this, 'sendDefaultPushButtonEvent'); } } } }; v2.sendDefaultPushButtonEvent = function (Void) { this.defPushButton.dispatchEvent({'type': 'click'}); }; v2.getMousedComponentFromChildren = function (x, y, o) { for (var v7 in o) { var v2 = o[v7]; if (v2._visible && v2.enabled && v2._parent == o && v2._searchKey != this._searchKey) { v2._searchKey = this._searchKey; if (v2.hitTest(x, y, true)) { if (v2.onPress != undefined || v2.onRelease != undefined) { return v2; } var v3 = this.getMousedComponentFromChildren(x, y, v2); if (v3 != undefined) { return v3; } return v2; } } } return undefined; }; v2.mouseActivate = function (Void) { if (!this.bNeedFocus) { return undefined; } this._searchKey = getTimer(); var v2 = this.getMousedComponentFromChildren(this.lastMouse.x, this.lastMouse.y, this.form); if (v2 instanceof mx.core.UIComponent) { return undefined; } v2 = this.findFocusFromObject(v2); if (v2 == this.lastFocus) { return undefined; } if (v2 == undefined) { this.doLater(this, 'restoreFocus'); return undefined; } var v3 = v2.hscroll; if (v3 != undefined) { var v6 = v2.scroll; var v5 = v2.background; } this.setFocus(v2); var v4 = Selection; Selection.setSelection(v4.lastBeginIndex, v4.lastEndIndex); if (v3 != undefined) { v2.scroll = v6; v2.hscroll = v3; v2.background = v5; } }; v2._onMouseDown = function (Void) { this.bDrawFocus = false; if (this.lastFocus != undefined) { this.lastFocus.drawFocus(false); } mx.managers.SystemManager.idleFrames = 0; var v3 = Selection; v3.lastBeginIndex = Selection.getBeginIndex(); v3.lastEndIndex = Selection.getEndIndex(); this.lastMouse.x = _root._xmouse; this.lastMouse.y = _root._ymouse; _root.localToGlobal(this.lastMouse); }; v2.onMouseUp = function (Void) { if (this._visible) { this.doLater(this, 'mouseActivate'); } }; v2.handleEvent = function (e) { if (e.type == 'reveal') { mx.managers.SystemManager.activate(this.form); } else { mx.managers.SystemManager.deactivate(this.form); } }; v1.enableFocusManagement = function () { if (!mx.managers.FocusManager.initialized) { mx.managers.FocusManager.initialized = true; Object.registerClass('FocusManager', mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, 'focusManager', mx.managers.DepthManager.highestDepth--); } } }; v1.symbolName = 'FocusManager'; v1.symbolOwner = mx.managers.FocusManager; v1.version = '2.0.2.127'; v2.className = 'FocusManager'; v2.bNeedFocus = false; v2.bDrawFocus = false; v2.defaultPushButtonEnabled = true; v2.activated = true; v1.initialized = false; v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; v2.addProperty('defaultPushButton', v2.__get__defaultPushButton, v2.__set__defaultPushButton); v2.addProperty('nextTabIndex', v2.__get__nextTabIndex, function () {}); ASSetPropFlags(mx.managers.FocusManager.prototype, null, 1); } #endinitclip } movieClip 132 __Packages.mx.skins.halo.FocusRect { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.FocusRect) { var v1 = function () { super(); this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; }; mx.skins.halo.FocusRect = v1; var v2 = new mx.skins.SkinElement(); mx.skins.halo.FocusRect.prototype = v2; v2.draw = function (o) { o.adjustFocusRect(); }; v2.setSize = function (w, h, r, a, rectCol) { this._yscale = 100; this._xscale = 100; this.clear(); if (typeof r == 'object') { r.br = r.br > 2 ? r.br - 2 : 0; r.bl = r.bl > 2 ? r.bl - 2 : 0; r.tr = r.tr > 2 ? r.tr - 2 : 0; r.tl = r.tl > 2 ? r.tl - 2 : 0; this.beginFill(rectCol, a * 0.3); this.drawRoundRect(0, 0, w, h, r); this.drawRoundRect(2, 2, w - 4, h - 4, r); this.endFill(); r.br = r.br > 1 ? r.br + 1 : 0; r.bl = r.bl > 1 ? r.bl + 1 : 0; r.tr = r.tr > 1 ? r.tr + 1 : 0; r.tl = r.tl > 1 ? r.tl + 1 : 0; this.beginFill(rectCol, a * 0.3); this.drawRoundRect(1, 1, w - 2, h - 2, r); r.br = r.br > 1 ? r.br - 1 : 0; r.bl = r.bl > 1 ? r.bl - 1 : 0; r.tr = r.tr > 1 ? r.tr - 1 : 0; r.tl = r.tl > 1 ? r.tl - 1 : 0; this.drawRoundRect(2, 2, w - 4, h - 4, r); this.endFill(); } else { var v5; if (r != 0) { v5 = r - 2; } else { v5 = 0; } this.beginFill(rectCol, a * 0.3); this.drawRoundRect(0, 0, w, h, r); this.drawRoundRect(2, 2, w - 4, h - 4, v5); this.endFill(); this.beginFill(rectCol, a * 0.3); if (r != 0) { v5 = r - 2; r -= 1; } else { v5 = 0; r = 0; } this.drawRoundRect(1, 1, w - 2, h - 2, r); this.drawRoundRect(2, 2, w - 4, h - 4, v5); this.endFill(); } }; v2.handleEvent = function (e) { if (e.type == 'unload') { this._visible = true; } else { if (e.type == 'resize') { e.target.adjustFocusRect(); } else { if (e.type == 'move') { e.target.adjustFocusRect(); } } } }; v1.classConstruct = function () { mx.core.UIComponent.prototype.drawFocus = function (focused) { var v2 = this._parent.focus_mc; if (!focused) { v2._visible = false; this.removeEventListener('unload', v2); this.removeEventListener('move', v2); this.removeEventListener('resize', v2); } else { if (v2 == undefined) { v2 = this._parent.createChildAtDepth('FocusRect', mx.managers.DepthManager.kTop); v2.tabEnabled = false; this._parent.focus_mc = v2; } else { v2._visible = true; } v2.draw(this); if (v2.getDepth() < this.getDepth()) { v2.setDepthAbove(this); } this.addEventListener('unload', v2); this.addEventListener('move', v2); this.addEventListener('resize', v2); } }; mx.core.UIComponent.prototype.adjustFocusRect = function () { var v2 = this.getStyle('themeColor'); if (v2 == undefined) { v2 = 8453965; } var v3 = this._parent.focus_mc; v3.setSize(this.width + 4, this.height + 4, 0, 100, v2); v3.move(this.x - 2, this.y - 2); }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect; mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return true; }; v1.classConstructed = mx.skins.halo.FocusRect.classConstruct(); v1.DefaultsDependency = mx.skins.halo.Defaults; v1.UIComponentDependency = mx.core.UIComponent; ASSetPropFlags(mx.skins.halo.FocusRect.prototype, null, 1); } #endinitclip } movieClip 133 __Packages.mx.managers.OverlappedWindows { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.OverlappedWindows) { var v1 = function () {}; mx.managers.OverlappedWindows = v1; var v2 = v1.prototype; v1.checkIdle = function (Void) { if (mx.managers.SystemManager.idleFrames > 10) { mx.managers.SystemManager.dispatchEvent({'type': 'idle'}); } else { ++mx.managers.SystemManager.idleFrames; } }; v1.__addEventListener = function (e, o, l) { if (e == 'idle') { if (mx.managers.SystemManager.interval == undefined) { mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100); } } mx.managers.SystemManager._xAddEventListener(e, o, l); }; v1.__removeEventListener = function (e, o, l) { if (e == 'idle') { if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) { clearInterval(mx.managers.SystemManager.interval); } } else { mx.managers.SystemManager._xRemoveEventListener(e, o, l); } }; v1.onMouseDown = function (Void) { mx.managers.SystemManager.idleFrames = 0; mx.managers.SystemManager.isMouseDown = true; var v5 = _root; var v3; var v8 = _root._xmouse; var v7 = _root._ymouse; if (mx.managers.SystemManager.form.modalWindow == undefined) { if (mx.managers.SystemManager.forms.length > 1) { var v6 = mx.managers.SystemManager.forms.length; var v4; v4 = 0; while (v4 < v6) { var v2 = mx.managers.SystemManager.forms[v4]; if (v2._visible) { if (v2.hitTest(v8, v7)) { if (v3 == undefined) { v3 = v2.getDepth(); v5 = v2; } else { if (v3 < v2.getDepth()) { v3 = v2.getDepth(); v5 = v2; } } } } ++v4; } if (v5 != mx.managers.SystemManager.form) { mx.managers.SystemManager.activate(v5); } } } var v9 = mx.managers.SystemManager.form; v9.focusManager._onMouseDown(); }; v1.onMouseMove = function (Void) { mx.managers.SystemManager.idleFrames = 0; }; v1.onMouseUp = function (Void) { mx.managers.SystemManager.isMouseDown = false; mx.managers.SystemManager.idleFrames = 0; }; v1.activate = function (f) { if (mx.managers.SystemManager.form != undefined) { if (mx.managers.SystemManager.form != f && mx.managers.SystemManager.forms.length > 1) { var v1 = mx.managers.SystemManager.form; v1.focusManager.deactivate(); } } mx.managers.SystemManager.form = f; f.focusManager.activate(); }; v1.deactivate = function (f) { if (mx.managers.SystemManager.form != undefined) { if (mx.managers.SystemManager.form == f && mx.managers.SystemManager.forms.length > 1) { var v5 = mx.managers.SystemManager.form; v5.focusManager.deactivate(); var v3 = mx.managers.SystemManager.forms.length; var v1; var v2; v1 = 0; while (v1 < v3) { if (mx.managers.SystemManager.forms[v1] == f) { v1 += 1; while (v1 < v3) { if (mx.managers.SystemManager.forms[v1]._visible == true) { v2 = mx.managers.SystemManager.forms[v1]; } ++v1; } mx.managers.SystemManager.form = v2; break; } else { if (mx.managers.SystemManager.forms[v1]._visible == true) { v2 = mx.managers.SystemManager.forms[v1]; } } ++v1; } v5 = mx.managers.SystemManager.form; v5.focusManager.activate(); } } }; v1.addFocusManager = function (f) { mx.managers.SystemManager.forms.push(f); mx.managers.SystemManager.activate(f); }; v1.removeFocusManager = function (f) { var v3 = mx.managers.SystemManager.forms.length; var v1; v1 = 0; while (v1 < v3) { if (mx.managers.SystemManager.forms[v1] == f) { if (mx.managers.SystemManager.form == f) { mx.managers.SystemManager.deactivate(f); } mx.managers.SystemManager.forms.splice(v1, 1); return undefined; } ++v1; } }; v1.enableOverlappedWindows = function () { if (!mx.managers.OverlappedWindows.initialized) { mx.managers.OverlappedWindows.initialized = true; mx.managers.SystemManager.checkIdle = mx.managers.OverlappedWindows.checkIdle; mx.managers.SystemManager.__addEventListener = mx.managers.OverlappedWindows.__addEventListener; mx.managers.SystemManager.__removeEventListener = mx.managers.OverlappedWindows.__removeEventListener; mx.managers.SystemManager.onMouseDown = mx.managers.OverlappedWindows.onMouseDown; mx.managers.SystemManager.onMouseMove = mx.managers.OverlappedWindows.onMouseMove; mx.managers.SystemManager.onMouseUp = mx.managers.OverlappedWindows.onMouseUp; mx.managers.SystemManager.activate = mx.managers.OverlappedWindows.activate; mx.managers.SystemManager.deactivate = mx.managers.OverlappedWindows.deactivate; mx.managers.SystemManager.addFocusManager = mx.managers.OverlappedWindows.addFocusManager; mx.managers.SystemManager.removeFocusManager = mx.managers.OverlappedWindows.removeFocusManager; } }; v1.initialized = false; v1.SystemManagerDependency = mx.managers.SystemManager; ASSetPropFlags(mx.managers.OverlappedWindows.prototype, null, 1); } #endinitclip } movieClip 134 __Packages.mx.styles.CSSSetStyle { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.CSSSetStyle) { var v1 = function () {}; mx.styles.CSSSetStyle = v1; var v2 = v1.prototype; v2._setStyle = function (styleProp, newValue) { this[styleProp] = newValue; if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) { if (styleProp == 'color') { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } } _level0.changeTextStyleInChildren(styleProp); return undefined; } if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } if (styleProp == 'themeColor') { var v7 = mx.styles.StyleManager.colorNames.haloBlue; var v6 = mx.styles.StyleManager.colorNames.haloGreen; var v8 = mx.styles.StyleManager.colorNames.haloOrange; var v4 = {}; v4[v7] = 12188666; v4[v6] = 13500353; v4[v8] = 16766319; var v5 = {}; v5[v7] = 13958653; v5[v6] = 14942166; v5[v8] = 16772787; var v9 = v4[newValue]; var v10 = v5[newValue]; if (v9 == undefined) { v9 = newValue; } if (v10 == undefined) { v10 = newValue; } this.setStyle('selectionColor', v9); this.setStyle('rollOverColor', v10); } _level0.changeColorStyleInChildren(this.styleName, styleProp, newValue); } else { if (styleProp == 'backgroundColor' && isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } _level0.notifyStyleChangeInChildren(this.styleName, styleProp, newValue); } }; v2.changeTextStyleInChildren = function (styleProp) { var v4 = getTimer(); var v5; for (v5 in this) { var v2 = this[v5]; if (v2._parent == this) { if (v2.searchKey != v4) { if (v2.stylecache != undefined) { delete v2.stylecache.tf; delete v2.stylecache[styleProp]; } v2.invalidateStyle(styleProp); v2.changeTextStyleInChildren(styleProp); v2.searchKey = v4; } } } }; v2.changeColorStyleInChildren = function (sheetName, colorStyle, newValue) { var v6 = getTimer(); var v7; for (v7 in this) { var v2 = this[v7]; if (v2._parent == this) { if (v2.searchKey != v6) { if (v2.getStyleName() == sheetName || sheetName == undefined || sheetName == '_global') { if (v2.stylecache != undefined) { delete v2.stylecache[colorStyle]; } if (typeof v2._color == 'string') { if (v2._color == colorStyle) { var v4 = v2.getStyle(colorStyle); if (colorStyle == 'color') { if (this.stylecache.tf.color != undefined) { this.stylecache.tf.color = v4; } } v2.setColor(v4); } } else { if (v2._color[colorStyle] != undefined) { if (typeof v2 != 'movieclip') { v2._parent.invalidateStyle(); } else { v2.invalidateStyle(colorStyle); } } } } v2.changeColorStyleInChildren(sheetName, colorStyle, newValue); v2.searchKey = v6; } } } }; v2.notifyStyleChangeInChildren = function (sheetName, styleProp, newValue) { var v5 = getTimer(); var v6; for (v6 in this) { var v2 = this[v6]; if (v2._parent == this) { if (v2.searchKey != v5) { if (v2.styleName == sheetName || v2.styleName != undefined && typeof v2.styleName == 'movieclip' || sheetName == undefined) { if (v2.stylecache != undefined) { delete v2.stylecache[styleProp]; delete v2.stylecache.tf; } delete v2.enabledColor; v2.invalidateStyle(styleProp); } v2.notifyStyleChangeInChildren(sheetName, styleProp, newValue); v2.searchKey = v5; } } } }; v2.setStyle = function (styleProp, newValue) { if (this.stylecache != undefined) { delete this.stylecache[styleProp]; delete this.stylecache.tf; } this[styleProp] = newValue; if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } if (styleProp == 'themeColor') { var v10 = mx.styles.StyleManager.colorNames.haloBlue; var v9 = mx.styles.StyleManager.colorNames.haloGreen; var v11 = mx.styles.StyleManager.colorNames.haloOrange; var v6 = {}; v6[v10] = 12188666; v6[v9] = 13500353; v6[v11] = 16766319; var v7 = {}; v7[v10] = 13958653; v7[v9] = 14942166; v7[v11] = 16772787; var v12 = v6[newValue]; var v13 = v7[newValue]; if (v12 == undefined) { v12 = newValue; } if (v13 == undefined) { v13 = newValue; } this.setStyle('selectionColor', v12); this.setStyle('rollOverColor', v13); } if (typeof this._color == 'string') { if (this._color == styleProp) { if (styleProp == 'color') { if (this.stylecache.tf.color != undefined) { this.stylecache.tf.color = newValue; } } this.setColor(newValue); } } else { if (this._color[styleProp] != undefined) { this.invalidateStyle(styleProp); } } this.changeColorStyleInChildren(undefined, styleProp, newValue); } else { if (styleProp == 'backgroundColor' && isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } this.invalidateStyle(styleProp); } if (mx.styles.StyleManager.isInheritingStyle(styleProp) || styleProp == 'styleName') { var v8; var v5 = newValue; if (styleProp == 'styleName') { v8 = (typeof newValue == 'string') ? _global.styles[newValue] : v5; v5 = v8.themeColor; if (v5 != undefined) { v8.selectionColor = v5; v8.rollOverColor = v8.selectionColor; } } this.notifyStyleChangeInChildren(undefined, styleProp, newValue); } }; v1.enableRunTimeCSS = function () {}; v1.classConstruct = function () { var v2 = MovieClip.prototype; var v3 = mx.styles.CSSSetStyle.prototype; mx.styles.CSSStyleDeclaration.prototype.setStyle = v3._setStyle; v2.changeTextStyleInChildren = v3.changeTextStyleInChildren; v2.changeColorStyleInChildren = v3.changeColorStyleInChildren; v2.notifyStyleChangeInChildren = v3.notifyStyleChangeInChildren; v2.setStyle = v3.setStyle; _global.ASSetPropFlags(v2, 'changeTextStyleInChildren', 1); _global.ASSetPropFlags(v2, 'changeColorStyleInChildren', 1); _global.ASSetPropFlags(v2, 'notifyStyleChangeInChildren', 1); _global.ASSetPropFlags(v2, 'setStyle', 1); var v4 = TextField.prototype; v4.setStyle = v2.setStyle; v4.changeTextStyleInChildren = v3.changeTextStyleInChildren; return true; }; v1.classConstructed = mx.styles.CSSSetStyle.classConstruct(); v1.CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; ASSetPropFlags(mx.styles.CSSSetStyle.prototype, null, 1); } #endinitclip } movieClip 135 __Packages.mx.core.ext.UIComponentExtensions { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.ext) { _global.mx.core.ext = new Object(); } if (!_global.mx.core.ext.UIComponentExtensions) { var v1 = function () {}; mx.core.ext.UIComponentExtensions = v1; var v2 = v1.prototype; v1.Extensions = function () { if (mx.core.ext.UIComponentExtensions.bExtended == true) { return true; } mx.core.ext.UIComponentExtensions.bExtended = true; TextField.prototype.setFocus = function () { Selection.setFocus(this); }; TextField.prototype.onSetFocus = function (oldFocus) { if (this.tabEnabled != false) { if ((this.getFocusManager()).bDrawFocus) { this.drawFocus(true); } } }; TextField.prototype.onKillFocus = function (oldFocus) { if (this.tabEnabled != false) { this.drawFocus(false); } }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager; mx.managers.OverlappedWindows.enableOverlappedWindows(); mx.styles.CSSSetStyle.enableRunTimeCSS(); mx.managers.FocusManager.enableFocusManagement(); }; v1.bExtended = false; v1.UIComponentExtended = mx.core.ext.UIComponentExtensions.Extensions(); v1.UIComponentDependency = mx.core.UIComponent; v1.FocusManagerDependency = mx.managers.FocusManager; v1.OverlappedWindowsDependency = mx.managers.OverlappedWindows; ASSetPropFlags(mx.core.ext.UIComponentExtensions.prototype, null, 1); } #endinitclip } movieClip 136 __Packages.mx.controls.HScrollBar { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.HScrollBar) { var v1 = function () { super(); }; mx.controls.HScrollBar = v1; var v2 = new mx.controls.scrollClasses.ScrollBar(); mx.controls.HScrollBar.prototype = v2; v2.getMinWidth = function (Void) { return this._minHeight; }; v2.getMinHeight = function (Void) { return this._minWidth; }; v2.init = function (Void) { super.init(); this._xscale = -100; this._rotation = -90; }; v2.__get__virtualHeight = function () { return this.__width; }; v2.isScrollBarKey = function (k) { if (k == 37) { this.scrollIt('Line', -1); return true; return super.isScrollBarKey(k); } if (k == 39) { this.scrollIt('Line', 1); return true; } return super.isScrollBarKey(k); }; v1.symbolName = 'HScrollBar'; v1.symbolOwner = mx.core.UIComponent; v1.version = '2.0.2.127'; v2.className = 'HScrollBar'; v2.minusMode = 'Left'; v2.plusMode = 'Right'; v2.minMode = 'AtLeft'; v2.maxMode = 'AtRight'; v2.addProperty('virtualHeight', v2.__get__virtualHeight, function () {}); ASSetPropFlags(mx.controls.HScrollBar.prototype, null, 1); } #endinitclip } movieClip 137 __Packages.mx.controls.Button { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.Button) { var v1 = function () { super(); }; mx.controls.Button = v1; var v2 = new mx.controls.SimpleButton(); mx.controls.Button.prototype = v2; v2.init = function (Void) { super.init(); }; v2.draw = function () { if (this.initializing) { this.labelPath.visible = true; } super.draw(); if (this.initIcon != undefined) { this._setIcon(this.initIcon); } delete this.initIcon; }; v2.onRelease = function (Void) { super.onRelease(); }; v2.createChildren = function (Void) { super.createChildren(); }; v2.setSkin = function (tag, linkageName, initobj) { return super.setSkin(tag, linkageName, initobj); }; v2.viewSkin = function (varName) { var v3 = this.getState() ? 'true' : 'false'; v3 += this.enabled ? this.phase : 'disabled'; super.viewSkin(varName, {'styleName': this, 'borderStyle': v3}); }; v2.invalidateStyle = function (c) { this.labelPath.invalidateStyle(c); super.invalidateStyle(c); }; v2.setColor = function (c) { var v2 = 0; while (v2 < 8) { this[this.idNames[v2]].redraw(true); ++v2; } }; v2.setEnabled = function (enable) { this.labelPath.enabled = enable; super.setEnabled(enable); }; v2.calcSize = function (tag, ref) { if (this.__width == undefined || this.__height == undefined) { return undefined; } if (tag < 7) { ref.setSize(this.__width, this.__height, true); } }; v2.size = function (Void) { this.setState(this.getState()); this.setHitArea(this.__width, this.__height); var v3 = 0; while (v3 < 8) { var v4 = this.idNames[v3]; if (typeof this[v4] == 'movieclip') { this[v4].setSize(this.__width, this.__height, true); } ++v3; } super.size(); }; v2.__set__labelPlacement = function (val) { this.__labelPlacement = val; this.invalidate(); return this.__get__labelPlacement(); }; v2.__get__labelPlacement = function () { return this.__labelPlacement; }; v2.getLabelPlacement = function (Void) { return this.__labelPlacement; }; v2.setLabelPlacement = function (val) { this.__labelPlacement = val; this.invalidate(); }; v2.getBtnOffset = function (Void) { if (this.getState()) { var v2 = this.btnOffset; return v2; } if (this.phase == 'down') { v2 = this.btnOffset; return v2; } v2 = 0; return v2; }; v2.setView = function (offset) { var v16 = offset ? this.btnOffset : 0; var v12 = this.getLabelPlacement(); var v7 = 0; var v6 = 0; var v9 = 0; var v8 = 0; var v5 = 0; var v4 = 0; var v3 = this.labelPath; var v2 = this.iconName; var v15 = v3.textWidth; var v14 = v3.textHeight; var v10 = this.__width - this.borderW - this.borderW; var v11 = this.__height - this.borderW - this.borderW; if (v2 != undefined) { v7 = v2._width; v6 = v2._height; } if (v12 == 'left' || v12 == 'right') { if (v3 != undefined) { v9 = Math.min(v10 - v7, v15 + 5); v3._width = v9; v8 = Math.min(v11, v14 + 5); v3._height = v8; } if (v12 == 'right') { v5 = v7; if (this.centerContent) { v5 += (v10 - v9 - v7) / 2; } v2._x = v5 - v7; } else { v5 = v10 - v9 - v7; if (this.centerContent) { v5 /= 2; } v2._x = v5 + v9; } v4 = 0; v2._y = v4; if (this.centerContent) { v2._y = (v11 - v6) / 2; v4 = (v11 - v8) / 2; } if (!this.centerContent) { v2._y += Math.max(0, (v8 - v6) / 2); } } else { if (v3 != undefined) { v9 = Math.min(v10, v15 + 5); v3._width = v9; v8 = Math.min(v11 - v6, v14 + 5); v3._height = v8; } v5 = (v10 - v9) / 2; v2._x = (v10 - v7) / 2; if (v12 == 'top') { v4 = v11 - v8 - v6; if (this.centerContent) { v4 /= 2; } v2._y = v4 + v8; } else { v4 = v6; if (this.centerContent) { v4 += (v11 - v8 - v6) / 2; } v2._y = v4 - v6; } } var v13 = this.borderW + v16; v3._x = v5 + v13; v3._y = v4 + v13; v2._x += v13; v2._y += v13; }; v2.__set__label = function (lbl) { this.setLabel(lbl); return this.__get__label(); }; v2.setLabel = function (label) { if (label == '') { this.labelPath.removeTextField(); this.refresh(); return undefined; } if (this.labelPath == undefined) { var v2 = this.createLabel('labelPath', 200, label); v2._width = v2.textWidth + 5; v2._height = v2.textHeight + 5; if (this.initializing) { v2.visible = false; } } else { delete this.labelPath.__text; this.labelPath.text = label; this.refresh(); } }; v2.getLabel = function (Void) { return (this.labelPath.__text != undefined) ? this.labelPath.__text : this.labelPath.text; }; v2.__get__label = function () { return this.getLabel(); }; v2._getIcon = function (Void) { return this._iconLinkageName; }; v2.__get__icon = function () { if (this.initializing) { return this.initIcon; } return this._iconLinkageName; }; v2._setIcon = function (linkage) { if (this.initializing) { if (linkage == '') { return undefined; } this.initIcon = linkage; } else { if (linkage == '') { this.removeIcons(); return undefined; } super.changeIcon(0, linkage); super.changeIcon(1, linkage); super.changeIcon(3, linkage); super.changeIcon(4, linkage); super.changeIcon(5, linkage); this._iconLinkageName = linkage; this.refresh(); } }; v2.__set__icon = function (linkage) { this._setIcon(linkage); return this.__get__icon(); }; v2.setHitArea = function (w, h) { if (this.hitArea_mc == undefined) { this.createEmptyObject('hitArea_mc', 100); } var v2 = this.hitArea_mc; v2.clear(); v2.beginFill(16711680); v2.drawRect(0, 0, w, h); v2.endFill(); v2.setVisible(false); }; v1.symbolName = 'Button'; v1.symbolOwner = mx.controls.Button; v2.className = 'Button'; v1.version = '2.0.2.127'; v2.btnOffset = 0; v2._color = 'buttonColor'; v2.__label = 'default value'; v2.__labelPlacement = 'right'; v2.falseUpSkin = 'ButtonSkin'; v2.falseDownSkin = 'ButtonSkin'; v2.falseOverSkin = 'ButtonSkin'; v2.falseDisabledSkin = 'ButtonSkin'; v2.trueUpSkin = 'ButtonSkin'; v2.trueDownSkin = 'ButtonSkin'; v2.trueOverSkin = 'ButtonSkin'; v2.trueDisabledSkin = 'ButtonSkin'; v2.falseUpIcon = ''; v2.falseDownIcon = ''; v2.falseOverIcon = ''; v2.falseDisabledIcon = ''; v2.trueUpIcon = ''; v2.trueDownIcon = ''; v2.trueOverIcon = ''; v2.trueDisabledIcon = ''; v2.clipParameters = {'labelPlacement': 1, 'icon': 1, 'toggle': 1, 'selected': 1, 'label': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters); v2.centerContent = true; v2.borderW = 1; v2.addProperty('icon', v2.__get__icon, v2.__set__icon); v2.addProperty('label', v2.__get__label, v2.__set__label); v2.addProperty('labelPlacement', v2.__get__labelPlacement, v2.__set__labelPlacement); ASSetPropFlags(mx.controls.Button.prototype, null, 1); } #endinitclip } movieClip 138 __Packages.mx.skins.halo.RectBorder { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.RectBorder) { var v1 = function () { super(); }; mx.skins.halo.RectBorder = v1; var v2 = new mx.skins.RectBorder(); mx.skins.halo.RectBorder.prototype = v2; v2.init = function (Void) { this.borderWidths.default = 3; super.init(); }; v2.getBorderMetrics = function (Void) { if (this.offset == undefined) { var v3 = this.getStyle(this.borderStyleName); this.offset = this.borderWidths[v3]; } if (this.getStyle(this.borderStyleName) == 'default' || this.getStyle(this.borderStyleName) == 'alert') { this.__borderMetrics = {'left': 3, 'top': 1, 'right': 3, 'bottom': 3}; return this.__borderMetrics; } return super.getBorderMetrics(); }; v2.drawBorder = function (Void) { var v6 = _global.styles[this.className]; if (v6 == undefined) { v6 = _global.styles.RectBorder; } var v5 = this.getStyle(this.borderStyleName); var v7 = this.getStyle(this.borderColorName); if (v7 == undefined) { v7 = v6[this.borderColorName]; } var v8 = this.getStyle(this.backgroundColorName); if (v8 == undefined) { v8 = v6[this.backgroundColorName]; } var v16 = this.getStyle('backgroundImage'); if (v5 != 'none') { var v14 = this.getStyle(this.shadowColorName); if (v14 == undefined) { v14 = v6[this.shadowColorName]; } var v13 = this.getStyle(this.highlightColorName); if (v13 == undefined) { v13 = v6[this.highlightColorName]; } var v12 = this.getStyle(this.buttonColorName); if (v12 == undefined) { v12 = v6[this.buttonColorName]; } var v11 = this.getStyle(this.borderCapColorName); if (v11 == undefined) { v11 = v6[this.borderCapColorName]; } var v10 = this.getStyle(this.shadowCapColorName); if (v10 == undefined) { v10 = v6[this.shadowCapColorName]; } } this.offset = this.borderWidths[v5]; var v9 = this.offset; var v3 = this.__get__width(); var v4 = this.__get__height(); this.clear(); this._color = undefined; if (v5 == 'none') { } else { if (v5 == 'inset') { this._color = this.colorList; this.draw3dBorder(v11, v12, v7, v13, v14, v10); } else { if (v5 == 'outset') { this._color = this.colorList; this.draw3dBorder(v11, v7, v12, v14, v13, v10); } else { if (v5 == 'alert') { var v15 = this.getStyle('themeColor'); this.drawRoundRect(0, 5, v3, v4 - 5, 5, 6184542, 10); this.drawRoundRect(1, 4, v3 - 2, v4 - 5, 4, [6184542, 6184542], 10, 0, 'radial'); this.drawRoundRect(2, 0, v3 - 4, v4 - 2, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(2, 0, v3 - 4, v4 - 2, 3, v15, 50); this.drawRoundRect(3, 1, v3 - 6, v4 - 4, 2, 16777215, 100); } else { if (v5 == 'default') { this.drawRoundRect(0, 5, v3, v4 - 5, {'tl': 5, 'tr': 5, 'br': 0, 'bl': 0}, 6184542, 10); this.drawRoundRect(1, 4, v3 - 2, v4 - 5, {'tl': 4, 'tr': 4, 'br': 0, 'bl': 0}, [6184542, 6184542], 10, 0, 'radial'); this.drawRoundRect(2, 0, v3 - 4, v4 - 2, {'tl': 3, 'tr': 3, 'br': 0, 'bl': 0}, [12897484, 11844796], 100, 0, 'radial'); this.drawRoundRect(3, 1, v3 - 6, v4 - 4, {'tl': 2, 'tr': 2, 'br': 0, 'bl': 0}, 16777215, 100); } else { if (v5 == 'dropDown') { this.drawRoundRect(0, 0, v3 + 1, v4, {'tl': 4, 'tr': 0, 'br': 0, 'bl': 4}, [13290186, 7895160], 100, -10, 'linear'); this.drawRoundRect(1, 1, v3 - 1, v4 - 2, {'tl': 3, 'tr': 0, 'br': 0, 'bl': 3}, 16777215, 100); } else { if (v5 == 'menuBorder') { var v15 = this.getStyle('themeColor'); this.drawRoundRect(4, 4, v3 - 2, v4 - 3, 0, [6184542, 6184542], 10, 0, 'radial'); this.drawRoundRect(4, 4, v3 - 1, v4 - 2, 0, 6184542, 10); this.drawRoundRect(0, 0, v3 + 1, v4, 0, [0, 14342874], 100, 250, 'linear'); this.drawRoundRect(0, 0, v3 + 1, v4, 0, v15, 50); this.drawRoundRect(2, 2, v3 - 3, v4 - 4, 0, 16777215, 100); } else { if (v5 == 'comboNonEdit') { } else { this.beginFill(v7); this.drawRect(0, 0, v3, v4); this.drawRect(1, 1, v3 - 1, v4 - 1); this.endFill(); this._color = this.borderColorName; } } } } } } } } if (v8 != undefined) { this.beginFill(v8); this.drawRect(v9, v9, this.__get__width() - v9, this.__get__height() - v9); this.endFill(); } }; v2.draw3dBorder = function (c1, c2, c3, c4, c5, c6) { var v3 = this.__get__width(); var v2 = this.__get__height(); this.beginFill(c1); this.drawRect(0, 0, v3, v2); this.drawRect(1, 0, v3 - 1, v2); this.endFill(); this.beginFill(c2); this.drawRect(1, 0, v3 - 1, 1); this.endFill(); this.beginFill(c3); this.drawRect(1, v2 - 1, v3 - 1, v2); this.endFill(); this.beginFill(c4); this.drawRect(1, 1, v3 - 1, 2); this.endFill(); this.beginFill(c5); this.drawRect(1, v2 - 2, v3 - 1, v2 - 1); this.endFill(); this.beginFill(c6); this.drawRect(1, 2, v3 - 1, v2 - 2); this.drawRect(2, 2, v3 - 2, v2 - 2); this.endFill(); }; v1.classConstruct = function () { mx.core.ext.UIObjectExtensions.Extensions(); _global.styles.rectBorderClass = mx.skins.halo.RectBorder; _global.skinRegistry.RectBorder = true; return true; }; v1.symbolName = 'RectBorder'; v1.symbolOwner = mx.skins.halo.RectBorder; v1.version = '2.0.2.127'; v2.borderCapColorName = 'borderCapColor'; v2.shadowCapColorName = 'shadowCapColor'; v2.colorList = {'highlightColor': 0, 'borderColor': 0, 'buttonColor': 0, 'shadowColor': 0, 'borderCapColor': 0, 'shadowCapColor': 0}; v2.borderWidths = {'none': 0, 'solid': 1, 'inset': 2, 'outset': 2, 'alert': 3, 'dropDown': 2, 'menuBorder': 2, 'comboNonEdit': 2}; v1.classConstructed = mx.skins.halo.RectBorder.classConstruct(); v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; ASSetPropFlags(mx.skins.halo.RectBorder.prototype, null, 1); } #endinitclip } movieClip 139 __Packages.mx.skins.halo.ButtonSkin { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.ButtonSkin) { var v1 = function () { super(); }; mx.skins.halo.ButtonSkin = v1; var v2 = new mx.skins.RectBorder(); mx.skins.halo.ButtonSkin.prototype = v2; v2.init = function () { super.init(); }; v2.size = function () { this.drawHaloRect(this.__get__width(), this.__get__height()); }; v2.drawHaloRect = function (w, h) { var v6 = this.getStyle('borderStyle'); var v4 = this.getStyle('themeColor'); var v5 = this._parent.emphasized; this.clear(); switch (v6) { case 'falseup': if (v5) { this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 75); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, v4, 75); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16316664, 100); } else { this.drawRoundRect(0, 0, w, h, 5, 9542041, 100); this.drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, 'radial'); this.drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, 'radial'); this.drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100); } break; case 'falsedown': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 50); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, v4, 20); break; case 'falserollover': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 50); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, v4, 50); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16316664, 100); break; case 'falsedisabled': this.drawRoundRect(0, 0, w, h, 5, 13159628, 100); this.drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100); this.drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100); this.drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100); break; case 'trueup': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 10066329, 100); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 50); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16250871, 100); break; case 'truedown': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 10066329, 100); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 50); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, v4, 20); break; case 'truerollover': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 50); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 40); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16316664, 100); break; case 'truedisabled': this.drawRoundRect(0, 0, w, h, 5, 13159628, 100); this.drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100); this.drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100); this.drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100); } }; v1.classConstruct = function () { mx.core.ext.UIObjectExtensions.Extensions(); _global.skinRegistry.ButtonSkin = true; return true; }; v1.symbolName = 'ButtonSkin'; v1.symbolOwner = mx.skins.halo.ButtonSkin; v2.className = 'ButtonSkin'; v2.backgroundColorName = 'buttonColor'; v1.classConstructed = mx.skins.halo.ButtonSkin.classConstruct(); v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; ASSetPropFlags(mx.skins.halo.ButtonSkin.prototype, null, 1); } #endinitclip } movieClip 140 __Packages.mx.controls.VScrollBar { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.VScrollBar) { var v1 = function () { super(); }; mx.controls.VScrollBar = v1; var v2 = new mx.controls.scrollClasses.ScrollBar(); mx.controls.VScrollBar.prototype = v2; v2.init = function (Void) { super.init(); }; v2.isScrollBarKey = function (k) { if (k == 38) { this.scrollIt('Line', -1); return true; return super.isScrollBarKey(k); } if (k == 40) { this.scrollIt('Line', 1); return true; return super.isScrollBarKey(k); } if (k == 33) { this.scrollIt('Page', -1); return true; return super.isScrollBarKey(k); } if (k == 34) { this.scrollIt('Page', 1); return true; } return super.isScrollBarKey(k); }; v1.symbolName = 'VScrollBar'; v1.symbolOwner = mx.core.UIComponent; v1.version = '2.0.2.127'; v2.className = 'VScrollBar'; v2.minusMode = 'Up'; v2.plusMode = 'Down'; v2.minMode = 'AtTop'; v2.maxMode = 'AtBottom'; ASSetPropFlags(mx.controls.VScrollBar.prototype, null, 1); } #endinitclip } movieClip 141 __Packages.com.newgrounds.components.FlashAd { #initclip Unknown action: 0xfc function () {  = (2350 % 511) * true; if (!'') { } else {} return ; } var  = -239 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 822) {  += 206; if ( != 957) break;  -= 70; for (;;) { } else {}  -= 332; goto 1233; } } } } } } } } } } } } } Unknown action: 0xfc label 1233: ( != 67) ? '' : true; #endinitclip } movieClip 155 __Packages.com.newgrounds.APIError { #initclip label -30980: label -10077: Unknown action: 0xfc function () {  = (678 % 511) * true; if (!'') { } else {} return ; } var  = 334 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  += 48; continue; if ( == 215) {  += 492; continue; for (;;) { if ( == 895) {  -= 713; goto -10077; } if ( == 549) {  -= 296; if (!true) { goto 359;  += 405; label 359: } else {  += 614; if ( == 362) { continue; } if ( == 896) {  -= 866; } if ( == 182) {  += 525; } if ( == 253) {  += 405; goto -30980; } if ( == 598) {  -= 100; if (!( != 501 :::  == 501)) { goto 653; }  += 443; label 653: } if ( == 746) {  -= 521; } if ( == 969) {  -= 607; } if ( == 566) {  += 329; if (!( != 501 :::  == 501)) { goto 1544; }  -= 713; label 1544: } if ( == 225) {  += 556; } if ( == 707) {  -= 109; } if ( == 4) {  += 562; } if ( == 941) {  -= 716; } if ( == 30) {  += 939; if (!( != 501 :::  == 501)) { continue; }  -= 607; } if ( == 498) {  += 443; goto 33243; } if ( == 798) {  += 98; } if ( == 186) {  -= 182; }  -= 136;  += 153; var eval( != 934) = '';  -= 654;  -= 976; } } } } } } } } } } } } } } } } } } } } } } } } }  != 501; true; #endinitclip } movieClip 156 __Packages.com.newgrounds.API { #initclip label -18522: label -12511: Unknown action: 0xfc function () {  = (1221 % 511) * true; if (!'') { } else {} return ; } var  = -124 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  -= 2; continue; #endinitclip } movieClip 157 __Packages.com.newgrounds.Bridge { #initclip label -31572: Unknown action: 0xfc function () {  = (1997 % 511) * true; if (!'') { } else {} return ; } var  = -85 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 379) {  -= 70; if ( != 745) break;  += 224; for (;;) { if ( != 565) break;  -= 487; if ( == 786) { if ( == 127) {  += 618; } if ( != 969) break;  -= 490; // An attempt to read a value from empty stack // An attempt to read a value from empty stack var eval(undefined) = undefined; if ( == 751) {  -= 518; true; } } else {}  -= 35; if ( == 233) {  -= 154; // An attempt to read a value from empty stack if (!undefined) { continue; }  += 366; } } else {  += 366; if ( == 79) { } if ( == 479) {  += 383; ''; } if ( == 445) {  += 300; } if ( == 862) {  -= 287; // An attempt to read a value from empty stack eval(undefined); } if ( == 575) {  -= 102; // An attempt to read a value from empty stack !undefined; } if ( != 124) break;  += 627; if ( != 473) break;  += 192; // An attempt to read a value from empty stack if (!undefined) { goto 993; }  -= 100; label 993: if ( == 89) {  += 35; goto -31572; } if ( != 309) break;  -= 220; // An attempt to read a value from empty stack if (undefined) break; goto 1131;  += 35; label 1131: if ( == 665) {  -= 100; } if ( == 78) {  -= 78; } } } } } } } } } } } } } } } } } } } } } Unknown action: 0xfc true; ''; 1; #endinitclip } movieClip 158 __Packages.com.newgrounds.SaveFile { #initclip label -22969: label -9203: label -5110: Unknown action: 0xfc function () {  = (1727 % 511) * true; if (!'') { } else {} return ; } var  = -55 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 139) {  += 289; true; } if ( != 270) break;  += 502; for (;;) { if ( != 326) break;  += 446; if ( == 951) {  -= 253; break; } if ( != 772) break;  -= 546; if ( == 698) {  -= 85; } if ( == 574) {  += 39; } if ( == 603) {  += 170; if ( != 224) break;  += 307; } else {  += 725; if ( == 226) { if (!eval(true)) { }  -= 253; } } if ( != 297) break;  -= 268; if (true ::: eval(true)) break; continue;  += 99; if ( == 773) {  -= 476; // An attempt to read a value from empty stack !undefined; } if ( == 433) {  += 392; } if ( == 727) {  -= 457; goto -5110; } if ( == 29) {  += 99; } else {  += 384; // An attempt to read a value from empty stack if ( == 343) { if (!undefined) { }  -= 457; } } if ( == 112) {  += 491; ''; } if ( == 428) {  += 155; // An attempt to read a value from empty stack if (!undefined) { break; }  -= 135; } if ( == 825) {  -= 669; ''; 1; } if ( != 624) break;  -= 191; goto -22969; if ( != 583) goto 4470;  -= 135; goto -9203; label 4470:  -= 188;  -= 550; for (;;) { if (!true) {  += 561; } }  += 83; if ( != 448) goto 4788;  += 781; label 4788:  -= 44; var eval(true) =  != 156; for (;;) {  += 453; break; }  -= 581; } } } } } } } } } } } } } } } } } } } } } } } } } } } } }  != 531; #endinitclip } movieClip 159 __Packages.com.newgrounds.SaveGroup { #initclip label -29350: label -6182: Unknown action: 0xfc function () {  = (1082 % 511) * true; if (!'') { } else {} return ; } var  = -27 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 33) {  += 408; true; } if ( != 462) break;  -= 333; // An attempt to read a value from empty stack // An attempt to read a value from empty stack if ( == 88) {  += 5; } if (!undefined) {  += 192; if ( == 60) { } if ( == 866) {  -= 741; break; goto 2623; } if ( == 747) {  -= 301; }  += 473;  -= 823; var eval( != 446) = true;  -= 327;  += 240;  += 492;  -= 250; for (;;) { if (eval(!(( != 645) ? undefined))) goto 1779;  += 878; } label 1779:  -= 18;  -= 125; }  != 884; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } Unknown action: 0xfc #endinitclip } movieClip 160 __Packages.com.newgrounds.ValidationTools { #initclip label -26616: label -18260: Unknown action: 0xfc function () {  = (872 % 511) * true; if (!'') { } else {} return ; } var  = 209 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  += 407; continue; if ( != 588) break;  += 333; for (;;) { goto 1411; if ( == 945) {  -= 518; } if ( != 643) break;  += 302; if ( == 977) {  += 2; if (!true) { goto 395; }  -= 336; label 395: } if ( == 490) {  += 455; } if ( == 413) {  += 175; } if ( == 979) {  -= 336; goto -26616; } if ( == 509) {  += 420; } if ( == 921) {  -= 921; } if ( == 951) {  -= 22; } if ( == 929) {  -= 800; } if ( == 427) {  += 326; goto 1054; label 1054: } else {  += 298; if ( == 115) { if (!true) { }  += 175; } } if ( != 477) break;  -= 362; if ( == 753) {  -= 244; goto -18260; } if ( != 129) break;  += 221; var eval( != 570) = !true; if ( == 350) {  -= 220; ''; } if ( == 130) {  += 347; // An attempt to read a value from empty stack eval(undefined); } } } } } } } } } } } } } } } } } } } label 1411: Unknown action: 0xfc #endinitclip } movieClip 161 __Packages.com.newgrounds.APIEvent { #initclip label -25688: label -8852: Unknown action: 0xfc function () {  = (1375 % 511) * true; if (!'') { } else {} return ; } var  = 491 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 844) {  -= 510; true; } if ( == 74) {  += 788; for (;;) { goto -25688; if ( == 123) {  += 790; // An attempt to read a value from empty stack if (!undefined) { break; }  -= 824; } if ( == 744) {  -= 302; ''; } if ( != 180) break;  -= 28; if ( == 95) {  += 369; ''; 1; } if ( != 89) break;  += 599; goto 2294; continue; if ( == 186) {  -= 112; // An attempt to read a value from empty stack if (!undefined) { continue; }  += 788; } if ( == 913) {  -= 824; } if ( == 846) {  -= 155; goto 33079; } if ( == 691) {  -= 596; } if ( != 152) break;  += 34; if ( == 308) {  -= 185; } if ( == 334) {  -= 49; if (!(true ::: !true)) { goto 1689; }  -= 105; label 1689: } if ( != 533) break;  += 313; if (true ::: !true) break; goto 1772;  -= 155; label 1772: if ( == 285) {  -= 105; goto -8852; } if ( == 810) {  -= 658; } if ( == 442) {  -= 134; // An attempt to read a value from empty stack eval(undefined); } if ( == 632) {  -= 99; true; } if ( == 464) {  += 280; // An attempt to read a value from empty stack // An attempt to read a value from empty stack var eval(undefined) = undefined; }  -= 230;  += 43;  -= 625;  -= 688; }  != 862; } } } } } } } } } } } } } } } } } } } } } } } } label 2294: #endinitclip } movieClip 162 __Packages.com.newgrounds.SaveGroupQuery { #initclip label -28856: label -15528: Unknown action: 0xfc function () {  = (1695 % 511) * true; if (!'') { } else {} return ; } var  = 421 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 583) {  += 204; true; } // An attempt to read a value from empty stack } } } } } } } } } } } } } } } } } } label 3629: Unknown action: 0xfc ( != 661) ? undefined; #endinitclip } movieClip 163 __Packages.com.newgrounds.encoders.BaseN { #initclip label -4616: Unknown action: 0xfc function () {  = (263 % 511) * true; if (!'') { } else {} return ; } var  = 299 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  += 403; continue; #endinitclip } movieClip 164 __Packages.com.newgrounds.encoders.ImageScanner { #initclip Unknown action: 0xfc function () {  = (2740 % 511) * true; if (!'') { } else {} return ; } var  = 685 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { // An attempt to read a value from empty stack } } } } } } } } } } } } } ( != 870) ? undefined; #endinitclip } movieClip 165 __Packages.com.newgrounds.encoders.SerialXML { #initclip label -29562: label -8740: Unknown action: 0xfc function () {  = (2879 % 511) * true; if (!'') { } else {} return ; } var  = -58 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { // An attempt to read a value from empty stack } } } } } } } } } } } } } } } } } } } } } } } } } } } } Unknown action: 0xfc ( != 266) ? undefined; #endinitclip } movieClip 166 __Packages.com.newgrounds.encoders.LZW2 { #initclip label -12747: label -9404: Unknown action: 0xfc function () {  = (1433 % 511) * true; if (!'') { } else {} return ; } var  = -183 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 228) {  += 628; true; } if ( == 623) {  -= 425; for (;;) { if ( == 301) {  -= 203; if ( == 209) {  -= 88; } if ( != 856) break;  -= 233; // An attempt to read a value from empty stack } else { if (!undefined) { }  -= 322; } if ( == 581) {  += 297; // An attempt to read a value from empty stack if (!undefined) { break; }  += 11; } } else {}  -= 322; goto -12747; if ( == 878) {  += 11; goto -9404; } if ( == 640) {  -= 542; } if ( == 546) {  -= 744; if ( == 953) { } if ( == 351) {  -= 108; } if ( != 98) break;  += 412; if ( == 889) {  -= 786; } if ( == 510) {  += 443; if (!true) { goto 1443; }  -= 744; label 1443: } if ( != 857) break;  -= 491; if ( == 121) {  += 460; } if ( != 492) break;  -= 389; if ( == 103) {  += 581; } if ( == 684) {  -= 448; // An attempt to read a value from empty stack var eval(undefined) = !true; } if ( == 559) {  += 298; } if ( == 366) {  -= 15; for (;;) { } }  += 323;  += 481; goto 2050; goto 2046;  -= 724; } !true ::: eval(!true);  != 236; ''; } } } } } } } } } } } } } } } } } } } } } } } } Unknown action: 0xfc label 2050: #endinitclip } movieClip 167 __Packages.com.newgrounds.encoders.LZW { #initclip label -28718: label -18054: Unknown action: 0xfc function () {  = (423 % 511) * true; if (!'') { } else {} return ; } var  = 264 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { // An attempt to read a value from empty stack } } } } } } } } } } } } } } } } } } } } } } } label 1780: ( != 687) ? undefined; #endinitclip } movieClip 168 __Packages.com.newgrounds.Medal { #initclip label -28148: label -22556: Unknown action: 0xfc function () {  = (1006 % 511) * true; if (!'') { } else {} return ; } var  = 27 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { // An attempt to read a value from empty stack } } } } } } } } } } } } } } } } } } } } } } } label 2266: ( != 522) ? undefined; #endinitclip } movieClip 169 __Packages.com.newgrounds.ScoreBoard { #initclip label -30880: label -3364: Unknown action: 0xfc function () {  = (1967 % 511) * true; if (!'') { } else {} return ; } var  = -285 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 149) {  -= 13; true; } if ( == 868) {  -= 92; for (;;) { if ( == 470) {  -= 190; } } else {}  -= 291; if ( != 871) break;  -= 482; if ( == 389) {  += 73; if ( == 202) { } if ( == 707) {  -= 318; } if ( == 97) {  += 610; goto -30880; } if ( == 280) {  += 45; } if ( == 325) {  -= 228; if (!1) { continue; }  += 610; } if ( == 140) {  -= 133; } if ( == 749) {  -= 487; } if ( == 895) {  -= 318; } if ( != 829) break;  -= 80; if ( != 300) break;  -= 134; if ( == 262) {  += 367; if (1) { goto 1459; }  += 189; label 1459: } else {  += 135; if ( == 67) { if (!'') { }  += 73; } } if ( != 297) break;  += 554; var  = !1; if ( == 275) {  += 474; } if ( != 851) break;  += 137;  -= 75; break;  -= 538;  -= 510; for (;;) {  -= 26; } for (;;) { if (!true) {  += 834; } } if ( == 629) {  += 189; goto -3364; }  -= 688; for (;;) {  += 615; break; }  -= 622; } '';  != 970; eval( != 988); } } } } } } } } } } } } } } } } } } } } } } } } } } } } } #endinitclip } movieClip 170 __Packages.com.newgrounds.Score { #initclip label -11263: label -4136: Unknown action: 0xfc function () {  = (145 % 511) * true; if (!'') { } else {} return ; } var  = 543 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 688) {  -= 276; true; } if ( == 567) {  -= 668; for (;;) { if ( != 704) break;  += 197; // An attempt to read a value from empty stack if ( == 236) {  += 63; } if ( == 846) {  += 104; goto -11263; } if ( == 412) {  += 303; if (undefined) { break; }  += 9; } } else {}  += 278; goto 1901; break; if ( == 421) {  += 425; if (undefined) { goto 600; }  += 104; label 600: } if ( == 967) {  -= 569; if ( == 805) { } if ( == 241) {  += 564; if (undefined) { continue; }  -= 569; } if ( == 724) {  -= 231; } if ( == 230) {  += 337; } if ( == 950) {  -= 664; if ( == 876) {  -= 590; } } else {  -= 671; if ( == 901) { if (undefined) { }  += 337; } } if ( != 687) break;  -= 570; // An attempt to read a value from empty stack var eval(undefined) = !undefined; if ( == 493) {  -= 72; true; } if ( != 299) break;  += 388; if ( != 286) break;  -= 45; if ( != 117) break;  += 196; if ( != 869) goto 1735;  -= 376; label 1735:  += 391;  -= 845;  += 9; goto -4136; } ''; 1; true; ''; eval( != 313); } } } } } } } } } } } } } } } } } } } } } } } } label 1901: #endinitclip } movieClip 171 __Packages.com.newgrounds.encoders.RC4 { #initclip label -6204: Unknown action: 0xfc function () {  = (38 % 511) * true; if (!'') { } else {} return ; } var  = 295 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 333) {  += 438; true; } if ( != 783) break;  -= 417; // An attempt to read a value from empty stack if ( == 930) { for (;;) { goto 235;  += 254; label 235: if ( == 61) {  += 722; // An attempt to read a value from empty stack !undefined; } if ( == 144) {  += 847; } if ( == 47) {  += 97; goto -6204; } if ( == 563) {  += 39; if ( != 566) break;  += 22; break; if ( == 135) {  += 428; // An attempt to read a value from empty stack var eval(undefined) = ''; } } else {  += 303; if ('') break; if ( == 263) {  += 22; ''; } } if ( == 184) {  += 807; } if ( == 588) {  -= 62; } if ( == 991) {  -= 542; true; } if ( == 449) {  -= 291; // An attempt to read a value from empty stack if (!undefined) { continue; }  += 282; } if ( == 853) {  -= 806; // An attempt to read a value from empty stack if (!undefined) { goto 985; }  += 97; label 985: } if ( == 602) {  -= 541; // An attempt to read a value from empty stack eval(undefined); } if ( != 366) break;  += 254; if ( == 978) {  -= 361; goto 33429; } } else {}  -= 404; if (!undefined) {  += 282; if ( == 158) { } if ( == 526) {  += 327; true; }  -= 28;  += 441;  += 764; for (;;) { if (!true) {  += 207; } }  -= 746; if (1) goto 1976;  -= 478; break; goto 2145; label 1976:  -= 142;  -= 351;  -= 326; }  != 291;  != 881; '';  != 142; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } Unknown action: 0xfc #endinitclip } movieClip 172 __Packages.com.newgrounds.encoders.JSON { #initclip label -24047: label -20489: label -6491: Unknown action: 0xfc function () {  = (1418 % 511) * true; if (!'') { } else {} return ; } var  = 14 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 410) {  -= 391; true; } if ( == 448) {  += 143; for (;;) { if ( == 539) {  -= 505; } if ( == 315) {  += 112; // An attempt to read a value from empty stack !undefined; } if ( != 19) break;  += 627; // An attempt to read a value from empty stack if (!undefined) { continue; }  -= 198; if ( == 82) {  += 233; // An attempt to read a value from empty stack eval(undefined); } if ( != 646) break;  -= 198; goto -24047; if ( == 653) {  -= 587; true; } if ( != 803) break;  -= 212; if ( == 832) {  -= 179; } if ( == 591) {  -= 195; true; } if ( == 843) {  -= 765; goto -6491; } if ( == 422) {  -= 340; ''; } if ( != 462) break;  -= 40; // An attempt to read a value from empty stack // An attempt to read a value from empty stack var eval(undefined) = undefined; if ( == 396) {  += 447; // An attempt to read a value from empty stack if (!undefined) { goto 2539; }  -= 765; label 2539: } if ( != 347) break;  -= 157; if ( == 204) {  -= 25; goto -20489; } if ( != 78) break;  += 575; if ( == 190) {  += 272; ''; 1; } if ( == 427) {  += 112; } if ( == 66) {  += 138; for (;;) { } }  += 11;  += 400; goto 3104; goto 3100;  -= 434; }  != 179; } } } } } } } } } } } } } } } } } } } } } } } } Unknown action: 0xfc label 3104: #endinitclip } movieClip 173 __Packages.com.newgrounds.APIEventDispatcher { #initclip Unknown action: 0xfc function () {  = (595 % 511) * true; if (!'') { } else {} return ; } var  = 240 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 324) {  += 240; if ( != 635) break;  += 101; for (;;) { if ( != 513) break;  += 17; if ( == 530) { if ( == 245) {  += 436; } if ( != 303) break;  += 433; if ( == 861) {  += 89; ''; } if ( != 736) break;  -= 505; if ( == 575) {  -= 62; } if ( == 976) {  -= 158; if (!1) { continue; }  -= 515; } if ( == 564) {  -= 288; if (!1) { break; }  -= 31; } } else {}  -= 530; if ( == 674) {  -= 515; if ( == 818) { } if ( == 950) {  -= 668; } if ( == 231) {  += 630; var  = 1 ::: eval(1); } if ( == 282) {  += 168; } else {  += 125; if ( == 450) { if (1 ::: eval(1)) { }  -= 62; } } if ( == 681) {  += 295; } } else {}  += 7; } else {  -= 31; if ( == 276) { } } } } } } } } } } } } } } } } } } } } } Unknown action: 0xfc true; #endinitclip } movieClip 174 __Packages.com.newgrounds.encoders.MD5 { #initclip label -3695: Unknown action: 0xfc function () {  = (2764 % 511) * true; if (!'') { } else {} return ; } var  = 750 + (); while ( == 959) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  -= 281; continue; if ( == 678) {  -= 77; continue; for (;;) { if ( == 816) {  -= 462; goto -3695; } if (!eval(true)) {  -= 340; } else {} break;  -= 261; } if ( == 419) {  -= 261; if ( == 338) { } if ( == 185) {  += 234; if ( != 191) break;  += 177; if ( == 658) {  += 132; } } else {  -= 632; if ('') break; if ( == 823) {  += 177; } } if ( == 928) {  -= 918; } if ( == 864) {  -= 48; if (eval(true)) break; goto 1035;  -= 462; label 1035: } if ( == 588) {  += 340; } if ( == 354) {  += 574; } if ( == 790) {  += 74; } if ( == 10) {  += 175; // An attempt to read a value from empty stack var eval(undefined) = eval(true); } if ( == 77) {  += 713; } if ( == 342) {  += 481; } else {  += 341; if ( == 368) { } if ( == 709) {  -= 709; } } } } } } } } } } } } } } } } } } } } Unknown action: 0xfc true ::: (eval(true) ::: !eval(true)); #endinitclip } movieClip 191 __Packages.com.newgrounds.components.APIConnector { #initclip label -14065: label -3076: label -1083: Unknown action: 0xfc function () {  = (2421 % 511) * true; if (!'') { } else {} return ; } var  = -320 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 57) {  += 233; true; } if ( == 608) {  -= 3; // An attempt to read a value from empty stack for (;;) { if ( == 269) {  += 360; } if ( != 290) break;  -= 110; if (!eval(undefined)) { continue; }  += 810; if ( == 731) {  -= 470; // An attempt to read a value from empty stack if (!undefined) { continue; }  += 69; } if ( == 411) {  += 197; ''; } if ( != 259) break;  += 218; goto -3076; if ( == 440) {  += 141; true; } if ( == 605) {  -= 340; // An attempt to read a value from empty stack !undefined; } if ( == 180) {  += 810; goto -1083; } if ( == 425) {  -= 14; // An attempt to read a value from empty stack // An attempt to read a value from empty stack var eval(undefined) = undefined; } if ( != 229) break;  += 40; break; if ( == 990) {  -= 374; } if ( == 876) {  -= 617; // An attempt to read a value from empty stack if (!undefined) { goto 930; }  += 218; label 930: } if ( != 581) break;  -= 352; // An attempt to read a value from empty stack if (!undefined) { goto 1013;  += 40; label 1013: } else {  -= 158; break; if ( == 665) { } if ( == 629) {  += 247; true; } if ( == 477) {  -= 2; } if ( == 265) {  -= 68; // An attempt to read a value from empty stack if (undefined) goto 1233; break; label 1233:  += 468; } if ( == 197) {  += 468; } if ( != 151) break;  += 478; if ( != 733) goto 2457;  -= 117; label 2457:  += 115;  += 317;  += 110; if (true) goto 2680;  += 69; goto -14065; label 2680:  += 291;  -= 50;  -= 507;  != 616;  != 184; ''; 1; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } #endinitclip } movieClip 269 { } frame 3 { stop(); var greenLight = false; var warningTxt = ''; var lives = 5; bottomDark._visible = false; failure._visible = false; dollar._visible = false; health_mcA._visible = false; myLogo._visible = false; dmgIndicator._visible = false; close._visible = false; noListen._visible = false; pauseGame._visible = false; currentListen._visible = false; var muted = false; var gamePaused = false; mute_mc._visible = false; mute_mc.onRelease = function () { if (muted == false) { _root.crowdBg.setVolume(0); _root.cheer.setVolume(0); _root.startSong.setVolume(0); _root.idle.setVolume(0); _root.speedUp.setVolume(0); _root.topSpeed.setVolume(0); _root.sGentlemen.setVolume(0); _root.sBoom.setVolume(0); _root.sBump.setVolume(0); _root.sCarStart.setVolume(0); _root.sCrash.setVolume(0); _root.screech.setVolume(0); _root.beep1.setVolume(0); _root.beep2.setVolume(0); _root.mute_mc.gotoAndStop(2); muted = true; } else { _root.crowdBg.setVolume(80); _root.cheer.setVolume(100); _root.startSong.setVolume(100); _root.idle.setVolume(100); _root.speedUp.setVolume(100); _root.topSpeed.setVolume(100); _root.sGentlemen.setVolume(100); _root.sBoom.setVolume(100); _root.sBump.setVolume(100); _root.sCarStart.setVolume(100); _root.sCrash.setVolume(100); _root.beep1.setVolume(100); _root.beep2.setVolume(100); _root.screech.setVolume(100); _root.mute_mc.gotoAndStop(1); muted = false; } }; _root.beep1 = new Sound(_root.beep1_mc); beep1.attachSound('firstBeep'); _root.beep2 = new Sound(_root.beep2_mc); beep2.attachSound('secondBeep'); _root.crowdBg = new Sound(_root.crowdBg_mc); crowdBg.attachSound('crowd'); _root.cheer = new Sound(_root.cheer_mc); cheer.attachSound('cheer'); _root.startSong = new Sound(_root.startMusic_mc); startSong.attachSound('startingSong'); _root.idle = new Sound(_root.IdleSound_mc); idle.attachSound('idleloop'); _root.speedUp = new Sound(_root.accelSound_mc); speedUp.attachSound('speedUp'); _root.topSpeed = new Sound(topSpeed_mc); topSpeed.attachSound('topSpeedFx'); _root.sGentlemen = new Sound(gentlemen_mc); sGentlemen.attachSound('soundGentlemen'); _root.sBoom = new Sound(_root.soundBoom_mc); sBoom.attachSound('soundBoom'); _root.sBump = new Sound(_root.soundBump_mc); sBump.attachSound('soundBump'); _root.sCarStart = new Sound(carStart_mc); sCarStart.attachSound('soundCarStart'); _root.sCrash = new Sound(carCrash_mc); sCrash.attachSound('soundCrash'); _root.screech = new Sound(_root.soundScreech_mc); screech.attachSound('soundScreech'); _root.dfgLogo._visible = false; _root.dashboard._visible = false; radioBg._visible = false; changeStation._visible = false; artistHomepage._visible = false; prev._visible = false; pause._visible = false; playnow._visible = false; nextMovie._visible = false; station._visible = false; download._visible = false; groove._visible = false; slider._visible = false; grooveBg._visible = false; trackInfo._visible = false; trackInfoBg._visible = false; Classical._visible = false; Ambient._visible = false; Dance._visible = false; Drumnbass._visible = false; House._visible = false; Industrial._visible = false; Newwave._visible = false; Techno._visible = false; Trance._visible = false; Videogame._visible = false; Rnb._visible = false; Britpop._visible = false; Classicrock._visible = false; Generalrock._visible = false; Grunge._visible = false; Heavymetal._visible = false; Indie._visible = false; Pop._visible = false; Punk._visible = false; Funk._visible = false; Goth._visible = false; Latin._visible = false; Misc._visible = false; Jazz._visible = false; Ska._visible = false; Bluegrass._visible = false; Blues._visible = false; Country._visible = false; Hiphopold._visible = false; Hiphopnew._visible = false; } frame 3 { function shuffle() { _root.genreList = ''; _root.sa = new Array(); var v2 = Math.ceil(Math.random() * 30); if (v2 == '3') { _root.genreList = 'Classical'; Classical.selected = true; _root.genreArray.push('Classical'); } if (v2 == '18') { _root.genreList = 'Jazz'; Jazz.selected = true; _root.genreArray.push('Jazz'); } if (v2 == '5') { _root.genreList = 'Ambient'; Ambient.selected = true; _root.genreArray.push('Ambient'); } if (v2 == '6') { _root.genreList = 'Dance'; Dance.selected = true; _root.genreArray.push('Dance'); } if (v2 == '7') { _root.genreList = 'Drum N Bass'; Drumnbass.selected = true; _root.genreArray.push('Drum N Bass'); } if (v2 == '9') { _root.genreList = 'House'; House.selected = true; _root.genreArray.push('House'); } if (v2 == '8') { _root.genreList = 'Industrial'; Industrial.selected = true; _root.genreArray.push('Industrial'); } if (v2 == '20') { _root.genreList = 'New Wave'; Newwave.selected = true; _root.genreArray.push('New Wave'); } if (v2 == '10') { _root.genreList = 'Techno'; Techno.selected = true; _root.genreArray.push('Techno'); } if (v2 == '11') { _root.genreList = 'Trance'; Trance.selected = true; _root.genreArray.push('Trance'); } if (v2 == '12') { _root.genreList = 'Video Game'; Videogame.selected = true; _root.genreArray.push('Video Game'); } if (v2 == '17') { _root.genreList = 'Hip Hop - Modern'; Hiphopnew.selected = true; _root.genreArray.push('Hip Hop - Modern'); } if (v2 == '16') { _root.genreList = 'Hip Hop - Olskool'; Hiphopold.selected = true; _root.genreArray.push('Hip Hop - Olskool'); } if (v2 == '21') { _root.genreList = 'R n B'; Rnb.selected = true; _root.genreArray.push('R n B'); } if (v2 == '22') { _root.genreList = 'Brit Pop'; Britpop.selected = true; _root.genreArray.push('Brit Pop'); } if (v2 == '23') { _root.genreList = 'Classical Rock'; Classicrock.selected = true; _root.genreArray.push('Classical Rock'); } if (v2 == '24') { _root.genreList = 'General Rock'; Generalrock.selected = true; _root.genreArray.push('General Rock'); } if (v2 == '25') { _root.genreList = 'Grunge'; Grunge.selected = true; _root.genreArray.push('Grunge'); } if (v2 == '15') { _root.genreList = 'Heavy Metal'; Heavymetal.selected = true; _root.genreArray.push('Heavy Metal'); } if (v2 == '26') { _root.genreList = 'Indie'; Indie.selected = true; _root.genreArray.push('Indie'); } if (v2 == '27') { _root.genreList = 'Pop'; Pop.selected = true; _root.genreArray.push('Pop'); } if (v2 == '28') { _root.genreList = 'Punk'; Punk.selected = true; _root.genreArray.push('Punk'); } if (v2 == '13') { _root.genreList = 'Funk'; Funk.selected = true; _root.genreArray.push('Funk'); } if (v2 == '14') { _root.genreList = 'Goth'; Goth.selected = true; _root.genreArray.push('Goth'); } if (v2 == '19') { _root.genreList = 'Latin'; Latin.selected = true; _root.genreArray.push('Latin'); } if (v2 == '30') { _root.genreList = 'Miscellaneous'; Misc.selected = true; _root.genreArray.push('Miscellaneous'); } if (v2 == '29') { _root.genreList = 'Ska'; Ska.selected = true; _root.genreArray.push('Ska'); } if (v2 == '1') { _root.genreList = 'Bluegrass'; Bluegrass.selected = true; _root.genreArray.push('Bluegrass'); } if (v2 == '2') { _root.genreList = 'Blues'; Blues.selected = true; _root.genreArray.push('Blues'); } if (v2 == '4') { _root.genreList = 'Country'; Country.selected = true; _root.genreArray.push('Country'); } } function shuffleArray(array) { var v3 = array.length; var v2 = array.slice(); var v5; var v1; var v4; v1 = 0; while (v1 < v3) { v4 = v2[v1]; v5 = random(v3); v2[v1] = v2[v5]; v2[v5] = v4; ++v1; } return v2; } function loadXml() { genreList = ''; totalSongs = new Array(); _root.cps = -1; totalSongs = createAllSongs(); _root.sa = chooseSongs(totalSongs); _root.sa = shuffleArray(_root.sa); playSong(); if (_root.genreList == '') { _root.genreList = 'Heavy Metal'; } } function changeStation() { loadXml(); } function playSong() { s = new Sound(); s.onSoundComplete = playSong; if (_root.cps == _root.sa.length - 1) { _root.cps = 0; s.loadSound(_root.sa[_root.cps].earl, true); } else { s.loadSound(_root.sa[++_root.cps].earl, true); } trackInfo.text = _root.sa[_root.cps].artist + ' - ' + _root.sa[_root.cps].track + ' - ' + _root.sa[_root.cps].genre; playPause.gotoAndStop('pause'); textPos = 0; var v4 = false; var v3 = 0; while (v3 < ha.length) { if (_root.sa[_root.cps].track == ha[v3]) { v4 = true; } ++v3; } var v2 = 0; while (v2 < myHistory.length) { if (_root.sa[_root.cps].track == (myHistory.getItemAt(v2)).track) { myHistory.selectedIndex = v2; } ++v2; } if (v4 == false) { ha.push(_root.sa[_root.cps].track); myHistory.addItem({'label': ha[ha.length - 1] + ' by ' + _root.sa[_root.cps].artist, 'artist': _root.sa[_root.cps].artist, 'track': _root.sa[_root.cps].track, 'musicId': _root.sa[_root.cps].musicId, 'authorUrl': _root.sa[_root.cps].authorUrl, 'genre': _root.sa[_root.cps].genre, 'data': _root.sa[_root.cps].earl}); myFavorites.selectedIndex = null; myHistory.selectedIndex = myHistory.length - 1; } _root.selectedGenre = (myHistory.getItemAt(myHistory.selectedIndex)).genre; } function playPrevSong() { s = new Sound(); s.onSoundComplete = playSong; mute.gotoAndStop('on'); if (_root.cps == _root.sa.length - 1) { _root.cps = 0; s.loadSound(_root.sa[_root.cps].earl, true); } else { s.loadSound(_root.sa[--_root.cps].earl, true); } trackInfo.text = _root.sa[_root.cps].artist + ' - ' + _root.sa[_root.cps].track + ' - ' + _root.sa[_root.cps].genre; playPause.gotoAndStop('pause'); textPos = 0; var v3 = false; var v2 = 0; while (v2 < ha.length) { if (_root.sa[_root.cps].track == ha[v2]) { v3 = true; } ++v2; } if (v3 == false) { ha.push(_root.sa[_root.cps].track); myHistory.addItem({'label': ha[ha.length - 1] + ' by ' + _root.sa[_root.cps].artist, 'artist': _root.sa[_root.cps].artist, 'track': _root.sa[_root.cps].track, 'musicId': _root.sa[_root.cps].musicId, 'authorUrl': _root.sa[_root.cps].authorUrl, 'genre': _root.sa[_root.cps].genre, 'data': _root.sa[_root.cps].earl}); myHistory.selectedIndex = myHistory.length - 1; myFavorites.selectedIndex = null; } } function pauseIt() { pos = s.position; s.stop(); } function unPauseIt() { s.start(pos / 1000); } function scroller() { if (myHistory.selectedIndex != null) { var v1 = (myHistory.getItemAt(myHistory.selectedIndex)).artist + ' - ' + (myHistory.getItemAt(myHistory.selectedIndex)).track + ' - ' + (myHistory.getItemAt(myHistory.selectedIndex)).genre; if (textPos + size < v1.length) { ++textPos; trackInfo.text = ((myHistory.getItemAt(myHistory.selectedIndex)).artist + ' - ' + (myHistory.getItemAt(myHistory.selectedIndex)).track + ' - ' + (myHistory.getItemAt(myHistory.selectedIndex)).genre).substring(textPos, textPos + size); } else { clearInterval(intervalID); intervalID = setInterval(scroller2, 1000); } } else { var v1 = (myFavorites.getItemAt(myFavorites.selectedIndex)).artist + ' - ' + (myFavorites.getItemAt(myFavorites.selectedIndex)).track + ' - ' + (myHistory.getItemAt(myHistory.selectedIndex)).genre; if (textPos + size < v1.length) { ++textPos; trackInfo.text = ((myFavorites.getItemAt(myFavorites.selectedIndex)).artist + ' - ' + (myFavorites.getItemAt(myFavorites.selectedIndex)).track + ' - ' + (myHistory.getItemAt(myHistory.selectedIndex)).genre).substring(textPos, textPos + size); } else { clearInterval(intervalID); intervalID = setInterval(scroller2, 1000); } } } function scroller2() { if (myHistory.selectedIndex != null) { var v1 = (myHistory.getItemAt(myHistory.selectedIndex)).artist + ' - ' + (myHistory.getItemAt(myHistory.selectedIndex)).track + ' - ' + (myHistory.getItemAt(myHistory.selectedIndex)).genre; if (textPos > 0) { --textPos; trackInfo.text = ((myHistory.getItemAt(myHistory.selectedIndex)).artist + ' - ' + (myHistory.getItemAt(myHistory.selectedIndex)).track + ' - ' + (myHistory.getItemAt(myHistory.selectedIndex)).genre).substring(textPos, textPos + size); } else { clearInterval(intervalID); intervalID = setInterval(scroller, 1000); } } else { var v1 = (myHistory.getItemAt(myHistory.selectedIndex)).artist + ' - ' + (myHistory.getItemAt(myHistory.selectedIndex)).track + ' - ' + (myHistory.getItemAt(myHistory.selectedIndex)).genre; if (textPos > 0) { --textPos; trackInfo.text = ((myFavorites.getItemAt(myFavorites.selectedIndex)).artist + ' - ' + (myFavorites.getItemAt(myFavorites.selectedIndex)).track + ' - ' + (myHistory.getItemAt(myHistory.selectedIndex)).genre).substring(textPos, textPos + size); } else { clearInterval(intervalID); intervalID = setInterval(scroller, 1000); } } } function createAllSongs() { songArrayTotal = new Array(); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352804', 'JesseProper', 'Villan Table', 0, 'Bluegrass', 'http://JesseProper.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/337709', 'JesseProper', '3 Frog Bros - Speedyshoe', 0, 'Bluegrass', 'http://JesseProper.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/15672', 'Denvish', 'Goin\' Down to Newgrounds Vmix', 0, 'Bluegrass', 'http://Denvish.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/323241', 'nathanielmilburn', 'Man on a Mountain', 0, 'Bluegrass', 'http://nathanielmilburn.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/306503', 'Detoxx', 'A Horse With No Name(cover)', 0, 'Bluegrass', 'http://Detoxx.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/346660', 'caphand', 'Halfway To Homer', 0, 'Bluegrass', 'http://caphand.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/189451', 'bahstrike', 'crap bill nye remix :D', 0, 'Bluegrass', 'http://bahstrike.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/266292', 'CrisisSound', 'The True Song of the South', 0, 'Bluegrass', 'http://CrisisSound.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/227161', 'ZakoZaku', 'All of You (Are Dead)', 0, 'Bluegrass', 'http://ZakoZaku.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/210244', 'camman007', 'My Home Town', 0, 'Bluegrass', 'http://camman007.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/59844', 'Bosa', 'Rolling Waves', 0, 'Bluegrass', 'http://Bosa.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/219883', 'nubbinownz', 'The late bloomer', 0, 'Bluegrass', 'http://nubbinownz.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/93963', 'Sentinel94', 'Cornwall Farm', 0, 'Bluegrass', 'http://Sentinel94.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/288375', 'GroovyPirate', 'Aint No More Cane', 0, 'Bluegrass', 'http://GroovyPirate.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/172426', 'lordandrew88', 'Crunkbanjo', 0, 'Bluegrass', 'http://lordandrew88.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/76139', 'VanRiku', 'Born In Crystal City', 0, 'Bluegrass', 'http://VanRiku.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/82253', 'Bosa', 'The Babb Boys', 0, 'Bluegrass', 'http://Bosa.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/227187', 'GroovyPirate', 'Down by the fire', 0, 'Bluegrass', 'http://GroovyPirate.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349337', 'JesseProper', 'Green Plays the Skin Flute', 0, 'Bluegrass', 'http://JesseProper.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/58866', 'Mr-Show', 'That\'s Tankmen! (Theme Song)', 0, 'Bluegrass', 'http://Mr-Show.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/187551', 'breakerboy89', 'Sunset Awesome', 0, 'Bluegrass', 'http://breakerboy89.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/120918', 'rocker206', '-Sunset-', 0, 'Bluegrass', 'http://rocker206.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/338934', 'JesseProper', '3 Frog Bros - Green\'s Fight', 0, 'Bluegrass', 'http://JesseProper.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/240708', 'photosyntesen', 'Freedom (P)', 0, 'Bluegrass', 'http://photosyntesen.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352009', 'JesseProper', 'Fight Amongst the Frog Bros', 0, 'Bluegrass', 'http://JesseProper.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/87499', 'Bosa', 'Babb Boys in Cherokee', 0, 'Bluegrass', 'http://Bosa.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/217192', 'Ydnar84', 'Do You Really Care?', 0, 'Bluegrass', 'http://Ydnar84.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/95564', 'HandsomePete', '[dG] The Butt Tickler\'s Groove', 0, 'Bluegrass', 'http://HandsomePete.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/270234', 'RocketFetus', 'Squawk Sqwack', 0, 'Bluegrass', 'http://RocketFetus.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/245046', 'photosyntesen', 'Perfect chaos (P)', 0, 'Bluegrass', 'http://photosyntesen.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/262980', 'carr88', '<88> Tribal <88>', 0, 'Bluegrass', 'http://carr88.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/281843', 'Sp1r1T', 'Chicken Wing', 0, 'Bluegrass', 'http://Sp1r1T.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/327854', 'Iwannahamster', 'Iwh - Audtion!!!!!!!!!!!!!!!!!', 0, 'Bluegrass', 'http://Iwannahamster.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/67530', 'guilmonx', 'Countech Roll', 0, 'Bluegrass', 'http://guilmonx.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/2060', 'Denvish', 'Ragtime Blues (Instr version)', 0, 'Bluegrass', 'http://Denvish.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/345419', 'imakethebettermusic', 'Poppin\' my zits one at a time', 0, 'Bluegrass', 'http://imakethebettermusic.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/17662', 'Zawinul', 'Sally Goodin', 0, 'Bluegrass', 'http://Zawinul.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/240049', 'matt22221', 'The Southern Life', 0, 'Bluegrass', 'http://matt22221.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/264646', 'carr88', '<88> Skywatcher <88>', 0, 'Bluegrass', 'http://carr88.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/305100', 'Zakimations', 'Late Night Ride (Drunken Live)', 0, 'Bluegrass', 'http://Zakimations.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/197177', 'alphazero15', 'Happy Harmonica', 0, 'Bluegrass', 'http://alphazero15.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/324216', 'HyperDoom', 'Taking the old night train', 0, 'Bluegrass', 'http://HyperDoom.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/348391', 'ThePopcicleMan', 'Epic Maple Leaf Rag', 0, 'Bluegrass', 'http://ThePopcicleMan.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/335908', 'EzCSchonen', 'Hillbilly Delight', 0, 'Bluegrass', 'http://EzCSchonen.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/262750', 'RocketFetus', 'Hey There Everybody', 0, 'Bluegrass', 'http://RocketFetus.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/27152', 'Denvish', 'Goodbye - Loop (16s)', 0, 'Bluegrass', 'http://Denvish.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/312316', 'RyeGuyHead', '(_RGH_) Banjou', 0, 'Bluegrass', 'http://RyeGuyHead.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/326415', 'JegaLight', 'Bluegrass melody', 0, 'Bluegrass', 'http://JegaLight.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/96050', 'Smithster', 'Country Music Bar Background', 0, 'Bluegrass', 'http://Smithster.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/324441', 'Zoobilord', 'Two Twenty Ten', 0, 'Bluegrass', 'http://Zoobilord.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/345322', 'Kadadj', 'Strings Better version', 0, 'Classical', 'http://Kadadj.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/346154', 'corbetweller', 'Dan Sieg\'s Passion', 0, 'Classical', 'http://corbetweller.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/351808', 'CreamingStar', 'Stay Courageous *C-Star*', 0, 'Classical', 'http://CreamingStar.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/317201', 'Bas3008', 'Glorious Victory', 0, 'Classical', 'http://Bas3008.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/353473', 'infinitemomentstudio', 'piano piece, not completed', 0, 'Classical', 'http://infinitemomentstudio.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352253', 'MarkySpark', 'Drowning into the Heavens', 0, 'Classical', 'http://MarkySpark.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/348297', 'GameBoyFireworks', 'The Finish', 0, 'Classical', 'http://GameBoyFireworks.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/338128', 'CreamingStar', 'In That Final Hour *C-Star*', 0, 'Classical', 'http://CreamingStar.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/264585', 'mr-vincent', 'ProgLiquid (Test)', 0, 'Classical', 'http://mr-vincent.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/342588', 'Lopikol', 'Epic Project Demo (feat.Maggy)', 0, 'Classical', 'http://Lopikol.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/329255', 'CreamingStar', 'The Titan\'s Sword *C-Star*', 0, 'Classical', 'http://CreamingStar.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/344265', 'MarkySpark', 'The Deer Watcher', 0, 'Classical', 'http://MarkySpark.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/299620', 'Bas3008', 'Hero\'s Destiny', 0, 'Classical', 'http://Bas3008.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/209253', 'Bas3008', 'Keybee Productions Logo Music', 0, 'Classical', 'http://Bas3008.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/334568', 'CreamingStar', 'Vampire\'s Lament *C-Star*', 0, 'Classical', 'http://CreamingStar.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/347971', 'kill4peace', '~K4P~ 33 - orchestral demo 5', 0, 'Classical', 'http://kill4peace.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/341691', 'Jhunour', 'Romance for violin guitar & s.', 0, 'Classical', 'http://Jhunour.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/332588', 'kill4peace', '~K4P~ 30 - orchestral demo 2', 0, 'Classical', 'http://kill4peace.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/333089', 'corbetweller', 'Fantasy Four Strings', 0, 'Classical', 'http://corbetweller.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/306544', 'DavidOrr', '-Orr- 4 Brave Champions [FULL]', 0, 'Classical', 'http://DavidOrr.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/343575', 'Bas3008', 'Enemy in the Fog WIP', 0, 'Classical', 'http://Bas3008.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/335269', 'Kretoperz', 'Anna', 0, 'Classical', 'http://Kretoperz.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/336552', 'kill4peace', '~K4P~ 31 - orchestral demo 3', 0, 'Classical', 'http://kill4peace.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/339418', 'Japillow', 'Blank Stare (RD2010)- Japillow', 0, 'Classical', 'http://Japillow.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/290100', 'MarkySpark', 'November (Live)', 0, 'Classical', 'http://MarkySpark.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/319772', 'MoonlitRaven', 'Secrets of the Night', 0, 'Classical', 'http://MoonlitRaven.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/325184', 'MarkySpark', 'Celestial Ideal', 0, 'Classical', 'http://MarkySpark.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/344606', 'pavelzuk', '-Little Ship Theme-', 0, 'Classical', 'http://pavelzuk.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/350988', 'LogicalDefiance', '- LD - Arctic Flying Machine', 0, 'Classical', 'http://LogicalDefiance.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/321597', 'MarkySpark', 'The Minor Song', 0, 'Classical', 'http://MarkySpark.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/329212', 'kill4peace', '~K4P~ 29 - Approaching (demo)', 0, 'Classical', 'http://kill4peace.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/333291', 'corbetweller', 'Lost Love - Corbet', 0, 'Classical', 'http://corbetweller.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/345832', 'Setu-Firestorm', 'Children of the Sky (NEW)', 0, 'Classical', 'http://Setu-Firestorm.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/320761', 'MarkySpark', 'The Edge.', 0, 'Classical', 'http://MarkySpark.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352449', 'FluteJazz', 'Reflective Piano Loop', 0, 'Classical', 'http://FluteJazz.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349439', 'CKC2009', 'CKC - No Heroes', 0, 'Classical', 'http://CKC2009.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/305018', 'MarkySpark', 'If tomorrow comes', 0, 'Classical', 'http://MarkySpark.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/335437', 'hania', 'Lady Noir Music', 0, 'Classical', 'http://hania.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/348103', 'IVoltage', 'IVoltage - Piano Medley', 0, 'Classical', 'http://IVoltage.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/292566', 'MarkySpark', 'Battle for the Blood Throne II', 0, 'Classical', 'http://MarkySpark.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/305042', 'YueYang', 'The Corridor of Mirrors', 0, 'Classical', 'http://YueYang.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349325', 'LogicalDefiance', 'Action Scoring Work', 0, 'Classical', 'http://LogicalDefiance.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/320652', 'MarkySpark', 'Alone Again.', 0, 'Classical', 'http://MarkySpark.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/343278', 'Lasse', 'Kitty krew \'theme\' for piano', 0, 'Classical', 'http://Lasse.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/348924', 'pavelzuk', '-Flying Machine Theme-', 0, 'Classical', 'http://pavelzuk.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/122580', 'SasquaMox', 'SQM*Remembrance', 0, 'Classical', 'http://SasquaMox.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/335838', 'MoonlitRaven', 'An Autumn\'s Breeze', 0, 'Classical', 'http://MoonlitRaven.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/312457', 'Cyclonic', 'Cyclonic - Flight', 0, 'Classical', 'http://Cyclonic.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/267901', 'FuNaNdMoRe', 'Birth of a new Life', 0, 'Classical', 'http://FuNaNdMoRe.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/312695', 'Manuel-Dangelo', 'My heart beats', 0, 'Classical', 'http://Manuel-Dangelo.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/334011', 'Firefreezer', 'Listen To The Silence', 0, 'Classical Rock', 'http://Firefreezer.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/276477', 'mr-vincent', 'Minister Of Life', 0, 'Classical Rock', 'http://mr-vincent.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/345544', 'Oso09', 'Guitar Practice', 0, 'Classical Rock', 'http://Oso09.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/341829', 'XTREEMMAK', 'Lands of Forever - Male Ver.', 0, 'Classical Rock', 'http://XTREEMMAK.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/337259', 'Oney', 'Leo & Satan Theme - Original', 0, 'Classical Rock', 'http://Oney.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/340644', 'fizzlerr', '-[FR]- Golden meadow sunset', 0, 'Classical Rock', 'http://fizzlerr.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/348966', 'Firefreezer', 'From Sadness To Glory', 0, 'Classical Rock', 'http://Firefreezer.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/331595', 'VaudevilleFreud', 'Moving Along I Said', 0, 'Classical Rock', 'http://VaudevilleFreud.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/337393', 'JMcGoran', 'LBV', 0, 'Classical Rock', 'http://JMcGoran.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/345612', 'Redeemer2113', '[2113] The End', 0, 'Classical Rock', 'http://Redeemer2113.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/350818', 'fizzlerr', '-[FR]- Moonlit desert', 0, 'Classical Rock', 'http://fizzlerr.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/342541', 'zac11114', 'No Name Music...', 0, 'Classical Rock', 'http://zac11114.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/327101', 'Darklight17', 'D17 - Minutes to Midnight', 0, 'Classical Rock', 'http://Darklight17.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/330170', 'CosmicAlfonzo', 'Black Napkins(Frank Zappa)', 0, 'Classical Rock', 'http://CosmicAlfonzo.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/33332', 'joeyjoejoshabadoo', 'Kindergarten', 0, 'Classical Rock', 'http://joeyjoejoshabadoo.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/335877', 'Lublub194', 'LB - Meet your maker', 0, 'Classical Rock', 'http://Lublub194.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/22009', 'TheLameSauce', 'i heart lesbians', 0, 'Classical Rock', 'http://TheLameSauce.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/314278', 'Firefreezer', 'Idea 21 (Demo)', 0, 'Classical Rock', 'http://Firefreezer.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/334427', 'XoXCindyOxO', 'Moments To Die For', 0, 'Classical Rock', 'http://XoXCindyOxO.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/342135', 'toor101', 'blood and gold care', 0, 'Classical Rock', 'http://toor101.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/320031', 'GALICROSS', 'One day in the City', 0, 'Classical Rock', 'http://GALICROSS.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/348083', 'TheViolentVendetta', 'Last Word', 0, 'Classical Rock', 'http://TheViolentVendetta.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/296602', 'masheenH3ad', 'Neo Classical Caprice No. 24', 0, 'Classical Rock', 'http://masheenH3ad.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/153472', 'noxus21', '2nd revision', 0, 'Classical Rock', 'http://noxus21.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/280800', 'Tonindo', 'Back From the Future', 0, 'Classical Rock', 'http://Tonindo.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/138905', 'a-rest', 'wenn i amoi', 0, 'Classical Rock', 'http://a-rest.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/135770', 'a-rest', 'vaterland-kraterland', 0, 'Classical Rock', 'http://a-rest.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/346085', 'Redeemer2113', '[2113] The End Extended Ver.', 0, 'Classical Rock', 'http://Redeemer2113.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/337351', 'DerangedRangerDanger', '(DRD) Acoustic Piece 1', 0, 'Classical Rock', 'http://DerangedRangerDanger.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/294851', 'HannsB', 'krachmaninoff-downdowndown', 0, 'Classical Rock', 'http://HannsB.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/341245', 'theBAOWS', 'Purple Melody', 0, 'Classical Rock', 'http://theBAOWS.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/252062', 'HannsB', 'krachmaninoff-gone for good', 0, 'Classical Rock', 'http://HannsB.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/319414', 'Hybridization', '+H+ Ring of Fire [RmX]', 0, 'Classical Rock', 'http://Hybridization.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/325448', 'NJAZ', 'Dimension Theory', 0, 'Classical Rock', 'http://NJAZ.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/331320', 'whitebabbit', 'If I die, groove me slow', 0, 'Classical Rock', 'http://whitebabbit.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/188576', 'a-rest', 'i mecht aussteign', 0, 'Classical Rock', 'http://a-rest.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/254209', 'HannsB', 'krachmaninoff-jackoffhearts', 0, 'Classical Rock', 'http://HannsB.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/353259', 'TheViolentVendetta', 'Aspiring Feelings', 0, 'Classical Rock', 'http://TheViolentVendetta.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/211983', 'dailydevil', 'Well, if... (in Russian)', 0, 'Classical Rock', 'http://dailydevil.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/342248', 'dbz-dude', 'dbz:battle(japanese bgm)', 0, 'Classical Rock', 'http://dbz-dude.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/346795', 'mentally-detached', 'Petty Theives', 0, 'Classical Rock', 'http://mentally-detached.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/253438', 'mr-vincent', 'Shadows Swallowed Her', 0, 'Classical Rock', 'http://mr-vincent.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/252992', 'HannsB', 'krachmaninoff-lookingfor', 0, 'Classical Rock', 'http://HannsB.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/348890', 'isaac100000', 'Eleanor Rigby Cover....', 0, 'Classical Rock', 'http://isaac100000.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/347212', 'yeajimmiboi', 'Simple Rock Song', 0, 'Classical Rock', 'http://yeajimmiboi.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/334809', 'CosmicAlfonzo', 'Happy Birthy Day', 0, 'Classical Rock', 'http://CosmicAlfonzo.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/350288', 'landon91', 'Vermillion UH!', 0, 'Classical Rock', 'http://landon91.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/332005', 'smilingpig67', 'The Turkish March Fur Elise', 0, 'Classical Rock', 'http://smilingpig67.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/316755', 'HannsB', 'krachmaninoff-strangerocknroll', 0, 'Classical Rock', 'http://HannsB.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/247350', 'HannsB', 'Krachmaninoff -Wonderful World', 0, 'Classical Rock', 'http://HannsB.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352993', 'Wrim', 'No Matter (Sandy Motorcade)', 0, 'Country', 'http://Wrim.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/353359', 'RobPoppy', 'Native Polka', 0, 'Country', 'http://RobPoppy.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/301572', 'Lundsfryd', 'Trashkeeper (revisited)', 0, 'Country', 'http://Lundsfryd.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/340781', 'San7a', 'Sixteen Tons', 0, 'Country', 'http://San7a.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/334297', 'IIPhase', 'Saloon brawl (Faster Version)', 0, 'Country', 'http://IIPhase.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/318369', 'CarolinaCountry', 'Working Hard Hardly Working', 0, 'Country', 'http://CarolinaCountry.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/298193', 'Norboto', 'Buck & Larry', 0, 'Country', 'http://Norboto.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/109086', 'Yust', '{Great days in Farwest}', 0, 'Country', 'http://Yust.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/344496', 'djnet', 'Hillbilly Hellraiser', 0, 'Country', 'http://djnet.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/301575', 'Lundsfryd', 'Late now', 0, 'Country', 'http://Lundsfryd.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/339003', 'Haynayy', 'I\'ll Be On My Way Now', 0, 'Country', 'http://Haynayy.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/311001', 'Evark', 'Take Me Home Country Roads', 0, 'Country', 'http://Evark.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/316041', 'AshleyAlyse', 'My Last Goodb-eye', 0, 'Country', 'http://AshleyAlyse.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/314381', 'StuffyOne', 'Southern Accent', 0, 'Country', 'http://StuffyOne.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/318897', 'Urbanus', 'I ain\'t never', 0, 'Country', 'http://Urbanus.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/328717', 'Haynayy', 'Pleasant Day', 0, 'Country', 'http://Haynayy.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/321119', 'level1isbest', 'years down the road', 0, 'Country', 'http://level1isbest.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/112408', 'Minoff', 'Curse Rag', 0, 'Country', 'http://Minoff.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/345404', 'toastedavalanche', 'In A Dream (acoustic demo)', 0, 'Country', 'http://toastedavalanche.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/244975', 'Stalagmite', 'satan is a friend of mine', 0, 'Country', 'http://Stalagmite.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/305351', 'LupeGarcon', 'Skat (free form insanity)', 0, 'Country', 'http://LupeGarcon.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/334114', 'Greenskullkid', '12 year old girls', 0, 'Country', 'http://Greenskullkid.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/335429', 'Haynayy', 'Clay Pigeons', 0, 'Country', 'http://Haynayy.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/306802', 'BinaryGuy', 'VOID-Starry Night', 0, 'Country', 'http://BinaryGuy.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/327539', '5vedjeland', 'The Final Countdown oMpA', 0, 'Country', 'http://5vedjeland.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/291417', 'theutopianking', 'Just Southern', 0, 'Country', 'http://theutopianking.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/231483', 'TheBardOfBlasphemy', 'The Titty Ditty', 0, 'Country', 'http://TheBardOfBlasphemy.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/320795', 'nicklesrox', '[NR] New Saddle', 0, 'Country', 'http://nicklesrox.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/245971', 'TheMaskedJew', 'Slum Tourist', 0, 'Country', 'http://TheMaskedJew.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/295243', 'Orangepot', 'Farmer George {OP}', 0, 'Country', 'http://Orangepot.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/343210', 'SaberWyng', 'SweetCountryMoveit', 0, 'Country', 'http://SaberWyng.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/252761', 'Bosa', 'Fellers on the Boat', 0, 'Country', 'http://Bosa.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/226782', 'Urbanus', 'Mama can you cook some candy?', 0, 'Country', 'http://Urbanus.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/121516', 'White-Elephant', 'Great White Elephant', 0, 'Country', 'http://White-Elephant.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/238070', 'SlntCobra1', 'Ghost Train -- Mix', 0, 'Country', 'http://SlntCobra1.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/197999', 'thecoreman', 'Melodigold', 0, 'Country', 'http://thecoreman.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/217786', 'anza141', 'California valley', 0, 'Country', 'http://anza141.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/341572', 'Urbanus', 'Blue River', 0, 'Country', 'http://Urbanus.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/178834', 'Dimoria', 'Redneck In Exär', 0, 'Country', 'http://Dimoria.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/336356', 'MrDiemon54', 'TF2 rocket jump song(original)', 0, 'Country', 'http://MrDiemon54.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/252584', 'AronKong', 'Hey Pops!', 0, 'Country', 'http://AronKong.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/170037', 'Lundsfryd', 'Dusty Horror', 0, 'Country', 'http://Lundsfryd.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/253743', 'guilmonx', 'Northern Deixo', 0, 'Country', 'http://guilmonx.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/289440', 'Grargh', 'Acknowledge The Corn', 0, 'Country', 'http://Grargh.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/174044', 'EdibleCastle', 'The Puddin\' On Your Face', 0, 'Country', 'http://EdibleCastle.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/252316', 'Protoshroom', 'Country Side Drive', 0, 'Country', 'http://Protoshroom.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/160294', 'Waterflame', '-Morgans harvest-', 0, 'Country', 'http://Waterflame.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/330585', 'SydRic', 'Silgo Creek(Cover Song)', 0, 'Country', 'http://SydRic.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/193989', 'thecoreman', 'Golden Guitar Cover', 0, 'Country', 'http://thecoreman.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/318424', 'cook', 'Dip in the Pond', 0, 'Country', 'http://cook.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/353339', 'ioneofmany', 'Bjorns getting laid!', 0, 'Dance', 'http://ioneofmany.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352369', 'Damphr', '[DEMO] Quick Numb', 0, 'Dance', 'http://Damphr.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/353470', 'shesmackshard', '[SxHx + Ejay] All Night Strong', 0, 'Dance', 'http://shesmackshard.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/344119', 'NeonEntity', 'Something Chaos', 0, 'Dance', 'http://NeonEntity.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/348475', 'KidneyBeanClock', 'More Alive Than You', 0, 'Dance', 'http://KidneyBeanClock.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/335171', 'SUB4RU', 'Howdoyado', 0, 'Dance', 'http://SUB4RU.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/351771', 'Shoephly', 'attackattackinterlude sPhlyRMX', 0, 'Dance', 'http://Shoephly.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/342124', 'SUB4RU', 'U got 2 know - BeefourMusic', 0, 'Dance', 'http://SUB4RU.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349706', 'CKC2009', 'CKC - Show Me Love (tha Remix)', 0, 'Dance', 'http://CKC2009.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/343707', 'SOcollab', 'so\'clb - Infertehno 2', 0, 'Dance', 'http://SOcollab.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/154390', 'JebbaL', '*- Pokémon DancemiX -*', 0, 'Dance', 'http://JebbaL.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/322600', 'AlxEllis', 'AlxEllis - Feels Like Heaven', 0, 'Dance', 'http://AlxEllis.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/326751', 'Rig', 'Rig - Moar', 0, 'Dance', 'http://Rig.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/299472', 'F-777', 'Once More - F-777', 0, 'Dance', 'http://F-777.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/322773', 'djInTheDark', 'Pixel 9000 [Ring] (Dance)', 0, 'Dance', 'http://djInTheDark.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/341180', 'SUB4RU', 'Acid Overdose - BeefourMusic', 0, 'Dance', 'http://SUB4RU.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/333711', 'vwvSTATICvwv', 'Any Blacker', 0, 'Dance', 'http://vwvSTATICvwv.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/351735', 'VilkoContact', 'New Divide (Vilko Remix)', 0, 'Dance', 'http://VilkoContact.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/327345', 'christho', 'Don\'t Tell Me That It\'s Over', 0, 'Dance', 'http://christho.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349405', 'Envy', '~EnV~SummerSounds', 0, 'Dance', 'http://Envy.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/313207', 'Beatcrasher', 'Innocence Lost (Demo V. 2)', 0, 'Dance', 'http://Beatcrasher.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/342964', 'SUB4RU', 'Office Based - BeefourMusic', 0, 'Dance', 'http://SUB4RU.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/335367', 'M45T3R-11', 'Kissed By The Sky <:Pillow:>', 0, 'Dance', 'http://M45T3R-11.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/118390', 'Psybot', 'Psybot - Tears of oblivion', 0, 'Dance', 'http://Psybot.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/275664', 'djInTheDark', '[DJ_ITD] - Solace of Revenge', 0, 'Dance', 'http://djInTheDark.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/341177', 'Exotec', 'Exotec - Turn It Up!', 0, 'Dance', 'http://Exotec.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/341179', 'SUB4RU', 'Angel - BeefourMusic', 0, 'Dance', 'http://SUB4RU.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/176585', 'Slug-Salt', 'The Escape Velocity', 0, 'Dance', 'http://Slug-Salt.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/346542', 'DJPolahBaerz', 'Dance with the PolahBaerz', 0, 'Dance', 'http://DJPolahBaerz.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/254300', 'JebbaL', '*-See You Again (Jebbal Mix)-*', 0, 'Dance', 'http://JebbaL.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/329459', 'Bafana', '-BAF- Cheer Up [FFS!]', 0, 'Dance', 'http://Bafana.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/320457', 'z0di4c', 'Love in this Club (Zodiac Rmx)', 0, 'Dance', 'http://z0di4c.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/317073', 'F-777', 'He\'s a Pirate - F-777 ReMiX', 0, 'Dance', 'http://F-777.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/275040', 'dj-pompier', 'Dj Lucky Thr33 - ZdaeL', 0, 'Dance', 'http://dj-pompier.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/340680', 'Champius', 'Tell me Why - Champius R mix', 0, 'Dance', 'http://Champius.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349494', 'F-777', 'Wander of Thought - F-777', 0, 'Dance', 'http://F-777.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/329960', 'ioneofmany', 'Lets Play Some HoN teaser', 0, 'Dance', 'http://ioneofmany.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/345903', 'ioneofmany', 'This Ride Called Life (128bpm)', 0, 'Dance', 'http://ioneofmany.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/339775', 'Beats4Beets', 'Voltage - [[B4B]Remix]', 0, 'Dance', 'http://Beats4Beets.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/323787', 'InvisibleObserver', 'Our Selection', 0, 'Dance', 'http://InvisibleObserver.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/329105', 'Birdinator99', '_Dancing With Demons_', 0, 'Dance', 'http://Birdinator99.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/343234', 'M45T3R-11', 'Interlude <Pillow! Remix>', 0, 'Dance', 'http://M45T3R-11.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/141262', 'Shinrog', 'Infertehno', 0, 'Dance', 'http://Shinrog.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/265011', 'Bjra', '[DjBjra] Paradiso Magnificente', 0, 'Dance', 'http://Bjra.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/325734', 'NghtcrwlrD', 'The Enigma of Sound', 0, 'Dance', 'http://NghtcrwlrD.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/347704', 'Radosh', 'Libass & Radosh - Come with us', 0, 'Dance', 'http://Radosh.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/325190', 'Champius', 'Tell me When (Champius Remix)', 0, 'Dance', 'http://Champius.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/342287', 'Shoephly', '{sPhly} - Reason RMX [WIP]', 0, 'Dance', 'http://Shoephly.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/118961', 'ZeRo-BaSs', '*Darkest Shadow* / ZeRo BaSs', 0, 'Dance', 'http://ZeRo-BaSs.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/284745', 'combatplayer', 'its always hardest in starts', 0, 'Dance', 'http://combatplayer.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/348169', 'MmmCake', 'Armor [Demo]', 0, 'Drum N Bass', 'http://MmmCake.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352554', 'SteakJohnson', 'SJ - Noise Project', 0, 'Drum N Bass', 'http://SteakJohnson.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352903', 'Pocketpod', 'Storm Flood', 0, 'Drum N Bass', 'http://Pocketpod.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352724', 'RawGreen', 'A Frigost Experience', 0, 'Drum N Bass', 'http://RawGreen.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352979', 'Azoic', 'Distorted Puzzle', 0, 'Drum N Bass', 'http://Azoic.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352730', 'BAZmotherfucker', 'BAZ - A Piano Song @190.69bpm', 0, 'Drum N Bass', 'http://BAZmotherfucker.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352906', 'DjZedL', 'Lost Breaks', 0, 'Drum N Bass', 'http://DjZedL.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/353291', 'experimentg', 'D-Bomb', 0, 'Drum N Bass', 'http://experimentg.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352605', 'SteakJohnson', 'SJ [Dead Space]', 0, 'Drum N Bass', 'http://SteakJohnson.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/348117', 'BAZmotherfucker', 'BAZ - Clam Hat', 0, 'Drum N Bass', 'http://BAZmotherfucker.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/336549', 'Sunshaft', 'Sunshaft - Brutal HardDubstep', 0, 'Drum N Bass', 'http://Sunshaft.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/340076', 'TiGeR', 'TiGeR - Altocumulus', 0, 'Drum N Bass', 'http://TiGeR.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/348976', 'glitcho', 'clouds and castles (cut)', 0, 'Drum N Bass', 'http://glitcho.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/347854', 'DesoPL', 'DFR- Samurai duel', 0, 'Drum N Bass', 'http://DesoPL.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/275825', 'TiGeR', 'TiGeR - Failed Dreams', 0, 'Drum N Bass', 'http://TiGeR.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/297998', 'combatplayer', 'Evolving Waves', 0, 'Drum N Bass', 'http://combatplayer.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352563', 'Mrmilkcarton', 'xKore-Time\'s Up(Time Extended)', 0, 'Drum N Bass', 'http://Mrmilkcarton.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/336290', 'pokerockmario', '2DP REV - The Nightrunner', 0, 'Drum N Bass', 'http://pokerockmario.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/247628', 'SineRider', 'SR - Massif', 0, 'Drum N Bass', 'http://SineRider.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/338968', 'CricketSaysChill', 'Ass in an Elevator', 0, 'Drum N Bass', 'http://CricketSaysChill.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/344355', 'VladNS', 'you freak', 0, 'Drum N Bass', 'http://VladNS.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349766', 'Zooloo75', 'Gavin A - Minus One v2', 0, 'Drum N Bass', 'http://Zooloo75.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/328541', 'VladNS', 'Innervision', 0, 'Drum N Bass', 'http://VladNS.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/260623', 'alertG', 'Dark Blue Sky', 0, 'Drum N Bass', 'http://alertG.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/343287', 'Flared24', 'Flared - Mistaken VIP (Cut)', 0, 'Drum N Bass', 'http://Flared24.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/330301', 'Pocketpod', 'Artificial Sleep', 0, 'Drum N Bass', 'http://Pocketpod.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/324295', 'Skela', 'Rastafari', 0, 'Drum N Bass', 'http://Skela.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/295890', 'robothair', 'Future Frog World', 0, 'Drum N Bass', 'http://robothair.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/133707', 'Mitsuray', 'Robotic Nature (Collaboration)', 0, 'Drum N Bass', 'http://Mitsuray.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/52876', 'Slug-Salt', 'Heal', 0, 'Drum N Bass', 'http://Slug-Salt.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/336027', 'picklesandwichh', 'Dexterity [DnB]', 0, 'Drum N Bass', 'http://picklesandwichh.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/331466', 'VladNS', 'somewhere near', 0, 'Drum N Bass', 'http://VladNS.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/86495', 'SHADOWFOX2', 'Boogie Remix', 0, 'Drum N Bass', 'http://SHADOWFOX2.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/301857', 'DesoPL', 'RA 3- Lady Fury (DFR Dnb Mix)', 0, 'Drum N Bass', 'http://DesoPL.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/291940', 'eatmeatleet', 'Rusted - Faerie Dragon', 0, 'Drum N Bass', 'http://eatmeatleet.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/335584', 'Nogfish', 'CWC Strangles Clyde Cash', 0, 'Drum N Bass', 'http://Nogfish.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/234285', 'Hopeku', 'Blue brass of the beast', 0, 'Drum N Bass', 'http://Hopeku.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/309024', 'Paradyme', '101 Degrees (Dubstep)', 0, 'Drum N Bass', 'http://Paradyme.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/257166', 'Rawrthaas', 'Colors of the Fifth Rainbow', 0, 'Drum N Bass', 'http://Rawrthaas.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/334737', 'DesoPL', 'DFR- Pain Syndrome', 0, 'Drum N Bass', 'http://DesoPL.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/56173', 'cornandbeans', '{Final Agression}', 0, 'Drum N Bass', 'http://cornandbeans.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/345013', 'SUB4RU', 'Acid Intermission - BeefourMus', 0, 'Drum N Bass', 'http://SUB4RU.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/338159', 'yeajimmiboi', 'Dimension Head Fuck', 0, 'Drum N Bass', 'http://yeajimmiboi.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/69842', 'Hex72', 'Section 6', 0, 'Drum N Bass', 'http://Hex72.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/179745', 'Tzunami', 'Tzu - Biohazard: Evolution', 0, 'Drum N Bass', 'http://Tzunami.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/326620', 'Pocketpod', 'Indian Sunrise', 0, 'Drum N Bass', 'http://Pocketpod.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/343182', 'DesoPL', 'DFR- Criminal Mind', 0, 'Drum N Bass', 'http://DesoPL.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/343625', 'haywirehaywire', 'HW - Lost Beat 2', 0, 'Drum N Bass', 'http://haywirehaywire.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/148615', 'Yust', 'Earth Freaks (Demo)', 0, 'Drum N Bass', 'http://Yust.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/169161', 'Acid-Paradox', 'Paradox City', 0, 'Drum N Bass', 'http://Acid-Paradox.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/353497', 'jmerk800', 'Menu Funk', 0, 'Funk', 'http://jmerk800.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/327792', 'SHADOWFOX2', 'Redwood\'s Furnace', 0, 'Funk', 'http://SHADOWFOX2.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/346107', 'SHADOWFOX2', 'Dream Snooping', 0, 'Funk', 'http://SHADOWFOX2.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/346182', 'SHADOWFOX2', 'Vecina Volleys', 0, 'Funk', 'http://SHADOWFOX2.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/333027', 'FlamingFirebolt', '-[ Funky Loop ]-', 0, 'Funk', 'http://FlamingFirebolt.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/347329', 'camoshark', '.:Cooldown:.', 0, 'Funk', 'http://camoshark.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/333741', 'ajiman', 'dangerous night', 0, 'Funk', 'http://ajiman.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/335474', 'janiev', 'Comin\' to Grunn (Reggae)', 0, 'Funk', 'http://janiev.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/197240', 'Trevor-peaches', 'Funk You, You Funky Fuck', 0, 'Funk', 'http://Trevor-peaches.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/327789', 'SHADOWFOX2', 'Sunspot Garage', 0, 'Funk', 'http://SHADOWFOX2.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/331427', 'EmperorCharlemagne', 'Forest Transformed [Anya]', 0, 'Funk', 'http://EmperorCharlemagne.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/332385', 'SantaBro', 'Wait where did the synth go?', 0, 'Funk', 'http://SantaBro.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/314995', 'entezflare', '\\ - Nightlife - //', 0, 'Funk', 'http://entezflare.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/273249', 'FuNaNdMoRe', 'Naughty Night', 0, 'Funk', 'http://FuNaNdMoRe.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/266873', 'superdevio', 'Disco Makes You Happy', 0, 'Funk', 'http://superdevio.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/320048', 'robothair', 'Laser Malfunktion', 0, 'Funk', 'http://robothair.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/345457', 'SHADOWFOX2', 'Stars to NY', 0, 'Funk', 'http://SHADOWFOX2.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/346105', 'SHADOWFOX2', 'Golf with the Travels', 0, 'Funk', 'http://SHADOWFOX2.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/276493', 'Achronai', 'Park Bench', 0, 'Funk', 'http://Achronai.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/346708', 'MeaneyProductions', 'Robot Dancers - RD2010', 0, 'Funk', 'http://MeaneyProductions.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/311836', 'Pushbar', 'Robot Party Time', 0, 'Funk', 'http://Pushbar.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/203562', 'Lukania', 'Smile Sucka', 0, 'Funk', 'http://Lukania.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/153673', 'Paulemann236', 'Starship Supercool_', 0, 'Funk', 'http://Paulemann236.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/345453', 'SHADOWFOX2', 'BubbleGum Grooveline', 0, 'Funk', 'http://SHADOWFOX2.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/346831', 'FlameRetardant', 'The Odder One (demo - beep)', 0, 'Funk', 'http://FlameRetardant.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/326650', 'Shellac', 'Paisley', 0, 'Funk', 'http://Shellac.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/311081', 'thecoreman', 'Jazz Jack Rabbit - 24H', 0, 'Funk', 'http://thecoreman.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/267391', 'Lukania', '(Funk Rock) Free Spirit', 0, 'Funk', 'http://Lukania.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/326574', 'VaudevilleFreud', 'Barking up the Wrong Tree', 0, 'Funk', 'http://VaudevilleFreud.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/342502', 'Pocketpod', 'The Funky Chicken-Dance', 0, 'Funk', 'http://Pocketpod.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/333553', 'ajiman', 'the city of funk', 0, 'Funk', 'http://ajiman.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/294265', 'NickPerrin', 'Steppin\' It Up', 0, 'Funk', 'http://NickPerrin.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/321418', 'nasalspray13', 'The Great Paradox', 0, 'Funk', 'http://nasalspray13.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/292424', 'eatmeatleet', 'Tef Tef', 0, 'Funk', 'http://eatmeatleet.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/331849', 'vaib', 'Three Years Ago', 0, 'Funk', 'http://vaib.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/312385', 'ChrisisD', 'Special Power', 0, 'Funk', 'http://ChrisisD.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/326892', 'Pushbar', 'Curiosity.', 0, 'Funk', 'http://Pushbar.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/335596', 'asiangamer1029', '[AG] Jack Off Man', 0, 'Funk', 'http://asiangamer1029.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/245408', 'NuclearStrike', 'This Way (FATMAN)', 0, 'Funk', 'http://NuclearStrike.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/329151', 'snayk', 'pick me up baby', 0, 'Funk', 'http://snayk.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/268844', 'DJ-Draken', 'Amphibius - Marbel Garden RMX', 0, 'Funk', 'http://DJ-Draken.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/48200', 'NeuFunk', 'NeuFunk - Back Again', 0, 'Funk', 'http://NeuFunk.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/331908', 'VaudevilleFreud', 'Motown Glasses', 0, 'Funk', 'http://VaudevilleFreud.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/324810', 'ChrisisD', 'Due to Chance', 0, 'Funk', 'http://ChrisisD.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/307726', 'IIPhase', '** It\'s what you do **', 0, 'Funk', 'http://IIPhase.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/259534', 'IcyDrifter', 'Check Your Disk Yo!', 0, 'Funk', 'http://IcyDrifter.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/197500', 'Tilkanuts', 'Tilkanuts - Reggae Morning', 0, 'Funk', 'http://Tilkanuts.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/332002', 'theilltype', 'Cannibal.mp3', 0, 'Funk', 'http://theilltype.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/322232', 'Urbanus', 'Ain\'t No Use', 0, 'Funk', 'http://Urbanus.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/332255', 'theilltype', 'Cannibal Remix (2)', 0, 'Funk', 'http://theilltype.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352947', 'GiantJuicyKickballs', 'Neighborhood Stalker', 0, 'General Rock', 'http://GiantJuicyKickballs.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/350924', 'JAZZA', 'LARRY\'s Satuday Morning Theme', 0, 'General Rock', 'http://JAZZA.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/344856', 'Sonofkirk', 'Clo - Sonofkirk', 0, 'General Rock', 'http://Sonofkirk.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/342298', 'JawKneeMusic', 'Long Brown Hair', 0, 'General Rock', 'http://JawKneeMusic.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349132', 'bRapMusAk', 'Date with Destiny', 0, 'General Rock', 'http://bRapMusAk.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/326617', 'mr-vincent', 'AudeSecret Project', 0, 'General Rock', 'http://mr-vincent.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/351992', 'nunyabizness', 'I cant breathe (with lead)', 0, 'General Rock', 'http://nunyabizness.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/341392', 'Rexxist', 'Nastalgia', 0, 'General Rock', 'http://Rexxist.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/341938', 'EL-Poncho', 'Whirlwind - Brittany Lascelles', 0, 'General Rock', 'http://EL-Poncho.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/350457', 'SaxeCoburg', '106 miles to Chicago', 0, 'General Rock', 'http://SaxeCoburg.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/37878', 'ChrisNosal', 'Radley\'s Theme', 0, 'General Rock', 'http://ChrisNosal.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/353094', 'Martan3d', 'whip', 0, 'General Rock', 'http://Martan3d.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/310333', 'Rottenbeard', 'Coming Full Circle', 0, 'General Rock', 'http://Rottenbeard.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/341454', 'djnet', 'Undone [DEMO]', 0, 'General Rock', 'http://djnet.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/326127', 'Android-Music', 'The Day of Overgrowth', 0, 'General Rock', 'http://Android-Music.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/333279', 'cHunter', 'Chill Rock Song', 0, 'General Rock', 'http://cHunter.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/340968', 'jaysummers759885', 'U by Jay Summers', 0, 'General Rock', 'http://jaysummers759885.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/330539', 'GetItRoland', 'the lake(original) live', 0, 'General Rock', 'http://GetItRoland.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/91939', 'MarceleXpress', 'Acoustica Erotica', 0, 'General Rock', 'http://MarceleXpress.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/326885', 'johnnyq1233', 'Midnight Hour', 0, 'General Rock', 'http://johnnyq1233.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/332291', 'Pocketpod', 'Adrenaline Kick', 0, 'General Rock', 'http://Pocketpod.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/335863', 'skull-x1', 'Incite (final)', 0, 'General Rock', 'http://skull-x1.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/342396', 'demented2005', 'Famous For A Day', 0, 'General Rock', 'http://demented2005.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/340540', 'Android-Music', 'RD2010 Robot Plague', 0, 'General Rock', 'http://Android-Music.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/300604', 'Rianor', 'Nefarious', 0, 'General Rock', 'http://Rianor.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/338335', 'Halindir', 'Halindir - The Lillides', 0, 'General Rock', 'http://Halindir.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/344365', 'Wahnsinn', 'Buy Our Merch (Indigo League)', 0, 'General Rock', 'http://Wahnsinn.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/351075', 'fizzypop2', 'Soothsayer Inspired (live)', 0, 'General Rock', 'http://fizzypop2.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/330606', 'chocosoda', 'Downpour Part 1', 0, 'General Rock', 'http://chocosoda.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/283884', 'GameBalance', 'Hooked Into Machine (demo01)', 0, 'General Rock', 'http://GameBalance.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/285359', 'larrylarrybb', '!Why!', 0, 'General Rock', 'http://larrylarrybb.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/157709', 'orbik', 'Tyrian - Rock Garden', 0, 'General Rock', 'http://orbik.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/346463', 'CyprusX', 'Meteorites - Became ( demo )', 0, 'General Rock', 'http://CyprusX.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/341682', 'Schrader1234', '(S) Decode', 0, 'General Rock', 'http://Schrader1234.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352354', 'nunyabizness', 'New rock song in progress', 0, 'General Rock', 'http://nunyabizness.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/314075', 'himenow', 'The Nakhla Song', 0, 'General Rock', 'http://himenow.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/343739', 'Supersteph54', 'War Theme', 0, 'General Rock', 'http://Supersteph54.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/304592', 'Twone', 'Red Eyes (rough mix)', 0, 'General Rock', 'http://Twone.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/345186', 'jpsuperfresh', 'I\'m In my Zone', 0, 'General Rock', 'http://jpsuperfresh.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/344761', 'industrialplayground', 'Losing My Religion (IP) Cover', 0, 'General Rock', 'http://industrialplayground.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352604', 'SmdSkata', 'Relaxation Loop [SMD]', 0, 'General Rock', 'http://SmdSkata.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/339924', 'ANTI-SPAMGUN', 'I AM TETRIS', 0, 'General Rock', 'http://ANTI-SPAMGUN.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/249637', 'Yabossobay', 'Viva La Vida (Rock Version)new', 0, 'General Rock', 'http://Yabossobay.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/338575', 'thatcomposerguy', 'The Annoying Little Menu Track', 0, 'General Rock', 'http://thatcomposerguy.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/299705', 'Rianor', 'Hush', 0, 'General Rock', 'http://Rianor.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/342671', 'djnet', 'Undone [Final]', 0, 'General Rock', 'http://djnet.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/334843', 'Benjerama', 'Stargaze', 0, 'General Rock', 'http://Benjerama.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/350670', 'Nc321', '- Incomplete -', 0, 'General Rock', 'http://Nc321.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/258427', 'TheBlackKnight0501', 'Surf', 0, 'General Rock', 'http://TheBlackKnight0501.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/341705', 'goodbandit1', 'Mad Hatters\' Paradise', 0, 'General Rock', 'http://goodbandit1.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/339596', 'CamAD', 'The Road To Hana', 0, 'Grunge', 'http://CamAD.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/276972', 'ShanZE', 'If I Could Choose', 0, 'Grunge', 'http://ShanZE.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/111660', 'Sour-Cherry', 'Michelle -rough stuffed up ver', 0, 'Grunge', 'http://Sour-Cherry.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/280443', 'Sour-Cherry', 'Mudeppbla (Cry In The Sun)', 0, 'Grunge', 'http://Sour-Cherry.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/272874', 'Gunshy', 'On An -Ism', 0, 'Grunge', 'http://Gunshy.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/95390', 'Gunshy', '>>Waiting To Die<<', 0, 'Grunge', 'http://Gunshy.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/328984', 'Bunk420', 'Rat Park', 0, 'Grunge', 'http://Bunk420.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/326572', 'VaudevilleFreud', 'Shadow Puppets', 0, 'Grunge', 'http://VaudevilleFreud.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/255768', 'Diavaul1', 'White Houses', 0, 'Grunge', 'http://Diavaul1.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/17430', 'ToplessMichael', 'Topless- Distracted', 0, 'Grunge', 'http://ToplessMichael.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/98808', 'Gunshy', 'Four Fucking Chords', 0, 'Grunge', 'http://Gunshy.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/330477', 'CamAD', 'Needle In The Heart - A&D', 0, 'Grunge', 'http://CamAD.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/338099', 'zac11114', 'Knives and Pens (Instrumental)', 0, 'Grunge', 'http://zac11114.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/226632', 'WeAreRiot', 'Little Batty-redone', 0, 'Grunge', 'http://WeAreRiot.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/290896', 'Bjra', 'Hummingbird WIP', 0, 'Grunge', 'http://Bjra.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/140161', 'mentally-detached', 'This is Called Guitar Lesson', 0, 'Grunge', 'http://mentally-detached.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/330431', 'Nessbeatsfox', 'Silent Movie', 0, 'Grunge', 'http://Nessbeatsfox.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352520', 'zac11114', 'Coffee Shop Soundtrack', 0, 'Grunge', 'http://zac11114.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/307320', 'TysonRprince', 'Stereo Fire!', 0, 'Grunge', 'http://TysonRprince.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/340061', 'zac11114', 'Common Cold Shoulder (Cover)', 0, 'Grunge', 'http://zac11114.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/312188', 'spamwangler', 'the gypsy song violin version', 0, 'Grunge', 'http://spamwangler.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/288597', 'yotipo91', 'HEHU v1', 0, 'Grunge', 'http://yotipo91.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/305556', 'zac11114', 'I\'ll Bury you - Y&C', 0, 'Grunge', 'http://zac11114.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/93659', 'Gunshy', 'Terra Angelica', 0, 'Grunge', 'http://Gunshy.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/303810', 'Skyler182', 'The Land Of The Night.....', 0, 'Grunge', 'http://Skyler182.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/256552', 'troyapollo', '~The March Intro~', 0, 'Grunge', 'http://troyapollo.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/322097', 'zac11114', 'Bleed (One More Chance)', 0, 'Grunge', 'http://zac11114.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/19164', 'Ravicious', 'Run\'n\'Gun', 0, 'Grunge', 'http://Ravicious.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/327210', 'zac11114', 'What Up Playa?', 0, 'Grunge', 'http://zac11114.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/242854', 'Chaoticstyle', 'Pieces of You (DEMO)', 0, 'Grunge', 'http://Chaoticstyle.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/175237', 'Gunshy', 'Afterbirth', 0, 'Grunge', 'http://Gunshy.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/305084', 'zac11114', 'K - Y&C', 0, 'Grunge', 'http://zac11114.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/251846', 'odoghan', 'Ocean Water - Odoghan', 0, 'Grunge', 'http://odoghan.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/17427', 'ToplessMichael', 'Super Powers', 0, 'Grunge', 'http://ToplessMichael.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/307493', 'zac11114', 'Make Believe (original ver.)', 0, 'Grunge', 'http://zac11114.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/134581', 'Gunshy', 'Dead Hero (demo remix)', 0, 'Grunge', 'http://Gunshy.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/96673', 'Gunshy', 'Punishment Fits', 0, 'Grunge', 'http://Gunshy.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/322095', 'zac11114', 'The Restart', 0, 'Grunge', 'http://zac11114.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/129346', 'zholoch', 'Numb ~ZLH~', 0, 'Grunge', 'http://zholoch.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/109615', 'soulblud', 'Krunch', 0, 'Grunge', 'http://soulblud.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/145097', 'swordsofe', 'Every-thing live', 0, 'Grunge', 'http://swordsofe.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/108540', 'Nessbeatsfox', 'The Beginning (New Splice Rmx)', 0, 'Grunge', 'http://Nessbeatsfox.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/121175', 'Gunshy', 'Saving Face Machine (Demo)', 0, 'Grunge', 'http://Gunshy.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/101287', 'nal1200', '(nal1200) Rampancy Stage 4', 0, 'Grunge', 'http://nal1200.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/105650', 'Nessbeatsfox', 'Thorne', 0, 'Grunge', 'http://Nessbeatsfox.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/173003', 'TenGroundandDown', 'Hanging with the Graf', 0, 'Grunge', 'http://TenGroundandDown.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/29108', '525volts', 'Green Machine-Sixty Cycle', 0, 'Grunge', 'http://525volts.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/217961', 'Scribbler', 'Heavy - Snuff', 0, 'Grunge', 'http://Scribbler.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/117514', 'Nessbeatsfox', 'Little Trickster', 0, 'Grunge', 'http://Nessbeatsfox.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/111661', 'Sour-Cherry', 'Homophobe (rough Demo)', 0, 'Grunge', 'http://Sour-Cherry.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349750', 'kurt-cobain2794', 'Within the Pulse (Acou. Demo)', 0, 'Heavy Metal', 'http://kurt-cobain2794.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/353466', 'wilb0b', 'Dwellers Among Cellars(BMRough', 0, 'Heavy Metal', 'http://wilb0b.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/337718', 'Evil-Dog', 'Tetris On The Toilet', 0, 'Heavy Metal', 'http://Evil-Dog.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/353187', 'fire118', 'Vater', 0, 'Heavy Metal', 'http://fire118.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/346342', 'Ritari', 'Rasvaperse', 0, 'Heavy Metal', 'http://Ritari.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/318498', 'Xenogenocide', 'The Void.', 0, 'Heavy Metal', 'http://Xenogenocide.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352904', 'Lashmush', 'Lights Out (Links Awakening)', 0, 'Heavy Metal', 'http://Lashmush.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/346309', 'Devastus', 'The Hate Machine', 0, 'Heavy Metal', 'http://Devastus.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/248262', 'rtnario', 'YuYu Metal', 0, 'Heavy Metal', 'http://rtnario.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/333792', 'mr-vincent', 'Touche mes fesses', 0, 'Heavy Metal', 'http://mr-vincent.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/351954', 'Sonofkirk', 'SSBM Zelda Temple Metalized!!', 0, 'Heavy Metal', 'http://Sonofkirk.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/347654', 'mr-vincent', 'Sorrow Of Life', 0, 'Heavy Metal', 'http://mr-vincent.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/268268', 'Gaz-Metal', 'The Stephen King A-Team Theme', 0, 'Heavy Metal', 'http://Gaz-Metal.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/274501', 'Android-Music', 'Master Madness', 0, 'Heavy Metal', 'http://Android-Music.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/168421', 'GroovyPirate', 'Dionysus', 0, 'Heavy Metal', 'http://GroovyPirate.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/348407', 'fire118', 'Rache', 0, 'Heavy Metal', 'http://fire118.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/319091', 'Wahnsinn', 'Kakuna Used Harden', 0, 'Heavy Metal', 'http://Wahnsinn.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/313969', 'DruoxtheShredder', 'Asperchu Theme', 0, 'Heavy Metal', 'http://DruoxtheShredder.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/323729', 'GraniteOverworld', 'Stuck in a Grinder', 0, 'Heavy Metal', 'http://GraniteOverworld.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/326156', 'Paulemann236', 'WeekendMetal', 0, 'Heavy Metal', 'http://Paulemann236.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/224942', 'netty-swobb', 'NS - Arise My Fallen', 0, 'Heavy Metal', 'http://netty-swobb.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/230340', 'Jakisdead', 'Cerulean Sky', 0, 'Heavy Metal', 'http://Jakisdead.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/334346', 'deathkllr84', 'Distant Lands []', 0, 'Heavy Metal', 'http://deathkllr84.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/339601', 'hadesrage', 'Horjävel - Jävlarna', 0, 'Heavy Metal', 'http://hadesrage.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/344771', 'ti-on-suxandrox', 'EC - Stay out of the woods', 0, 'Heavy Metal', 'http://ti-on-suxandrox.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/330734', 'RealityVictim', 'Simple Sight (2010 Remix)', 0, 'Heavy Metal', 'http://RealityVictim.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/319141', 'Xenogenocide', 'Final Redemption (Non-Thrashy)', 0, 'Heavy Metal', 'http://Xenogenocide.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/339631', 'hadesrage', 'The day that never comes!', 0, 'Heavy Metal', 'http://hadesrage.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/324978', 'Bad-Man-Incorporated', 'Bloodstains And Splatter Marks', 0, 'Heavy Metal', 'http://Bad-Man-Incorporated.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/339817', 'Wahn-Studios', 'Archangel Reborn', 0, 'Heavy Metal', 'http://Wahn-Studios.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/79223', 'TheRealSam', 'Time For Punishment', 0, 'Heavy Metal', 'http://TheRealSam.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349848', 'TheUprising1', 'Symphony of Sorrow (Short)', 0, 'Heavy Metal', 'http://TheUprising1.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/338902', 'Bad-Man-Incorporated', 'Romantic Insanity', 0, 'Heavy Metal', 'http://Bad-Man-Incorporated.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/318499', 'Xenogenocide', 'Wake up to Reality', 0, 'Heavy Metal', 'http://Xenogenocide.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/202455', 'mr-vincent', 'Gogosse de droggué GuitesPhilt', 0, 'Heavy Metal', 'http://mr-vincent.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/348045', 'DruoxtheShredder', 'Sanity Not Included', 0, 'Heavy Metal', 'http://DruoxtheShredder.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/289165', 'Schleif', 'Mercenary.', 0, 'Heavy Metal', 'http://Schleif.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/123263', 'ProjectGodMode', 'One Winged Angel (Metal)', 0, 'Heavy Metal', 'http://ProjectGodMode.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/316672', 'Satoris', 'End in Hell', 0, 'Heavy Metal', 'http://Satoris.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/333707', 'Bad-Man-Incorporated', 'Disposable Breed', 0, 'Heavy Metal', 'http://Bad-Man-Incorporated.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/245227', 'old-teppan', 'a false accusation', 0, 'Heavy Metal', 'http://old-teppan.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/275472', 'Paulemann236', 'Division of powers', 0, 'Heavy Metal', 'http://Paulemann236.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/158651', 'SlaveLabor', 'Destructive Paths', 0, 'Heavy Metal', 'http://SlaveLabor.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/337723', 'Jeffaro', 'Garbage People (Jeffaro)', 0, 'Heavy Metal', 'http://Jeffaro.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/235444', 'Darren1337', 'Blackcore', 0, 'Heavy Metal', 'http://Darren1337.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/148987', 'Ben-Spurgin', 'Valhalla Bound', 0, 'Heavy Metal', 'http://Ben-Spurgin.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/340396', 'Schleif', 'Nothing Else Matters!!!', 0, 'Heavy Metal', 'http://Schleif.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/272173', 'Wahnsinn', 'Alone..', 0, 'Heavy Metal', 'http://Wahnsinn.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/177063', 'Darkmaster603', 'Dark Dungeon 2.0', 0, 'Heavy Metal', 'http://Darkmaster603.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/232092', 'Lashmush', 'Ultima Eternus - Part III', 0, 'Heavy Metal', 'http://Lashmush.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352572', 'RacmusDK', 'Cinco de la manana', 0, 'House', 'http://RacmusDK.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/350554', 'Kendotronic', 'Ad Infinitum', 0, 'House', 'http://Kendotronic.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352769', 'TranceCrafter', 'New Divide Remix2.0 - concept', 0, 'House', 'http://TranceCrafter.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349021', 'djInTheDark', 'Sound Barrier (NG Cut)', 0, 'House', 'http://djInTheDark.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/351147', 'DjZedL', 'Little Secrets', 0, 'House', 'http://DjZedL.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349123', 'djInTheDark', 'Claustrophobia (NG Cut)', 0, 'House', 'http://djInTheDark.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349473', 'djInTheDark', 'We Bumpin\' (NG Cut)', 0, 'House', 'http://djInTheDark.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/343789', 'RacmusDK', 'S&W - New Club Demo', 0, 'House', 'http://RacmusDK.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352723', 'ToxicBlizzard', 'Rockin High (remix) undone', 0, 'House', 'http://ToxicBlizzard.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/346743', 'SHADOWFOX2', 'Cybertronic Excursion [RD2010]', 0, 'House', 'http://SHADOWFOX2.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352092', 'Meonly70', '{Dj-L} Rock hard Electro', 0, 'House', 'http://Meonly70.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/330590', 'dEff3ct', 'Feeling Within', 0, 'House', 'http://dEff3ct.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349968', 'djInTheDark', 'Magneticism (NG Cut)', 0, 'House', 'http://djInTheDark.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/336540', 'MindEngineers', 'Kingdom Of Dimensions', 0, 'House', 'http://MindEngineers.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349023', 'djInTheDark', 'My Walk is Sexy (NG Cut)', 0, 'House', 'http://djInTheDark.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/346595', 'SHADOWFOX2', '\'Rageous 7 [RD2010]', 0, 'House', 'http://SHADOWFOX2.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/347745', 'robothair', 'Drum Machine (Instrumental)', 0, 'House', 'http://robothair.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349472', 'SonicKDT', 'Down at Fuzzy\'s', 0, 'House', 'http://SonicKDT.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/345130', 'durn', 'Get Ready To Dance {durn}', 0, 'House', 'http://durn.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352476', 'SmdSkata', 'Apply Glue and Stick [SMD]', 0, 'House', 'http://SmdSkata.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/345984', 'fergyanimated', 'Blindfolded', 0, 'House', 'http://fergyanimated.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/322151', 'RacmusDK', 'Racmus - Don\'t Leave', 0, 'House', 'http://RacmusDK.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/341360', 'InvisibleObserver', 'Lack Of Difficulty', 0, 'House', 'http://InvisibleObserver.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/351344', 'ShootingStar', 'Paradise Party [SSvsDMF]', 0, 'House', 'http://ShootingStar.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/348514', 'RacmusDK', 'S & W - Electro', 0, 'House', 'http://RacmusDK.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/316123', 'Mans0n', 'Out Of The Blue (Mans0n RMX)', 0, 'House', 'http://Mans0n.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349376', 'KgZ', 'KgZ- Into the Sun (MtB Remix)', 0, 'House', 'http://KgZ.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/316581', 'Annodam', 'This Won\'t Wake The Drills', 0, 'House', 'http://Annodam.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/296641', 'robothair', 'Breasts Wet', 0, 'House', 'http://robothair.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/285961', 'SHADOWFOX2', 'Hipster\'s Halloween', 0, 'House', 'http://SHADOWFOX2.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349124', 'djInTheDark', 'Head Trip (NG Cut)', 0, 'House', 'http://djInTheDark.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349850', 'Kirbyfemur', 'Once Profound', 0, 'House', 'http://Kirbyfemur.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/336221', 'djInTheDark', 'The Great Sea [RAC4]', 0, 'House', 'http://djInTheDark.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/344161', 'CKC2009', 'CKC - Piana', 0, 'House', 'http://CKC2009.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/342984', 'DJ-Qwamii', 'New Divide (DJQ & LT Remix)', 0, 'House', 'http://DJ-Qwamii.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/342578', 'GroundForce', '[GF]OnTheOtherSide[GF]', 0, 'House', 'http://GroundForce.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/278888', 'Auecs', 'AUECS-Sling Blade', 0, 'House', 'http://Auecs.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/340730', 'iCafe', 'DJ Cafe - Seven', 0, 'House', 'http://iCafe.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/326841', 'jennex', 'Bazaar Loop', 0, 'House', 'http://jennex.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349478', 'SonicKDT', 'Summer Vaction', 0, 'House', 'http://SonicKDT.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/340889', 'Tantalis329', 'Gonna Make You Dance', 0, 'House', 'http://Tantalis329.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/338980', 'DJ-Qwamii', 'Serenade (Electro Mix)', 0, 'House', 'http://DJ-Qwamii.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/350147', 'DjCryogenetic', 'Submersion (House Final)', 0, 'House', 'http://DjCryogenetic.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/316328', 'robothair', 'Stressing The Grid', 0, 'House', 'http://robothair.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/328286', 'SOcollab', 'ost - I Love My Sex', 0, 'House', 'http://SOcollab.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/329796', 'dEff3ct', 'Not Exactly', 0, 'House', 'http://dEff3ct.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/341042', 'DJ-Qwamii', 'Benni Benassaay', 0, 'House', 'http://DJ-Qwamii.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/322444', 'RacmusDK', 'S & W - Club In Love', 0, 'House', 'http://RacmusDK.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/323144', 'Meonly70', '{Dj-L} Midnight Party', 0, 'House', 'http://Meonly70.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/339691', 'djInTheDark', 'Business or Pleasure? [Loop]', 0, 'House', 'http://djInTheDark.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/353495', 'Tysuru', 'Grandfather Clock Demo', 0, 'Pop', 'http://Tysuru.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352048', 'fishfood2021', 'Ha Ha', 0, 'Pop', 'http://fishfood2021.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/350876', 'PHATF', 'Maybe 64? (DEMO)', 0, 'Pop', 'http://PHATF.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/350955', 'Claude-FI', 'PERC', 0, 'Pop', 'http://Claude-FI.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/342123', 'Exotec', 'Katie Joy - Don\'t Let Go', 0, 'Pop', 'http://Exotec.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/337950', 'Schrader1234', '(S) Life In Technicolor', 0, 'Pop', 'http://Schrader1234.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352210', 'DarkantheHero', '-Look to the Future-', 0, 'Pop', 'http://DarkantheHero.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/341670', 'Schrader1234', '(S) Daylight', 0, 'Pop', 'http://Schrader1234.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/337487', 'grim33325', 'bigfooot battle', 0, 'Pop', 'http://grim33325.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349388', 'alvys18', 'Bring it Down-', 0, 'Pop', 'http://alvys18.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/346426', 'Daxter1537', 'Daxter - I Got a Feelin', 0, 'Pop', 'http://Daxter1537.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/342307', 'ERAmatica', 'Ridin\' Solo Remix Vox (WIP)', 0, 'Pop', 'http://ERAmatica.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/338710', 'smokeshow', 'Pancakes With Friends', 0, 'Pop', 'http://smokeshow.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/323882', 'DestructoBox', 'Body\'s a (Winter) Wonderland', 0, 'Pop', 'http://DestructoBox.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/338130', 'ERAmatica', 'Get My Play (Bad Demo)', 0, 'Pop', 'http://ERAmatica.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/342190', 'ERAmatica', 'Ridin\' Solo Remix', 0, 'Pop', 'http://ERAmatica.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/348647', 'RedHarvest', 'Ng Showdown', 0, 'Pop', 'http://RedHarvest.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/296339', 'robothair', 'Non Stick', 0, 'Pop', 'http://robothair.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/293176', 'robothair', 'Chakra Gun', 0, 'Pop', 'http://robothair.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/344450', 'Agia', '-P@ciFIST- Leaving', 0, 'Pop', 'http://Agia.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/344451', 'ERAmatica', 'Anniversary (Progress)', 0, 'Pop', 'http://ERAmatica.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/321919', 'robothair', 'Hot Girl', 0, 'Pop', 'http://robothair.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/291689', 'robothair', 'Fondant Fluff', 0, 'Pop', 'http://robothair.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/298694', 'robothair', 'Shake The Bug', 0, 'Pop', 'http://robothair.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/291386', 'robothair', 'Afro Banjo', 0, 'Pop', 'http://robothair.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/316722', 'robothair', 'The Shake', 0, 'Pop', 'http://robothair.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/297706', 'robothair', 'Toy Helicopter', 0, 'Pop', 'http://robothair.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/347424', 'fishfood2021', '[Rose]', 0, 'Pop', 'http://fishfood2021.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/346611', 'demented2005', 'Let\'s Pretend *DEMO*', 0, 'Pop', 'http://demented2005.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/336425', 'NewSoul', 'Tic Tac', 0, 'Pop', 'http://NewSoul.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/347270', 'Eddache', 'Fish Outta Water Boss Theme', 0, 'Pop', 'http://Eddache.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349620', 'Exotec', 'Closer To You (SAMPLE)', 0, 'Pop', 'http://Exotec.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/348646', 'RedHarvest', 'Ngs Elevator', 0, 'Pop', 'http://RedHarvest.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/347493', 'Eddache', 'Fish Outta Water Victory Theme', 0, 'Pop', 'http://Eddache.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/320466', 'KaylaMusic', 'Emergency (EP version)', 0, 'Pop', 'http://KaylaMusic.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/342341', 'Blamchowder', 'Fun and Free', 0, 'Pop', 'http://Blamchowder.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/346242', 'yeajimmiboi', 'Trippy Song (W.I.P)', 0, 'Pop', 'http://yeajimmiboi.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/350771', 'DannyJay', 'Egocity (piano instrumental)', 0, 'Pop', 'http://DannyJay.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/343668', 'TheFabs', 'GrossGusting', 0, 'Pop', 'http://TheFabs.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352050', '00-BEN-00', 'The Mine Intro', 0, 'Pop', 'http://00-BEN-00.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/342258', 'MiddleIs', '(MI) Stella (Dramatic Touhou)', 0, 'Pop', 'http://MiddleIs.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/347248', 'alvys18', 'Drop it--', 0, 'Pop', 'http://alvys18.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/348736', 'alvys18', 'Magnetic Wonder', 0, 'Pop', 'http://alvys18.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/347492', 'Eddache', 'Fish Outta Water Level Theme', 0, 'Pop', 'http://Eddache.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/350440', 'Banj0', 'Cascada - one more night (rmx)', 0, 'Pop', 'http://Banj0.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/334338', 'Greenskullkid', 'Oh, Jamie Jamie!', 0, 'Pop', 'http://Greenskullkid.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/341510', 'ShikiGamiLD', 'First Flight (Wings PT1)', 0, 'Pop', 'http://ShikiGamiLD.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/319267', 'AdmiralConquistador', 'Requiescat (1min10sec)', 0, 'Pop', 'http://AdmiralConquistador.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/343470', 'LogicalDefiance', '- LD - Unexpected Fate (Pop)', 0, 'Pop', 'http://LogicalDefiance.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/342329', 'joshhunsaker', 'Rembrandt', 0, 'Pop', 'http://joshhunsaker.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/353146', 'oneandahalfbastards', 'under the sea rcr', 0, 'Punk', 'http://oneandahalfbastards.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/340065', 'zac11114', 'Baby, Go All In (redone)', 0, 'Punk', 'http://zac11114.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/337360', 'hpanic', 'Monkey Mask', 0, 'Punk', 'http://hpanic.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/327481', 'CamAD', 'Touch - Awake and Dreaming', 0, 'Punk', 'http://CamAD.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/327550', 'CamAD', 'Another Red Letter Day - A&D', 0, 'Punk', 'http://CamAD.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349896', 'oneandahalfbastards', 'Evil Spirits/Johnny Walker', 0, 'Punk', 'http://oneandahalfbastards.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/242272', 'williamHooligan', 'Crash!', 0, 'Punk', 'http://williamHooligan.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/339457', 'thirty-six', 'Oral Sex is a Beautiful Thing', 0, 'Punk', 'http://thirty-six.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/351548', 'demented2005', 'The Kids (WIP) 2', 0, 'Punk', 'http://demented2005.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/339606', 'CamAD', 'Pull the Plug A&D', 0, 'Punk', 'http://CamAD.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/328138', 'hpanic', 'Comprehension Question', 0, 'Punk', 'http://hpanic.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/324327', 'YouOutToast', 'Chill Out With Your Bill Out', 0, 'Punk', 'http://YouOutToast.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/339000', 'YouOutToast', 'Banana Gentleman Skeleton', 0, 'Punk', 'http://YouOutToast.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/324292', 'RealBigPeanuts', 'Fragen, Fragen', 0, 'Punk', 'http://RealBigPeanuts.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/330176', 'YouOutToast', 'Star Wiener ep. 1', 0, 'Punk', 'http://YouOutToast.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/335570', 'RealBigPeanuts', 'Feuchter Sommernachtstraum', 0, 'Punk', 'http://RealBigPeanuts.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/342856', 'Diavaul1', 'Overdose [Demo]', 0, 'Punk', 'http://Diavaul1.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/327140', 'YouOutToast', 'You Out Toast', 0, 'Punk', 'http://YouOutToast.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/345354', 'SwashieB', 'People Die - PunkOMatic Live', 0, 'Punk', 'http://SwashieB.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/71303', 'Quickbeam', 'Change The World', 0, 'Punk', 'http://Quickbeam.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/293873', 'Gurzociurlo', 'Emo song for Valérie', 0, 'Punk', 'http://Gurzociurlo.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/340564', 'vooom', 'Song #2', 0, 'Punk', 'http://vooom.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/326114', 'RealBigPeanuts', 'Testbild', 0, 'Punk', 'http://RealBigPeanuts.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352710', 'tcoffin', 'Graffiti', 0, 'Punk', 'http://tcoffin.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/330811', 'YouOutToast', 'Cake In My Vagina', 0, 'Punk', 'http://YouOutToast.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/340031', 'vooom', 'song #1', 0, 'Punk', 'http://vooom.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/321041', 'thirty-six', 'Suicidal Idol :)', 0, 'Punk', 'http://thirty-six.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/308220', 'zac11114', 'Speaking the Truth', 0, 'Punk', 'http://zac11114.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/348958', 'vooom', 'Song #3', 0, 'Punk', 'http://vooom.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/343570', 'ti-on-suxandrox', 'Anal dragons - Anal dragons', 0, 'Punk', 'http://ti-on-suxandrox.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/332764', 'YouOutToast', 'Zombies At The Mall', 0, 'Punk', 'http://YouOutToast.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/341819', 'Fifra', 'Rock Intro loop', 0, 'Punk', 'http://Fifra.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/10187', 'stumyster666', 'Summer Wind (FInal)', 0, 'Punk', 'http://stumyster666.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/305706', 'SwashieB', 'People Die - Punk-O-Matic', 0, 'Punk', 'http://SwashieB.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/281442', 'RikuTMW', 'Cheer up and die already', 0, 'Punk', 'http://RikuTMW.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/297862', 'zac11114', 'Fire Away (Demo) - Y & C', 0, 'Punk', 'http://zac11114.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/351076', 'Owen-Powell', 'California - Raised By Radio', 0, 'Punk', 'http://Owen-Powell.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/337763', 'Pokesmoker', 'Low Budget', 0, 'Punk', 'http://Pokesmoker.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/348622', 'Ritari', 'Misery Business Mashup', 0, 'Punk', 'http://Ritari.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/252697', 'HannsB', 'krachmaninoff-fuckforfunny-l-', 0, 'Punk', 'http://HannsB.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/124211', 'bob-turkee-1', 'WHOKNOWS', 0, 'Punk', 'http://bob-turkee-1.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/327569', 'zac11114', 'The Truth About Heaven (Cover)', 0, 'Punk', 'http://zac11114.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/334296', 'Keegs', 'Turnpike Gates(Cover)', 0, 'Punk', 'http://Keegs.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/305925', 'stupid-bastered', '07 - Q-Dog King Cheese', 0, 'Punk', 'http://stupid-bastered.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/151309', 'TrippinBallzSociety', 'I Punch Infantz', 0, 'Punk', 'http://TrippinBallzSociety.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/15638', 'YellowMailman', 'Digital Alarm Clock Song', 0, 'Punk', 'http://YellowMailman.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/153268', 'torq', 'Leaving Tonight', 0, 'Punk', 'http://torq.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/319951', 'BERSERKYD', 'Go Go Fighter', 0, 'Punk', 'http://BERSERKYD.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/316916', 'emily-youcis', 'Gorls and Squirrols', 0, 'Punk', 'http://emily-youcis.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/302932', 'RhythmBastard', 'Force Of Nature', 0, 'Punk', 'http://RhythmBastard.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/353434', 'Bafana', '-Baf- Chasing The Dragon', 0, 'Techno', 'http://Bafana.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/342998', 'Hypergon702', 'TechOne', 0, 'Techno', 'http://Hypergon702.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/313605', 'IndestructibleDjT', 'Dj T - This Is My World', 0, 'Techno', 'http://IndestructibleDjT.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/352809', 'zippe6', '(zippe) To The Sun', 0, 'Techno', 'http://zippe6.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/351025', 'Waryax', 'Deep Space Resonance', 0, 'Techno', 'http://Waryax.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/330614', 'picklesandwichh', 'Cloudsurfing', 0, 'Techno', 'http://picklesandwichh.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/307603', 'ragingmullet', 'The Chronolegionnaire', 0, 'Techno', 'http://ragingmullet.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/291537', 'Meonly70', '{Dj-L} Remember', 0, 'Techno', 'http://Meonly70.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/329022', 'ingmar600', 'Be Happy One Day', 0, 'Techno', 'http://ingmar600.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/347953', 'AzureVixen', 'RockSolid', 0, 'Techno', 'http://AzureVixen.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/342597', 'Waterflame', '-Monsterbreaks-', 0, 'Techno', 'http://Waterflame.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/225923', 'Drawoh', 'Speed It Up', 0, 'Techno', 'http://Drawoh.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/302869', 'Japillow', 'A random demo by Japillow', 0, 'Techno', 'http://Japillow.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/329416', 'vwvSTATICvwv', '->>Static Shock', 0, 'Techno', 'http://vwvSTATICvwv.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/200731', 'EliteFerrex', 'Alpha and Omega', 0, 'Techno', 'http://EliteFerrex.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349348', 'DjPygme', 'DJ Pygme - Our Mission', 0, 'Techno', 'http://DjPygme.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/323155', 'cheshyre', 'Madness 6.5', 0, 'Techno', 'http://cheshyre.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/311069', 'RealityVictim', 'True Face (read description)', 0, 'Techno', 'http://RealityVictim.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/61101', 'Slug-Salt', 'Don\'t Touch Me', 0, 'Techno', 'http://Slug-Salt.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/302710', 'Japillow', 'CHAOS-Japillow', 0, 'Techno', 'http://Japillow.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/229460', 'TheSongSalad', 'Alive and Awake', 0, 'Techno', 'http://TheSongSalad.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/328875', 'Darkmoor', 'Dr Who 2010', 0, 'Techno', 'http://Darkmoor.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/270183', 'frootza', 'Herald', 0, 'Techno', 'http://frootza.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/327141', 'cHunter', 'Intro Song [LIVE!]', 0, 'Techno', 'http://cHunter.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/196835', 'DenVessidence', 'DV-Open My Eyes', 0, 'Techno', 'http://DenVessidence.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349343', 'DjPygme', 'DJ Pygme - Streets Of China', 0, 'Techno', 'http://DjPygme.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/234550', 'DenVessidence', 'DV-Midnight Ride', 0, 'Techno', 'http://DenVessidence.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/333752', 'Japillow', 'very short loop (not done)', 0, 'Techno', 'http://Japillow.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/242982', 'AetherFlaer', '-Aef- Clocktown V2', 0, 'Techno', 'http://AetherFlaer.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/327560', 'Semaphore', 'SemaCore', 0, 'Techno', 'http://Semaphore.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/121864', 'ElectroBeast', 'Action on the Front', 0, 'Techno', 'http://ElectroBeast.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/347665', 'SasquaMox', 'Esprit', 0, 'Techno', 'http://SasquaMox.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/332014', 'FXAudioRage', '{FXAR}-Escape Ice Mountain', 0, 'Techno', 'http://FXAudioRage.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/310270', 'EliteFerrex', 'Omega Redux', 0, 'Techno', 'http://EliteFerrex.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/318985', 'larrylarrybb', 'American Dollar', 0, 'Techno', 'http://larrylarrybb.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/73185', 'tazertimes', 'D.A.X. 17', 0, 'Techno', 'http://tazertimes.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/328115', 'NIGHTkilla', '~NK~ Ghosts \'n\' Stuff wip', 0, 'Techno', 'http://NIGHTkilla.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/308371', 'DjYeoh', 'Eurodancer - [2010 Remix!]', 0, 'Techno', 'http://DjYeoh.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/349569', 'ThunderBeats', 'L\'Uplifting', 0, 'Techno', 'http://ThunderBeats.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/125372', 'ganon95', '-ganon95- Crazy frog', 0, 'Techno', 'http://ganon95.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/286524', 'Meonly70', '{Dj-L} Essence of Creativity', 0, 'Techno', 'http://Meonly70.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/331889', 'Bacon92', 'DEMOlition - MC Bacon', 0, 'Techno', 'http://Bacon92.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/320448', 'Krellyn', 'A Reward', 0, 'Techno', 'http://Krellyn.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/266782', 'Meonly70', '{Dj-L} Heavenly Dance', 0, 'Techno', 'http://Meonly70.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/65897', 'Synkon', 'RocketScience', 0, 'Techno', 'http://Synkon.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/301628', 'Japillow', 'YES!-Japillow', 0, 'Techno', 'http://Japillow.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/206290', 'aliasf', 'Primal Impact', 0, 'Techno', 'http://aliasf.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/313401', 'ToxicBlizzard', 'KevinRodrigues::ElectroHouse', 0, 'Techno', 'http://ToxicBlizzard.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/140248', 'DenVessidence', 'DV-A Strange New Land', 0, 'Techno', 'http://DenVessidence.newgrounds.com')); songArrayTotal.push(new Array('http://newgrounds.com/audio/download/264969', 'td6d', 'Midnight Psycho', 0, 'Techno', 'http://td6d.newgrounds.com')); return songArrayTotal; } function chooseSongs(songArrayTotal) { var v3 = ''; var v4 = new Array(); i = 0; while (i < _root.genreArray.length) { v3 = _root.genreArray[i]; j = 0; while (j < songArrayTotal.length) { if (songArrayTotal[j][4] == v3) { v4.push(new Song(songArrayTotal[j][0], songArrayTotal[j][1], songArrayTotal[j][2], songArrayTotal[j][3], songArrayTotal[j][4], songArrayTotal[j][5])); } ++j; } ++i; } return v4; } var genreArray = new Array('Heavy Metal'); var sa = new Array(); var cps = Math.round(Math.random() * 49) - 1; _root.Heavymetal.gotoAndStop(2); local_data = SharedObject.getLocal('favorites'); var favoritesOnly = false; close._visible = false; myFavorites._visible = false; myHistory._visible = false; var favOnOff = 'Off'; var historyOnOff = 'Off'; trackInfo._visible = false; _global.styles.ScrollSelectList.setStyle('backgroundColor', 1315605); _global.styles.ScrollSelectList.setStyle('rollOverColor', 3552566); _global.styles.ScrollSelectList.setStyle('color', 15627264); _global.styles.ScrollSelectList.setStyle('selectedColor', 15627264); _global.styles.ScrollSelectList.setStyle('textRollOverColor', 15627264); _global.styles.ScrollSelectList.setStyle('textSelectedColor', 15627264); _global.styles.ScrollSelectList.setStyle('selectionColor', 0); listSwitch.onRelease = function () { if (favOnOff == 'Off') { _root.favOnOff = 'On'; myFavorites._visible = true; myHistory._visible = false; this.gotoAndStop('showFav'); clearHistory.gotoAndStop('clearFavs'); } else { if (favOnOff == 'On') { _root.favOnOff = 'Off'; myFavorites._visible = false; myHistory._visible = true; this.gotoAndStop('showHistory'); clearHistory.gotoAndStop('clearHistory'); } } }; var s = new Sound(); slider.onPress = function () { this.startDrag(true, _root.groove._x, _root.groove._y, _root.groove._x, _root.groove._y + _root.groove._height); }; slider.onReleaseOutside = function () { stopDrag(); }; slider.onRelease = slider.onReleaseOutside; slider.onEnterFrame = function () { newPoint = new Object(); newPoint.x = this._x; newPoint.y = this._y; _root.groove.globalToLocal(newPoint); _root.s.setVolume(100 - 1 * newPoint.y); }; s.onSoundComplete = playSong; var sa = new Array(); var fa = new Array(); var ha = new Array(); myHistory.hScrollPolicy = 'on'; myHistory.maxHPosition = 200; myFavorites.hScrollPolicy = 'on'; myFavorites.maxHPosition = 200; var pos = 0; var selectedGenre = new String('Heavy Metal'); var genreList = new String('Heavy Metal'); myHistory.change = function (evt) { s.loadSound(evt.target.selectedItem.data, true); trackInfo.text = evt.target.selectedItem.artist + ' - ' + evt.target.selectedItem.track + ' - ' + evt.target.selectedItem.genre; myFavorites.selectedIndex = null; }; myHistory.addEventListener('change', myHistory); myFavorites.change = function (evt) { s.loadSound(evt.target.selectedItem.data, true); trackInfo.text = evt.target.selectedItem.artist + ' - ' + evt.target.selectedItem.track + ' - ' + evt.target.selectedItem.genre; myHistory.selectedIndex = null; }; myFavorites.addEventListener('change', myFavorites); var myCookie = local_data.data.favorite9; if (myCookie != undefined) { i = 0; while (i < myCookie.length) { fa.push(new Song(myCookie[i].earl, myCookie[i].artist, myCookie[i].track, myCookie[i].musicId, myCookie[i].genre, myCookie[i].authorUrl)); myFavorites.addItem({'label': myCookie[i].track + ' by ' + myCookie[i].artist, 'artist': myCookie[i].artist, 'track': myCookie[i].track, 'musicId': myCookie[i].musicId, 'genre': myCookie[i].genre, 'authorUrl': myCookie[i].authorUrl, 'data': myCookie[i].earl}); ++i; } } addFavorite.onRelease = function () { var v2 = false; var v1 = 0; while (v1 < fa.length) { if ((myHistory.getItemAt(myHistory.selectedIndex)).track == fa[v1]) { v2 = true; trace(v2); } ++v1; } if (v2 == false && myHistory.selectedIndex != null) { fa.push(new Song((myHistory.getItemAt(myHistory.selectedIndex)).data, (myHistory.getItemAt(myHistory.selectedIndex)).artist, (myHistory.getItemAt(myHistory.selectedIndex)).track, (myHistory.getItemAt(myHistory.selectedIndex)).musicId, (myHistory.getItemAt(myHistory.selectedIndex)).genre, (myHistory.getItemAt(myHistory.selectedIndex)).authorUrl)); var v3 = {'label': (myHistory.getItemAt(myHistory.selectedIndex)).track + ' by ' + (myHistory.getItemAt(myHistory.selectedIndex)).artist, 'data': (myHistory.getItemAt(myHistory.selectedIndex)).data, 'artist': (myHistory.getItemAt(myHistory.selectedIndex)).artist, 'track': (myHistory.getItemAt(myHistory.selectedIndex)).track, 'musicId': (myHistory.getItemAt(myHistory.selectedIndex)).musicId, 'authorUrl': (myHistory.getItemAt(myHistory.selectedIndex)).authorUrl, 'genre': (myHistory.getItemAt(myHistory.selectedIndex)).genre}; myFavorites.addItem(v3); local_data.data.favorite9 = fa; local_data.flush(); } }; removeFavorite.onRelease = function () { var v1 = 0; while (v1 < fa.length) { if ((myFavorites.getItemAt(myFavorites.selectedIndex)).track == fa[v1]) { fa.splice(v1, 1); trace(fa); } ++v1; } myFavorites.removeItemAt(myFavorites.selectedIndex); }; clearHistory.onRelease = function () { if (_root.favOnOff == 'Off') { myHistory.removeAll(); ha.splice(0); } if (favOnOff == 'On') { var v2 = 0; while (v2 < fa.length) { if ((myFavorites.getItemAt(myFavorites.selectedIndex)).track == fa[v2].track) { fa.splice(v2, 1); trace(fa); } ++v2; } myFavorites.removeItemAt(myFavorites.selectedIndex); local_data.data.favorite9 = fa; } }; desktopDownload.onRelease = function () { getURL('http://www.bootyarcade.com/radio.exe', '_blank'); }; playnow.onRelease = function () { this._parent.unPauseIt(); }; pause.onRelease = function () { this._parent.pauseIt(); }; nextMovie.onRelease = function () { this._parent.playSong(); }; prev.onRelease = function () { if (_root.cps > 0) { this._parent.playPrevSong(); } }; download.onRelease = function () { if (myHistory.selectedIndex != null) { target = '_blank'; getURL('http://www.newgrounds.com/audio/download/' + (myHistory.getItemAt(myHistory.selectedIndex)).musicId, '_blank'); } else { target = '_blank'; getURL('http://www.newgrounds.com/audio/download/' + (myFavorites.getItemAt(myFavorites.selectedIndex)).musicId, '_blank'); } }; random_btn.onRelease = function () { _root.genreArray = new Array(); shuffle(); loadXml(); }; vote.onRelease = function () { if (myHistory.selectedIndex != null) { target = '_blank'; getURL('http://www.newgrounds.com/audio/listen/' + (myHistory.getItemAt(myHistory.selectedIndex)).musicId, '_blank'); pauseIt(); } else { target = '_blank'; getURL('http://www.newgrounds.com/audio/listen/' + (myFavorites.getItemAt(myFavorites.selectedIndex)).musicId, '_blank'); pauseIt(); } }; mute.onRollOver = function () { if (this._currentframe == 1) { this.gotoAndStop('onOver'); } else { this.gotoAndStop('offOver'); } }; mute.onReleaseOutside = function () { if (this._currentframe == 10) { this.gotoAndStop('on'); } else { this.gotoAndStop('off'); } }; mute.onRollOut = mute.onReleaseOutside; var size = 40; var textPos = 0; var intervalID = setInterval(scroller, 1000); } movieClip 272 { } movieClip 274 { } movieClip 276 { } movieClip 278 { } movieClip 280 { } // unknown tag 88 length 64 button 300 { on (release) { getURL('http://www.bootyarcade.com', '_blank'); } } button 301 { on (release) { _root.gotoAndStop(3); } } movieClip 302 { frame 1 { _root.winAmountTxt._visible = false; } frame 174 { stop(); _root.game_stage.menu_mc.gameStart.onPress = function () { _root.game_stage.gotoAndStop('selectMusic'); }; _root.game_stage.menu_mc.credits.onPress = function () { _root.game_stage.gotoAndStop('credits'); }; } } // unknown tag 88 length 64 movieClip 313 { } movieClip 324 { } movieClip 326 { } movieClip 327 { } movieClip 328 { } movieClip 329 { } movieClip 330 tireholder { } movieClip 333 { } movieClip 336 { } movieClip 339 { } movieClip 342 { } movieClip 347 { } movieClip 348 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 357 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 366 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 375 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 384 { frame 1 { function playScreech() { _root.screech.start(); _root.screech.setVolume(10); } stop(); var screechOnce = playScreech; var screechLeft = playScreech; var screechRight = playScreech; this.onEnterFrame = function () { var v3 = _parent._x - 12 * Math.sin(_root.game_stage.pCar.heading) - 13 * Math.cos(_root.game_stage.pCar.sprite._rotation * Math.PI / 180) + 24 * Math.sin(_root.game_stage.pCar.sprite._rotation * Math.PI / 180); var v4 = _parent._y - 13 * Math.sin(_root.game_stage.pCar.sprite._rotation * Math.PI / 180) - 12 * Math.cos(_root.game_stage.pCar.sprite._rotation * Math.PI / 180); var v6 = _parent._x - 13 * Math.cos(_root.game_stage.pCar.sprite._rotation * Math.PI / 180) - 12 * Math.sin(_root.game_stage.pCar.sprite._rotation * Math.PI / 180); var v5 = _parent._y - 12 * Math.cos(_root.game_stage.pCar.heading) - 13 * Math.sin(_root.game_stage.pCar.sprite._rotation * Math.PI / 180) + 24 * Math.cos(_root.game_stage.pCar.sprite._rotation * Math.PI / 180); if (!nextLevel && _root.game_stage.carToPlay == 'model1') { if (!Key.isDown(38)) { screechOnce = playScreech; } if (!Key.isDown(37)) { screechLeft = playScreech; } if (!Key.isDown(39)) { screechRight = playScreech; } if (Key.isDown(38)) { ++_root.game_stage.pCarTireNum; if (_root.game_stage.pCarTireNum > 120) { _root.game_stage.pCarTireNum = 20; } _root.game_stage.tireTrack(v3, v4, _root.game_stage.pCar, _root.game_stage.pCarTireNum, _root.game_stage.tireholder); ++_root.game_stage.pCarTireNum; if (_root.game_stage.pCarTireNum > 120) { _root.game_stage.pCarTireNum = 20; } _root.game_stage.tireTrack(v6, v5, _root.game_stage.pCar, _root.game_stage.pCarTireNum, _root.game_stage.tireholder); if (Math.round(Math.sqrt(_root.game_stage.pCar.velocityX * _root.game_stage.pCar.velocityX + _root.game_stage.pCar.velocityY * _root.game_stage.pCar.velocityY)) > _root.game_stage.pCar.speedMax / 20 && Math.round(Math.sqrt(_root.game_stage.pCar.velocityX * _root.game_stage.pCar.velocityX + _root.game_stage.pCar.velocityY * _root.game_stage.pCar.velocityY)) < _root.game_stage.pCar.speedMax) { if (!_root.game_stage.pCar.sprite.hitTest(_root.game_stage.leftBorder) && !_root.game_stage.pCar.sprite.hitTest(_root.game_stage.rightBorder) && !_root.game_stage.pCar.sprite.hitTest(_root.game_stage.upBorder) && !_root.game_stage.pCar.sprite.hitTest(_root.game_stage.downBorder)) { if (_root.game_stage.pCar.speedMomentum > 0) { screechOnce(); screechOnce = null; _root.game_stage.doDirt(v3, v4, _root.game_stage.pCar); _root.game_stage.doDirt(v6, v5, _root.game_stage.pCar); } } } } if (Key.isDown(37)) { if (Math.round(Math.sqrt(_root.game_stage.pCar.velocityX * _root.game_stage.pCar.velocityX + _root.game_stage.pCar.velocityY * _root.game_stage.pCar.velocityY)) > _root.game_stage.pCar.speedMax) { screechLeft(); screechLeft = null; _root.game_stage.doDirt(v3, v4, _root.game_stage.pCar); _root.game_stage.doDirt(v6, v5, _root.game_stage.pCar); } } if (Key.isDown(39)) { if (Math.round(Math.sqrt(_root.game_stage.pCar.velocityX * _root.game_stage.pCar.velocityX + _root.game_stage.pCar.velocityY * _root.game_stage.pCar.velocityY)) > _root.game_stage.pCar.speedMax) { screechRight(); screechRight = null; _root.game_stage.doDirt(v3, v4, _root.game_stage.pCar); _root.game_stage.doDirt(v6, v5, _root.game_stage.pCar); } } } }; } frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 387 { } movieClip 389 { } movieClip 391 { } movieClip 392 { frame 1 { stop(); } } movieClip 393 pCarA { } movieClip 396 { } movieClip 399 { } movieClip 402 { } movieClip 405 { } movieClip 410 { } movieClip 411 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 420 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { stop(); } } movieClip 429 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { stop(); } } movieClip 438 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { stop(); } } movieClip 447 { frame 1 { function playScreech() { _root.sound.soundScreech.start(); } stop(); var screechOnce = playScreech; var screechLeft = playScreech; var screechRight = playScreech; this.onEnterFrame = function () { var v3 = _parent._x - 12 * Math.sin(_root.game_stage.pCar.heading) - 13 * Math.cos(_root.game_stage.pCar.sprite._rotation * Math.PI / 180) + 24 * Math.sin(_root.game_stage.pCar.sprite._rotation * Math.PI / 180); var v4 = _parent._y - 13 * Math.sin(_root.game_stage.pCar.sprite._rotation * Math.PI / 180) - 12 * Math.cos(_root.game_stage.pCar.sprite._rotation * Math.PI / 180); var v6 = _parent._x - 13 * Math.cos(_root.game_stage.pCar.sprite._rotation * Math.PI / 180) - 12 * Math.sin(_root.game_stage.pCar.sprite._rotation * Math.PI / 180); var v5 = _parent._y - 12 * Math.cos(_root.game_stage.pCar.heading) - 13 * Math.sin(_root.game_stage.pCar.sprite._rotation * Math.PI / 180) + 24 * Math.cos(_root.game_stage.pCar.sprite._rotation * Math.PI / 180); if (!nextLevel && _root.game_stage.carToPlay == 'model2') { if (!Key.isDown(38)) { screechOnce = playScreech; } if (!Key.isDown(37)) { screechLeft = playScreech; } if (!Key.isDown(39)) { screechRight = playScreech; } if (Key.isDown(38) || Key.isDown(87)) { ++_root.game_stage.pCarTireNum; if (_root.game_stage.pCarTireNum > 120) { _root.game_stage.pCarTireNum = 20; } _root.game_stage.tireTrack(v3, v4, _root.game_stage.pCar, _root.game_stage.pCarTireNum, _root.game_stage.tireholder); ++_root.game_stage.pCarTireNum; if (_root.game_stage.pCarTireNum > 120) { _root.game_stage.pCarTireNum = 20; } _root.game_stage.tireTrack(v6, v5, _root.game_stage.pCar, _root.game_stage.pCarTireNum, _root.game_stage.tireholder); if (Math.round(Math.sqrt(_root.game_stage.pCar.velocityX * _root.game_stage.pCar.velocityX + _root.game_stage.pCar.velocityY * _root.game_stage.pCar.velocityY)) > _root.game_stage.pCar.speedMax / 20 && Math.round(Math.sqrt(_root.game_stage.pCar.velocityX * _root.game_stage.pCar.velocityX + _root.game_stage.pCar.velocityY * _root.game_stage.pCar.velocityY)) < _root.game_stage.pCar.speedMax) { if (!_root.game_stage.pCar.sprite.hitTest(_root.game_stage.leftBorder) && !_root.game_stage.pCar.sprite.hitTest(_root.game_stage.rightBorder) && !_root.game_stage.pCar.sprite.hitTest(_root.game_stage.upBorder) && !_root.game_stage.pCar.sprite.hitTest(_root.game_stage.downBorder)) { if (_root.game_stage.pCar.speedMomentum > 0) { screechOnce(); screechOnce = null; _root.game_stage.doDirt(v3, v4, _root.game_stage.pCar); _root.game_stage.doDirt(v6, v5, _root.game_stage.pCar); } } } } if (Key.isDown(37)) { if (Math.round(Math.sqrt(_root.game_stage.pCar.velocityX * _root.game_stage.pCar.velocityX + _root.game_stage.pCar.velocityY * _root.game_stage.pCar.velocityY)) > _root.game_stage.pCar.speedMax) { screechLeft(); screechLeft = null; _root.game_stage.doDirt(v3, v4, _root.game_stage.pCar); _root.game_stage.doDirt(v6, v5, _root.game_stage.pCar); } } if (Key.isDown(39)) { if (Math.round(Math.sqrt(_root.game_stage.pCar.velocityX * _root.game_stage.pCar.velocityX + _root.game_stage.pCar.velocityY * _root.game_stage.pCar.velocityY)) > _root.game_stage.pCar.speedMax) { screechRight(); screechRight = null; _root.game_stage.doDirt(v3, v4, _root.game_stage.pCar); _root.game_stage.doDirt(v6, v5, _root.game_stage.pCar); } } } }; } frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 448 { } movieClip 449 { } movieClip 450 { } movieClip 451 { frame 1 { stop(); } } movieClip 452 pCarB { } movieClip 455 { } movieClip 458 { } movieClip 461 { } movieClip 464 { } movieClip 469 { } movieClip 470 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 479 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { stop(); } } movieClip 488 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { stop(); } } movieClip 497 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { stop(); } } movieClip 506 { frame 1 { function playScreech() { _root.screech.start(); } stop(); var screechOnce = playScreech; var screechLeft = playScreech; var screechRight = playScreech; this.onEnterFrame = function () { var v3 = _parent._x - 12 * Math.sin(_root.game_stage.pCar.heading) - 13 * Math.cos(_root.game_stage.pCar.sprite._rotation * Math.PI / 180) + 24 * Math.sin(_root.game_stage.pCar.sprite._rotation * Math.PI / 180); var v4 = _parent._y - 13 * Math.sin(_root.game_stage.pCar.sprite._rotation * Math.PI / 180) - 12 * Math.cos(_root.game_stage.pCar.sprite._rotation * Math.PI / 180); var v6 = _parent._x - 13 * Math.cos(_root.game_stage.pCar.sprite._rotation * Math.PI / 180) - 12 * Math.sin(_root.game_stage.pCar.sprite._rotation * Math.PI / 180); var v5 = _parent._y - 12 * Math.cos(_root.game_stage.pCar.heading) - 13 * Math.sin(_root.game_stage.pCar.sprite._rotation * Math.PI / 180) + 24 * Math.cos(_root.game_stage.pCar.sprite._rotation * Math.PI / 180); if (!nextLevel && _root.game_stage.carToPlay == 'model3') { if (!Key.isDown(38)) { screechOnce = playScreech; } if (!Key.isDown(37)) { screechLeft = playScreech; } if (!Key.isDown(39)) { screechRight = playScreech; } if (Key.isDown(38) || Key.isDown(87)) { ++_root.game_stage.pCarTireNum; if (_root.game_stage.pCarTireNum > 120) { _root.game_stage.pCarTireNum = 20; } _root.game_stage.tireTrack(v3, v4, _root.game_stage.pCar, _root.game_stage.pCarTireNum, _root.game_stage.tireholder); ++_root.game_stage.pCarTireNum; if (_root.game_stage.pCarTireNum > 120) { _root.game_stage.pCarTireNum = 20; } _root.game_stage.tireTrack(v6, v5, _root.game_stage.pCar, _root.game_stage.pCarTireNum, _root.game_stage.tireholder); if (Math.round(Math.sqrt(_root.game_stage.pCar.velocityX * _root.game_stage.pCar.velocityX + _root.game_stage.pCar.velocityY * _root.game_stage.pCar.velocityY)) > _root.game_stage.pCar.speedMax / 20 && Math.round(Math.sqrt(_root.game_stage.pCar.velocityX * _root.game_stage.pCar.velocityX + _root.game_stage.pCar.velocityY * _root.game_stage.pCar.velocityY)) < _root.game_stage.pCar.speedMax) { if (!_root.game_stage.pCar.sprite.hitTest(_root.game_stage.leftBorder) && !_root.game_stage.pCar.sprite.hitTest(_root.game_stage.rightBorder) && !_root.game_stage.pCar.sprite.hitTest(_root.game_stage.upBorder) && !_root.game_stage.pCar.sprite.hitTest(_root.game_stage.downBorder)) { if (_root.game_stage.pCar.speedMomentum > 0) { screechOnce(); screechOnce = null; _root.game_stage.doDirt(v3, v4, _root.game_stage.pCar); _root.game_stage.doDirt(v6, v5, _root.game_stage.pCar); } } } } if (Key.isDown(37)) { if (Math.round(Math.sqrt(_root.game_stage.pCar.velocityX * _root.game_stage.pCar.velocityX + _root.game_stage.pCar.velocityY * _root.game_stage.pCar.velocityY)) > _root.game_stage.pCar.speedMax) { screechLeft(); screechLeft = null; _root.game_stage.doDirt(v3, v4, _root.game_stage.pCar); _root.game_stage.doDirt(v6, v5, _root.game_stage.pCar); } } if (Key.isDown(39)) { if (Math.round(Math.sqrt(_root.game_stage.pCar.velocityX * _root.game_stage.pCar.velocityX + _root.game_stage.pCar.velocityY * _root.game_stage.pCar.velocityY)) > _root.game_stage.pCar.speedMax) { screechRight(); screechRight = null; _root.game_stage.doDirt(v3, v4, _root.game_stage.pCar); _root.game_stage.doDirt(v6, v5, _root.game_stage.pCar); } } } }; } frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { stop(); } } movieClip 507 { } movieClip 508 { } movieClip 509 { } movieClip 510 { frame 1 { stop(); } } movieClip 511 pCarC { } movieClip 514 { } movieClip 517 { } movieClip 520 { } movieClip 523 { } movieClip 528 { } movieClip 529 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 538 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { stop(); } } movieClip 547 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { stop(); } } movieClip 556 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { stop(); } } movieClip 565 { frame 1 { function playScreech() { _root.sound.soundScreech.start(); } stop(); var screechOnce = playScreech; var screechLeft = playScreech; var screechRight = playScreech; this.onEnterFrame = function () { var v3 = _parent._x - 12 * Math.sin(_root.game_stage.pCar.heading) - 13 * Math.cos(_root.game_stage.pCar.sprite._rotation * Math.PI / 180) + 24 * Math.sin(_root.game_stage.pCar.sprite._rotation * Math.PI / 180); var v4 = _parent._y - 13 * Math.sin(_root.game_stage.pCar.sprite._rotation * Math.PI / 180) - 12 * Math.cos(_root.game_stage.pCar.sprite._rotation * Math.PI / 180); var v6 = _parent._x - 13 * Math.cos(_root.game_stage.pCar.sprite._rotation * Math.PI / 180) - 12 * Math.sin(_root.game_stage.pCar.sprite._rotation * Math.PI / 180); var v5 = _parent._y - 12 * Math.cos(_root.game_stage.pCar.heading) - 13 * Math.sin(_root.game_stage.pCar.sprite._rotation * Math.PI / 180) + 24 * Math.cos(_root.game_stage.pCar.sprite._rotation * Math.PI / 180); if (!nextLevel && _root.game_stage.carToPlay == 'model4') { if (!Key.isDown(38)) { screechOnce = playScreech; } if (!Key.isDown(37)) { screechLeft = playScreech; } if (!Key.isDown(39)) { screechRight = playScreech; } if (Key.isDown(38) || Key.isDown(87)) { ++_root.game_stage.pCarTireNum; if (_root.game_stage.pCarTireNum > 120) { _root.game_stage.pCarTireNum = 20; } _root.game_stage.tireTrack(v3, v4, _root.game_stage.pCar, _root.game_stage.pCarTireNum, _root.game_stage.tireholder); ++_root.game_stage.pCarTireNum; if (_root.game_stage.pCarTireNum > 120) { _root.game_stage.pCarTireNum = 20; } _root.game_stage.tireTrack(v6, v5, _root.game_stage.pCar, _root.game_stage.pCarTireNum, _root.game_stage.tireholder); if (Math.round(Math.sqrt(_root.game_stage.pCar.velocityX * _root.game_stage.pCar.velocityX + _root.game_stage.pCar.velocityY * _root.game_stage.pCar.velocityY)) > _root.game_stage.pCar.speedMax / 20 && Math.round(Math.sqrt(_root.game_stage.pCar.velocityX * _root.game_stage.pCar.velocityX + _root.game_stage.pCar.velocityY * _root.game_stage.pCar.velocityY)) < _root.game_stage.pCar.speedMax) { if (!_root.game_stage.pCar.sprite.hitTest(_root.game_stage.leftBorder) && !_root.game_stage.pCar.sprite.hitTest(_root.game_stage.rightBorder) && !_root.game_stage.pCar.sprite.hitTest(_root.game_stage.upBorder) && !_root.game_stage.pCar.sprite.hitTest(_root.game_stage.downBorder)) { if (_root.game_stage.pCar.speedMomentum > 0) { screechOnce(); screechOnce = null; _root.game_stage.doDirt(v3, v4, _root.game_stage.pCar); _root.game_stage.doDirt(v6, v5, _root.game_stage.pCar); } } } } if (Key.isDown(37)) { if (Math.round(Math.sqrt(_root.game_stage.pCar.velocityX * _root.game_stage.pCar.velocityX + _root.game_stage.pCar.velocityY * _root.game_stage.pCar.velocityY)) > _root.game_stage.pCar.speedMax) { screechLeft(); screechLeft = null; _root.game_stage.doDirt(v3, v4, _root.game_stage.pCar); _root.game_stage.doDirt(v6, v5, _root.game_stage.pCar); } } if (Key.isDown(39)) { if (Math.round(Math.sqrt(_root.game_stage.pCar.velocityX * _root.game_stage.pCar.velocityX + _root.game_stage.pCar.velocityY * _root.game_stage.pCar.velocityY)) > _root.game_stage.pCar.speedMax) { screechRight(); screechRight = null; _root.game_stage.doDirt(v3, v4, _root.game_stage.pCar); _root.game_stage.doDirt(v6, v5, _root.game_stage.pCar); } } } }; } frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { stop(); } } movieClip 566 { } movieClip 567 { } movieClip 568 { } movieClip 569 { frame 1 { stop(); } } movieClip 570 pCarD { } movieClip 573 { } movieClip 576 { } movieClip 579 { } movieClip 582 { } movieClip 587 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 596 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 605 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 614 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 623 { frame 1 { stop(); this.onEnterFrame = function () { var v3; i = 0; while (i < 9) { if (_parent._x == _root.game_stage.cars[i].sprite._x) { v3 = _root.game_stage.cars[i]; var v4 = _parent._x - 12 * Math.sin(v3.heading) - 13 * Math.cos(v3.sprite._rotation * Math.PI / 180) + 24 * Math.sin(v3.sprite._rotation * Math.PI / 180); var v5 = _parent._y - 13 * Math.sin(v3.sprite._rotation * Math.PI / 180) - 12 * Math.cos(v3.sprite._rotation * Math.PI / 180); var v7 = _parent._x - 13 * Math.cos(v3.sprite._rotation * Math.PI / 180) - 12 * Math.sin(v3.sprite._rotation * Math.PI / 180); var v6 = _parent._y - 12 * Math.cos(v3.heading) - 13 * Math.sin(v3.sprite._rotation * Math.PI / 180) + 24 * Math.cos(v3.sprite._rotation * Math.PI / 180); if (v3.speed > 0) { ++_root.game_stage.vCarGTireNum; _root.game_stage.tireTrack(v4, v5, v3, _root.game_stage.vCarGTireNum, _root.game_stage.tireholder); ++_root.game_stage.vCarGTireNum; if (_root.game_stage.vCarGTireNum > 1055) { _root.game_stage.vCarGTireNum = 930; } _root.game_stage.tireTrack(v7, v6, v3, _root.game_stage.vCarGTireNum, _root.game_stage.tireholder); } } ++i; } }; } frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 626 { } movieClip 628 { } movieClip 630 { } movieClip 631 { frame 1 { stop(); } } movieClip 634 { } movieClip 636 { } movieClip 637 { } movieClip 638 vCarG { } movieClip 641 { } movieClip 644 { } movieClip 647 { } movieClip 650 { } movieClip 655 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 664 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 673 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 682 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 691 { frame 1 { stop(); this.onEnterFrame = function () { var v3; i = 0; while (i < 9) { if (_parent._x == _root.game_stage.cars[i].sprite._x) { v3 = _root.game_stage.cars[i]; var v4 = _parent._x - 12 * Math.sin(v3.heading) - 13 * Math.cos(v3.sprite._rotation * Math.PI / 180) + 24 * Math.sin(v3.sprite._rotation * Math.PI / 180); var v5 = _parent._y - 13 * Math.sin(v3.sprite._rotation * Math.PI / 180) - 12 * Math.cos(v3.sprite._rotation * Math.PI / 180); var v7 = _parent._x - 13 * Math.cos(v3.sprite._rotation * Math.PI / 180) - 12 * Math.sin(v3.sprite._rotation * Math.PI / 180); var v6 = _parent._y - 12 * Math.cos(v3.heading) - 13 * Math.sin(v3.sprite._rotation * Math.PI / 180) + 24 * Math.cos(v3.sprite._rotation * Math.PI / 180); if (v3.speed > 0) { ++_root.game_stage.vCarHTireNum; _root.game_stage.tireTrack(v4, v5, v3, _root.game_stage.vCarHTireNum, _root.game_stage.tireholder); ++_root.game_stage.vCarHTireNum; if (_root.game_stage.vCarHTireNum > 1185) { _root.game_stage.vCarHTireNum = 1060; } _root.game_stage.tireTrack(v7, v6, v3, _root.game_stage.vCarHTireNum, _root.game_stage.tireholder); } } ++i; } }; } frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 692 vCarH { } movieClip 695 { } movieClip 698 { } movieClip 701 { } movieClip 704 { } movieClip 709 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 718 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 727 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 736 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 745 { frame 1 { stop(); this.onEnterFrame = function () { var v3; i = 0; while (i < 9) { if (_parent._x == _root.game_stage.cars[i].sprite._x) { v3 = _root.game_stage.cars[i]; var v4 = _parent._x - 12 * Math.sin(v3.heading) - 13 * Math.cos(v3.sprite._rotation * Math.PI / 180) + 24 * Math.sin(v3.sprite._rotation * Math.PI / 180); var v5 = _parent._y - 13 * Math.sin(v3.sprite._rotation * Math.PI / 180) - 12 * Math.cos(v3.sprite._rotation * Math.PI / 180); var v7 = _parent._x - 13 * Math.cos(v3.sprite._rotation * Math.PI / 180) - 12 * Math.sin(v3.sprite._rotation * Math.PI / 180); var v6 = _parent._y - 12 * Math.cos(v3.heading) - 13 * Math.sin(v3.sprite._rotation * Math.PI / 180) + 24 * Math.cos(v3.sprite._rotation * Math.PI / 180); if (v3.speed > 0) { ++_root.game_stage.vCarITireNum; _root.game_stage.tireTrack(v4, v5, v3, _root.game_stage.vCarITireNum, _root.game_stage.tireholder); ++_root.game_stage.vCarITireNum; if (_root.game_stage.vCarITireNum > 1315) { _root.game_stage.vCarITireNum = 1190; } _root.game_stage.tireTrack(v7, v6, v3, _root.game_stage.vCarITireNum, _root.game_stage.tireholder); } } ++i; } }; } frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 746 vCarI { } movieClip 749 { } movieClip 752 { } movieClip 755 { } movieClip 758 { } movieClip 763 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 772 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 781 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 790 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 799 { frame 1 { stop(); this.onEnterFrame = function () { var v3; i = 0; while (i < 9) { if (_parent._x == _root.game_stage.cars[i].sprite._x) { v3 = _root.game_stage.cars[i]; var v4 = _parent._x - 12 * Math.sin(v3.heading) - 13 * Math.cos(v3.sprite._rotation * Math.PI / 180) + 24 * Math.sin(v3.sprite._rotation * Math.PI / 180); var v5 = _parent._y - 13 * Math.sin(v3.sprite._rotation * Math.PI / 180) - 12 * Math.cos(v3.sprite._rotation * Math.PI / 180); var v7 = _parent._x - 13 * Math.cos(v3.sprite._rotation * Math.PI / 180) - 12 * Math.sin(v3.sprite._rotation * Math.PI / 180); var v6 = _parent._y - 12 * Math.cos(v3.heading) - 13 * Math.sin(v3.sprite._rotation * Math.PI / 180) + 24 * Math.cos(v3.sprite._rotation * Math.PI / 180); if (v3.speed > 0) { ++_root.game_stage.vCarJTireNum; _root.game_stage.tireTrack(v4, v5, v3, _root.game_stage.vCarJTireNum, _root.game_stage.tireholder); ++_root.game_stage.vCarJTireNum; if (_root.game_stage.vCarJTireNum > 1445) { _root.game_stage.vCarJTireNum = 1320; } _root.game_stage.tireTrack(v7, v6, v3, _root.game_stage.vCarJTireNum, _root.game_stage.tireholder); } } ++i; } }; } frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 800 vCarJ { } movieClip 803 { } movieClip 806 { } movieClip 809 { } movieClip 812 { } movieClip 817 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 826 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 835 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 844 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 853 { frame 1 { stop(); this.onEnterFrame = function () { var v3; i = 0; while (i < 9) { if (_parent._x == _root.game_stage.cars[i].sprite._x) { v3 = _root.game_stage.cars[i]; var v4 = _parent._x - 12 * Math.sin(v3.heading) - 13 * Math.cos(v3.sprite._rotation * Math.PI / 180) + 24 * Math.sin(v3.sprite._rotation * Math.PI / 180); var v5 = _parent._y - 13 * Math.sin(v3.sprite._rotation * Math.PI / 180) - 12 * Math.cos(v3.sprite._rotation * Math.PI / 180); var v7 = _parent._x - 13 * Math.cos(v3.sprite._rotation * Math.PI / 180) - 12 * Math.sin(v3.sprite._rotation * Math.PI / 180); var v6 = _parent._y - 12 * Math.cos(v3.heading) - 13 * Math.sin(v3.sprite._rotation * Math.PI / 180) + 24 * Math.cos(v3.sprite._rotation * Math.PI / 180); if (v3.speed > 0) { ++_root.game_stage.vCarETireNum; _root.game_stage.tireTrack(v4, v5, v3, _root.game_stage.vCarETireNum, _root.game_stage.tireholder); ++_root.game_stage.vCarETireNum; if (_root.game_stage.vCarETireNum > 795) { _root.game_stage.vCarETireNum = 670; } _root.game_stage.tireTrack(v7, v6, v3, _root.game_stage.vCarETireNum, _root.game_stage.tireholder); } } ++i; } }; } frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 854 vCarE { } movieClip 857 { } movieClip 860 { } movieClip 863 { } movieClip 866 { } movieClip 871 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 880 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 888 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 897 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 906 { frame 1 { stop(); this.onEnterFrame = function () { var v3; i = 0; while (i < 9) { if (_parent._x == _root.game_stage.cars[i].sprite._x) { v3 = _root.game_stage.cars[i]; var v4 = _parent._x - 12 * Math.sin(v3.heading) - 13 * Math.cos(v3.sprite._rotation * Math.PI / 180) + 24 * Math.sin(v3.sprite._rotation * Math.PI / 180); var v5 = _parent._y - 13 * Math.sin(v3.sprite._rotation * Math.PI / 180) - 12 * Math.cos(v3.sprite._rotation * Math.PI / 180); var v7 = _parent._x - 13 * Math.cos(v3.sprite._rotation * Math.PI / 180) - 12 * Math.sin(v3.sprite._rotation * Math.PI / 180); var v6 = _parent._y - 12 * Math.cos(v3.heading) - 13 * Math.sin(v3.sprite._rotation * Math.PI / 180) + 24 * Math.cos(v3.sprite._rotation * Math.PI / 180); if (v3.speed > 0) { ++_root.game_stage.vCarFTireNum; _root.game_stage.tireTrack(v4, v5, v3, _root.game_stage.vCarFTireNum, _root.game_stage.tireholder); ++_root.game_stage.vCarFTireNum; if (_root.game_stage.vCarFTireNum > 925) { _root.game_stage.vCarFTireNum = 800; } _root.game_stage.tireTrack(v7, v6, v3, _root.game_stage.vCarFTireNum, _root.game_stage.tireholder); } } ++i; } }; } frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 907 vCarF { } movieClip 910 { } movieClip 913 { } movieClip 916 { } movieClip 919 { } movieClip 924 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 933 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 942 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 951 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 960 { frame 1 { stop(); this.onEnterFrame = function () { var v3; i = 0; while (i < 9) { if (_parent._x == _root.game_stage.cars[i].sprite._x) { v3 = _root.game_stage.cars[i]; var v4 = _parent._x - 12 * Math.sin(v3.heading) - 13 * Math.cos(v3.sprite._rotation * Math.PI / 180) + 24 * Math.sin(v3.sprite._rotation * Math.PI / 180); var v5 = _parent._y - 13 * Math.sin(v3.sprite._rotation * Math.PI / 180) - 12 * Math.cos(v3.sprite._rotation * Math.PI / 180); var v7 = _parent._x - 13 * Math.cos(v3.sprite._rotation * Math.PI / 180) - 12 * Math.sin(v3.sprite._rotation * Math.PI / 180); var v6 = _parent._y - 12 * Math.cos(v3.heading) - 13 * Math.sin(v3.sprite._rotation * Math.PI / 180) + 24 * Math.cos(v3.sprite._rotation * Math.PI / 180); if (v3.speed > 0) { ++_root.game_stage.vCarATireNum; _root.game_stage.tireTrack(v4, v5, v3, _root.game_stage.vCarATireNum, _root.game_stage.tireholder); ++_root.game_stage.vCarATireNum; if (_root.game_stage.vCarATireNum > 275) { _root.game_stage.vCarATireNum = 150; } _root.game_stage.tireTrack(v7, v6, v3, _root.game_stage.vCarATireNum, _root.game_stage.tireholder); } } ++i; } }; } frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX; v3._y = targetY; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed * 3; this._yscale += this.speed * 3; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 961 vCarA { } movieClip 964 { } movieClip 967 { } movieClip 970 { } movieClip 973 { } movieClip 978 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 987 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 996 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 1005 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 1014 { frame 1 { stop(); this.onEnterFrame = function () { var v3; i = 0; while (i < 9) { if (_parent._x == _root.game_stage.cars[i].sprite._x) { v3 = _root.game_stage.cars[i]; var v4 = _parent._x - 12 * Math.sin(v3.heading) - 13 * Math.cos(v3.sprite._rotation * Math.PI / 180) + 24 * Math.sin(v3.sprite._rotation * Math.PI / 180); var v5 = _parent._y - 13 * Math.sin(v3.sprite._rotation * Math.PI / 180) - 12 * Math.cos(v3.sprite._rotation * Math.PI / 180); var v7 = _parent._x - 13 * Math.cos(v3.sprite._rotation * Math.PI / 180) - 12 * Math.sin(v3.sprite._rotation * Math.PI / 180); var v6 = _parent._y - 12 * Math.cos(v3.heading) - 13 * Math.sin(v3.sprite._rotation * Math.PI / 180) + 24 * Math.cos(v3.sprite._rotation * Math.PI / 180); if (v3.speed > 0) { ++_root.game_stage.vCarBTireNum; _root.game_stage.tireTrack(v4, v5, v3, _root.game_stage.vCarBTireNum, _root.game_stage.tireholder); ++_root.game_stage.vCarBTireNum; if (_root.game_stage.vCarBTireNum > 405) { _root.game_stage.vCarBTireNum = 280; } _root.game_stage.tireTrack(v7, v6, v3, _root.game_stage.vCarBTireNum, _root.game_stage.tireholder); } } ++i; } }; } frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 1015 vCarB { } movieClip 1018 { } movieClip 1021 { } movieClip 1024 { } movieClip 1027 { } movieClip 1032 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1041 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 1050 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 1059 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 1068 { frame 1 { stop(); this.onEnterFrame = function () { var v3; i = 0; while (i < 9) { if (_parent._x == _root.game_stage.cars[i].sprite._x) { v3 = _root.game_stage.cars[i]; var v4 = _parent._x - 12 * Math.sin(v3.heading) - 13 * Math.cos(v3.sprite._rotation * Math.PI / 180) + 24 * Math.sin(v3.sprite._rotation * Math.PI / 180); var v5 = _parent._y - 13 * Math.sin(v3.sprite._rotation * Math.PI / 180) - 12 * Math.cos(v3.sprite._rotation * Math.PI / 180); var v7 = _parent._x - 13 * Math.cos(v3.sprite._rotation * Math.PI / 180) - 12 * Math.sin(v3.sprite._rotation * Math.PI / 180); var v6 = _parent._y - 12 * Math.cos(v3.heading) - 13 * Math.sin(v3.sprite._rotation * Math.PI / 180) + 24 * Math.cos(v3.sprite._rotation * Math.PI / 180); if (v3.speed > 0) { ++_root.game_stage.vCarDTireNum; _root.game_stage.tireTrack(v4, v5, v3, _root.game_stage.vCarDTireNum, _root.game_stage.tireholder); ++_root.game_stage.vCarDTireNum; if (_root.game_stage.vCarDTireNum > 665) { _root.game_stage.vCarDTireNum = 540; } _root.game_stage.tireTrack(v7, v6, v3, _root.game_stage.vCarDTireNum, _root.game_stage.tireholder); } } ++i; } }; } frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 1069 vCarD { } movieClip 1072 { } movieClip 1075 { } movieClip 1078 { } movieClip 1081 { } movieClip 1086 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1095 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 1104 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 1113 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 1122 { frame 1 { stop(); this.onEnterFrame = function () { var v3; i = 0; while (i < 9) { if (_parent._x == _root.game_stage.cars[i].sprite._x) { v3 = _root.game_stage.cars[i]; var v4 = _parent._x - 12 * Math.sin(v3.heading) - 13 * Math.cos(v3.sprite._rotation * Math.PI / 180) + 24 * Math.sin(v3.sprite._rotation * Math.PI / 180); var v5 = _parent._y - 13 * Math.sin(v3.sprite._rotation * Math.PI / 180) - 12 * Math.cos(v3.sprite._rotation * Math.PI / 180); var v7 = _parent._x - 13 * Math.cos(v3.sprite._rotation * Math.PI / 180) - 12 * Math.sin(v3.sprite._rotation * Math.PI / 180); var v6 = _parent._y - 12 * Math.cos(v3.heading) - 13 * Math.sin(v3.sprite._rotation * Math.PI / 180) + 24 * Math.cos(v3.sprite._rotation * Math.PI / 180); if (v3.speed > 0) { ++_root.game_stage.vCarCTireNum; _root.game_stage.tireTrack(v4, v5, v3, _root.game_stage.vCarCTireNum, _root.game_stage.tireholder); ++_root.game_stage.vCarCTireNum; if (_root.game_stage.vCarCTireNum > 535) { _root.game_stage.vCarCTireNum = 410; } _root.game_stage.tireTrack(v7, v6, v3, _root.game_stage.vCarCTireNum, _root.game_stage.tireholder); } } ++i; } }; } frame 1 { stop(); } frame 2 { stop(); } frame 3 { function doTrail(container, targetX, targetY, type) { var v6 = flash.display.BitmapData.loadBitmap(currentBitmap); var v4 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v5 = v4.createEmptyMovieClip('internal_holder1', v4.getNextHighestDepth()); v5._x = -v6.width / 16; v5._y = -v6.height / 16; v4._rotation = -_parent._rotation; v5.attachBitmap(v6, v5.getNextHighestDepth()); v4._x = targetX; v4._y = targetY; v5._width = 20; v5._height = 20; var v7 = random(50) + 50; v4._xscale = v7; v4._yscale = v7; v4.speed = 21; v4.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } stop(); var currentBitmap = 'smoke_clear.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); _parent.onEnterFrame = function () {}; } frame 4 { stop(); } frame 5 { function doTrail(container, targetX, targetY, type) { var v5 = flash.display.BitmapData.loadBitmap(currentBitmap); var v3 = container.createEmptyMovieClip('main_holder1' + container.getNextHighestDepth(), container.getNextHighestDepth()); var v4 = v3.createEmptyMovieClip('internal_holder1', v3.getNextHighestDepth()); v4._x = -v5.width / 16; v4._y = -v5.height / 16; v4.attachBitmap(v5, v4.getNextHighestDepth()); v3._x = targetX + random(4) - 8; v3._y = targetY + random(4) - 8; v4._width = 20; v4._height = 20; var v6 = random(50) + 50; v3._xscale = v6; v3._yscale = v6; v3.speed = 21; v3.onEnterFrame = function () { this._x -= _root.game_stage.pCar.velocityX; this._y -= _root.game_stage.pCar.velocityY; this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speed; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } stop(); var currentBitmap = 'smoke_black.png'; var myName = _parent._name; var num = parseInt(myName.charAt(myName.length - 1)); if (!_parent.blackSmoke) { _parent.blackSmoke = true; delete _parent.onEnterFrame; _parent.onEnterFrame = function () {}; } var bitmapsArray; var particleBitmapsArray; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; createExplosion(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 10, 15, 200, 3, 5); createParticles(_parent._x + 40 * Math.cos(_parent._rotation * Math.PI / 180), _parent._y + 40 * Math.sin(_parent._rotation * Math.PI / 180), _root, 3, 100, 50, 5, 5); } } movieClip 1123 vCarC { } movieClip 1124 carHolder { } movieClip 1126 { } movieClip 1128 { } movieClip 1131 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1144 { } movieClip 1145 { frame 31 { if (_root.muted == false) { _root.firstBeep.start(); } } frame 61 { if (_root.muted == false) { _root.firstBeep.start(); } } frame 91 { if (_root.muted == false) { _root.firstBeep.start(); } } frame 121 { _root.greenLight = true; } frame 121 { if (_root.muted == false) { _root.secondBeep.start(); } } frame 165 { stop(); } } movieClip 1151 { } movieClip 1169 { } movieClip 1170 { } movieClip 1222 { } button 1224 { on (release) { _root.game_stage.gotoAndStop('selectMusic'); } } movieClip 1225 { frame 1 { stop(); var levelCount = 1; var maxFrontHealth; var maxBackHealth; var maxLeftHealth; var maxRightHealth; var newMass = undefined; var newSpeedMax = undefined; var newAcceleration = undefined; var newReverseSpeed = undefined; var newFrontHealth = undefined; var newBackHealth = undefined; var newRightHealth = undefined; var newLeftHealth = undefined; var newFrontShield = undefined; var newBackShield = undefined; var newLeftShield = undefined; var newRightShield = undefined; var arenaCarCapacity = 4; var levelMultiplier = 1; var nextLevel = false; var massCount = 0; var speedCount = 0; var accelCount = 0; var revCount = 0; var fShieldCount = 0; var bShieldCount = 0; var lShieldCount = 0; var rShieldCount = 0; var carValue = 10000; _parent.success._visible = false; upgradeCar = new CarPlayer2(); } frame 2 { stop(); _root.noListen._visible = true; _root.radioBg._visible = true; _root.station._visible = true; _root.Classical._visible = true; _root.Ambient._visible = true; _root.Dance._visible = true; _root.Drumnbass._visible = true; _root.House._visible = true; _root.Industrial._visible = true; _root.Newwave._visible = true; _root.Techno._visible = true; _root.Trance._visible = true; _root.Videogame._visible = true; _root.Rnb._visible = true; _root.Britpop._visible = true; _root.Classicrock._visible = true; _root.Generalrock._visible = true; _root.Grunge._visible = true; _root.Heavymetal._visible = true; _root.Indie._visible = true; _root.Pop._visible = true; _root.Punk._visible = true; _root.Funk._visible = true; _root.Goth._visible = true; _root.Latin._visible = true; _root.Misc._visible = true; _root.Jazz._visible = true; _root.Ska._visible = true; _root.Bluegrass._visible = true; _root.Blues._visible = true; _root.Country._visible = true; _root.Hiphopold._visible = true; _root.Hiphopnew._visible = true; _root.station.onPress = function () { _root.game_stage.gotoAndStop('play'); _root.loadXml(); _root.startSong.stop('startSong'); _root.close._visible = false; _root.darktop._visible = false; _root.topText._visible = false; _root.topText2._visible = false; _root.historyOnOff = 'On'; _root.favOnOff = 'Off'; _root.artistHomepage._visible = true; _root.prev._visible = true; _root.pause._visible = true; _root.playnow._visible = true; _root.nextMovie._visible = true; _root.station._visible = true; _root.download._visible = true; _root.groove._visible = true; _root.slider._visible = true; _root.grooveBg._visible = true; _root.trackInfo._visible = true; _root.trackInfoBg._visible = true; _root.radioBg._visible = false; _root.myFavorites._visible = false; _root.station._visible = false; _root.myHistory._visible = true; _root.Classical._visible = false; _root.Ambient._visible = false; _root.Dance._visible = false; _root.Drumnbass._visible = false; _root.House._visible = false; _root.Industrial._visible = false; _root.Newwave._visible = false; _root.Techno._visible = false; _root.Trance._visible = false; _root.Rnb._visible = false; _root.Videogame._visible = false; _root.Britpop._visible = false; _root.Classicrock._visible = false; _root.Generalrock._visible = false; _root.Grunge._visible = false; _root.Heavymetal._visible = false; _root.Indie._visible = false; _root.Pop._visible = false; _root.Punk._visible = false; _root.Funk._visible = false; _root.Goth._visible = false; _root.Latin._visible = false; _root.Misc._visible = false; _root.Jazz._visible = false; _root.Ska._visible = false; _root.Bluegrass._visible = false; _root.Blues._visible = false; _root.Country._visible = false; _root.Hiphopold._visible = false; _root.Hiphopnew._visible = false; _root.trackInfo._visible = true; _root.noListen._visible = false; }; _root.noListen.onPress = function () { _root.game_stage.gotoAndStop('play'); _root.noListen._visible = false; _root.close._visible = false; _root.darktop._visible = false; _root.topText._visible = false; _root.topText2._visible = false; _root.historyOnOff = 'On'; _root.favOnOff = 'Off'; _root.artistHomepage._visible = true; _root.prev._visible = true; _root.pause._visible = true; _root.playnow._visible = true; _root.nextMovie._visible = true; _root.station._visible = true; _root.download._visible = true; _root.groove._visible = true; _root.slider._visible = true; _root.grooveBg._visible = true; _root.trackInfo._visible = true; _root.trackInfoBg._visible = true; _root.radioBg._visible = false; _root.myFavorites._visible = false; _root.station._visible = false; _root.myHistory._visible = true; _root.Classical._visible = false; _root.Ambient._visible = false; _root.Dance._visible = false; _root.Drumnbass._visible = false; _root.House._visible = false; _root.Industrial._visible = false; _root.Newwave._visible = false; _root.Techno._visible = false; _root.Trance._visible = false; _root.Rnb._visible = false; _root.Videogame._visible = false; _root.Britpop._visible = false; _root.Classicrock._visible = false; _root.Generalrock._visible = false; _root.Grunge._visible = false; _root.Heavymetal._visible = false; _root.Indie._visible = false; _root.Pop._visible = false; _root.Punk._visible = false; _root.Funk._visible = false; _root.Goth._visible = false; _root.Latin._visible = false; _root.Misc._visible = false; _root.Jazz._visible = false; _root.Ska._visible = false; _root.Bluegrass._visible = false; _root.Blues._visible = false; _root.Country._visible = false; _root.Hiphopold._visible = false; _root.Hiphopnew._visible = false; _root.trackInfo._visible = true; }; } frame 3 { _root.crowdBg.setVolume(40); } frame 3 { function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) { var v7 = 0; while (v7 < explosionParticleAmount) { var v8 = bitmapsArray[random(bitmapsArray.length)]; var v4 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v4.width / 2; v3._y = -v4.height / 2; v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never'); v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2; v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2; var v6 = random(particleSize); v2._xscale = v6; v2._yscale = v6; v2.speed = random(speed) + speed; v2.speedAlpha = random(speedAlpha) + speedAlpha; v2.onEnterFrame = function () { this._xscale += this.speed; this._yscale += this.speed; this._alpha -= this.speedAlpha; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v7; } } function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) { var v7 = 0; while (v7 < tempParticle_mcAmount) { var v8 = particleBitmapsArray[random(particleBitmapsArray.length)]; var v5 = flash.display.BitmapData.loadBitmap(v8); var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth()); var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth()); v3._x = -v5.width / 2; v3._y = -v5.height / 2; v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never'); v2._x = targetX; v2._y = targetY; v2._rotation = random(360); v2._alpha = random(50) + 50; v2._xscale = particleSize; v2._yscale = particleSize; v2.boundyLeft = target._x - tempParticle_mcRange; v2.boundyTop = target._y - tempParticle_mcRange; v2.boundyRight = target._x + tempParticle_mcRange; v2.boundyBottom = target._y + tempParticle_mcRange; v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed); v2.speedX *= tempParticle_mcMaxSpeed; v2.speedY *= tempParticle_mcMaxSpeed; v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed; v2.onEnterFrame = function () { this._alpha -= this.fadeSpeed; this._x += this.speedX; this._y += this.speedY; if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) { this.removeMovieClip(); } }; ++v7; } } function addSparkles(_targetX, _targetY, _sparkNumber, _distance, _sparkSize) { var v5 = 0; while (v5 < _sparkNumber) { var v2 = _root.game_stage.attachMovie('spark2', 'spark2_' + _root.game_stage.getNextHighestDepth(), _root.game_stage.getNextHighestDepth()); v2._x = _targetX + random(_distance) - _distance / 2; v2._y = _targetY + random(_distance) - _distance / 2; v2._x -= pCar.velocityX; v2._y -= pCar.velocityY; var v3 = random(_sparkSize) + _sparkSize / 4; v2._xscale = v3; v2._yscale = v3; v2._rotation = random(359); v2._alpha = random(sparkAlpha) + sparkAlpha / 4; ++v5; } } function doDirt(targetX, targetY, car) { var v3 = _root.dirt.duplicateMovieClip('dirt' + dirtNumber, _root.getNextHighestDepth()); v3._x = targetX; v3._y = targetY; v3._alpha = 50; v3._width = 1; v3._height = 1; var v4 = random(50) + 50; v3._xscale = v4; v3._yscale = v4; v3.speed = 20; ++dirtNumber; if (dirtNumber > 1000) { dirtNumber = 10; } v3.onEnterFrame = function () { this._x -= car.velocityX; this._y -= car.velocityY; this._xscale += 5; this._yscale += 5; this._alpha -= 5; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function tireTrack(xPos, yPos, car, tireNum, holder) { holder.createEmptyMovieClip('line' + tireNum, tireNum); holder['line' + tireNum].lineStyle(10, 9728308, 20); holder['line' + tireNum].lineTo(0, 1); holder['line' + tireNum]._x = xPos - _root.game_stage._x; holder['line' + tireNum]._y = yPos - _root.game_stage._y; holder['line' + tireNum].onEnterFrame = function () { this._alpha -= 5; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; } function playSpeedUp() { _root.topSpeed.stop('topSpeedFx'); if (_root.muted == false) { _root.speedUp.start(); _root.speedUp.setVolume(20); } } function drawVehicles() { var v1 = 0; while (v1 < carCount) { cars[v1].sprite._x = cars[v1].posX; cars[v1].sprite._y = cars[v1].posY; cars[v1].sprite._rotation = cars[v1].heading * RAD2DEG; ++v1; } pCar.sprite._x = pCar.posX; pCar.sprite._y = pCar.posY; pCar.sprite._rotation = pCar.heading * RAD2DEG; } function v1Elastic(m1, m2, v1, v2) { return ((m1 - m2) / (m1 + m2)) * v1 + (2 * m2 / (m1 + m2)) * v2; } function v2Elastic(m1, m2, v1, v2) { return (2 * m1 / (m1 + m2)) * v1 + ((m2 - m1) / (m1 + m2)) * v2; } function hitBoosterCheckP() { if (pCar.sprite.hitTest(boost1)) { if (ranBoosterType == 1) { pCar.speedMax = 2 * pCar.speedMax; pCar.acceleration = 2 * pCar.acceleration; pCar.sprite.glow_mc.gotoAndStop(ranBoosterType + 1); _parent.powerUpTxt.text = 'Wow... is it fast in here? Or is it just me?'; } if (ranBoosterType == 2) { pCar.mass = 2 * pCar.mass; pCar.sprite.glow_mc.gotoAndStop(ranBoosterType + 1); _parent.powerUpTxt.text = 'She\'s a BRICK... House...'; } if (ranBoosterType == 3) { pCar.shieldUnlimited = true; pCar.sprite.glow_mc.gotoAndStop(ranBoosterType + 1); _parent.powerUpTxt.text = 'You\'re invincible!!! Let \'em have it!'; } if (ranBoosterType == 4) { var v4 = Math.round(Math.random() * 25000); winAmount += v4; _root.warning._alpha = 100; _root.warningTxt = 'Chest contained ' + v4 + ' dollars!'; _root.warning.gotoAndPlay(1); _root.warning.onEnterFrame = function () { this._alpha -= 1; if (this._alpha <= 0) { delete this.onEnterFrame; } }; _parent.winAmountTxt.text = winAmount; _parent.powerUpTxt.text = 'What are you going to spend all this money on?!'; } if (ranBoosterType == 5) { pCar.tireGrip = 0.05; i = 0; while (i < arenaCarCapacity) { cars[i].tireGrip = 0.05; ++i; } _root.game_stage.stdm_mc.icerink._alpha = 0; _root.game_stage.stdm_mc.icerink._visible = true; _root.game_stage.stdm_mc.icerink.onEnterFrame = function () { this._alpha += 1; if (this._alpha >= 100) { this._alpha = 100; delete this.onEnterFrame; } }; _parent.powerUpTxt.text = 'Is it cold in here?'; } if (ranBoosterType == 6) { pCar.sprite.onEnterFrame = function () { pCar.sprite._xscale += 1; pCar.sprite._yscale += 1; if (pCar.sprite._xscale >= 200) { pCar.sprite._xscale = 200; delete this.onEnterFrame; } if (pCar.sprite._yscale >= 200) { pCar.sprite._yscale = 200; delete this.onEnterFrame; } }; pCar.frontX *= 2; pCar.frontY *= 2; pCar.backX *= 2; pCar.backY *= 2; pCar.frontSideX *= 2; pCar.frontSideY *= 2; pCar.backSideX *= 2; pCar.backSideY *= 2; pCar.frontSideX2 *= 2; pCar.frontSideY2 *= 2; pCar.backSideX2 *= 2; pCar.backSideY2 *= 2; pCar.frontSideX3 *= 2; pCar.frontSideY3 *= 2; pCar.backSideX3 *= 2; pCar.backSideY3 *= 2; pCar.mass *= 3; pCar.shieldUnlimited = true; _parent.powerUpTxt.text = 'You won\'t like me when I\'m angry!'; } if (ranBoosterType == 7) { createExplosion(400, 300, _root, 10, 15, 200, 3, 5); createParticles(400, 300, _root, 3, 100, 50, 5, 5); if (_root.muted == false) { _root.sBoom.start(); } pCar.healthFront = Math.round(pCar.healthFront * 0.75); pCar.healthBack = Math.round(pCar.healthBack * 0.75); pCar.healthLeft = Math.round(pCar.healthLeft * 0.75); pCar.healthRight = Math.round(pCar.healthRight * 0.75); _parent.powerUpTxt.text = 'That\'s gonna leave a mark!'; } if (ranBoosterType == 8) { pCar.speedMax /= 2; pCar.sprite.onEnterFrame = function () { pCar.sprite._xscale -= 1; pCar.sprite._yscale -= 1; if (pCar.sprite._xscale <= 50) { pCar.sprite._xscale = 50; delete this.onEnterFrame; } if (pCar.sprite._yscale <= 50) { pCar.sprite._yscale = 50; delete this.onEnterFrame; } }; pCar.frontX /= 2; pCar.frontY /= 2; pCar.backX /= 2; pCar.backY /= 2; pCar.frontSideX /= 2; pCar.frontSideY /= 2; pCar.backSideX /= 2; pCar.backSideY /= 2; pCar.frontSideX2 /= 2; pCar.frontSideY2 /= 2; pCar.backSideX2 /= 2; pCar.backSideY2 /= 2; pCar.frontSideX3 /= 2; pCar.frontSideY3 /= 2; pCar.backSideX3 /= 2; pCar.backSideY3 /= 2; pCar.mass /= 3; _parent.powerUpTxt.text = 'I\'d be extra careful if I were you!'; } boostedTimeP = setInterval(this, 'boostLifeP', 1000); boost1._x = undefined; boost1._y = undefined; removeMovieClip(boost1); removeMovieClip(boosterInMap); } var i = 0; while (i < carCount) { if (cars[i].destroyed == false && cars[i].sprite.hitTest(boost1)) { eBoosted = i; if (ranBoosterType == 1) { cars[eBoosted].speedMax = 2 * cars[eBoosted].speedMax; cars[eBoosted].acceleration = 2 * cars[eBoosted].acceleration; cars[eBoosted].sprite.glow_mcAI.gotoAndStop(ranBoosterType + 1); _parent.powerUpTxt.text = 'Shame on you - Be faster next time!'; } if (ranBoosterType == 2) { cars[eBoosted].mass = 2 * cars[eBoosted].mass; cars[eBoosted].sprite.glow_mcAI.gotoAndStop(ranBoosterType + 1); _parent.powerUpTxt.text = 'Ah, bonkers! Watch out for the charged up enemy!'; } if (ranBoosterType == 3) { cars[eBoosted].shieldUnlimited = true; cars[eBoosted].sprite.glow_mcAI.gotoAndStop(ranBoosterType + 1); _parent.powerUpTxt.text = 'No sense trying to kill this guy - he\'s invincible!'; } if (ranBoosterType == 4) { _parent.powerUpTxt.text = 'No cash for you this time - pay attention next time!'; } if (ranBoosterType == 5) { _root.game_stage.stdm_mc.icerink._alpha = 0; _root.game_stage.stdm_mc.icerink._visible = true; _root.game_stage.stdm_mc.icerink.onEnterFrame = function () { this._alpha += 1; if (this._alpha >= 100) { this._alpha = 100; delete this.onEnterFrame; } }; _parent.powerUpTxt.text = 'Slip and Slide!!'; pCar.tireGrip = 0.05; a = 0; while (a < arenaCarCapacity) { cars[a].tireGrip = 0.05; ++a; } } if (ranBoosterType == 6) { _parent.powerUpTxt.text = 'Wow, that\'s a big car...'; cars[eBoosted].sprite.onEnterFrame = function () { cars[eBoosted].sprite._xscale += 1; cars[eBoosted].sprite._yscale += 1; if (cars[eBoosted].sprite._xscale >= 200) { cars[eBoosted].sprite._xscale = 200; delete this.onEnterFrame; } if (cars[eBoosted].sprite._yscale >= 200) { cars[eBoosted].sprite._yscale = 200; delete this.onEnterFrame; } }; cars[eBoosted].frontX *= 2; cars[eBoosted].frontY *= 2; cars[eBoosted].backX *= 2; cars[eBoosted].backY *= 2; cars[eBoosted].frontSideX *= 2; cars[eBoosted].frontSideY *= 2; cars[eBoosted].backSideX *= 2; cars[eBoosted].backSideY *= 2; cars[eBoosted].frontSideX2 *= 2; cars[eBoosted].frontSideY2 *= 2; cars[eBoosted].backSideX2 *= 2; cars[eBoosted].backSideY2 *= 2; cars[eBoosted].frontSideX3 *= 2; cars[eBoosted].frontSideY3 *= 2; cars[eBoosted].backSideX3 *= 2; cars[eBoosted].backSideY3 *= 2; cars[eBoosted].mass *= 3; } if (ranBoosterType == 7) { _parent.powerUpTxt.text = 'Woops... He\'ll drive more carefully from now on!'; cars[eBoosted].healthFront = Math.round(cars[eBoosted].healthFront * 0.75); cars[eBoosted].healthBack = Math.round(cars[eBoosted].healthBack * 0.75); cars[eBoosted].healthLeft = Math.round(cars[eBoosted].healthLeft * 0.75); cars[eBoosted].healthRight = Math.round(cars[eBoosted].healthRight * 0.75); } if (ranBoosterType == 8) { cars[eBoosted].speedMax /= 2; cars[eBoosted].sprite.onEnterFrame = function () { cars[eBoosted].sprite._xscale -= 1; cars[eBoosted].sprite._yscale -= 1; if (cars[eBoosted].sprite._xscale <= 50) { cars[eBoosted].sprite._xscale = 50; delete this.onEnterFrame; } if (cars[eBoosted].sprite._yscale <= 50) { cars[eBoosted].sprite._yscale = 50; delete this.onEnterFrame; } }; cars[eBoosted].frontX /= 2; cars[eBoosted].frontY /= 2; cars[eBoosted].backX /= 2; cars[eBoosted].backY /= 2; cars[eBoosted].frontSideX /= 2; cars[eBoosted].frontSideY /= 2; cars[eBoosted].backSideX /= 2; cars[eBoosted].backSideY /= 2; cars[eBoosted].frontSideX2 /= 2; cars[eBoosted].frontSideY2 /= 2; cars[eBoosted].backSideX2 /= 2; cars[eBoosted].backSideY2 /= 2; cars[eBoosted].frontSideX3 /= 2; cars[eBoosted].frontSideY3 /= 2; cars[eBoosted].backSideX3 /= 2; cars[eBoosted].backSideY3 /= 2; cars[eBoosted].mass /= 3; _parent.powerUpTxt.text = 'Oh... how cute... CRUSH HIM!'; } boostedTimeAI = setInterval(this, 'boostLifeAI', 1000); boost1._x = undefined; boost1._y = undefined; removeMovieClip(boost1); removeMovieClip(boosterInMap); } ++i; } } function boostLifeP() { ++boostCountP; if (boostCountP == 9 || pMid.health2._alpha <= 0 || won == true) { boostCountP = 0; pCar.sprite.glow_mc.gotoAndStop(1); _parent.powerUpTxt.text = ''; if (ranBoosterType == 1) { pCar.speedMax /= 2; pCar.acceleration /= 2; } if (ranBoosterType == 2) { pCar.mass /= 2; } if (ranBoosterType == 3) { pCar.shieldUnlimited = false; } if (ranBoosterType == 5) { _root.game_stage.stdm_mc.icerink.onEnterFrame = function () { this._alpha -= 1; if (this._alpha <= 0) { this._alpha = 0; delete this.onEnterFrame; } }; pCar.tireGrip = 0.5; i = 0; while (i < arenaCarCapacity) { cars[i].tireGrip = 0.25; ++i; } } if (ranBoosterType == 6) { pCar.frontX /= 2; pCar.frontY /= 2; pCar.backX /= 2; pCar.backY /= 2; pCar.frontSideX /= 2; pCar.frontSideY /= 2; pCar.backSideX /= 2; pCar.backSideY /= 2; pCar.frontSideX2 /= 2; pCar.frontSideY2 /= 2; pCar.backSideX2 /= 2; pCar.backSideY2 /= 2; pCar.frontSideX3 /= 2; pCar.frontSideY3 /= 2; pCar.backSideX3 /= 2; pCar.backSideY3 /= 2; pCar.mass /= 3; pCar.shieldUnlimited = false; pCar.sprite.onEnterFrame = function () { pCar.sprite._xscale -= 1; pCar.sprite._yscale -= 1; if (pCar.sprite._xscale <= 100) { pCar.sprite._xscale = 100; delete this.onEnterFrame; } if (pCar.sprite._yscale <= 100) { pCar.sprite._yscale = 100; delete this.onEnterFrame; } }; } if (ranBoosterType == 8) { pCar.speedMax *= 2; pCar.sprite.onEnterFrame = function () { pCar.sprite._xscale += 1; pCar.sprite._yscale += 1; if (pCar.sprite._xscale >= 100) { pCar.sprite._xscale = 100; delete this.onEnterFrame; } if (pCar.sprite._yscale >= 100) { pCar.sprite._yscale = 100; delete this.onEnterFrame; } }; pCar.frontX *= 2; pCar.frontY *= 2; pCar.backX *= 2; pCar.backY *= 2; pCar.frontSideX *= 2; pCar.frontSideY *= 2; pCar.backSideX *= 2; pCar.backSideY *= 2; pCar.frontSideX2 *= 2; pCar.frontSideY2 *= 2; pCar.backSideX2 *= 2; pCar.backSideY2 *= 2; pCar.frontSideX3 *= 2; pCar.frontSideY3 *= 2; pCar.backSideX3 *= 2; pCar.backSideY3 *= 2; pCar.mass *= 3; _parent.powerUpTxt.text = 'Ahh... That\'s better...'; } clearInterval(boostedTimeP); } } function boostLifeAI() { ++boostCountAI; if (boostCountAI == 9 || pMid.health2._alpha <= 0 || won == true) { boostCountAI = 0; cars[eBoosted].sprite.glow_mcAI.gotoAndStop(1); _parent.powerUpTxt.text = ''; if (ranBoosterType == 1) { cars[eBoosted].speedMax /= 2; cars[eBoosted].acceleration /= 2; } if (ranBoosterType == 2) { cars[eBoosted].mass /= 2; } if (ranBoosterType == 3) { cars[eBoosted].shieldUnlimited = false; } if (ranBoosterType == 5) { _root.game_stage.stdm_mc.icerink.onEnterFrame = function () { this._alpha -= 1; if (this._alpha <= 0) { this._alpha = 0; delete this.onEnterFrame; } }; pCar.tireGrip = 0.5; i = 0; while (i < arenaCarCapacity) { cars[i].tireGrip = 0.25; ++i; } } if (ranBoosterType == 6) { cars[eBoosted].sprite.onEnterFrame = function () { cars[eBoosted].sprite._xscale -= 1; cars[eBoosted].sprite._yscale -= 1; if (cars[eBoosted].sprite._xscale <= 100) { cars[eBoosted].sprite._xscale = 100; delete this.onEnterFrame; } if (cars[eBoosted].sprite._yscale <= 100) { cars[eBoosted].sprite._yscale = 100; delete this.onEnterFrame; } }; cars[eBoosted].frontX /= 2; cars[eBoosted].frontY /= 2; cars[eBoosted].backX /= 2; cars[eBoosted].backY /= 2; cars[eBoosted].frontSideX /= 2; cars[eBoosted].frontSideY /= 2; cars[eBoosted].backSideX /= 2; cars[eBoosted].backSideY /= 2; cars[eBoosted].frontSideX2 /= 2; cars[eBoosted].frontSideY2 /= 2; cars[eBoosted].backSideX2 /= 2; cars[eBoosted].backSideY2 /= 2; cars[eBoosted].frontSideX3 /= 2; cars[eBoosted].frontSideY3 /= 2; cars[eBoosted].backSideX3 /= 2; cars[eBoosted].backSideY3 /= 2; cars[eBoosted].mass /= 3; } if (ranBoosterType == 8) { cars[eBoosted].speedMax *= 2; pCar.sprite.onEnterFrame = function () { pCar.sprite._xscale += 1; pCar.sprite._yscale += 1; if (pCar.sprite._xscale >= 100) { pCar.sprite._xscale = 100; delete this.onEnterFrame; } if (pCar.sprite._yscale >= 100) { pCar.sprite._yscale = 100; delete this.onEnterFrame; } }; cars[eBoosted].frontX *= 2; cars[eBoosted].frontY *= 2; cars[eBoosted].backX *= 2; cars[eBoosted].backY *= 2; cars[eBoosted].frontSideX *= 2; cars[eBoosted].frontSideY *= 2; cars[eBoosted].backSideX *= 2; cars[eBoosted].backSideY *= 2; cars[eBoosted].frontSideX2 *= 2; cars[eBoosted].frontSideY2 *= 2; cars[eBoosted].backSideX2 *= 2; cars[eBoosted].backSideY2 *= 2; cars[eBoosted].frontSideX3 *= 2; cars[eBoosted].frontSideY3 *= 2; cars[eBoosted].backSideX3 *= 2; cars[eBoosted].backSideY3 *= 2; cars[eBoosted].mass *= 3; } clearInterval(boostedTimeAI); } } function collideCheckP(checkX, checkY) { var v4; var v5; var v11; var v10; var v7; var v6; var v14 = 0; var v15 = 0; var v17 = false; if (carHolder.hitTest(checkX, checkY, true)) { v4 = 0; while (v4 < carCount) { if (cars[v4].sprite.hitTest(checkX, checkY, true)) { v5 = getDamage(pCar, cars[v4]); if (v5 >= 10) { var v16 = Math.random() * 100; if (v16 <= 5) { v5 = 100; v17 = true; _root.critical._x = 400; _root.critical._y = 300; _root.critical._alpha = 100; _root.critical.onEnterFrame = function () { this._y -= 1; this._alpha -= 1; if (this._alpha <= 0) { delete this.onEnterFrame; } }; } } if (v5 < 9) { if (_root.muted == false) { _root.sBump.start(); _root.sBump.setVolume(v5); addSparkles(checkX - _root.game_stage._x, checkY - _root.game_stage._y, sparkNumber, sparkDistance, sparkSize); } } else { if (_root.muted == false) { _root.sBoom.start(); _root.sBoom.setVolume(v5 * 2); } addSparkles(checkX - _root.game_stage._x, checkY - _root.game_stage._y, sparkNumber, sparkDistance, sparkSize); } if (cars[v4].speedMax > 0 && (Key.isDown(37) || Key.isDown(38) || Key.isDown(39) || Key.isDown(40))) { if (v5 > 8 + levelCount / 2) { var v13 = _root.game_stage.gameMoney.duplicateMovieClip('gameMoney_' + v14, _root.game_stage.getNextHighestDepth()); v13.gameMoneyTxt.text = '+$' + Math.round(v5 * 40); v13._x = checkX - _root.game_stage._x; v13._y = checkY - _root.game_stage._y - 45; v13.onEnterFrame = function () { this._xscale += 1; this._yscale += 1; this._alpha -= 1; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v14; if (v14 >= 20) { v14 = 0; } winAmount = Math.round(winAmount + v5 * 40); _parent.winAmountTxt.text = winAmount; } if (v5 > 0) { var v12 = _root.game_stage.damageAmt.duplicateMovieClip('damage_' + v15, _root.game_stage.getNextHighestDepth()); v12.dmgTxt.text = '-' + Math.round(v5); v12._x = checkX - _root.game_stage._x; v12._y = checkY - _root.game_stage._y; v12.onEnterFrame = function () { this._xscale += 1; this._yscale += 1; this._alpha -= 10; if (this._alpha <= 0) { delete this.onEnterFrame; removeMovieClip(this); } }; ++v15; if (v15 >= 20) { v15 = 0; } } } if (!isNaN(v5)) { pCarIsHit = false; if (cars[v4].isAlive) { panelHit(checkX, checkY, cars[v4], v5, 'me'); } } v11 = v1Elastic(pCar.mass, cars[v4].mass, pCar.velocityX, cars[v4].velocityX); v10 = v1Elastic(pCar.mass, cars[v4].mass, pCar.velocityY, cars[v4].velocityY); v7 = v2Elastic(pCar.mass, cars[v4].mass, pCar.velocityX, cars[v4].velocityX); v6 = v2Elastic(pCar.mass, cars[v4].mass, pCar.velocityY, cars[v4].velocityY); if (v11 < pCar.speedMaxReverse / Math.SQRT2) { v11 = pCar.speedMaxReverse / Math.SQRT2; } else { if (v11 > pCar.speedMax / Math.SQRT2) { v11 = pCar.speedMax / Math.SQRT2; } } if (v10 < pCar.speedMaxReverse / Math.SQRT2) { v10 = pCar.speedMaxReverse / Math.SQRT2; } else { if (v10 > pCar.speedMax / Math.SQRT2) { v10 = pCar.speedMax / Math.SQRT2; } } if (v7 < pCar.speedMaxReverse / Math.SQRT2) { v7 = pCar.speedMaxReverse / Math.SQRT2; } else { if (v7 > pCar.speedMax / Math.SQRT2) { v7 = pCar.speedMax / Math.SQRT2; } } if (v6 < pCar.speedMaxReverse / Math.SQRT2) { v6 = pCar.speedMaxReverse / Math.SQRT2; } else { if (v6 > pCar.speedMax / Math.SQRT2) { v6 = pCar.speedMax / Math.SQRT2; } } pCar.velocityX = -v11; pCar.velocityY = -v10; if (v17 == false) { cars[v4].velocityX = v7; cars[v4].velocityY = v6; } else { cars[v4].velocityX = v7 * 3; cars[v4].velocityY = v6 * 3; } repel(pCar, cars[v4]); break; } ++v4; } } } function collideCheckAI(i, checkX, checkY) { var v1; var v6 = 0; var v5 = 0; var v4 = 0; var v3 = 0; if (pCar.sprite.hitTest(checkX, checkY, true)) { if (cars[i].isAlive) { pCarIsHit = true; panelHit2(checkX, checkY, pCar, getDamage(cars[i], pCar)); } v6 = v1Elastic(cars[i].mass, pCar.mass, cars[i].velocityX, pCar.velocityX); v5 = v1Elastic(cars[i].mass, pCar.mass, cars[i].velocityY, pCar.velocityY); v4 = v2Elastic(cars[i].mass, pCar.mass, cars[i].velocityX, pCar.velocityX); v3 = v2Elastic(cars[i].mass, pCar.mass, cars[i].velocityY, pCar.velocityY); if (v5 < pCar.speedMaxReverse / Math.SQRT2) { v5 = pCar.speedMaxReverse / Math.SQRT2; } else { if (v5 > pCar.speedMax / Math.SQRT2) { v5 = pCar.speedMax / Math.SQRT2; } } if (v4 < pCar.speedMaxReverse / Math.SQRT2) { v4 = pCar.speedMaxReverse / Math.SQRT2; } else { if (v4 > pCar.speedMax / Math.SQRT2) { v4 = pCar.speedMax / Math.SQRT2; } } if (v3 < pCar.speedMaxReverse / Math.SQRT2) { v3 = pCar.speedMaxReverse / Math.SQRT2; } else { if (v3 > pCar.speedMax / Math.SQRT2) { v3 = pCar.speedMax / Math.SQRT2; } } if (v6 < pCar.speedMaxReverse / Math.SQRT2) { v6 = pCar.speedMaxReverse / Math.SQRT2; } else { if (v6 > pCar.speedMax / Math.SQRT2) { v6 = pCar.speedMax / Math.SQRT2; } } cars[i].velocityX = v6; cars[i].velocityY = v5; pCar.velocityX = v4; pCar.velocityY = v3; repel(pCar, cars[i]); if (cars[i].cState == 0) { cars[i].changeCState(); } } else { v1 = 0; while (v1 < carCount) { if (i != v1) { if (cars[v1].sprite.hitTest(checkX, checkY, true)) { if (cars[i].isAlive) { pCarIsHit = false; panelHit(checkX, checkY, cars[v1], getDamage(cars[i], cars[v1]) / levelCount, 'enemy'); } v6 = v1Elastic(cars[i].mass, cars[v1].mass, cars[i].velocityX, cars[v1].velocityX); v5 = v1Elastic(cars[i].mass, cars[v1].mass, cars[i].velocityY, cars[v1].velocityY); v4 = v2Elastic(cars[i].mass, cars[v1].mass, cars[i].velocityX, cars[v1].velocityX); v3 = v2Elastic(cars[i].mass, cars[v1].mass, cars[i].velocityY, cars[v1].velocityY); cars[i].velocityX = v6; cars[i].velocityY = v5; cars[v1].velocityX = v4; cars[v1].velocityY = v3; repel(cars[i], cars[v1]); cars[i].changeCState(); break; } } ++v1; } } } function repel(c1, c2) { if (c1.posX < c2.posX) { c1.posX -= repelStrength; c2.posX += repelStrength; } else { if (c1.posX > c2.posX) { c1.posX += repelStrength; c2.posX -= repelStrength; } } if (c1.posY < c2.posY) { c1.posY -= repelStrength; c2.posY += repelStrength; } else { if (c1.posY > c2.posY) { c1.posY += repelStrength; c2.posY -= repelStrength; } } } function centerHome(c) { if (c.posX < ellipseX) { c.posX += attractStrength; } else { if (c.posX > ellipseX) { c.posX -= attractStrength; } } if (c.posY < ellipseY) { c.posY += attractStrength; } else { if (c.posY > ellipseY) { c.posY -= attractStrength; } } } function getAngle(x1, x2, y1, y2) { var v2 = x1 - x2; var v3 = y1 - y2; var v1; if (v2 > 0) { v1 = Math.atan(v3 / v2); } else { if (v2 < 0) { v1 = 3.141593 + Math.atan(v3 / v2); } else { if (v3 > 0) { v1 = 1.570796; } else { if (v3 < 0) { v1 = 4.712389; } else { v1 = 0; } } } } if (v1 < 0) { v1 += PI2; } return v1; } function gotoUpgradePage() { --countDown; if (countDown <= 0) { pCar.velocityX = 0; pCar.velocityY = 0; _root.greenLight = false; _parent.success._visible = false; _parent.failure._visible = false; _root.groove._visible = false; _root.slider._visible = false; _root.grooveBg._visible = false; _parent.dollar._visible = false; _parent.dmgIndicator._visible = false; nextLevel = false; _root.idle.stop('idleloop'); this.gotoAndStop('upgradePage'); varHealth._xscale = 100; varHealth._yscale = 100; countDown = 5; clearInterval(countDownInterval); } } function gameOver() { --countDown; if (countDown <= 0) { _root.crowdBg.stop(); _root.greenLight = false; _parent.carHolder._visible = true; _parent.dashboard._visible = false; _parent.dollar._visible = false; _parent.dmgIndicator._visible = false; _parent.myLogo._visible = false; _parent.bottomDark._visible = false; varHealth._visible = false; _parent.winAmountTxt._visible = false; _parent.playPauseSound._visible = false; _root.container._visible = false; pCar.sprite.removeMovieClip(); pCar.healthFront = pCar.healthFrontMax; pCar.healthLeft = pCar.healthLeftMax; pCar.healthRight = pCar.healthRightMax; pCar.healthBack = pCar.healthBackMax; pCar.sprite.panelFront.gotoAndStop('dmg0'); pCar.sprite.panelLeft.gotoAndStop('dmg0'); pCar.sprite.panelRight.gotoAndStop('dmg0'); pCar.sprite.panelBack.gotoAndStop('dmg0'); pFront.health1._alpha = 100; pLeft.health1._alpha = 100; pRight.health1._alpha = 100; pBack.health1._alpha = 100; pMid.health1._alpha = 100; pFront.health2._alpha = 100; pLeft.health2._alpha = 100; pRight.health2._alpha = 100; pBack.health2._alpha = 100; pMid.health2._alpha = 100; pCar.sprite.panelMiddle._alpha = 0; pCar.heading = Math.random() * PI2; pCar.velocityX = 0; pCar.velocityY = 0; removeMovieClip(_parent.container); nextLevel = false; maxFrontHealth = undefined; maxBackHealth = undefined; maxLeftHealth = undefined; maxRightHealth = undefined; newMass = undefined; newSpeedMax = undefined; newAcceleration = undefined; newReverseSpeed = undefined; newFrontHealth = undefined; newBackHealth = undefined; newRightHealth = undefined; newLeftHealth = undefined; newFrontShield = undefined; newBackShield = undefined; newLeftShield = undefined; newRightShield = undefined; levelMultiplier = 1; massCount = 0; speedCount = 0; accelCount = 0; revCount = 0; fShieldCount = 0; bShieldCount = 0; lShieldCount = 0; rShieldCount = 0; carValue = 10000; clearInterval(boostInterval); looseText.text = 'Game Over'; _parent.powerUpTxt.text = ''; i = 0; while (i < arenaCarCapacity) { cars[i].sprite.removeMovieClip(); ++i; } _parent.success._visible = false; _parent.failure._visible = false; this.gotoAndStop('gameover'); loseTxt2.text = 'Well, you lost. . . but it\'s not the end of the world - you made it all the way to level ' + levelCount + '... Think you can do better?'; countDown = 5; clearInterval(countDownInterval); levelCount = 1; arenaCarCapacity = 4; } } function panelHit2(xPos, yPos, cClip, dmg) { var v6 = 0; var v5 = 0; var v10; var v11; if (cClip.shieldUnlimited) { dmg = 0; } cClip.health = cClip.healthFrontMax + cClip.healthLeftMax + cClip.healthRightMax + cClip.healthBackMax; v10 = (cClip.healthFront + cClip.healthBack + cClip.healthLeft + cClip.healthRight) / cClip.health; cClip.sprite.panelMiddle.pCarMid._alpha = v10 * 100; if (cClip.sprite.hitFront.hitTest(xPos, yPos, true)) { if (dmg > cClip.shieldFront) { v6 = dmg - cClip.shieldFront; cClip.healthFront -= v6; if (cClip.healthFront >= cClip.healthFrontMax * 0.75) { cClip.sprite.panelFront.gotoAndStop('dmg0'); } else { if (cClip.healthFront >= cClip.healthFrontMax * 0.5) { cClip.sprite.panelFront.gotoAndStop('dmg1'); } else { if (cClip.healthFront >= cClip.healthFrontMax * 0.25) { cClip.sprite.panelFront.gotoAndStop('dmg2'); if (fw1 == false) { _root.warning._alpha = 100; _root.warningTxt = 'Careful - The front of your car is getting damaged...'; _root.warning.gotoAndPlay(1); _root.warning.onEnterFrame = function () { this._alpha -= 1; if (this._alpha <= 0) { delete this.onEnterFrame; } }; fw1 = true; } } else { if (cClip.healthFront > 0) { cClip.sprite.panelFront.gotoAndStop('dmg3'); if (fw3 == false) { _root.warning._alpha = 100; _parent.warningTxt = 'Warning - The front of your car is almost totaled...'; _parent.warning.gotoAndPlay(1); _root.warning.onEnterFrame = function () { this._alpha -= 1; if (this._alpha <= 0) { delete this.onEnterFrame; } }; fw3 = true; } } else { if (cClip.healthFront <= 0 && cClip.destroyed == false) { cClip.healthFront = 0; cClip.healthBack = 0; cClip.healthLeft = 0; cClip.healthRight = 0; cClip.sprite.panelFront.gotoAndStop('dmg4'); cClip.sprite.panelBack.gotoAndStop('dmg4'); cClip.sprite.panelLeft.gotoAndStop('dmg4'); cClip.sprite.panelRight.gotoAndStop('dmg4'); cClip.sprite.panelMiddle.gotoAndStop('dead'); cClip.velocityX = 0; cClip.velocityY = 0; cClip.speedMomentum = 0; cClip.sprite.panelMiddle._alpha = 100; cClip.speed = 0; cClip.turnMax = 0; cClip.acceleration = 0; if (cClip.speedMax != 0) { cClip.destroyed = true; cClip.speedMax = 0; cClip.carSpeedMin = 0; cClip.carSpeedMax = 0; cClip.speed = 0; cClip.turnMax = 0; cClip.friction = 10; cClip.acceleration = 0; } } } } } } if (pCarIsHit) { v5 = Math.floor(100 * pCar.healthFront / pCar.healthFrontMax); if (v5 > 50) { pFront.health1._alpha = 2 * (v5 - 50); pFront.health2._alpha = 100; } else { pFront.health1._alpha = 0; pFront.health2._alpha = 2 * v5; } } } } else { if (cClip.sprite.hitLeft.hitTest(xPos, yPos, true)) { if (dmg > cClip.shieldLeft) { v6 = dmg - cClip.shieldLeft; cClip.healthLeft -= v6; if (cClip.healthLeft >= cClip.healthLeftMax * 0.75) { cClip.sprite.panelLeft.gotoAndStop('dmg0'); } else { if (cClip.healthLeft >= cClip.healthLeftMax * 0.5) { cClip.sprite.panelLeft.gotoAndStop('dmg1'); } else { if (cClip.healthLeft >= cClip.healthLeftMax * 0.25) { cClip.sprite.panelLeft.gotoAndStop('dmg2'); if (lw1 == false) { _root.warning._alpha = 100; _parent.warningTxt = 'Careful - The left side of your car is getting damaged...'; _parent.warning.gotoAndPlay(1); _root.warning.onEnterFrame = function () { this._alpha -= 1; if (this._alpha <= 0) { delete this.onEnterFrame; } }; lw1 = true; } } else { if (cClip.healthLeft > 0) { cClip.sprite.panelLeft.gotoAndStop('dmg3'); if (lw2 == false) { _root.warning._alpha = 100; _parent.warningTxt = 'Warning - The left side of your car is almost dead...'; _parent.warning.gotoAndPlay(1); _root.warning.onEnterFrame = function () { this._alpha -= 1; if (this._alpha <= 0) { delete this.onEnterFrame; } }; lw2 = true; } } else { if (cClip.healthLeft <= 0 && cClip.destroyed == false) { cClip.healthFront = 0; cClip.healthBack = 0; cClip.healthLeft = 0; cClip.healthRight = 0; cClip.sprite.panelFront.gotoAndStop('dmg4'); cClip.sprite.panelBack.gotoAndStop('dmg4'); cClip.sprite.panelLeft.gotoAndStop('dmg4'); cClip.sprite.panelRight.gotoAndStop('dmg4'); cClip.sprite.panelMiddle.gotoAndStop('dead'); cClip.velocityX = 0; cClip.velocityY = 0; cClip.speedMomentum = 0; cClip.sprite.panelMiddle._alpha = 100; cClip.speed = 0; cClip.turnMax = 0; cClip.acceleration = 0; if (cClip.speedMax != 0) { cClip.destroyed = true; cClip.speedMax = 0; cClip.carSpeedMin = 0; cClip.carSpeedMax = 0; cClip.speed = 0; cClip.turnMax = 0; cClip.friction = 10; cClip.acceleration = 0; } } } } } } if (pCarIsHit) { v5 = Math.floor(100 * pCar.healthLeft / pCar.healthLeftMax); if (v5 > 50) { pLeft.health1._alpha = 2 * (v5 - 50); pLeft.health2._alpha = 100; } else { pLeft.health1._alpha = 0; pLeft.health2._alpha = 2 * v5; } } } } else { if (cClip.sprite.hitRight.hitTest(xPos, yPos, true)) { if (dmg > cClip.shieldRight) { v6 = dmg - cClip.shieldRight; cClip.healthRight -= v6; if (cClip.healthRight >= cClip.healthRightMax * 0.75) { cClip.sprite.panelRight.gotoAndStop('dmg0'); } else { if (cClip.healthRight >= cClip.healthRightMax * 0.5) { cClip.sprite.panelRight.gotoAndStop('dmg1'); } else { if (cClip.healthRight >= cClip.healthRightMax * 0.25) { cClip.sprite.panelRight.gotoAndStop('dmg2'); if (rw1 == false) { _root.warning._alpha = 100; _parent.warningTxt = 'Careful - The right side of your car is getting damaged...'; _parent.warning.gotoAndPlay(1); _root.warning.onEnterFrame = function () { this._alpha -= 1; if (this._alpha <= 0) { delete this.onEnterFrame; } }; rw1 = true; } } else { if (cClip.healthRight > 0) { cClip.sprite.panelRight.gotoAndStop('dmg3'); if (rw2 == false) { _root.warning._alpha = 100; _parent.warningTxt = 'Warning - The right side of your car is almost dead...'; _parent.warning.gotoAndPlay(1); _root.warning.onEnterFrame = function () { this._alpha -= 1; if (this._alpha <= 0) { delete this.onEnterFrame; } }; rw2 = true; } } else { if (cClip.healthRight <= 0 && cClip.destroyed == false) { cClip.healthFront = 0; cClip.healthBack = 0; cClip.healthLeft = 0; cClip.healthRight = 0; cClip.sprite.panelFront.gotoAndStop('dmg4'); cClip.sprite.panelBack.gotoAndStop('dmg4'); cClip.sprite.panelLeft.gotoAndStop('dmg4'); cClip.sprite.panelRight.gotoAndStop('dmg4'); cClip.sprite.panelMiddle.gotoAndStop('dead'); cClip.velocityX = 0; cClip.velocityY = 0; cClip.speedMomentum = 0; cClip.sprite.panelMiddle._alpha = 100; cClip.speed = 0; cClip.turnMax = 0; cClip.acceleration = 0; if (cClip.speedMax != 0) { cClip.destroyed = true; cClip.speedMax = 0; cClip.carSpeedMin = 0; cClip.carSpeedMax = 0; cClip.speed = 0; cClip.turnMax = 0; cClip.friction = 10; cClip.acceleration = 0; } } } } } } if (pCarIsHit) { v5 = Math.floor(100 * pCar.healthRight / pCar.healthRightMax); if (v5 > 50) { pRight.health1._alpha = 2 * (v5 - 50); pRight.health2._alpha = 100; } else { pRight.health1._alpha = 0; pRight.health2._alpha = 2 * v5; } } } } else { if (cClip.sprite.hitBack.hitTest(xPos, yPos, true)) { if (dmg > cClip.shieldBack) { v6 = dmg - cClip.shieldBack; cClip.healthBack -= v6; if (cClip.healthBack >= cClip.healthBackMax * 0.75) { cClip.sprite.panelBack.gotoAndStop('dmg0'); } else { if (cClip.healthBack >= cClip.healthBackMax * 0.5) { cClip.sprite.panelBack.gotoAndStop('dmg1'); } else { if (cClip.healthBack >= cClip.healthBackMax * 0.25) { cClip.sprite.panelBack.gotoAndStop('dmg2'); if (bw1 == false) { _root.warning._alpha = 100; _parent.warningTxt = 'Careful - The back of your car is getting damaged...'; _parent.warning.gotoAndPlay(1); _root.warning.onEnterFrame = function () { this._alpha -= 1; if (this._alpha <= 0) { delete this.onEnterFrame; } }; bw1 = true; } } else { if (cClip.healthBack > 0) { cClip.sprite.panelBack.gotoAndStop('dmg3'); if (bw2 == false) { _root.warning._alpha = 100; _parent.warningTxt = 'Warning - The back of your car is almost dead...'; _parent.warning.gotoAndPlay(1); _root.warning.onEnterFrame = function () { this._alpha -= 1; if (this._alpha <= 0) { delete this.onEnterFrame; } }; bw2 = true; } } else { if (cClip.healthBack <= 0 && cClip.destroyed == false) { cClip.healthFront = 0; cClip.healthBack = 0; cClip.healthLeft = 0; cClip.healthRight = 0; cClip.sprite.panelFront.gotoAndStop('dmg4'); cClip.sprite.panelBack.gotoAndStop('dmg4'); cClip.sprite.panelLeft.gotoAndStop('dmg4'); cClip.sprite.panelRight.gotoAndStop('dmg4'); cClip.sprite.panelMiddle.gotoAndStop('dead'); cClip.velocityX = 0; cClip.velocityY = 0; cClip.speedMomentum = 0; cClip.sprite.panelMiddle._alpha = 100; cClip.speed = 0; cClip.turnMax = 0; cClip.acceleration = 0; if (cClip.speedMax != 0 && cClip.destroyed == false) { cClip.destroyed = true; cClip.speedMax = 0; cClip.carSpeedMin = 0; cClip.carSpeedMax = 0; cClip.speed = 0; cClip.turnMax = 0; cClip.friction = 10; cClip.acceleration = 0; } } } } } } if (pCarIsHit) { v5 = Math.floor(100 * pCar.healthBack / pCar.healthBackMax); if (v5 > 50) { pBack.health1._alpha = 2 * (v5 - 50); pBack.health2._alpha = 100; } else { pBack.health1._alpha = 0; pBack.health2._alpha = 2 * v5; } } } } } } } if (pCarIsHit) { if (pFront.health1._alpha < pLeft.health1._alpha) { if (pFront.health1._alpha < pRight.health1._alpha) { if (pFront.health1._alpha < pBack.health1._alpha) { pMid.health1._alpha = pFront.health1._alpha; } else { pMid.health1._alpha = pBack.health1._alpha; } } else { if (pRight.health1._alpha < pBack.health1._alpha) { pMid.health1._alpha = pRight.health1._alpha; } else { pMid.health1._alpha = pBack.health1._alpha; } } } else { if (pLeft.health1._alpha < pRight.health1._alpha) { if (pLeft.health1._alpha < pBack.health1._alpha) { pMid.health1._alpha = pLeft.health1._alpha; } else { pMid.health1._alpha = pBack.health1._alpha; } } else { if (pRight.health1._alpha < pBack.health1._alpha) { pMid.health1._alpha = pRight.health1._alpha; } else { pMid.health1._alpha = pBack.health1._alpha; } } } if (pFront.health2._alpha < pLeft.health2._alpha) { if (pFront.health2._alpha < pRight.health2._alpha) { if (pFront.health2._alpha < pBack.health2._alpha) { pMid.health2._alpha = pFront.health2._alpha; } else { pMid.health2._alpha = pBack.health2._alpha; } } else { if (pRight.health2._alpha < pBack.health2._alpha) { pMid.health2._alpha = pRight.health2._alpha; } else { pMid.health2._alpha = pBack.health2._alpha; } } } else { if (pLeft.health2._alpha < pRight.health2._alpha) { if (pLeft.health2._alpha < pBack.health2._alpha) { pMid.health2._alpha = pLeft.health2._alpha; } else { pMid.health2._alpha = pBack.health2._alpha; } } else { if (pRight.health2._alpha < pBack.health2._alpha) { pMid.health2._alpha = pRight.health2._alpha; } else { pMid.health2._alpha = pBack.health2._alpha; } } } if (pMid.health2._alpha <= 0 && carsDamaged != arenaCarCapacity) { clearInterval(boostInterval); removeMovieClip(boost1); removeMovieClip(boosterInMap); delete this.onEnterFrame; _parent.failure._visible = true; _parent.failure.gotoAndPlay(1); boos.loadSound('http://www.sounddogs.com/sound-effects/31/mp3/272633_SOUNDDOGS__bo.mp3', true); countDownInterval = setInterval(this, 'gameOver', 1000); } } } function panelHit(xPos, yPos, cClip, dmg, source) { var v6 = 0; var v15 = 0; var v10; var v9; var v8; var v7; var v11; if (cClip.shieldUnlimited) { dmg = 0; } cClip.health = cClip.healthFrontMax + cClip.healthLeftMax + cClip.healthRightMax + cClip.healthBackMax; v8 = cClip.healthFront / cClip.healthFrontMax; v7 = cClip.healthBack / cClip.healthBackMax; v10 = cClip.healthLeft / cClip.healthLeftMax; v9 = cClip.healthRight / cClip.healthRightMax; if (v8 <= v7 && v8 <= v10 & v8 <= v9) { v11 = v8; } if (v7 <= v8 && v7 <= v10 && v7 <= v9) { v11 = v7; } if (v10 <= v8 && v10 <= v7 && v10 <= v9) { v11 = v10; } if (v9 <= v8 && v9 <= v7 && v9 <= v10) { v11 = v9; } cClip.sprite.healthBar.healthMeter._xscale = v11 * 100; cClip.sprite.healthBar.deathMeter._xscale = 100 - v11 * 100; if (cClip.sprite.healthBar.healthMeter._xscale <= 0) { cClip.sprite.healthBar.healthMeter._xscale = 0; } if (cClip.sprite.healthBar.deathMeter._xscale >= 100) { cClip.sprite.healthBar.deathMeter._xscale = 100; } if (cClip.sprite.hitFront.hitTest(xPos, yPos, true)) { if (dmg > cClip.shieldFront) { v6 = dmg - cClip.shieldFront; cClip.healthFront -= v6; if (cClip.healthFront >= cClip.healthFrontMax * 0.75) { cClip.sprite.panelFront.gotoAndStop('dmg0'); } else { if (cClip.healthFront >= cClip.healthFrontMax * 0.5) { cClip.sprite.panelFront.gotoAndStop('dmg1'); } else { if (cClip.healthFront >= cClip.healthFrontMax * 0.25) { cClip.sprite.panelFront.gotoAndStop('dmg2'); } else { if (cClip.healthFront > 0) { cClip.sprite.panelFront.gotoAndStop('dmg3'); } else { if (cClip.healthFront <= 0 && cClip.destroyed == false) { cClip.healthFront = 0; cClip.healthBack = 0; cClip.healthLeft = 0; cClip.healthRight = 0; cClip.sprite.panelFront.gotoAndStop('dmg4'); cClip.sprite.panelBack.gotoAndStop('dmg4'); cClip.sprite.panelLeft.gotoAndStop('dmg4'); cClip.sprite.panelRight.gotoAndStop('dmg4'); cClip.sprite.panelMiddle.gotoAndStop('dead'); cClip.velocityX = 0; cClip.velocityY = 0; cClip.speedMomentum = 0; cClip.sprite.panelMiddle._alpha = 100; cClip.speed = 0; cClip.turnMax = 0; cClip.acceleration = 0; if (cClip.speedMax != 0) { cClip.destroyed = true; cClip.speedMax = 0; cClip.carSpeedMin = 0; cClip.carSpeedMax = 0; cClip.speed = 0; cClip.turnMax = 0; cClip.friction = 10; cClip.acceleration = 0; ++carsDamaged; if (source == 'me') { winAmount += 3000; _parent.winAmountTxt.text = winAmount; _root.deathBlow._x = 400; _root.deathBlow._y = 200; _root.deathBlow._alpha = 100; _root.deathBlow.onEnterFrame = function () { this._alpha -= 1; this._y -= 1; if (this._alpha <= 0) { delete this.onEnterFrame; } }; } if (_root.muted == false) { _root.sCrash.start(); _root.cheer.start(); } if (carsDamaged >= arenaCarCapacity) { levelCount += 1; levelMultiplier += 0.25; won = true; _parent.powerUpTxt.text = ''; clearInterval(boostInterval); removeMovieClip(boost1); removeMovieClip(boosterInMap); delete this.onEnterFrame; _parent.success._visible = true; _parent.failure._visible = false; _parent.success.gotoAndPlay(1); countDownInterval = setInterval(this, 'gotoUpgradePage', 1000); } } } } } } } } } else { if (cClip.sprite.hitLeft.hitTest(xPos, yPos, true)) { if (dmg > cClip.shieldLeft) { v6 = dmg - cClip.shieldLeft; cClip.healthLeft -= v6; if (cClip.healthLeft >= cClip.healthLeftMax * 0.75) { cClip.sprite.panelLeft.gotoAndStop('dmg0'); } else { if (cClip.healthLeft >= cClip.healthLeftMax * 0.5) { cClip.sprite.panelLeft.gotoAndStop('dmg1'); } else { if (cClip.healthLeft >= cClip.healthLeftMax * 0.25) { cClip.sprite.panelLeft.gotoAndStop('dmg2'); } else { if (cClip.healthLeft > 0) { cClip.sprite.panelLeft.gotoAndStop('dmg3'); } else { if (cClip.healthLeft <= 0 && cClip.destroyed == false) { cClip.healthFront = 0; cClip.healthBack = 0; cClip.healthLeft = 0; cClip.healthRight = 0; cClip.sprite.panelFront.gotoAndStop('dmg4'); cClip.sprite.panelBack.gotoAndStop('dmg4'); cClip.sprite.panelLeft.gotoAndStop('dmg4'); cClip.sprite.panelRight.gotoAndStop('dmg4'); cClip.sprite.panelMiddle.gotoAndStop('dead'); cClip.velocityX = 0; cClip.velocityY = 0; cClip.speedMomentum = 0; cClip.sprite.panelMiddle._alpha = 100; cClip.speed = 0; cClip.turnMax = 0; cClip.acceleration = 0; if (cClip.speedMax != 0) { cClip.destroyed = true; cClip.speedMax = 0; cClip.carSpeedMin = 0; cClip.carSpeedMax = 0; cClip.speed = 0; cClip.turnMax = 0; cClip.friction = 10; cClip.acceleration = 0; ++carsDamaged; if (source == 'me') { winAmount += 3000; _parent.winAmountTxt.text = winAmount; _root.deathBlow._x = 400; _root.deathBlow._y = 200; _root.deathBlow._alpha = 100; _root.deathBlow.onEnterFrame = function () { this._alpha -= 1; this._y -= 1; if (this._alpha <= 0) { delete this.onEnterFrame; } }; } if (_root.muted == false) { _root.sCrash.start(); _root.cheer.start(); } if (carsDamaged >= arenaCarCapacity) { levelCount += 1; levelMultiplier += 0.25; won = true; _parent.powerUpTxt.text = ''; clearInterval(boostInterval); removeMovieClip(boost1); removeMovieClip(boosterInMap); delete this.onEnterFrame; _parent.success._visible = true; _parent.failure._visible = false; _parent.success.gotoAndPlay(1); countDownInterval = setInterval(this, 'gotoUpgradePage', 1000); } } } } } } } } } else { if (cClip.sprite.hitRight.hitTest(xPos, yPos, true)) { if (dmg > cClip.shieldRight) { v6 = dmg - cClip.shieldRight; cClip.healthRight -= v6; if (cClip.healthRight >= cClip.healthRightMax * 0.75) { cClip.sprite.panelRight.gotoAndStop('dmg0'); } else { if (cClip.healthRight >= cClip.healthRightMax * 0.5) { cClip.sprite.panelRight.gotoAndStop('dmg1'); } else { if (cClip.healthRight >= cClip.healthRightMax * 0.25) { cClip.sprite.panelRight.gotoAndStop('dmg2'); } else { if (cClip.healthRight > 0) { cClip.sprite.panelRight.gotoAndStop('dmg3'); } else { if (cClip.healthRight <= 0 && cClip.destroyed == false) { cClip.healthFront = 0; cClip.healthBack = 0; cClip.healthLeft = 0; cClip.healthRight = 0; cClip.sprite.panelFront.gotoAndStop('dmg4'); cClip.sprite.panelBack.gotoAndStop('dmg4'); cClip.sprite.panelLeft.gotoAndStop('dmg4'); cClip.sprite.panelRight.gotoAndStop('dmg4'); cClip.sprite.panelMiddle.gotoAndStop('dead'); cClip.velocityX = 0; cClip.velocityY = 0; cClip.speedMomentum = 0; cClip.sprite.panelMiddle._alpha = 100; cClip.speed = 0; cClip.turnMax = 0; cClip.acceleration = 0; if (cClip.speedMax != 0) { cClip.destroyed = true; cClip.speedMax = 0; cClip.carSpeedMin = 0; cClip.carSpeedMax = 0; cClip.speed = 0; cClip.turnMax = 0; cClip.friction = 10; cClip.acceleration = 0; ++carsDamaged; if (source == 'me') { winAmount += 3000; _parent.winAmountTxt.text = winAmount; _root.deathBlow._x = 400; _root.deathBlow._y = 200; _root.deathBlow._alpha = 100; _root.deathBlow.onEnterFrame = function () { this._alpha -= 1; this._y -= 1; if (this._alpha <= 0) { delete this.onEnterFrame; } }; } if (_root.muted == false) { _root.sCrash.start(); _root.cheer.start(); } if (carsDamaged >= arenaCarCapacity) { levelCount += 1; levelMultiplier += 0.25; won = true; _parent.powerUpTxt.text = ''; clearInterval(boostInterval); removeMovieClip(boost1); removeMovieClip(boosterInMap); delete this.onEnterFrame; _parent.success._visible = true; _parent.failure._visible = false; _parent.success.gotoAndPlay(1); countDownInterval = setInterval(this, 'gotoUpgradePage', 1000); } } } } } } } } } else { if (cClip.sprite.hitBack.hitTest(xPos, yPos, true)) { if (dmg > cClip.shieldBack) { v6 = dmg - cClip.shieldBack; cClip.healthBack -= v6; if (cClip.healthBack >= cClip.healthBackMax * 0.75) { cClip.sprite.panelBack.gotoAndStop('dmg0'); } else { if (cClip.healthBack >= cClip.healthBackMax * 0.5) { cClip.sprite.panelBack.gotoAndStop('dmg1'); } else { if (cClip.healthBack >= cClip.healthBackMax * 0.25) { cClip.sprite.panelBack.gotoAndStop('dmg2'); } else { if (cClip.healthBack > 0) { cClip.sprite.panelBack.gotoAndStop('dmg3'); } else { if (cClip.healthBack <= 0 && cClip.destroyed == false) { cClip.healthFront = 0; cClip.healthBack = 0; cClip.healthLeft = 0; cClip.healthRight = 0; cClip.sprite.panelFront.gotoAndStop('dmg4'); cClip.sprite.panelBack.gotoAndStop('dmg4'); cClip.sprite.panelLeft.gotoAndStop('dmg4'); cClip.sprite.panelRight.gotoAndStop('dmg4'); cClip.sprite.panelMiddle.gotoAndStop('dead'); cClip.velocityX = 0; cClip.velocityY = 0; cClip.speedMomentum = 0; cClip.sprite.panelMiddle._alpha = 100; cClip.speed = 0; cClip.turnMax = 0; cClip.acceleration = 0; if (cClip.speedMax != 0 && cClip.destroyed == false) { cClip.destroyed = true; cClip.speedMax = 0; cClip.carSpeedMin = 0; cClip.carSpeedMax = 0; cClip.speed = 0; cClip.turnMax = 0; cClip.friction = 10; cClip.acceleration = 0; ++carsDamaged; if (source == 'me') { winAmount += 3000; _parent.winAmountTxt.text = winAmount; _root.deathBlow._x = 400; _root.deathBlow._y = 200; _root.deathBlow._alpha = 100; _root.deathBlow.onEnterFrame = function () { this._alpha -= 1; this._y -= 1; if (this._alpha <= 0) { delete this.onEnterFrame; } }; } if (_root.muted == false) { _root.sCrash.start(); _root.cheer.start(); } if (carsDamaged >= arenaCarCapacity) { levelCount += 1; levelMultiplier += 0.25; won = true; _parent.powerUpTxt.text = ''; clearInterval(boostInterval); removeMovieClip(boost1); removeMovieClip(boosterInMap); delete this.onEnterFrame; _parent.success._visible = true; _parent.failure._visible = false; _parent.success.gotoAndPlay(1); countDownInterval = setInterval(this, 'gotoUpgradePage', 1000); } } } } } } } } } else { if (cClip.sprite.panelBack.hitTest(xPos, yPos, true)) { if (dmg > cClip.shieldBack) { dm2 = dmg - cClip.shieldBack; cClip.healthBack -= v6; if (cClip.healthBack >= cClip.healthBackMax * 0.75) { cClip.sprite.panelBack.gotoAndStop('dmg0'); } else { if (cClip.healthBack >= cClip.healthBackMax * 0.5) { cClip.sprite.panelBack.gotoAndStop('dmg1'); } else { if (cClip.healthBack >= cClip.healthBackMax * 0.25) { cClip.sprite.panelBack.gotoAndStop('dmg2'); } else { if (cClip.healthBack > 0) { cClip.sprite.panelBack.gotoAndStop('dmg3'); } else { if (cClip.healthBack <= 0 && cClip.destroyed == false) { cClip.healthFront = 0; cClip.healthBack = 0; cClip.healthLeft = 0; cClip.healthRight = 0; cClip.sprite.panelFront.gotoAndStop('dmg4'); cClip.sprite.panelBack.gotoAndStop('dmg4'); cClip.sprite.panelLeft.gotoAndStop('dmg4'); cClip.sprite.panelRight.gotoAndStop('dmg4'); cClip.sprite.panelMiddle.gotoAndStop('dead'); cClip.velocityX = 0; cClip.velocityY = 0; cClip.speedMomentum = 0; cClip.sprite.panelMiddle._alpha = 100; cClip.speed = 0; cClip.turnMax = 0; cClip.acceleration = 0; if (cClip.speedMax != 0) { cClip.destroyed = true; cClip.speedMax = 0; cClip.carSpeedMin = 0; cClip.carSpeedMax = 0; cClip.speed = 0; cClip.turnMax = 0; cClip.friction = 10; cClip.acceleration = 0; ++carsDamaged; if (source == 'me') { winAmount += 3000; _parent.winAmountTxt.text = winAmount; _root.deathBlow._x = 400; _root.deathBlow._y = 200; _root.deathBlow._alpha = 100; _root.deathBlow.onEnterFrame = function () { this._alpha -= 1; this._y -= 1; if (this._alpha <= 0) { delete this.onEnterFrame; } }; } if (_root.muted == false) { _root.sCrash.start(); _root.cheer.start(); } if (carsDamaged >= arenaCarCapacity) { levelCount += 1; levelMultiplier += 0.25; won = true; _parent.powerUpTxt.text = ''; clearInterval(boostInterval); removeMovieClip(boost1); removeMovieClip(boosterInMap); delete this.onEnterFrame; _parent.success._visible = true; _parent.failure._visible = false; _parent.success.gotoAndPlay(1); countDownInterval = setInterval(this, 'gotoUpgradePage', 1000); } } } } } } } } } } } } } } function getDamage(vehicle1, vehicle2) { if (vehicle2.velocityX > 0) { vehicle2.velocityHeading = Math.atan(vehicle2.velocityY / vehicle2.velocityX); } else { if (vehicle2.velocityX < 0) { vehicle2.velocityHeading = 3.141593 + Math.atan(vehicle2.velocityY / vehicle2.velocityX); } else { if (vehicle2.velocityY > 0) { vehicle2.velocityHeading = 1.570796; } else { if (vehicle2.velocityY < 0) { vehicle2.velocityHeading = 4.712389; } else { vehicle2.velocityHeading = vehicle2.heading; } } } } headingDiff = vehicle2.velocityHeading - vehicle1.velocityHeading; velocityDiff = Math.cos(headingDiff) * Math.sqrt(vehicle2.velocityX * vehicle2.velocityX + vehicle2.velocityY * vehicle2.velocityY); damageDiff = Math.sqrt(vehicle1.velocityX * vehicle1.velocityX + vehicle1.velocityY * vehicle1.velocityY) - velocityDiff; if (damageDiff > 0) { return damageDiff; } damageDiff = 0; return damageDiff; } function createBooster() { var v4; ranBoosterType = Math.round(Math.random() * 7) + 1; if (ranBoosterType == 1) { v4 = 'If you\'re fast enough - you can be even faster!'; } else { if (ranBoosterType == 2) { v4 = 'Nothing hits harder than a car filled with bricks...'; } else { if (ranBoosterType == 3) { v4 = 'Grab the shield before it\'s too late...'; } else { if (ranBoosterType == 4) { v4 = 'Yarr! The booty be yours! Take it if you can...'; } else { if (ranBoosterType == 5) { v4 = 'Brrr... did someone drop an ice cube?'; } else { if (ranBoosterType == 6) { v4 = 'If only I had a way to double the size of my car...'; } else { if (ranBoosterType == 7) { v4 = 'Striking oil is not such a great thing in car racing...'; } else { if (ranBoosterType == 8) { v4 = 'Babies really shouldn\'t be at a demolition derby...'; } } } } } } } } var v6 = -600 + Math.random() * 1200; var v5 = -450 + Math.random() * 900; boost1 = this.attachMovie('booster_mc' + ranBoosterType, 'booster_mc1', _root.game_stage.getNextHighestDepth()); boost1._x = v6; boost1._y = v5; boosterInMap = _parent.container.attachMovie('booster_mc' + ranBoosterType, 'boosterInMap', _parent.container.getNextHighestDepth()); boosterInMap._x = v6; boosterInMap._y = v5; boosterInMap._xscale = 250; boosterInMap._yscale = 250; lifeTime = setInterval(this, 'lifeCount', 1000); _parent.powerUpTxt.text = v4; } function lifeCount() { ++life; if (life == 10) { life = 0; boost1._x = undefined; boost1._y = undefined; removeMovieClip(boost1); removeMovieClip(boosterInMap); _parent.powerUpTxt.text = ''; clearInterval(lifeTime); } } var boos = new Sound(); var fw1 = false; var fw3 = false; var bw1 = false; var bw2 = false; var rw1 = false; var rw2 = false; var lw1 = false; var lw2 = false; var bitmapsArray; var particleBitmapsArray; _root.pauseGame._visible = true; bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png']; particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png']; if (levelCount == 1) { _root.warning._alpha = 100; _root.warningTxt = 'Drive with the Arrow Keys - Good Luck!'; _root.warning.gotoAndPlay(1); _root.warning.onEnterFrame = function () { this._alpha -= 0.5; if (this._alpha <= 0) { delete this.onEnterFrame; } }; } if (levelCount == 3) { _root.warning._alpha = 100; _root.warningTxt = 'Good Job! You passed the first two levels... You deserve a break!'; _root.warning.gotoAndPlay(1); _root.warning.onEnterFrame = function () { this._alpha -= 0.5; if (this._alpha <= 0) { delete this.onEnterFrame; } }; } _root.crowdBg.stop(); if (_root.muted == false) { _root.crowdBg.start(0, 100); _root.crowdBg.setVolume(80); } _root.mute_mc._visible = true; _root.trackInfo._visible = true; _parent.currentListen._visible = true; _parent.success._visible = false; _parent.failure._visible = false; _parent.winAmountTxt._visible = true; _root.dashboard._visible = true; carHolder._x = -400; carHolder._y = -300; _parent.game_stage._x = 400; _parent.game_stage._y = 300; var lost = false; var won = false; _root.game_stage.stdm_mc.icerink._visible = false; var container = _parent.createEmptyMovieClip('container', 5000); _parent.container._x = 715; _parent.container._y = 535; var sparkNumber = 8; var sparkDistance = 6; var sparkSize = 75; var sparkAlpha = 100; if (levelCount == 1 || levelCount == 2) { stdm_mc.gotoAndStop('stadium1'); _parent.container.attachMovie('map_bg1', 'bg_mcMap', 1000); } else { if (levelCount == 3 || levelCount == 4) { stdm_mc.gotoAndStop('stadium2'); _parent.container.attachMovie('map_bg1', 'bg_mcMap', 1000); } else { if (levelCount == 5 || levelCount == 6) { stdm_mc.gotoAndStop('stadium3'); _parent.container.attachMovie('map_bg1', 'bg_mcMap', 1000); } else { if (levelCount == 7 || levelCount == 8) { stdm_mc.gotoAndStop('stadium4'); _parent.container.attachMovie('map_bg1', 'bg_mcMap', 1000); } else { if (levelCount == 9 || levelCount == 10) { stdm_mc.gotoAndStop('stadium5'); _parent.container.attachMovie('map_bg1', 'bg_mcMap', 1000); } else { if (levelCount == 11 || levelCount == 12) { stdm_mc.gotoAndStop('stadium6'); _parent.container.attachMovie('map_bg1', 'bg_mcMap', 1000); } else { if (levelCount > 12) { stdm_mc.gotoAndStop('stadium6'); _parent.container.attachMovie('map_bg1', 'bg_mcMap', 1000); } } } } } } } _parent.container._width = 170; _parent.container._height = 130; stdm_mc._width = 2100; stdm_mc._height = 1600; _root.game_stage.looseText.text = ''; _parent.winAmountTxt.text = winAmount; var dirtNumber = 10; var pCarTireNum = 20; var vCarATireNum = 150; var vCarBTireNum = 280; var vCarCTireNum = 410; var vCarDTireNum = 540; var vCarETireNum = 670; var vCarFTireNum = 800; var vCarGTireNum = 930; var vCarHTireNum = 1060; var vCarITireNum = 1190; var vCarJTireNum = 1320; pCar.swapDepths(15000); var onlyOnce = playSpeedUp; var boostedTimeP; var boostCountP = 0; var boostedTimeAI; var boostCountAI = 0; var eBoosted; var countNum1 = 0; var countDown = 5; var countDownInterval; _parent._sndBtn._visible = true; var PI2 = 6.283185; var PIHALF = 1.570796; var RAD2DEG = 57.29578; var i; var j; var gameState = 0; var carCount = 0; var carTypes = 9; var carIndex = 0; var carsRemaining = 0; var carsRemainingMax = 0; var cars = new Array(); var carsLength; var num = 0; _parent.winAmountTxt.text = winAmount; var ellipseX = 400; var ellipseY = 300; var wallX; var wallY; var varHealth; var pFront; var pBack; var pRight; var pLeft; var pMid; _parent.winAmountTxt.text = winAmount; if (!nextLevel) { var winAmount = 0; _parent.winAmountTxt.text = 0; carToPlay = 'model1'; varHealth = _parent.health_mcA; pFront = _parent.health_mcA.pCarAHealthFront; pBack = _parent.health_mcA.pCarAHealthBack; pRight = _parent.health_mcA.pCarAHealthRight; pLeft = _parent.health_mcA.pCarAHealthLeft; pMid = _parent.health_mcA.pCarAHealthMid; pCar = new CarPlayer1(); } else { if (carToPlay == 'model2') { varHealth = _parent.health_mcB; pFront = _parent.health_mcB.pCarBHealthFront; pBack = _parent.health_mcB.pCarBHealthBack; pRight = _parent.health_mcB.pCarBHealthRight; pLeft = _parent.health_mcB.pCarBHealthLeft; pMid = _parent.health_mcB.pCarBHealthMid; } if (carToPlay == 'model3') { varHealth = _parent.health_mcC; pFront = _parent.health_mcC.pCarCHealthFront; pBack = _parent.health_mcC.pCarCHealthBack; pRight = _parent.health_mcC.pCarCHealthRight; pLeft = _parent.health_mcC.pCarCHealthLeft; pMid = _parent.health_mcC.pCarCHealthMid; } if (carToPlay == 'model4') { varHealth = _parent.health_mcD; pFront = _parent.health_mcD.pCarDHealthFront; pBack = _parent.health_mcD.pCarDHealthBack; pRight = _parent.health_mcD.pCarDHealthRight; pLeft = _parent.health_mcD.pCarDHealthLeft; pMid = _parent.health_mcD.pCarDHealthMid; } } var repelStrength = 1; var attractStrength = 1; var wallDamp = 0.05; var pCarIsHit = false; var playerScore = 0; var exits = new Array(); var sp = new Array(); var mouseListener = new Object(); var spawnSequence = new Array(); var headingDiff = 0; var velocityDiff = 0; var dmgDiff = 0; var soundIsOn = true; var won = false; var carsDamaged = 0; var originalESpeed = 0; var carArray = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; exits[0] = new SpawnPoint(-200, -150); exits[1] = new SpawnPoint(920, 350); exits[2] = new SpawnPoint(820, 470); exits[3] = new SpawnPoint(520, 700); exits[4] = new SpawnPoint(710, -100); exits[5] = new SpawnPoint(670, 750); exits[6] = new SpawnPoint(10, 90); exits[7] = new SpawnPoint(-180, 300); exits[8] = new SpawnPoint(450, 890); exits[9] = new SpawnPoint(970, 180); pCar.heading = 0; var enemyType = 0; var rightTurnIncrement = 0.05; var leftTurnIncrement = 0.05; this.onEnterFrame = function (Void) { _parent.container.pCarMap._x = -_parent.game_stage._x + 400; _parent.container.pCarMap._y = -_parent.game_stage._y + 300; _parent.container.pCarMap._rotation = pCar.heading * RAD2DEG; i = 0; while (i < arenaCarCapacity) { cars[i].posX -= pCar.velocityX; cars[i].posY -= pCar.velocityY; _parent.container['vCarMap' + i]._x = cars[i].posX - _parent.game_stage._x; _parent.container['vCarMap' + i]._y = cars[i].posY - _parent.game_stage._y; _parent.container['vCarMap' + i]._rotation = cars[i].heading * RAD2DEG; ++i; } carHolder._x += pCar.velocityX; _parent.game_stage._x -= pCar.velocityX; carHolder._y += pCar.velocityY; _parent.game_stage._y -= pCar.velocityY; hitBoosterCheckP(); pCar.posX = Stage.width / 2; pCar.posY = Stage.height / 2; _parent.bottomDark._visible = true; _parent.myLogo._visible = true; _parent.success._visible = false; _parent.failure._visible = false; _parent.dollar._visible = true; _parent.dmgIndicator._visible = true; varHealth._x = 726; varHealth._y = 29; varHealth._xscale = 70; varHealth._yscale = 70; varHealth._visible = true; if (_parent.game_stage._x > 1000) { _parent.game_stage._x -= 2; carHolder._x += 2; i = 0; while (i < arenaCarCapacity) { cars[i].posX -= 2; ++i; } } if (_parent.game_stage._x < -210) { _parent.game_stage._x += 2; carHolder._x -= 2; i = 0; while (i < arenaCarCapacity) { cars[i].posX += 2; ++i; } } if (_parent.game_stage._y > 740) { _parent.game_stage._y -= 2; carHolder._y += 2; i = 0; while (i < arenaCarCapacity) { cars[i].posY -= 2; ++i; } } if (_parent.game_stage._y < -150) { _parent.game_stage._y += 2; carHolder._y -= 2; i = 0; while (i < arenaCarCapacity) { cars[i].posY += 2; ++i; } } var v3; var v4; if (gameState !== 9) { } else { if (carCount < arenaCarCapacity) { k = carHolder.getNextHighestDepth(); var v7 = Math.round(Math.random() * (carArray.length - 1)); switch (carArray[v7]) { case 0: cars[carCount] = new CarA(); carHolder.va1.duplicateMovieClip('car' + k, k); var v15 = _parent.container.attachMovie('vCarA', 'vCarMap' + k, _parent.container.getNextHighestDepth()); break; case 1: cars[carCount] = new CarA(); carHolder.va2.duplicateMovieClip('car' + k, k); var v16 = _parent.container.attachMovie('vCarH', 'vCarMap' + k, _parent.container.getNextHighestDepth()); break; case 2: cars[carCount] = new CarA(); carHolder.va3.duplicateMovieClip('car' + k, k); var v17 = _parent.container.attachMovie('vCarI', 'vCarMap' + k, _parent.container.getNextHighestDepth()); break; case 3: cars[carCount] = new CarB(); carHolder.vb1.duplicateMovieClip('car' + k, k); var v8 = _parent.container.attachMovie('vCarD', 'vCarMap' + k, _parent.container.getNextHighestDepth()); break; case 4: cars[carCount] = new CarB(); carHolder.vb2.duplicateMovieClip('car' + k, k); var v9 = _parent.container.attachMovie('vCarE', 'vCarMap' + k, _parent.container.getNextHighestDepth()); break; case 5: cars[carCount] = new CarB(); carHolder.vb3.duplicateMovieClip('car' + k, k); var v10 = _parent.container.attachMovie('vCarF', 'vCarMap' + k, _parent.container.getNextHighestDepth()); break; case 6: cars[carCount] = new CarC(); carHolder.vc1.duplicateMovieClip('car' + k, k); var v11 = _parent.container.attachMovie('vCarG', 'vCarMap' + k, _parent.container.getNextHighestDepth()); break; case 7: cars[carCount] = new CarC(); carHolder.vc2.duplicateMovieClip('car' + k, k); var v12 = _parent.container.attachMovie('vCarB', 'vCarMap' + k, _parent.container.getNextHighestDepth()); break; case 8: cars[carCount] = new CarC(); carHolder.vc3.duplicateMovieClip('car' + k, k); var v13 = _parent.container.attachMovie('vCarC', 'vCarMap' + k, _parent.container.getNextHighestDepth()); break; case 9: cars[carCount] = new CarC(); carHolder.vc4.duplicateMovieClip('car' + k, k); var v14 = _parent.container.attachMovie('vCarJ', 'vCarMap' + k, _parent.container.getNextHighestDepth()); } cars[carCount].sprite = carHolder['car' + k]; carArray.splice(v7, 1); if (num < arenaCarCapacity + 1) { ++num; } cars[carCount].posX = exits[num - 1].xPos; cars[carCount].posY = exits[num - 1].yPos; cars[carCount].heading = getAngle(ellipseX, cars[carCount].posX + 200, ellipseY, cars[carCount].posY - 200); cars[carCount].sprite._rotation = cars[carCount].heading * RAD2DEG; cars[carCount].cState = 3; cars[carCount].prey = Math.floor(Math.random() * carCount); if (cars[carCount].prey == carCount) { ++cars[carCount].prey; if (cars[carCount].prey >= carCount) { cars[carCount].prey = 0; } } ++carCount; } i = 0; while (i < carCount) { if (nextLevel && cars[i].destroyed == false) { cars[i].acceleration = 0.4 * levelMultiplier; cars[i].healthFrontMax = 120 * levelMultiplier; cars[i].healthBackMax = 70 * levelMultiplier; cars[i].healthLeftMax = 70 * levelMultiplier; cars[i].healthRightMax = 70 * levelMultiplier; cars[i].mass = 50 * levelMultiplier; cars[i].shieldFront = 2 * levelMultiplier; cars[i].shieldBack = 1 * levelMultiplier; cars[i].shieldLeft = 1 * levelMultiplier; cars[i].shieldRight = 1 * levelMultiplier; if (!cars[i].cClip.destroyed && _root.gamePaused == false) { cars[i].speedMax = 6 * levelMultiplier; } if (levelCount == 3) { cars[i].sprite._xscale = 50; cars[i].sprite._yscale = 50; cars[i].frontX /= 2; cars[i].frontY /= 2; cars[i].backX /= 2; cars[i].backY /= 2; cars[i].frontSideX /= 2; cars[i].frontSideY /= 2; cars[i].backSideX /= 2; cars[i].backSideY /= 2; cars[i].frontSideX2 /= 2; cars[i].frontSideY2 /= 2; cars[i].backSideX2 /= 2; cars[i].backSideY2 /= 2; cars[i].frontSideX3 /= 2; cars[i].frontSideY3 /= 2; cars[i].backSideX3 /= 2; cars[i].backSideY3 /= 2; cars[i].mass /= 2; cars[i].speedMax /= 2; } } if (cars[i].isAlive && cars[i].speedMax != 0) { if (cars[i].speedMomentum < cars[i].speedMax || isNaN(cars[i].speedMomentum)) { if (cars[i].speedMax - cars[i].speedMomentum < cars[i].acceleration) { acceleration = cars[i].speedMax - cars[i].speedMomentum; } else { acceleration = cars[i].acceleration; } } else { acceleration = 0; } if (_root.greenLight == true) { cars[i].velocityX += Math.cos(cars[i].heading) * acceleration; cars[i].velocityY += Math.sin(cars[i].heading) * acceleration; } } else {} ++i; } if (pCar.velocityX > 0) { pCar.velocityHeading = Math.atan(pCar.velocityY / pCar.velocityX); } else { if (pCar.velocityX < 0) { pCar.velocityHeading = 3.141593 + Math.atan(pCar.velocityY / pCar.velocityX); } else { if (pCar.velocityY > 0) { pCar.velocityHeading = 1.570796; } else { if (pCar.velocityY < 0) { pCar.velocityHeading = 4.712389; } else { pCar.velocityHeading = pCar.heading; } } } } pCar.velocityTheta = pCar.velocityHeading - pCar.heading; pCar.speedMomentum = Math.cos(pCar.velocityTheta) * Math.sqrt(pCar.velocityX * pCar.velocityX + pCar.velocityY * pCar.velocityY); pCar.velocityLateral = Math.sin(pCar.velocityTheta) * Math.sqrt(pCar.velocityX * pCar.velocityX + pCar.velocityY * pCar.velocityY); collideCheckP(pCar.posX + Math.cos(pCar.heading) * pCar.frontSideX + Math.cos(pCar.heading - PIHALF) * pCar.frontSideY + pCar.velocityX, pCar.posY + Math.sin(pCar.heading) * pCar.frontSideX + Math.sin(pCar.heading - PIHALF) * pCar.frontSideY + pCar.velocityY); collideCheckP(pCar.posX + Math.cos(pCar.heading) * pCar.frontSideX + Math.cos(pCar.heading + PIHALF) * pCar.frontSideY + pCar.velocityX, pCar.posY + Math.sin(pCar.heading) * pCar.frontSideX + Math.sin(pCar.heading + PIHALF) * pCar.frontSideY + pCar.velocityY); collideCheckP(pCar.posX + Math.cos(pCar.heading) * pCar.frontSideX2 + Math.cos(pCar.heading - PIHALF) * pCar.frontSideY2 + pCar.velocityX, pCar.posY + Math.sin(pCar.heading) * pCar.frontSideX2 + Math.sin(pCar.heading - PIHALF) * pCar.frontSideY2 + pCar.velocityY); collideCheckP(pCar.posX + Math.cos(pCar.heading) * pCar.frontSideX2 + Math.cos(pCar.heading + PIHALF) * pCar.frontSideY2 + pCar.velocityX, pCar.posY + Math.sin(pCar.heading) * pCar.frontSideX2 + Math.sin(pCar.heading + PIHALF) * pCar.frontSideY2 + pCar.velocityY); collideCheckP(pCar.posX + Math.cos(pCar.heading) * pCar.frontSideX3 + Math.cos(pCar.heading + PIHALF) * pCar.frontSideY3 + pCar.velocityX, pCar.posY + Math.sin(pCar.heading) * pCar.frontSideX3 + Math.sin(pCar.heading + PIHALF) * pCar.frontSideY3 + pCar.velocityY); collideCheckP(pCar.posX + Math.cos(pCar.heading) * pCar.frontSideX3 + Math.cos(pCar.heading - PIHALF) * pCar.frontSideY3 + pCar.velocityX, pCar.posY + Math.sin(pCar.heading) * pCar.frontSideX3 + Math.sin(pCar.heading - PIHALF) * pCar.frontSideY3 + pCar.velocityY); collideCheckP(pCar.posX + Math.cos(pCar.heading) * pCar.frontX + Math.cos(pCar.heading - PIHALF) * pCar.frontY + pCar.velocityX, pCar.posY + Math.sin(pCar.heading) * pCar.frontX + Math.sin(pCar.heading - PIHALF) * pCar.frontY + pCar.velocityY); collideCheckP(pCar.posX + Math.cos(pCar.heading) * pCar.backX + Math.cos(pCar.heading - PIHALF) * pCar.backY + pCar.velocityX, pCar.posY + Math.sin(pCar.heading) * pCar.backX + Math.sin(pCar.heading - PIHALF) * pCar.backY + pCar.velocityY); collideCheckP(pCar.posX + Math.cos(pCar.heading) * pCar.backSideX + Math.cos(pCar.heading - PIHALF) * pCar.backSideY + pCar.velocityX, pCar.posY + Math.sin(pCar.heading) * pCar.backSideX + Math.sin(pCar.heading - PIHALF) * pCar.backSideY + pCar.velocityY); collideCheckP(pCar.posX + Math.cos(pCar.heading) * pCar.backSideX + Math.cos(pCar.heading + PIHALF) * pCar.backSideY + pCar.velocityX, pCar.posY + Math.sin(pCar.heading) * pCar.backSideX + Math.sin(pCar.heading + PIHALF) * pCar.backSideY + pCar.velocityY); collideCheckP(pCar.posX + Math.cos(pCar.heading) * pCar.backSideX2 + Math.cos(pCar.heading - PIHALF) * pCar.backSideY2 + pCar.velocityX, pCar.posY + Math.sin(pCar.heading) * pCar.backSideX2 + Math.sin(pCar.heading - PIHALF) * pCar.backSideY2 + pCar.velocityY); collideCheckP(pCar.posX + Math.cos(pCar.heading) * pCar.backSideX2 + Math.cos(pCar.heading + PIHALF) * pCar.backSideY2 + pCar.velocityX, pCar.posY + Math.sin(pCar.heading) * pCar.backSideX2 + Math.sin(pCar.heading + PIHALF) * pCar.backSideY2 + pCar.velocityY); collideCheckP(pCar.posX + Math.cos(pCar.heading) * pCar.backSideX3 + Math.cos(pCar.heading - PIHALF) * pCar.backSideY3 + pCar.velocityX, pCar.posY + Math.sin(pCar.heading) * pCar.backSideX3 + Math.sin(pCar.heading - PIHALF) * pCar.backSideY3 + pCar.velocityY); collideCheckP(pCar.posX + Math.cos(pCar.heading) * pCar.backSideX3 + Math.cos(pCar.heading + PIHALF) * pCar.backSideY3 + pCar.velocityX, pCar.posY + Math.sin(pCar.heading) * pCar.backSideX3 + Math.sin(pCar.heading + PIHALF) * pCar.backSideY3 + pCar.velocityY); i = 0; while (i < carCount) { if (cars[i].velocityX > 0) { cars[i].velocityHeading = Math.atan(cars[i].velocityY / cars[i].velocityX); } else { if (cars[i].velocityX < 0) { cars[i].velocityHeading = 3.141593 + Math.atan(cars[i].velocityY / cars[i].velocityX); } else { if (cars[i].velocityY > 0) { cars[i].velocityHeading = 1.570796; } else { if (cars[i].velocityY < 0) { cars[i].velocityHeading = 4.712389; } else { cars[i].velocityHeading = cars[i].heading; } } } } cars[i].velocityTheta = cars[i].velocityHeading - cars[i].heading; cars[i].speedMomentum = Math.cos(cars[i].velocityTheta) * Math.sqrt(cars[i].velocityX * cars[i].velocityX + cars[i].velocityY * cars[i].velocityY); cars[i].velocityLateral = Math.sin(cars[i].velocityTheta) * Math.sqrt(cars[i].velocityX * cars[i].velocityX + cars[i].velocityY * cars[i].velocityY); if (cars[i].speedMomentum >= 0) { if (cars[i].velocityTheta <= 0) { v3 = cars[i].posX + Math.cos(cars[i].heading) * cars[i].frontSideX + Math.cos(cars[i].heading - PIHALF) * cars[i].frontSideY + cars[i].velocityX; v4 = cars[i].posY + Math.sin(cars[i].heading) * cars[i].frontSideX + Math.sin(cars[i].heading - PIHALF) * cars[i].frontSideY + cars[i].velocityY; if (carHolder.hitTest(v3, v4, true)) { collideCheckAI(i, v3, v4); } } else { v3 = cars[i].posX + Math.cos(cars[i].heading) * cars[i].frontSideX3 + Math.cos(cars[i].heading - PIHALF) * cars[i].frontSideY3 + cars[i].velocityX; v4 = cars[i].posY + Math.sin(cars[i].heading) * cars[i].frontSideX3 + Math.sin(cars[i].heading - PIHALF) * cars[i].frontSideY3 + cars[i].velocityY; if (carHolder.hitTest(v3, v4, true)) { collideCheckAI(i, v3, v4); } } } else { if (cars[i].velocityTheta <= 0) { v3 = cars[i].posX + Math.cos(cars[i].heading) * cars[i].frontSideX2 + Math.cos(cars[i].heading - PIHALF) * cars[i].frontSideY2 + cars[i].velocityX; v4 = cars[i].posY + Math.sin(cars[i].heading) * cars[i].frontSideX2 + Math.sin(cars[i].heading - PIHALF) * cars[i].frontSideY2 + cars[i].velocityY; if (carHolder.hitTest(v3, v4, true)) { collideCheckAI(i, v3, v4); } } } if (cars[i].speedMomentum >= 0) { if (cars[i].velocityTheta >= 0) { v3 = cars[i].posX + Math.cos(cars[i].heading) * cars[i].frontSideX + Math.cos(cars[i].heading + PIHALF) * cars[i].frontSideY + cars[i].velocityX; v4 = cars[i].posY + Math.sin(cars[i].heading) * cars[i].frontSideX + Math.sin(cars[i].heading + PIHALF) * cars[i].frontSideY + cars[i].velocityY; if (carHolder.hitTest(v3, v4, true)) { collideCheckAI(i, v3, v4); } } else { v3 = cars[i].posX + Math.cos(cars[i].heading) * cars[i].frontSideX3 + Math.cos(cars[i].heading + PIHALF) * cars[i].frontSideY3 + cars[i].velocityX; v4 = cars[i].posY + Math.sin(cars[i].heading) * cars[i].frontSideX3 + Math.sin(cars[i].heading + PIHALF) * cars[i].frontSideY3 + cars[i].velocityY; if (carHolder.hitTest(v3, v4, true)) { collideCheckAI(i, v3, v4); } } } else { if (cars[i].velocityTheta >= 0) { v3 = cars[i].posX + Math.cos(cars[i].heading) * cars[i].frontSideX2 + Math.cos(cars[i].heading + PIHALF) * cars[i].frontSideY2 + cars[i].velocityX; v4 = cars[i].posY + Math.sin(cars[i].heading) * cars[i].frontSideX2 + Math.sin(cars[i].heading + PIHALF) * cars[i].frontSideY2 + cars[i].velocityY; if (carHolder.hitTest(v3, v4, true)) { collideCheckAI(i, v3, v4); } } } if (cars[i].speedMomentum >= 0) { v3 = cars[i].posX + Math.cos(cars[i].heading) * cars[i].frontX + cars[i].velocityX; v4 = cars[i].posY + Math.sin(cars[i].heading) * cars[i].frontX + cars[i].velocityY; if (carHolder.hitTest(v3, v4, true)) { collideCheckAI(i, v3, v4); } } if (cars[i].speedMomentum <= 0) { if (cars[i].velocityTheta <= 0) { v3 = cars[i].posX + Math.cos(cars[i].heading) * cars[i].backSideX + Math.cos(cars[i].heading - PIHALF) * cars[i].backSideY + cars[i].velocityX; v4 = cars[i].posY + Math.sin(cars[i].heading) * cars[i].backSideX + Math.sin(cars[i].heading - PIHALF) * cars[i].backSideY + cars[i].velocityY; if (carHolder.hitTest(v3, v4, true)) { collideCheckAI(i, v3, v4); } } else { v3 = cars[i].posX + Math.cos(cars[i].heading) * cars[i].backSideX3 + Math.cos(cars[i].heading - PIHALF) * cars[i].backSideY3 + cars[i].velocityX; v4 = cars[i].posY + Math.sin(cars[i].heading) * cars[i].backSideX3 + Math.sin(cars[i].heading - PIHALF) * cars[i].backSideY3 + cars[i].velocityY; if (carHolder.hitTest(v3, v4, true)) { collideCheckAI(i, v3, v4); } } } else { if (cars[i].velocityTheta <= 0) { v3 = cars[i].posX + Math.cos(cars[i].heading) * cars[i].backSideX2 + Math.cos(cars[i].heading - PIHALF) * cars[i].backSideY2 + cars[i].velocityX; v4 = cars[i].posY + Math.sin(cars[i].heading) * cars[i].backSideX2 + Math.sin(cars[i].heading - PIHALF) * cars[i].backSideY2 + cars[i].velocityY; if (carHolder.hitTest(v3, v4, true)) { collideCheckAI(i, v3, v4); } } } if (cars[i].speedMomentum <= 0) { if (cars[i].velocityTheta <= 0) { v3 = cars[i].posX + Math.cos(cars[i].heading) * cars[i].backSideX + Math.cos(cars[i].heading - PIHALF) * cars[i].backSideY + cars[i].velocityX; v4 = cars[i].posY + Math.sin(cars[i].heading) * cars[i].backSideX + Math.sin(cars[i].heading - PIHALF) * cars[i].backSideY + cars[i].velocityY; if (carHolder.hitTest(v3, v4, true)) { collideCheckAI(i, v3, v4); } } else { v3 = cars[i].posX + Math.cos(cars[i].heading) * cars[i].backSideX3 + Math.cos(cars[i].heading - PIHALF) * cars[i].backSideY3 + cars[i].velocityX; v4 = cars[i].posY + Math.sin(cars[i].heading) * cars[i].backSideX3 + Math.sin(cars[i].heading - PIHALF) * cars[i].backSideY3 + cars[i].velocityY; if (carHolder.hitTest(v3, v4, true)) { collideCheckAI(i, v3, v4); } } } else { if (cars[i].velocityTheta <= 0) { v3 = cars[i].posX + Math.cos(cars[i].heading) * cars[i].backSideX2 + Math.cos(cars[i].heading - PIHALF) * cars[i].backSideY2 + cars[i].velocityX; v4 = cars[i].posY + Math.sin(cars[i].heading) * cars[i].backSideX2 + Math.sin(cars[i].heading - PIHALF) * cars[i].backSideY2 + cars[i].velocityY; if (carHolder.hitTest(v3, v4, true)) { collideCheckAI(i, v3, v4); } } } if (cars[i].speedMomentum <= 0) { if (cars[i].velocityTheta >= 0) { v3 = cars[i].posX + Math.cos(cars[i].heading) * cars[i].backSideX + Math.cos(cars[i].heading + PIHALF) * cars[i].backSideY + cars[i].velocityX; v4 = cars[i].posY + Math.sin(cars[i].heading) * cars[i].backSideX + Math.sin(cars[i].heading + PIHALF) * cars[i].backSideY + cars[i].velocityY; if (carHolder.hitTest(v3, v4, true)) { collideCheckAI(i, v3, v4); } } else { v3 = cars[i].posX + Math.cos(cars[i].heading) * cars[i].backSideX3 + Math.cos(cars[i].heading + PIHALF) * cars[i].backSideY3 + cars[i].velocityX; v4 = cars[i].posY + Math.sin(cars[i].heading) * cars[i].backSideX3 + Math.sin(cars[i].heading + PIHALF) * cars[i].backSideY3 + cars[i].velocityY; if (carHolder.hitTest(v3, v4, true)) { collideCheckAI(i, v3, v4); } } } else { if (cars[i].velocityTheta >= 0) { v3 = cars[i].posX + Math.cos(cars[i].heading) * cars[i].backSideX2 + Math.cos(cars[i].heading + PIHALF) * cars[i].backSideY2 + cars[i].velocityX; v4 = cars[i].posY + Math.sin(cars[i].heading) * cars[i].backSideX2 + Math.sin(cars[i].heading + PIHALF) * cars[i].backSideY2 + cars[i].velocityY; if (carHolder.hitTest(v3, v4, true)) { collideCheckAI(i, v3, v4); } } } if (cars[i].isAlive) { if (Math.random() < 0.05) { cars[i].changeCState(); } if (Math.random() < 0.1) { if (!cars[i].sprite.hitTest(pCar.sprite)) { cars[i].heading += Math.random() * cars[i].turnMax * 2 - cars[i].turnMax; } } switch (cars[i].cState) { case 0: cars[i].chase(pCar.posX, pCar.posY && cars[i].destroyed == false); break; case 1: if (cars[cars[i].prey].isAlive && cars[i].destroyed == false) { cars[i].chase(cars[cars[i].prey].posX, cars[cars[i].prey].posY); } break; case 2: if (cars[i].destroyed == false) { cars[i].chase(ellipseX, ellipseY); } break; case 3: if (floor2.hitTest(cars[i].posX, cars[i].posY, true) == false && cars[i].destroyed == false) { cars[i].chase(ellipseX, ellipseY); } break; case 4: } } if (leftWall.hitTest(cars[i].sprite) || rightWall.hitTest(cars[i].sprite) || topWall.hitTest(cars[i].sprite) || bottomWall.hitTest(cars[i].sprite)) { if (cars[i].destroyed == false) { cars[i].velocityX = -cars[i].velocityX * 0.95; cars[i].velocityY = -cars[i].velocityY * 0.95; if (!pCar.sprite.hitTest(cars[i].sprite)) { cars[i].turnDirection = 1; cars[i].turn2(); cars[i].turn2(); } centerHome(cars[i]); } else { cars[i].velocityX = 0; cars[i].velocityY = 0; } } if (leftWall.hitTest(cars[i].sprite) && cars[i].destroyed) { cars[i].posX += 2; } if (rightWall.hitTest(cars[i].sprite) && cars[i].destroyed) { cars[i].posX -= 2; } if (topWall.hitTest(cars[i].sprite) && cars[i].destroyed) { cars[i].posY += 2; } if (bottomWall.hitTest(cars[i].sprite) && cars[i].destroyed) { cars[i].posY -= 2; } ++i; } i = 0; while (i < carCount) { if (cars[i].speedMomentum < 0) { if (cars[i].speedMomentum < -cars[i].frictionRolling) { cars[i].velocityX += Math.cos(cars[i].heading) * cars[i].frictionRolling; cars[i].velocityY += Math.sin(cars[i].heading) * cars[i].frictionRolling; } else { cars[i].velocityX -= Math.cos(cars[i].heading) * cars[i].speedMomentum; cars[i].velocityY -= Math.sin(cars[i].heading) * cars[i].speedMomentum; } } else { if (cars[i].speedMomentum > 0) { if (cars[i].speedMomentum > cars[i].frictionRolling) { cars[i].velocityX -= Math.cos(cars[i].heading) * cars[i].frictionRolling; cars[i].velocityY -= Math.sin(cars[i].heading) * cars[i].frictionRolling; } else { cars[i].velocityX -= Math.cos(cars[i].heading) * cars[i].speedMomentum; cars[i].velocityY -= Math.sin(cars[i].heading) * cars[i].speedMomentum; } } } if (cars[i].velocityLateral < 0) { if (Math.abs(cars[i].velocityLateral) < cars[i].tireGrip) { cars[i].velocityX += Math.cos(cars[i].heading + PIHALF) * Math.abs(cars[i].velocityLateral); cars[i].velocityY += Math.sin(cars[i].heading + PIHALF) * Math.abs(cars[i].velocityLateral); } else { cars[i].velocityX += Math.cos(cars[i].heading + PIHALF) * cars[i].tireGrip; cars[i].velocityY += Math.sin(cars[i].heading + PIHALF) * cars[i].tireGrip; } } else { if (cars[i].velocityLateral > 0) { if (Math.abs(cars[i].velocityLateral) < cars[i].tireGrip) { cars[i].velocityX += Math.cos(cars[i].heading - PIHALF) * Math.abs(cars[i].velocityLateral); cars[i].velocityY += Math.sin(cars[i].heading - PIHALF) * Math.abs(cars[i].velocityLateral); } else { cars[i].velocityX += Math.cos(cars[i].heading - PIHALF) * cars[i].tireGrip; cars[i].velocityY += Math.sin(cars[i].heading - PIHALF) * cars[i].tireGrip; } } } ++i; } i = 0; while (i < carCount) { cars[i].posX += cars[i].velocityX; cars[i].posY += cars[i].velocityY; ++i; } if (pCar.sprite.hitTest(leftWall) || pCar.sprite.hitTest(rightWall) || pCar.sprite.hitTest(bottomWall) || pCar.sprite.hitTest(topWall)) { if (pCar.velocityX < pCar.speedMaxReverse / Math.SQRT2) { pCar.velocityX = pCar.speedMaxReverse / Math.SQRT2; } else { if (pCar.velocityX > pCar.speedMax / Math.SQRT2) { pCar.velocityX = pCar.speedMax / Math.SQRT2; } } if (pCar.velocityY < pCar.speedMaxReverse / Math.SQRT2) { pCar.velocityY = pCar.speedMaxReverse / Math.SQRT2; } else { if (pCar.velocityY > pCar.speedMax / Math.SQRT2) { pCar.velocityY = pCar.speedMax / Math.SQRT2; } } pCar.velocityX = -pCar.velocityX * 0.95; pCar.velocityY = -pCar.velocityY * 0.95; } if (!Key.isDown(38)) { onlyOnce = playSpeedUp; _root.topSpeed.stop('topSpeedFx'); topSpeedOnce = playTopSpeed; } if (Key.isDown(38) && _root.greenLight == true) { if (pCar.speedMomentum < pCar.speedMax || isNaN(pCar.speedMomentum)) { onlyOnce(); onlyOnce = null; if (pCar.speedMax - pCar.speedMomentum < pCar.acceleration) { acceleration = pCar.speedMax - pCar.speedMomentum; } else { acceleration = pCar.acceleration; } } else { acceleration = 0; topSpeedOnce(); topSpeedOnce = null; } pCar.velocityX += Math.cos(pCar.heading) * acceleration; pCar.velocityY += Math.sin(pCar.heading) * acceleration; } else { if (Key.isDown(40) && _root.greenLight == true) { acceleration = -pCar.acceleration; if (pCar.speedMomentum > pCar.speedMaxReverse || isNaN(pCar.speedMomentum)) { if (pCar.speedMax - pCar.speedMomentum < pCar.acceleration) { acceleration = -(pCar.speedMax - pCar.speedMomentum); } else { acceleration = -pCar.acceleration; } } else { acceleration = 0; } pCar.velocityX += Math.cos(pCar.heading) * acceleration; pCar.velocityY += Math.sin(pCar.heading) * acceleration; } else { acceleration = 0; } } var v5 = true; var v6 = true; i = 0; while (i < arenaCarCapacity) { if (pCar.sprite.panelLeft.hitTest(leftWall) || pCar.sprite.panelLeft.hitTest(rightWall) || pCar.sprite.panelLeft.hitTest(topWall) || pCar.sprite.panelLeft.hitTest(bottomWall)) { v5 = false; } if (pCar.sprite.panelRight.hitTest(leftWall) || pCar.sprite.panelRight.hitTest(rightWall) || pCar.sprite.panelRight.hitTest(topWall) || pCar.sprite.panelRight.hitTest(bottomWall)) { v6 = false; } ++i; } if (Key.isDown(37) && v5 == true && (pCar.velocityX > 3 || pCar.velocityY > 3 || pCar.velocityX < -3 || pCar.velocityY < -3) && !Key.isDown(38) && !Key.isDown(40)) { if (pCar.speedMomentum >= 0) { pCar.heading -= pCar.turnMax * leftTurnIncrement; leftTurnIncrement += 0.05; if (leftTurnIncrement >= 1) { leftTurnIncrement = 1; } } else { pCar.heading += pCar.turnMax * leftTurnIncrement; leftTurnIncrement += 0.05; if (leftTurnIncrement >= 1) { leftTurnIncrement = 1; } } } else { if (Key.isDown(37) && v5 == true && Key.isDown(38) && _root.greenLight == true) { pCar.heading -= pCar.turnMax * leftTurnIncrement; leftTurnIncrement += 0.05; if (leftTurnIncrement >= 1) { leftTurnIncrement = 1; } } else { if (Key.isDown(37) && v5 == true && Key.isDown(40) && _root.greenLight == true) { pCar.heading += pCar.turnMax * leftTurnIncrement; leftTurnIncrement += 0.05; if (leftTurnIncrement >= 1) { leftTurnIncrement = 1; } } else { if (!Key.isDown(37)) { leftTurnIncrement = 0.05; } } } } if (Key.isDown(39) && !Key.isDown(40) && !Key.isDown(38) && v6 == true && (pCar.velocityX > 3 || pCar.velocityY > 3 || pCar.velocityX < -3 || pCar.velocityY < -3)) { if (pCar.speedMomentum >= 0) { pCar.heading += pCar.turnMax * rightTurnIncrement; rightTurnIncrement += 0.05; if (rightTurnIncrement >= 1) { rightTurnIncrement = 1; } } else { pCar.heading -= pCar.turnMax * rightTurnIncrement; rightTurnIncrement += 0.05; if (rightTurnIncrement >= 1) { rightTurnIncrement = 1; } } } else { if (Key.isDown(39) && v6 == true && Key.isDown(38) && _root.greenLight == true) { pCar.heading += pCar.turnMax * rightTurnIncrement; rightTurnIncrement += 0.05; if (rightTurnIncrement >= 1) { rightTurnIncrement = 1; } } else { if (Key.isDown(39) && v6 == true && Key.isDown(40) && _root.greenLight == true) { pCar.heading -= pCar.turnMax * rightTurnIncrement; rightTurnIncrement += 0.05; if (rightTurnIncrement >= 1) { rightTurnIncrement = 1; } } else { if (!Key.isDown(39)) { rightTurnIncrement = 0.05; } } } } if (pCar.speedMomentum < 0) { if (pCar.speedMomentum < -pCar.frictionRolling) { pCar.velocityX += Math.cos(pCar.heading) * pCar.frictionRolling; pCar.velocityY += Math.sin(pCar.heading) * pCar.frictionRolling; } else { pCar.velocityX -= Math.cos(pCar.heading) * pCar.speedMomentum; pCar.velocityY -= Math.sin(pCar.heading) * pCar.speedMomentum; } } else { if (pCar.speedMomentum > 0) { if (pCar.speedMomentum > pCar.frictionRolling) { pCar.velocityX -= Math.cos(pCar.heading) * pCar.frictionRolling; pCar.velocityY -= Math.sin(pCar.heading) * pCar.frictionRolling; } else { pCar.velocityX -= Math.cos(pCar.heading) * pCar.speedMomentum; pCar.velocityY -= Math.sin(pCar.heading) * pCar.speedMomentum; } } } if (pCar.velocityLateral < 0) { if (Math.abs(pCar.velocityLateral) < pCar.tireGrip) { pCar.velocityX += Math.cos(pCar.heading + PIHALF) * Math.abs(pCar.velocityLateral); pCar.velocityY += Math.sin(pCar.heading + PIHALF) * Math.abs(pCar.velocityLateral); } else { pCar.velocityX += Math.cos(pCar.heading + PIHALF) * pCar.tireGrip; pCar.velocityY += Math.sin(pCar.heading + PIHALF) * pCar.tireGrip; } } else { if (pCar.velocityLateral > 0) { if (Math.abs(pCar.velocityLateral) < pCar.tireGrip) { pCar.velocityX += Math.cos(pCar.heading - PIHALF) * Math.abs(pCar.velocityLateral); pCar.velocityY += Math.sin(pCar.heading - PIHALF) * Math.abs(pCar.velocityLateral); } else { pCar.velocityX += Math.cos(pCar.heading - PIHALF) * pCar.tireGrip; pCar.velocityY += Math.sin(pCar.heading - PIHALF) * pCar.tireGrip; } } } drawVehicles(); } if (!lost || !won) { varHealth.frontHealthTxt.text = Math.round(pCar.healthFront); newFrontHealth = Math.round(pCar.healthFront); varHealth.leftHealthTxt.text = Math.round(pCar.healthLeft); newLeftHealth = Math.round(pCar.healthLeft); varHealth.rightHealthTxt.text = Math.round(pCar.healthRight); newRightHealth = Math.round(pCar.healthRight); varHealth.backHealthTxt.text = Math.round(pCar.healthBack); newBackHealth = Math.round(pCar.healthBack); } }; var originalSpeed = pCar.speedMax; _root.pauseGame.onRelease = function () { if (_root.gamePaused == false) { _root.pauseGame.gotoAndStop(2); _root.gamePaused = true; pCar.speedMax = 0; pCar.velocityX = 0; pCar.velocityY = 0; i = 0; while (i < arenaCarCapacity) { cars[i].speedMax = 0; cars[i].velocityX = 0; cars[i].velocityY = 0; ++i; } } else { _root.pauseGame.gotoAndStop(1); _root.gamePaused = false; pCar.speedMax = originalSpeed; if (levelCount == 1) { i = 0; while (i < arenaCarCapacity) { cars[i].speedMax = 6; ++i; } } } }; stop(); if (newMass != undefined) { pCar.mass = newMass; } if (newFrontShield != undefined) { pCar.shieldFront = newFrontShield; } if (newBackShield != undefined) { pCar.shieldBack = newBackShield; } if (newRightShield != undefined) { pCar.shieldRight = newRightShield; } if (newLeftShield != undefined) { pCar.shieldLeft = newLeftShield; } if (newSpeedMax != undefined) { pCar.speedMax = newSpeedMax; } if (newReverseSpeed != undefined) { pCar.speedMaxReverse = newReverseSpeed; } if (newAcceleration != undefined) { pCar.acceleration = newAcceleration; } if (carToPlay == 'model1') { pCar.sprite = carHolder.pCarA; var mapPcar = _parent.container.attachMovie('pCarAMap', 'pCarMap', _parent.container.getDepth() + 10); mapPcar = new CarPlayer1(); } if (carToPlay == 'model2') { pCar.sprite = carHolder.pCarB; var mapPcar = _parent.container.attachMovie('pCarBMap', 'pCarMap', _parent.container.getDepth() + 10); mapPcar = new CarPlayer2(); } if (carToPlay == 'model3') { pCar.sprite = carHolder.pCarC; var mapPcar = _parent.container.attachMovie('pCarCMap', 'pCarMap', _parent.container.getDepth() + 10); mapPcar = new CarPlayer3(); } if (carToPlay == 'model4') { pCar.sprite = carHolder.pCarD; var mapPcar = _parent.container.attachMovie('pCarDMap', 'pCarMap', _parent.container.getDepth() + 10); mapPcar = new CarPlayer4(); } gameState = 9; if (maxLeftHealth == undefined) { maxLeftHealth = pCar.healthLeftMax; } var newLeft = Math.floor(100 * pCar.healthLeft / maxLeftHealth); if (newLeft > 50) { pLeft.health1._alpha = 2 * (newLeft - 50); pLeft.health2._alpha = 100; } else { pLeft.health1._alpha = 0; pLeft.health2._alpha = 2 * newLeft; } if (maxRightHealth == undefined) { maxRightHealth = pCar.healthRightMax; } var newRight = Math.floor(100 * pCar.healthRight / maxRightHealth); if (newRight > 50) { pRight.health1._alpha = 2 * (newRight - 50); pRight.health2._alpha = 100; } else { pRight.health1._alpha = 0; pRight.health2._alpha = 2 * newRight; } if (maxFrontHealth == undefined) { maxFrontHealth = pCar.healthFrontMax; } var newFront = Math.floor(100 * pCar.healthFront / maxFrontHealth); if (newFront > 50) { pFront.health1._alpha = 2 * (newFront - 50); pFront.health2._alpha = 100; } else { pFront.health1._alpha = 0; pFront.health2._alpha = 2 * newFront; } if (maxBackHealth == undefined) { maxBackHealth = pCar.healthBackMax; } var newBack = Math.floor(100 * pCar.healthBack / maxBackHealth); if (newBack > 50) { pBack.health1._alpha = 2 * (newBack - 50); pBack.health2._alpha = 100; } else { pBack.health1._alpha = 0; pBack.health2._alpha = 2 * newBack; } if (pCar.healthLeft >= pCar.healthLeftMax * 0.75) { pCar.sprite.panelLeft.gotoAndStop('dmg0'); } else { if (pCar.healthLeft >= pCar.healthLeftMax * 0.5) { pCar.sprite.panelLeft.gotoAndStop('dmg1'); } else { if (pCar.healthLeft >= pCar.healthLeftMax * 0.25) { pCar.sprite.panelLeft.gotoAndStop('dmg2'); } else { if (pCar.healthLeft > 0) { pCar.sprite.panelLeft.gotoAndStop('dmg3'); } } } } if (pCar.healthRight >= pCar.healthRightMax * 0.75) { pCar.sprite.panelRight.gotoAndStop('dmg0'); } else { if (pCar.healthRight >= pCar.healthRightMax * 0.5) { pCar.sprite.panelRight.gotoAndStop('dmg1'); } else { if (pCar.healthRight >= pCar.healthRightMax * 0.25) { pCar.sprite.panelRight.gotoAndStop('dmg2'); } else { if (pCar.healthRight > 0) { pCar.sprite.panelRight.gotoAndStop('dmg3'); } } } } if (pCar.healthFront >= pCar.healthFrontMax * 0.75) { pCar.sprite.panelFront.gotoAndStop('dmg0'); } else { if (pCar.healthFront >= pCar.healthFrontMax * 0.5) { pCar.sprite.panelFront.gotoAndStop('dmg1'); } else { if (pCar.healthFront >= pCar.healthFrontMax * 0.25) { pCar.sprite.panelFront.gotoAndStop('dmg2'); } else { if (pCar.healthFront > 0) { pCar.sprite.panelFront.gotoAndStop('dmg3'); } } } } if (pCar.healthBack >= pCar.healthBackMax * 0.75) { pCar.sprite.panelBack.gotoAndStop('dmg0'); } else { if (pCar.healthBack >= pCar.healthBackMax * 0.5) { pCar.sprite.panelBack.gotoAndStop('dmg1'); } else { if (pCar.healthBack >= pCar.healthBackMax * 0.25) { pCar.sprite.panelBack.gotoAndStop('dmg2'); } else { if (pCar.healthBack > 0) { pCar.sprite.panelBack.gotoAndStop('dmg3'); } } } } var life = 0; var lifeTime; var boost1; var boosterInMap; var ranBoosterType; if (_root.muted == false) { _root.idle.start(0.1, 99999); _root.sGentlemen.start(); _root.sCarStart.start(); } var boostInterval = setInterval(this, 'createBooster', 25000); trace(boostInterval); _parent.playPauseSound.onPress = function () { soundIsOn = !soundIsOn; }; stop(); } frame 4 { function midHealthFont() { if (pFront.health1._alpha < pLeft.health1._alpha) { if (pFront.health1._alpha < pRight.health1._alpha) { if (pFront.health1._alpha < pBack.health1._alpha) { pMid.health1._alpha = pFront.health1._alpha; } else { pMid.health1._alpha = pBack.health1._alpha; } } else { if (pRight.health1._alpha < pBack.health1._alpha) { pMid.health1._alpha = pRight.health1._alpha; } else { pMid.health1._alpha = pBack.health1._alpha; } } } else { if (pLeft.health1._alpha < pRight.health1._alpha) { if (pLeft.health1._alpha < pBack.health1._alpha) { pMid.health1._alpha = pLeft.health1._alpha; } else { pMid.health1._alpha = pBack.health1._alpha; } } else { if (pRight.health1._alpha < pBack.health1._alpha) { pMid.health1._alpha = pRight.health1._alpha; } else { pMid.health1._alpha = pBack.health1._alpha; } } } if (pFront.health2._alpha < pLeft.health2._alpha) { if (pFront.health2._alpha < pRight.health2._alpha) { if (pFront.health2._alpha < pBack.health2._alpha) { pMid.health2._alpha = pFront.health2._alpha; } else { pMid.health2._alpha = pBack.health2._alpha; } } else { if (pRight.health2._alpha < pBack.health2._alpha) { pMid.health2._alpha = pRight.health2._alpha; } else { pMid.health2._alpha = pBack.health2._alpha; } } } else { if (pLeft.health2._alpha < pRight.health2._alpha) { if (pLeft.health2._alpha < pBack.health2._alpha) { pMid.health2._alpha = pLeft.health2._alpha; } else { pMid.health2._alpha = pBack.health2._alpha; } } else { if (pRight.health2._alpha < pBack.health2._alpha) { pMid.health2._alpha = pRight.health2._alpha; } else { pMid.health2._alpha = pBack.health2._alpha; } } } } function resetValues() { _parent.winAmountTxt.text = winAmount; winAmountTxt2.text = winAmount; pFront.health1._alpha = 100; pLeft.health1._alpha = 100; pRight.health1._alpha = 100; pBack.health1._alpha = 100; pMid.health1._alpha = 100; pFront.health2._alpha = 100; pLeft.health2._alpha = 100; pRight.health2._alpha = 100; pBack.health2._alpha = 100; pMid.health2._alpha = 100; massCount = 0; speedCount = 0; accelCount = 0; revCount = 0; fShieldCount = 0; bShieldCount = 0; lShieldCount = 0; rShieldCount = 0; gotoAndStop('gameStart'); } previousLevelTxt.text = levelCount - 1; newLevelTxt.text = levelCount; car3model._visible = false; car4model._visible = false; _root.pauseGame._visible = false; flameDodger._visible = false; var fullCostLeftP = 50; var fullCostRightP = 50; var fullCostBackP = 50; var fullCostFrontP = 100; var repLeft = Math.floor(((pCar.healthLeftMax - parseInt(varHealth.leftHealthTxt.text)) / 100) * fullCostLeftP * 100); var repRight = Math.floor(((pCar.healthRightMax - parseInt(varHealth.rightHealthTxt.text)) / 100) * fullCostRightP * 100); var repBack = Math.floor(((pCar.healthBackMax - parseInt(varHealth.backHealthTxt.text)) / 100) * fullCostBackP * 100); var repFront = Math.floor(((pCar.healthFrontMax - parseInt(varHealth.frontHealthTxt.text)) / 100) * fullCostFrontP * 100); carValue = Math.round(carValue - repFront / 2 - repBack / 2 - repLeft / 2 - repRight / 2); if (carValue <= 0) { carValue = 0; } if (carToPlay != 'model4') { upgradeMass.text = 'Mass: ' + upgradeCar.mass; upgradeSpeed.text = 'Speed: ' + upgradeCar.speedMax * 10; upgradeAccel.text = 'Acceleration: ' + upgradeCar.acceleration; upgradeReverse.text = 'Reverse Speed: ' + Math.abs(upgradeCar.speedMaxReverse); upgradeFShield.text = 'Front Shield: ' + upgradeCar.shieldFront; upgradeBShield.text = 'Back Shield: ' + upgradeCar.shieldBack; upgradeLShield.text = 'Left Shield: ' + upgradeCar.shieldLeft; upgradeRShield.text = 'Right Shield: ' + upgradeCar.shieldRight; afterBurner._visible = false; } else { upgradeMass.text = ''; upgradeSpeed.text = ''; upgradeAccel.text = ''; upgradeReverse.text = ''; upgradeFShield.text = ''; upgradeBShield.text = ''; upgradeLShield.text = ''; upgradeRShield.text = ''; afterBurner._visible = false; } carValueTxt.text = carValue; massDisplay.text = pCar.mass; speedDisplay.text = pCar.speedMax * 10; accelDisplay.text = pCar.acceleration; reverseDisplay.text = Math.abs(pCar.speedMaxReverse); fShieldDisplay.text = pCar.shieldFront; lShieldDisplay.text = pCar.shieldLeft; rShieldDisplay.text = pCar.shieldRight; bShieldDisplay.text = pCar.shieldBack; _parent.currentListen._visible = false; _parent.trackInfo._visible = false; _parent.myLogo._visible = false; _parent.playPauseSound._visible = false; _parent.winAmountTxt._visible = false; _parent.bottomDark._visible = false; _root.dashboard._visible = false; _parent.dollar._visible = false; _parent.dmgIndicator._visible = false; _parent.success._visible = false; removeMovieClip(_parent.container); _parent.game_stage._x = 400; _parent.game_stage._y = 300; var dollarMultiplier = 1; var upgradeCost; if (carToPlay == 'model1') { _parent.health_mcD._visible = false; _parent.health_mcC._visible = false; _parent.health_mcB._visible = false; _parent.health_mcA._visible = true; _parent.health_mcA._x = 152; _parent.health_mcA._y = 215; car3model.enabled = false; car4model.enabled = false; varHealth = _parent.health_mcA; upgradeCost = 50000; } if (carToPlay == 'model2') { _parent.health_mcD._visible = false; _parent.health_mcC._visible = false; _parent.health_mcB._visible = true; _parent.health_mcA._visible = false; _parent.health_mcB._x = 152; _parent.health_mcB._y = 215; dollarMultiplier = 2; fireStarter._visible = false; flameDodger._visible = true; car2model._visible = false; car4model.enabled = false; varHealth = _parent.health_mcB; upgradeCost = 100000; upgradeCar = new CarPlayer3(); car3model._visible = true; } if (carToPlay == 'model3') { flameDodger._visible = false; afterBurner._visible = true; car3model._visible = false; car4model._visible = true; _parent.health_mcD._visible = false; _parent.health_mcC._visible = true; _parent.health_mcB._visible = false; _parent.health_mcA._visible = false; _parent.health_mcC._x = 152; _parent.health_mcC._y = 215; dollarMultiplier = 3; car2model._visible = false; car3model._visible = false; varHealth = _parent.health_mcC; upgradeCost = 150000; upgradeCar = new CarPlayer4(); } if (carToPlay == 'model4') { _parent.health_mcD._visible = true; _parent.health_mcC._visible = false; _parent.health_mcB._visible = false; _parent.health_mcA._visible = false; _parent.health_mcD._x = 152; _parent.health_mcD._y = 215; fireStarter._visible = false; flameDodger._visible = false; afterBurner._visible = true; upgradeCarBg._visible = false; afterBurner.text = 'All Cars Purchased'; car2model._visible = false; car3model._visible = false; car4model._visible = false; dollarMultiplier = 4; varHealth = _parent.health_mcD; } i = 0; while (i < arenaCarCapacity) { cars[i].sprite.removeMovieClip(); ++i; } var minMass = pCar.mass; var minSpeedMax = pCar.speedMax; var minAcceleration = pCar.acceleration; var minReverseSpeed = pCar.speedMaxReverse; var minFrontHealth = 0; var minBackHealth = 0; var minRightHealth = 0; var minLeftHealth = 0; var minFrontShield = pCar.shieldFront; var minBackShield = pCar.shieldBack; var minLeftShield = pCar.shieldLeft; var minRightShield = pCar.shieldRight; var carSold = false; sellCar.onRelease = function () { sellCar._xscale = 100; sellCar._yscale = 100; if (carToPlay != 'model4') { if (winAmount + carValue >= upgradeCost) { varHealth._visible = false; winAmount += carValue; _parent.winAmountTxt.text = winAmount; winAmountTxt2.text = winAmount; carValue = 0; carValueTxt.text = carValue; sellCar._visible = false; carSold = true; } else { balInfTxt.text = 'Warning... if you sell your car, you won\'t have enough money to buy another one!'; } } else { balInfTxt.text = 'Umm, you own the best car in the game...'; } }; i = 1; while (i <= 10) { massBar['strip' + i]._visible = false; ++i; } massMoney.text = '$10'; if (massCount == undefined) { var massCount = 0; } else { var i = 1; while (i <= massCount) { massBar['strip' + i]._visible = true; if (massCount + 1 < 10) { massMoney.text = '$' + (massCount + 1) * 1000 * dollarMultiplier; } else { massMoney.text = 'MAX'; } ++i; } } if (massCount < 10) { massMoney.text = '$' + 1000 * (massCount + 1) * dollarMultiplier; } else { massMoney.text = 'MAX'; } massBtn.onRelease = function () { if (massCount < 10 && winAmount - 1000 * (massCount + 1) * dollarMultiplier >= 0 && carSold == false) { ++massCount; massBar['strip' + massCount]._visible = true; winAmount -= 1000 * massCount * dollarMultiplier; carValue += 1000 * massCount * dollarMultiplier / 2; carValueTxt.text = carValue; _parent.winAmountTxt.text = winAmount; winAmountTxt2.text = winAmount; newMass = Math.round(pCar.baseMass + pCar.baseMass * massCount / 50); massDisplay.text = newMass; if (massCount < 10) { massMoney.text = '$' + 1000 * (massCount + 1) * dollarMultiplier; } else { massMoney.text = 'MAX'; } balInfTxt.text = ''; } else { if (massMoney.text == 'MAX') { balInfTxt.text = 'You are maxed out!'; } else { if (carSold == true) { balInfTxt.text = 'Hey goofball - you don\'t own a car!'; } else { balInfTxt.text = 'You don\'t have enough money!'; } } } }; i = 1; while (i <= 10) { speedBar['strip' + i]._visible = false; ++i; } speedMoney.text = '$' + 1000 * dollarMultiplier; if (speedCount == undefined) { var speedCount = 0; } else { var i = 1; while (i <= speedCount) { speedBar['strip' + i]._visible = true; if (speedCount + 1 < 10) { speedMoney.text = '$' + (speedCount + 1) * 1000 * dollarMultiplier; } else { speedMoney.text = 'MAX'; } ++i; } } if (speedCount < 10) { speedMoney.text = '$' + 1000 * (speedCount + 1) * dollarMultiplier; } else { speedMoney.text = 'MAX'; } speedBtn.onRelease = function () { if (speedCount < 10 && winAmount - 1000 * (speedCount + 1) * dollarMultiplier >= 0 && carSold == false) { ++speedCount; speedBar['strip' + speedCount]._visible = true; winAmount -= 1000 * speedCount * dollarMultiplier; carValue += 1000 * speedCount * dollarMultiplier / 2; carValueTxt.text = carValue; _parent.winAmountTxt.text = winAmount; winAmountTxt2.text = winAmount; newSpeedMax = pCar.baseSpeedMax + speedCount / 5; speedDisplay.text = Math.round(newSpeedMax * 10); if (speedCount < 10) { speedMoney.text = '$' + 1000 * (speedCount + 1) * dollarMultiplier; } else { speedMoney.text = 'MAX'; } balInfTxt.text = ''; } else { if (speedMoney.text == 'MAX') { balInfTxt.text = 'You are maxed out!'; } else { if (carSold == true) { balInfTxt.text = 'Hey goofball - you don\'t own a car!'; } else { balInfTxt.text = 'You don\'t have enough money!'; } } } }; i = 1; while (i <= 10) { accelBar['strip' + i]._visible = false; ++i; } accelMoney.text = '$' + 1000 * dollarMultiplier; if (accelCount == undefined) { var accelCount = 0; } else { var i = 1; while (i <= accelCount) { accelBar['strip' + i]._visible = true; if (accelCount + 1 < 10) { accelMoney.text = '$' + (accelCount + 1) * 1000 * dollarMultiplier; } else { accelMoney.text = 'MAX'; } ++i; } } if (accelCount < 10) { accelMoney.text = '$' + 1000 * (accelCount + 1) * dollarMultiplier; } else { accelMoney.text = 'MAX'; } accelBtn.onRelease = function () { if (accelCount < 10 && winAmount - 1000 * (accelCount + 1) * dollarMultiplier >= 0 && carSold == false) { ++accelCount; accelBar['strip' + accelCount]._visible = true; winAmount -= 1000 * accelCount * dollarMultiplier; carValue += 1000 * accelCount * dollarMultiplier / 2; carValueTxt.text = carValue; _parent.winAmountTxt.text = winAmount; winAmountTxt2.text = winAmount; newAcceleration = pCar.baseAcceleration + pCar.baseAcceleration * accelCount / 10; accelDisplay.text = newAcceleration; if (accelCount < 10) { accelMoney.text = '$' + 1000 * (accelCount + 1) * dollarMultiplier; } else { accelMoney.text = 'MAX'; } balInfTxt.text = ''; } else { if (accelMoney.text == 'MAX') { balInfTxt.text = 'You are maxed out!'; } else { if (carSold == true) { balInfTxt.text = 'Hey goofball - you don\'t own a car!'; } else { balInfTxt.text = 'You don\'t have enough money!'; } } } }; i = 1; while (i <= 10) { revBar['strip' + i]._visible = false; ++i; } revMoney.text = '$' + 1000 * dollarMultiplier; if (revCount == undefined) { var revCount = 0; } else { var i = 1; while (i <= revCount) { revBar['strip' + i]._visible = true; if (revCount + 1 < 10) { revMoney.text = '$' + (revCount + 1) * 1000 * dollarMultiplier; } else { revMoney.text = 'MAX'; } ++i; } } if (revCount < 10) { revMoney.text = '$' + 1000 * (revCount + 1) * dollarMultiplier; } else { revMoney.text = 'MAX'; } revBtn.onRelease = function () { if (revCount < 10 && winAmount - 1000 * (revCount + 1) * dollarMultiplier >= 0 && carSold == false) { ++revCount; revBar['strip' + revCount]._visible = true; winAmount -= 1000 * revCount * dollarMultiplier; carValue += 1000 * revCount * dollarMultiplier / 2; carValueTxt.text = carValue; _parent.winAmountTxt.text = winAmount; winAmountTxt2.text = winAmount; newReverseSpeed = pCar.baseSpeedMaxReverse + pCar.baseSpeedMaxReverse * revCount / 10; reverseDisplay.text = Math.abs(newReverseSpeed); if (revCount < 10) { revMoney.text = '$' + 1000 * (revCount + 1) * dollarMultiplier; } else { revMoney.text = 'MAX'; } balInfTxt.text = ''; } else { if (revMoney.text == 'MAX') { balInfTxt.text = 'You are maxed out!'; } else { if (carSold == true) { balInfTxt.text = 'Hey goofball - you don\'t own a car!'; } else { balInfTxt.text = 'You don\'t have enough money!'; } } } }; i = 1; while (i <= 10) { fShieldBar['strip' + i]._visible = false; ++i; } fShieldMoney.text = '$' + 1000 * dollarMultiplier; if (fShieldCount == undefined) { var fShieldCount = 0; } else { var i = 1; while (i <= fShieldCount) { fShieldBar['strip' + i]._visible = true; if (fShieldCount + 1 < 10) { fShieldMoney.text = '$' + (fShieldCount + 1) * 1000 * dollarMultiplier; } else { fShieldMoney.text = 'MAX'; } ++i; } } _parent.winAmountTxt.text = winAmount; winAmountTxt2.text = winAmount; if (fShieldCount < 10) { fShieldMoney.text = '$' + 1000 * (fShieldCount + 1) * dollarMultiplier; } else { fShieldMoney.text = 'MAX'; } fShieldBtn.onRelease = function () { if (fShieldCount < 10 && winAmount - 1000 * (fShieldCount + 1) * dollarMultiplier >= 0 && carSold == false) { ++fShieldCount; fShieldBar['strip' + fShieldCount]._visible = true; winAmount -= 1000 * fShieldCount * dollarMultiplier; carValue += 1000 * fShieldCount * dollarMultiplier / 2; carValueTxt.text = carValue; _parent.winAmountTxt.text = winAmount; winAmountTxt2.text = winAmount; newFrontShield = pCar.baseShieldFront + pCar.baseShieldFront * fShieldCount / 10; fShieldDisplay.text = newFrontShield; if (fShieldCount < 10) { fShieldMoney.text = '$' + 1000 * (fShieldCount + 1) * dollarMultiplier; } else { fShieldMoney.text = 'MAX'; } balInfTxt.text = ''; } else { if (fShieldMoney.text == 'MAX') { balInfTxt.text = 'You are maxed out!'; } else { if (carSold == true) { balInfTxt.text = 'Hey goofball - you don\'t own a car!'; } else { balInfTxt.text = 'You don\'t have enough money!'; } } } }; i = 1; while (i <= 10) { bShieldBar['strip' + i]._visible = false; ++i; } bShieldMoney.text = '$' + 1000 * dollarMultiplier; if (bShieldCount == undefined) { var bShieldCount = 0; } else { var i = 1; while (i <= bShieldCount) { bShieldBar['strip' + i]._visible = true; if (bShieldCount + 1 < 10) { bShieldMoney.text = '$' + (bShieldCount + 1) * 1000 * dollarMultiplier; } else { bShieldMoney.text = 'MAX'; } ++i; } } _parent.winAmountTxt.text = winAmount; winAmountTxt2.text = winAmount; if (bShieldCount < 10) { bShieldMoney.text = '$' + 1000 * dollarMultiplier * (bShieldCount + 1); } else { bShieldMoney.text = 'MAX'; } bShieldBtn.onRelease = function () { if (bShieldCount < 10 && winAmount - 1000 * dollarMultiplier * (bShieldCount + 1) >= 0 && carSold == false) { ++bShieldCount; bShieldBar['strip' + bShieldCount]._visible = true; winAmount -= 1000 * dollarMultiplier * bShieldCount; carValue += 1000 * bShieldCount * dollarMultiplier / 2; carValueTxt.text = carValue; _parent.winAmountTxt.text = winAmount; winAmountTxt2.text = winAmount; newBackShield = pCar.baseShieldBack + pCar.baseShieldBack * bShieldCount / 10; bShieldDisplay.text = newBackShield; if (bShieldCount < 10) { bShieldMoney.text = '$' + 1000 * dollarMultiplier * (bShieldCount + 1); } else { bShieldMoney.text = 'MAX'; } balInfTxt.text = ''; } else { if (bShieldMoney.text == 'MAX') { balInfTxt.text = 'You are maxed out!'; } else { if (carSold == true) { balInfTxt.text = 'Hey goofball - you don\'t own a car!'; } else { balInfTxt.text = 'You don\'t have enough money!'; } } } }; i = 1; while (i <= 10) { lShieldBar['strip' + i]._visible = false; ++i; } lShieldMoney.text = '$' + 1000 * dollarMultiplier; if (lShieldCount == undefined) { var lShieldCount = 0; } else { var i = 1; while (i <= lShieldCount) { lShieldBar['strip' + i]._visible = true; if (lShieldCount + 1 < 10) { lShieldMoney.text = '$' + (lShieldCount + 1) * 1000 * dollarMultiplier; } else { lShieldMoney.text = 'MAX'; } ++i; } } _parent.winAmountTxt.text = winAmount; winAmountTxt2.text = winAmount; if (lShieldCount < 10) { lShieldMoney.text = '$' + 1000 * dollarMultiplier * (lShieldCount + 1); } else { lShieldMoney.text = 'MAX'; } lShieldBtn.onRelease = function () { if (lShieldCount < 10 && winAmount - 1000 * dollarMultiplier * (lShieldCount + 1) >= 0 && carSold == false) { ++lShieldCount; lShieldBar['strip' + lShieldCount]._visible = true; winAmount -= 1000 * dollarMultiplier * lShieldCount; carValue += 1000 * lShieldCount * dollarMultiplier / 2; carValueTxt.text = carValue; _parent.winAmountTxt.text = winAmount; winAmountTxt2.text = winAmount; newLeftShield = pCar.baseShieldLeft + pCar.baseShieldLeft * lShieldCount / 10; lShieldDisplay.text = newLeftShield; if (lShieldCount < 10) { lShieldMoney.text = '$' + 1000 * dollarMultiplier * (lShieldCount + 1); } else { lShieldMoney.text = 'MAX'; } balInfTxt.text = ''; } else { if (lShieldMoney.text == 'MAX') { balInfTxt.text = 'You are maxed out!'; } else { if (carSold == true) { balInfTxt.text = 'Hey goofball - you don\'t own a car!'; } else { balInfTxt.text = 'You don\'t have enough money!'; } } } }; i = 1; while (i <= 10) { rShieldBar['strip' + i]._visible = false; ++i; } rShieldMoney.text = '$' + 1000 * dollarMultiplier; if (rShieldCount == undefined) { var rShieldCount = 0; } else { var i = 1; while (i <= rShieldCount) { rShieldBar['strip' + i]._visible = true; if (rShieldCount + 1 < 10) { rShieldMoney.text = '$' + (rShieldCount + 1) * 1000 * dollarMultiplier; } else { rShieldMoney.text = 'MAX'; } ++i; } } _parent.winAmountTxt.text = winAmount; winAmountTxt2.text = winAmount; if (rShieldCount < 10) { rShieldMoney.text = '$' + 1000 * dollarMultiplier * (rShieldCount + 1); } else { rShieldMoney.text = 'MAX'; } rShieldBtn.onRelease = function () { if (rShieldCount < 10 && winAmount - 1000 * dollarMultiplier * (rShieldCount + 1) >= 0 && carSold == false) { ++rShieldCount; rShieldBar['strip' + rShieldCount]._visible = true; winAmount -= 1000 * dollarMultiplier * rShieldCount; carValue += 1000 * rShieldCount * dollarMultiplier / 2; carValueTxt.text = carValue; _parent.winAmountTxt.text = winAmount; winAmountTxt2.text = winAmount; newRightShield = pCar.baseShieldRight + pCar.baseShieldRight * rShieldCount / 10; rShieldDisplay.text = newRightShield; if (rShieldCount < 10) { rShieldMoney.text = '$' + 1000 * dollarMultiplier * (rShieldCount + 1); } else { rShieldMoney.text = 'MAX'; } balInfTxt.text = ''; } else { if (rShieldMoney.text == 'MAX') { balInfTxt.text = 'You are maxed out!'; } else { if (carSold == true) { balInfTxt.text = 'Hey goofball - you don\'t own a car!'; } else { balInfTxt.text = 'You don\'t have enough money!'; } } } }; if (repLeft >= 1) { pLeft.enabled = true; varHealth.leftHealthTxt.text = '$' + repLeft; } else { pLeft.enabled = false; varHealth.leftHealthTxt.text = ''; } if (repRight >= 1) { pRight.enabled = true; varHealth.rightHealthTxt.text = '$' + repRight; } else { pRight.enabled = false; varHealth.rightHealthTxt.text = ''; } if (repBack >= 1) { pBack.enabled = true; varHealth.backHealthTxt.text = '$' + repBack; } else { pBack.enabled = false; varHealth.backHealthTxt.text = ''; } if (repFront >= 1) { pFront.enabled = true; varHealth.frontHealthTxt.text = '$' + repFront; } else { pFront.enabled = false; varHealth.frontHealthTxt.text = ''; } pFront.onPress = function () { if (winAmount - repFront >= 0) { pFront.health1._alpha = 100; pFront.health2._alpha = 100; carValue += repFront / 2; carValueTxt.text = carValue; varHealth.frontHealthTxt.text = ''; winAmount -= repFront; _parent.winAmountTxt.text = winAmount; winAmountTxt2.text = winAmount; pCar.healthFront = pCar.healthFrontMax; midHealthFont(); this.enabled = false; balInfTxt.text = ''; } else { balInfTxt.text = 'You don\'t have enough money!'; } }; pBack.onPress = function () { if (winAmount - repBack >= 0) { pBack.health1._alpha = 100; pBack.health2._alpha = 100; carValue += repBack / 2; carValueTxt.text = carValue; varHealth.backHealthTxt.text = ''; winAmount -= repBack; _parent.winAmountTxt.text = winAmount; winAmountTxt2.text = winAmount; pCar.healthBack = pCar.healthBackMax; midHealthFont(); this.enabled = false; balInfTxt.text = ''; } else { balInfTxt.text = 'You don\'t have enough money!'; } }; pLeft.onPress = function () { if (winAmount - repLeft >= 0) { pLeft.health1._alpha = 100; pLeft.health2._alpha = 100; carValue += repLeft / 2; carValueTxt.text = carValue; varHealth.leftHealthTxt.text = ''; winAmount -= repLeft; _parent.winAmountTxt.text = winAmount; winAmountTxt2.text = winAmount; pCar.healthLeft = pCar.healthLeftMax; midHealthFont(); this.enabled = false; balInfTxt.text = ''; } else { balInfTxt.text = 'You don\'t have enough money!'; } }; pRight.onPress = function () { if (winAmount - repRight >= 0) { pRight.health1._alpha = 100; pRight.health2._alpha = 100; carValue += repRight / 2; carValueTxt.text = carValue; varHealth.rightHealthTxt.text = ''; winAmount -= repRight; _parent.winAmountTxt.text = winAmount; winAmountTxt2.text = winAmount; pCar.healthRight = pCar.healthRightMax; midHealthFont(); this.enabled = false; balInfTxt.text = ''; } else { balInfTxt.text = 'You don\'t have enough money!'; } }; var model2Cost = 50000; var model3Cost = 100000; var model4Cost = 150000; car2model.onPress = function () { if (winAmount >= model2Cost && carSold == true) { varHealth = _parent.health_mcB; carSold = false; carValue = 25000; carValueTxt.text = carValue; _parent.health_mcD._visible = false; _parent.health_mcC._visible = false; _parent.health_mcB._visible = true; _parent.health_mcA._visible = false; _parent.health_mcB._x = 152; _parent.health_mcB._y = 215; fireStarter._visible = false; flameDodger._visible = true; upgradeCar = new CarPlayer3(); pCar = new CarPlayer2(); car2model._visible = false; car3model._visible = true; upgradeMass.text = 'Mass: ' + upgradeCar.mass; upgradeSpeed.text = 'Speed: ' + upgradeCar.speedMax * 10; upgradeAccel.text = 'Acceleration: ' + upgradeCar.acceleration; upgradeReverse.text = 'Reverse Speed: ' + Math.abs(upgradeCar.speedMaxReverse); upgradeFShield.text = 'Front Shield: ' + upgradeCar.shieldFront; upgradeBShield.text = 'Back Shield: ' + upgradeCar.shieldBack; upgradeLShield.text = 'Left Shield: ' + upgradeCar.shieldLeft; upgradeRShield.text = 'Right Shield: ' + upgradeCar.shieldRight; massDisplay.text = pCar.mass; speedDisplay.text = pCar.speedMax * 10; accelDisplay.text = pCar.acceleration; reverseDisplay.text = Math.abs(pCar.speedMaxReverse); fShieldDisplay.text = pCar.shieldFront; lShieldDisplay.text = pCar.shieldLeft; rShieldDisplay.text = pCar.shieldRight; bShieldDisplay.text = pCar.shieldBack; dollarMultiplier = 2; pFront.health1._alpha = 100; pFront.health2._alpha = 100; pBack.health1._alpha = 100; pBack.health2._alpha = 100; pLeft.health1._alpha = 100; pLeft.health2._alpha = 100; pRight.health1._alpha = 100; pRight.health2._alpha = 100; varHealth.frontHealthTxt.text = ''; varHealth.backHealthTxt.text = ''; varHealth.leftHealthTxt.text = ''; varHealth.rightHealthTxt.text = ''; i = 1; while (i <= 10) { massBar['strip' + i]._visible = false; accelBar['strip' + i]._visible = false; speedBar['strip' + i]._visible = false; revBar['strip' + i]._visible = false; fShieldBar['strip' + i]._visible = false; bShieldBar['strip' + i]._visible = false; lShieldBar['strip' + i]._visible = false; rShieldBar['strip' + i]._visible = false; ++i; } massMoney.text = '$' + 1000 * dollarMultiplier; speedMoney.text = '$' + 1000 * dollarMultiplier; accelMoney.text = '$' + 1000 * dollarMultiplier; revMoney.text = '$' + 1000 * dollarMultiplier; fShieldMoney.text = '$' + 1000 * dollarMultiplier; bShieldMoney.text = '$' + 1000 * dollarMultiplier; lShieldMoney.text = '$' + 1000 * dollarMultiplier; rShieldMoney.text = '$' + 1000 * dollarMultiplier; winAmount -= model2Cost; _parent.winAmountTxt.text = winAmount; winAmountTxt2.text = winAmount; car3model.enabled = true; model3.enabled = true; massCount = 0; speedCount = 0; accelCount = 0; revCount = 0; fShieldCount = 0; bShieldCount = 0; lShieldCount = 0; rShieldCount = 0; minMass = pCar.mass; minSpeedMax = pCar.speedMax; minAcceleration = pCar.acceleration; minReverseSpeed = pCar.speedMaxReverse; minFrontHealth = 0; minBackHealth = 0; minRightHealth = 0; minLeftHealth = 0; minFrontShield = pCar.shieldFront; minBackShield = pCar.shieldBack; minLeftShield = pCar.shieldLeft; minRightShield = pCar.shieldRight; carToPlay = 'model2'; this._visible = false; balInfTxt.text = ''; } else { if (carSold == false) { balInfTxt.text = 'You have to sell your current car first!'; sellCar._xscale = 120; sellCar._yscale = 120; } else { balInfTxt.text = 'You don\'t have enough cash for that yet'; } } }; car3model.onPress = function () { if (winAmount >= model3Cost && carSold == true) { carToPlay = 'model3'; carSold = false; carValue = 50000; carValueTxt.text = carValue; pCar = new CarPlayer3(); upgradeCar = new CarPlayer4(); car3model._visible = false; car4model._visible = true; upgradeMass.text = 'Mass: ' + upgradeCar.mass; upgradeSpeed.text = 'Speed: ' + upgradeCar.speedMax * 10; upgradeAccel.text = 'Acceleration: ' + upgradeCar.acceleration; upgradeReverse.text = 'Reverse Speed: ' + Math.abs(upgradeCar.speedMaxReverse); upgradeFShield.text = 'Front Shield: ' + upgradeCar.shieldFront; upgradeBShield.text = 'Back Shield: ' + upgradeCar.shieldBack; upgradeLShield.text = 'Left Shield: ' + upgradeCar.shieldLeft; upgradeRShield.text = 'Right Shield: ' + upgradeCar.shieldRight; massDisplay.text = pCar.mass; speedDisplay.text = pCar.speedMax * 10; accelDisplay.text = pCar.acceleration; reverseDisplay.text = Math.abs(pCar.speedMaxReverse); fShieldDisplay.text = pCar.shieldFront; lShieldDisplay.text = pCar.shieldLeft; rShieldDisplay.text = pCar.shieldRight; bShieldDisplay.text = pCar.shieldBack; flameDodger._visible = false; afterBurner._visible = true; varHealth = _parent.health_mcC; _parent.health_mcD._visible = false; _parent.health_mcC._visible = true; _parent.health_mcB._visible = false; _parent.health_mcA._visible = false; car3model._visible = false; car4model._visible = true; _parent.health_mcC._x = 152; _parent.health_mcC._y = 215; dollarMultiplier = 3; pFront.health1._alpha = 100; pFront.health2._alpha = 100; pBack.health1._alpha = 100; pBack.health2._alpha = 100; pLeft.health1._alpha = 100; pLeft.health2._alpha = 100; pRight.health1._alpha = 100; pRight.health2._alpha = 100; varHealth.frontHealthTxt.text = ''; varHealth.backHealthTxt.text = ''; varHealth.leftHealthTxt.text = ''; varHealth.rightHealthTxt.text = ''; i = 1; while (i <= 10) { massBar['strip' + i]._visible = false; accelBar['strip' + i]._visible = false; speedBar['strip' + i]._visible = false; revBar['strip' + i]._visible = false; fShieldBar['strip' + i]._visible = false; bShieldBar['strip' + i]._visible = false; lShieldBar['strip' + i]._visible = false; rShieldBar['strip' + i]._visible = false; ++i; } massMoney.text = '$' + 1000 * dollarMultiplier; speedMoney.text = '$' + 1000 * dollarMultiplier; accelMoney.text = '$' + 1000 * dollarMultiplier; revMoney.text = '$' + 1000 * dollarMultiplier; fShieldMoney.text = '$' + 1000 * dollarMultiplier; bShieldMoney.text = '$' + 1000 * dollarMultiplier; lShieldMoney.text = '$' + 1000 * dollarMultiplier; rShieldMoney.text = '$' + 1000 * dollarMultiplier; car4model.enabled = true; model4.enabled = true; winAmount -= model3Cost; _parent.winAmountTxt.text = winAmount; winAmountTxt2.text = winAmount; massCount = 0; speedCount = 0; accelCount = 0; revCount = 0; fShieldCount = 0; bShieldCount = 0; lShieldCount = 0; rShieldCount = 0; minMass = pCar.mass; minSpeedMax = pCar.speedMax; minAcceleration = pCar.acceleration; minReverseSpeed = pCar.speedMaxReverse; minFrontHealth = 0; minBackHealth = 0; minRightHealth = 0; minLeftHealth = 0; minFrontShield = pCar.shieldFront; minBackShield = pCar.shieldBack; minLeftShield = pCar.shieldLeft; minRightShield = pCar.shieldRight; this._visible = false; balInfTxt.text = ''; } else { if (carSold == false) { balInfTxt.text = 'You have to sell your current car first!'; } else { balInfTxt.text = 'You don\'t have enough cash for that yet'; } } }; car4model.onPress = function () { if (winAmount >= model4Cost && carSold == true) { carToPlay = 'model4'; carSold = false; carValue = 75000; carValueTxt.text = carValue; fireStarter._visible = false; afterBurner.text = 'All Cars Purchased'; pCar = new CarPlayer4(); car4model._visible = false; upgradeMass.text = ''; upgradeSpeed.text = ''; upgradeAccel.text = ''; upgradeReverse.text = ''; upgradeFShield.text = ''; upgradeBShield.text = ''; upgradeLShield.text = ''; upgradeRShield.text = ''; massDisplay.text = pCar.mass; speedDisplay.text = pCar.speedMax * 10; accelDisplay.text = pCar.acceleration; reverseDisplay.text = Math.abs(pCar.speedMaxReverse); fShieldDisplay.text = pCar.shieldFront; lShieldDisplay.text = pCar.shieldLeft; rShieldDisplay.text = pCar.shieldRight; bShieldDisplay.text = pCar.shieldBack; _parent.health_mcD._visible = true; _parent.health_mcC._visible = false; _parent.health_mcB._visible = false; _parent.health_mcA._visible = false; _parent.health_mcD._x = 152; _parent.health_mcD._y = 215; varHealth = _parent.health_mcD; dollarMultiplier = 4; afterBurner._visible = false; pFront.health1._alpha = 100; pFront.health2._alpha = 100; pBack.health1._alpha = 100; pBack.health2._alpha = 100; pLeft.health1._alpha = 100; pLeft.health2._alpha = 100; pRight.health1._alpha = 100; pRight.health2._alpha = 100; varHealth.frontHealthTxt.text = ''; varHealth.backHealthTxt.text = ''; varHealth.leftHealthTxt.text = ''; varHealth.rightHealthTxt.text = ''; i = 1; while (i <= 10) { massBar['strip' + i]._visible = false; accelBar['strip' + i]._visible = false; speedBar['strip' + i]._visible = false; revBar['strip' + i]._visible = false; fShieldBar['strip' + i]._visible = false; bShieldBar['strip' + i]._visible = false; lShieldBar['strip' + i]._visible = false; rShieldBar['strip' + i]._visible = false; ++i; } massMoney.text = '$' + 1000 * dollarMultiplier; speedMoney.text = '$' + 1000 * dollarMultiplier; accelMoney.text = '$' + 1000 * dollarMultiplier; revMoney.text = '$' + 1000 * dollarMultiplier; fShieldMoney.text = '$' + 1000 * dollarMultiplier; bShieldMoney.text = '$' + 1000 * dollarMultiplier; lShieldMoney.text = '$' + 1000 * dollarMultiplier; rShieldMoney.text = '$' + 1000 * dollarMultiplier; winAmount -= model4Cost; _parent.winAmountTxt.text = winAmount; winAmountTxt2.text = winAmount; massCount = 0; speedCount = 0; accelCount = 0; revCount = 0; fShieldCount = 0; bShieldCount = 0; lShieldCount = 0; rShieldCount = 0; minMass = pCar.mass; minSpeedMax = pCar.speedMax; minAcceleration = pCar.acceleration; minReverseSpeed = pCar.speedMaxReverse; minFrontHealth = 0; minBackHealth = 0; minRightHealth = 0; minLeftHealth = 0; minFrontShield = pCar.shieldFront; minBackShield = pCar.shieldBack; minLeftShield = pCar.shieldLeft; minRightShield = pCar.shieldRight; this._visible = false; car2model._visible = false; car3model._visible = false; balInfTxt.text = ''; } else { if (carSold == false) { balInfTxt.text = 'You have to sell your current car first!'; } else { balInfTxt.text = 'You don\'t have enough cash for that yet'; } } }; startLevelNext_mc1.onPress = function () { if (carSold == false) { pFront.enabled = false; pBack.enabled = false; pRight.enabled = false; pLeft.enabled = false; _root.groove._visible = true; _root.slider._visible = true; _root.grooveBg._visible = true; nextLevel = true; ++arenaCarCapacity; if (arenaCarCapacity >= 9) { arenaCarCapacity = 9; } gotoAndStop('play'); } else { balInfTxt.text = 'You don\'t own a car - How do you plan on entering the derby??'; } }; } frame 5 { function sitelock(urls_allowed) { lock = true; domain_parts = _url.split('://'); real_domain = domain_parts[1].split('/'); domain.text = real_domain[0]; for (x in urls_allowed) { if (urls_allowed[x] == real_domain[0]) { lock = false; } } if (lock) { ad._visible = false; } } _parent.game_stage._x = 400; _parent.game_stage._y = 300; domain_parts = _url.split('://'); real_domain = domain_parts[1].split('/'); domain.text = real_domain[0]; urls_allowed = ['www.bootyarcade.com', 'www.armorgames.com', 'cache.armorgames.com', 'www.freeonlinegames.com', 'freeonlinegames.com', 'www.8agame.com', '3.xiaoyouxi.cn', 'files.game.com.cn', 'files.game.asia']; sitelock(urls_allowed); moreGames.onRelease = function () { getURL('http://www.bootyarcade.com', '_blank'); }; giveUp.onRelease = function () { getURL('http://www.bootyarcade.com', '_blank'); }; playAgain.onRelease = function () { levelCount = 1; var v26; var v27; var v29; var v28; var v3; var v15; var v9; var v10; var v25; var v6; var v12; var v16; var v21; var v23; var v4; var v22; var v11 = 4; var v24 = 1; var v17 = false; var v18 = 0; var v19 = 0; var v7 = 0; var v20 = 0; var v13 = 0; var v8 = 0; var v14 = 0; var v5 = 0; var v2 = 10000; _parent.success._visible = false; gotoAndPlay('play'); }; stop(); } instance ad of movieClip 154 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = false; } } instance of movieClip 1222 { onClipEvent (release) { getURL('http://www.bootyarcade.com', '_blank'); } } } movieClip 1240 { } movieClip 1243 { } movieClip 1244 { } movieClip 1245 { } movieClip 1246 { } movieClip 1247 { } movieClip 1248 pCarAMap { } movieClip 1249 pCarBMap { } movieClip 1250 pCarCMap { } movieClip 1251 pCarDMap { } movieClip 1255 { } movieClip 1256 map_bg1 { } movieClip 1259 { } movieClip 1260 booster_mc8 { } movieClip 1263 { } movieClip 1264 booster_mc7 { } movieClip 1267 { } movieClip 1268 booster_mc6 { } movieClip 1271 { } movieClip 1272 booster_mc5 { } movieClip 1275 { } movieClip 1276 booster_mc4 { } movieClip 1279 { } movieClip 1280 booster_mc1 { #initclip Object.registerClass('booster_mc1', BoosterPackets); #endinitclip } movieClip 1283 { } movieClip 1284 booster_mc2 { #initclip Object.registerClass('booster_mc2', BoosterPackets); #endinitclip } movieClip 1287 { } movieClip 1288 booster_mc3 { #initclip Object.registerClass('booster_mc3', BoosterPackets); #endinitclip } movieClip 1290 { } movieClip 1291 spark { frame 8 { this.removeMovieClip(); } } movieClip 1292 spark2 { frame 15 { this.removeMovieClip(); } } movieClip 1308 dirt { } movieClip 1310 { } movieClip 1313 warning { frame 106 { stop(); } } movieClip 1316 { } movieClip 1318 { frame 30 { stop(); } } movieClip 1320 failure { frame 30 { stop(); } } movieClip 1322 { } movieClip 1325 { } movieClip 1327 { } movieClip 1328 { } movieClip 1330 { } movieClip 1332 { } movieClip 1334 { } movieClip 1335 { } movieClip 1337 { } movieClip 1339 { } movieClip 1341 { } movieClip 1342 { } movieClip 1344 { } movieClip 1346 { } movieClip 1348 { } movieClip 1349 { } movieClip 1351 { } movieClip 1353 { } movieClip 1355 { } movieClip 1356 { } movieClip 1361 { frame 1 { stop(); } } movieClip 1362 { } movieClip 1364 { } movieClip 1366 { } movieClip 1367 { } movieClip 1369 { } movieClip 1371 { } movieClip 1373 { } movieClip 1374 { } movieClip 1376 { } movieClip 1378 { } movieClip 1380 { } movieClip 1381 { } movieClip 1383 { } movieClip 1385 { } movieClip 1387 { } movieClip 1388 { } movieClip 1390 { } movieClip 1392 { } movieClip 1394 { } movieClip 1395 { } movieClip 1400 { frame 1 { stop(); } } movieClip 1402 { } movieClip 1403 { } movieClip 1405 { } movieClip 1406 { } movieClip 1408 { } movieClip 1410 { } movieClip 1412 { } movieClip 1413 { } movieClip 1415 { } movieClip 1417 { } movieClip 1419 { } movieClip 1420 { } movieClip 1422 { } movieClip 1424 { } movieClip 1426 { } movieClip 1427 { } movieClip 1429 { } movieClip 1431 { } movieClip 1433 { } movieClip 1434 { } movieClip 1439 { frame 1 { stop(); } } movieClip 1441 { } movieClip 1442 { } movieClip 1444 { } movieClip 1445 { } movieClip 1447 { } movieClip 1449 { } movieClip 1451 { } movieClip 1452 { } movieClip 1454 { } movieClip 1456 { } movieClip 1458 { } movieClip 1459 { } movieClip 1461 { } movieClip 1463 { } movieClip 1465 { } movieClip 1466 { } movieClip 1468 { } movieClip 1470 { } movieClip 1472 { } movieClip 1473 { } movieClip 1478 { frame 1 { stop(); } } movieClip 1482 radioBg { } movieClip 1484 { } movieClip 1486 { } // unknown tag 88 length 64 movieClip 1489 { } // unknown tag 88 length 64 movieClip 1492 { } movieClip 1494 { } movieClip 1496 { } button 1499 { on (release) { loadXml(); darktop._visible = false; topText._visible = false; topText2._visible = false; close._visible = false; _root.historyOnOff = 'On'; _root.favOnOff = 'Off'; _root.radioBg._visible = false; myFavorites._visible = false; station._visible = false; myHistory._visible = true; Classical._visible = false; Ambient._visible = false; Dance._visible = false; Drumnbass._visible = false; House._visible = false; Industrial._visible = false; Newwave._visible = false; Techno._visible = false; Trance._visible = false; Videogame._visible = false; Rnb._visible = false; Britpop._visible = false; Classicrock._visible = false; Generalrock._visible = false; Grunge._visible = false; Heavymetal._visible = false; Indie._visible = false; Pop._visible = false; Punk._visible = false; Funk._visible = false; Goth._visible = false; Latin._visible = false; Misc._visible = false; Jazz._visible = false; Ska._visible = false; Bluegrass._visible = false; Blues._visible = false; Country._visible = false; Hiphopold._visible = false; Hiphopnew._visible = false; trackInfo._visible = true; } } movieClip 1502 { } instance artistHomepage of movieClip 1502 { onClipEvent (release) { _root.historyOnOff = 'Off'; _root.favOnOff = 'Off'; _root.radioBg._visible = true; myFavorites._visible = false; _root.close._visible = true; _root.myHistory._visible = false; pico._visible = true; dark._visible = true; _root.Classical._visible = true; _root.Ambient._visible = true; _root.Dance._visible = true; _root.Drumnbass._visible = true; _root.House._visible = true; _root.Industrial._visible = true; _root.Newwave._visible = true; _root.Techno._visible = true; _root.Trance._visible = true; _root.Videogame._visible = true; _root.Rnb._visible = true; _root.Britpop._visible = true; _root.Classicrock._visible = true; _root.Generalrock._visible = true; _root.Grunge._visible = true; _root.Heavymetal._visible = true; _root.Indie._visible = true; _root.Pop._visible = true; _root.Punk._visible = true; _root.Funk._visible = true; _root.Goth._visible = true; _root.Latin._visible = true; _root.Misc._visible = true; _root.Jazz._visible = true; _root.Ska._visible = true; _root.Bluegrass._visible = true; _root.Blues._visible = true; _root.Country._visible = true; _root.Hiphopold._visible = true; _root.Hiphopnew._visible = true; } } instance myHistory of movieClip 111 List { onClipEvent (construct) { multipleSelection = false; rowHeight = 20; } onClipEvent (enterFrame) { function transList(listRef) { listRef.depthChild0._alpha = 0; for (var v2 in listRef.content_mc) { listRef.content_mc[v2].bG_mc._alpha = 0; } } transList(this); } } movieClip 1506 { frame 1 { stop(); } frame 2 { stop(); } } instance Classical of movieClip 1506 { onClipEvent (press) { var rootGenreArrayLength = _root.genreArray.length; var BPspliced = false; i = 0; while (i < rootGenreArrayLength) { if (_root.genreArray[i] == 'Classical') { this.gotoAndStop(1); _root.genreArray.splice(i, 1); BPspliced = true; } ++i; } if (BPspliced != true) { this.gotoAndStop(2); _root.genreArray.push('Classical'); } trace(_root.genreArray); } } movieClip 1509 { frame 1 { stop(); } frame 2 { stop(); } } instance Dance of movieClip 1509 { onClipEvent (press) { var rootGenreArrayLength = _root.genreArray.length; var BPspliced = false; i = 0; while (i < rootGenreArrayLength) { if (_root.genreArray[i] == 'Dance') { this.gotoAndStop(1); _root.genreArray.splice(i, 1); BPspliced = true; } ++i; } if (BPspliced != true) { this.gotoAndStop(2); _root.genreArray.push('Dance'); } trace(_root.genreArray); } } movieClip 1512 { frame 1 { stop(); } frame 2 { stop(); } } instance Techno of movieClip 1512 { onClipEvent (press) { var rootGenreArrayLength = _root.genreArray.length; var BPspliced = false; i = 0; while (i < rootGenreArrayLength) { if (_root.genreArray[i] == 'Techno') { this.gotoAndStop(1); _root.genreArray.splice(i, 1); BPspliced = true; } ++i; } if (BPspliced != true) { this.gotoAndStop(2); _root.genreArray.push('Techno'); } trace(_root.genreArray); } } movieClip 1515 { frame 1 { stop(); } frame 2 { stop(); } } instance Heavymetal of movieClip 1515 { onClipEvent (press) { var rootGenreArrayLength = _root.genreArray.length; var BPspliced = false; i = 0; while (i < rootGenreArrayLength) { if (_root.genreArray[i] == 'Heavy Metal') { this.gotoAndStop(1); _root.genreArray.splice(i, 1); BPspliced = true; } ++i; } if (BPspliced != true) { this.gotoAndStop(2); _root.genreArray.push('Heavy Metal'); } trace(_root.genreArray); } } movieClip 1518 { frame 1 { stop(); } frame 2 { stop(); } } instance Classicrock of movieClip 1518 { onClipEvent (press) { var rootGenreArrayLength = _root.genreArray.length; var BPspliced = false; i = 0; while (i < rootGenreArrayLength) { if (_root.genreArray[i] == 'Classical Rock') { this.gotoAndStop(1); _root.genreArray.splice(i, 1); BPspliced = true; } ++i; } if (BPspliced != true) { this.gotoAndStop(2); _root.genreArray.push('Classical Rock'); } trace(_root.genreArray); } } movieClip 1521 { frame 1 { stop(); } frame 2 { stop(); } } instance Grunge of movieClip 1521 { onClipEvent (press) { var rootGenreArrayLength = _root.genreArray.length; var BPspliced = false; i = 0; while (i < rootGenreArrayLength) { if (_root.genreArray[i] == 'Grunge') { this.gotoAndStop(1); _root.genreArray.splice(i, 1); BPspliced = true; } ++i; } if (BPspliced != true) { this.gotoAndStop(2); _root.genreArray.push('Grunge'); } trace(_root.genreArray); } } movieClip 1524 { frame 1 { stop(); } frame 2 { stop(); } } instance Country of movieClip 1524 { onClipEvent (press) { var rootGenreArrayLength = _root.genreArray.length; var BPspliced = false; i = 0; while (i < rootGenreArrayLength) { if (_root.genreArray[i] == 'Country') { this.gotoAndStop(1); _root.genreArray.splice(i, 1); BPspliced = true; } ++i; } if (BPspliced != true) { this.gotoAndStop(2); _root.genreArray.push('Country'); } trace(_root.genreArray); } } movieClip 1527 { frame 1 { stop(); } frame 2 { stop(); } } instance House of movieClip 1527 { onClipEvent (press) { var rootGenreArrayLength = _root.genreArray.length; var BPspliced = false; i = 0; while (i < rootGenreArrayLength) { if (_root.genreArray[i] == 'House') { this.gotoAndStop(1); _root.genreArray.splice(i, 1); BPspliced = true; } ++i; } if (BPspliced != true) { this.gotoAndStop(2); _root.genreArray.push('House'); } trace(_root.genreArray); } } movieClip 1530 { frame 1 { stop(); } frame 2 { stop(); } } instance Generalrock of movieClip 1530 { onClipEvent (press) { var rootGenreArrayLength = _root.genreArray.length; var BPspliced = false; i = 0; while (i < rootGenreArrayLength) { if (_root.genreArray[i] == 'General Rock') { this.gotoAndStop(1); _root.genreArray.splice(i, 1); BPspliced = true; } ++i; } if (BPspliced != true) { this.gotoAndStop(2); _root.genreArray.push('General Rock'); } trace(_root.genreArray); } } movieClip 1533 { frame 1 { stop(); } frame 2 { stop(); } } instance Pop of movieClip 1533 { onClipEvent (press) { var rootGenreArrayLength = _root.genreArray.length; var BPspliced = false; i = 0; while (i < rootGenreArrayLength) { if (_root.genreArray[i] == 'Pop') { this.gotoAndStop(1); _root.genreArray.splice(i, 1); BPspliced = true; } ++i; } if (BPspliced != true) { this.gotoAndStop(2); _root.genreArray.push('Pop'); } trace(_root.genreArray); } } movieClip 1536 { frame 1 { stop(); } frame 2 { stop(); } } instance Drumnbass of movieClip 1536 { onClipEvent (press) { var rootGenreArrayLength = _root.genreArray.length; var BPspliced = false; i = 0; while (i < rootGenreArrayLength) { if (_root.genreArray[i] == 'Drum N Bass') { this.gotoAndStop(1); _root.genreArray.splice(i, 1); BPspliced = true; } ++i; } if (BPspliced != true) { this.gotoAndStop(2); _root.genreArray.push('Drum N Bass'); } trace(_root.genreArray); } } movieClip 1539 { frame 1 { stop(); } frame 2 { stop(); } } instance Punk of movieClip 1539 { onClipEvent (press) { var rootGenreArrayLength = _root.genreArray.length; var BPspliced = false; i = 0; while (i < rootGenreArrayLength) { if (_root.genreArray[i] == 'Punk') { this.gotoAndStop(1); _root.genreArray.splice(i, 1); BPspliced = true; } ++i; } if (BPspliced != true) { this.gotoAndStop(2); _root.genreArray.push('Punk'); } trace(_root.genreArray); } } movieClip 1542 { frame 1 { stop(); } frame 2 { stop(); } } instance Funk of movieClip 1542 { onClipEvent (press) { var rootGenreArrayLength = _root.genreArray.length; var BPspliced = false; i = 0; while (i < rootGenreArrayLength) { if (_root.genreArray[i] == 'Funk') { this.gotoAndStop(1); _root.genreArray.splice(i, 1); BPspliced = true; } ++i; } if (BPspliced != true) { this.gotoAndStop(2); _root.genreArray.push('Funk'); } trace(_root.genreArray); } } movieClip 1545 { frame 1 { stop(); } frame 2 { stop(); } } instance Bluegrass of movieClip 1545 { onClipEvent (press) { var rootGenreArrayLength = _root.genreArray.length; var BPspliced = false; i = 0; while (i < rootGenreArrayLength) { if (_root.genreArray[i] == 'Bluegrass') { this.gotoAndStop(1); _root.genreArray.splice(i, 1); BPspliced = true; } ++i; } if (BPspliced != true) { this.gotoAndStop(2); _root.genreArray.push('Bluegrass'); } trace(_root.genreArray); } } movieClip 1550 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1555 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1556 { } movieClip 1557 { } movieClip 1558 { } movieClip 1559 { } movieClip 1560 { } movieClip 1561 { } movieClip 1562 { } movieClip 1563 { } movieClip 1564 { } movieClip 1565 { } movieClip 1566 { } movieClip 1567 { } movieClip 1568 { }




http://swfchan.com/23/113793/info.shtml
Created: 11/3 -2019 07:33:12 Last modified: 11/3 -2019 07:33:12 Server time: 15/11 -2024 04:15:01