Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
var snd = new Sound();
snd.attachSound("mein_sound.wav");
var playing = false;
snd.onSoundComplete = function() {
this.start();
}
this.onEnterFrame = function() {
if (Key.isDown(Key.SPACE)) {
playSound();
} else {
stopSound();
}
}
function playSound() {
if (playing == false) {
playing = true;
snd.start();
}
}
function stopSound() {
snd.stop();
playing = false;
}