What's Under the Cursor?
Date: Sat, 4 Mar 1995 19:17:49 -0800
From: Bosaiya <feihong@ESKIMO.COM>
Subject: Re: ??Lingo -- Which sprite?
Some commands that help to determine what your cursor is over:
- rollOver --returns the value of the sprite you are over.
if rollOver(6) then doSomething
- mouseCast --returns the value of the cast number you are over
(or -1)
if the mouseCast = 111 then doSomething
- number of cast --returns the number of a cast member (not sprite).
if the mouseCast = the number of cast "myCast" then doSomething
- name of cast --returns the name of a cast member (not sprite).
if the name of cast 111 = "myCast" then doSomething
Knowledge of the subtle differences are important for good code writing.
The manuals give pretty good ideas on how to use them. It is important
to remember that even though all the commands seem to do very similar
things, they are in fact quite different.
Regards,
Bosaiya
Knock Out Productions