[EOS] Sound events

Post all technical issues and questions here. We'll gladly help you wherever we can.
Post Reply
verynicekojak
Explorer
Explorer
Posts: 88
Joined: Fri Aug 19, 2022 10:05 pm

[EOS] Sound events

Post by verynicekojak »

Hi,

I'm trying to use sound.addEventListener, sound.dispatchEvent, and sound.removeEventListener, but I have a feeling that only first of those is working.

Using code example from documentation:

Code: Select all

sound.dispatchEvent( new Event( "play" ) );
doesn't dispatches the event. Only standard sound.play() does it.

Also trying to remove listener is not working. When I use add+remove more than once, I get the same event many times.

Anyone had success with those methods?
Are there any other events than "play" and "end"?

BR,
VNK
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests