Foros del Web » Creando para Internet » Flash y Actionscript »

sonido y variables desde swf externo ayuda

Estas en el tema de sonido y variables desde swf externo ayuda en el foro de Flash y Actionscript en Foros del Web. Hola, quiero ver si alguien me puede ayudar, mi problema es el siguiente: baje un .fla que carga mp3 mediante una lista.txt para reproducirlos, todo ...
  #1 (permalink)  
Antiguo 25/07/2003, 12:44
Avatar de impio_joe  
Fecha de Ingreso: mayo-2001
Ubicación: México
Mensajes: 69
Antigüedad: 22 años, 11 meses
Puntos: 0
sonido y variables desde swf externo ayuda

Hola, quiero ver si alguien me puede ayudar, mi problema es el siguiente: baje un .fla que carga mp3 mediante una lista.txt para reproducirlos, todo funciona muy bien pero cuando cargo ese .swf como archivo externo dentro de otra movie deja de funcionar no aparecen los nombres de las canciones y mucho menos se escuchan, se que tiene que ver con la ruta pero como voy empezando con actionscript no se donde hay que modificarle, si alguien me puede ayudar se lo agradeceré infinitamente.
El código es este:
Código:
this.onEnterFrame = function () {
sload = mySound.getBytesLoaded();
stotal = mySound.getBytesTotal();
percentload = (Math.round((sload/stotal) * 100)) + "%";
if (counter < 2) {
counter = counter + 1;
loadVariablesNum("flashmusic.txt", 0);
songtitle = musictitle.split(":");
count2 = 0;
songplaying = (count2+1) + " - " + songtitle[count2];
}
if (stopped!=true) {
mySoundDuration=Math.round(_root.mySound.duration/1000);
mySoundPosition=Math.round(_root.mySound.position/1000);
texttime = mySoundPosition;
timemin = 0;
if (texttime < 10) {
	texttime = "0" + texttime;
}
while(texttime >= 60) {
	texttime = texttime - 60;
	timemin = timemin + 1;
if (texttime < 10) {
	texttime = "0" + texttime;
}
}
}
timeformat = timemin + ":" + texttime;
//Reverse
if (REV==1 && mySoundPosition>0) {
	_root.mySound.stop();
	mySoundPosition=mySoundPosition-1;
	_root.mySound.start(mySoundPosition,0);
	}
revButton.onPress = function () {
	REV=1;
	mySoundPosition=Math.round(_root.mySound.position/1000);
	//
}
revButton.onRelease = function () {
	REV=0
}
//Fast Forward
if (FF==1 && mySound.position<mySound.duration) {
		_root.mySound.stop();
		mySoundPosition=mySoundPosition+1;
		_root.mySound.start(mySoundPosition,0);
	}
FFButton.onPress = function () {
	FF=1;
	mySoundPosition=Math.round(_root.mySound.position/1000);
}
FFButton.onRelease = function () {
	FF=0
}


}

DESDE YA GRACIAS
__________________
Atte: Impío_joe
  #2 (permalink)  
Antiguo 25/07/2003, 15:30
Avatar de impio_joe  
Fecha de Ingreso: mayo-2001
Ubicación: México
Mensajes: 69
Antigüedad: 22 años, 11 meses
Puntos: 0
De acuerdo

YA ESTÁ SOLUCIONADO

Gracias a todos los que se interesaron en leer este post el error
era que estoy trabajando en FLASH MX y necesitaba cambiar esta instrucción:

Código:
loadVariablesNum("flashmusic.txt", 0);
por esta:

Código:
loadVariables("flashmusic.txt", this);
bueno al menos con eso funciona , como les comente voy empezando y me vi obligado a refinarme el using flash para
deducir que era eso.

Gracias a todos bye!
__________________
Atte: Impío_joe
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 08:30.