Combined Code
frame 1 {
stop();
}
// unknown tag 88 length 67
button 15 {
on (press) {
getURL('http://www.deviantart.com', '_blank');
}
on (rollOver) {
gotoAndPlay('rollover');
}
on (rollOut) {
gotoAndPlay('rollout');
}
}
movieClip 16 {
frame 1 {
stop();
}
frame 13 {
stop();
}
}
movieClip 19 {
}
movieClip 20 {
frame 1 {
function fractalLine(mc, A, B, width, roughness, branching, col, alpha) {
mc.lineStyle(width, col, alpha);
var v5 = Math.atan2(B.y - A.y, B.x - A.x);
var v2 = distance(A, B);
var v10 = {'x': A.x + (v2 / 2) * Math.cos(v5), 'y': A.y + (v2 / 2) * Math.sin(v5)};
var v13 = (v2 / 2) * roughness * 2 * Math.random() - ((v2 / 2) * roughness + 0.1);
var v1 = {'x': v10.x + v13 * Math.cos(v5 - 1.570796326794897), 'y': v10.y + v13 * Math.sin(v5 - 1.570796326794897)};
if (branching && v2 > 80) {
var v15 = v5 + Math.random() * Math.PI / 2 - 0.7853981633974483;
var v8 = v2 / 2;
dest = {'x': v1.x + v8 * Math.cos(v15), 'y': v1.y + v8 * Math.sin(v15)};
fractalLine(mc, v1, dest, width / 1.5, roughness, branching, col, alpha);
}
if (v2 > 40) {
fractalLine(mc, A, v1, width, roughness, branching, col, alpha);
fractalLine(mc, v1, B, width, roughness, branching, col, alpha);
} else {
mc.moveTo(A.x, A.y);
mc.lineTo(v1.x, v1.y);
mc.lineTo(B.x, B.y);
}
}
function distance(A, B) {
return Math.sqrt(Math.pow(B.x - A.x, 2) + Math.pow(B.y - A.y, 2));
}
function render() {
this.clear();
var v2 = 0;
while (v2 < 3) {
idx = v2 * 3;
fractalLine(this, pts[idx], pts[idx + 1], 3, pts[idx + 2], false, 16777215, 100);
++v2;
}
}
function teslaStart() {
teslaStop();
intervalID = setInterval(this, 'render', 50);
}
function teslaStop() {
clearInterval(intervalID);
}
var pts = new Array(new Object({'x': -50, 'y': -20}), new Object({'x': 330, 'y': -20}), 0.2, new Object({'x': -50, 'y': 0}), new Object({'x': 330, 'y': 0}), 0.25, new Object({'x': -50, 'y': 20}), new Object({'x': 330, 'y': 20}), 0.2);
var intervalID = 0;
}
}
movieClip 22 {
}
movieClip 23 {
frame 1 {
stop();
}
}
movieClip 24 {
frame 1 {
var _maxStripes = 5;
var _yRadius = 20;
var _zRadius = 20;
var _sAlpha = 50;
var _stripes;
var s = _parent._parent.stripeSettings;
initStripes = function () {
_maxStripes = s.maxStripes;
_yRadius = s.yRadius;
_zRadius = s.zRadius;
_sAlpha = s.alpha;
_stripes = new Array();
var v3 = 0;
while (v3 < _maxStripes) {
var v2 = this.attachMovie('Stripe', 'Stripe' + v3, this.getNextHighestDepth());
v2._xscale = 60;
v2._yscale = 50;
v2.angle = (Math.PI / _maxStripes) * v3 * 2;
_stripes.push(v2);
++v3;
}
};
onEnterFrame = function () {
var v3 = s.rotSpeed;
_sAlpha += (s.alpha - _sAlpha) / 5;
_yRadius += (s.yRadius - _yRadius) / 5;
_zRadius += (s.zRadius - _zRadius) / 5;
var v2 = 0;
while (v2 < _maxStripes) {
var v1 = _stripes[v2];
v1.angle += v3;
v1._y = Math.sin(v1.angle) * _yRadius;
v1._alpha = Math.round(Math.cos(v1.angle) * _zRadius + _sAlpha);
++v2;
}
};
initStripes();
stop();
}
}
movieClip 25 {
}
movieClip 26 {
}
// unknown tag 88 length 67
movieClip 30 {
frame 1 {
var stripeSettings = new Object();
stripeSettings.rotSpeed = 0.05;
stripeSettings.alpha = 70;
stripeSettings.zRadius = 30;
stripeSettings.yRadius = 20;
stripeSettings.maxStripes = 5;
_parent.stop();
}
frame 43 {
var percent = 0;
var percentLast = 0;
var percentMaxPart = 10;
var percentString = '0.00%';
loadingPill.Lightning.teslaStart();
onEnterFrame = function () {
var v3 = Math.round(_root.getBytesLoaded());
var v2 = Math.round(_root.getBytesTotal());
percent = !isNaN(v3 / v2) ? v3 * 100 / v2 : 0;
var v4 = percent - percentLast;
if (v4 > percentMaxPart) {
percent = percentLast + percentMaxPart;
}
percentLast = percent;
p = percentLast;
if (p >= 100) {
p = 100;
}
loadingPill.Progress.gotoAndStop(Math.ceil(p));
percentString = String(Math.round(p) + '.' + ((Math.round(p * 100)).toString()).substr(-2)) + '%';
if (p == 100) {
delete onEnterFrame;
loadingPill.Lightning.teslaStop();
gotoAndPlay('loaded');
}
};
}
frame 54 {
stop();
}
frame 74 {
stop();
Pill_btn.onRelease = function () {
gotoAndPlay('outro');
};
Pill_btn.onRollOver = function () {
stripeSettings.yRadius = 10;
stripeSettings.zRadius = 40;
stripeSettings.alpha = 60;
stripeSettings.rotSpeed = 0.06;
};
Pill_btn.onRollOut = function () {
stripeSettings.yRadius = 20;
stripeSettings.zRadius = 30;
stripeSettings.alpha = 70;
stripeSettings.rotSpeed = 0.05;
};
}
frame 90 {
stop();
_parent.play();
}
}
movieClip 33 {
}
movieClip 96 {
}