mp3/Player problems
Klaus Major
klaus at major-k.de
Mon Sep 15 12:42:00 EDT 2003
Hi Ken,
> Howdy,
>
> 1) Scenario:
>
> mp3 file is in the same folder as the stack
That does not mean necessarily that "the directory" is also set to that
folder!
Check it in the messages box:
put the directory
That will be the problem...
> the name of the file is "september.mp3 copy"
>
> In the Inspector I type "september.mp3 copy" into the source box.
>
> It will not play. Why?
See above...
> I see if I put the whole filepath into it it will play. But the default
> folder is the same, and the docs say that if the file is in the default
> folder, you need not spec the filepath. What's wrong?
>
> 2) Scenario:
> Same player as above. Player is offscreen, using my own buttons.
>
> "PLAY" button:
>
> on mouseUp
> play player 1
> end mouseUp
>
> "STOP" button:
>
> on mouseUp
> stop player 1
> end mouseUp
>
> When I click the STOP button it stops fine. When I click the PLAY
> button it
> always resumes.
That's the way its upposed to work :-)
> I want it to restart at the beginning. How do I do that?
Rewind that thing ;-)
on mouseUp
set the currenttime of player 1 to 0 ## rewind :-)
play player 1
end mouseUp
Et voila, c'est ca...
> Mucho TIA,
> Ken N.
Regards
Klaus Major
klaus at major-k.de
www.major-k.de
More information about the use-livecode
mailing list