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: 76
Reputation: 1,679

Post » Tue Jan 27, 2015 1:22 pm

Write a function to stop all audio, then call the function from JS.
Scirra Founder
B
387
S
230
G
87
Posts: 24,249
Reputation: 192,240


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, dimitriosfl, InfiniteRockets, jkmalau, newday198913 and 17 guests