> I have this before going to a different movie:
>
> on mouseUp
> If soundBusy (1) then sound fadeOut 1, 60
> If soundBusy (2) then sound fadeOut 2, 60
>
> go movie "myNewMovie"
> end mouseUp
think about it now...
you check if soundBusy in channel 1. if there is a sound and it is playing
you fade it out. while the fade is happening you check if the other
channel's sound is busy. if it is you start fading it out. then you
immediately go to the next movie. the process of going there stops the sound
REGARDLESS of whether or not the sound has faded completely. and it won't
ever be completely done before it goes there because you are telling it to
jump right now.
> Does the sound fadeOut have to be in a loop until
> it is completely faded BEFORE the "go movie..."?
basically yes. here's is one possible way to accomplish what you want to do:
WARNING UNTESTED LINGO
1 - remove the go movie from the button script
2 - have the button script, the mouseUp, set a flag like gMovieJump. it
could be a global variable. that is easiest. it might look something like
this:
global gMovieJump
on mouseUp me
If soundBusy(1) then sound fadeOut 1, 60
If soundBusy(2) then sound fadeOut 2, 60
gMovieJump = TRUE
end mouseUp
3 - put the go movie in an if-then statement in your exitFrame handler and
check the gMovieJump flag it every time through. perhaps like this:
global gMovieJump
on exitFrame
if gMovieJump then
-- check to see if the sound has faded
if NOT(soundBusy(1)) and NOT(soundBusy(2)) then
-- be sure to reset your global 'cause it is persistent
gMovieJump = FALSE
-- the sound has faded so jump to your movie
go movie "myMovie"
else
-- keep looping while you wait for the sound to fade out
go to the frame
end if
end if
end
remember, your milage will vary.
HTH
Al Hospers
CamberSoft, Inc.
al<at>cambersoft<dot>com
http://www.cambersoft.com
A famous linguist once said:
"There is no language wherein a double
positive can form a negative."
YEAH, RIGHT
[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!]