Section 1
//bar_root_18 (mfzNGretrosplode_fla.bar_root_18)
package mfzNGretrosplode_fla {
import flash.display.*;
public dynamic class bar_root_18 extends MovieClip {
public var barmask:MovieClip;
}
}//package mfzNGretrosplode_fla
Section 2
//BG_2 (mfzNGretrosplode_fla.BG_2)
package mfzNGretrosplode_fla {
import flash.display.*;
public dynamic class BG_2 extends MovieClip {
public function BG_2(){
addFrameScript(10, frame11);
}
function frame11(){
MovieClip(parent).gotoAndStop(2);
}
}
}//package mfzNGretrosplode_fla
Section 3
//customkeything_54 (mfzNGretrosplode_fla.customkeything_54)
package mfzNGretrosplode_fla {
import flash.display.*;
public dynamic class customkeything_54 extends MovieClip {
public function customkeything_54(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
stop();
}
function frame1(){
stop();
}
}
}//package mfzNGretrosplode_fla
Section 4
//DDSPmc_58 (mfzNGretrosplode_fla.DDSPmc_58)
package mfzNGretrosplode_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.filters.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class DDSPmc_58 extends MovieClip {
public var loaded:Boolean;
public var slot4:SimpleButton;
public var songsf:SharedObject;
public var loadb:SimpleButton;
public var loopb:SimpleButton;
public var origy:Number;
public var indi:MovieClip;
public var loopy:Boolean;
public var maxmin:SimpleButton;
public var indidrag:Boolean;
public var stopb:SimpleButton;
public var stopp:Boolean;
public var urlReq:URLRequest;
public var volumebar:MovieClip;
public var songidbox:TextField;
public var randb:SimpleButton;
public var onehund:Boolean;
public var leng:Number;
public var fb1:TextField;
public var fb2:TextField;
public var fb3:TextField;
public var fb4:TextField;
public var fb5:TextField;
public var yspot:Number;
public var faveb:SimpleButton;
public var sound:Sound;
public var pauseb:SimpleButton;
public var favesave:Boolean;
public var pausee:Boolean;
public var drag:Boolean;
public var cursong:Number;
public var sndChannel:SoundChannel;
public var filter:GlowFilter;
public var slist:Array;
public var ltext:TextField;
public var playb:SimpleButton;
public var chanpos:Number;
public var vindi:MovieClip;
public var lengbar:MovieClip;
public var slot1:SimpleButton;
public var slot2:SimpleButton;
public var slot3:SimpleButton;
public var dalink:SimpleButton;
public var slot5:SimpleButton;
public function DDSPmc_58(){
addFrameScript(0, frame1);
}
public function stopdrag(_arg1:MouseEvent){
drag = false;
}
function frame1(){
slist = new Array();
origy = y;
yspot = origy;
loopy = true;
loopb.alpha = 0.9;
leng = lengbar.width;
loaded = false;
onehund = false;
songsf = SharedObject.getLocal("DDSP");
stopp = false;
pausee = false;
indidrag = false;
songload();
if (songsf.data.saved == 1){
if (((!((songsf.data.fb1 == undefined))) && (!((songsf.data.fb1 == ""))))){
fb1.text = songsf.data.fb1;
} else {
fb1.text = "None";
};
if (((!((songsf.data.fb2 == undefined))) && (!((songsf.data.fb2 == ""))))){
fb2.text = songsf.data.fb2;
} else {
fb2.text = "None";
};
if (((!((songsf.data.fb3 == undefined))) && (!((songsf.data.fb3 == ""))))){
fb3.text = songsf.data.fb3;
} else {
fb3.text = "None";
};
if (((((!((songsf.data.fb4 == undefined))) && (!((songsf.data.fb4 == ""))))) && (!((songsf.data.fb4 == "None"))))){
fb4.text = songsf.data.fb4;
} else {
fb4.text = "84212";
};
if (((((!((songsf.data.fb5 == undefined))) && (!((songsf.data.fb5 == ""))))) && (!((songsf.data.fb5 == "None"))))){
fb5.text = songsf.data.fb5;
} else {
fb5.text = "75190";
};
} else {
fb1.text = "None";
fb2.text = "None";
fb3.text = "None";
fb4.text = "84212";
fb5.text = "75190";
};
favesave = false;
songidbox.text = cursong.toString();
slot1.addEventListener(MouseEvent.CLICK, ddspclick);
slot2.addEventListener(MouseEvent.CLICK, ddspclick);
slot3.addEventListener(MouseEvent.CLICK, ddspclick);
slot4.addEventListener(MouseEvent.CLICK, ddspclick);
slot5.addEventListener(MouseEvent.CLICK, ddspclick);
playb.addEventListener(MouseEvent.CLICK, ddspclick);
stopb.addEventListener(MouseEvent.CLICK, ddspclick);
loadb.addEventListener(MouseEvent.CLICK, ddspclick);
randb.addEventListener(MouseEvent.CLICK, ddspclick);
faveb.addEventListener(MouseEvent.CLICK, ddspclick);
pauseb.addEventListener(MouseEvent.CLICK, ddspclick);
loopb.addEventListener(MouseEvent.CLICK, ddspclick);
dalink.addEventListener(MouseEvent.CLICK, ddspclick);
maxmin.addEventListener(MouseEvent.CLICK, ddspclick);
indi.addEventListener(MouseEvent.MOUSE_DOWN, ddspclick);
addEventListener(MouseEvent.MOUSE_UP, indirel);
drag = false;
vindi.addEventListener(MouseEvent.MOUSE_DOWN, dragness);
addEventListener(MouseEvent.MOUSE_UP, stopdrag);
addEventListener(Event.ENTER_FRAME, dragoef);
}
public function finish(_arg1){
if (loopy){
sndChannel.removeEventListener(Event.SOUND_COMPLETE, finish);
sndChannel.stop();
sndChannel = sound.play();
sndChannel.addEventListener(Event.SOUND_COMPLETE, finish);
} else {
cursong = Math.round((Math.random() * 100000));
songload();
};
}
public function ddspclick(_arg1:MouseEvent){
var nglink:*;
var event = _arg1;
var _local3 = event.target;
with (_local3) {
if (name == "playb"){
if (loaded){
if (stopp){
sndChannel = sound.play();
sndChannel.addEventListener(Event.SOUND_COMPLETE, finish);
stopp = false;
};
if (pausee){
sndChannel = sound.play(chanpos);
sndChannel.addEventListener(Event.SOUND_COMPLETE, finish);
pausee = false;
};
};
};
if (name == "stopb"){
if (((loaded) && (!(pausee)))){
sndChannel.removeEventListener(Event.SOUND_COMPLETE, finish);
sndChannel.stop();
pausee = false;
stopp = true;
};
};
if (name == "pauseb"){
if (((loaded) && (!(stopp)))){
chanpos = sndChannel.position;
sndChannel.removeEventListener(Event.SOUND_COMPLETE, finish);
sndChannel.stop();
stopp = false;
pausee = true;
};
};
if (name == "loadb"){
cursong = songidbox.text;
songload();
};
if (name == "randb"){
cursong = Math.round((Math.random() * 100000));
songload();
};
if (name == "loopb"){
if (loopy == true){
loopy = false;
alpha = 0.1;
} else {
alpha = 0.9;
loopy = true;
};
};
if (name == "faveb"){
if (favesave == false){
favesave = true;
filter = new GlowFilter(0xFFFFFF, 0.8, 10, 10, 10);
} else {
favesave = false;
filter = new GlowFilter(0xFFFFFF, 0, 0, 0, 0);
};
faveb.filters = [filter];
slot1.filters = [filter];
slot2.filters = [filter];
slot3.filters = [filter];
slot4.filters = [filter];
slot5.filters = [filter];
};
if ((((((((((name == "slot1")) || ((name == "slot2")))) || ((name == "slot3")))) || ((name == "slot4")))) || ((name == "slot5")))){
if (favesave){
songsf.data.saved = 1;
if (name == "slot1"){
fb1.text = cursong.toString();
};
if (name == "slot2"){
fb2.text = cursong.toString();
};
if (name == "slot3"){
fb3.text = cursong.toString();
};
if (name == "slot4"){
fb4.text = cursong.toString();
};
if (name == "slot5"){
fb5.text = cursong.toString();
};
filter = new GlowFilter(0xFFFFFF, 0, 0, 0, 0);
faveb.filters = [filter];
slot1.filters = [filter];
slot2.filters = [filter];
slot3.filters = [filter];
slot4.filters = [filter];
slot5.filters = [filter];
songsf.data.fb1 = fb1.text;
songsf.data.fb2 = fb2.text;
songsf.data.fb3 = fb3.text;
songsf.data.fb4 = fb4.text;
songsf.data.fb5 = fb5.text;
songsf.flush();
favesave = false;
} else {
if ((((((name == "slot1")) && (!((fb1.text == "None"))))) && (!((cursong == fb1.text))))){
cursong = fb1.text;
songload();
};
if ((((((name == "slot2")) && (!((fb2.text == "None"))))) && (!((cursong == fb2.text))))){
cursong = fb2.text;
songload();
};
if ((((((name == "slot3")) && (!((fb3.text == "None"))))) && (!((cursong == fb3.text))))){
cursong = fb3.text;
songload();
};
if ((((((name == "slot4")) && (!((fb4.text == "None"))))) && (!((cursong == fb4.text))))){
cursong = fb4.text;
songload();
};
if ((((((name == "slot5")) && (!((fb5.text == "None"))))) && (!((cursong == fb5.text))))){
cursong = fb5.text;
songload();
};
};
};
if (name == "dalink"){
nglink = new URLRequest(("http://www.newgrounds.com/audio/listen/" + cursong));
navigateToURL(nglink, "_blank");
};
if (name == "indi"){
sndChannel.removeEventListener(Event.SOUND_COMPLETE, finish);
sndChannel.stop();
indidrag = true;
};
};
if (event.target.name == "maxmin"){
if (yspot == origy){
yspot = (origy - 290);
} else {
yspot = origy;
};
};
songidbox.text = cursong.toString();
}
public function removeness(){
if (!onehund){
sound.close();
};
sndChannel.stop();
removeEventListener(Event.ENTER_FRAME, ddspoef);
vindi.removeEventListener(MouseEvent.MOUSE_DOWN, dragness);
removeEventListener(MouseEvent.MOUSE_UP, stopdrag);
removeEventListener(Event.ENTER_FRAME, dragoef);
slot1.removeEventListener(MouseEvent.CLICK, ddspclick);
slot2.removeEventListener(MouseEvent.CLICK, ddspclick);
slot3.removeEventListener(MouseEvent.CLICK, ddspclick);
slot4.removeEventListener(MouseEvent.CLICK, ddspclick);
slot5.removeEventListener(MouseEvent.CLICK, ddspclick);
playb.removeEventListener(MouseEvent.CLICK, ddspclick);
stopb.removeEventListener(MouseEvent.CLICK, ddspclick);
loadb.removeEventListener(MouseEvent.CLICK, ddspclick);
randb.removeEventListener(MouseEvent.CLICK, ddspclick);
faveb.removeEventListener(MouseEvent.CLICK, ddspclick);
pauseb.removeEventListener(MouseEvent.CLICK, ddspclick);
loopb.removeEventListener(MouseEvent.CLICK, ddspclick);
dalink.removeEventListener(MouseEvent.CLICK, ddspclick);
maxmin.removeEventListener(MouseEvent.CLICK, ddspclick);
indi.removeEventListener(MouseEvent.MOUSE_DOWN, ddspclick);
removeEventListener(MouseEvent.MOUSE_UP, indirel);
}
public function ddspoef(_arg1:Event){
var _local2:int;
var _local3:SoundTransform;
if (loaded){
_local2 = Math.ceil((sound.length / (sound.bytesLoaded / sound.bytesTotal)));
if (!indidrag){
if (!stopp){
indi.x = (lengbar.x + ((leng * sndChannel.position) / _local2));
} else {
indi.x = lengbar.x;
};
} else {
if ((((mouseX > lengbar.x)) && ((mouseX < (lengbar.x + leng))))){
indi.x = mouseX;
} else {
sndChannel.stop();
sndChannel = sound.play(((Math.ceil((sound.length / (sound.bytesLoaded / sound.bytesTotal))) * (indi.x - lengbar.x)) / leng));
indidrag = false;
};
};
_local3 = new SoundTransform();
_local3.volume = ((volumebar.y - vindi.y) / volumebar.height);
sndChannel.soundTransform = _local3;
};
}
public function songload(){
var playin:Boolean;
var loading:Function;
loading = function (_arg1:ProgressEvent){
var _local2:Number;
_local2 = Math.round((100 * (_arg1.bytesLoaded / _arg1.bytesTotal)));
lengbar.width = ((_local2 / 100) * leng);
if ((((_local2 >= 1)) && (!(playin)))){
loaded = true;
sndChannel = sound.play();
sndChannel.addEventListener(Event.SOUND_COMPLETE, finish);
playin = true;
addEventListener(Event.ENTER_FRAME, ddspoef);
slist.push(cursong);
};
if (_local2 >= 100){
onehund = true;
} else {
onehund = false;
};
ltext.text = (_local2.toString() + "%");
if (ltext.text == "Infinity%"){
sound.close();
cursong = Math.round((Math.random() * 100000));
songidbox.text = cursong.toString();
songload();
};
};
songidbox.text = cursong.toString();
if (loaded){
sndChannel.stop();
sndChannel.removeEventListener(Event.SOUND_COMPLETE, finish);
removeEventListener(Event.ENTER_FRAME, ddspoef);
if (!onehund){
sound.close();
};
};
stopp = false;
pausee = false;
playin = false;
urlReq = new URLRequest(("http://newgrounds.com/audio/download.php?which=single&id=" + cursong));
sound = new Sound(urlReq);
sound.addEventListener(ProgressEvent.PROGRESS, loading);
}
public function dragness(_arg1:MouseEvent){
drag = true;
}
public function dragoef(_arg1:Event){
if (drag){
vindi.y = mouseY;
};
if (vindi.y < (volumebar.y - volumebar.height)){
vindi.y = (volumebar.y - volumebar.height);
drag = false;
};
if (vindi.y > volumebar.y){
vindi.y = volumebar.y;
drag = false;
};
y = (y + ((yspot - y) / 10));
}
public function indirel(_arg1:MouseEvent){
if (indidrag){
sndChannel = sound.play(((Math.round((sound.length / (sound.bytesLoaded / sound.bytesTotal))) * (indi.x - lengbar.x)) / leng));
sndChannel.addEventListener(Event.SOUND_COMPLETE, finish);
};
drag = false;
indidrag = false;
}
}
}//package mfzNGretrosplode_fla
Section 5
//gameover_55 (mfzNGretrosplode_fla.gameover_55)
package mfzNGretrosplode_fla {
import flash.display.*;
public dynamic class gameover_55 extends MovieClip {
public function gameover_55(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mfzNGretrosplode_fla
Section 6
//LOGOEND_43 (mfzNGretrosplode_fla.LOGOEND_43)
package mfzNGretrosplode_fla {
import flash.display.*;
public dynamic class LOGOEND_43 extends MovieClip {
public function LOGOEND_43(){
addFrameScript(132, frame133);
}
function frame133(){
MovieClip(root).play();
stop();
}
}
}//package mfzNGretrosplode_fla
Section 7
//LOGOPRELOAD_0_23 (mfzNGretrosplode_fla.LOGOPRELOAD_0_23)
package mfzNGretrosplode_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.filters.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_0_23 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_0_23(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package mfzNGretrosplode_fla
Section 8
//LOGOPRELOAD_1_27 (mfzNGretrosplode_fla.LOGOPRELOAD_1_27)
package mfzNGretrosplode_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.filters.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_1_27 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_1_27(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package mfzNGretrosplode_fla
Section 9
//LOGOPRELOAD_2_30 (mfzNGretrosplode_fla.LOGOPRELOAD_2_30)
package mfzNGretrosplode_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.filters.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_2_30 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_2_30(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package mfzNGretrosplode_fla
Section 10
//LOGOPRELOAD_3_32 (mfzNGretrosplode_fla.LOGOPRELOAD_3_32)
package mfzNGretrosplode_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.filters.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_3_32 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_3_32(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package mfzNGretrosplode_fla
Section 11
//LOGOPRELOAD_4_34 (mfzNGretrosplode_fla.LOGOPRELOAD_4_34)
package mfzNGretrosplode_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.filters.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_4_34 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_4_34(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package mfzNGretrosplode_fla
Section 12
//LOGOPRELOAD_5_36 (mfzNGretrosplode_fla.LOGOPRELOAD_5_36)
package mfzNGretrosplode_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.filters.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_5_36 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_5_36(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package mfzNGretrosplode_fla
Section 13
//LOGOPRELOAD_6_38 (mfzNGretrosplode_fla.LOGOPRELOAD_6_38)
package mfzNGretrosplode_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.filters.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_6_38 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_6_38(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package mfzNGretrosplode_fla
Section 14
//LOGOPRELOAD_7_40 (mfzNGretrosplode_fla.LOGOPRELOAD_7_40)
package mfzNGretrosplode_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.filters.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_7_40 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_7_40(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package mfzNGretrosplode_fla
Section 15
//MainTimeline (mfzNGretrosplode_fla.MainTimeline)
package mfzNGretrosplode_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.filters.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public const wint:Number;
public const div:Number = 60;
public const hint:Number;
public const hei:Number;
public const wid:Number;
public var dragness2:Boolean;
public var b1:unbutton;
public var b2:unbutton;
public var b3:unbutton;
public var b5:unbutton;
public var b6:unbutton;
public var b8:unbutton;
public var b9:unbutton;
public var soff:unbutton;
public var bosshealth:Number;
public var b7:unbutton;
public var colorarr:Array;
public var bosstype:Number;
public var pons:Number;
public var skiptf:TextFormat;
public var fpsbox:TextField;
public var varUp:Boolean;
public var kup:Number;
public var eshotsnd:Sound;
public var R:Number;
public var puptime:Number;
public var smallz:MovieClip;
public var backb:unbutton;
public var h:Number;
public var varDown:Boolean;
public var dead:Boolean;
public var l:Number;
public var s:Number;
public var w:Number;
public var savefile:SharedObject;
public var adown:Number;
public var textup:TextField;
public var ds:SoundChannel;
public var kright:Number;
public var aimDR:Boolean;
public var aimDL:Boolean;
public var etime:Number;
public var spawntime:Number;
public var ptotal:Number;
public var gra:Graphics;
public var fps:Number;
public var tfilter:GlowFilter;
public var powerbar:MovieClip;
public var lives:Number;
public var mcarr:Array;
public var dacolor:uint;
public var textright:TextField;
public var pslide2:MovieClip;
public var maxdist:Number;
public var bpress:String;
public var shotarr:Array;
public var mult:Number;
public var drag:Number;
public var mb1:unbutton;
public var mb2:unbutton;
public var mb3:unbutton;
public var mb4:unbutton;
public var mb6:unbutton;
public var mb7:unbutton;
public var mb5:unbutton;
public var espawned:Number;
public var moregamesb:unbutton;
public var dformat:TextFormat;
public var shotSpeed:Number;
public var dascorebox:TextField;
public var pint:Number;
public var parbox:TextField;
public var dragness:Boolean;
public var son:unbutton;
public var mc:MovieClip;
public var bcmc:MovieClip;
public var mcs:MovieClip;
public var bossthing:Number;
public var lpic:MovieClip;
public var spd:Number;
public var pbar:MovieClip;
public var logo:MovieClip;
public var multthing:Number;
public var slide:Boolean;
public var maxspd:Number;
public var menucover:MovieClip;
public var stime:Number;
public var textrightaim:TextField;
public var rot:Number;
public var arot:Number;
public var pmenu:MovieClip;
public var buddies:Number;
public var titlemc:MovieClip;
public var gpause:Boolean;
public var blah:Number;
public var mousemove:Boolean;
public var scorebox:TextField;
public var starson:Boolean;
public var b10:unbutton;
public var b11:unbutton;
public var b12:unbutton;
public var b13:unbutton;
public var b14:unbutton;
public var bombing:Boolean;
public var slow:Number;
public var Q3:Number;
public var Q4:Number;
public var Q1:Number;
public var Q2:Number;
public var QQ2:Number;
public var textleftaim:TextField;
public var customItem:ContextMenuItem;
public var bombs:Number;
public var shields:Boolean;
public var QQ1:Number;
public var ship:MovieClip;
public var gunlevel:Number;
public var oldrot:Number;
public var griddy:Boolean;
public var aright:Number;
public var modeness:Number;
public var mouseaim:Boolean;
public var score:Number;
public var aimUL:Boolean;
public var spawning:Boolean;
public var aimUR:Boolean;
public var defsong:Number;
public var textleft:TextField;
public var bounds:MovieClip;
public var pintense:Number;
public var skipb:MovieClip;
public var changes:Boolean;
public var aup:Number;
public var structions:MovieClip;
public var skipt:TextField;
public var ddsi:Number;
public var partindi:TextField;
public var emax:Number;
public var xarr:Array;
public var pbar2:MovieClip;
public var kleft:Number;
public var boom:MovieClip;
public var menusound:Sound;
public var extralife:Boolean;
public var donut:MovieClip;
public var newMenu:ContextMenu;
public var levelmode:Boolean;
public var dascreen:MovieClip;
public var dsound:Sound;
public var sndfxon:Boolean;
public var songlist:TextField;
public var varRight:Boolean;
public var b_preload:SimpleButton;
public var b_preloadRelease;
public var etypes:Number;
public var pslide:MovieClip;
public var bossness:Boolean;
public var textdown:TextField;
public var ckeything:MovieClip;
public var numpad:Boolean;
public var yarr:Array;
public var bhealthmc:MovieClip;
public var namebox:TextField;
public var livesbox:TextField;
public var bgbox:TextField;
public var maxpons:Number;
public var gameselect:Boolean;
public var menuframe:Boolean;
public var level:Number;
public var covermc:MovieClip;
public var dtext:TextField;
public var kdown:Number;
public var textdownaim:TextField;
public var aimD:Boolean;
public var aimL:Boolean;
public var aimR:Boolean;
public var aimU:Boolean;
public var gridon:Boolean;
public var fxbox:TextField;
public var dagamewaswon:Boolean;
public var textupaim:TextField;
public var livesformat:TextFormat;
public var ecount:Number;
public var bindi:MovieClip;
public var varLeft:Boolean;
public var logo2:MovieClip;
public var parbox2:TextField;
public var menusc:SoundChannel;
public var aleft:Number;
public var format:TextFormat;
public function MainTimeline(){
wid = (stage.stageWidth * 1.2);
hei = (stage.stageHeight * 1.2);
wint = (wid / div);
hint = (hei / div);
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8);
}
public function sendscore(_arg1:String, _arg2:Number){
var _local3:URLRequest;
var _local4:URLLoader;
_local3 = new URLRequest(("url" + _arg2));
_local3.method = URLRequestMethod.POST;
_local4 = new URLLoader();
_local4.load(_local3);
navigateToURL(_local3, "_blank");
}
public function shoot(_arg1, _arg2, _arg3, _arg4){
var _local5:MovieClip;
var _local6:Graphics;
pons++;
_local5 = new MovieClip();
_local6 = _local5.graphics;
_local6.lineStyle(2, dacolor);
_local6.moveTo(-(_arg4), -(_arg4));
_local6.lineTo(-(_arg4), _arg4);
_local6.lineTo(_arg4, _arg4);
_local6.lineTo(_arg4, -(_arg4));
_local6.lineTo(-(_arg4), -(_arg4));
_local5.rot = _arg1;
s++;
_local5.typeness = 1;
_local5.x = _arg2;
_local5.y = _arg3;
shotarr.push(_local5);
_local5.name = ("s_" + s);
addChild(_local5);
_local5.addEventListener(Event.ENTER_FRAME, shotmove);
}
public function submit(_arg1:Event){
tired(_arg1.target.name);
}
public function selectText(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:String;
var _local6:URLRequest;
_local2 = songlist.selectionBeginIndex;
if (songlist.hitTestPoint(mouseX, mouseY, true) == true){
_local3 = _local2;
while (_local3 > (_local2 - 7)) {
if (songlist.text.substr(_local3, 1) == " "){
_local4 = _local2;
while (_local4 < (_local2 + 7)) {
if (songlist.text.substring((_local4 - 1), _local4) == ","){
if (songlist.text.substring((_local3 + 1), (_local4 - 1)).indexOf(",") == -1){
_local5 = songlist.text.substring((_local3 + 1), (_local4 - 1));
songlist.setSelection((_local3 + 1), (_local4 - 1));
_local6 = new URLRequest(("http://www.newgrounds.com/audio/listen/" + _local5));
navigateToURL(_local6, "_blank");
};
};
_local4++;
};
};
_local3--;
};
};
}
public function bossspawn(_arg1, _arg2, _arg3, _arg4){
var boss:MovieClip;
var bossnum:Number;
var snakearr:Array;
var snakeleng:Number;
var jk:Number;
var snakey:Function;
var blah = _arg1;
var hea = _arg2;
var xp = _arg3;
var yp = _arg4;
bossness = true;
if (blah == 1){
boss = new MovieClip();
var _local6 = boss;
with (_local6) {
graphics.lineStyle(2, 0xFF0000);
graphics.moveTo(0, -7);
graphics.lineTo(7, 7);
graphics.lineTo(0, 3);
graphics.lineTo(-7, 7);
graphics.lineTo(0, -7);
};
boss.stimer = getTimer();
boss.timer = getTimer();
boss.xspot = (Math.random() * wid);
boss.yspot = (Math.random() * hei);
boss.width = (boss.width * 2);
boss.height = (boss.height * 2);
boss.addEventListener(Event.ENTER_FRAME, bossmove);
boss.health = hea;
if (bosshealth == 0){
bosshealth = 100;
};
boss.hit = false;
boss.blah = blah;
boss.x = xp;
boss.y = yp;
addChild(boss);
} else {
if (blah == 2){
bossnum = 0;
while (bossnum < 3) {
boss = new MovieClip();
_local6 = boss;
with (_local6) {
graphics.lineStyle(2, 0xFF0000);
graphics.moveTo(0, -7);
graphics.lineTo(7, 10);
graphics.lineTo(-7, 10);
graphics.lineTo(0, -7);
};
boss.width = (boss.width * 1.4);
boss.height = (boss.height * 1.4);
boss.numbuh = bossnum;
boss.addEventListener(Event.ENTER_FRAME, bossmove);
boss.health = hea;
if (bosshealth == 0){
bosshealth = 100;
};
boss.xpos = ship.x;
boss.ypos = ship.y;
boss.i = 150;
boss.rota = (90 * bossnum);
boss.xspot = ship.x;
boss.yspot = ship.y;
boss.timer = getTimer();
boss.stime = getTimer();
boss.stuck = false;
boss.hit = false;
boss.blah = blah;
boss.x = xp;
boss.y = yp;
addChild(boss);
bossnum = (bossnum + 1);
};
} else {
if (blah == 3){
snakey = function (_arg1:Event){
var lolmax:Number;
var lol:Number;
var event = _arg1;
if (!gpause){
if (((((ship.visible) && (bombing))) && (event.target.hitTestObject(boom)))){
if (event.target.hit == false){
event.target.health = (event.target.health - 1);
bosshealth = (bosshealth - 1);
event.target.hit = true;
};
} else {
event.target.hit = false;
};
lolmax = (s - ((15 + (7 * buddies)) + Math.round(((10 * gunlevel) / 4))));
lol = lolmax;
while (lol < s) {
if (shotarr[lol] != null){
if (event.target.hitTestObject(shotarr[lol]) == true){
splosion(event.target.x, event.target.y, 20, 1);
event.target.health = (event.target.health - 1);
bosshealth = (bosshealth - 1);
shotarr[lol].x = -500;
};
};
lol = (lol + 1);
};
if ((((((((((event.target.health <= 0)) || ((event.target.jk == snakeleng)))) || (((bombing) && ((lives <= 0)))))) || ((bosshealth <= 0)))) || (!(bossness)))){
if (event.target.health <= 0){
score = (score + (25 * mult));
};
splosion(event.target.x, event.target.y, 30, 1);
event.target.alive = false;
event.target.parent.removeChild(event.target);
event.target.removeEventListener(Event.ENTER_FRAME, snakey);
};
if (event.target.hitTestObject(ship)){
if (shields){
if (ship.visible == true){
event.target.health = (event.target.health - 1);
bosshealth = (bosshealth - 1);
};
} else {
shipspawn();
};
};
if (((!(snakearr[(event.target.jk - 1)])) || (!(snakearr[(event.target.jk - 1)].alive)))){
var _local3 = event.target;
with (_local3) {
timer = (timer + (1 / slow));
if ((((timer > 100)) || (((!((targx == ship.x))) && ((Math.sqrt((Math.pow((targx - x), 2) + Math.pow((targy - y), 2))) < 100)))))){
blah = Math.round((Math.random() * 10));
if (blah > 7){
targx = ship.x;
targy = ship.y;
} else {
targx = (Math.random() * stage.stageWidth);
targy = (Math.random() * stage.stageHeight);
};
timer = 0;
};
if (((((((timer % 30) == 0)) && (!((timer == 0))))) && (!((timer == 100))))){
if (sndfxon){
eshotsnd = new shotsound();
eshotsnd.play();
};
bossshoot(event.target.rotation, event.target.x, event.target.y, 5);
};
rot = ((Math.atan2((targy - y), (targx - x)) / (Math.PI / 180)) + 90);
if (rot < 0){
Q1 = (Q1 + (rot - QQ1));
};
QQ1 = rot;
if (rot > 0){
Q2 = (Q2 + (rot - QQ2));
};
QQ2 = rot;
if ((Q3 - 180) > rot){
Q1 = (Q1 + 360);
};
Q3 = rot;
if ((Q4 + 180) < rot){
Q2 = (Q2 - 360);
};
Q4 = rot;
R = (R + (((Q1 + Q2) - R) / drag));
};
event.target.rotation = event.target.R;
event.target.y = (event.target.y - ((Math.cos((event.target.rotation * (Math.PI / 180))) * event.target.xspd) / slow));
event.target.x = (event.target.x + ((Math.sin((event.target.rotation * (Math.PI / 180))) * event.target.yspd) / slow));
} else {
event.target.rot = snakearr[(event.target.jk - 1)].rotation;
_local3 = event.target;
with (_local3) {
if (rot < 0){
Q1 = (Q1 + (rot - QQ1));
};
QQ1 = rot;
if (rot > 0){
Q2 = (Q2 + (rot - QQ2));
};
QQ2 = rot;
if ((Q3 - 180) > rot){
Q1 = (Q1 + 360);
};
Q3 = rot;
if ((Q4 + 180) < rot){
Q2 = (Q2 - 360);
};
Q4 = rot;
R = (R + (((Q1 + Q2) - R) / drag));
};
event.target.rotation = event.target.R;
event.target.x = (event.target.x + (((snakearr[(event.target.jk - 1)].x - event.target.x) / event.target.drag) / slow));
event.target.y = (event.target.y + (((snakearr[(event.target.jk - 1)].y - event.target.y) / event.target.drag) / slow));
};
};
};
snakearr = new Array();
snakeleng = 25;
jk = 0;
while (jk <= snakeleng) {
boss = new MovieClip();
_local6 = boss;
with (_local6) {
graphics.lineStyle(2, 0xFFFFFF);
graphics.moveTo(0, -7);
graphics.lineTo(7, 10);
graphics.lineTo(-7, 10);
graphics.lineTo(0, -7);
};
boss.scaleX = (boss.scaleX * 1.2);
boss.scaleY = (boss.scaleY * 1.2);
boss.x = 10;
boss.y = 10;
boss.rot = 0;
boss.Q1 = 0;
boss.QQ1 = 0;
boss.Q2 = 0;
boss.QQ2 = 0;
boss.Q3 = 0;
boss.Q4 = 0;
boss.R = 0;
boss.drag = 3.5;
boss.targx = mouseX;
boss.targy = mouseY;
boss.jk = jk;
boss.alive = true;
boss.timer = 0;
boss.health = 4;
snakearr.push(boss);
boss.xspd = 6;
boss.yspd = 6;
addChild(boss);
boss.addEventListener(Event.ENTER_FRAME, snakey);
jk = (jk + 1);
};
boss.health = hea;
if (bosshealth == 0){
bosshealth = 100;
};
boss.hit = false;
boss.blah = blah;
boss.x = xp;
boss.y = yp;
addChild(boss);
};
};
};
}
public function dakeydown(_arg1:KeyboardEvent){
if (ckeything.visible == true){
if (((!((_arg1.keyCode == 13))) && (!((_arg1.keyCode == 32))))){
if (ckeything.currentFrame == 1){
kup = _arg1.keyCode;
ckeything.nextFrame();
} else {
if (ckeything.currentFrame == 2){
if (_arg1.keyCode != kup){
kright = _arg1.keyCode;
ckeything.nextFrame();
};
} else {
if (ckeything.currentFrame == 3){
if (((!((_arg1.keyCode == kup))) && (!((_arg1.keyCode == kright))))){
kleft = _arg1.keyCode;
ckeything.nextFrame();
};
} else {
if (ckeything.currentFrame == 4){
if (((((!((_arg1.keyCode == kup))) && (!((_arg1.keyCode == kright))))) && (!((_arg1.keyCode == kleft))))){
kdown = _arg1.keyCode;
ckeything.visible = false;
stage.removeEventListener(KeyboardEvent.KEY_DOWN, dakeydown);
};
};
};
};
};
if (ckeything.currentFrame == 6){
aup = _arg1.keyCode;
ckeything.nextFrame();
} else {
if (ckeything.currentFrame == 7){
if (_arg1.keyCode != aup){
aright = _arg1.keyCode;
ckeything.nextFrame();
};
} else {
if (ckeything.currentFrame == 8){
if (((!((_arg1.keyCode == aup))) && (!((_arg1.keyCode == aright))))){
aleft = _arg1.keyCode;
ckeything.nextFrame();
};
} else {
if (ckeything.currentFrame == 9){
if (((((!((_arg1.keyCode == aup))) && (!((_arg1.keyCode == aright))))) && (!((_arg1.keyCode == aleft))))){
adown = _arg1.keyCode;
ckeything.visible = false;
stage.removeEventListener(KeyboardEvent.KEY_DOWN, dakeydown);
};
};
};
};
};
};
if (ckeything.currentFrame == 11){
if (_arg1.keyCode == 89){
changes = false;
deletestuff();
};
if (_arg1.keyCode == 78){
ckeything.visible = false;
};
};
};
}
function frame2(){
nextFrame();
}
function frame3(){
stop();
skipb = new MovieClip();
skipt = new TextField();
skiptf = new TextFormat();
skiptf.font = "Arial Black";
skiptf.size = 20;
skiptf.color = 0xFFFFFF;
var _local2 = skipb.graphics;
with (_local2) {
lineStyle(0, 0xFFFFFF, 0);
drawRect(0, 0, 69, 50.5);
};
skipt.defaultTextFormat = skiptf;
skipt.text = ">>>";
skipt.x = 0;
skipt.selectable = false;
skipt.y = 0;
skipb.addChild(skipt);
addChild(skipb);
skipb.x = (stage.stageWidth - (skipb.width / 2));
skipb.y = 10;
skipb.addEventListener(MouseEvent.CLICK, skipbutton);
donut = new MovieClip();
donut.graphics.lineStyle(1, 8666142, 100);
donut.i = 94;
donut.xspot = 0;
donut.yspot = 0;
donut.xcoord = (donut.i + donut.xspot);
donut.ycoord = donut.yspot;
donut.graphics.beginFill(13726015, 100);
donut.graphics.moveTo(donut.xcoord, donut.ycoord);
donut.angle = 0;
while (donut.angle <= 360) {
donut.xcoord = ((Math.cos((donut.angle * (Math.PI / 180))) * donut.i) + donut.xspot);
donut.ycoord = ((Math.sin((donut.angle * (Math.PI / 180))) * donut.i) + donut.yspot);
donut.graphics.lineTo(donut.xcoord, donut.ycoord);
donut.angle++;
};
donut.graphics.endFill();
donut.graphics.beginFill(6707552, 100);
donut.graphics.moveTo(-87, -35);
donut.graphics.curveTo(-55, -89, 9, -93);
donut.graphics.curveTo(48, -85, 61, -71);
donut.graphics.curveTo(90, -40, 92, 16);
donut.graphics.curveTo(89, 37, 68, 64);
donut.graphics.curveTo(15, 120, -59, 65);
donut.graphics.curveTo(-98, 22, -87, -35);
donut.i = 35;
donut.xspot = 0;
donut.yspot = 0;
donut.xcoord = (donut.i + donut.xspot);
donut.ycoord = donut.yspot;
donut.graphics.beginFill(11097893, 100);
donut.graphics.moveTo(donut.xcoord, donut.ycoord);
donut.angle = 0;
while (donut.angle <= 360) {
donut.xcoord = ((Math.cos((donut.angle * (Math.PI / 180))) * donut.i) + donut.xspot);
donut.ycoord = ((Math.sin((donut.angle * (Math.PI / 180))) * donut.i) + donut.yspot);
donut.graphics.lineTo(donut.xcoord, donut.ycoord);
donut.angle++;
};
donut.i = 32.25;
donut.xspot = 0;
donut.yspot = 0;
donut.xcoord = (donut.i + donut.xspot);
donut.ycoord = donut.yspot;
donut.graphics.beginFill(0, 100);
donut.graphics.moveTo(donut.xcoord, donut.ycoord);
donut.angle = 0;
while (donut.angle <= 360) {
donut.xcoord = ((Math.cos((donut.angle * (Math.PI / 180))) * donut.i) + donut.xspot);
donut.ycoord = ((Math.sin((donut.angle * (Math.PI / 180))) * donut.i) + donut.yspot);
donut.graphics.lineTo(donut.xcoord, donut.ycoord);
donut.angle++;
};
covermc = new MovieClip();
covermc.graphics.moveTo(0, 0);
covermc.graphics.beginFill(0);
covermc.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
covermc.alpha = 0;
donut.x = -300;
donut.y = (stage.stageHeight + 300);
addChild(donut);
donut.xTarget = (stage.stageWidth / 2);
donut.yTarget = (stage.stageHeight / 2);
donut.xSpeed = 0;
donut.ySpeed = 0;
donut.Mode = 1;
donut.Speed = 10;
donut.Stop = 1.2;
donut.blarg = 0;
tfilter = new GlowFilter(0xFFFFFF, 0.5, 5, 5, 150, 1);
dtext = new TextField();
dformat = new TextFormat();
dtext.selectable = false;
dformat.font = "Impact";
dformat.size = 43;
dformat.color = "0x000000";
dtext.defaultTextFormat = dformat;
dtext.width = 263;
dtext.height = 55;
dtext.x = ((stage.stageWidth / 2) - (dtext.width / 2));
dtext.y = ((stage.stageHeight / 2) + 50);
dtext.text = "DONUTMASTER";
addChild(dtext);
dtext.filters = [tfilter];
stage.addEventListener(Event.ENTER_FRAME, inoef);
dsound = new dintro();
ds = dsound.play();
donut.addEventListener(MouseEvent.CLICK, donutclick);
}
function frame4(){
menusound = new menusong();
menusc = menusound.play();
menusc.addEventListener(Event.SOUND_COMPLETE, mscdone);
nextFrame();
}
function frame7(){
stop();
if (savefile.data.saved == undefined){
gridon = false;
griddy = false;
starson = true;
mouseaim = false;
numpad = false;
mousemove = false;
maxpons = 600;
pint = 2;
pintense = (4 - pint);
kright = 68;
kup = 87;
kleft = 65;
kdown = 83;
aright = 39;
aup = 38;
aleft = 37;
adown = 40;
sndfxon = true;
} else {
if (savefile.data.saved == 1){
gridon = savefile.data.gridon;
griddy = savefile.data.griddy;
starson = savefile.data.starson;
mouseaim = savefile.data.mouseaim;
numpad = savefile.data.numpad;
mousemove = savefile.data.mousemove;
maxpons = savefile.data.maxpons;
pint = savefile.data.pint;
pintense = savefile.data.pintense;
kright = savefile.data.kright;
kup = savefile.data.kup;
kleft = savefile.data.kleft;
kdown = savefile.data.kdown;
aright = savefile.data.aright;
aup = savefile.data.aup;
aleft = savefile.data.aleft;
adown = savefile.data.adown;
sndfxon = savefile.data.sndfxon;
};
};
stage.quality = "MEDIUM";
defsong = 84212;
bhealthmc = new MovieClip();
dacolor = 0xFFFFFF;
blah = getTimer();
fps = 0;
stage.addEventListener(Event.ENTER_FRAME, oef);
spawntime = 1400;
level = 0;
bosstype = 0;
bombs = 3;
lives = 6;
gunlevel = 1;
score = 0;
slow = 1;
mult = 1;
dagamewaswon = false;
if (gridon == true){
mcarr = new Array();
l = 0;
w = 0;
while (w < (wint + 1)) {
h = 0;
while (h < (hint + 1)) {
mc = new MovieClip();
mc.x = (w * div);
mc.y = (h * div);
mc.xspot = (w * div);
mc.yspot = (h * div);
mc.addEventListener(Event.ENTER_FRAME, follow);
this.addChild(mc);
mc.xvel = 0;
mc.yvel = 0;
mc.slow = 0.15;
mc.targx = mc.xspot;
mc.targy = mc.yspot;
mc.l = l;
mcarr.push(mc);
l++;
h++;
};
w++;
};
};
if (starson == true){
w = 0;
while (w < (wint - 1)) {
h = 0;
while (h < (hint - 1)) {
mcs = new MovieClip();
mcs.x = ((Math.random() * (wid + 300)) - 150);
mcs.y = ((Math.random() * (hei + 300)) - 150);
mcs.blarg = (Math.random() * 10);
var _local2 = mcs.graphics;
with (_local2) {
clear();
beginFill(0xFFFFFF, 0.8);
drawCircle(0, 0, 2.5);
endFill();
lineStyle(1, 0xFFFFFF, 0.8);
drawCircle(0, 0, 1);
};
if (mcs.blarg > 5){
if (mcs.blarg > 7){
mcs.alpha = 0.9;
mcs.sped = 3;
} else {
mcs.alpha = 0.7;
mcs.sped = 5;
};
} else {
mcs.alpha = 0.4;
mcs.sped = 7;
};
mcs.addEventListener(Event.ENTER_FRAME, starfollow);
addChild(mcs);
h++;
};
w++;
};
};
scorebox = new TextField();
scorebox.embedFonts = true;
format = new TextFormat();
scorebox.x = (wid / 10);
scorebox.y = (stage.stageHeight / 2);
scorebox.width = 670;
scorebox.height = 120;
format.font = "RussellSquare";
format.color = 0x555555;
format.size = 96;
format.align = "center";
scorebox.selectable = false;
scorebox.defaultTextFormat = format;
addChild(scorebox);
powerbar = new MovieClip();
_local2 = powerbar.graphics;
with (_local2) {
lineStyle(2, 0xFFFFFF, 0.5);
drawRect(0, 0, 250, 5);
};
addChild(powerbar);
powerbar.x = (15 + (wid / 3));
powerbar.y = ((stage.stageHeight / 2) + 100);
bcmc = new MovieClip();
_local2 = bcmc.graphics;
with (_local2) {
lineStyle(2, 0xFFFFFF);
};
drawACircle(0, 0, 4, bcmc);
drawACircle(15, 0, 4, bcmc);
drawACircle(30, 0, 4, bcmc);
bcmc.x = ((wid / 2) + 90);
bcmc.y = (scorebox.y + 18);
bcmc.alpha = 0.5;
addChild(bcmc);
lpic = new MovieClip();
_local2 = lpic.graphics;
with (_local2) {
lineStyle(2, 0xFFFFFF);
moveTo(0, -7);
lineTo(7, 7);
lineTo(0, 3);
lineTo(-7, 7);
lineTo(0, -7);
};
lpic.x = ((wid / 2) - 120);
lpic.y = (scorebox.y + 15);
lpic.alpha = 0.4;
addChild(lpic);
livesbox = new TextField();
livesbox.embedFonts = true;
livesformat = new TextFormat();
livesbox.x = ((wid / 2) - 107);
livesbox.y = (scorebox.y + 5);
livesformat.font = "RussellSquare";
livesformat.color = 0x555555;
livesformat.size = 14;
livesformat.align = "left";
livesbox.selectable = false;
livesbox.defaultTextFormat = livesformat;
livesbox.text = ("x " + lives);
addChild(livesbox);
ship = new MovieClip();
gra = ship.graphics;
gra.lineStyle(2, dacolor);
gra.moveTo(0, -7);
gra.lineTo(7, 7);
gra.lineTo(0, 3);
gra.lineTo(-7, 7);
gra.lineTo(0, -7);
addChild(ship);
ship.x = (wid / 2);
ship.y = (hei / 2);
multthing = 1;
bossness = false;
dead = false;
bombing = false;
varRight = false;
varLeft = false;
varUp = false;
varDown = false;
aimR = false;
aimL = false;
aimU = false;
aimD = false;
aimDL = false;
aimDR = false;
aimUL = false;
aimUR = false;
spd = 0;
maxspd = 10;
arot = 0;
rot = 0;
maxdist = 100;
modeness = 2;
shotSpeed = 5;
gpause = false;
stime = getTimer();
etime = getTimer();
shotarr = new Array();
drag = 8;
R = 0;
Q1 = 0;
QQ1 = 0;
Q2 = 0;
QQ2 = 0;
Q3 = 0;
Q4 = 0;
pons = 0;
ecount = 0;
espawned = 0;
emax = 50;
etypes = 6;
puptime = 0;
shields = false;
buddies = 0;
ptotal = 3;
bosshealth = 0;
spawning = false;
addChild(bhealthmc);
bhealthmc.x = (wid / 2);
bhealthmc.y = (hei / 2);
bossthing = 0;
smallz = new smalllogo();
smallz.x = (40 + (wid / 3));
smallz.y = ((stage.stageHeight / 2) + 110);
smallz.alpha = 0.1;
addChild(smallz);
smallz.addEventListener(MouseEvent.CLICK, smallclick);
pmenu = new pausemenu();
addChild(pmenu);
pmenu.visible = false;
pmenu.x = ship.x;
pmenu.y = ship.y;
pmenu.ddsp.cursong = defsong;
pmenu.pint = pint;
pmenu.pintense = pintense;
pmenu.maxpons = maxpons;
bounds = new MovieClip();
_local2 = bounds.graphics;
with (_local2) {
lineStyle(5, dacolor);
bounds.graphics.drawRect(0, 0, wid, hei);
};
bounds.x = (bounds.y = 0);
addChild(bounds);
stage.addEventListener(Event.ENTER_FRAME, movement);
stage.addEventListener(KeyboardEvent.KEY_DOWN, checkKeys);
stage.addEventListener(KeyboardEvent.KEY_UP, keyUps);
s = 0;
extralife = false;
xarr = new Array(50, (wid - 50), (Math.round((Math.random() * (wid - 100))) + 50));
yarr = new Array(50, (hei - 50), (Math.round((Math.random() * (hei - 100))) + 50));
bindi = new MovieClip();
_local2 = bindi;
with (_local2) {
graphics.clear();
graphics.lineStyle(2, 0xFFFFFF);
};
drawACircle(0, 0, 10, bindi);
bindi.alpha = 0.5;
addChild(bindi);
}
function frame5(){
stop();
levelmode = false;
savefile = SharedObject.getLocal("retrosplode");
stage.quality = "HIGH";
gameselect = false;
menuframe = true;
colorarr = new Array("0xFFFFFF", "0xFF0000", "0x00FF00", "0x0000FF", "0xFF9900", "0xCC00FF", "0x9900FF");
menucover.visible = false;
mb5.visible = false;
mb6.visible = false;
slide = false;
addEventListener(Event.ENTER_FRAME, menuoEf);
mb1.addEventListener(MouseEvent.CLICK, menuclick);
mb2.addEventListener(MouseEvent.CLICK, menuclick);
mb3.addEventListener(MouseEvent.CLICK, menuclick);
mb4.addEventListener(MouseEvent.CLICK, menuclick);
mb5.addEventListener(MouseEvent.CLICK, menuclick);
mb6.addEventListener(MouseEvent.CLICK, menuclick);
mb7.addEventListener(MouseEvent.CLICK, menuclick);
logo.addEventListener(MouseEvent.CLICK, menuclick);
partindi.text = String(3);
partindi.restrict = "0-9";
}
function frame6(){
stop();
dragness = false;
dragness2 = false;
changes = false;
if (savefile.data.saved == undefined){
gridon = false;
griddy = false;
starson = true;
mouseaim = false;
numpad = false;
mousemove = false;
maxpons = 600;
pint = 2;
pintense = (4 - pint);
kright = 68;
kup = 87;
kleft = 65;
kdown = 83;
aright = 39;
aup = 38;
aleft = 37;
adown = 40;
sndfxon = true;
} else {
if (savefile.data.saved == 1){
gridon = savefile.data.gridon;
griddy = savefile.data.griddy;
starson = savefile.data.starson;
mouseaim = savefile.data.mouseaim;
numpad = savefile.data.numpad;
mousemove = savefile.data.mousemove;
maxpons = savefile.data.maxpons;
pint = savefile.data.pint;
pintense = savefile.data.pintense;
kright = savefile.data.kright;
kup = savefile.data.kup;
kleft = savefile.data.kleft;
kdown = savefile.data.kdown;
aright = savefile.data.aright;
aup = savefile.data.aup;
aleft = savefile.data.aleft;
adown = savefile.data.adown;
sndfxon = savefile.data.sndfxon;
};
};
if (gridon){
bgbox.text = "Dynamic Grid";
} else {
if (griddy){
bgbox.text = "Static Grid";
} else {
if (starson){
bgbox.text = "Starry Night";
} else {
bgbox.text = "Nothingness";
};
};
};
pslide.x = (pbar.x + (((pint * pbar.width) - pbar.width) / 2));
pslide2.x = ((((maxpons - 400) / 600) * pbar2.width) + pbar2.x);
if (sndfxon == true){
fxbox.text = "Sound FX On";
} else {
fxbox.text = "Sound FX Off";
};
ckeything.visible = false;
son.addEventListener(MouseEvent.CLICK, bclick);
soff.addEventListener(MouseEvent.CLICK, bclick);
b1.addEventListener(MouseEvent.CLICK, bclick);
b2.addEventListener(MouseEvent.CLICK, bclick);
b3.addEventListener(MouseEvent.CLICK, bclick);
b5.addEventListener(MouseEvent.CLICK, bclick);
b6.addEventListener(MouseEvent.CLICK, bclick);
b7.addEventListener(MouseEvent.CLICK, bclick);
b8.addEventListener(MouseEvent.CLICK, bclick);
b9.addEventListener(MouseEvent.CLICK, bclick);
b10.addEventListener(MouseEvent.CLICK, bclick);
b11.addEventListener(MouseEvent.CLICK, bclick);
b12.addEventListener(MouseEvent.CLICK, bclick);
b13.addEventListener(MouseEvent.CLICK, bclick);
b14.addEventListener(MouseEvent.CLICK, bclick);
pslide.addEventListener(MouseEvent.MOUSE_DOWN, mdown);
pslide2.addEventListener(MouseEvent.MOUSE_DOWN, mdown2);
stage.addEventListener(MouseEvent.MOUSE_UP, mup);
stage.addEventListener(Event.ENTER_FRAME, opoef);
}
public function spawnsplode(_arg1, _arg2){
var l:Number;
var shrink:Function;
var xchoice:Number;
var ychoice:Number;
var daxspot:Number;
var dayspot:Number;
var lw:MovieClip;
var numbuh = _arg1;
var floop = _arg2;
shrink = function (_arg1:Event){
var event = _arg1;
if (!gpause){
var _local3 = event.target;
with (_local3) {
alpha = (alpha + 0.02);
x = (x + ((daxspot - x) / 10));
y = (y + ((dayspot - y) / 10));
};
if ((((event.target.alpha > 0.7)) || ((((dead == true)) && (!((lw.numbuh == 1))))))){
if ((((event.target.num > 13)) && (((!(dead)) || (((dead) && ((lw.numbuh == 1)))))))){
if (lw.numbuh == 0){
splosion(event.target.x, event.target.y, 20, event.target.col);
spawn((Math.round((Math.random() * etypes)) + 1), 0, daxspot, dayspot, xchoice, ychoice);
} else {
if (lw.numbuh == 1){
splosion(event.target.x, event.target.y, 20, dacolor);
ship.visible = true;
dead = false;
} else {
if (lw.numbuh == 2){
splosion(event.target.x, event.target.y, 20, event.target.col);
spawn(1, 0, daxspot, dayspot, xchoice, ychoice);
} else {
if (lw.numbuh == 3){
splosion(event.target.x, event.target.y, 10, event.target.col);
spawn(event.target.floop, 0, daxspot, dayspot, xchoice, ychoice);
};
};
};
};
};
spawning = false;
pons--;
event.target.parent.removeChild(event.target);
event.target.removeEventListener(Event.ENTER_FRAME, shrink);
};
};
};
spawning = true;
if ((((((numbuh == 0)) || ((numbuh == 2)))) || ((numbuh == 3)))){
if (((!((numbuh == 3))) || (!((floop == 7))))){
xchoice = Math.round((Math.random() * 2));
ychoice = Math.round((Math.random() * 2));
daxspot = xarr[xchoice];
dayspot = yarr[ychoice];
} else {
daxspot = (Math.random() * wid);
dayspot = (Math.random() * hei);
};
} else {
if (numbuh == 1){
daxspot = (wid / 2);
dayspot = (hei / 2);
};
};
l = 0;
while (l < 15) {
pons++;
lw = new MovieClip();
if (numbuh == 0){
lw.col = dacolor;
} else {
lw.col = colorarr[Math.round((Math.random() * (colorarr.length - 1)))];
};
var _local4 = lw.graphics;
with (_local4) {
lineStyle(2, lw.col);
moveTo(0, 0);
lineTo(0, 3);
};
addChild(lw);
lw.numbuh = numbuh;
lw.floop = floop;
lw.num = l;
lw.i = 300;
lw.alpha = 0;
lw.rang = Math.round((Math.random() * 360));
lw.rotation = (lw.rang + 90);
lw.x = (daxspot + (Math.cos((lw.rang * (Math.PI / 180))) * lw.i));
lw.y = (dayspot + (Math.sin((lw.rang * (Math.PI / 180))) * lw.i));
lw.addEventListener(Event.ENTER_FRAME, shrink);
l = (l + 1);
};
}
function frame1(){
stop();
newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
customItem = new ContextMenuItem("MoFunZone.com - Play More Games");
customItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, goTo);
newMenu.customItems.push(customItem);
this.contextMenu = newMenu;
b_preloadRelease = function (){
getURL("http://www.mofunzone.com/", "_blank");
};
b_preload.addEventListener("mouseUp", b_preloadRelease);
}
public function mscdone(_arg1){
menusc = menusound.play();
menusc.removeEventListener(Event.SOUND_COMPLETE, mscdone);
menusc.addEventListener(Event.SOUND_COMPLETE, mscdone);
}
public function starfollow(_arg1:Event){
var event = _arg1;
if (((((!(gpause)) && (!(dead)))) && ((event.target.sped > 0)))){
var _local3 = event.target;
with (_local3) {
if ((((ship.x > 0)) && ((ship.x < wid)))){
x = (x + (((spd / sped) / slow) * Math.sin((ship.rotation * (Math.PI / 180)))));
};
if ((((ship.y > 0)) && ((ship.y < hei)))){
y = (y - (((spd / sped) / slow) * Math.cos((ship.rotation * (Math.PI / 180)))));
};
};
};
if ((((lives <= 0)) || ((dagamewaswon == true)))){
event.target.parent.removeChild(event.target);
event.target.removeEventListener(Event.ENTER_FRAME, starfollow);
};
}
public function movement(_arg1):void{
var p:Number;
var shotsnd:Sound;
var ohsnap:Number;
var ohsnap2:Number;
var spawn2:Number;
var Event = _arg1;
if (!gpause){
if (smallz.hitTestPoint(mouseX, mouseY, true)){
smallz.alpha = 1;
} else {
smallz.alpha = 0.1;
};
};
if (levelmode){
if (Math.floor((score / (15000 * multthing))) == 1){
if (!extralife){
lives = (lives + 1);
multthing = (multthing + 1);
extralife = true;
};
} else {
extralife = false;
};
} else {
if (Math.floor((score / (30000 * multthing))) == 1){
if (!extralife){
lives = (lives + 1);
multthing = (multthing + 1);
extralife = true;
};
} else {
extralife = false;
};
};
pmenu.visible = gpause;
if (bosshealth <= 0){
bosshealth = 0;
bossness = false;
var _local3 = bhealthmc;
with (_local3) {
graphics.clear();
};
} else {
bossthing = (bossthing + ((bosshealth - bossthing) / 15));
_local3 = bhealthmc;
with (_local3) {
graphics.clear();
graphics.lineStyle(0, 0xFFFFFF, 0);
graphics.beginFill(0xFF00, 0.2);
graphics.drawRect(((-(wid) / 2) * (bossthing / 100)), ((-(hei) / 2) * (bossthing / 100)), (wid * (bossthing / 100)), (hei * (bossthing / 100)));
graphics.endFill();
};
bossness = true;
};
livesbox.text = ("x " + lives);
_local3 = bcmc.graphics;
with (_local3) {
clear();
lineStyle(2, 0xFFFFFF);
};
if (bombs == 3){
drawACircle(0, 0, 4, bcmc);
};
if (bombs >= 2){
drawACircle(15, 0, 4, bcmc);
};
if (bombs >= 1){
drawACircle(30, 0, 4, bcmc);
};
maxpons = (700 - (15 * gunlevel));
if (mult < 1){
mult = 1;
} else {
mult = (mult - 0.01);
};
if (mult > 5){
mult = 5;
};
score = Math.round(score);
scorebox.text = score.toString();
if (pons < 0){
pons = 0;
};
if (buddies >= 3){
ptotal = 3;
} else {
ptotal = 4;
};
if (gunlevel > 11){
gunlevel = 11;
};
if (gunlevel < 1){
gunlevel = 1;
};
if (bombs > 3){
bombs = 3;
};
if (bombs < 0){
bombs = 0;
};
if (lives < 0){
lives = 0;
};
if (!gpause){
if (!dead){
if (((!((slow == 1))) || ((shields == true)))){
puptime++;
_local3 = powerbar.graphics;
with (_local3) {
clear();
lineStyle(2, 0xFFFFFF, 0.3);
drawRect(0, 0, 250, 5);
beginFill(0xFFFFFF, 0.2);
drawRect(0, 0, ((250 * puptime) / 400), 5);
endFill();
};
if ((((shields == false)) || ((puptime > 400)))){
gra.clear();
gra.lineStyle(2, dacolor);
gra.moveTo(0, -7);
gra.lineTo(7, 7);
gra.lineTo(0, 3);
gra.lineTo(-7, 7);
gra.lineTo(0, -7);
} else {
if (shields == true){
gra.clear();
gra.lineStyle(2, colorarr[Math.round((Math.random() * (colorarr.length - 1)))]);
gra.moveTo(0, -7);
gra.lineTo(7, 7);
gra.lineTo(0, 3);
gra.lineTo(-7, 7);
gra.lineTo(0, -7);
ship.graphics.drawCircle(0, 0, 12);
};
};
if (puptime > 400){
_local3 = powerbar.graphics;
with (_local3) {
clear();
lineStyle(2, 0xFFFFFF, 0.3);
drawRect(0, 0, 250, 5);
};
slow = 1;
shields = false;
};
};
} else {
shields = true;
slow = 1;
puptime = 320;
gra.clear();
gra.lineStyle(2, dacolor);
gra.moveTo(0, -7);
gra.lineTo(7, 7);
gra.lineTo(0, 3);
gra.lineTo(-7, 7);
gra.lineTo(0, -7);
};
if (bombing == true){
maxdist = 700;
modeness = 1;
} else {
maxdist = 150;
modeness = 2;
};
if (!dead){
ship.x = (ship.x + ((spd / slow) * Math.sin((ship.rotation * (Math.PI / 180)))));
ship.y = (ship.y - ((spd / slow) * Math.cos((ship.rotation * (Math.PI / 180)))));
} else {
if (((dead) && ((lives > 0)))){
ship.x = (ship.x + (((wid / 2) - ship.x) / 7));
ship.y = (ship.y + (((hei / 2) - ship.y) / 7));
};
};
if (!bombing){
x = ((((Math.random() * mult) / 3) - ((Math.random() * mult) / 3)) + (((stage.stageWidth / 2.5) - ship.x) / 2));
y = ((((Math.random() * mult) / 3) - ((Math.random() * mult) / 3)) + (((stage.stageHeight / 2.5) - ship.y) / 2));
} else {
x = (((Math.random() * 10) - ((Math.random() * mult) / 3)) + (((stage.stageWidth / 2.5) - ship.x) / 2));
y = (((Math.random() * 10) - ((Math.random() * mult) / 3)) + (((stage.stageHeight / 2.5) - ship.y) / 2));
};
pmenu.x = (350 - ((((Math.random() * mult) / 3) - ((Math.random() * mult) / 3)) + (((stage.stageWidth / 2.5) - ship.x) / 2)));
pmenu.y = (275 - ((((Math.random() * mult) / 3) - ((Math.random() * mult) / 3)) + (((stage.stageHeight / 2.5) - ship.y) / 2)));
if (((((((((mousemove) || (varRight))) || (varLeft))) || (varUp))) || (varDown))){
if (mousemove){
if (rot < 0){
Q1 = (Q1 + (rot - QQ1));
};
QQ1 = rot;
if (rot > 0){
Q2 = (Q2 + (rot - QQ2));
};
QQ2 = rot;
if ((Q3 - 180) > rot){
Q1 = (Q1 + 360);
};
Q3 = rot;
if ((Q4 + 180) < rot){
Q2 = (Q2 - 360);
};
Q4 = rot;
R = (R + (((Q1 + Q2) - R) / drag));
ship.rotation = R;
spd = maxspd;
} else {
ship.rotation = (ship.rotation - ((ship.rotation - rot) / 3));
if (spd < maxspd){
spd++;
};
};
if (dead == false){
p = 0;
while (p < (spd / 4)) {
partness(1, ship);
p = (p + slow);
};
};
} else {
if (spd >= 2){
spd = (spd - 2);
};
};
if (ship.x > wid){
ship.x = wid;
};
if (ship.x < 0){
ship.x = 0;
};
if (ship.y > hei){
ship.y = hei;
};
if (ship.y < 0){
ship.y = 0;
};
if (mousemove == true){
rot = (90 + (Math.atan2((mouseY - ship.y), (mouseX - ship.x)) / (Math.PI / 180)));
} else {
if (((varRight) && (!(varLeft)))){
if ((((oldrot == -180)) || ((oldrot == -135)))){
ship.rotation = (rot = 180);
};
if (varUp){
rot = 45;
} else {
if (varDown){
rot = 135;
} else {
rot = 90;
};
};
} else {
if (((varLeft) && (!(varRight)))){
if ((((oldrot == 180)) || ((oldrot == 135)))){
ship.rotation = (rot = -180);
};
if (varUp){
rot = -45;
} else {
if (varDown){
rot = -135;
} else {
rot = -90;
};
};
} else {
if (varUp){
rot = 0;
} else {
if (varDown){
if (oldrot < 0){
rot = -180;
} else {
rot = 180;
};
};
};
};
};
};
oldrot = rot;
if (mouseaim == true){
arot = (90 + (Math.atan2((mouseY - ship.y), (mouseX - ship.x)) / (Math.PI / 180)));
} else {
if (((((((aimR) && (!(aimL)))) || (aimUR))) || (aimDR))){
if (((aimU) || (((aimUR) && (!(aimDR)))))){
arot = 45;
} else {
if (((aimD) || (((aimDR) && (!(aimUR)))))){
arot = 135;
} else {
arot = 90;
};
};
} else {
if (((((((aimL) && (!(aimR)))) || (aimUL))) || (aimDL))){
if (((aimU) || (((aimUL) && (!(aimDL)))))){
arot = -45;
} else {
if (((aimD) || (((aimDL) && (!(aimUL)))))){
arot = -135;
} else {
arot = -90;
};
};
} else {
if (aimU){
arot = 0;
} else {
if (aimD){
arot = 180;
};
};
};
};
};
if (!dead){
if (!bombing){
if (((((((((((((((((mouseaim) || (aimR))) || (aimL))) || (aimU))) || (aimD))) || (aimUR))) || (aimDR))) || (aimUL))) || (aimDL))){
if (slow == 1){
if ((getTimer() - stime) > 175){
if (sndfxon == true){
shotsnd = new shotsound();
shotsnd.play();
};
if ((((gunlevel == 1)) || ((gunlevel == 2)))){
shoot(arot, ship.x, ship.y, 2.5);
} else {
if ((((gunlevel == 3)) || ((gunlevel == 4)))){
shoot(arot, ship.x, ship.y, 4);
} else {
if ((((gunlevel == 5)) || ((gunlevel == 6)))){
shoot((arot + 2.5), ship.x, ship.y, 2.5);
shoot((arot - 2.5), ship.x, ship.y, 2.5);
} else {
if ((((gunlevel == 7)) || ((gunlevel == 8)))){
shoot((arot + 2.5), ship.x, ship.y, 4);
shoot((arot - 2.5), ship.x, ship.y, 4);
} else {
if ((((gunlevel == 9)) || ((gunlevel == 10)))){
shoot((arot + 5), ship.x, ship.y, 2.5);
shoot((arot - 5), ship.x, ship.y, 2.5);
shoot(arot, ship.x, ship.y, 2.5);
} else {
if (gunlevel == 11){
shoot((arot + 7), ship.x, ship.y, 4);
shoot((arot - 7), ship.x, ship.y, 4);
shoot(arot, ship.x, ship.y, 4);
};
};
};
};
};
};
stime = getTimer();
};
} else {
if ((getTimer() - stime) > (200 * (slow / 2))){
if (sndfxon == true){
shotsnd = new shotsound();
shotsnd.play();
};
if ((((gunlevel == 1)) || ((gunlevel == 2)))){
shoot(arot, ship.x, ship.y, 2.5);
} else {
if ((((gunlevel == 3)) || ((gunlevel == 4)))){
shoot(arot, ship.x, ship.y, 4);
} else {
if ((((gunlevel == 5)) || ((gunlevel == 6)))){
shoot((arot + 2.5), ship.x, ship.y, 2.5);
shoot((arot - 2.5), ship.x, ship.y, 2.5);
} else {
if ((((gunlevel == 7)) || ((gunlevel == 8)))){
shoot((arot + 2.5), ship.x, ship.y, 4);
shoot((arot - 2.5), ship.x, ship.y, 4);
} else {
if ((((gunlevel == 9)) || ((gunlevel == 10)))){
shoot((arot + 5), ship.x, ship.y, 2.5);
shoot((arot - 5), ship.x, ship.y, 2.5);
shoot(arot, ship.x, ship.y, 2.5);
} else {
if (gunlevel == 11){
shoot((arot + 7), ship.x, ship.y, 4);
shoot((arot - 7), ship.x, ship.y, 4);
shoot(arot, ship.x, ship.y, 4);
};
};
};
};
};
};
stime = getTimer();
};
};
};
};
if (!levelmode){
if (ecount < emax){
if ((getTimer() - etime) > spawntime){
ohsnap = (Math.round((Math.random() * etypes)) + 1);
if (ohsnap == 5){
ohsnap = 1;
};
ohsnap2 = (Math.round((Math.random() * etypes)) + 1);
if (((((espawned % 50) == 0)) && ((spawntime > 800)))){
spawntime = (spawntime - 20);
};
if (((((espawned % 10) == 0)) && (!((espawned == 0))))){
spawn2 = 0;
while (spawn2 < 4) {
spawnsplode(3, ohsnap);
spawn2 = (spawn2 + 1);
};
spawnsplode(3, ohsnap2);
} else {
spawnsplode(0, 0);
};
etime = getTimer();
};
};
};
if (((((!(spawning)) && (levelmode))) && (!(bossness)))){
if ((((level == 0)) || ((ecount == 0)))){
levelspawn();
};
};
};
};
}
public function buddyOEF(_arg1:Event){
if (!gpause){
if (dead){
splosion(_arg1.target.x, _arg1.target.y, 20, 0xFFFFFF);
_arg1.target.x = -300;
};
if (_arg1.target.mtime > 2400){
buddies = (buddies - 1);
_arg1.target.parent.removeChild(_arg1.target);
_arg1.target.removeEventListener(Event.ENTER_FRAME, buddyOEF);
};
_arg1.target.btime = (_arg1.target.btime + (1 / slow));
_arg1.target.mtime = (_arg1.target.mtime + (1 / slow));
if (_arg1.target.btime > 200){
_arg1.target.rot = ((Math.random() * 20) - (Math.random() * 20));
_arg1.target.btime = 0;
};
_arg1.target.rotation = (_arg1.target.rotation - (_arg1.target.rot / slow));
if (slow == 1){
if ((getTimer() - _arg1.target.stime) > 400){
shoot((_arg1.target.rotation + 90), _arg1.target.x, _arg1.target.y, 2.5);
_arg1.target.stime = getTimer();
};
} else {
if ((getTimer() - _arg1.target.stime) > (400 * (slow / 2))){
shoot((_arg1.target.rotation + 90), _arg1.target.x, _arg1.target.y, 2.5);
_arg1.target.stime = getTimer();
};
};
};
}
public function bossmove(_arg1:Event){
var lolmax:Number;
var lol:Number;
var event = _arg1;
if (((!(gpause)) && (!(dead)))){
if (event.target.blah == 1){
if ((getTimer() - event.target.timer) > (1500 * slow)){
event.target.xspot = (Math.random() * wid);
event.target.yspot = (Math.random() * hei);
event.target.timer = getTimer();
};
if ((getTimer() - event.target.stimer) > (2000 * slow)){
if (sndfxon){
eshotsnd = new shotsound();
eshotsnd.play();
};
bossshoot(event.target.rotation, event.target.x, event.target.y, 5);
event.target.stimer = getTimer();
};
event.target.rotation = ((Math.atan2((ship.y - event.target.y), (ship.x - event.target.x)) / (Math.PI / 180)) + 90);
event.target.x = (event.target.x + ((event.target.xspot - event.target.x) / 25));
event.target.y = (event.target.y + ((event.target.yspot - event.target.y) / 25));
if ((((((event.target.health <= 80)) && ((event.target.health > 40)))) || ((((event.target.health > 10)) && ((event.target.health <= 20)))))){
score = (score + (25 * Math.floor(mult)));
splosion(event.target.x, event.target.y, 30, 0xFF0000);
bossspawn(1, Math.round((event.target.health / 2)), event.target.x, event.target.y);
bossspawn(1, Math.round((event.target.health / 2)), event.target.x, event.target.y);
event.target.x = -400;
};
} else {
if (event.target.blah == 2){
if ((getTimer() - event.target.stime) < (6000 * slow)){
event.target.rota = (event.target.rota + ((5 * Math.PI) / 180));
event.target.xspot = ship.x;
event.target.yspot = ship.y;
event.target.i = 150;
event.target.rotation = ((Math.atan2((ship.y - event.target.y), (ship.x - event.target.x)) / (Math.PI / 180)) + 90);
} else {
if (((((getTimer() - event.target.stime) > (6000 * slow))) && (((getTimer() - event.target.stime) < (7000 * slow))))){
event.target.xspot = ship.x;
event.target.yspot = ship.y;
partness(2, event.target);
} else {
if (((((getTimer() - event.target.stime) > (7000 * slow))) && (((getTimer() - event.target.stime) < (12000 * slow))))){
partness(2, event.target);
if (event.target.i > 0){
event.target.i = (event.target.i - 30);
} else {
event.target.stuck = true;
};
};
};
};
if ((getTimer() - event.target.stime) > (12000 * slow)){
if (event.target.i < 150){
event.target.i = (event.target.i + 30);
} else {
event.target.stuck = false;
event.target.stime = getTimer();
};
};
if ((((event.target.stuck == false)) && ((event.target.numbuh < 2)))){
if ((getTimer() - event.target.timer) > ((2000 * (event.target.numbuh + 1)) * slow)){
if (sndfxon){
eshotsnd = new shotsound();
eshotsnd.play();
};
bossshoot(event.target.rotation, event.target.x, event.target.y, 2.5);
event.target.timer = getTimer();
};
};
var _local3 = event.target;
with (_local3) {
xpos = (xspot + (Math.cos(rota) * i));
ypos = (yspot + (Math.sin(rota) * i));
x = (x + ((xpos - x) / 5));
y = (y + ((ypos - y) / 5));
if (x < 0){
x = 0;
};
if (y > hei){
y = hei;
};
if (y < 0){
y = 0;
};
if (x > wid){
x = wid;
};
};
};
};
if (((!((event.target.blah == 2))) || ((event.target.blah == 2)))){
if (((bombing) && (event.target.hitTestObject(boom)))){
if (event.target.hit == false){
if (event.target.blah == 1){
event.target.health = (event.target.health - 7);
};
bosshealth = (bosshealth - 7);
event.target.hit = true;
};
} else {
event.target.hit = false;
};
lolmax = (s - ((15 + (7 * buddies)) + Math.round(((10 * gunlevel) / 4))));
lol = lolmax;
while (lol < s) {
if (shotarr[lol] != null){
if (event.target.hitTestObject(shotarr[lol]) == true){
splosion(event.target.x, event.target.y, 20, 1);
if (event.target.blah == 1){
event.target.health = (event.target.health - 1);
};
bosshealth = (bosshealth - 1);
shotarr[lol].x = -500;
};
};
lol = (lol + 1);
};
};
};
if (((event.target.hitTestObject(ship)) && ((((event.target.blah == 1)) || ((((event.target.blah == 2)) && ((event.target.i <= 10)))))))){
if (shields){
if (ship.visible == true){
bosshealth = (bosshealth - 1);
};
} else {
shipspawn();
};
};
if ((((((event.target.health <= 0)) || ((bosshealth <= 0)))) || (!(bossness)))){
bindi.x = -300;
score = (score + (1000 * mult));
splosion(event.target.x, event.target.y, 20, 0xFF0000);
event.target.x = -400;
};
if (event.target.x <= -300){
event.target.parent.removeChild(event.target);
event.target.removeEventListener(Event.ENTER_FRAME, bossmove);
};
if (lives <= 0){
event.target.parent.removeChild(event.target);
event.target.removeEventListener(Event.ENTER_FRAME, bossmove);
};
}
function frame8(){
stop();
pmenu.ddsp.loopy = true;
songlist.text = "You've listened to these songs (click to go to song page): ";
ddsi = 0;
while (ddsi < pmenu.ddsp.slist.length) {
if (pmenu.ddsp.slist[ddsi] != null){
songlist.appendText((String(pmenu.ddsp.slist[ddsi]) + ", "));
};
ddsi++;
};
if (((levelmode) && ((level > 30)))){
titlemc.gotoAndStop(2);
score = (score + (lives * 3000));
} else {
titlemc.gotoAndStop(1);
};
loadVariablesNum(("http://gamefilez.mofunzone.com/game_scores/retrosplode/mfz.php?" + score));
addEventListener(MouseEvent.MOUSE_DOWN, selectText);
Mouse.show();
if (savefile.data.nameness == undefined){
namebox.text = "Name Here";
} else {
namebox.text = savefile.data.nameness;
};
backb.addEventListener(MouseEvent.CLICK, submit);
dascorebox.text = ("" + score);
moregamesb.addEventListener(MouseEvent.CLICK, tomo);
logo2.addEventListener(MouseEvent.CLICK, tomo);
}
public function partness(_arg1, _arg2){
var _local3:MovieClip;
var _local4:Graphics;
_local3 = new MovieClip();
_local4 = _local3.graphics;
if (_arg1 == 1){
_local4.lineStyle(2, colorarr[Math.round((Math.random() * (colorarr.length - 1)))], (0.6 + (Math.random() * 0.4)));
_local4.moveTo(-0.25, -0.75);
_local4.lineTo(0.75, 0.25);
_local3.rotation = ((ship.rotation + (Math.random() * 20)) - (Math.random() * 20));
_local3.x = ship.x;
_local3.y = ship.y;
} else {
if (_arg1 == 2){
_local4.lineStyle(2, colorarr[Math.round((Math.random() * (colorarr.length - 1)))], (0.6 + (Math.random() * 0.4)));
_local4.moveTo(-0.25, -0.75);
_local4.lineTo(0.75, 0.25);
_local3.rotation = ((_arg2.rotation + (Math.random() * 40)) - (Math.random() * 40));
_local3.x = _arg2.x;
_local3.y = _arg2.y;
};
};
_local3.p = _arg1;
addChild(_local3);
_local3.addEventListener(Event.ENTER_FRAME, partmove);
}
public function bossshoot(_arg1, _arg2, _arg3, _arg4){
var _local5:MovieClip;
var _local6:Graphics;
pons++;
_local5 = new MovieClip();
_local6 = _local5.graphics;
_local6.lineStyle(2, 0xFF0000);
_local6.moveTo(-(_arg4), -(_arg4));
_local6.lineTo(-(_arg4), _arg4);
_local6.lineTo(_arg4, _arg4);
_local6.lineTo(_arg4, -(_arg4));
_local6.lineTo(-(_arg4), -(_arg4));
_local5.rot = _arg1;
_local5.typeness = 2;
_local5.x = _arg2;
_local5.y = _arg3;
addChild(_local5);
_local5.addEventListener(Event.ENTER_FRAME, shotmove);
}
public function smallclick(_arg1:Event){
if (!gpause){
gpause = true;
navigateToURL(new URLRequest("http://www.MoFunZone.com/"), "_blank");
};
}
public function oef(_arg1:Event){
if ((getTimer() - blah) < 1000){
fps++;
} else {
fpsbox.text = ("" + fps);
fps = 0;
blah = getTimer();
};
}
public function tomo(_arg1:MouseEvent){
var _local2:URLRequest;
if (moregamesb.hitTestPoint(mouseX, mouseY, true)){
_local2 = new URLRequest("http://www.mofunzone.com/online_games/retrosplode.shtml");
} else {
_local2 = new URLRequest("http://www.MoFunZone.com/");
};
navigateToURL(_local2, "_blank");
}
public function skipbutton(_arg1:MouseEvent){
donut.removeEventListener(MouseEvent.CLICK, donutclick);
nextFrame();
ds.stop();
donut.parent.removeChild(donut);
dtext.parent.removeChild(dtext);
stage.removeEventListener(Event.ENTER_FRAME, inoef);
skipb.removeChild(skipt);
skipb.parent.removeChild(skipb);
skipb.removeEventListener(MouseEvent.CLICK, skipbutton);
}
public function goTo(_arg1:ContextMenuEvent){
navigateToURL(new URLRequest("http://www.MoFunZone.com/"), "_blank");
}
public function powerspawn(_arg1, _arg2, _arg3){
var powerup:MovieClip;
var grap:Graphics;
var g = _arg1;
var f = _arg2;
var k = _arg3;
powerup = new MovieClip();
grap = powerup.graphics;
grap.lineStyle(2, dacolor);
grap.drawCircle(0, 0, 18);
if (bosstype == 3){
powerup.pnumb = 3;
} else {
if (k == 0){
powerup.pnumb = (Math.round((Math.random() * (ptotal - 1))) + 1);
} else {
powerup.pnumb = 5;
};
};
powerup.timer = 0;
var _local5 = powerup;
with (_local5) {
if (pnumb == 1){
grap.beginFill(dacolor, 0.8);
drawACircle(0, 0, 8, powerup);
} else {
if (pnumb == 2){
grap.beginFill(dacolor, 0.2);
drawACircle(0, 0, 12, powerup);
grap.endFill();
grap.moveTo(0, -6);
grap.lineTo(6, 6);
grap.lineTo(0, 2.5);
grap.lineTo(-6, 6);
grap.lineTo(0, -6);
} else {
if (pnumb == 3){
grap.drawRect(-8.5, -8.5, 4.2, 16.5);
grap.moveTo(0.7, -8.5);
grap.lineTo(0.7, 8);
grap.lineTo(13.7, -0.5);
grap.lineTo(0.7, -8.5);
} else {
if (pnumb == 4){
drawACircle(0, 0, 9, powerup);
grap.moveTo(0, 0);
grap.lineTo(12, 0);
} else {
if (pnumb == 5){
grap.drawRect(-5, -5, 10, 10);
};
};
};
};
};
};
addChild(powerup);
powerup.x = g;
powerup.y = f;
powerup.width = (powerup.height = 30);
powerup.addEventListener(Event.ENTER_FRAME, pOEF);
}
public function menusplosion(_arg1, _arg2){
var i:Number;
var menuOEF:Function;
var part:MovieClip;
var pg:Graphics;
var xpos = _arg1;
var ypos = _arg2;
menuOEF = function (_arg1){
var event = _arg1;
if (menuframe == false){
event.target.alpha = 0;
};
if ((((((event.target.alpha <= 0)) || (((!((dascreen == null))) && ((event.target.hitTestObject(dascreen) == false)))))) || ((dascreen == null)))){
event.target.parent.removeChild(event.target);
event.target.removeEventListener(Event.ENTER_FRAME, menuOEF);
} else {
var _local3 = event.target;
with (_local3) {
x = (x + (xpspd * Math.sin((rotation * (Math.PI / 180)))));
y = (y - (ypspd * Math.cos((rotation * (Math.PI / 180)))));
alpha = (alpha - 0.01);
if (y > (dascreen.y + (dascreen.height / 2))){
ypspd = (ypspd * -1);
y = (dascreen.y + (dascreen.height / 2));
};
if (y < (dascreen.y - (dascreen.height / 2))){
ypspd = (ypspd * -1);
y = (dascreen.y + (dascreen.height / 2));
};
if (x >= (dascreen.x + (dascreen.width / 2))){
xpspd = (xpspd * -1);
x = (dascreen.x + (dascreen.width / 2));
};
if (x <= (dascreen.x - (dascreen.width / 2))){
xpspd = (xpspd * -1);
x = (dascreen.x - (dascreen.width / 2));
};
};
};
};
i = 0;
while (i < uint(partindi.text)) {
part = new MovieClip();
pg = part.graphics;
pg.lineStyle(2, colorarr[Math.round((Math.random() * (colorarr.length - 1)))]);
pg.moveTo(0, 0);
pg.lineTo(0, 1);
part.x = xpos;
part.y = ypos;
addChild(part);
part.rotation = Math.round((Math.random() * 360));
part.xpspd = (10 + (Math.random() * 5));
part.ypspd = part.xpspd;
part.addEventListener(Event.ENTER_FRAME, menuOEF);
i = (i + 1);
};
}
public function shotmove(_arg1:Event){
var event = _arg1;
if (!gpause){
var _local3 = event.target;
with (_local3) {
rotation = (rotation + (shotSpeed * 6));
if (slow == 1){
x = (x + ((3 * shotSpeed) * Math.sin((rot * (Math.PI / 180)))));
y = (y - ((3 * shotSpeed) * Math.cos((rot * (Math.PI / 180)))));
} else {
if (typeness == 2){
x = (x + ((3 * (shotSpeed / slow)) * Math.sin((rot * (Math.PI / 180)))));
y = (y - ((3 * (shotSpeed / slow)) * Math.cos((rot * (Math.PI / 180)))));
} else {
x = (x + ((3 * (shotSpeed / (slow / 2))) * Math.sin((rot * (Math.PI / 180)))));
y = (y - ((3 * (shotSpeed / (slow / 2))) * Math.cos((rot * (Math.PI / 180)))));
};
};
};
if (event.target.hitTestObject(bounds) == false){
_local3 = event.target;
with (_local3) {
if (x > -100){
if (x < 0){
splosion(2, y, 3, dacolor);
};
if (x > wid){
splosion((wid - 2), y, 3, dacolor);
};
if (y > hei){
splosion(x, (hei - 2), 3, dacolor);
};
if (y < 0){
splosion(x, 2, 3, dacolor);
};
};
};
event.target.x = -500;
event.target.parent.removeChild(event.target);
event.target.removeEventListener(Event.ENTER_FRAME, shotmove);
};
if ((((((event.target.typeness == 2)) && ((event.target.hitTestObject(ship) == true)))) && ((shields == false)))){
pons--;
shipspawn();
event.target.x = -400;
event.target.parent.removeChild(event.target);
event.target.removeEventListener(Event.ENTER_FRAME, shotmove);
};
};
}
public function tired(_arg1){
var boof = _arg1;
if (boof == "backb"){
gotoAndStop("premenu");
var _local3 = pmenu.ddsp;
with (_local3) {
removeness();
};
moregamesb.removeEventListener(MouseEvent.CLICK, tomo);
logo2.removeEventListener(MouseEvent.CLICK, tomo);
pmenu.parent.removeChild(pmenu);
removeEventListener(MouseEvent.MOUSE_DOWN, selectText);
backb.removeEventListener(MouseEvent.CLICK, submit);
};
}
public function inoef(_arg1:Event){
var _local2:uint;
_local2 = (100 * (ds.position / dsound.length));
if (_local2 > 38){
stage.addChildAt(covermc, 1);
covermc.alpha = (covermc.alpha + 0.05);
if (covermc.alpha >= 0.95){
donut.removeEventListener(MouseEvent.CLICK, donutclick);
nextFrame();
ds.stop();
donut.parent.removeChild(donut);
dtext.parent.removeChild(dtext);
covermc.parent.removeChild(covermc);
skipb.removeChild(skipt);
skipb.parent.removeChild(skipb);
skipb.removeEventListener(MouseEvent.CLICK, skipbutton);
stage.removeEventListener(Event.ENTER_FRAME, inoef);
};
};
donut.rotation = (donut.rotation + donut.xSpeed);
donut.x = (donut.x + donut.xSpeed);
donut.y = (donut.y + donut.ySpeed);
donut.xSpeed = (donut.xSpeed + ((donut.xTarget - donut.x) / donut.Speed));
donut.ySpeed = (donut.ySpeed + ((donut.yTarget - donut.y) / donut.Speed));
donut.xSpeed = (donut.xSpeed / donut.Stop);
donut.ySpeed = (donut.ySpeed / donut.Stop);
}
public function getURL(_arg1:String, _arg2:String){
var web:String;
var request:URLRequest;
var url = _arg1;
var method = _arg2;
web = url;
request = new URLRequest(web);
try {
navigateToURL(request, method);
} catch(e:Error) {
};
}
public function partmove(_arg1:Event){
var event = _arg1;
if (!gpause){
var _local3 = event.target;
with (_local3) {
alpha = (alpha - (0.05 / slow));
if (p == 1){
x = (x - (((shotSpeed - spd) * Math.sin((rotation * (Math.PI / 180)))) / slow));
y = (y + (((shotSpeed - spd) * Math.cos((rotation * (Math.PI / 180)))) / slow));
} else {
x = (x - ((2 * Math.sin((rotation * (Math.PI / 180)))) / slow));
y = (y + ((2 * Math.cos((rotation * (Math.PI / 180)))) / slow));
};
};
if ((((event.target.alpha <= 0.05)) || ((event.target.hitTestObject(bounds) == false)))){
pons = (pons - 1);
event.target.removeEventListener(Event.ENTER_FRAME, partmove);
event.target.parent.removeChild(event.target);
};
};
}
public function keyUps(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 80){
_arg1.keyCode = 0;
};
if (_arg1.keyCode == kright){
_arg1.keyCode = 0;
varRight = false;
};
if (_arg1.keyCode == 32){
_arg1.keyCode = 0;
};
if (_arg1.keyCode == kup){
_arg1.keyCode = 0;
varUp = false;
};
if (_arg1.keyCode == kleft){
_arg1.keyCode = 0;
varLeft = false;
};
if (_arg1.keyCode == kdown){
_arg1.keyCode = 0;
varDown = false;
};
if (_arg1.keyCode == aright){
_arg1.keyCode = 0;
aimR = false;
};
if (_arg1.keyCode == aup){
_arg1.keyCode = 0;
aimU = false;
};
if (_arg1.keyCode == aleft){
_arg1.keyCode = 0;
aimL = false;
};
if (_arg1.keyCode == adown){
_arg1.keyCode = 0;
aimD = false;
};
if (numpad){
if (_arg1.keyCode == 97){
_arg1.keyCode = 0;
aimDL = false;
};
if (_arg1.keyCode == 99){
_arg1.keyCode = 0;
aimDR = false;
};
if (_arg1.keyCode == 103){
_arg1.keyCode = 0;
aimUL = false;
};
if (_arg1.keyCode == 105){
_arg1.keyCode = 0;
aimUR = false;
};
};
}
public function bclick(_arg1:MouseEvent){
var event = _arg1;
var _local3 = event.target;
with (_local3) {
if (name == "b1"){
gridon = true;
griddy = false;
starson = false;
bgbox.text = "Dynamic Grid";
changes = true;
};
if (name == "b2"){
starson = true;
gridon = false;
griddy = false;
bgbox.text = "Starry Night";
changes = true;
};
if (name == "b3"){
starson = false;
gridon = false;
griddy = false;
bgbox.text = "Nothingness";
changes = true;
};
if (name == "b5"){
mousemove = true;
changes = true;
};
if (name == "b6"){
mousemove = false;
kright = 68;
kup = 87;
kleft = 65;
kdown = 83;
changes = true;
};
if (name == "b7"){
mousemove = false;
stage.addEventListener(KeyboardEvent.KEY_DOWN, dakeydown);
ckeything.visible = true;
ckeything.gotoAndStop(1);
changes = true;
};
if (name == "b8"){
mouseaim = true;
numpad = false;
changes = true;
};
if (name == "b9"){
mouseaim = false;
numpad = true;
aright = 102;
aup = 104;
aleft = 100;
adown = 98;
changes = true;
};
if (name == "b10"){
mouseaim = false;
numpad = false;
aright = 39;
aup = 38;
aleft = 37;
adown = 40;
changes = true;
};
if (name == "b11"){
mouseaim = false;
numpad = false;
stage.addEventListener(KeyboardEvent.KEY_DOWN, dakeydown);
ckeything.visible = true;
ckeything.gotoAndStop(6);
changes = true;
};
if (name == "b12"){
savestuff();
};
if (name == "b13"){
if (savefile.data.saved == 1){
gridon = savefile.data.gridon;
griddy = savefile.data.griddy;
starson = savefile.data.starson;
mouseaim = savefile.data.mouseaim;
numpad = savefile.data.numpad;
mousemove = savefile.data.mousemove;
maxpons = savefile.data.maxpons;
pint = savefile.data.pint;
pintense = savefile.data.pintense;
kright = savefile.data.kright;
kup = savefile.data.kup;
kleft = savefile.data.kleft;
kdown = savefile.data.kdown;
aright = savefile.data.aright;
aup = savefile.data.aup;
aleft = savefile.data.aleft;
adown = savefile.data.adown;
if (gridon){
bgbox.text = "Dynamic Grid";
} else {
if (griddy){
bgbox.text = "Static Grid";
} else {
if (starson){
bgbox.text = "Starry Night";
} else {
bgbox.text = "Nothingness";
};
};
};
pslide.x = (pbar.x + (((pint * pbar.width) - pbar.width) / 2));
pslide2.x = ((((maxpons - 400) / 600) * pbar2.width) + pbar2.x);
changes = false;
};
};
if ((((name == "b14")) || ((name == "b15")))){
bpress = name;
stage.addEventListener(KeyboardEvent.KEY_DOWN, dakeydown);
savestuff();
deletestuff();
};
if (name == "son"){
sndfxon = true;
fxbox.text = "Sound FX On";
};
if (name == "soff"){
sndfxon = false;
fxbox.text = "Sound FX Off";
};
};
}
public function levelspawn(){
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
level = (level + 1);
if (level == 1){
_local1 = 0;
while (_local1 < 3) {
spawnsplode(3, 1);
_local1++;
};
} else {
if (level == 2){
_local1 = 0;
while (_local1 < 6) {
spawnsplode(3, 1);
_local1++;
};
} else {
if (level == 3){
_local1 = 0;
while (_local1 < 3) {
spawnsplode(3, 1);
_local1++;
};
_local1 = 0;
while (_local1 < 2) {
spawnsplode(3, 3);
_local1++;
};
} else {
if (level == 4){
_local1 = 0;
while (_local1 < 7) {
spawnsplode(3, 3);
_local1++;
};
} else {
if (level == 5){
_local1 = 0;
while (_local1 < 4) {
spawnsplode(3, 3);
_local1++;
};
_local1 = 0;
while (_local1 < 2) {
spawnsplode(3, 4);
_local1++;
};
} else {
if (level == 6){
_local1 = 0;
while (_local1 < 5) {
spawnsplode(3, 4);
_local1++;
};
} else {
if (level == 7){
_local1 = 0;
while (_local1 < 7) {
spawnsplode(3, 4);
_local1++;
};
_local1 = 0;
while (_local1 < 2) {
spawnsplode(3, 5);
_local1++;
};
} else {
if (level == 8){
_local1 = 0;
while (_local1 < 5) {
spawnsplode(3, 1);
_local1++;
};
_local1 = 0;
while (_local1 < 4) {
spawnsplode(3, 3);
_local1++;
};
} else {
if (level == 9){
_local1 = 0;
while (_local1 < 12) {
spawnsplode(3, 1);
_local1++;
};
} else {
if (level == 10){
bossspawn(1, 100, 10, 10);
} else {
if (level == 11){
_local1 = 0;
while (_local1 < 2) {
spawnsplode(3, 6);
_local1++;
};
} else {
if (level == 12){
_local1 = 0;
while (_local1 < 3) {
spawnsplode(3, 1);
_local1++;
};
_local1 = 0;
while (_local1 < 7) {
spawnsplode(3, 6);
_local1++;
};
} else {
if (level == 13){
_local1 = 0;
while (_local1 < 5) {
spawnsplode(3, 2);
_local1++;
};
_local1 = 0;
while (_local1 < 5) {
spawnsplode(3, 3);
_local1++;
};
} else {
if (level == 14){
_local1 = 0;
while (_local1 < 4) {
spawnsplode(3, 6);
_local1++;
};
_local1 = 0;
while (_local1 < 2) {
spawnsplode(3, 7);
_local1++;
};
} else {
if (level == 15){
_local1 = 0;
while (_local1 < 6) {
spawnsplode(3, 7);
_local1++;
};
} else {
if (level == 16){
_local1 = 0;
while (_local1 < 8) {
spawnsplode(3, 1);
_local1++;
};
_local1 = 0;
while (_local1 < 3) {
spawnsplode(3, 3);
_local1++;
};
_local1 = 0;
while (_local1 < 2) {
spawnsplode(3, 6);
_local1++;
};
} else {
if (level == 17){
_local1 = 0;
while (_local1 < 3) {
spawnsplode(3, 5);
_local1++;
};
_local1 = 0;
while (_local1 < 3) {
spawnsplode(3, 6);
_local1++;
};
} else {
if (level == 18){
_local1 = 0;
while (_local1 < 5) {
spawnsplode(3, 1);
_local1++;
};
_local1 = 0;
while (_local1 < 3) {
spawnsplode(3, 3);
_local1++;
};
_local1 = 0;
while (_local1 < 3) {
spawnsplode(3, 4);
_local1++;
};
} else {
if (level == 19){
_local1 = 0;
while (_local1 < 4) {
spawnsplode(3, 7);
_local1++;
};
_local1 = 0;
while (_local1 < 3) {
spawnsplode(3, 1);
_local1++;
};
_local1 = 0;
while (_local1 < 2) {
spawnsplode(3, 4);
_local1++;
};
} else {
if (level == 20){
bossspawn(2, 100, 10, 10);
} else {
if ((((level >= 21)) && ((level < 30)))){
_local2 = (Math.round((Math.random() * etypes)) + 1);
_local1 = 0;
while (_local1 < (3 + Math.round((level / 30)))) {
spawnsplode(3, _local2);
_local1++;
};
_local3 = (Math.round((Math.random() * etypes)) + 1);
_local1 = 0;
while (_local1 < (3 + Math.round((level / 30)))) {
spawnsplode(3, _local3);
_local1++;
};
_local4 = Math.ceil((Math.random() * (4 + Math.round((level / 30)))));
_local1 = 0;
while (_local1 < _local4) {
spawnsplode(0, 0);
_local1++;
};
} else {
if (level == 30){
bossspawn(3, 100, 10, 10);
} else {
if (level > 30){
if (levelmode){
bomb();
} else {
if ((level % 10) == 0){
bossspawn(Math.ceil((Math.random() * 3)), 100, 10, 10);
} else {
_local2 = (Math.round((Math.random() * etypes)) + 1);
_local1 = 0;
while (_local1 < (3 + Math.round((level / 30)))) {
spawnsplode(3, _local2);
_local1++;
};
_local3 = (Math.round((Math.random() * etypes)) + 1);
_local1 = 0;
while (_local1 < (3 + Math.round((level / 30)))) {
spawnsplode(3, _local3);
_local1++;
};
_local4 = Math.ceil((Math.random() * (4 + Math.round((level / 30)))));
_local1 = 0;
while (_local1 < _local4) {
spawnsplode(0, 0);
_local1++;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function mdown(_arg1:MouseEvent){
dragness = true;
changes = true;
}
public function loadVariablesNum(_arg1:String){
var _local2:URLRequest;
var _local3:*;
_local2 = new URLRequest(_arg1);
_local3 = new URLLoader();
_local3.load(_local2);
}
public function savestuff(){
savefile.data.gridon = gridon;
savefile.data.griddy = griddy;
savefile.data.starson = starson;
savefile.data.mouseaim = mouseaim;
savefile.data.numpad = numpad;
savefile.data.mousemove = mousemove;
savefile.data.maxpons = maxpons;
savefile.data.pint = pint;
savefile.data.pintense = pintense;
savefile.data.kright = kright;
savefile.data.kup = kup;
savefile.data.kleft = kleft;
savefile.data.kdown = kdown;
savefile.data.aright = aright;
savefile.data.aup = aup;
savefile.data.aleft = aleft;
savefile.data.adown = adown;
savefile.data.sndfxon = sndfxon;
savefile.data.saved = 1;
savefile.flush();
changes = false;
}
public function drawACircle(_arg1, _arg2, _arg3, _arg4){
var _local5:*;
var _local6:*;
var _local7:Number;
_local5 = (_arg3 + _arg1);
_local6 = _arg2;
_arg4.graphics.moveTo(_local5, _local6);
_local7 = 0;
while (_local7 <= 360) {
_local5 = ((Math.cos((_local7 * (Math.PI / 180))) * _arg3) + _arg1);
_local6 = ((Math.sin((_local7 * (Math.PI / 180))) * _arg3) + _arg2);
_arg4.graphics.lineTo(_local5, _local6);
_local7++;
};
}
public function bomb(){
var _local1:Sound;
if (!bombing){
if (((!(dead)) && ((sndfxon == true)))){
_local1 = new bombsound();
_local1.play();
};
boom = new MovieClip();
addChild(boom);
boom.radius = 0;
boom.alpha = 0;
boom.addEventListener(Event.ENTER_FRAME, expand);
boom.x = ship.x;
boom.y = ship.y;
bombing = true;
};
}
public function expand(_arg1:Event){
var event = _arg1;
if (!gpause){
if (((levelmode) && ((level > 30)))){
splosion((Math.random() * wid), (Math.random() * hei), 30, 1);
};
event.target.visible = true;
var _local3 = event.target.graphics;
with (_local3) {
clear();
lineStyle(10, dacolor);
if (event.target.radius > 680){
event.target.alpha = (event.target.alpha - (0.1 / slow));
} else {
event.target.alpha = (event.target.alpha + (0.1 / slow));
};
drawCircle(0, 0, event.target.radius);
};
event.target.radius = (event.target.radius + (45 / slow));
if (event.target.alpha <= 0){
if (dead){
if (lives > 0){
spawnsplode(1, 0);
} else {
gameover();
};
};
if (((levelmode) && ((level > 30)))){
dead = true;
splosion((Math.random() * wid), (Math.random() * hei), 15, 1);
gameover();
};
bombing = false;
event.target.alpha = 0;
event.target.parent.removeChild(event.target);
event.target.removeEventListener(Event.ENTER_FRAME, expand);
};
} else {
event.target.visible = false;
};
}
public function shipspawn(){
var _local1:Sound;
if (((levelmode) && ((level > 30)))){
} else {
mult = 1;
lives = (lives - 1);
if (sndfxon == true){
_local1 = new death();
_local1.play();
};
bomb();
splosion(ship.x, ship.y, 40, 1);
dead = true;
ship.visible = false;
};
}
public function barz(_arg1){
if (_arg1 == "mb2"){
removeEventListener(Event.ENTER_FRAME, menuoEf);
mb1.removeEventListener(MouseEvent.CLICK, menuclick);
mb2.removeEventListener(MouseEvent.CLICK, menuclick);
mb3.removeEventListener(MouseEvent.CLICK, menuclick);
mb4.removeEventListener(MouseEvent.CLICK, menuclick);
mb5.removeEventListener(MouseEvent.CLICK, menuclick);
mb6.removeEventListener(MouseEvent.CLICK, menuclick);
mb7.removeEventListener(MouseEvent.CLICK, menuclick);
logo.removeEventListener(MouseEvent.CLICK, menuclick);
menuframe = false;
gotoAndStop("options");
};
if (_arg1 == "mb1"){
loadVariablesNum("http://gamefilez.mofunzone.com/game_scores/retrosplode/mfz2.php");
gameselect = true;
menucover.visible = true;
mb5.visible = true;
mb6.visible = true;
};
}
public function pOEF(_arg1:Event){
var _local2:MovieClip;
if (!gpause){
_arg1.target.timer = (_arg1.target.timer + (1 / slow));
};
if (_arg1.target.hitTestObject(ship)){
if (_arg1.target.pnumb == 1){
if (bombs <= 2){
bombs = (bombs + 1);
} else {
bomb();
};
} else {
if (_arg1.target.pnumb == 2){
shields = true;
if (slow == 3){
slow = 1;
};
puptime = 0;
} else {
if (_arg1.target.pnumb == 3){
if (shields == true){
shields = false;
};
slow = 3;
puptime = 0;
} else {
if (_arg1.target.pnumb == 4){
_local2 = new MovieClip();
buddies = (buddies + 1);
_local2.graphics.lineStyle(2, dacolor);
_local2.graphics.drawCircle(0, 0, 9);
_local2.graphics.moveTo(0, 0);
_local2.graphics.lineTo(12, 0);
_local2.x = ship.x;
_local2.y = ship.y;
addChild(_local2);
_local2.rot = ((Math.random() * 20) - (Math.random() * 20));
_local2.btime = 0;
_local2.stime = 0;
_local2.mtime = 0;
_local2.addEventListener(Event.ENTER_FRAME, buddyOEF);
} else {
if (_arg1.target.pnumb == 5){
gunlevel = (gunlevel + 2);
};
};
};
};
};
splosion(_arg1.target.x, _arg1.target.y, 20, dacolor);
_arg1.target.x = -300;
};
if (_arg1.target.timer > 400){
_arg1.target.x = -300;
};
if (dead){
splosion(_arg1.target.x, _arg1.target.y, 15, 0xFFFFFF);
_arg1.target.x = -300;
};
if (_arg1.target.x < -200){
_arg1.target.parent.removeChild(_arg1.target);
_arg1.target.removeEventListener(Event.ENTER_FRAME, pOEF);
};
}
public function checkKeys(_arg1:KeyboardEvent):void{
if ((_arg1.keyCode == kright)){
varRight = true;
//unresolved jump
};
if ((_arg1.keyCode == kup)){
varUp = true;
//unresolved jump
};
if ((_arg1.keyCode == kleft)){
varLeft = true;
//unresolved jump
};
if ((_arg1.keyCode == kdown)){
varDown = true;
//unresolved jump
};
if (_arg1.keyCode == 32){
if ((((((((bombing == false)) && (!(gpause)))) && (!(dead)))) && ((bombs > 0)))){
bomb();
bombs = (bombs - 1);
};
};
if (_arg1.keyCode == 80){
if (gpause == true){
bounds.alpha = 1;
pint = pmenu.pint;
pintense = pmenu.pintense;
maxpons = pmenu.maxpons;
savefile.data.maxpons = maxpons;
savefile.data.pint = pint;
savefile.data.pintense = pintense;
gpause = false;
} else {
bounds.alpha = 0.01;
pmenu.pint = pint;
pmenu.pintense = pintense;
pmenu.maxpons = maxpons;
gpause = true;
};
};
if ((_arg1.keyCode == aright)){
aimR = true;
//unresolved jump
};
if ((_arg1.keyCode == aup)){
aimU = true;
//unresolved jump
};
if ((_arg1.keyCode == aleft)){
aimL = true;
//unresolved jump
};
if ((_arg1.keyCode == adown)){
aimD = true;
//unresolved jump
};
if (numpad){
if (_arg1.keyCode == 97){
aimDL = true;
};
if (_arg1.keyCode == 99){
aimDR = true;
};
if (_arg1.keyCode == 103){
aimUL = true;
};
if (_arg1.keyCode == 105){
aimUR = true;
};
};
}
public function deletestuff(){
son.removeEventListener(MouseEvent.CLICK, bclick);
soff.removeEventListener(MouseEvent.CLICK, bclick);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, dakeydown);
stage.removeEventListener(Event.ENTER_FRAME, opoef);
pslide.removeEventListener(MouseEvent.MOUSE_DOWN, mdown);
pslide2.removeEventListener(MouseEvent.MOUSE_DOWN, mdown2);
stage.removeEventListener(MouseEvent.MOUSE_UP, mup);
b1.removeEventListener(MouseEvent.CLICK, bclick);
b2.removeEventListener(MouseEvent.CLICK, bclick);
b3.removeEventListener(MouseEvent.CLICK, bclick);
b5.removeEventListener(MouseEvent.CLICK, bclick);
b6.removeEventListener(MouseEvent.CLICK, bclick);
b7.removeEventListener(MouseEvent.CLICK, bclick);
b8.removeEventListener(MouseEvent.CLICK, bclick);
b9.removeEventListener(MouseEvent.CLICK, bclick);
b10.removeEventListener(MouseEvent.CLICK, bclick);
b11.removeEventListener(MouseEvent.CLICK, bclick);
b12.removeEventListener(MouseEvent.CLICK, bclick);
b13.removeEventListener(MouseEvent.CLICK, bclick);
b14.removeEventListener(MouseEvent.CLICK, bclick);
if (bpress == "b14"){
gotoAndStop("menu");
};
if (bpress == "b15"){
menusc.stop();
menusc.removeEventListener(Event.SOUND_COMPLETE, mscdone);
gotoAndStop("game");
};
}
public function splosion(_arg1, _arg2, _arg3, _arg4){
var i:Number;
var pOEF2:Function;
var part:MovieClip;
var pg:Graphics;
var xpos = _arg1;
var ypos = _arg2;
var pa = _arg3;
var col = _arg4;
pOEF2 = function (_arg1){
var event = _arg1;
if (!gpause){
var _local3 = event.target;
with (_local3) {
x = (x + ((xpspd / slow) * Math.sin((rotation * (Math.PI / 180)))));
y = (y - ((ypspd / slow) * Math.cos((rotation * (Math.PI / 180)))));
alpha = (alpha - (0.03 / slow));
if ((((y >= hei)) || ((y <= 0)))){
ypspd = (ypspd * -1);
};
if ((((x >= wid)) || ((x <= 0)))){
xpspd = (xpspd * -1);
};
};
if ((((((((((event.target.alpha <= 0)) || ((event.target.x < -10)))) || ((event.target.x > (wid + 10))))) || ((event.target.y < -10)))) || ((event.target.y > (hei + 10))))){
pons--;
event.target.parent.removeChild(event.target);
event.target.removeEventListener(Event.ENTER_FRAME, pOEF2);
};
};
};
i = 0;
while (i < (pa / pintense)) {
if (pons < maxpons){
pons++;
part = new MovieClip();
pg = part.graphics;
if (col == 1){
pg.lineStyle(2, colorarr[Math.round((Math.random() * (colorarr.length - 1)))]);
} else {
pg.lineStyle(2, col);
};
pg.moveTo(0, 0);
pg.lineTo(2, 2);
part.x = xpos;
part.y = ypos;
addChild(part);
part.rotation = Math.round((Math.random() * 360));
part.xpspd = (10 + (Math.random() * 5));
part.ypspd = part.xpspd;
part.addEventListener(Event.ENTER_FRAME, pOEF2);
};
i = (i + 1);
};
}
public function enemymove(_arg1:Event){
var lolmax:Number;
var lol:Number;
var esnd:Sound;
var event = _arg1;
if (!gpause){
event.target.alpha = 1;
var _local3 = event.target;
with (_local3) {
if (x <= -300){
x = -300;
y = -300;
mult = (mult + 0.2);
ecount--;
removeEventListener(Event.ENTER_FRAME, enemymove);
parent.removeChild(event.target);
};
if ((((x < 0)) && ((x > -100)))){
x = 0;
};
if (x > wid){
x = wid;
};
if (y < 0){
y = 0;
};
if (y > hei){
y = hei;
};
if ((((n == 1)) || ((n == 2)))){
rotation = (rotation + (rspeed / slow));
x = (x + (xspd / slow));
y = (y + (yspd / slow));
if ((((y < 0)) || ((y > hei)))){
yspd = (yspd * -1);
};
if ((((x < 0)) || ((x > wid)))){
xspd = (xspd * -1);
};
} else {
if (n == 3){
rotation = ((Math.atan2((y - ship.y), (x - ship.x)) / (Math.PI / 180)) - 90);
x = (x + ((speed / slow) * Math.sin((rotation * (Math.PI / 180)))));
y = (y - ((speed / slow) * Math.cos((rotation * (Math.PI / 180)))));
} else {
if (n == 4){
xspot = ship.x;
yspot = ship.y;
rotation = (rotation + (10 / slow));
x = (x + ((5 / slow) * Math.sin((rotation * (Math.PI / 180)))));
y = (y - ((5 / slow) * Math.cos((rotation * (Math.PI / 180)))));
x = (x + ((xspot - x) / 50));
y = (y + ((yspot - y) / 50));
} else {
if (n == 5){
rotation = ((Math.atan2((y - ship.y), (x - ship.x)) / (Math.PI / 180)) - 90);
x = (x + ((((spd / 2.2) + 5) / slow) * Math.sin((rotation * (Math.PI / 180)))));
y = (y - ((((spd / 2.2) + 5) / slow) * Math.cos((rotation * (Math.PI / 180)))));
} else {
if (n == 6){
rotation = ((Math.atan2((y - yspot), (x - xspot)) / (Math.PI / 180)) - 90);
graphics.clear();
graphics.lineStyle(2, colorarr[(n - 2)]);
drawACircle(0, 0, 5, event.target);
graphics.moveTo(0, -12.5);
if (health == 2){
graphics.lineTo(12.3, -2.1);
graphics.lineTo(6.3, 12.5);
} else {
graphics.moveTo(6.3, 12.5);
};
if (health >= 1){
graphics.lineTo(-6.3, 12.5);
graphics.lineTo(-12.3, -2.1);
graphics.lineTo(0, -12.5);
};
if (((((((getTimer() - timer) > (2300 * slow))) && ((x > -100)))) || ((((x == xspot)) && ((y == yspot)))))){
spawn(0, 0, x, y, 0, 0);
xspot = (Math.random() * wid);
yspot = (Math.random() * hei);
timer = getTimer();
};
x = (x + ((xspot - x) / 75));
y = (y + ((yspot - y) / 75));
} else {
if (n == 0){
if ((getTimer() - timer) > (5000 * slow)){
splosion(x, y, 25, 0xFF0000);
x = -400;
};
} else {
if (n == 7){
rotation = ((Math.atan2((y - ship.y), (x - ship.x)) / (Math.PI / 180)) - 90);
x = (x + ((2 / slow) * Math.sin((rotation * (Math.PI / 180)))));
y = (y - ((2 / slow) * Math.cos((rotation * (Math.PI / 180)))));
if (((getTimer() - timer) + timeinc) > (2000 * slow)){
bossshoot(rotation, x, y, 3);
timer = getTimer();
};
partness(2, event.target);
};
};
};
};
};
};
};
};
if ((((((event.target.hitTestObject(ship) == true)) || ((((event.target.n == 0)) && ((event.target.hitTestObject(ship) == true)))))) && ((shields == false)))){
shipspawn();
event.target.x = -400;
};
if ((((((((bombing == true)) && (!((boom == null))))) || ((dead == true)))) || (((event.target.hitTestObject(ship)) && (shields))))){
if ((((((event.target.hitTestObject(boom) == true)) || ((((dead == true)) && ((boom == null)))))) || (((event.target.hitTestObject(ship)) && (shields))))){
if (event.target.n <= 2){
splosion(event.target.x, event.target.y, 35, 0xFFFFFF);
} else {
if (event.target.n == 0){
splosion(event.target.x, event.target.y, 35, 0xFF0000);
} else {
if (event.target.n == 7){
splosion(event.target.x, event.target.y, 35, colorarr[1]);
} else {
splosion(event.target.x, event.target.y, 35, colorarr[(event.target.n - 2)]);
};
};
};
if (event.target.n != 0){
espawned = (espawned + 1);
};
if (event.target.n != 7){
if (((((espawned % 50) == 0)) && (!((gunlevel == 11))))){
if (gunlevel <= 5){
powerspawn(event.target.x, event.target.y, 1);
} else {
if ((espawned % 100) == 0){
powerspawn(event.target.x, event.target.y, 1);
};
};
} else {
if ((espawned % 20) == 0){
powerspawn(event.target.x, event.target.y, 0);
};
};
};
if (event.target.n == 1){
score = (score + (50 * Math.round(mult)));
} else {
if (event.target.n == 2){
score = (score + (25 * Math.round(mult)));
} else {
if (event.target.n == 3){
score = (score + (150 * Math.round(mult)));
} else {
if (event.target.n == 4){
score = (score + (75 * Math.round(mult)));
} else {
if (event.target.n == 5){
score = (score + (100 * Math.round(mult)));
} else {
if (event.target.n == 6){
score = (score + (300 * Math.round(mult)));
} else {
if (event.target.n == 0){
score = (score + (50 * Math.round(mult)));
} else {
if (event.target.n == 7){
score = (score + (75 * Math.round(mult)));
};
};
};
};
};
};
};
};
event.target.x = -400;
};
};
lolmax = (s - ((15 + (7 * buddies)) + Math.round(((10 * gunlevel) / 4))));
lol = lolmax;
while (lol < s) {
if (shotarr[lol] != null){
if ((((event.target.hitTestPoint(ship.x, ship.y, true) == false)) && ((event.target.hitTestObject(shotarr[lol]) == true)))){
if (event.target.n == 1){
score = (score + (50 * Math.round(mult)));
} else {
if (event.target.n == 2){
score = (score + (25 * Math.round(mult)));
} else {
if (event.target.n == 3){
score = (score + (150 * Math.round(mult)));
} else {
if (event.target.n == 4){
score = (score + (75 * Math.round(mult)));
} else {
if (event.target.n == 5){
score = (score + (100 * Math.round(mult)));
} else {
if ((((event.target.n == 6)) && ((event.target.health <= 0)))){
score = (score + (300 * Math.round(mult)));
} else {
if (event.target.n == 0){
score = (score + (50 * Math.round(mult)));
} else {
if (event.target.n == 7){
score = (score + (75 * Math.round(mult)));
};
};
};
};
};
};
};
};
if (event.target.origi > 11){
spawn(2, 0, event.target.x, event.target.y, 0, 0);
spawn(2, 0, event.target.x, event.target.y, 0, 0);
};
shotarr[lol].x = -500;
if (((((((!((event.target.n == 6))) && (!((event.target.n == 8))))) || ((event.target.health <= 0)))) || ((event.target.rad <= 5)))){
if (sndfxon == true){
esnd = new enemydeath();
esnd.play();
};
pons = (pons - 3);
if (event.target.n <= 2){
splosion(event.target.x, event.target.y, 50, 0xFFFFFF);
} else {
if (event.target.n == 0){
splosion(event.target.x, event.target.y, 50, 0xFF0000);
} else {
if (event.target.n == 7){
splosion(event.target.x, event.target.y, 35, colorarr[1]);
} else {
splosion(event.target.x, event.target.y, 35, colorarr[(event.target.n - 2)]);
};
};
};
if (event.target.n != 0){
espawned = (espawned + 1);
};
if (event.target.n != 7){
if (((((espawned % 50) == 0)) && (!((gunlevel == 11))))){
if (gunlevel <= 5){
powerspawn(event.target.x, event.target.y, 1);
} else {
if ((espawned % 100) == 0){
powerspawn(event.target.x, event.target.y, 1);
};
};
} else {
if ((espawned % 20) == 0){
powerspawn(event.target.x, event.target.y, 0);
};
};
};
event.target.x = -400;
} else {
_local3 = event.target;
with (_local3) {
health = (health - 1);
};
};
};
};
lol = (lol + 1);
};
} else {
event.target.alpha = 0.3;
};
}
public function spawn(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6){
var a:MovieClip;
var gr:Graphics;
var bangle:Number;
var i:*;
var xcoord:*;
var ycoord:*;
var npo:*;
var type1:*;
var xspot:*;
var origi:*;
var n = _arg1;
var p = _arg2;
var f = _arg3;
var g = _arg4;
var l = _arg5;
var u = _arg6;
ecount = (ecount + 1);
pons = (pons + 2);
a = new MovieClip();
gr = a.graphics;
gr.beginFill(0xFFFFFF, 0.01);
if ((((n == 1)) || ((n == 2)))){
gr.lineStyle(2, 0xFFFFFF);
addChild(a);
a.n = n;
if (n == 1){
a.xspd = (5 - Math.round((Math.random() * 10)));
a.yspd = (5 - Math.round((Math.random() * 10)));
if ((((a.xspd == 0)) && ((a.yspd == 0)))){
a.xspd = (5 - Math.round((Math.random() * 10)));
a.yspd = (5 - Math.round((Math.random() * 10)));
};
} else {
a.xspd = (3 - Math.round((Math.random() * 6)));
a.yspd = (3 - Math.round((Math.random() * 6)));
if ((((a.xspd == 0)) && ((a.yspd == 0)))){
a.xspd = (3 - Math.round((Math.random() * 6)));
a.yspd = (3 - Math.round((Math.random() * 6)));
};
};
a.speed = 5;
a.rspeed = ((Math.random() * 7) - (Math.random() * 7));
a.x = f;
a.y = g;
if ((((l > 1)) || ((u > 1)))){
if (Math.sqrt((Math.pow((ship.x - a.x), 2) + Math.pow((ship.y - a.y), 2))) < 100){
a.x = xarr[2];
a.y = yarr[2];
};
};
a.rotation = (Math.random() * 360);
var _local8 = a;
with (_local8) {
if (n == 1){
origi = (10 + Math.round((Math.random() * 10)));
} else {
origi = (8 + Math.round((Math.random() * 3)));
};
i = origi;
xcoord = i;
ycoord = 0;
npo = (12 + Math.round(((Math.random() * 7) - (Math.random() * 7))));
type1 = Math.round(Math.random());
xspot = (x - 150);
};
a.origi = origi;
gr.beginFill(0xFFFFFF, 0.1);
gr.moveTo(xcoord, ycoord);
bangle = 0;
while (bangle <= 362) {
if ((((bangle >= (361 - (361 / npo)))) || ((bangle == (361 / npo))))){
i = origi;
} else {
i = ((origi + (Math.random() * 10)) - (Math.random() * 5));
};
xcoord = (Math.cos((bangle * (Math.PI / 180))) * i);
ycoord = (Math.sin((bangle * (Math.PI / 180))) * i);
gr.lineTo(xcoord, ycoord);
bangle = (bangle + (361 / npo));
};
} else {
if (n == 3){
gr.lineStyle(2, colorarr[(n - 2)]);
gr.drawRect(-10, -10, 20, 20);
addChild(a);
a.n = n;
a.x = f;
a.y = g;
a.speed = 6;
} else {
if (n == 4){
gr.lineStyle(2, colorarr[(n - 2)]);
gr.drawCircle(0, 0, 13);
addChild(a);
a.n = n;
a.x = f;
a.y = g;
a.rotation = Math.round((Math.random() * 360));
a.xspot = (Math.random() * wid);
a.yspot = (Math.random() * hei);
a.timer = getTimer();
} else {
if (n == 5){
gr.lineStyle(2, colorarr[(n - 2)]);
gr.moveTo(0, -12);
gr.lineTo(6, 6);
gr.lineTo(-6, 6);
gr.lineTo(0, -12);
addChild(a);
a.x = f;
a.y = g;
a.n = n;
} else {
if (n == 6){
a.health = 2;
addChild(a);
a.x = f;
a.y = g;
a.n = n;
a.xspot = (Math.random() * wid);
a.yspot = (Math.random() * hei);
a.timer = getTimer();
} else {
if (n == 0){
gr.lineStyle(2, 0xCC0000);
gr.drawCircle(0, 0, 4);
addChild(a);
a.x = f;
a.y = g;
a.n = n;
a.timer = getTimer();
} else {
if (n == 7){
gr.lineStyle(2, 0xFF0000);
gr.moveTo(0, -7);
gr.lineTo(7, 7);
gr.lineTo(0, 3);
gr.lineTo(-7, 7);
gr.lineTo(0, -7);
a.scaleX = (a.scaleY = (a.scaleY * 1.2));
a.x = f;
a.y = g;
a.n = n;
a.timeinc = (Math.random() * 1000);
a.timer = getTimer();
addChild(a);
};
};
};
};
};
};
};
gr.endFill();
a.addEventListener(Event.ENTER_FRAME, enemymove);
}
public function mdown2(_arg1:MouseEvent){
dragness2 = true;
changes = true;
}
public function menuclick(_arg1:MouseEvent){
var agreq:*;
var event = _arg1;
var _local3 = event.target;
with (_local3) {
if ((((name == "mb1")) || ((name == "mb2")))){
barz(name);
};
if (name == "mb3"){
menucover.visible = true;
mb5.visible = true;
mb6.visible = true;
};
if ((((name == "mb4")) || ((name == "logo")))){
agreq = new URLRequest("http://www.MoFunZone.com/");
navigateToURL(agreq, "_blank");
};
if ((((name == "mb5")) || ((name == "mb6")))){
menucover.visible = false;
mb5.visible = false;
mb6.visible = false;
};
if (name == "mb5"){
if (gameselect){
gameselect = false;
levelmode = false;
menusc.stop();
menusc.removeEventListener(Event.SOUND_COMPLETE, mscdone);
menuframe = false;
removeEventListener(Event.ENTER_FRAME, menuoEf);
mb1.removeEventListener(MouseEvent.CLICK, menuclick);
mb2.removeEventListener(MouseEvent.CLICK, menuclick);
mb3.removeEventListener(MouseEvent.CLICK, menuclick);
mb4.removeEventListener(MouseEvent.CLICK, menuclick);
mb5.removeEventListener(MouseEvent.CLICK, menuclick);
mb6.removeEventListener(MouseEvent.CLICK, menuclick);
mb7.removeEventListener(MouseEvent.CLICK, menuclick);
gotoAndStop("game");
} else {
agreq = new URLRequest("http://www.mofunzone.com/game_scores/retrosplode/highscores_endless.shtml");
navigateToURL(agreq, "_blank");
};
};
if (name == "mb6"){
if (gameselect){
gameselect = false;
levelmode = true;
menusc.stop();
menusc.removeEventListener(Event.SOUND_COMPLETE, mscdone);
menuframe = false;
removeEventListener(Event.ENTER_FRAME, menuoEf);
mb1.removeEventListener(MouseEvent.CLICK, menuclick);
mb2.removeEventListener(MouseEvent.CLICK, menuclick);
mb3.removeEventListener(MouseEvent.CLICK, menuclick);
mb4.removeEventListener(MouseEvent.CLICK, menuclick);
mb5.removeEventListener(MouseEvent.CLICK, menuclick);
mb6.removeEventListener(MouseEvent.CLICK, menuclick);
mb7.removeEventListener(MouseEvent.CLICK, menuclick);
logo.removeEventListener(MouseEvent.CLICK, menuclick);
gotoAndStop("game");
} else {
agreq = new URLRequest("http://www.mofunzone.com/game_scores/retrosplode/highscores_wave.shtml");
navigateToURL(agreq, "_blank");
};
};
if (name == "mb7"){
slide = true;
};
};
}
public function donutclick(_arg1:MouseEvent){
var _local2:URLRequest;
if (skipb.hitTestPoint(mouseX, mouseY, true) == false){
_local2 = new URLRequest("http://donutmaster.newgrounds.com/");
navigateToURL(_local2, "_blank");
};
}
public function menuoEf(_arg1:Event){
if (menuframe){
if (slide){
structions.x = (structions.x - (structions.x / 7));
} else {
structions.x = (structions.x - ((structions.x - 700) / 7));
};
partindi.setSelection(0, 1);
if (partindi.text == ""){
partindi.text = String(0);
};
if (!slide){
if ((((dascreen.hitTestPoint(mouseX, mouseY, true) == true)) && ((menucover.visible == false)))){
menusplosion(mouseX, mouseY);
} else {
menusplosion(((dascreen.x - (dascreen.width / 2)) + (Math.random() * dascreen.width)), ((dascreen.y - (dascreen.height / 2)) + (Math.random() * dascreen.height)));
};
};
};
}
public function follow(_arg1){
var dist:Number;
var angFace:Number;
var angAway:Number;
var event = _arg1;
if (!gpause){
event.target.graphics.clear();
event.target.graphics.lineStyle(2, 0xFFFFFF, 0.15);
if (((mcarr[(event.target.l + 1)]) && (!((((event.target.l + 1) % (hint + 1)) == 0))))){
event.target.graphics.moveTo(0, 0);
event.target.graphics.lineTo((mcarr[(event.target.l + 1)].x - event.target.x), (mcarr[(event.target.l + 1)].y - event.target.y));
};
if (mcarr[(event.target.l + (hint + 1))]){
event.target.graphics.moveTo(0, 0);
event.target.graphics.lineTo((mcarr[(event.target.l + (hint + 1))].x - event.target.x), (mcarr[(event.target.l + (hint + 1))].y - event.target.y));
};
if (((((((!((((event.target.l + 1) % (hint + 1)) == 0))) && (!(((event.target.l % (hint + 1)) == 0))))) && ((event.target.l > (hint + 1))))) && ((event.target.l < (l - (hint + 1)))))){
if (bombing == true){
dist = Math.sqrt((Math.pow((boom.x - event.target.xspot), 2) + Math.pow((boom.y - event.target.yspot), 2)));
angFace = Math.atan2((boom.y - event.target.y), (boom.x - event.target.x));
} else {
dist = Math.sqrt((Math.pow((ship.x - event.target.xspot), 2) + Math.pow((ship.y - event.target.yspot), 2)));
angFace = Math.atan2((ship.y - event.target.y), (ship.x - event.target.x));
};
if (dist < maxdist){
angAway = (angFace + Math.PI);
event.target.targx = (event.target.xspot - (((maxdist - dist) * Math.cos(angAway)) / 3));
event.target.targy = (event.target.yspot - (((maxdist - dist) * Math.sin(angAway)) / 3));
} else {
event.target.targx = event.target.xspot;
event.target.targy = event.target.yspot;
};
if ((event.target.targx > wid)){
event.target.targx = wid;
//unresolved jump
};
if ((event.target.targx < 0)){
event.target.targx = 0;
//unresolved jump
};
if ((event.target.targy > hei)){
event.target.targy = hei;
//unresolved jump
};
if ((event.target.targy < 0)){
event.target.targy = 0;
//unresolved jump
};
var _local3 = event.target;
with (_local3) {
xvel = (xvel + (targx - x));
yvel = (yvel + (targy - y));
xvel = (xvel * slow);
yvel = (yvel * slow);
x = (x + xvel);
y = (y + yvel);
};
};
};
if ((((lives <= 0)) || ((dagamewaswon == true)))){
event.target.parent.removeChild(event.target);
event.target.removeEventListener(Event.ENTER_FRAME, follow);
};
}
public function gameover(){
dagamewaswon = true;
if (griddy){
mc.parent.removeChild(mc);
};
smallz.parent.removeChild(smallz);
smallz.removeEventListener(MouseEvent.CLICK, smallclick);
bindi.parent.removeChild(bindi);
bhealthmc.parent.removeChild(bhealthmc);
scorebox.parent.removeChild(scorebox);
powerbar.parent.removeChild(powerbar);
bcmc.parent.removeChild(bcmc);
lpic.parent.removeChild(lpic);
livesbox.parent.removeChild(livesbox);
ship.parent.removeChild(ship);
bounds.parent.removeChild(bounds);
stage.removeEventListener(Event.ENTER_FRAME, oef);
stage.removeEventListener(Event.ENTER_FRAME, movement);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, checkKeys);
stage.removeEventListener(KeyboardEvent.KEY_UP, keyUps);
x = 0;
y = 0;
nextFrame();
}
public function mup(_arg1:MouseEvent){
dragness = false;
dragness2 = false;
}
public function opoef(_arg1:Event){
if (dragness){
pslide.x = mouseX;
if (pslide.x < pbar.x){
pslide.x = pbar.x;
} else {
if (pslide.x > (pbar.x + pbar.width)){
pslide.x = (pbar.x + pbar.width);
};
};
pslide.y = pbar.y;
};
if (dragness2){
pslide2.x = mouseX;
if (pslide2.x < pbar2.x){
pslide2.x = pbar2.x;
} else {
if (pslide2.x > (pbar.x + pbar2.width)){
pslide2.x = (pbar2.x + pbar2.width);
};
};
pslide2.y = pbar2.y;
};
pint = (1 + (Math.round((((2 * (pslide.x - pbar.x)) / pbar.width) * 10)) / 10));
maxpons = (400 + Math.round(((600 * (pslide2.x - pbar2.x)) / pbar2.width)));
if (pint < 1.7){
parbox.text = (("" + pint) + " - Few");
} else {
if ((((pint >= 1.7)) && ((pint < 2.5)))){
parbox.text = (("" + pint) + " - Some");
} else {
if (pint >= 2.5){
parbox.text = (("" + pint) + " - Tons");
};
};
};
if (maxpons > 700){
parbox2.text = (("" + maxpons) + " - Tons");
} else {
if ((((maxpons <= 700)) && ((maxpons > 500)))){
parbox2.text = (("" + maxpons) + " - Lots");
} else {
if (maxpons <= 600){
parbox2.text = (("" + maxpons) + " - Some");
};
};
};
if (!mousemove){
numtostring(textup, kup, "Up - ");
numtostring(textdown, kdown, "Down - ");
numtostring(textright, kright, "Right - ");
numtostring(textleft, kleft, "Left - ");
} else {
textup.text = "Up - Mouse";
textdown.text = "Down - Mouse";
textright.text = "Right - Mouse";
textleft.text = "Left - Mouse";
};
if (((!(mouseaim)) && (!(numpad)))){
numtostring(textupaim, aup, "Up - ");
numtostring(textdownaim, adown, "Down - ");
numtostring(textrightaim, aright, "Right - ");
numtostring(textleftaim, aleft, "Left - ");
} else {
if (numpad){
textupaim.text = "Remember:";
textdownaim.text = "Turn";
textrightaim.text = "On";
textleftaim.text = "Numlock!";
} else {
if (mouseaim){
textupaim.text = "Up - Mouse";
textdownaim.text = "Down - Mouse";
textrightaim.text = "Right - Mouse";
textleftaim.text = "Left - Mouse";
};
};
};
pintense = (4 - pint);
}
public function numtostring(_arg1, _arg2, _arg3){
var _local4:String;
if (_arg2 == 37){
_local4 = "Left Arrow";
} else {
if (_arg2 == 38){
_local4 = "Up Arrow";
} else {
if (_arg2 == 39){
_local4 = "Right Arrow";
} else {
if (_arg2 == 40){
_local4 = "Down Arrow";
} else {
_local4 = String.fromCharCode(_arg2);
};
};
};
};
_arg1.text = (_arg3 + _local4);
}
}
}//package mfzNGretrosplode_fla
Section 16
//structions_50 (mfzNGretrosplode_fla.structions_50)
package mfzNGretrosplode_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.filters.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class structions_50 extends MovieClip {
public var bbut:unbutton;
public function structions_50(){
addFrameScript(0, frame1);
}
public function bclick(_arg1:MouseEvent){
_arg1.target.parent.parent.slide = false;
}
function frame1(){
bbut.addEventListener(MouseEvent.CLICK, bclick);
}
}
}//package mfzNGretrosplode_fla
Section 17
//THEPRELOADER_1 (mfzNGretrosplode_fla.THEPRELOADER_1)
package mfzNGretrosplode_fla {
import flash.events.*;
import flash.display.*;
public dynamic class THEPRELOADER_1 extends MovieClip {
public var shiftamt;
public var bar:MovieClip;
public var onRelease;
public var isloaded;
public function THEPRELOADER_1(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stage.removeEventListener(MouseEvent.CLICK, onRelease);
}
function frame1(){
stop();
MovieClip(root).stop();
shiftamt = 17;
isloaded = false;
parent.loaderInfo.addEventListener(ProgressEvent.PROGRESS, PL_LOADING);
onRelease = function (){
};
stage.addEventListener(MouseEvent.CLICK, onRelease);
if (parent.loaderInfo.bytesLoaded >= parent.loaderInfo.bytesTotal){
parent.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, PL_LOADING);
gotoAndStop(10);
};
}
public function PL_LOADING(_arg1:ProgressEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = Math.round(_arg1.bytesLoaded);
_local3 = Math.round(_arg1.bytesTotal);
_local4 = (_local2 / _local3);
MovieClip(MovieClip(getChildByName("bar")).getChildByName("barmask")).scaleX = _local4;
if (_local2 == _local3){
isloaded = true;
};
}
}
}//package mfzNGretrosplode_fla
Section 18
//agintro (agintro)
package {
import flash.display.*;
public dynamic class agintro extends MovieClip {
}
}//package
Section 19
//bombsound (bombsound)
package {
import flash.media.*;
public dynamic class bombsound extends Sound {
}
}//package
Section 20
//death (death)
package {
import flash.media.*;
public dynamic class death extends Sound {
}
}//package
Section 21
//dintro (dintro)
package {
import flash.media.*;
public dynamic class dintro extends Sound {
}
}//package
Section 22
//enemydeath (enemydeath)
package {
import flash.media.*;
public dynamic class enemydeath extends Sound {
}
}//package
Section 23
//menusong (menusong)
package {
import flash.media.*;
public dynamic class menusong extends Sound {
}
}//package
Section 24
//pausemenu (pausemenu)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.filters.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class pausemenu extends MovieClip {
public var qh:unbutton;
public var qm:unbutton;
public var pslide2:MovieClip;
public var ql:unbutton;
public var pslide:MovieClip;
public var maxpons:Number;
public var parbox:TextField;
public var pdragness2:Boolean;
public var pint:Number;
public var pbar:MovieClip;
public var pintense:Number;
public var pdragness:Boolean;
public var ddsp:MovieClip;
public var parbox2:TextField;
public var pbar2:MovieClip;
public function pausemenu(){
addFrameScript(0, frame1);
}
public function pmdown2(_arg1:MouseEvent){
pdragness2 = true;
}
public function pmdown(_arg1:MouseEvent){
pdragness = true;
}
function frame1(){
pdragness = false;
pdragness2 = false;
pslide.x = (pbar.x + (((pint * pbar.width) - pbar.width) / 2));
pslide2.x = ((((maxpons - 400) / 600) * pbar2.width) + pbar2.x);
pslide.addEventListener(MouseEvent.MOUSE_DOWN, pmdown);
pslide2.addEventListener(MouseEvent.MOUSE_DOWN, pmdown2);
addEventListener(MouseEvent.MOUSE_UP, mup);
addEventListener(Event.ENTER_FRAME, opoef);
ql.addEventListener(MouseEvent.MOUSE_DOWN, qual);
qm.addEventListener(MouseEvent.MOUSE_DOWN, qual);
qh.addEventListener(MouseEvent.MOUSE_DOWN, qual);
}
public function qual(_arg1:MouseEvent){
if (_arg1.target.name == "ql"){
stage.quality = "LOW";
};
if (_arg1.target.name == "qm"){
stage.quality = "MEDIUM";
};
if (_arg1.target.name == "qh"){
stage.quality = "HIGH";
};
}
public function mup(_arg1:MouseEvent){
pdragness = false;
pdragness2 = false;
}
public function opoef(_arg1:Event){
if (pdragness){
pslide.x = mouseX;
if (pslide.x < pbar.x){
pslide.x = pbar.x;
} else {
if (pslide.x > (pbar.x + pbar.width)){
pslide.x = (pbar.x + pbar.width);
};
};
pslide.y = pbar.y;
};
if (pdragness2){
pslide2.x = mouseX;
if (pslide2.x < pbar2.x){
pslide2.x = pbar2.x;
} else {
if (pslide2.x > (pbar.x + pbar2.width)){
pslide2.x = (pbar2.x + pbar2.width);
};
};
pslide2.y = pbar2.y;
};
pint = (1 + (Math.round((((2 * (pslide.x - pbar.x)) / pbar.width) * 10)) / 10));
maxpons = (400 + Math.round(((600 * (pslide2.x - pbar2.x)) / pbar2.width)));
if (pint < 1.7){
parbox.text = (("" + pint) + " - Few");
} else {
if ((((pint >= 1.7)) && ((pint < 2.5)))){
parbox.text = (("" + pint) + " - Some");
} else {
if (pint >= 2.5){
parbox.text = (("" + pint) + " - Tons");
};
};
};
if (maxpons > 700){
parbox2.text = (("" + maxpons) + " - Tons");
} else {
if ((((maxpons <= 700)) && ((maxpons > 500)))){
parbox2.text = (("" + maxpons) + " - Lots");
} else {
if (maxpons <= 600){
parbox2.text = (("" + maxpons) + " - Some");
};
};
};
pintense = (4 - pint);
}
}
}//package
Section 25
//sgrid (sgrid)
package {
import flash.display.*;
public dynamic class sgrid extends MovieClip {
}
}//package
Section 26
//shotsound (shotsound)
package {
import flash.media.*;
public dynamic class shotsound extends Sound {
}
}//package
Section 27
//smalllogo (smalllogo)
package {
import flash.display.*;
public dynamic class smalllogo extends MovieClip {
}
}//package
Section 28
//unbutton (unbutton)
package {
import flash.display.*;
public dynamic class unbutton extends SimpleButton {
}
}//package