standard.settings.enable

getElement(id).settings.enable()

Enables any interactive feature of the element that was previously disabled.

Example:

[js highlight=”8″ try=”true”]
newAudio(“sentence”, “test.mp3”)
.settings.once()
.print()
,
newKey(“secret key”, “R”)
.wait()
,
getAudio(“sentence”)
.settings.enable()
[/js]

Prints buttons to play/pause the audio file test_sentence.ogg, and disables those buttons when the file has played through (see audio.settings.once).