ho dato ad un pulsante il compito di caricare un filmato in un Mc e tutto funziona, quando però vado a simulare lo scaricamento il preload presente nel filmato esterno non mi funziona.
Come posso risolvere il problema ?
ho dato ad un pulsante il compito di caricare un filmato in un Mc e tutto funziona, quando però vado a simulare lo scaricamento il preload presente nel filmato esterno non mi funziona.
Come posso risolvere il problema ?
credo siano le path..
se hai una roda del genere..
_root.getbytesLoaded ecc.. ecc..
devi mettere anche l'istanza della MC che riceve.. quindi
_root.istanza.getbytesLoaded (questo vale per tutti i passaggi del code dove hai _root.
ho scritto veloce, spero sia chiaro..
Interactive Html/CSS/JS Playground | @webbeloz ( cip..cip! )
Mechanics & Expert Tuning Fix Z3 Roadster Community
il codice è questo
car = _root.mc1.getBytesLoaded();
tot = _root.mc1.getBytesTotal();
perc = int(car/tot*100)+"%";
avan = int(car/tot*100);
totali = _root.getBytesTotal();
rimanenti = _root.mc1getBytesLoaded();
setProperty("barra", _xscale, 100-avan);
if (car == tot) {
gotoAndPlay("home", 1);
}
ci sono errori.. prova così:Originariamente inviato da ditutticolori
il codice è questo
car = _root.mc1.getBytesLoaded();
tot = _root.mc1.getBytesTotal();
perc = int(car/tot*100)+"%";
avan = int(car/tot*100);
totali = _root.getBytesTotal();
rimanenti = _root.mc1getBytesLoaded();
setProperty("barra", _xscale, 100-avan);
if (car == tot) {
gotoAndPlay("home", 1);
}
codice:car = _root.mc1.getBytesLoaded(); tot = _root.mc1.getBytesTotal(); perc = int(car/tot*100)+"%"; avan = int(car/tot*100); totali = _root.mc1.getBytesTotal(); rimanenti = _root.mc.getBytesLoaded(); setProperty("barra", _xscale, 100-avan); if (car == tot) { gotoAndPlay("home", 1);
Interactive Html/CSS/JS Playground | @webbeloz ( cip..cip! )
Mechanics & Expert Tuning Fix Z3 Roadster Community
ok grazie funziona
beneOriginariamente inviato da ditutticolori
ok grazie funziona![]()
nota che non avevo scritto bene neppure io.. questa riga:
rimanenti = _root.mc1.getBytesLoaded();
è cmq ininfluente..![]()
Interactive Html/CSS/JS Playground | @webbeloz ( cip..cip! )
Mechanics & Expert Tuning Fix Z3 Roadster Community