If I wanted to play a video named "film1" inside a symbol named "film1symbol"? Especially, if I have more than one video on the page and so need to name them separately.
Perfection – with all the different scenarios illustrated.
Question:
For a few instances, the video will appear on the screen “already” playing by triggering the JS through another action and not the button. How would I change the innerHTML code accordingly to preserve the Play and Pause toggle function (that is, the default shows “Pause” and changes to “Play” upon clicking)? Tried a few variations of your code, but couldn’t get it to work.
I did what you suggested – I think we are getting there but the button is still buggy (particularly when you hover away from the button where it reverts to “Pause”).
First remove the on prepare for display Action. That should not be there and will not work.
Yer… that really should not be doing that… does seem like a bug with the Hover causing some sort of cache of the text to revert what was there when first loaded…?? @Daniel can you see whats going on…?
The button is set to display 'pause' in the 'normal' state -- so when you unhover it, it returns to that normal state. The innerhtml replacement acts on the 'hover' state since that is that state of the element when it occurs. To workaround this, the button could just be a regular rectangle without any built in hover states.