You can also try this frame script.

property pSprite

on enterFrame me
  pSprite = rollOver(0)
  if pSprite <> 0 then
    me.checkForBehaviors()
  end if
end

on checkForBehaviors me
  if sprite(pSprite).scriptInstanceList.count > 0 then
    put "Sprite" && pSprite && "contains a script."
  end if
end

HTH,
John Erazo

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
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

[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