macromedia.director.basics
[Top] [All Lists]

Re: how do i add a wav file

Subject: Re: how do i add a wav file
From: Sean Wilson
Date: Mon, 11 Feb 2008 10:15:54 +1300
Newsgroups: macromedia.director.basics

I need to know how do you say when and how to get it to play
F1 -> Contents (tab) -> Using Director -> Sound and Synchronization ->
Playing sounds with Lingo or JavaScript syntax -> Playing sound cast
members. This entry suggests the commands queue() and play() and
recommends looking them up in the Scripting Reference section.
To cut to the chase, use:
sound(1).play(member("soundMemberName"))
when you want to play the sound file named "soundMemberName" in channel 1. There are 8 channels available to Lingo (only 2 appear in the Score window) and they are all mixed down before being sent to the sound card/chip for delivery, so you can play 8 (stereo) sounds all at once if you need to. Video files with embedded audio play their sound independently of Director and its sound channels




<Prev in Thread] Current Thread [Next in Thread>