Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/06/2009, 11:44
Avatar de Bandit
Bandit
Moderador
 
Fecha de Ingreso: julio-2003
Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 20 años, 9 meses
Puntos: 406
Respuesta: reproductor de sonido Flash, no funciona en php

Hola Gustavo 1973:
Escribe así tu código:
Código:
sonido = new Sound();
sonido.loadSound("loop.mp3", true);
sonido.onSoundComplete = function() {
	sonido.start(0, 1);
};
_root.sonido.start();
_root.parado = true;
star.onPress = function() {
	if (_root.parado) {
		_root.sonido.start();
		_root.parado = false;
		_root.pausado = false;
	} else if (_root.pausado) {
		_root.pausado = false;
		_root.sonido.start(_root.paradoen/1000);
	}
};
pausa.onPress = function() {
	if ((not (_root.parado)) and (not (_root.pausado))) {
		_root.paradoen = _root.sonido.position;
		_root.sonido.stop();
		_root.pausado = true;
	} else if (_root.pausado) {
		_root.pausado = false;
		_root.sonido.start(_root.paradoen/1000);
	}
};
parar.onPress = function() {
	_root.sonido.start();
	_root.sonido.stop();
	_root.paradoen = 0;
	_root.pausado = false;
	_root.parado = true;
};
Espero haberte sido de ayuda.
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/