Hi Michael
You can write a function to populate a list with member names for the sounds
you want in a specific cast. You can then use that list as the #range inside
your GPDL which will only display the members you've selected.
This is based on something similar I did ages ago to get #field and #text
members. I might not work (the usual mail Lingo warnings apply here) but
it's a start hopefully:
on getPropertyDescriptionList
props = [:]
soundList = BuildSoundList()
props.addProp(#pSoundMember, \
[ \
#comment: "Select sound member", \
#format: #string, \
#range: soundList, \
#default: soundList[1] \
] \
)
return props
end
on BuildSoundList
names = []
repeat with y = 1 to the number of members of castLib(4) -- or whichever
cast you want
theMember = member(y, 4)
memberType = theMember.type
case memberType of
#sound:
names.add(theMember.name)
end case
end repeat
return names
end
on beginSprite me
pSoundMember = member(pSoundMember)
end
Like I said it's old and a bit clunky now but this should do the trick.
Thinking about it you can probably just directly store the actual member
reference in the soundList list and have your GPDL entry use a #format of
#sound, but this code was based on something where I needed to retrieve both
#text AND #field members so I opted for reference the names then convert the
property into a member reference afterwards.
Hope this helps
Ross
___________________________________________________________
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine
http://uk.docs.yahoo.com/nowyoucan.html
[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!]