Brennan,
> It also gets executed twice (first time 'silently') when you
> drop it on
> a sprite. This only matters if you put code in there which
> you expect to
> be called once, such as a call to fileIO's displayOpen().
That explains a lot...
I tried using fileIo when I was just getting start
"Mark R. Jonkman" <[EMAIL PROTECTED]> wrote
> 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
> 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 m
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
>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 m
: [EMAIL PROTECTED]
Subject: RE: 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:
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 propert
gt; Jonathan
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Lists
> Sent: 04 February 2001 21:01
> To: [EMAIL PROTECTED]
> Subject: Re: Property description Lists
>
> On 2/5/01 4:51 AM, Merlin ([EMAIL PROTECTED]) sent:
> >
This creates a new property list, which is empty.
Florian
Merlin schrieb:
>
> 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 = [:] " ?
>
> Thanks
> Jonathan
>
> [To remove yourself from this list,
>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
>To use the "addProp" function would it replace the value selected when
>initially selecting a value through the behavior.
By the way, I would strongly encourage you to make use of the message
window to explore Lingo. You'll normally get answers more quickly than
waiting for an answer from the
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: Property description Lists
>
>
> To use the "addProp" function would it replace the
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 li
ECTED]]On
Behalf Of Lists
Sent: 04 February 2001 21:01
To: [EMAIL PROTECTED]
Subject: Re: 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 pro
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 di
>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,
K
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 whic
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
retur
>For exmple if
>10 sprites each have a differnt value of either 10, 20, 30, 40.
Here's another way of doing it if you want to limit the values to multiples
of 10:
on getPropertyDescriptionList
description = [:]
addProp description,#val, [#default:10, #format:#integer,
#comme
Hi Jonathan
you can try this
property pIntNumber
on beginSprite me
-- whatever you want
put pIntNumber
end beginSprite
on getPropertyDescriptionList me
vPDList = [:]
addProp(vPDList, #pIntNumber, [#comment:"Select a number",¬
#format:#Integer, #Default: 10, #range:[10,20,30,40]])
r
>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
21 matches
Mail list logo