I think you'll need to do a bunch of separate color properties, and merge them together into a list on new....

on getPropertyDescriptionList
    propertyList = [:]
    c = "Select the items for the list "
    f = #string
    d = ""
    r = ["", "red", "yellow", "blue", "orange", "green", "purple"]
    propertyList.addProp(#pColor1, [#comment: c, #format: f, #default:
d, #range: r])
    propertyList.addProp(#pColor2, [#comment: c, #format: f, #default:
d, #range: r])
    propertyList.addProp(#pColor3, [#comment: c, #format: f, #default:
d, #range: r])
    propertyList.addProp(#pColor4, [#comment: c, #format: f, #default:
d, #range: r])
    propertyList.addProp(#pColor5, [#comment: c, #format: f, #default:
d, #range: r])
    return propertyList
end

on new me
 pColorList = [pColor1, pColor2, pColor3, pColor4, pColor5]
repeat with i = pColorList.count() down to 1
if pColorList[i] = EMPTY then
pColorList.delete(i)
end if
end repeat
end

At 09:31 AM 3/17/2005, you wrote:
I am working on a solution to create a mulitple selection within a GPDL?
For example:

-------------------------------------------------------
-------------------------------------------------------
property plSomeList

-------------------------------------------------------
on getPropertyDescriptionList
    propertyList = [:]
    c = "Select the items for the list "
    f = #string
    d = ""
    r = ["red", "yellow", "blue", "orange", "green", "purple"]
    propertyList.addProp (#plSomeList, [#comment: c, #format: f, #default:
d, #range: r])
    return propertyList
end getPropertyDescriptionList

-------------------------------------------------------
on beginSprite me
    plSomeList = value(plsSomeList)
end beginSprite

-------------------------------------------------------
-------------------------------------------------------

What I like for plSomeList to equal something like ["red", "yellow"] or
["blue", "orange", "purple"] or whatever combination the user chooses.

I realize the above code does not exactly work.  Also, the colors list in
the above is only an example.  The actually list might actually have 50 or
more items to choose from.

Any thoughts?

Anthony
www.lifelinestudios.com


[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!]

----------- Roy Crisman Macromedia Director Programmer, Lingo Guru, Multimedia Producer 277 N. Goodman St. Rochester, NY 14607-1162 (585)473-3492 home (585)615-2873 cell http://www.brokenoffcarantenna.com/ roymeo(AT)brokenoffcarantenna.com

[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!]

Reply via email to