on 9/9/00 4:56 AM, sundeep bhatia at [EMAIL PROTECTED] wrote:

> hi list
> how can i make a pause and continue button for a wav. file.
> making sound pause is ok with me but after pressing continue btn it starts
> all over again from the beginning. i want it to start exactly from where it
> paused.
> i have some cue points in the sound file.
> i downloaded some behaviour from updatestage.com but they also start the
> sound from the beginning.
> thanx.....u r my only hope

If you're using Director 8 and you want to play a cast member (ie not
playing an external sound file), then do this to play and pause (you can
specify the channel, in this example I am using channel 1).

  sound(1).queue( member("SoundName") )
  sound(1).play()

To pause the sound -
 
  sound(1).pause()

Then to play it again from where it was without starting again-

  sound(1).play()

To resume playing from the beginning -

  sound(1).rewind()
  sound(1).play()


-- 

Luke Wigley
Multimedia Director/Producer
Mecca Medialight Pty Ltd

Mecca Medialight:                       Medialight Sound Studio:
111 Moor Street                         1 Bakehouse Lane
Fitzroy, Vic. 3065                      North Fitzroy, Vic. 3068
Tel +613 9416 2033                      Tel +613 9416 2033
Fax +613 9416 2055                      Fax +613 9416 2055

www.medialight.com.au
__________________________________________________________________________



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to