Ver Mensaje Individual
  #5 (permalink)  
Antiguo 05/08/2005, 10:39
miguellara
 
Fecha de Ingreso: octubre-2003
Mensajes: 304
Antigüedad: 20 años, 5 meses
Puntos: 0
Bandit, sigue sin funcionar, estube recorriendo muchisiimos sitios con scripts para este fin,
muy raro pero solo uno de los scripts me funciono, lo agrego acá abajo, lo unico: no tiene barra, solo porcentaje, pero le voy a adaptar una barrita.

Te agradezco por la ayuda!!!!

stop();

// solo necesitamos un MC vacio con nombre de instancia: placeholder_mc
// y una entrada de texto dinámico con nombre de instancia: info_txt
// este codigo va en el primer frame:


//let us have the main preload function
//MovieClip._holderCount = 0;
MovieClip.prototype.preloadjpg = function(movietobeLoaded) {
//trace(movietobeLoaded);
//create a controller mc for the preloading routine
var holder = this.createEmptyMovieClip("holder", 1);
//load the movie
holder.loadMovie(movietobeLoaded);
//check the loading on every enteframe of the controller mc
this.onEnterFrame = function() {
//make sure holder is not visible
holder._visible = false;
//define the bytes to be loaded and loaded ones
var tLoaded, tBytes;
tLoaded = holder.getBytesLoaded();
tBytes = holder.getBytesTotal();
var percentage = int(tLoaded * 100 / tBytes);
//the load indicator routine
info_txt.text = percentage + " % of " + movietobeLoaded + " loaded";
//Make sure stream has started
if (isNaN(tBytes) || tBytes < 4) {
return;
}
//jump out and play if fully loaded
if (tLoaded / tBytes >= 1) {
//now load it the placeholder and show it
placeholder_mc.loadMovie(movietobeLoaded);
info_txt.text = movietobeLoaded + " is loaded & displayed";
delete this.onEnterFrame;
}
};
};
/// uso de la funcion
this.placeholder_mc._x = this.placeholder_mc._y = 0;
preloadjpg("http://www.fotokoma.com/chicafotokoma/2005/imagenes/chicakomaenero2005.jpg");

Saludos