MouseWithin Message


on mouseWithin
end mouseWithin Sent to all objects, except the palette, sound, path, and timer


The mouseWithin message is sent repeatedly to an object whenever the mouse is within the object's on-screen dimensions and the mouse button is not pressed. This message is always preceded by a mouseEnter message. When mouseWithin messages are issued, they always alternate with idle messages. This happens so quickly that the messages appear to be sent simultaneously. MouseWithin is only sent to a bitmap when the mouse pointer rests on a nonwhite painted area of the object.


Create a shape with the following script: on mouseWithin beep end mouseWithin
This text has been mechanically extracted from the Oracle Media Objects MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.