Using variable value as part of file name
September 25, 2007 12:00 AM
Ludo wrote:
Maybe you are able to do this with actions. Could be as follows, but keep in mind that this really is dirty coding.- Create a "play" button with some extra actions. Let it set VARnames equal to the filename.- Create wavs, and name them something like wav1, wav2 etc.- Create actions that say something like IF var(yourfile) = value NUMBER1 (or something like that), Play WAV1. Else, do nothing.- Copy the actions for each wave file inserted.Might just work. I would give it a try This is similar to what I ended up doing. Thanks for the assistance.I ended up doing this:1. Created empty audio file at the title level, Audio1.2. Created unique .wav files for each item on the list.3. Created a discrete action with a condition to match the list item with the corresponding .wav file.4. Change the contents of Audio1 to the selected .wav file.5. Play Audio1.Not too elegant, but it works.
Discussions have been disabled for this post