Yes, but you have to do it yourself. That is, in your
getPropertyDescriptionList, you initialize a list to empty, then loop
through all members of that cast. If the type of the member is the
type that you are looking for (e.g., #sound), then add that to your
list. Finally, give the list as the 'range' parameter. Email lingo:
on getPropertyDescriptionList me
lSounds = []
nMembers = the number of members in castlib "Sounds" -- whatever
is the name of your castlib
repeat with i = 1 to nMembers
if member(i, "Sounds").type = #sound then
append(lSounds, member(i, "Sounds").name)
end if
end repeat
pdlist = []
addprop pdlist, #pSoundName, [\
#comment"Sound Member", \
#format: #sring, \
#default:""
#range: plSounds]
return pdlist
end
That should give you a starting point.
Irv
At 9:33 PM +0200 6/6/06, Michael Nadel wrote:
Is there a way when making a behavior with
getPropertyDescriptionList to get the behavior to display the
choices of all the sounds in a given cast instead of displaying all
the sounds in ALL the casts (which is what it does when using the
code below)?
on getPropertyDescriptionList me
set pdlist to []
addprop pdlist, #pSoundName, [#comment"Sound Member", #format
#sound, #default""]
return pdlist
end getPropertyDescriptionList
[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!]
--
Multimedia Wrangler.
[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!]