Page 1 of 1

Audio Drag & Drop

Posted: Mon Jun 01, 2009 6:01 pm
by Damlimey
Hi there,

Actually, I have two things I want to ask. Does anybody know if it is possible to drag an audio file and drop it on a button to load it ready for play? Also, If I have several buttons loaded with tracks ready to play, how do I get runtime to allocate an available player assuming I have more than one player in the stack?

Thanks in advance for any help,

G

Posted: Mon Jun 01, 2009 7:32 pm
by bn
G,

for drag and drop look for example

http://www.sosmartsoftware.com/?r=revol ... ciels&l=en
look for #024 Managing drag and drop #2
and
#010 How to manage drag and drop for files and folders
description
How to manage drag and drop for multiple files and/or folders, how to know the right kind of data for each file and how to display this data in a field, an image or a player.
for audio you might look at:
http://revolution.byu.edu/indexgeneric.php

Generally you set the filename of a player to an audio file and then you
start player "yourPlayerName"
look up player in the dictionary and the pdf
So I dont know what you mean by having loaded a button.
I would store the pathnames of your audio files in field for example and then from a button you could set the filename of a player to line x of field y and then start the player. When the player is done it sends the message playStopped, you could then start the next audio file.
many ways to do this.

regards
Bernd

Thank you

Posted: Tue Jun 02, 2009 8:53 am
by Damlimey
Thank you for that, you've lead me to a very useful resource.

G