Yup, that's what I meant alright.  Sorry - thanks for catching it Sean.

And as others have said, there are many different ways of doing this. 
The basic idea is to issue the fadeout once, then wait on a frame 
until the fade is done.  This can be done in one or two scripts, and 
the waiting can be done by checking the sound volume or waiting for a 
given amount of time.  The style is up to you.

Good luck,

Irv

At 2:08 PM +1200 9/26/01, Sean Wilson wrote:
>  > I  also tried to use what Irv had written. However, the music
>>  stops abruptly
>>  and the movie ends.
>
>I think perhaps what Irv meant might be:
>
>property pEndMilliseconds
>
>on beginSprite me
>     nMilliseconds = 500  -- the number of milliseconds over which to fade
>     sound(1).fadeout(nMilliseconds)  -- start fading channel 1
>     pEndMilliseconds = the milliseconds + nMilliseconds  --
>millisconds when you want to stop
>end
>
>on exitFrame me
>     if the milliseconds >= pEndMilliseconds then
>       halt
>     else
>       go to the frame
>     end if
>end
>
>(I've added an 'else' statement in the exitFrame handler, as well as the
>'me' parameter to the handler definition - realising that this part isn't as
>mission-critical)
>
>HTH,
>-Sean.
>
>
>[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!]


-- 

Lingo / Director / Shockwave development for all occasions. 
          
   (Home-made Lingo cooked up fresh every day just for you.)

[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