<snip>
Sub PlaySound(FileName, Repeat)
Action.LoadControl MediaPlayerObject(2)
MediaPlayerObject(2).FileName = FileName
If Repeat = True Then
MediaPlayerObject(2).PlayCount = 0
Else
MediaPlayerObject(2).PlayCount = 1
End If
MediaPlayerObject(2).Play
End Sub
Is there a particular program or utility that needs to be present on a computer for this subroutine to function properly? I installed a copy of my game on an old laptop and everytime the game came to a location where I had used the subroutine PlaySound the game encountered an error (Automation Error) and the sound would not play.
Do I need to make sure that a Windows Media player is present on the computer to ensure that this scripted 'play sound' option will work?
Thanks,
Skye