Attach this behavior to your hotspot.
on mouseUp me
playRandomSound
end
on playRandomSound
-- First create a list of your sound members.
set myList = ["ring", "boom","clang","beep","boink"]
-- Count the number of items in your list
set myCount = myList.count
-- Then pick an item randomly
set myPick = getAt(myList, random(myCount))
-- Play the sound member
puppetSound 1, myPick
end
Hope this helps.
cheers,
John Erazo
----- Original Message -----
From: "Joao Rui" <[EMAIL PROTECTED]>
> Can anyone tell me how I can create a hotspot that i
> could click and play a sound from a certain group
> randomly?
[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!]