I would create just one vector box and create a behavior script with a
property  description list

e.g.

The behavior text

property myspritenum
property mywithin
property myleave

on mouseWithin
    sprite(myspritenum).memberNum = member(mywithin).member
on mouseLeave
    sprite(myspritenum).memberNum = member(myleave).member
end

on getPropertyDescriptionList me
    description = [:]
    addprop description, #myspritenum, [#comment:"My Sprite Number",
#format:#integer, #default:"0", #range:[#min:"0", #max:"150"]]
    addprop description, #mywithin, [#comment:"Within Member",
#format:#member, #default:sprite(the spriteNum of me).memberNum]
    addprop description, #myleave, [#comment:"Leave member",
#format:#member, #default:sprite(the spriteNum of me).memberNum]
return description
end getPropertyDescriptionList
________________________________________________________________

Set the vector box on the field and then add the behavior, then change the
properties you will be prompted for.

Good Luck

Richard Poole
----- Original Message -----
From: "Philip Boyer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 21, 2001 2:45 PM
Subject: <lingo-l> Displaying Field Definitions


> I am using Director 8 to create a software demo CD. This demo will have
> about 60 different screen shots with about 10 fields per screen. When the
> user positions the mouse pointer over a field, I want that field's
> definition to appear in a designated area to the left of the screen shot
> (more than just a tool tip type of thing). In my extremely limited
knowledge
> of Lingo, here's how I currently plan on doing it. (There's got to be a
> better way.)
>
> When the mouse is not over a field, generic text (cast member 36 in the
> script below) appears where the definition will go.
>
> Using the Vector Shape tool, I'm creating a box to go around each field
> (yes, 600 of them). Each box will have have its own behavior, listed
below,
> where the cast member number will be different, depending on the field.
>
> on mouseWithin
>   sprite(6).memberNum = 39
> on mouseLeave
>   sprite(6).memberNum = 36
> end
>
> I think this method would be okay for a few fields, but not 600. There has
> to be an easier way. Can someone please point me to it?
>
> Thank you,
>
> Philip Boyer
> [EMAIL PROTECTED]
>
>
>
> [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