OK everyone, here's a basic question.

What's the best (simplest and most elegant) way of doing a graphical 
button roll over in Metacard?

Button may be a combination of button and image objects, as long as 
they appear to the user as a single object/button.

Button states required:
1  Nothing/MouseUp - show default/up state image
2  Mousewithin - show rollover state image
3  MouseDown - show down state image

Notes:
- If the user clicks down on the "button" (state 2) and drags their 
mouse outside of the object the state must switch to up (1), if while 
still holding the mouse down they drag the mouse back into the object 
the state must switch back to down (3).  The only way I can see to do 
this is to continually check whether the mouse is within the rect of 
the object.

The best way I have found to achieve this sort of roll-over is to 
create a MC button object and then create the various state images 
(on top of each other) in layers below it.  The button captures the 
mouse events and shows/hides the images.

Related question: does MC have a syntax to put an image into another 
image (along lines of OMO's "put cd image 1 into cd  image id 5")


-- 

************************************************************
Rodney Tamblyn
HEDC, 33 Union Street, University of Otago, P.O. Box 56, Dunedin, New Zealand
email     [EMAIL PROTECTED]
Phone   64 3 479 7580   Fax  479 5194  ICQ  4145098  PGP available
************************************************************

This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm

Reply via email to