You are going the complicated route.  Just use the mouseOverButton property
of any Flash sprite.  Example:
if sprite(2).mouseOverButton=true then
  cursor 280
else
  cursor -1
end if
This way if the cursor is over any button in the specified Flash sprite, it
will be a hand, otherwise it will be the arrow.
Stick the if statement inside of the on mousewithin handler.

Charlie Fiskeaux II
The Creative Group
www.cre8tivegroup.com
859/858-9054 x29
cell: 859/312-3883


----- Original Message -----
From: "eel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 24, 2001 9:28 AM
Subject: <lingo-l> finger cursor over flash buttons?


hi list, this is really frustrating me!

i have a flash menu within my director project & want
the cursor to change to a finger when the mouse is
over the flash buttons in the menu.

i am using the script below to achieve this, it is
fine the first time you use the menu. however when you
come back into the menu from another section of the
presentation the finger cursor doesn't work anymore.
aaaaargh!
---------------------------------
property spriteNum, pWhichSprite

on getPropertyDescriptionList me
  p_list = [:]
  p_list.addProp(#pWhichSprite, [#format : #sprite,
#comment : "which flash sprite:", #default :
me.spriteNum +1])
  return p_list
end

on exitFrame
  if sprite(pWhichSprite).hitTest(the mouseLoc) =
#button then
    cursor 280
  else
    cursor 0
  end if
  go the frame
end
---------------------------------
any help much apprieciated.

____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

[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