FWD?F%G}Ɉ8wVActions for astro3: Frame 120 of Layer Name Layer 1stop();VxActions for baddies: Frame 1 of Layer Name Layer 1stop();IpActions for baddies: Frame 2 of Layer Name Layer 1stop(); mult=0.5; mode="seek";#Actions for baddies: Frame 3 of Layer Name Layer 1stop(); trace('cruiser'); mult=1.5; mode="cruise" ref=10;SIp]Ip^Ipt#####JIActions for Scene 1: Frame 1 of Layer Name Layer 4stop(); _root.openSound=new Sound(); _root.openSound.attachSound("startup2"); _root.hitSound=new Sound(); _root.hitSound.attachSound("hit"); _root.exitSound=new Sound(); _root.exitSound.attachSound("uptick"); _root.shootSound=new Sound(); _root.shootSound.attachSound("blip"); _root.bonkSound=new Sound(); _root.bonkSound.attachSound("bonk"); _root.enginesSound=new Sound(); _root.enginesSound.attachSound("engines"); _root.wooshSound=new Sound(); _root.wooshSound.attachSound("woosh"); wActions for bar (bar1)onClipEvent(load) { endWidth=250; counter=0; } onClipEvent(enterFrame) { if (_width==endWidth) { _root.play(); } else { loaded=_root.getBytesLoaded(); remaining=_root.getBytesTotal(); counter++; _width=(loaded/remaining)*endWidth; } }9PActions for Scene 1: Frame 2 of Layer Name Layer 4stop(); _root.openSound.start(0,1); l=Actions for Scene 1: Frame 3 of Layer Name bg// init game vars _root.level=1; _root.score=0; _root.message='No message'; _root.lives=3; _root.playerName="Some Person";,Actions for Scene 1: Frame 5 of Layer Name bgstop();rActions for [No instance name assigned] (play)on (release) { _root.gotoAndPlay(9); }{ Actions for Scene 1: Frame 9 of Layer Name Layer 4_root.hault=0; _root.enginesOn=0; _root.time=0; _root.counter=0; &Actions for Scene 1: Frame 10 of Layer Name bg_root.guides=5; _root.flags=3; // levels will not repeat from beginning... trace("level " + _root.level); _root.hault=0; _root.enginesOn=0; numMines=5; for (x=1; x<=numMines; x++) { // trace(x); // duplicateMovieClip(mine, "mine" + x, (x+1000)); } _root.shields=100; _root.background._alpha=100;Actions for background (background)onClipEvent(load) { _root.background.maps.gotoAndStop(_root.level); }PActions for Scene 1: Frame 11 of Layer Name Layer 4stop(); _root.hault=0; _root.enginesOn=0; _root.time=0; _root.counter=0; Actions for Scene 1: Frame 11 of Layer Name bgduplicateMovieClip('shipTemplate', 'ship', 2000); _root.bonus=_root.level*5000*_root.par; _root.clipX=750; _root.livesDisp.text=_root.lives; _root.clipY=600; _root.initY=Math.floor(_root.clipY*(0.5)); _root.initX=Math.floor(_root.clipX*(0.5)); _root.guidesX=[]; _root.guidesY=[]; _root.switchesGates=[]; for (i=1; i<=_root.switches; i++) { duplicateMovieClip('switch', 'switch' + i, i); eval('_root.switch' + i)._x=_root.background.maps._x + eval("_root.background.maps.sw" + i )._x; eval('_root.switch' + i)._y=_root.background.maps._x + eval("_root.background.maps.sw" + i )._y; _root.switchesGates[i]=eval("_root.background.maps.sw" + i ).gate; trace(eval("_root.background.maps.sw" + i ).gate); //trace(i + " " + eval('_root.switch' + i)._x + " " + eval('_root.switch' + i)._y); eval('_root.background.maps.sw' + i).unloadMovie(); } // translate guides into points and then delete them... // for (i=1; i<=_root.background.maps.guides;i++){ for (i=1; i<=_root.guides;i++){ _root.guidesX[i]=_root.background.maps._x + eval("_root.background.maps.guide" + i )._x; _root.guidesY[i]=_root.background.maps._y + eval("_root.background.maps.guide" + i )._y; eval("_root.background.maps.guide" + i ).unloadMovie(); // trace('guide' + i + " " + _root.guidesX[i] + " " + _root.guidesY[i]); } tmp=_root.flags+1; _root.background.exit.inside.gotoAndStop(tmp); done=0; while (done==0) { spot=1+Math.floor(Math.random()*_root.guides); _root.background.exit._x=_root.guidesX[spot]; _root.background.exit._y=_root.guidesY[spot]; if (Math.abs(_root.background._x+_root.background.exit._x-initX)+Math.abs(_root.background._y+_root.background.exit._y-initY)>100) { done=1; } }  Actions for switch (switch)onClipEvent(load) { hitting=0; } onClipEvent(enterFrame) { if (_name!='switch') { if (hitTest(_root.ship)) { if (hitting==0) { hitting=1; i=_name.substring(6,7); switchNum=_root.switchesGates[i]; trace(_name + 'i= ' + i + 'gate # ' + switchNum); if (_currentframe==1) { gotoAndStop(2); eval('_root.background.maps.gate' + switchNum).gotoAndStop(2); } else { gotoAndStop(1); eval('_root.background.maps.gate' + switchNum).gotoAndStop(1); } } } else {hitting=0;} } }9Actions for shipTemplate (ship)onClipEvent(load) { function addScore(input) { _root.score+=input; tmp=""; // zero pad the score like a real arcade game... if (_root.score<1000000000) {tmp+="0"} if (_root.score<100000000) {tmp+="0"} if (_root.score<10000000) {tmp+="0"} if (_root.score<1000000) {tmp+="0"} if (_root.score<100000) {tmp+="0"} if (_root.score<10000) {tmp+="0"} if (_root.score<1000) {tmp+="0"} if (_root.score<100) {tmp+="0"} if (_root.score<10) {tmp+="0"} _root.scoreDisp.text=tmp + _root.score; } if (_name=='ship') { mobility=0; lv=_root.level; if (lv>10) {lv=10;} numMines=5+lv; for (i=1;i<=numMines; i++) { duplicateMovieClip('_root.background.mine', 'mine' + i, 1300 + i); } dmgTimer=0; maxDr=10; minDr=-1*maxDr; _root.counter=0; _y=_root.initY; _x=_root.initX; marginY=Math.floor(_root.clipY*(0.75)); marginX=Math.floor(_root.clipX*(0.75)); minY=Math.floor(marginY*0.25*(.5)); minX=Math.floor(marginX*0.25*(.5)); maxX=minX+marginX; maxY=minY+marginY; maxY=650; maxX=750; minX=0; minY=0; acc=.25; friction=.979 bounceFriction=-1.5; shotTimer=0; maxSpeed=6; minSpeed=maxSpeed*(-1); _rotation=Math.floor(Math.random()*36)*10; dx=Math.random()*2-Math.random()*2; dy=Math.random()*2-Math.random()*2; _this.engines.alpha=0; badCount=0; addScore(0); } } onClipEvent(enterFrame) { if (_name=='ship') { if (_root.hault<1) { if (_root.background.baddies._currentframe==1){ badCount++; bl=_root.level; if (bl>10) {bl=10;} badLimit=(11-bl)*200; m=6-_root.level; if (m<0) {m=0;} dist=600+(m*100); if (badCount>=badLimit) { badCount=0; choice=Math.floor(Math.random()*2)+2; _root.background.baddies.gotoAndStop(choice); _root.background.baddies._x=Math.floor(Math.random()*dist*2)-dist+_root.ship._x-_root.background._x; _root.background.baddies._y=Math.floor(Math.random()*dist*2)-dist+_root.ship._y-_root.background._y; } } if (_root.background.powerups.name==""){ if (Math.random()<.002) { choice=Math.floor(Math.random()*3)+2; _root.background.powerups.gotoAndStop(choice); _root.background.powerups._x=Math.floor(Math.random()*600)-300+_root.ship._x-_root.background._x; _root.background.powerups._y=Math.floor(Math.random()*600)-300+_root.ship._y-_root.background._y; _root.background.powerups.puX=Math.random()*2-1; _root.background.powerups.puY=Math.random()*2-1; } } else { // if (hitTest(_root.background.powerups)) { // trace('hit in ship toll'); // } } _root.counter+=1; if (_root.bonus>0) {_root.bonus-=2; } // exitDist=Math.abs(e.x-_x)+Math.abs(e.y-_y); exitDist=Math.abs(_root.background._x+_root.background.exit._x-_x)+Math.abs(_root.background._y+_root.background.exit._y-_y) if (exitDist<75) { if (_root.background.exit.exit_f==1) { _root.background.exit.gotoAndStop(2); } } else {_root.background.exit.gotoAndStop(1);} if (Key.isDown(Key.TAB)) { exitMove=1; } if (exitDist<35) { _root.background.exit.play(); } if (exitMove==1) { exitMove=0; addScore(250); if (_root.background.exit.inside.frame==1){ _root.hault=1; levelUp=500*(1 + _root.level); sheildsBonus=_root.shields*10; tmp=levelUp + _root.bonus + sheildsBonus; addScore(tmp); _root.message="Level " + _root.level + " Complete\n Level Completion: " + levelUp + "\n Time Bonus: " + _root.bonus + "\n Shields Bonus: " + sheildsBonus + "\n New score: " + _root.score; _root.level++; _root.levelEnd.gotoAndPlay(2); removeMovieClip(this); } else { _root.background.exit.inside.gotoAndStop((_root.background.exit.inside.frame-1)); done=0; while (done==0) { spot=1+Math.floor(Math.random()*_root.guides); _root.background.exit._x=_root.guidesX[spot]; _root.background.exit._y=_root.guidesY[spot]; if (Math.abs(_root.background._x+_root.background.exit._x-_x)+Math.abs(_root.background._y+_root.background.exit._y-_y)>100) { done=1; } } } } if (_root.hault<1) { if (_root.shields<=0) { _root.ship.gotoAndPlay(10); } if (invincible<1) { if (dmgTimer>0) {dmgTimer--;} hitsound=0; for (i in this.perim) { // set p.x and p.y to the stage x and y location of this sentry this.perim.localToGlobal(p={x:this.perim[i]._x,y:this.perim[i]._y}) // if the mc passed as a param collided with p // (this sentry), set the param mc's alpha to 50 if(_root.background.maps.hitTest(p.x, p.y, true)){ rad=10; if (_root.background.hitTest(p.x, (p.y-rad), true)) { dy+=2; hitsound=1; } if (_root.background.hitTest(p.x, (p.y+rad), true)) { dy-=2; hitsound=1; } if (_root.background.hitTest((p.x+rad), p.y, true)) { dx-=2; hitsound=1; if (mobile==0) { dr-=dx;} } if (_root.background.hitTest((p.x-rad), p.y, true)) { dx+=2; hitsound=1; if (mobile==0) { dr+=dx; } } if (hitsound==1) {_root.hitSound.start(0,1);} if (dx>maxSpeed) {dx=maxSpeed;} if (dy>maxSpeed) {dy=maxSpeed;} if (dxmaxDr) { dr=maxDr; } else if (dr<(minDr)) { dr=minDr; } _rotation+=dr; // degrade velocity over time? dx*=friction; dy*=friction; // Bounds Method: bounce! if (_xmaxX) { _x=mazX; dx*=-.8; } if (_y>maxY) { _y=maxY; dy*=-.8; } // tmp=Key.getCode(); if (shotTimer>0) {shotTimer--;} if ((Key.isDown(32)) && (shotTimer<=0) ){ shotCount++; _root.shootSound.start(0,1); duplicateMovieClip(_parent.shot, "shot" + shotCount, (shotCount%100)+1100); shotTimer=5; // invincible=1; } else invincible=0; if (mobility>0) { mobility--; if (mobility==0) {_root.ship.mobile.gotoAndStop(1);} if (Key.isDown(37)) {dx-=.5;} if (Key.isDown(39)) {dx+=.5;} if (Key.isDown(38)) {dy-=.5;} if (Key.isDown(40)) {dy+=.5;} } else { if (Key.isDown(37)) { _rotation-=8; dr=0; } if (Key.isDown(39)) { _rotation+=8; dr=0; } if (Key.isDown(38)) { angle=(_rotation/360)*2*Math.PI; dx+=(acc*Math.sin(angle)); dy-=(acc*Math.cos(angle)); if (dx>maxSpeed) {dx=maxSpeed;} if (dy>maxSpeed) {dy=maxSpeed;} if (dx30) { removeMovieClip(this); } } }@ Actions for shieldsDisp (sheilds)onClipEvent(load){ width=_root.shields; } iActions for Scene 1: Frame 15 of Layer Name levelendstop();rActions for [No instance name assigned] (play)on (release) { _root.gotoAndPlay(2); }%Actions for [No instance name assigned] (btnGo)on (release) { if (_root.playerName!="") { getURL("http://www.ridiculopathy.com/crappy_flash_games.php?gamename=spaceshootrace", "_self", "POST"); } } oActions for shipTemplate (ship)onClipEvent(load) { counter=0; } onClipEvent(enterFrame) { counter++; if (counter<90) {_rotation--;} if (counter>100) {_rotation++;} if (counter==150) {_root.shipTemplate.engines.gotoAndPlay(2);} if (counter==199) {_root.shipTemplate.engines.gotoAndStop(1);} if (counter==200) { counter=0; } } 0Actions for [No instance name assigned] (play)on (release) { _root.gotoAndPlay(3); }JIjJIjJIjJIjJIjJIkJI3kJISkJI qkJI kJI kJI kJI kJI lJI+lwlwlwlwlwPmwkmw mw mwmwm9Pu9Pul=٤l=l=l=l=*,Fr`rh{ { ({ @{ X&Ӧ&&&&&& >& L& n&&wPPP'P?PW%9r    ?~)Q I!["t#$%& < D ^     9 G y        49 9; 9Z 9e 9 9 9 9 9 9 9  9  9 4 9 F 9 a 9 s 9 9 9 9 9 9 9999K9]9r9999999(9!@9"Z9$x9%9&9'9(R9)e9+x9,9-9.90919293959697#98o999:9<9=19AM9B09CJ9De9E9F9G9G9H9I9J9J 9K29LP9Md9Nv9O9P9Qb9T9U9V29Wv9X9Y9Z9[9d9e?9e^9h9k&9l;9mb9o9q9r9t9u9w#9x89yJ9za9{9}9~9999t9999 9959}99999999 9" 9/ 9A 9g 9 9!9'!9k!9!9!9!9!9!99"9N"9\"9u"9"9"9"9"9#9#90#9_#9r#9~#9#9#9#9#9#9#9#9$9>$9L$9o$9$9$9$9$9$9%9#%96%9I%9h%9%9%9%9%9%9&9&91&9L&9`&9y&9&9&9&9&9'9S'9f'9x'9'9'9'9'9(9(9=(9V(9x(9(9(9(9(9)9*)9L)9q)9)9)9)9*94*9G*9 S*9 f*9 r*9 *9 *9 *9 *9*9*9(+9@+l+l,l),lI,lW,l,l,l,l -lK-l-l-l%.lT.lw.l~.l.l.l.l%/lE/l`/l y/l!/l"/l#/l%/@ ;@ %;i-=rG=rO=%?%@oeyomyoyoyoyoyo zo $zo Azo Vzo zo zo zo z000BActions for inside: Frame 1 of Layer Name Layer 1stop(); frame=1;~Actions for inside: Frame 2 of Layer Name Layer 1stop(); frame=2;2`Actions for inside: Frame 3 of Layer Name Layer 1stop(); frame=3;;,Actions for inside: Frame 4 of Layer Name Layer 1stop(); frame=4;Actions for inside: Frame 5 of Layer Name Layer 1stop(); frame=5;"TActions for inside: Frame 6 of Layer Name Layer 1stop(); frame=6;>Actions for inside: Frame 7 of Layer Name Layer 1stop(); frame=7;"Actions for inside: Frame 8 of Layer Name Layer 1stop(); frame=8;YActions for inside: Frame 9 of Layer Name Layer 1stop(); frame=9;@Actions for inside: Frame 10 of Layer Name Layer 1stop(); frame=10;0B0B~)~*2`M2`N;,q;,r"T"T>>""Y%Y&@I@JActions for help_btn: Frame 1 of Layer Name Layer 1stop();$Actions for help_btn: Frame 14 of Layer Name Layer 1stop(); _root.intro.play._x=-130; _root.intro.play.play(); $$$(Actions for mine: Frame 1 of Layer Name Layer 2stop();/Actions for mine: Frame 4 of Layer Name Layer 1if (hitShip==1) { _root.shields-=20; _root.shieldsDisp._width=_root.shields; } else { _root.ship.addScore(350); } removeMovieClip(this); ilActions for mine: Frame 5 of Layer Name Layer 1stop();(?/////(ilG>QActions for engines: Frame 1 of Layer Name Layer 1stop();imActions for engines: Frame 2 of Layer Name Layer 1_root.enginesOn=1; OActions for engines: Frame 4 of Layer Name Layer 1gotoAndPlay(2);>Q-im7Os Actions for mobile: Frame 1 of Layer Name Layer 1stop();350) { g=0; gotoAndStop(1); for (i=1;i<=_root.switches; i++) { x=_name.substring(4,5); trace(_name + 'looping'); switchNum=_root.switchesGates[i]; if (x==switchNum) { eval('_root.switch'+i).gotoAndStop(1); } } } } }2Actions for sw4 (guide)onClipEvent(load) { gate=1; }uActions for sw3 (guide)onClipEvent(load) { gate=3; }P#Actions for gate1 (gate)onClipEvent(load) { } onClipEvent(enterFrame) { if (_currentframe==2) { g++; if (g>350) { g=0; gotoAndStop(1); for (i=1;i<=_root.switches; i++) { x=_name.substring(4,5); switchNum=_root.switchesGates[i]; if (x==switchNum) { eval('_root.switch'+i).gotoAndStop(1); } } } } }"Actions for gate3 (gate)onClipEvent(load) { } onClipEvent(enterFrame) { if (_currentframe==2) { g++; if (g>350) { g=0; gotoAndStop(1); for (i=1;i<=_root.switches; i++) { x=_name.substring(4,5); trace(_name + 'looping'); switchNum=_root.switchesGates[i]; if (x==switchNum) { eval('_root.switch'+i).gotoAndStop(1); } } } } }6kActions for sw6 (guide)onClipEvent(load) { gate=1; }\Actions for sw5 (guide)onClipEvent(load) { gate=2; }>Actions for sw2 (guide)onClipEvent(load) { gate=2; }IActions for sw1 (guide)onClipEvent(load) { gate=3; }2_Actions for maps: Frame 6 of Layer Name Layer 1stop(); _root.flags=5; _root.guides=6; _root.par=3; _root.switches=0; I_Actions for [No instance name assigned] (windmill001)onClipEvent(enterFrame) { counter++; if (counter==30) { _rotation+=10; counter=0; } } Actions for [No instance name assigned] (windmill001)onClipEvent(enterFrame) { counter++; if (counter==50) { _rotation-=10; counter=0; } }LActions for [No instance name assigned] (windmill001)onClipEvent(enterFrame) { counter++; if (counter==70) { _rotation+=10; counter=0; } }}yActions for [No instance name assigned] (windmill001)onClipEvent(enterFrame) { counter++; if (counter==80) { _rotation-=10; counter=0; } }dActions for maps: Frame 7 of Layer Name Layer 1stop(); _root.flags=5; _root.guides=5; _root.par=2; _root.switches=0;/Actions for [No instance name assigned] (circle1)onClipEvent(enterFrame) { if (counter==100) { counter=0; _rotation+=5; } }Actions for [No instance name assigned] (circle1)onClipEvent(enterFrame) { counter++; if (counter==50) { counter=0; _rotation-=5; } }#_Actions for [No instance name assigned] (circle1)onClipEvent(enterFrame) { counter++; if (counter==100) { counter=0; _rotation+=5; } }yActions for [No instance name assigned] (circle1)onClipEvent(enterFrame) { counter++; if (counter==50) { counter=0; _rotation-=5; } }UNActions for [No instance name assigned] (circle1)onClipEvent(enterFrame) { counter++; if (counter==10) { counter=0; _rotation-=5; } }Actions for [No instance name assigned] (circle1)onClipEvent(enterFrame) { if (counter==100) { counter=0; _rotation+=5; } }˹$$$$$κMuMMMMһT&T'T;TOTcff$f9fK&&&&˽&ݽp#p9pFp[pm]]ʾ]׾]]ZzDZzZZzgZz|Zz}v}v}v}v"}v6%2Gl ENdENmENENENENEN $EN )EN QEN EN ENEN2 2(u}uP#P#P#*P#GP#TP#iP# {P# P# P# P# P#"e"n""""" %" *" R" " ""6k=6kE\|\>>II2_r2_s2_2_2_I_I_I_ I_I_C x    L LL,LALf}y}y}y}y}yddddd$////F\i~#_#_#_#_#_ ygy}yyyUNUNUNUN0UNBRiActions for play: Frame 1 of Layer Name Layer 1trace(_name); if (_name=='play') {stop();}ZActions for play: Frame 13 of Layer Name Layer 1stop();Ri&Ri5RiOZ՚&Actions for powerups: Frame 1 of Layer Name Layer 1name=""; stop();^Actions for powerups: Frame 2 of Layer Name Layer 1name="shields"; stop();HActions for powerups: Frame 3 of Layer Name Layer 1name="bonus"; stop();Actions for powerups: Frame 4 of Layer Name Layer 1name="mobile"; stop();qActions for powerups: Frame 14 of Layer Name Layer 1gotoAndStop(1);&Q&`^j^HHq Actions for gate: Frame 1 of Layer Name Layer 1stop(); VActions for gate: Frame 2 of Layer Name Layer 1g=0; stop();   V2VEActions for title: Frame 36 of Layer Name GAMEstop(); _root.intro.help._x=-260; _root.intro.help.play(); =>^hActions for levelEnd: Frame 1 of Layer Name Layer 1stop(); v^Actions for levelEnd: Frame 9 of Layer Name Layer 3for (i=1;i<=_root.switches; i++) { eval('_root.switch' + i).removeMovieClip(); } stop();-(Actions for [No instance name assigned] (play)on (release) { _root.gotoAndPlay(9); }hZ8v^9v^9v^9-(#:-(+:/Actions for ship: Frame 1 of Layer Name enginesstop();jHActions for ship: Frame 10 of Layer Name Layer 1_root.hault=1; _root.wooshSound.start(0,1); // trace('dest 1'); sActions for ship: Frame 25 of Layer Name Layer 1 Actions for ship: Frame 28 of Layer Name Layer 1stop(); for (i=1; i<=_root.switches; i++) { eval('_root.switch' + i).removeMovieClip(); } removeMovieClip(this); if (_root.lives==0) { _root.gotoAndStop(15); } else { _root.lives--; _root.gotoAndPlay(5); } removeMovieClip(this);/,jHjH   ) 0 O  q   ,Actions for explosion: Frame 1 of Layer Name Layer 1stop();WNActions for explosion: Frame 10 of Layer Name Layer 1gotoAndStop(1);,OWN8Actions for switch: Frame 1 of Layer Name Layer 1stop();;wActions for switch: Frame 2 of Layer Name Layer 1stop();8;wDIActions for exit: Frame 1 of Layer Name Layer 1stop(); exit_f=1;@.Actions for exit: Frame 2 of Layer Name Layer 1stop(); exit_f=2;sActions for exit: Frame 3 of Layer Name Layer 4_root.exitSound.start(0,1);Actions for exit: Frame 10 of Layer Name Layer 2_root.ship.exitMove=1;DI DI!@.[@.\s Actions for background: Frame 1 of Layer Name Layer 1stop();rWActions for baddies (baddies)onClipEvent(load) { lm=_root.level; if (lm>10) {lm=10;} q=0; } onClipEvent(enterFrame){ if ( (_currentframe>1) && (_currentframe<10) ) { if (hitTest(_root.ship)) { pu=0; name=""; _root.hitSound.start(0,1); _root.shields-=15; _root.ship._dx*=-.5; _root.ship._dy*=-.5; _root.ship.explosion.play(); _root.shieldsDisp._width=_root.shields; gotoAndPlay(10); } rate=mult+(lm*.1); if (mode=="seek") { if (_x+_root.background._x<_root.ship._x){ _x+=rate; } else {_x-=rate;} if (_y+_root.background._y<_root.ship._y){ _y+=rate; } else {_y-=rate;} } else { q++; if (q==ref) { q=0; if (_x+_root.background._x<_root.ship._x){ vX=1; } else {vX=-1;} if (_y+_root.background._y<_root.ship._y){ vY=1; } else {vY=-1;} distX=(_x+_root.background._x-_root.ship._x); distY=(_y+_root.background._y-_root.ship._y); } _x+=vX*rate; _y+=vY*rate; } } }uActions for mine (mine)onClipEvent(load) { if (_name!='mine'){ hit=0; maxX=650; maxY=550; while (done<1) { done=1; _x=Math.floor(Math.random()*maxX)+100; _y=Math.floor(Math.random()*maxY)+100; shipDist=Math.abs(_root.background._x-_root.ship._x+_x)+Math.abs(_root.background._y-_root.ship._y+_y); if (shipDist<100) {done=0;} } hitShip=0; } else { gotoAndStop(10);} } onClipEvent(enterFrame) { if (_name!='mine'){ if (hit<1) { if (hitTest(_root.ship)) { _root.hitSound.start(0,1); hitShip=1; hit=1; _root.ship.dx*=-.5; _root.ship.dy*=-.5; _root.ship.explosion.play(); gotoAndPlay(2); } } } }}Actions for powerups (powerups)onClipEvent(enterFrame){ if ( (_currentframe>1) && (_currentframe<10) ) { if (hitTest(_root.ship)) { pu=0; if (name=="shields") { _root.shields+=25; if (_root.shields>100) {_root.shields=100;} _root.shieldsDisp._width=_root.shields; } else if (name=="bonus") { _root.bonus+=(_root.level)*1000; } else if (name=="mobile") { _root.ship._rotation=0; _root.ship.dx=0; _root.ship.dy=0; _root.ship.mobility=400; _root.ship.mobile.gotoAndStop(2); } name=""; gotoAndPlay(10); } _x+=puX; _y+=puY; pu++; if (pu>200) { gotoAndStop(1); name=""; pu=0; } } } <rWrWrWrWrWrWrWrWrW rW rW rW >rW _rWrWrWrWrW rW*rW<rWzrWrWrWrW7rW_rWlrWrWrW rW!rW"rW#*rW$=rW%KrW&rW(rW)uEuuuuuu uu hu u Mu bu yuuuuuu<ukuyuuuu}8}}}}*}<}]}x}} } } } } $}B}`}z}}}}}}}$})}4Actions for help (help_btn)on (release) { _root.gotoAndStop(20); }Actions for play (play)on (release) { _root.play(); }ɣѣ*2