How do I - Stop Audio using Javascript

Get help using Construct 2

Post » Tue Jan 27, 2015 11:05 am

Hi,
I have a menu from which C2 games can be called but if a game has audio then the audio continues to play even after that DIV has been loaded with different C2 game.

To stop this audio I think I'd need to get reference to the Audio object using Javascript, can anyone please highlight how this reference can be obtained ?

-Thanks
Mahesh
B
13
S
3
Posts: 77
Reputation: 1,686

Post » Tue Jan 27, 2015 1:22 pm

Write a function to stop all audio, then call the function from JS.
Scirra Founder
B
405
S
239
G
91
Posts: 24,765
Reputation: 197,444


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 15 guests