Comunidad de diseño web y desarrollo en internet online

como desaparecer el cargador

Citar            
MensajeEscrito el 07 Abr 2008 02:40 am
He conseguido sortear el obstáculo y he podido lograr colocar un mc como cargador. El dilema que se me presenta ahora es que no lo puedo hacer desaparecer una vez que la imagen fue cargada.
Si es posible, me gratificaría una respuesta.


Código :

fullPreloader.onLoadProgress = function(target, loadedBytes, totalBytes) {
      target.createTextField("my_txt",0,0,415,600,20);
      
      
      

   target.my_txt.setNewTextFormat(new TextFormat("Verdana", 12, 0xFF5B24, false));

      
      
      
      
      
      function onLoadProgress(target, bytes_loaded, bytes_total){
   
   target.my_txt.text = Math.floor((loadedBytes/totalBytes)*100);
   
   
   // stop and hide movie
   target.stop();
   target._visible = false;
   
   // assign value to preloader
   preloader_mc.value = bytes_loaded/bytes_total;
   
   
      }
   
   
   
};

   fullPreloader.onLoadComplete = function(target) {
      new Tween(target, "_alpha", Strong.easeOut, 0, 100, .5, true);
      target.my_txt.text = myTitle;
   
   // when loading is complete for loader_mcl
function onLoadComplete(target){
   trace("complete")
   // show and play loaded clip
   target.play();
   target._visible = true;
   
   // remove the preloader animation
   preloader_mc.removeMovieClip();
}

// if there is an error, this event handler will
// be called and the preloader will be removed
function onLoadError(target, error_code){
   preloader_mc.removeMovieClip();
   trace(error_code);
}

Por incubo

53 de clabLevel



 

firefox
Citar            
MensajeEscrito el 07 Abr 2008 04:54 am
evita repetir posts. cerrado

Por Mariux

BOFH

7756 de clabLevel

28 tutoriales
15 articulos

Genero:Femenino   Héroes Editores

Diseñadora & ilustradora

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.