×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Random MP3 Playback?

Random MP3 Playback?

Random MP3 Playback?

(OP)
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

RE: Random MP3 Playback?

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

--
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)])
--

Kenneth Kawamoto
www.materiaprima.co.uk

RE: Random MP3 Playback?

(OP)
I've already managed to sort this now, but would the method you posted work with cast members rather than externally?

RE: Random MP3 Playback?

"playFile()" is for the external sound files. Use "play()" for internal sound members.

Kenneth Kawamoto
www.materiaprima.co.uk

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close