Instance of Symbol 39 MovieClip in Frame 1
onClipEvent (load) {
function starburst() {
if (_root.randomburst) {
_root.sparkle = Math.floor(Math.random() * 2);
_root.burstvolume = (Math.random() * 8) + 0.5;
volumeslider._width = (_root.burstvolume - 0.5) * 16;
_root.burstmass = Math.floor((Math.random() * 128) + 1);
massslider._width = _root.burstmass - 1;
_root.burstcolor = Math.floor((Math.random() * 192) + 1);
colorslider._x = colorlabel._x + ((_root.burstcolor - 1) / 1.5);
typeselector.gotoAndStop(_root.burstcolor);
_root.bursttype = Math.floor(Math.random() * 4);
typeindicator._x = 448 + (_root.bursttype * 16);
}
var x = _root.id;
_root.id = _root.id + _root.burstmass;
while (x != _root.id) {
duplicateMovieClip (_root.burst, "burst" + x, x);
x++;
}
}
function updatevolume() {
var tmp = 0;
tmp = _xmouse - volumeslider._x;
if (tmp < 0) {
tmp = 0;
}
if (128 < tmp) {
tmp = 128;
}
_root.burstvolume = (tmp / 16) + 0.5;
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 - colorlabel._x;
if (tmp < 0) {
tmp = 0;
}
if (128 < tmp) {
tmp = 128;
}
_root.burstcolor = Math.floor((tmp * 1.5) + 1);
colorslider._x = colorlabel._x + tmp;
typeselector.gotoAndStop(_root.burstcolor);
}
function updatehilights() {
if (!_root.randomburst) {
if (_root._ymouse >= 460) {
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 - colorlabel._x) >= 0) and (128 >= (_xmouse - colorlabel._x))) {
colorslider.gotoAndStop(2);
colorlabel.gotoAndStop(2);
} else {
colorslider.gotoAndStop(1);
colorlabel.gotoAndStop(1);
}
if (((_xmouse - typeselector._x) >= 0) and (64 >= (_xmouse - typeselector._x))) {
typelabel.gotoAndStop(2);
typeindicator.gotoAndStop(2);
typeshadow._visible = false;
} else {
typelabel.gotoAndStop(1);
typeindicator.gotoAndStop(1);
typeshadow._visible = true;
}
if (((_xmouse - randomizebutton._x) >= 0) and (59 >= (_xmouse - randomizebutton._x))) {
randomizebutton.gotoAndStop(2);
} else {
randomizebutton.gotoAndStop(1);
}
} else {
volumeslider.gotoAndStop(1);
volumelabel.gotoAndStop(1);
massslider.gotoAndStop(1);
masslabel.gotoAndStop(1);
colorslider.gotoAndStop(1);
colorlabel.gotoAndStop(1);
typelabel.gotoAndStop(1);
typeindicator.gotoAndStop(1);
typeshadow._visible = true;
randomizebutton.gotoAndStop(1);
}
}
}
_root.burst._visible = false;
_root.autoburst = 0;
_root.randomburst = 0;
_root.sparkle = 1;
_root.burstvolume = 4.5;
_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 < 460) {
starburst();
} else {
if (!_root.randomburst) {
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 - colorlabel._x) >= 0) and (128 >= (_xmouse - colorlabel._x))) {
this.colorslideractive = 1;
updatecolor();
colorslider.gotoAndStop(2);
colorlabel.gotoAndStop(2);
} else if (((_xmouse - typeselector._x) >= 0) and (64 >= (_xmouse - typeselector._x))) {
if ((_xmouse - typeselector._x) < 16) {
_root.bursttype = 0;
} else if ((_xmouse - typeselector._x) < 32) {
_root.bursttype = 1;
} else if ((_xmouse - typeselector._x) < 48) {
_root.bursttype = 2;
} else {
_root.bursttype = 3;
}
typeindicator._x = 448 + (_root.bursttype * 16);
}
}
if (((_xmouse - randomizebutton._x) >= 0) and (59 >= (_xmouse - randomizebutton._x))) {
if (_root.randomburst) {
_root.randomburst = 0;
updatehilights();
} else {
_root.randomburst = 1;
randomizebutton.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseMove) {
if (_root.autoburst) {
starburst();
}
if (!_root.randomburst) {
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();
}
onClipEvent (keyDown) {
if (Key.getCode(Key.SPACE)) {
_root.autoburst = 1;
}
}
onClipEvent (keyUp) {
if (Key.getCode(Key.SPACE)) {
_root.autoburst = 0;
}
}
Symbol 4 MovieClip Frame 25
if (2 < _parent.type) {
var tmp = color._currentframe;
tmp = tmp + 96;
if (192 < tmp) {
tmp = tmp - 192;
}
color.gotoAndStop(tmp);
}
Symbol 4 MovieClip Frame 65
_parent.removeMovieClip();
Symbol 5 MovieClip Frame 1
this._x = _root._xmouse;
this._y = _root._ymouse;
this._rotation = (((Math.random() * Math.PI) * 2) * 180) / Math.PI;
star._width = Math.sin((Math.cos((Math.random() * Math.PI) / 2) * Math.PI) / 2) * _root.burstvolume;
this.type = _root.bursttype;
if (this.type == 0) {
star.color.gotoAndStop(_root.burstcolor);
} else if (this.type == 1) {
star.color.gotoAndStop(_root.burstcolor);
star.light.gotoAndPlay(131);
} else if (this.type == 2) {
star.color.gotoAndPlay(_root.burstcolor);
} else {
star.color.gotoAndStop(_root.burstcolor);
star.light.gotoAndPlay(65);
}
Symbol 5 MovieClip Frame 2
stop();
Symbol 9 MovieClip Frame 1
stop();
Symbol 12 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 1
stop();
Symbol 22 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 1
stop();