set player filename (was:use-revolution digest, Vol 1 #597 - 7 msgs)
kkaufman at snet.net
Sun Aug 11 20:11:01 EDT 2002
Here's one way:
script of select music folder button:
answer folder "Please select a folder containing audio clips."
set the defaultfolder to it
put the files into fld "playList"
script of list playList (playLists' "listBehavior" and "locktext" must
be set to true):
put the selectedText of me into audioToPlay
set the currentTime of player "audioPlayer" to 0
set the filename of player "audioPlayer" to audioToPlay
start player "audioPlayer"
-might want to set player "audioPlayer" 's showController to true.
hope this helps,
More information about the Use-livecode