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
Audio Drag & Drop
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 4036
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
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
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
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
for audio you might look at: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.
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