It looks like you're new here. If you want to get involved, click one of these buttons!
<<popup "Smartphone" "Phone">></span>
<<nobr>> Insert the phone number<br> <<textbox "$phoneNum" "123456789">><br><br> <<button "Call">> <<if $phoneNum eq 08199999 or $phoneNum eq 08135762>> <<replace "#phone-wrap">> <br><br> <<display [[Call]] "div">> <br><br> <</replace>> <<else>> <<replace "#phone-wrap">> <br><br> wrong number <</replace>> <</if>> <</button>> <span id="phone-wrap"></span> <</nobr>>
The two audio macros you can use to stop playing are <<stopallaudio>> or <<audio "track_id" stop>>
the thing is, when i close the popup, the audio is still playing ... how can i stop it when i close the popup ? thx for the quick reply
Like so: (requires SugarCube 2 ≥ v2.0.0-beta.8)
You'd probably want to use it something like the following: And then in your "ClosePhone" passage you would do what greyelf suggested and use either <<audio "track_id" stop>> or, if no other audio was playing, just use <<stopallaudio>>.