Load this I remember is very early to learn, so today and put out the decentralized, user-friendly query use:
function Manyloadmovie (num, x, y, xscal, yscal, dis) {
for (var i = 0; i<num; i++) {
var temp = createemptymovieclip ("temp" +i, i);
var L = createemptymovieclip ("Load" +i, i+num);
TEMP.T = i;
L.loadmovie (i+ ". swf");
L._xscale = xscal;
L._yscale = yscal;
l._x = X+i*dis;
l._y = y;
T = Createtextfield ("txt" +i, i+10000, l._x, l._y, 100, 100);
Temp.onenterframe = function () {
var a = this._parent["Load" +this.t].getbytesloaded ();
var b = this._parent["Load" +this.t].getbytestotal ();
this._parent["txt" +this.t].text = Int (a*100/b) + "%";
if (A>=b and a>10) {
this._parent["TXT" +this.t].removetextfield ();
This.removemovieclip ();
}
};
}
}
Manyloadmovie (4, 100, 100, 50, 50, 50);
Parameters are the number of files, start x, start Y, width ratio, height ratio, arrange spacing.
Note that external files are 0.swf,1.swf,2.swf ... Incremental, actually slightly changed, loading pictures also the following is the file packaging:
[Download source files] (Note:)
Because this function is used on many websites, so I think it is very useful, here just show the percentage, the test time ctrl+enter two times on the line, the external file is bigger and more obvious, as the progress of the article is also very easy, we get it, I die, cold too serious, runny nose ....