Frame 1
globalvolume = new Sound();
DefaultExpandX = 183.8;
if (PulseAdd == null) {
PulseAdd = 0;
pulse = 0;
ConstPulse = 0.6;
PulseIncDec = 0.6;
}
if (grow == false) {
setProperty(Clip1, _visible , true);
}
Frame 2
Frame 4
if (pulse < 5) {
_root.Expand1._xscale = (_root.Expand1._xscale + ConstPulse) + PulseAdd;
_root.Expand1._yscale = (_root.Expand1._yscale + ConstPulse) + PulseAdd;
_root.Expand1._x = (_root.Expand1._x - ConstPulse) - PulseAdd;
_root.Expand1._y = (_root.Expand1._y - ConstPulse) - PulseAdd;
_root.Naval._x = (_root.Naval._x + ConstPulse) + PulseAdd;
_root.Naval._y = (_root.Naval._y - ConstPulse) - PulseAdd;
_root.LightSource1._x = (_root.LightSource1._x - ConstPulse) - PulseAdd;
_root.LightSource1._y = (_root.LightSource1._y - ConstPulse) - PulseAdd;
_root.LightSource1._xscale = (_root.LightSource1._xscale - ConstPulse) - PulseAdd;
_root.LightSource1._yscale = (_root.LightSource1._yscale + ConstPulse) + PulseAdd;
}
Frame 5
if (pulse < 4) {
PulseAdd = PulseAdd + PulseIncDec;
_root.Expand1._xscale = (_root.Expand1._xscale + ConstPulse) + PulseAdd;
_root.Expand1._yscale = (_root.Expand1._yscale + ConstPulse) + PulseAdd;
_root.Expand1._x = (_root.Expand1._x - ConstPulse) - PulseAdd;
_root.Expand1._y = (_root.Expand1._y - ConstPulse) - PulseAdd;
_root.Naval._x = (_root.Naval._x + ConstPulse) + PulseAdd;
_root.Naval._y = (_root.Naval._y - ConstPulse) - PulseAdd;
_root.LightSource1._x = (_root.LightSource1._x - ConstPulse) - PulseAdd;
_root.LightSource1._y = (_root.LightSource1._y - ConstPulse) - PulseAdd;
_root.LightSource1._xscale = (_root.LightSource1._xscale - ConstPulse) - PulseAdd;
_root.LightSource1._yscale = (_root.LightSource1._yscale + ConstPulse) + PulseAdd;
}
if (grow == true) {
setProperty(Clip1, _visible , false);
}
Frame 6
if (pulse < 3) {
PulseAdd = PulseAdd + PulseIncDec;
_root.Expand1._xscale = (_root.Expand1._xscale + ConstPulse) + PulseAdd;
_root.Expand1._yscale = (_root.Expand1._yscale + ConstPulse) + PulseAdd;
_root.Expand1._x = (_root.Expand1._x - ConstPulse) - PulseAdd;
_root.Expand1._y = (_root.Expand1._y - ConstPulse) - PulseAdd;
_root.Naval._x = (_root.Naval._x + ConstPulse) + PulseAdd;
_root.Naval._y = (_root.Naval._y - ConstPulse) - PulseAdd;
_root.LightSource1._x = (_root.LightSource1._x - ConstPulse) - PulseAdd;
_root.LightSource1._y = (_root.LightSource1._y - ConstPulse) - PulseAdd;
_root.LightSource1._xscale = (_root.LightSource1._xscale - ConstPulse) - PulseAdd;
_root.LightSource1._yscale = (_root.LightSource1._yscale + ConstPulse) + PulseAdd;
}
Frame 7
if (pulse < 2) {
PulseAdd = PulseAdd + PulseIncDec;
_root.Expand1._xscale = (_root.Expand1._xscale + ConstPulse) + PulseAdd;
_root.Expand1._yscale = (_root.Expand1._yscale + ConstPulse) + PulseAdd;
_root.Expand1._x = (_root.Expand1._x - ConstPulse) - PulseAdd;
_root.Expand1._y = (_root.Expand1._y - ConstPulse) - PulseAdd;
_root.Naval._x = (_root.Naval._x + ConstPulse) + PulseAdd;
_root.Naval._y = (_root.Naval._y - ConstPulse) - PulseAdd;
_root.LightSource1._x = (_root.LightSource1._x - ConstPulse) - PulseAdd;
_root.LightSource1._y = (_root.LightSource1._y - ConstPulse) - PulseAdd;
_root.LightSource1._xscale = (_root.LightSource1._xscale - ConstPulse) - PulseAdd;
_root.LightSource1._yscale = (_root.LightSource1._yscale + ConstPulse) + PulseAdd;
}
Frame 8
if (pulse < 1) {
PulseAdd = PulseAdd + PulseIncDec;
_root.Expand1._xscale = (_root.Expand1._xscale + ConstPulse) + PulseAdd;
_root.Expand1._yscale = (_root.Expand1._yscale + ConstPulse) + PulseAdd;
_root.Expand1._x = (_root.Expand1._x - ConstPulse) - PulseAdd;
_root.Expand1._y = (_root.Expand1._y - ConstPulse) - PulseAdd;
_root.Naval._x = (_root.Naval._x + ConstPulse) + PulseAdd;
_root.Naval._y = (_root.Naval._y - ConstPulse) - PulseAdd;
_root.LightSource1._x = (_root.LightSource1._x - ConstPulse) - PulseAdd;
_root.LightSource1._y = (_root.LightSource1._y - ConstPulse) - PulseAdd;
_root.LightSource1._xscale = (_root.LightSource1._xscale - ConstPulse) - PulseAdd;
_root.LightSource1._yscale = (_root.LightSource1._yscale + ConstPulse) + PulseAdd;
}
Frame 9
debug = false;
debugdisabler = debug;
XScale = 1.6;
YScale = 1.75;
if (debug == true) {
Random1 = 1.3;
Random2 = 0.5;
Random3 = -1.3;
SizeRandom = 10;
}
if (BounceCount == null) {
BounceCount = 0;
}
if (debug == false) {
Random1 = int((Math.random() * 1.3) * 100000) / 100000;
Random2 = int((Math.random() * 0.5) * 100000) / 100000;
}
if (((Random3 == null) && (grow == true)) && (debug == false)) {
SizeRandom = int((Math.random() * 10) * 100000) / 100000;
if (RandomTest1 >= 0.5) {
Random3 = -(int((Math.random() * 1.3) * 100000) / 100000);
} else {
Random3 = int((Math.random() * 0.3) * 100000) / 100000;
}
if (RandomTest2 <= 0.15) {
Random1 = Random1 + 0.3;
} else if (RandomTest2 > 0.85) {
Random2 = Random2 + 0.3;
}
}
if (grow == true) {
if (_root.Expand1._xscale <= ((DefaultExpandX + Random1) + SizeRandom)) {
RandExpand1 = int((Math.random() * 0.9) * 100000) / 100000;
_root.Expand1._xscale = _root.Expand1._xscale + ((XScale + Random1) - (RandExpand1 * 0.3));
_root.Expand1._yscale = _root.Expand1._yscale + ((YScale + Random2) + (RandExpand1 * 1.1));
_root.Expand1._x = (_root.Expand1._x - (XScale + 0.02)) - Random1;
_root.Expand1._y = ((_root.Expand1._y - (XScale - 0.72)) - Random2) - RandExpand1;
_root.Naval._x = (((_root.Naval._x + (XScale * 0.1)) + Random1) + Random3) - 0.9;
_root.Naval._y = (((_root.Naval._y - (YScale * 0.4)) - Random2) - Random3) - 0.2;
_root.Naval._xscale = _root.Naval._xscale + 0.05;
_root.Naval._yscale = _root.Naval._yscale - 0.05;
_root.LightSource1._x = (_root.LightSource1._x - (XScale * 0.6)) - Random1;
_root.LightSource1._y = ((_root.LightSource1._y - (YScale * 0.45)) + Random2) + 0.4;
_root.LightSource1._xscale = ((_root.LightSource1._xscale - (XScale * 0.2)) - (Random1 * 1.2)) - Random3;
_root.LightSource1._yscale = ((_root.LightSource1._yscale + YScale) + (Random2 * 0.4)) + Random3;
} else if (pulse <= 5) {
pulse = pulse + 1;
} else {
BounceCount = BounceCount + 0.06;
if (BounceCount > 1.2) {
BounceCount = 1.2;
}
}
} else if (pulse > 0) {
if (growcycle == false) {
pulse = pulse - 1;
_root.globalvolume.setVolume(100);
debugdisabler = false;
}
} else {
ExpandSetup = false;
BounceCount = BounceCount - 0.04;
if (BounceCount < 0) {
BounceCount = 0;
}
if (growcycle == false) {
debugdisabler = false;
}
}
Frame 10
if (pulse < 5) {
if (debugdisabler == false) {
_root.Expand1._xscale = (_root.Expand1._xscale - ConstPulse) - PulseAdd;
_root.Expand1._yscale = (_root.Expand1._yscale - ConstPulse) - PulseAdd;
_root.Expand1._x = (_root.Expand1._x + ConstPulse) + PulseAdd;
_root.Expand1._y = (_root.Expand1._y + ConstPulse) + PulseAdd;
_root.Naval._x = (_root.Naval._x - ConstPulse) - PulseAdd;
_root.Naval._y = (_root.Naval._y + ConstPulse) + PulseAdd;
_root.LightSource1._x = (_root.LightSource1._x + ConstPulse) + PulseAdd;
_root.LightSource1._y = (_root.LightSource1._y + ConstPulse) + PulseAdd;
_root.LightSource1._xscale = (_root.LightSource1._xscale + ConstPulse) + PulseAdd;
_root.LightSource1._yscale = (_root.LightSource1._yscale - ConstPulse) - PulseAdd;
}
}
if (debug == true) {
if (_root.Expand1._xscale <= ((DefaultExpandX + Random1) + SizeRandom)) {
gotoAndPlay (9);
}
}
Frame 11
if (pulse < 4) {
PulseAdd = PulseAdd - PulseIncDec;
_root.Expand1._xscale = (_root.Expand1._xscale - ConstPulse) - PulseAdd;
_root.Expand1._yscale = (_root.Expand1._yscale - ConstPulse) - PulseAdd;
_root.Expand1._x = (_root.Expand1._x + ConstPulse) + PulseAdd;
_root.Expand1._y = (_root.Expand1._y + ConstPulse) + PulseAdd;
_root.Naval._x = (_root.Naval._x - ConstPulse) - PulseAdd;
_root.Naval._y = (_root.Naval._y + ConstPulse) + PulseAdd;
_root.LightSource1._x = (_root.LightSource1._x + ConstPulse) + PulseAdd;
_root.LightSource1._y = (_root.LightSource1._y + ConstPulse) + PulseAdd;
_root.LightSource1._xscale = (_root.LightSource1._xscale + ConstPulse) + PulseAdd;
_root.LightSource1._yscale = (_root.LightSource1._yscale - ConstPulse) - PulseAdd;
}
Frame 12
if (pulse < 3) {
PulseAdd = PulseAdd - PulseIncDec;
_root.Expand1._xscale = (_root.Expand1._xscale - ConstPulse) - PulseAdd;
_root.Expand1._yscale = (_root.Expand1._yscale - ConstPulse) - PulseAdd;
_root.Expand1._x = (_root.Expand1._x + ConstPulse) + PulseAdd;
_root.Expand1._y = (_root.Expand1._y + ConstPulse) + PulseAdd;
_root.Naval._x = (_root.Naval._x - ConstPulse) - PulseAdd;
_root.Naval._y = (_root.Naval._y + ConstPulse) + PulseAdd;
_root.LightSource1._x = (_root.LightSource1._x + ConstPulse) + PulseAdd;
_root.LightSource1._y = (_root.LightSource1._y + ConstPulse) + PulseAdd;
_root.LightSource1._xscale = (_root.LightSource1._xscale + ConstPulse) + PulseAdd;
_root.LightSource1._yscale = (_root.LightSource1._yscale - ConstPulse) - PulseAdd;
}
Frame 13
if (pulse < 2) {
PulseAdd = PulseAdd - PulseIncDec;
_root.Expand1._xscale = (_root.Expand1._xscale - ConstPulse) - PulseAdd;
_root.Expand1._yscale = (_root.Expand1._yscale - ConstPulse) - PulseAdd;
_root.Expand1._x = (_root.Expand1._x + ConstPulse) + PulseAdd;
_root.Expand1._y = (_root.Expand1._y + ConstPulse) + PulseAdd;
_root.Naval._x = (_root.Naval._x - ConstPulse) - PulseAdd;
_root.Naval._y = (_root.Naval._y + ConstPulse) + PulseAdd;
_root.LightSource1._x = (_root.LightSource1._x + ConstPulse) + PulseAdd;
_root.LightSource1._y = (_root.LightSource1._y + ConstPulse) + PulseAdd;
_root.LightSource1._xscale = (_root.LightSource1._xscale + ConstPulse) + PulseAdd;
_root.LightSource1._yscale = (_root.LightSource1._yscale - ConstPulse) - PulseAdd;
}
Frame 14
if (pulse < 1) {
PulseAdd = PulseAdd - PulseIncDec;
_root.Expand1._xscale = (_root.Expand1._xscale - ConstPulse) - PulseAdd;
_root.Expand1._yscale = (_root.Expand1._yscale - ConstPulse) - PulseAdd;
_root.Expand1._x = (_root.Expand1._x + ConstPulse) + PulseAdd;
_root.Expand1._y = (_root.Expand1._y + ConstPulse) + PulseAdd;
_root.Naval._x = (_root.Naval._x - ConstPulse) - PulseAdd;
_root.Naval._y = (_root.Naval._y + ConstPulse) + PulseAdd;
_root.LightSource1._x = (_root.LightSource1._x + ConstPulse) + PulseAdd;
_root.LightSource1._y = (_root.LightSource1._y + ConstPulse) + PulseAdd;
_root.LightSource1._xscale = (_root.LightSource1._xscale + ConstPulse) + PulseAdd;
_root.LightSource1._yscale = (_root.LightSource1._yscale - ConstPulse) - PulseAdd;
}
Frame 15
if (grow == true) {
growcycle = true;
if (_root.Expand1._xscale <= ((DefaultExpandX + Random1) + SizeRandom)) {
PulseIncDec = PulseIncDec - 0.003;
}
} else {
growcycle = false;
}
Frame 16
if (Math.random() > 0.5) {
PlusMinus = 1;
} else {
PlusMinus = -1;
}
RandMoveX = int(((Math.random() * 3) - 1.5) - (((BounceCount * 1.2) * PlusMinus) * 100000)) / 100000;
if (Math.random() > 0.5) {
PlusMinus = 1;
} else {
PlusMinus = -1;
}
RandMoveY = int(((Math.random() * 3) - 1.5) - (((BounceCount * 1.2) * PlusMinus) * 100000)) / 100000;
if (Math.random() > 0.5) {
PlusMinus = 1;
} else {
PlusMinus = -1;
}
RandBounce = int(((Math.random() * 1.5) - 0.75) - ((BounceCount * PlusMinus) * 100000)) / 100000;
if (RandBounce == 0) {
}
if ((pulse == 0) && (growcycle == true)) {
_root.Expand1._xscale = ((_root.Expand1._xscale + ConstPulse) + PulseAdd) + Random1;
_root.Expand1._yscale = ((_root.Expand1._yscale + ConstPulse) + PulseAdd) + Random2;
_root.Expand1._x = ((_root.Expand1._x - ConstPulse) - PulseAdd) - Random1;
_root.Expand1._y = ((_root.Expand1._y - ConstPulse) - PulseAdd) - Random2;
_root.Naval._x = ((_root.Naval._x + ConstPulse) + PulseAdd) + Random1;
_root.Naval._y = ((_root.Naval._y - ConstPulse) - PulseAdd) - Random2;
_root.LightSource1._x = ((_root.LightSource1._x - ConstPulse) - PulseAdd) - Random1;
_root.LightSource1._y = ((_root.LightSource1._y - ConstPulse) - PulseAdd) - Random2;
_root.LightSource1._xscale = ((_root.LightSource1._xscale - ConstPulse) - PulseAdd) - Random1;
_root.LightSource1._yscale = ((_root.LightSource1._yscale + ConstPulse) + PulseAdd) + Random2;
}
if (((pulse > 5) && (growcycle == true)) && (ExpandSetup != true)) {
ExpandSetup = true;
Expand1X = _root.Expand1._x;
Expand1Y = _root.Expand1._y;
Expand1Width = _root.Expand1._width;
Expand1Height = _root.Expand1._height;
NavalX = _root.Naval._x;
NavalY = _root.Naval._y;
LightSource1X = _root.LightSource1._x;
LightSource1Y = _root.LightSource1._y;
LightSource1Width = _root.LightSource1._width;
LightSource1Height = _root.LightSource1._height;
}
Frame 17
if ((pulse == 0) && (growcycle == true)) {
_root.Expand1._xscale = ((_root.Expand1._xscale + ConstPulse) + PulseAdd) + Random1;
_root.Expand1._yscale = ((_root.Expand1._yscale + ConstPulse) + PulseAdd) + Random2;
_root.Expand1._x = ((_root.Expand1._x - ConstPulse) - PulseAdd) - Random1;
_root.Expand1._y = ((_root.Expand1._y - ConstPulse) - PulseAdd) - Random2;
_root.Naval._x = ((_root.Naval._x + ConstPulse) + PulseAdd) + Random1;
_root.Naval._y = ((_root.Naval._y - ConstPulse) - PulseAdd) - Random2;
_root.LightSource1._x = ((_root.LightSource1._x - ConstPulse) - PulseAdd) - Random1;
_root.LightSource1._y = ((_root.LightSource1._y - ConstPulse) - PulseAdd) - Random2;
_root.LightSource1._xscale = ((_root.LightSource1._xscale - ConstPulse) - PulseAdd) - Random1;
_root.LightSource1._yscale = ((_root.LightSource1._yscale + ConstPulse) + PulseAdd) + Random2;
}
if ((pulse > 5) && (growcycle == true)) {
_root.Expand1._xscale = _root.Expand1._xscale - RandBounce;
_root.Expand1._yscale = _root.Expand1._yscale + RandBounce;
_root.Expand1._x = _root.Expand1._x + RandBounce;
_root.Expand1._y = _root.Expand1._y - RandBounce;
_root.Naval._x = _root.Naval._x + RandMoveX;
_root.Naval._y = _root.Naval._y + RandMoveY;
_root.LightSource1._xscale = _root.LightSource1._xscale - RandBounce;
_root.LightSource1._yscale = _root.LightSource1._yscale + RandBounce;
_root.LightSource1._x = _root.LightSource1._x + (RandBounce * 0.5);
_root.LightSource1._y = _root.LightSource1._y - (RandBounce * 0.5);
}
Frame 18
if ((pulse == 0) && (growcycle == true)) {
_root.Expand1._xscale = ((_root.Expand1._xscale + ConstPulse) + PulseAdd) + Random1;
_root.Expand1._yscale = ((_root.Expand1._yscale + ConstPulse) + PulseAdd) + Random2;
_root.Expand1._x = ((_root.Expand1._x - ConstPulse) - PulseAdd) - Random1;
_root.Expand1._y = ((_root.Expand1._y - ConstPulse) - PulseAdd) - Random2;
_root.Naval._x = ((_root.Naval._x + ConstPulse) + PulseAdd) + Random1;
_root.Naval._y = ((_root.Naval._y - ConstPulse) - PulseAdd) - Random2;
_root.LightSource1._x = ((_root.LightSource1._x - ConstPulse) - PulseAdd) - Random1;
_root.LightSource1._y = ((_root.LightSource1._y - ConstPulse) - PulseAdd) - Random2;
_root.LightSource1._xscale = ((_root.LightSource1._xscale - ConstPulse) - PulseAdd) - Random1;
_root.LightSource1._yscale = ((_root.LightSource1._yscale + ConstPulse) + PulseAdd) + Random2;
}
if ((pulse > 5) && (growcycle == true)) {
_root.Expand1._xscale = _root.Expand1._xscale - RandBounce;
_root.Expand1._yscale = _root.Expand1._yscale + RandBounce;
_root.Expand1._x = _root.Expand1._x + RandBounce;
_root.Expand1._y = _root.Expand1._y - RandBounce;
_root.Naval._x = _root.Naval._x + RandMoveX;
_root.Naval._y = _root.Naval._y + RandMoveY;
_root.LightSource1._xscale = _root.LightSource1._xscale - RandBounce;
_root.LightSource1._yscale = _root.LightSource1._yscale + RandBounce;
_root.LightSource1._x = _root.LightSource1._x + (RandBounce * 0.5);
_root.LightSource1._y = _root.LightSource1._y - (RandBounce * 0.5);
}
Frame 19
if ((pulse == 0) && (growcycle == true)) {
_root.Expand1._xscale = ((_root.Expand1._xscale + ConstPulse) + PulseAdd) + Random1;
_root.Expand1._yscale = ((_root.Expand1._yscale + ConstPulse) + PulseAdd) + Random2;
_root.Expand1._x = ((_root.Expand1._x - ConstPulse) - PulseAdd) - Random1;
_root.Expand1._y = ((_root.Expand1._y - ConstPulse) - PulseAdd) - Random2;
_root.Naval._x = ((_root.Naval._x + ConstPulse) + PulseAdd) + Random1;
_root.Naval._y = ((_root.Naval._y - ConstPulse) - PulseAdd) - Random2;
_root.LightSource1._x = ((_root.LightSource1._x - ConstPulse) - PulseAdd) - Random1;
_root.LightSource1._y = ((_root.LightSource1._y - ConstPulse) - PulseAdd) - Random2;
_root.LightSource1._xscale = ((_root.LightSource1._xscale - ConstPulse) - PulseAdd) - Random1;
_root.LightSource1._yscale = ((_root.LightSource1._yscale + ConstPulse) + PulseAdd) + Random2;
}
if ((pulse > 5) && (growcycle == true)) {
_root.Expand1._xscale = _root.Expand1._xscale - RandBounce;
_root.Expand1._yscale = _root.Expand1._yscale + RandBounce;
_root.Expand1._x = _root.Expand1._x + RandBounce;
_root.Expand1._y = _root.Expand1._y - RandBounce;
_root.Naval._x = _root.Naval._x + RandMoveX;
_root.Naval._y = _root.Naval._y + RandMoveY;
_root.LightSource1._xscale = _root.LightSource1._xscale - RandBounce;
_root.LightSource1._yscale = _root.LightSource1._yscale + RandBounce;
_root.LightSource1._x = _root.LightSource1._x + (RandBounce * 0.5);
_root.LightSource1._y = _root.LightSource1._y - (RandBounce * 0.5);
}
Frame 20
if ((pulse == 0) && (growcycle == true)) {
_root.Expand1._xscale = ((_root.Expand1._xscale + ConstPulse) + PulseAdd) + Random1;
_root.Expand1._yscale = ((_root.Expand1._yscale + ConstPulse) + PulseAdd) + Random2;
_root.Expand1._x = ((_root.Expand1._x - ConstPulse) - PulseAdd) - Random1;
_root.Expand1._y = ((_root.Expand1._y - ConstPulse) - PulseAdd) - Random2;
_root.Naval._x = ((_root.Naval._x + ConstPulse) + PulseAdd) + Random1;
_root.Naval._y = ((_root.Naval._y - ConstPulse) - PulseAdd) - Random2;
_root.LightSource1._x = ((_root.LightSource1._x - ConstPulse) - PulseAdd) - Random1;
_root.LightSource1._y = ((_root.LightSource1._y - ConstPulse) - PulseAdd) - Random2;
_root.LightSource1._xscale = ((_root.LightSource1._xscale - ConstPulse) - PulseAdd) - Random1;
_root.LightSource1._yscale = ((_root.LightSource1._yscale + ConstPulse) + PulseAdd) + Random2;
}
if ((pulse > 5) && (growcycle == true)) {
_root.Expand1._xscale = _root.Expand1._xscale + (RandBounce * 2);
_root.Expand1._yscale = _root.Expand1._yscale - (RandBounce * 2);
_root.Expand1._x = _root.Expand1._x - (RandBounce * 2);
_root.Expand1._y = _root.Expand1._y + (RandBounce * 2);
_root.Naval._x = _root.Naval._x - RandMoveX;
_root.Naval._y = _root.Naval._y - RandMoveY;
_root.LightSource1._xscale = _root.LightSource1._xscale + (RandBounce * 2);
_root.LightSource1._yscale = _root.LightSource1._yscale - (RandBounce * 2);
_root.LightSource1._x = _root.LightSource1._x - RandBounce;
_root.LightSource1._y = _root.LightSource1._y + RandBounce;
}
if (pulse > 4) {
_root.globalvolume.setVolume(0);
} else {
_root.globalvolume.setVolume(100);
}
Frame 21
if ((pulse == 0) && (growcycle == true)) {
_root.Expand1._xscale = ((_root.Expand1._xscale - ConstPulse) - PulseAdd) - Random1;
_root.Expand1._yscale = ((_root.Expand1._yscale - ConstPulse) - PulseAdd) - Random2;
_root.Expand1._x = ((_root.Expand1._x + ConstPulse) + PulseAdd) + Random1;
_root.Expand1._y = ((_root.Expand1._y + ConstPulse) + PulseAdd) + Random2;
_root.Naval._x = ((_root.Naval._x - ConstPulse) - PulseAdd) - Random1;
_root.Naval._y = ((_root.Naval._y + ConstPulse) + PulseAdd) + Random2;
_root.LightSource1._x = ((_root.LightSource1._x + ConstPulse) + PulseAdd) + Random1;
_root.LightSource1._y = ((_root.LightSource1._y + ConstPulse) + PulseAdd) + Random2;
_root.LightSource1._xscale = ((_root.LightSource1._xscale + ConstPulse) + PulseAdd) + Random1;
_root.LightSource1._yscale = ((_root.LightSource1._yscale - ConstPulse) - PulseAdd) - Random2;
}
if ((pulse > 5) && (growcycle == true)) {
_root.Expand1._xscale = _root.Expand1._xscale + (RandBounce * 2);
_root.Expand1._yscale = _root.Expand1._yscale - (RandBounce * 2);
_root.Expand1._x = _root.Expand1._x - (RandBounce * 2);
_root.Expand1._y = _root.Expand1._y + (RandBounce * 2);
_root.Naval._x = _root.Naval._x - RandMoveX;
_root.Naval._y = _root.Naval._y - RandMoveY;
_root.LightSource1._xscale = _root.LightSource1._xscale + (RandBounce * 2);
_root.LightSource1._yscale = _root.LightSource1._yscale - (RandBounce * 2);
_root.LightSource1._x = _root.LightSource1._x - RandBounce;
_root.LightSource1._y = _root.LightSource1._y + RandBounce;
}
Frame 22
if ((pulse == 0) && (growcycle == true)) {
_root.Expand1._xscale = ((_root.Expand1._xscale - ConstPulse) - PulseAdd) - Random1;
_root.Expand1._yscale = ((_root.Expand1._yscale - ConstPulse) - PulseAdd) - Random2;
_root.Expand1._x = ((_root.Expand1._x + ConstPulse) + PulseAdd) + Random1;
_root.Expand1._y = ((_root.Expand1._y + ConstPulse) + PulseAdd) + Random2;
_root.Naval._x = ((_root.Naval._x - ConstPulse) - PulseAdd) - Random1;
_root.Naval._y = ((_root.Naval._y + ConstPulse) + PulseAdd) + Random2;
_root.LightSource1._x = ((_root.LightSource1._x + ConstPulse) + PulseAdd) + Random1;
_root.LightSource1._y = ((_root.LightSource1._y + ConstPulse) + PulseAdd) + Random2;
_root.LightSource1._xscale = ((_root.LightSource1._xscale + ConstPulse) + PulseAdd) + Random1;
_root.LightSource1._yscale = ((_root.LightSource1._yscale - ConstPulse) - PulseAdd) - Random2;
}
if ((pulse > 5) && (growcycle == true)) {
_root.Expand1._xscale = _root.Expand1._xscale + (RandBounce * 2);
_root.Expand1._yscale = _root.Expand1._yscale - (RandBounce * 2);
_root.Expand1._x = _root.Expand1._x - (RandBounce * 2);
_root.Expand1._y = _root.Expand1._y + (RandBounce * 2);
_root.Naval._x = _root.Naval._x - RandMoveX;
_root.Naval._y = _root.Naval._y - RandMoveY;
_root.LightSource1._xscale = _root.LightSource1._xscale + (RandBounce * 2);
_root.LightSource1._yscale = _root.LightSource1._yscale - (RandBounce * 2);
_root.LightSource1._x = _root.LightSource1._x - RandBounce;
_root.LightSource1._y = _root.LightSource1._y + RandBounce;
}
Frame 23
if ((pulse == 0) && (growcycle == true)) {
_root.Expand1._xscale = ((_root.Expand1._xscale - ConstPulse) - PulseAdd) - Random1;
_root.Expand1._yscale = ((_root.Expand1._yscale - ConstPulse) - PulseAdd) - Random2;
_root.Expand1._x = ((_root.Expand1._x + ConstPulse) + PulseAdd) + Random1;
_root.Expand1._y = ((_root.Expand1._y + ConstPulse) + PulseAdd) + Random2;
_root.Naval._x = ((_root.Naval._x - ConstPulse) - PulseAdd) - Random1;
_root.Naval._y = ((_root.Naval._y + ConstPulse) + PulseAdd) + Random2;
_root.LightSource1._x = ((_root.LightSource1._x + ConstPulse) + PulseAdd) + Random1;
_root.LightSource1._y = ((_root.LightSource1._y + ConstPulse) + PulseAdd) + Random2;
_root.LightSource1._xscale = ((_root.LightSource1._xscale + ConstPulse) + PulseAdd) + Random1;
_root.LightSource1._yscale = ((_root.LightSource1._yscale - ConstPulse) - PulseAdd) - Random2;
}
if ((pulse > 5) && (growcycle == true)) {
_root.Expand1._xscale = _root.Expand1._xscale - RandBounce;
_root.Expand1._yscale = _root.Expand1._yscale + RandBounce;
_root.Expand1._x = _root.Expand1._x + RandBounce;
_root.Expand1._y = _root.Expand1._y - RandBounce;
_root.LightSource1._xscale = _root.LightSource1._xscale - RandBounce;
_root.LightSource1._yscale = _root.LightSource1._yscale + RandBounce;
_root.LightSource1._x = _root.LightSource1._x + (RandBounce * 0.5);
_root.LightSource1._y = _root.LightSource1._y - (RandBounce * 0.5);
}
Frame 24
if ((pulse == 0) && (growcycle == true)) {
_root.Expand1._xscale = ((_root.Expand1._xscale - ConstPulse) - PulseAdd) - Random1;
_root.Expand1._yscale = ((_root.Expand1._yscale - ConstPulse) - PulseAdd) - Random2;
_root.Expand1._x = ((_root.Expand1._x + ConstPulse) + PulseAdd) + Random1;
_root.Expand1._y = ((_root.Expand1._y + ConstPulse) + PulseAdd) + Random2;
_root.Naval._x = ((_root.Naval._x - ConstPulse) - PulseAdd) - Random1;
_root.Naval._y = ((_root.Naval._y + ConstPulse) + PulseAdd) + Random2;
_root.LightSource1._x = ((_root.LightSource1._x + ConstPulse) + PulseAdd) + Random1;
_root.LightSource1._y = ((_root.LightSource1._y + ConstPulse) + PulseAdd) + Random2;
_root.LightSource1._xscale = ((_root.LightSource1._xscale + ConstPulse) + PulseAdd) + Random1;
_root.LightSource1._yscale = ((_root.LightSource1._yscale - ConstPulse) - PulseAdd) - Random2;
}
if ((pulse > 5) && (growcycle == true)) {
_root.Expand1._xscale = _root.Expand1._xscale - RandBounce;
_root.Expand1._yscale = _root.Expand1._yscale + RandBounce;
_root.Expand1._x = _root.Expand1._x + RandBounce;
_root.Expand1._y = _root.Expand1._y - RandBounce;
_root.LightSource1._xscale = _root.LightSource1._xscale - RandBounce;
_root.LightSource1._yscale = _root.LightSource1._yscale + RandBounce;
_root.LightSource1._x = _root.LightSource1._x + (RandBounce * 0.5);
_root.LightSource1._y = _root.LightSource1._y - (RandBounce * 0.5);
}
Frame 25
if ((pulse == 0) && (growcycle == true)) {
_root.Expand1._xscale = ((_root.Expand1._xscale - ConstPulse) - PulseAdd) - Random1;
_root.Expand1._yscale = ((_root.Expand1._yscale - ConstPulse) - PulseAdd) - Random2;
_root.Expand1._x = ((_root.Expand1._x + ConstPulse) + PulseAdd) + Random1;
_root.Expand1._y = ((_root.Expand1._y + ConstPulse) + PulseAdd) + Random2;
_root.Naval._x = ((_root.Naval._x - ConstPulse) - PulseAdd) - Random1;
_root.Naval._y = ((_root.Naval._y + ConstPulse) + PulseAdd) + Random2;
_root.LightSource1._x = ((_root.LightSource1._x + ConstPulse) + PulseAdd) + Random1;
_root.LightSource1._y = ((_root.LightSource1._y + ConstPulse) + PulseAdd) + Random2;
_root.LightSource1._xscale = ((_root.LightSource1._xscale + ConstPulse) + PulseAdd) + Random1;
_root.LightSource1._yscale = ((_root.LightSource1._yscale - ConstPulse) - PulseAdd) - Random2;
}
if ((pulse > 5) && (growcycle == true)) {
_root.Expand1._xscale = _root.Expand1._xscale - RandBounce;
_root.Expand1._yscale = _root.Expand1._yscale + RandBounce;
_root.Expand1._x = _root.Expand1._x + RandBounce;
_root.Expand1._y = _root.Expand1._y - RandBounce;
_root.LightSource1._xscale = _root.LightSource1._xscale - RandBounce;
_root.LightSource1._yscale = _root.LightSource1._yscale + RandBounce;
_root.LightSource1._x = _root.LightSource1._x + (RandBounce * 0.5);
_root.LightSource1._y = _root.LightSource1._y - (RandBounce * 0.5);
}
if (((pulse > 5) && (growcycle == true)) && (ExpandSetup == true)) {
_root.Expand1._x = Expand1X;
_root.Expand1._y = Expand1Y;
MessWithHeight = _root.Expand1._xscale;
MessWithWidth = _root.Expand1._yscale;
MessWithHeight = MessWithHeight * 2;
MessWithWidth = MessWithWidth * 2;
MessWithHeight = MessWithHeight / 2;
MessWithWidth = MessWithWidth / 2;
_root.Expand1._xscale = MessWithHeight;
_root.Expand1._yscale = MessWithWidth;
_root.Naval._x = NavalX;
_root.Naval._y = NavalY;
_root.LightSource1._x = LightSource1X;
_root.LightSource1._y = LightSource1Y;
_root.LightSource1._width = LightSource1Width;
_root.LightSource1._height = LightSource1Height;
}
Symbol 19 MovieClip Frame 1
setProperty(Layer1, _visible , false);
XScale = 1.6;
YScale = 1.75;
if (grow == true) {
_root.Expand1._xscale = _root.Expand1._xscale + XScale;
_root.Expand1._yscale = _root.Expand1._yscale + YScale;
_root.Expand1._x = _root.Expand1._x - (XScale + 0.02);
_root.Expand1._y = _root.Expand1._y - (XScale - 0.72);
}
Symbol 19 MovieClip Frame 2
Symbol 19 MovieClip Frame 5
if (grow == true) {
_root.Expand1._xscale = _root.Expand1._xscale + XScale;
_root.Expand1._yscale = _root.Expand1._yscale + YScale;
_root.Expand1._x = _root.Expand1._x - (XScale + 0.02);
_root.Expand1._y = _root.Expand1._y - (XScale - 0.72);
setProperty(f1, _visible , false);
_root.f1._visible = false;
_root.f2._visible = false;
_root.f3._visible = false;
_root.f4._visible = false;
_root.f5._visible = false;
_root.f6._visible = false;
_root.f7._visible = false;
f8._visible = false;
f9._visible = false;
fa._visible = false;
fb._visible = false;
fc._visible = false;
fd._visible = false;
fe._visible = false;
ff._visible = false;
f10._visible = false;
f11._visible = false;
f12._visible = false;
f13._visible = false;
f14._visible = false;
f15._visible = false;
f16._visible = false;
f17._visible = false;
f18._visible = false;
f19._visible = false;
} else {
setProperty(Layer1, _visible , true);
_root.f1._visible = true;
_root.f2._visible = true;
_root.f3._visible = true;
f4._visible = true;
f5._visible = true;
f6._visible = true;
f7._visible = true;
f8._visible = true;
f9._visible = true;
fa._visible = true;
fb._visible = true;
fc._visible = true;
fd._visible = true;
fe._visible = true;
ff._visible = true;
f10._visible = true;
f11._visible = true;
f12._visible = true;
f13._visible = true;
f14._visible = true;
f15._visible = true;
f16._visible = true;
f17._visible = true;
f18._visible = true;
f19._visible = true;
}
Symbol 19 MovieClip Frame 11
if (grow == true) {
_root.Expand1._xscale = _root.Expand1._xscale + XScale;
_root.Expand1._yscale = _root.Expand1._yscale + YScale;
_root.Expand1._x = _root.Expand1._x - (XScale + 0.02);
_root.Expand1._y = _root.Expand1._y - (XScale - 0.72);
}
Symbol 19 MovieClip Frame 16
if (grow == true) {
_root.Expand1._xscale = _root.Expand1._xscale + XScale;
_root.Expand1._yscale = _root.Expand1._yscale + YScale;
_root.Expand1._x = _root.Expand1._x - (XScale + 0.02);
_root.Expand1._y = _root.Expand1._y - (XScale - 0.72);
}
Symbol 19 MovieClip Frame 21
if (grow == true) {
_root.Expand1._xscale = _root.Expand1._xscale + XScale;
_root.Expand1._yscale = _root.Expand1._yscale + YScale;
_root.Expand1._x = _root.Expand1._x - (XScale + 0.02);
_root.Expand1._y = _root.Expand1._y - (XScale - 0.72);
}
Symbol 21 Button
on (press) {
RandomTest1 = Math.random();
RandomTest2 = Math.random();
if (grow == true) {
grow = false;
} else {
grow = true;
}
}