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?
good, though … this thread is not of any help if someone may have a simular problem.
I’d keep in mind that a forum should be a place of help and exchange too.
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.
there’ll be plenty of possibilities to do such implementation
so what in detail¿
//////////////////////
i may have been to strict indeed … and it’s not my duty
but i’d say that pointing out that forum means exchange is not that bad
have a sunny day!