i figured it out. :D
The only files it will accept in a string are snd files. Although you can
place
MP3, Wav, SND files INTO RB, you can not get them with a getFolderItem.
So now I have to convert my sounds from WAV to SND, and stick them
in my folder. But i get the result I wanted. Less typing, nd more versitilty.
I can have 3 buttons, I can have 2000, it will all work.
They really need more documentation on this stuff.
here is my final solution on MouseUp. YEAHHH!!!!!
/// play different sound depending one what number button is pressed
// NOTE you can only do this with simple sound files. No wav,mp3, etc
dim f as folderitem
dim sd as sound
f = getFolderItem(sn) //sn is the string taken from above prefix + index
if f.exists then
sd = f.openAsSound
else
msgBOx "f doesn't exist"
end if
sd.play
//ch3.play
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|