yes, do it on an exitframe.
on exitFrame me
if sound(whichChannel).volume > 50 then
sound(whichChannel).volume = sound(whichChannel).volume - 1
updateStage
end if
end
is one simple way. it can be expanded into a frame script that can have
a property for the current volume, so you don't have to check it every
time, and a property for the lower limit, so that can be varied (if
that's useful), and even a property boolean flag for when to start the fade...
--bh
repeat with vol = 150 down to 50
sound(whichChannel).volume = vol
updateStage
end repeat
Kamil Dabkowski wrote:
>
> Hi,
>
> I'd like to slowly fade sound down from volume = 150 to volume = 50, not
> to volume = 0.
> How can I do that? Some kind of a loop?
>
> Thanks
>
> Kamil
>
> --
> Kamil Dabkowski
> Geometrek
> http://stop.at/kamil
>
> [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!]
--
R. Bhakti Klein
Educational Software R & D
http://www.DLWorkshop.net
��
Baritone, unaffiliated but open to suggestions...
���
"On Earth, you can only do little things;
but you can do them with a lot of Love."
-- Mother Theresa
[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!]