Bingo! Valentin hit the nail on the head. You must (a) make a _property_list_ (not an Array with named entries), and (b) use symbol(someString) as the # character is not supported within JS scripts (although the symbol data type is via the symbol() function).
Cheers, Tom Higgins | Product Manager | Director & the Shockwave Player Adobe Systems Incorporated http://weblogs.macromedia.com/thiggins/ ... > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Valentin Schmidt > Sent: Monday, December 19, 2005 7:21 AM > To: Lingo programming discussion list > Subject: Re: <lingo-l> getPropertyDescriptionList: js syntax > > hi michael, > > you have to use something like: > > function getPropertyDescriptionList(){ > var pl = propList(); > tmp = propList(); > tmp.setAProp(symbol("comment"), symbol("What file to open?")); > tmp.setAProp(symbol("format"), symbol("string")); > tmp.setAProp(symbol("default"), ""); > pl.setAProp(symbol("pFile"), tmp); > return pl; > } > > you need to take into account in which world you reside. javascript > doesn't know anything about lingo constructs like "#" or "[:]". > > cheers, > valentin [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!]
