Yeah I know I was wrong. :(
I made it up in a meeting so I didn't really check up on it thouroughly.
pc
Buzz Kettles wrote:
> Yes Peri it should eventually get to zero your way, but by repeatedly
> issuing sound().fadeOut, it starts this fresh fadeout *from the value
> it was currently at*.
>
> This can make it take much longer to get to the zero value you desire.
> (each one has a new duration, too)
>
> Sorry Peri, Irv's right.
>
> -Buzz
>
> At 2:10 PM -0700 9/25/01, Peri wrote:
> >It works here
> >
> >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!]
[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!]