Hi Kerry, Sean, Irv, Charlie and jp,

I really appreciate your help. You are all very kind.

However, when I tried using Sean's amended Lingo script of Irv's, it still 
doesn't work.

Let me explain the situation further:

I use the script as a frame script in the last frame of my movie. My music 
file, an external cast file is imported  and placed on to channel 4.

I have thus amended the line:
sound(1).fadeOut(nMilliseconds)
to sound(4).fadeOut(nMilliseconds)


When I rewind and play the movie, the movie reaches the end,and the music 
stops abruptly. It then reverses to the first scene of the movie.  There is 
no fade-out of sound.

I know the Lingo code is correct. However, why does it not work? Am I 
missing something? Is something not correct? Is it possible to have code 
which works in one program not work in another?

Thanks for your input and comments!

Genevieve


>From: Irv Kalb <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: RE: <lingo-l> Sound does not end
>Date: Tue, 25 Sep 2001 20:20:44 -0700
>
>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!]
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


[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