Copyright © 1998-2006 MultiMedia Soft 
Return to index  
 
SetSoundFromNet method 
 
Remarks 
Changes one of the sounds at run-time, downloading a sound file from the Internet. 
Accepted extensions for the file are WAV or AMZ
When the download ends a SoundDLLDone event is generated (also in case of failure). 
(Not available with Light edition) 
 
Syntax 
Visual Basic 
control.SetSoundFromNet (index as enumSounds, URL as string, username as string, password as string) as integer 
 
Visual C++ 
BOOL control.SetSoundFromNet (long index, LPCTSTR URL, LPCTSTR username, LPCTSTR password)
 
Parameter
Description
 
 
index
Numerical value that represents the index of the sound property to change. Supported values are the following:  
Mnemonic constant
Value
Meaning
SOUND_DOWN
0
Changes the SoundDown property
SOUND_UP
1
Changes the SoundUp property
SOUND_MOUSEOVER
2
Changes the SoundMouseOver property
SOUND_MOUSEOUT
3
Changes the SoundMouseOut property
URL
String that specifies the Internet address from which the sound file will be loaded; only URLs beginning with ftp: or http: are supported.
username
String that specifies the name of the user to log in. Useful only if the URL is FTP.
password
String that specifies the password to use to log in. Useful only if the URL is FTP.
 
 
Return value 
 
Value
Meaning
 
 
FALSE
The operation failed
TRUE
The operation was successful
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Copyright © 1998-2006 MultiMedia Soft 
Return to index