Hi. I am playing a sound file using a variable containing a soundfile name. It works the first time when it passes the condition on the first iteration but then does not play on the second or third iteration (even if I keep the variable value constant). Even if I hard code the filename in the sound object it will play on the first pass but not the subsequent passes. The files are all good and the issue is clearly not the variable as it works the first time but not the second even when the filename is the same.
I’ve tried adding the JS sound_1.play(); at the beginning of the routine but this doesn’t make any difference.
Any ideas? The files are all added in the online component of the program too and if I hard code a different filename it will play that version once but nothing on the subsequent iterations. Am I missing something?
I’m having to use 2023.2.3 as this is deployed on our imaged machines and keeps the student cohort using a consistent version.
In the end I removed the sound object from builder and built it on the fly in the JS code. I could then use the condition number to instigate the filename for the sound object and some reason this worked.