I'm trying to play a sound in a Dashcode widget. I just droped the file over the widget and now I a video item.
This is the code I'm using:
// Values you provide
var qtElement = document.getElementById("video"); // replace with the ID of a QuickTime element
// QuickTime code
qtElement.Play();
When it gets to the final line I got this error:
"Undefined is not a function"
I just solved the issue on my own widget via using
The important part is the children[0] since Dashcode now puts the Id on an enclosing div.