Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/11/2011, 22:39
mileArag
 
Fecha de Ingreso: noviembre-2011
Ubicación: Bogotá, Colombia
Mensajes: 3
Antigüedad: 12 años, 5 meses
Puntos: 0
Exclamación Problema con arreglos

Buenas noches.

Tengo este código en un .as (cliploader.as) que controla la descarga de audios, de varias diapositivas:

mp3=function(arreglo) {
onEnterFrame = function() {
if(avance != avanceTemp){
this[arreglo[avance]] = new Sound();
this[arreglo[avance]].loadSound("audio/"+arreglo[avance]+".mp3",false);
this[arreglo[avance]+"_loaded"] = false;
this[arreglo[avance]+"_played"] = false;
avanceTemp = avance;
}
total_s = this[arreglo[avance]].getBytesTotal();
cargado_s = this[arreglo[avance]].getBytesLoaded();
if(total_s == cargado_s){
this[arreglo[avance]+"_loaded"] = true;
if(avance < (arreglo.length -1) ){
avance ++;
}
}


En cada una de las diapositivas, el llamado a la función se hace así:

#include "cliploader.as"
_root.miArray = ["m0_001a","m0_001b"];

Si publico la diapositiva que tiene este código, funciona perfecto y me hace el llamado secuencial de los audios....

EL PROBLEMA ES QUE CADA UNA DE ESAS DIAPOSITIVAS ESTÁN SIENDO INVOCADAS POR UNA PLANTILLA, QUE LAS DEPOSITA EN UN CONTENEDOR Y SI PUBLICO ESA PLANTILLA YA NO FUNCIONA EL AUDIO EN NINGUNA DIAPOSITIVA.

SÉ QUE EL PROBLEMA ES EL ENRUTAMIENTO, PERO NO SÉ CÓMO ARREGLARLO.

MUCHAS GRACIAS SI ALGUIEN PUEDE AYUDARME...