Visualizzazione dei risultati da 1 a 7 su 7
  1. #1
    Utente di HTML.it
    Registrato dal
    May 2002
    Messaggi
    286

    loader di 3 movie contemporaneamente

    ciao ragazzi,
    carico 3 movie swf con il comando

    _root.uno.loadMovie("uno.swf")
    _root.uno1.loadMovie("uno1.swf")
    _root.uno2.loadMovie("uno2.swf")

    tutti nello stesso frame ma in 3 righe differenti
    Ora, io vorrei mostrare una barra di caricamento che riferisca come totale la somma dei 3 swf ma quando vado a verificare in effetti il totale non è corretto perchè il 2° e 3° file caricato sono sempre a totale=0 fino a che il 1° non è caricato!!!

    avete un trucchetto per risolvere in non ho più soluzioni

    grasssieeeeeeee

    Ciao

  2. #2
    Utente di HTML.it
    Registrato dal
    May 2002
    Messaggi
    286
    perchè c'è il puntino nero nella cartellina del post :master: ??????????

  3. #3
    Non l'ho provato ma scritto direttamente vedi se funzia. Ciao

    codice:
    Tot_Load=0
    Tot_Clip=3
    I=1
    while(I<=Tot_Clip){
        this["target"+I].contenitore.loadMovie("esterno"+I+".swf)
        this["target"+I]._alpha=0
        this["target"+I].onEnterFrame=function(){
             this.car=this.contenitore.getBytesLoaded()
             this.tot=this.contenitore.getBytesTotal()
             if(this.car == this.tot && this.car > 1024){
                 // movie Caricato
                _level0.Tot_Load++
             delete this.onEnterFrame
            }
      }
    I++
    }
    
    this.onEnterFrame=function(){
       barra._xscale=Math.round(Tot_Load/Tot_clip*100)
       if(Tot_clip==3){
         target1.contenitore._alpha=100
         target2.contenitore._alpha=100
         target3.contenitore._alpha=100
         delete this.onEnterFrame
      }
    }

  4. #4
    ops...

    codice:
    Tot_Load=0
    Tot_Clip=3
    I=1
    while(I<=Tot_Clip){
        this["target"+I].contenitore.loadMovie("esterno"+I+".swf)
        this["target"+I].contenitore._alpha=0
        this["target"+I].onEnterFrame=function(){
             this.car=this.contenitore.getBytesLoaded()
             this.tot=this.contenitore.getBytesTotal()
             if(this.car == this.tot && this.car > 1024){
                 // movie Caricato
                _level0.Tot_Load++
             delete this.onEnterFrame
            }
      }
    I++
    }
    
    this.onEnterFrame=function(){
       barra._xscale=Math.round(Tot_Load/Tot_clip*100)
       if(Tot_clip==3){
         target1.contenitore._alpha=100
         target2.contenitore._alpha=100
         target3.contenitore._alpha=100
         delete this.onEnterFrame
      }
    }

  5. #5
    Utente di HTML.it
    Registrato dal
    May 2002
    Messaggi
    286
    se nn ho capito male aumento di 1/3 per volta!
    giusto????

  6. #6
    Utente di HTML.it
    Registrato dal
    May 2002
    Messaggi
    286
    ok cosi funzia...solo che ho solo 3 grossi step di caricamento e non riesco a rendere la "fluidità" di caricamento (per capirci da 0 a 100)...

  7. #7
    e così ??

    [/CODE]
    this.onEnterFrame=function(){
    barra.Limite=Math.round(Tot_Load/Tot_clip*100)
    advancedBar()
    if(Tot_clip==3){
    target1.contenitore._alpha=100
    target2.contenitore._alpha=100
    target3.contenitore._alpha=100
    delete barra.onEnterFrame
    delete this.onEnterFrame

    }
    }

    function advancedBar(){
    barra.onEnterFrame=function(){

    if(this._xscale<=this.Limite){
    this._xscale++
    }
    }

    [CODE]

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.