Time for a tip: Since Kerry's fadeout script will take 255 frames to fade, rather than a time duration, (as was originally desired), here's a workaround/trick.
use the sound channel to do the Lingo fade for you. In the frame channel before the one on which you want to hold while the QT soundtrack is being faded out, do this: on exitFrame me sound(7).fadeOut(3000) -- this sets the fade time = 3000 millesecs = 3 secs end & in the frame handler for the 'hold' frame: on exitFrame me x = sound(7).volume sprite(4).volume = x -- this presumes that the qt sprite is in channel 4 if x > 1 then go the frame else sound(7) = 255 -- <optional> this resets the sound channel. end In this way, the sound channel fadeOut, fadeIn, & most importantly: the arbitrary fadeTo can be used to do a time-based Lingo-tween to nearly any Lingo property. For instance, to fadeOut the video part of the sprite, change the second line to be sprite(1).blend = x/2.55 coolness? -Buzz At 7:41 PM -0700 9/29/01, Buzz Kettles wrote: >Ouch! > >Not even QT Music, but a s-o QT! > >double-ouch. > >-Buzz > >At 4:20 PM -0700 9/29/01, Kerry Thompson wrote: >>>I intend to play a piece of midi music (using QT) to end my movie. >>>I have used Irv's script. (many thanks to him!) >>> >>>Yet there's something still not correct. >> >>Yep, I see the problem. There's a tricky little thing with sound in >>Director--there are a couple ways to play sound. >> >>There are sounds, like AIFF and WAV files, that you can play in the >>sound channels. On the score, those sound channels are above the >>frame-number bar, marked with little speaker icons. Only two show >>on the score, but you can use up to 8 with Lingo. (to see the sound >>channels, you might have to click the hide/show effects button--a >>double plus sign in the upper right of the score). >> >>What you have, though, is a QuickTime movie in sprite channel 4. >>That's actually a digital video with an audio track, and you can't >>control it with the sound commands--those are only for sounds in >>the sound channels, not the sprite channels. >> >>So, to fade the volume on a QuickTime movie, use this as your frame >>script on the last frame: >> >>on exitFrame me >> if sprite(4).volume > 0 then >> sprite(4).volume = sprite(4).volume - 1 >> go the frame >> else >> halt >> end if >>end >> >>Let me know when you're in San Francisco--you owe me a cup of coffee :-) >> >>Cordially, >> >>Kerry Thompson >> >> >>[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!]
