If I wanted to pause audio but wasn’t sure which audio file was playing at any given time, usually I’d use getElementsByTagName to loop through all audio elements to pause any that are playing and reset their currentTime to 0.
However, in Hype, I’ve created the audio elements as global variables in Head HTML. As a result, getElementsByTagName returns an empty array. I assume this is because they aren’t being embedded in the DOM.
Is there an elegant way to do this without throwing them into the innerHTML of elements to make this work?
I’d keep in mind that if you police the forums too strictly and tell people what they’ve posted is “not of any help” even if it quite likely does describe an issue in enough detail, you’re likely to put people off posting at all.
Feel free to check back through my posts to see where I’ve described in minute detail other issues I’ve faced as well as added projects to my requests on multiple threads.
Unfortunately, when I’m faced with tight deadlines at work, I don’t always have the luxury of going into as much detail as I’d like.