The clickOn function could be the answer but you could you
not use a case statement?

Something on these lines?  ---suggestion only

on mouseEnter me
case (the rollover) of      -- you must know in which channels you sprites are
1 : sprite (the currentspriteNum).keyboardFocusSprite = 1 -- 1 set the
keyboardFocus to true
2 : sprite (the currentspriteNum).keyboardFocusSprite = 1
3 : sprite (the currentspriteNum).keyboardFocusSprite = 1
otherwise sprite (the currentspriteNum).keyboardFocusSprite = 0
end case
end

Is this any help?
JohnT



Alan Robinson wrote:

> > off the top of my pitifully hairless head,
> >
> > sprite() references something in a channel, so putting the member info in
> > the () doesn't mean anything. you need to
> >
> >  set the keyboardFocusSprite =
> > sprite(numberOfTheChannelContainingYourField)
>
> This is fine until a sprite is moved to a different channel, maybe not too
> much of a problem for one field but suppose there are several fields.
> Is it not possible to check the location of the cursor? If not then it would
> be best to put all the editable fields in adjacent channels and increment
> the number from the first known one. Does that make sense??
>
> > > I am trying to set the keyboardFocusSprite by reference to a
> > > field name
> > > using the following code:
> > >     set the keyboardFocusSprite =  sprite(member("teamname", "team
> > > data").spritenum
> > > The problem is it returns either the number of an empty
> > > sprite channel or
> > > the cast membernum. Can you tell me where I am going wrong.
> >
>
> [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