getElement(id).settings.disable()
Disables any interactive feature of the element.
Note: this does not prevent an element that is part of a Selector element from being selected.
Example:
[js highlight=”6″ try=”true”]
newAudio(“sentence”, “test.mp3”)
.print()
.wait()
,
getAudio(“sentence”)
.settings.disable()
[/js]
Prints buttons to play/pause the audio file test_sentence.ogg, and disables those buttons when the file has played through.