Instance of Symbol 24 MovieClip in Frame 1
onClipEvent (load) {
function updatevolume() {
var tmp = 0;
tmp = _xmouse - volumeslider._x;
if (tmp < 0) {
tmp = 0;
}
if (128 < tmp) {
tmp = 128;
}
_root.burstvolume = tmp / 8;
volumeslider._width = tmp;
}
function updatemass() {
var tmp = 0;
tmp = Math.floor(_xmouse - massslider._x);
if (tmp < 0) {
tmp = 0;
}
if (128 < tmp) {
tmp = 128;
}
_root.burstmass = tmp + 1;
massslider._width = tmp;
}
function updatecolor() {
var tmp = 0;
tmp = _xmouse - 272;
if (tmp < 0) {
tmp = 0;
}
if (128 < tmp) {
tmp = 128;
}
_root.burstcolor = Math.floor((tmp * 1.5) + 1);
colorslider._x = 272 + tmp;
}
function updatehilights() {
if (_root._ymouse >= 492) {
if (((_xmouse - volumeslider._x) >= 0) and (128 >= (_xmouse - volumeslider._x))) {
volumeslider.gotoAndStop(2);
volumelabel.gotoAndStop(2);
} else {
volumeslider.gotoAndStop(1);
volumelabel.gotoAndStop(1);
}
if (((_xmouse - massslider._x) >= 0) and (128 >= (_xmouse - massslider._x))) {
massslider.gotoAndStop(2);
masslabel.gotoAndStop(2);
} else {
massslider.gotoAndStop(1);
masslabel.gotoAndStop(1);
}
if (((_xmouse - 272) >= 0) and (128 >= (_xmouse - 272))) {
colorslider.gotoAndStop(2);
colorlabel.gotoAndStop(2);
} else {
colorslider.gotoAndStop(1);
colorlabel.gotoAndStop(1);
}
if (((_xmouse - randomizebutton._x) >= 0) and (59 >= (_xmouse - randomizebutton._x))) {
randomizebutton.gotoAndStop(2);
} else if (!_root.randomburst) {
randomizebutton.gotoAndStop(1);
}
} else {
volumeslider.gotoAndStop(1);
volumelabel.gotoAndStop(1);
massslider.gotoAndStop(1);
masslabel.gotoAndStop(1);
colorslider.gotoAndStop(1);
colorlabel.gotoAndStop(1);
if (!_root.randomburst) {
randomizebutton.gotoAndStop(1);
}
}
}
_root.burst._visible = false;
_root.randomburst = 0;
_root.sparkle = 1;
_root.burstvolume = 8;
_root.burstmass = 64;
_root.bursttype = 0;
_root.burstcolor = 1;
_root.id = 0;
this.volumeslideractive = 0;
this.massslideractive = 0;
this.colorslideractive = 0;
}
onClipEvent (mouseDown) {
if (_root._ymouse < 493) {
if (_root.randomburst) {
_root.sparkle = Math.floor(Math.random() * 2);
_root.burstvolume = Math.random() * 16;
volumeslider._width = _root.burstvolume * 8;
_root.burstmass = Math.floor((Math.random() * 128) + 1);
massslider._width = _root.burstmass - 1;
_root.burstcolor = Math.floor((Math.random() * 192) + 1);
_root.bursttype = Math.floor(Math.random() * 2);
}
var x = _root.id;
_root.id = _root.id + _root.burstmass;
while (x != _root.id) {
duplicateMovieClip (_root.burst, "burst" + x, x);
x++;
}
} else if (((_xmouse - volumeslider._x) >= 0) and (128 >= (_xmouse - volumeslider._x))) {
this.volumeslideractive = 1;
updatevolume();
volumeslider.gotoAndStop(2);
volumelabel.gotoAndStop(2);
} else if (((_xmouse - massslider._x) >= 0) and (128 >= (_xmouse - massslider._x))) {
this.massslideractive = 1;
updatemass();
massslider.gotoAndStop(2);
masslabel.gotoAndStop(2);
} else if (((_xmouse - 272) >= 0) and (128 >= (_xmouse - 272))) {
this.colorslideractive = 1;
updatecolor();
colorslider.gotoAndStop(2);
colorlabel.gotoAndStop(2);
} else if (((_xmouse - randomizebutton._x) >= 0) and (59 >= (_xmouse - randomizebutton._x))) {
if (_root.randomburst) {
_root.randomburst = 0;
updatehilights();
} else {
_root.randomburst = 1;
randomizebutton.gotoAndStop(2);
}
}
}
onClipEvent (mouseMove) {
if (this.volumeslideractive) {
updatevolume();
} else if (this.massslideractive) {
updatemass();
} else if (this.colorslideractive) {
updatecolor();
} else {
updatehilights();
}
}
onClipEvent (mouseUp) {
this.volumeslideractive = 0;
this.massslideractive = 0;
this.colorslideractive = 0;
updatehilights();
}
Symbol 3 MovieClip Frame 64
if (!_parent.sparkle) {
_parent.removeMovieClip();
}
gotoAndPlay(Math.floor(Math.random() * 8) + 65);
Symbol 3 MovieClip Frame 96
_parent.removeMovieClip();
Symbol 4 MovieClip Frame 1
this.sparkle = _root.sparkle;
this.xo = _root._xmouse;
this.yo = _root._ymouse;
this.r = (Math.random() * Math.PI) * 2;
this.i = Math.sin((Math.cos((Math.random() * Math.PI) / 2) * Math.PI) / 2) * _root.burstvolume;
this.x = Math.sin(this.r);
this.y = Math.cos(this.r);
this.p = 0;
if (_root.bursttype) {
star.color.gotoAndPlay(_root.burstcolor);
} else {
star.color.gotoAndStop(_root.burstcolor);
}
Symbol 4 MovieClip Frame 2
this.i = this.i / 1.05;
(p = p + this.i);
this.yo = this.yo + 1;
this._x = this.xo + (this.x * this.p);
this._y = this.yo + (this.y * this.p);
var tmp;
tmp = Math.atan2((this.y * this.i) + 1, this.x * this.i);
this._rotation = (tmp * 180) / Math.PI;
star._width = (this.i * 4) + 2;
Symbol 4 MovieClip Frame 3
gotoAndPlay (2);
Symbol 8 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 1
stop();
Symbol 14 MovieClip Frame 1
stop();
Symbol 17 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 1
stop();