HI,

I need to add to a behavior that already has a
rollover. I also need to
display a graphic as a tooltip, when the mouse
rollover.

I can do it by
on mouseEnter
set the visible of sprite x to True
end

But my problem is that i am using property lists and
one behaviour is
controlling all the rollovers. Any help would be
appreciated.

This is the script i am using.


property standardImage  -- the Button Image
property alternateImage -- the Rollover Image for the
button
property clickedImage   -- the Clicked Image for the
button rollover and
click.
property pTargetFrame



on getPropertyDescriptionList me
  skipList = [:]
  addProp skipList, #alternateImage, [#comment:
"Rollover Buton Cast
Member:", #format:   #graphic, #default:    #bitmap]
  addProp skipList, #clickedImage, [#comment: "Clicked
Button Cast
Member:", #format: #graphic, #default: #bitmap]
  addProp skipList, #ptargetFrame, [#comment:"Target
Frame Label:",
#format:#marker, #default: VOID]
  return skipList
end


on beginSprite me
  set the standardImage of me = the member of sprite
the spriteNum of me

end

on mouseEnter me
  cursor(280)
  set the member of sprite the spritenum of me = the
alternateImage of
me

end

on mouseLeave me
  cursor(0)
  set the member of sprite the spritenum of me = the
standardImage of me


end

on mouseUp me
  set the member of sprite the spritenum of me = the
standardImage of me

  action(me)
end


on mouseDown me
  set the member of sprite the spritenum of me = the
clickedImage of me
end

on action me
  cursor(0)
  go to frame ptargetFrame
end

ravi

=====
Ravi Garimella
Multimedia Developer
Performtech

__________________________________________________
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

[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