Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Random MP3 Playback?

Status
Not open for further replies.

gt123

Technical User
Dec 28, 2005
4
0
0
GB
Hi,

I'm doing a College project that needs to have a random MP3 playback feature. A random MP3 must be selected from ten MP3s when the movie is loaded, there is then a bar at the top of the movie that controls the audio with 'Play', 'Pause', 'Stop', 'Fast Forward' and 'Rewind' buttons. A new random MP3 must be played back when the original one ends etc.

Unfortunately, I have extremely little experience with director, so i'd greatly appreciate help with this.

Thanks alot,

GT
 
Very basic example of playing a random external MP3 in channel 1:

[tt]--
mp3List = ["1.mp3", "2.mp3", "3.mp3", "4.mp3", "5.mp3", "6.mp3", "7.mp3", "8.mp3", "9.mp3", "10.mp3"]
sound(1).playFile(mp3List[random(10)])
--[/tt]

Kenneth Kawamoto
 
I've already managed to sort this now, but would the method you posted work with cast members rather than externally?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top