 
			
				23/12/2005, 15:32
			
			
			     |  
        |     Usuario no validado   |    |    Fecha de Ingreso: marzo-2002  Ubicación: Buenos Aires  
						Mensajes: 1.300
					  Antigüedad: 23 años, 7 meses Puntos: 8     |        |  
  |      ahi va        aqui teneis mi codigo  
lo que veo tambien es que no me llega al 100% de la precarga de la pelicula   
Código:
  stop();
//variables comuns
var flash = "prova.swf?id="+random(100);
var sonido = "musica/trac1.mp3?id="+random(100);
var vacio:MovieClip = this.createEmptyMovieClip("vacio", 1);
vacio._x = 0;
var loop:MovieClip = this.createEmptyMovieClip("loop", 0);
var vacio:MovieClip;
campo.text = "";
//precarga_musica
//precarga2
function precarga1(){
 setProperty(linea_pre,_width,0);
 mysound= new Sound();
 mysound.loadSound(sonido, false);
 loop.onEnterFrame = function() {
  campo_que.text = "Cargando Musica";
 total = mysound.getBytesTotal();
  cargados = mysound.getBytesLoaded();
  tamano = Math.round(total)
  t = Math.floor((cargados*100)/total);
 
 if (!isNan(t)) {
  campo.text = t+"% Cargado de "+ tamano + " bytes"; 
  setProperty(linea_pre,_width,(t+2));
 }
 if (t == 100) {
  campo.text = "Cargado de Musica total" 
  setProperty(linea_pre,_width,(t+2));
  precarga2();
 }
 }
}
 
//precarga2 cargo contingut
 
function precarga2(){
 vacio.swapDepths(1);
 cuadre_contorn.swapDepths(2);
 setProperty(linea_pre,_width,0);
 vacio.loadMovie(flash);
 onEnterFrame = function() {
  campo_que.text = "Cargando Contenido";
  loop.onEnterFrame = function() {
  total = vacio.getBytesTotal();
  cargados = vacio.getBytesLoaded();
  tamano = Math.round(total)
  t = Math.floor((cargados*100)/total);
  //campo.text = t+"% cargado de "+ tamano + " bytes";
  setProperty(linea_pre,_width,t+4);
 if (!isNan(t)) {
  campo.text = t+"% Cargado de "+ tamano + " bytes"; 
  setProperty(linea_pre,_width,(t+2));
 }
 if (t == 100) {
  campo.text = "Cargado total";
  setProperty(linea_pre,_width,(t+2));
  gotoandstop("intro");
  
 }
  
  
 
  }
 }
}
precarga1();
  gracias            |