Startseite › Foren › Deutsches LiveCode-Forum › Switch Button › Antwort auf: Switch Button
Mai 24, 2018 um 12:08 Uhr
#5645
Hallo Klaus,
meine Musik spiele ich so ab:
if the environment is "mobile" then
put specialFolderPath("resources")&"/klang/Hintergrundmusik.mp3" into mm
mobilePlaySoundOnChannel mm, 1 , "now"
mobileSetSoundChannelVolume 1, 100
end if
Wenn der Button dann „on“ ist ist die Lautstärke auf 100 (wie oben im Code), wenn der Button off ist, ist die Lautstärke 0 (mobileSetSoundChannelVolume 1, 0
). Das möchte ich dann gerne in den Switch Button mit einbauen.
LG Max