Soundpause (MX)

Status
Nicht offen für weitere Antworten.

Matthias Kannengiesser

Erfahrenes Mitglied
Hi Folks,

Pausfunktion für Sounds:

PHP:
Sound.prototype.switchPause = function(idName) {
	if (!this.spielen) {
		this.start(this.position/1000);
		this.spielen = true;
	} else {
		this.stop(idName);
		this.spielen = false;
	}
};


// Anwendung
musik = new Sound(this);
musik.attachSound("latino");
musik.switchPause("latino");

pause_btn.onRelease = function() {
	musik.switchPause("latino");
}

Liebe Grüsse
Matze K.
 
Status
Nicht offen für weitere Antworten.

Neue Beiträge

Zurück