Hi, Herman, Irv and Peri,
I really appreciate all of your input. However, my problem is still not
solved.
Why did Irv mention time check? And a sprite script?
Thank you.
Genevieve
>From: Peri <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: <lingo-l> Sound does not end
>Date: Tue, 25 Sep 2001 14:10:48 -0700
>
>But I do see your point
>
>pc
>
>Irv Kalb wrote:
>
> > I haven't been following this thread, but there is an error in the
> > code below and in the original version.
> >
> > What you really want to do is to issue the sound fadeout _once_, then
> > check on exitFrame. To issue the fadeout once, do it in the
> > beginSprite handler (which _is_ issued even in a frame script).
> > Then, rather than checking sound volume (it probably would work just
> > fine), I would do it with a time check. Something like this
> > (untested):
> >
> > 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
> > if the milliseconds >= pEndMilliseconds then
> > halt
> > end if
> > end
> >
> > Hope this helps.
> >
> > Irv
> >
> > At 1:06 PM -0700 9/25/01, Peri wrote:
> > >You need a go to the frame script in this one
> > >Like
> > >on exitFrame me
> > > sound(1).fadeOut(500)
> > >
> > > if sound(1).volume = 0 then
> > > halt
> > > end if
> > > go the frame
> > >end
> > >
> > >Oh and use halt rather than exit, as halt will quit the movie in
>playback, but
> > >will only stop the movie in Authoring. No more restarting Director
>after each
> > >playback.
> > >
> > >Peri
> > >
> >
> > --
> >
> > 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!]
>
>
>[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!]