Hi Jonathan

The on getPropertyDescriptionList only executes once, when you drop the
behaviour onto a sprite, you can invoke it the dialogue after you have
dropped it on the sprite by locating the behaviour attached to the sprite
and choosing parameters from the context menu on the behaviour inspector.
The getPropertyDescriptionList basically has no function in runtime, you
can't modify the default values nor for that matter access the GPDL during
runtime (at least not normally). The GPDL is basically a description of what
widgets to display, their values and ranges etc.. and is used to create a
MUI type dialogue box. So basically to answer extremely bluntly... no
addProp with respect to GPDL has no function with respect to changing gears
at runtime.

That doesn't discount the use of property and linear lists for storing and
retrieving info at runtime, actually that is pretty much their purpose.
Property lists are great because you can use meaningful names to represent a
value and thus making value retrieval somewhat easier (if you know the
property name). So you can create custom settings, store useful info on
current running gear, velocity, player name etc... all kinds of info about a
car game into a property list. You could use another list to access the
acceleration factor for a specific gear according to the property name you
gave that gear... it gets a bit messy to describe.  I would strongly advice
that you skip on over to Macromedia's site and locate that nice document on
D7 list syntax (a great reference if you print it out and nail it to the
bottom of your monitor ;-). I suggest that you do spend a bit of time over
at
 http://www.director-online.com and do some searches on lists and also
lookup the stuff on Data Members (Irv Kalb wrote several exceptionally fine
articles that will help you understand the application of lists etc..). Once
you have a basic grasp of lists and syntax, sit down and analyze your
project, you'll probably find a ton of places that you can use lists, etc...
Do some little experiments in the message window to get a feel for it. If
your still stuck and you have a clear idea of what you'd like to do then ask
away there are many of us out here more than willing to answer questions,
its just sometimes nicer for us to know that the person has made a basic
attempt to understand a concept first (makes it far easier when explaining
stuff).

Sincerely

Mark

--------------------------------------------
Mark R. Jonkman
Mark R. Jonkman Consulting
ADDRESS: 20 Windermere Crt., Guelph, ON, CANADA N1E 3L4
PHONE: 519-837-8509
EMAIL: [EMAIL PROTECTED]
--------------------------------------------

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Merlin
> Sent: Monday, February 05, 2001 8:33 AM
> To: [EMAIL PROTECTED]
> Subject: RE: <lingo-l> Property description Lists
>
>
> To use the "addProp" function would it replace the value selected when
> initially selecting a value through the behavior.
> eer did that make sence?
>
> For example, if I created a property list for a car behavior
> 'speed'. I set
> the default to 1.5 and had a range between 1 and 2. If the car were to
> change gear would the "addProp" function allow me cycle through
> my range of
> numbers or would it add a number to that range?
>
> If you think i have confused myself with this please say!
> Thanks
> Jonathan
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Lists
> Sent: 04 February 2001 21:01
> To: [EMAIL PROTECTED]
> Subject: Re: <lingo-l> Property description Lists
>
>
>
>
> On 2/5/01 4:51 AM, Merlin ([EMAIL PROTECTED]) sent:
> >One final question though, what does this actually do " vPDList = [:] " ?
>
> This simply creates an empty property list to allow you to use the
> "addProp" function to add to it later.
>
> Rich
>
> [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!]
>
>
> [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!]
>
>


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

Reply via email to