>I'm trying to construct a list (array) of property lists. Is this the
>correct syntax to go about it?
>
> stored = list()
> comparison = list()
> global stored
> global comparison
> stored[0] = [#xx:-42.95, #yy:1.25]
> comparison[0] = [#xx:39.7, #yy:195.5]
> stored[1] = [#xx:1043.3, #yy:369.1]
> comparison[1] = [#xx:5.2, #yy:173.6]
> stored[2] = [#xx:1043.3, #yy:369.1]
> comparison[2] = [#xx:-20.9, #yy:140.15]
> stored[3] = [#xx:1040.3, #yy:369.1]
> comparison[3] = [#xx:-35.95, #yy:99.2]
> stored[4] = [#xx:1040.3, #yy:369.1]
> comparison[4] = [#xx:-39.15, #yy:54.75]
The first two lines would normally be like stored = [], and
comparison = [], and they would both need to go after the point where
they are declared as globals.
The rest of your lines are ok, except that in Director lists are
counted from 1 to n, not from 0 to n-1 like in Flash. You can also
set all of them in one go, which means that all of the above could be
reduced to:
global stored,comparison
stored = [[#xx:-42.95, #yy:1.25],[#xx:1043.3,
#yy:369.1],[#xx:1043.3, #yy:369.1],[#xx:1040.3,
#yy:369.1],[#xx:1040.3, #yy:369.1]]
comparison = [[#xx:39.7, #yy:195.5],[#xx:5.2,
#yy:173.6],[#xx:-20.9, #yy:140.15],[#xx:-35.95,
#yy:99.2],[#xx:-39.15, #yy:54.75]]
Watch out for e-mail line breaks in the above. There are only three
lines of script, the global part, and the stored = and comparison =
lines. There's no need to say stored = [] first, stored will be
immediately created with the full list inside it.
--
[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!]