Combined Code
frame 2 {
if (_framesloaded == _totalframes) {
gotoAndPlay(3);
} else {
gotoAndPlay(1);
}
}
frame 3 {
function ballInit(o) {
o.tt = Math.random() * Math.PI * 2;
o.orad = random(700);
o.rad = 0;
o.swapDepths(1000);
}
function ballUpdate(o) {
o.tt -= 0.08;
if (o.tt < -1.570796326794897) {
o.tt += Math.PI;
o.orad = random(700);
}
o.rad = o.orad;
o.rad -= o.tt * 100;
o._yscale = 100 * ((Math.cos(o.tt) + 1) * 0.6 + 0.8);
o._xscale = o._yscale;
o._xscale *= Math.cos(o.tt) * (o.rad * o.rad / 360000);
o._yscale *= o.rad / 700;
if (o._xscale < 10) {
}
o._alpha = o._xscale * 10;
tempx = Math.sin(o.tt) * o.rad;
tempy = Math.cos(o.tt) * (o.rad / 3);
tempy *= tempy / 100;
var v2 = 0.174532925;
o._x = tempx * Math.cos(v2) - tempy * Math.sin(v2) + 400;
o._y = tempy * Math.cos(v2) + tempx * Math.sin(v2) + 300 - 100;
o._rotation = -90 * Math.sin(o.tt);
}
function particleInit(o) {
o._x = _root.emitter._x;
o._y = _root.emitter._y;
o._xscale = _root.emitter._xscale;
o._yscale = _root.emitter._yscale;
o.xvel = 1;
o.yvel = -1;
}
function particleUpdate(o) {
o._x += o.xvel;
o._y -= o.yvel;
o._xscale -= 10;
o._yscale -= 10;
if (o._xscale < 0) {
removeMovieClip(o);
}
}
function drawpoint(xpos, ypos, color, alpha) {
if (ept < _root.emitter.tt) {
return undefined;
}
_root.part.lineStyle(Math.random() * 30, color, 2);
_root.part.moveTo(epx, epy);
_root.part.lineTo(xpos, ypos);
}
function newParticle() {
drawpoint(_root.emitter._x, _root.emitter._y, 16777215, 100);
}
stop();
this._quality = 'Low';
i = 0;
while (i < 200) {
duplicateMovieClip(this.originalball, 'w' + i, 500 + i);
++i;
}
}
button 6 {
on (release) {
getURL('calptane.html', '');
}
}
movieClip 7 {
}
instance of movieClip 7 {
onClipEvent (load) {
var tt = 0;
orad = 400;
this.swapDepths(1000);
}
onClipEvent (enterFrame) {
_root.ballUpdate(this);
}
}
movieClip 9 {
}
instance originalball of movieClip 9 {
onClipEvent (load) {
_root.ballInit(this);
}
onClipEvent (enterFrame) {
_root.ballUpdate(this);
}
}
movieClip 11 {
}
instance thefloor of movieClip 11 {
onClipEvent (load) {
}
}
button 13 {
on (release) {
getURL('calptane.html', '');
}
}
movieClip 14 {
}
instance of movieClip 14 {
onClipEvent (load) {
var tt = 0.5;
orad = 400;
this.swapDepths(1000);
}
onClipEvent (enterFrame) {
_root.ballUpdate(this);
}
}
movieClip 16 {
}
instance of movieClip 16 {
onClipEvent (load) {
var tt = 1;
orad = 400;
this.swapDepths(1000);
}
onClipEvent (enterFrame) {
_root.ballUpdate(this);
}
}
movieClip 18 {
}
instance of movieClip 18 {
onClipEvent (load) {
var tt = 1.5;
orad = 400;
this.swapDepths(1000);
}
onClipEvent (enterFrame) {
_root.ballUpdate(this);
}
}