it's me again and with a new problem

, im using Twine 2.0 with sugarcube 2
my question is, when im using popup box and some of audio is playing but when im closing the popup, the audio is still playing, how to stop it ? is there any event trigger when popup is closing ? i want the audio stop playing when popup is closing.
this is the popup trigger
<<popup "Smartphone" "Phone">></span>
and this is code for "Phone" passage
<<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>>
in this case the audio is in "Call" passage, im adding it using display macro
any help will be appreciated, thx before
Comments
The two audio macros you can use to stop playing are <<stopallaudio>> or <<audio "track_id" stop>>
http://twinery.org/forum/discussion/comment/10126/#Comment_10126
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>>.