Combined Code
frame 2 {
function arc() {
d_mc.clear();
d_mc.lineStyle(liniendicke, linienfarbe);
d_mc.moveTo(startx, starty - myRadius / 2);
d_mc.drawCircle(startx, starty - myRadius / 2, myRadius, -sector, myRadius);
}
var startx = 400;
var starty = 100;
var zeilenabstand = 10;
var linienfarbe = 16777215;
var liniendicke = 1;
var fuellfarbe = 13056;
var alpha = 100;
var myRadius = 100;
var at = getTimer();
MovieClip.prototype.drawCircle = function (x, y, radius, arc, startAngle, yRadius) {
if (arguments.length < 5) {
return undefined;
}
if (yRadius == undefined) {
yRadius = radius;
}
var v17;
var v4;
var v3;
var v6;
var v15;
var v11;
var v9;
var v10;
var v8;
var v14;
var v13;
if (Math.abs(arc) > 360) {
arc = 360;
}
v15 = Math.ceil(Math.abs(arc) / 45);
v17 = arc / v15;
v4 = -(v17 / 180) * Math.PI;
v3 = -(startAngle / 180) * Math.PI;
v11 = x - Math.cos(v3) * radius;
v9 = y - Math.sin(v3) * yRadius;
if (v15 > 0) {
var v5 = 0;
while (v5 < v15) {
v3 += v4;
v6 = v3 - v4 / 2;
v10 = v11 + Math.cos(v3) * radius;
v8 = v9 + Math.sin(v3) * yRadius;
v14 = v11 + Math.cos(v6) * (radius / Math.cos(v4 / 2));
v13 = v9 + Math.sin(v6) * (yRadius / Math.cos(v4 / 2));
this.curveTo(v14, v13, v10, v8);
++v5;
}
}
return {'x': v10, 'y': v8};
};
d_mc = _root.createEmptyMovieClip('drawing_layer', 2);
var i = 0;
while (i <= 4) {
_root.createTextField('anzeige' + i, 20 + i, startx - 50, starty + (-hoehe + zeilenabstand * i), 200, 20);
++i;
}
_root.onEnterFrame = function () {
arc();
var v4 = _root.getBytesTotal();
var v5 = _root.getBytesLoaded();
var v9 = getTimer();
var v6 = Math.round((v9 - at) / 1000);
var v8 = Math.round(v4 * v6 / v5);
var v10 = Math.round(-(v6 - v8));
if (v5 == v4) {
var v3 = 0;
while (v3 <= 4) {
_root['anzeige' + v3].removeTextField();
++v3;
}
gotoAndStop(3);
_root.d_mc.clear();
delete this.onEnterFrame;
} else {
var v7 = (v5 / v4) * 100;
anzeige0.text = 'geladen = ' + Math.round(v5 / 1024) + ' Kb';
anzeige1.text = 'total = ' + Math.round(v4 / 1024) + ' Kb';
anzeige2.text = Math.round(v7) + ' %';
anzeige3.text = 'abgelaufene Zeit = ' + v6 + ' Sekunden';
anzeige4.text = 'noch etwa ' + v10 + ' Sekunden zu laden';
sector = Math.round(v7 * 3.6);
}
};
}
frame 3 {
stop();
}
movieClip 73 {
}