Código ActionScript :
empresa_bt.texto_txt.text="Empresa";
producto_bt.texto_txt.text="Producto";
contacto_bt.texto_txt.text="Contacto";
foto_bt.texto_txt.text="Foto";
var escuchador:Object = new Object();
var loader:MovieClipLoader = new MovieClipLoader();
loader.addListener(escuchador);
loading_txt._visible=false;
seccionActual="empresa.swf";
cargarSiguiente();
escuchador.onLoadProgress = function(target_mc,bytesCargados,bytesTotales) {
cargados = bytesCargados;
totales = bytesTotales;
porcentaje = cargados*100/totales;
loading_txt.text = int(porcentaje)+" %";
loading_txt._visible=true;
}
escuchador.onLoadComplete = function(target_mc, httpStatus){
loading_txt._visible=false;
}
empresa_bt.onRelease = function(){
seccionActual="empresa.swf";
contenedor_mc.gotoAndPlay("salir");
}
producto_bt.onRelease = function(){
seccionActual="producto.swf";
contenedor_mc.gotoAndPlay("salir");
}
contacto_bt.onRelease = function(){
seccionActual="contacto.swf";
contenedor_mc.gotoAndPlay("salir");
}
function cargarSiguiente(){
loader.loadClip(seccionActual,contenedor_mc);
}
stop();
