Date: Thu, 2 Aug 2001 21:03:05 +0200
From: "Natalia Tjelum" <[EMAIL PROTECTED]>
Subject: <lingo-l> mouse over which sprite?

>Ok, this is plain silly, but I can't remember the function that returns the
>spritenumber of the sprite the mouse is currently over...
>I remember the mousemember and the rollover() functions, but those returns
>any sprite, and I only want it to return the spritenumber, if the sprite
>contains a script, I have done this before, but I just can't remember!
>Please help my poor memory....

>- -Natalia

Is there any chance that you mean 'the clickon' Natalia?
This does only return the spritenumber if there is a script
on the sprite.It works only on a mouseclick although.

   Kurt * Belgium
btw: Here's a script that returns the spritenumber only when
there is also an other script on the same sprite:

on mouseenter me
  if sprite(me.spriteNum).scriptInstanceList.count > 1 then
    return sprite(me.spriteNum).spritenum
  end if
end








[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