Hi Karina and all,
Hi Sebastien :)
Another one which is geat is #color. At last you'll find the
utility of the D8 property inspector, where this property
prompt a color selector. (gpdl dialog still ask you for a string).
I loves this feature!
I must be getting senile... I thought I
Hi Karina and all,
At 15:43 05/02/2001, you wrote:
2. The format can contain any data type that director can recognise,(...)
gpdl[#pString] = [#comment:"This is a string", #format:#string, #Default:
"Hello World")
Another one which is geat is #color. At last you'll find the utility of the D8
Just a couple of things to add to everything that's already been said on the
subject:
1. There's a shorter dot syntax alternative to the addProp function.
By using the syntax list[#prop] = "something" you can actually add new
properties to a property list, as well as setting new values to
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.
Kinda. Like this?
x=[:]
put x
-- [:]
x.addprop(1,1)
put x
-- [1: 1]
x.addprop(2,2)
put x
-- [1: 1, 2: 2]
Are you base down under
in Aussie land, your emails always come in about this time.
Nope--California. I just work too much :-)
Cordially,
Kerry Thompson
Learning Network
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post
Hi I am trying to figure out how to create behaviors with Property
description Lists. Possibly could somebody help me create one. For exmple if
10 sprites each have a differnt value of either 10, 20, 30, 40. This behvoir
would then be able to be drop an individual sprite to select one of the 4
Here's a look at a behavior that would set the default blend of a sprite to
10,20,30, or 40.
Behavior Start-
-- using Director 8 syntax --
property pBlend, pSprite
on beginSprite me
pSprite = sprite (me.spritenum)
pSprite.blend = pBlend
end
on getPropertyDescriptionList me
Hi Jonathan
Generally when you create a property list that you want to begin adding
properties and items to, you create an empty property list on the outset
then add the list entries (in this case properties and value pairs) to it.
The line
vPDList = [:]
generates an empty property list to
One final question though, what does this actually do " vPDList = [:] " ?
That initializes the variable to an empty property list. Without that, you
couldn't add items to it.
If it were a linear list, you would use vPDList=[]. The colon tells
Director that it's a property list.
Cordially,
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
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
on 2/5/01 4:51 AM, Merlin at [EMAIL PROTECTED] wrote:
Thank you all, those were great examples.
I think I've got the idea now.
One final question though, what does this actually do " vPDList = [:] " ?
This creates an empty property list. Usually used to initialise or clear a
property list.
: [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 th
To use the "addProp" function would it replace the value selected when
initially selecting a value through the behavior.
Kinda. Like this?
x=[:]
put x
-- [:]
x.addprop(1,1)
put x
-- [1: 1]
x.addprop(2,2)
put x
-- [1: 1, 2: 2]
x.addprop(1,3)
put x
-- [1: 1, 2: 2, 1: 3]
As you can see, it adds
14 matches
Mail list logo