Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hello, Does anybody know if ther

Status
Not open for further replies.

alice20

Programmer
Jun 27, 2001
21
0
0
GB
Hello,

Does anybody know if there is a script that will only let you play the sound once when clicvked on something, at the moment it's

on mouseUp me
puppetsound(1), "sound48"
end

IO think I need sopmehting that will do

if already played
then
don't play

thanks
 
The easy way

global Sound48Status

on mouseup
if Sound48Status <> True then
puppersound(1),&quot;sound48&quot;
sound48Status = true
end if
end

If you have lots of sounds I would use a list to keep track of the ones that have played rather than lots and lots of globals.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top