>On exitFrame me
> puppetSound "sound.mP3"
>End
>
>What I want - is to have the sound play and then delete (or become inactive)
>itself from the movie - so, that if the end user returned to the frame in
>question, he/she wouldn't hear any sound the second time - meaning that the
>end user would have to exit the program and start over in order to hear the
>sound again.
>
>Hopefully that makes sense. Please forgive if it's too easy - as I'm fairly
>new to this and couldn't find the answer in the help file.
There are such a lot of ways of doing this, but for now, here's a
fairly easy one:
on exitframe
global playedalready
if not playedalready then
puppetsound 1,"sound.mp3"
playedalready = true
end if
end
In a movie script you would have this:
on startmovie
global playedallready
playedalready = false
end
--
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/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!]