maforast
30-06-2007, 11:01
Salve ragazzi scusate per il topic ma non sapevo a cosa riferirmi per questa domanda. Ho un problema aimè stupido ma che va avanti da giorni. Non riesco a far comparire un'immagine in una determinata istanza di un movie clip mettendo un contattore tipo this["r"+ j] . Mentre funziona tutto benissima quando non metto il contatore e mi riferisco ad un movie clip in maniera assoluta in questo modo this.r1. vi posto il codice per il dettaglio di quello che faccio:
this.onEnterFrame=function()
{
if (this.r1.getBytesLoaded()>0 && this.r1.getBytesLoaded() >= this.r1.getBytesTotal())
{
r1._width= 150;
r1._height = 110;
}
}
loadMovie(news["url"+i],this.r1);
in questo modo funziona tutto a dovere ma ovviamente ottengo le immagini sempre nello stesso movi clip
mentre se faccio non funziona più a dovere le immagini risultano essere senza resize
this.onEnterFrame=function()
{
if (this["r"+j].getBytesLoaded()>0 && this["r"+j].getBytesLoaded() >= this["r"+j].getBytesTotal())
{
this["r"+j]._width= 150;
this["r"+j]._height = 110;
}
}
loadMovie(news["url"+i],this["r"+j]);
grazie
this.onEnterFrame=function()
{
if (this.r1.getBytesLoaded()>0 && this.r1.getBytesLoaded() >= this.r1.getBytesTotal())
{
r1._width= 150;
r1._height = 110;
}
}
loadMovie(news["url"+i],this.r1);
in questo modo funziona tutto a dovere ma ovviamente ottengo le immagini sempre nello stesso movi clip
mentre se faccio non funziona più a dovere le immagini risultano essere senza resize
this.onEnterFrame=function()
{
if (this["r"+j].getBytesLoaded()>0 && this["r"+j].getBytesLoaded() >= this["r"+j].getBytesTotal())
{
this["r"+j]._width= 150;
this["r"+j]._height = 110;
}
}
loadMovie(news["url"+i],this["r"+j]);
grazie