Frame 1
dx = 0;
dy = 0;
progress_type = 1;
line_thickness = 3;
text_format = new TextFormat("Verdana", 50, 16711680, 0);
text_align = 2;
display = 1;
os_width = 400;
os_height = 400;
os_line_color = 10066329 /* 0x999999 */;
os_line_alpha = 30;
os_fill_type = 2;
os_fill_colors = [255, 16711680, 255, 16711680, 255, 16711680, 255];
os_fill_alphas = [255, 255, 255, 255, 255, 255, 255];
os_fill_ratios = [23, 58, 95, 132, 172, 209, 246];
os_roundness = 100;
is_padding = 0;
is_line_color = 10066329 /* 0x999999 */;
is_line_alpha = 30;
is_fill_type = 2;
is_fill_colors = [3487029, 16711680];
is_fill_alphas = [255, 255];
is_fill_ratios = [0, 255];
is_roundness = 100;
delay_showing = 0;
rRect = function (mc, tl_x, tl_y, br_x, br_y, roundness) {
var r = ((Math.min(br_x - tl_x, br_y - tl_y) * roundness) / 200);
var ex = r;
var ey = 0;
mc.moveTo(br_x, tl_y + r);
var a = 45;
while (a < 405) {
if (a % 90) {
var x = ((!((90 < a) and (a < 270))) ? (br_x - r) : (tl_x + r));
var y = ((180 >= a) ? (br_y - r) : (tl_y + r));
mc.curveTo(ex + x, ey + y, ex + x, ey + y);
}
ex = r * Math.cos(a / 57.2960014343262);
ey = r * Math.sin(a / 57.2960014343262);
var cx = (ex + ((r * 0.414209991693497) * Math.sin(a / 57.2960014343262)));
var cy = (ey - ((r * 0.414209991693497) * Math.cos(a / 57.2960014343262)));
mc.curveTo(cx + x, cy + y, ex + x, ey + y);
a = a + 45;
}
};
ip = Math.min(is_padding, Math.min(os_width, os_height) / 2);
hw = os_width / 2;
hh = os_height / 2;
r = 1.5 * Math.sqrt((hw * hw) + (hh * hh));
p = createEmptyMovieClip("p_mc", l);
(p.createEmptyMovieClip("os", 1));// not popped
(p.createEmptyMovieClip("is", 2));// not popped
(p.createEmptyMovieClip("m", 3));// not popped
p.createTextField("l", 4, 0, 0, 0, 0);
p.is.setMask(p.m);
p.l.setNewTextFormat(text_format);
p.l.selectable = false;
p.l.autoSize = "center";
p._x = (Stage.width / 2) + dx;
p._y = (Stage.height / 2) + dy;
p.os.lineStyle(line_thickness, os_line_color, os_line_alpha);
p.os.beginGradientFill(((os_fill_type >= 2) ? "radial" : "linear"), os_fill_colors, os_fill_alphas, os_fill_ratios, {matrixType:"box", x:-hw, y:-hh, w:2 * hw, h:2 * hh, r:((!os_fill_type) ? 0 : ((-Math.PI) / 2))});
rRect(p.os, -hw, -hh, hw, hh, os_roundness);
p.os.endFill();
p.os.lineStyle(line_thickness, is_line_color, is_line_alpha);
rRect(p.os, ip - hw, ip - hh, hw - ip, hh - ip, is_roundness);
p.is.lineStyle(line_thickness, is_line_color, is_line_alpha);
p.is.beginGradientFill(((is_fill_type >= 2) ? "radial" : "linear"), is_fill_colors, is_fill_alphas, is_fill_ratios, {matrixType:"box", x:ip - hw, y:ip - hh, w:2 * (hw - ip), h:2 * (hh - ip), r:((!is_fill_type) ? 0 : ((-Math.PI) / 2))});
rRect(p.is, ip - hw, ip - hh, hw - ip, hh - ip, is_roundness);
p.is.endFill();
onEnterFrame = function () {
p._visible = delay_showing < getTimer();
perc = getBytesLoaded() / getBytesTotal();
if (perc < 1) {
p.m.clear();
p.m.lineStyle(line_thickness, 0);
p.m.beginFill(0);
if (progress_type == 0) {
rRect(p.m, ip - hw, ip - hh, (ip - hw) + ((2 * (hw - ip)) * perc), hh - ip, 0);
} else if (progress_type == 1) {
rRect(p.m, ip - hw, (ip - hh) + ((2 * (hh - ip)) * (1 - perc)), hw - ip, hh - ip, 0);
} else {
p.m.moveTo(0, 0);
var a = 0;
while (360 >= a) {
var a0 = (Math.min(a, perc * 360) / 57.2960014343262);
p.m.lineTo(r * Math.sin(a0), (-r) * Math.cos(a0));
a = a + 45;
}
}
p.m.endFill();
if (display) {
p.l.text = ((1 >= display) ? (Math.floor(100 * perc) + " %") : (Math.floor(getBytesLoaded() / 1024) + " KB"));
}
p.l._y = (((text_align - 1) * (hh + p.l.textHeight)) - (p.l.textHeight / 2)) - 2;
} else {
onEnterFrame = null;
p.removeMovieClip();
gotoAndPlay (3);
}
};
onEnterFrame();
Frame 2
if (perc != 1) {
stop();
}
Frame 3
stopAllSounds();
Frame 10
stop();
Symbol 32 Button
on (release) {
play();
}
on (releaseOutside) {
getURL ("Nowhere");
}