Can't say I've ever worked with an active-x control in script before, but here's a shot:
function playSound(){
number++;
document.soundMain.param("Filename").value="Assets/Sound"+number+".wav";
document.soundMain.play(); }
This assumes the object has a param[] collection that can be indexed by name.
-Van
(Old dog learning new tricks...)
|