
Код:
// Action script...
// [Action in Frame 1]
if (!this.first_run)
{
var r = -144;
var i = 1;
while (i <= 10)
{
this.attachMovie("loading_step", "load" + i, i, {_x: 66, _y: 30.500000, _rotation: r, _visible: false});
r = r + 36;
++i;
} // end while
this.first_run = true;
} // end if
this.percent = function (value)
{
var _l3 = Math.round(value * 10);
var _l2 = 1;
while (_l2 <= 10)
{
this["load" + _l2]._visible = _l2 <= _l3;
++_l2;
} // end while
};
this.setPercent = function ()
{
if (!this.total)
{
return (undefined);
} // end if
var _l2 = 0;
for (var _l3 in this.tk_ar)
{
_l2 = _l2 + Number(this.tk_ar[_l3]);
} // end of for...in
this.percent(_l2 / this.total);
};