Hello,
I am in search of a way to link a bunch of audio files to a button so when a user clicks the button the mobile device randomly selects a wav file to play from a sound folder where the wav files are stored.
I have been searching the forums for this and have not found anything about it yet but if I have missed it please point me into the right direction.
Thank you very much for your help.
Play random audio on a button click
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Play random audio on a button click
Hi,
Put your files in a list and "put any line of myList into myFile". Now you can play that file.
Kind regards,
Mark
Put your files in a list and "put any line of myList into myFile". Now you can play that file.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode