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: 78
Reputation: 1,688

Post » Tue Jan 27, 2015 1:22 pm

Write a function to stop all audio, then call the function from JS.
Scirra Founder
B
415
S
247
G
92
Posts: 25,279
Reputation: 200,827


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 1 guest