At 09:16 AM 11/17/00, you wrote:
>Hello everybody,
>
>I have an easy question to the experts here and would very much appreciate
>their help:
>
>I am in one part of a movie. Music is playing. There is a button that leads
>to somewhere else.
>When this button is pressed, I want the music to fade out and then the jump
>to another part of the movie to be executed.
>
>
Hi Michel,
I came up with a following script for the button. This script just waits
for the amount of time the fadeout occur then jumps to new location.
--- button script-----------------------------------------------------
property pFadeStart
property pFadeDuration
property pFadeEnd
on beginSprite me
pFadeDuration = 5000
pFadeStart = VOID
end beginSprite
on mouseUp me
pFadeStart = the milliseconds
pFadeEnd = pFadeStart + pFadeDuration
sound(2).fadeOut(pFadeDuration)
end mouseUp
on exitFrame me
if pFadeStart then
if the milliseconds < pFadeEnd then
-- go the frame
else
pFadeStart = VOID
go next
end if
end if
end exitFrame
------------------------------------------------------------------------------
Let me know if this helped you,
Ramesh CT
http://www.geocities.com/ramesh_ct/
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
[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!]