Hi, Klaus
I put two button for sound, one "Sound" and one "Mute", but I can't stop the sound, have you any code please
Hi, Klaus
I put two button for sound, one "Sound" and one "Mute", but I can't stop the sound, have you any code please
Hi,
you need to use the new soundinterface.swf plugin,
it works different to the sound.swf plugin, but with it you can play and stop music,
for example:
include the plugin at top:
code for the play button - "mymusik" is the internal ID/name of your musik:
and the code for the stop button - call stopsound with the internal ID/name:
best regards,
Klaus
Tank Klaus, but
I get a " loading "r #2032" failed"
was the path to mp3 file correct?
with the default settings the path is relative to the html file (in this beta),
but you can set a "rootpath" for the sound files,
e.g. - to search for the sound files in the path of the current xml file:
the path is "nav/jingle.mp3"
Oups.... !!!
all is right now and working well
Thank a lot Klaus :rolleyes:
Hi Klaus
I want a loop on my .mp3 it's possible ?
I get it
",loops" is ok after the music.mp3
Hi,
no, it's not a bug
the reason why playsound() doesn't work in onstart is that the soundinterface.swf plugin
must be loaded first! and this is not guaranteed in onstart!
the correct solution is to call the playsound() not in "onstart" but in the "onloaded" event
of the soundinterface plugin,
e.g.
best regards,
Klaus
okay Klaus
thanks for this
Don’t have an account yet? Register yourself now and be a part of our community!