lutas
Threadersteller
Dabei seit: 08.01.2006
Ort: Brixen (BZ)
Alter: -
Geschlecht: -
|
Verfasst So 08.01.2006 18:38
Titel Problem bei preloader mit der textausgabe |
|
|
hallo,
ich lade extern bilder in ein emptyMovieclip(name: Bild)....
funktioniert....
ich wuerde gern aber die byte rate in einem textfeld(name: prot)
angeben, ich verstehe nicht wo ich das hinsetzen muss dass es funktioniert ....
hab schon ne weile rumprobiert...kann mir jemand helfen?
hier das script
Code: |
var tl = this;
stop();
dd=1;
function bildladen(dd) {
this.createEmptyMovieClip("Bild", 1);
this.Bild.loadMovie("Kachel.jpg");
this.onEnterFrame = function() {
a = this.getBytesTotal();
b = this.getBytesLoaded();
var proz = Math.round(a/b*100);
if (proz>=100 && this.Bild._width > 0 && this.Bild._height>0){
delete this.onEnterFrame;
this.Bild._x = 500 - Bild._width/2;
this.Bild._y = 210 - Bild._height/2;
}
}
}
bildladen(dd);
back._visible = false;
prot.text = proz;
maxbild = 8; |
danke
L.
|
|