How do you know the correct filepath for playing an audioClip?(Andrea George

Sarah Reichelt sarahr at genesearch.com.au
Wed Feb 4 21:03:15 EST 2004


Try this:

on mouseUp
   answer file "Select an audio file:"
   put it  -- so you can see what the exact file name is
   play it looping
end mouseUp

If your problem is a file path one, this will fix it.

Cheers,
Sarah

On 5 Feb 2004, at 11:37 am, geor9230 at saintmarys.edu wrote:

> I am still having trouble figuring out why I can't get my audioClip to 
> play.  I have tried various things including changing the filepath to 
> the song.  I know I have everything else set up for the play button 
> correct because I can hear it trying to connect with the song, but 
> nothing is being connected.
>
> I have tried the following line of code in all different styles, but 
> it is still not working.
>
> on mouseUp
> play "Macintosh HD/Users/Shared/audioClips/UnchangedMelody.aiff" 
> looping
> end mouseUp
>
> I have also tried putting it on the desktop and it was not able to 
> find it there.  I do know the song works because I have played in on 
> the mac on several different occasions.
>
> I have tried the ImyPath method and I was not able to get that to 
> work.  Am I missing code and I am not aware of this?  What am I doing 
> wrong?  Where can I find some examples?
>
>
> Please help.
> Thank you!



More information about the use-livecode mailing list