Setting the cursor
This TechNote shows how to use Director to set the system cursor using Lingo. To set a cursor, use the Lingo command "cursor" followed by a number. The following chart displays the available cursors for each platform.
example:
on mouseEnter me cursor 280 end
Cursor Chart:
| Number | Windows | Macintosh | Description |
| -1 | |
|
Standard System Arrow |
| 0 | no cursor set/remove cursor set | ||
| 1 | |
same | I-Beam |
| 2 | |
same | Crosshair |
| 3 | |
same | Crossbar |
| 4 | |
|
Wait cursor (hourglass or watch) |
| 200 | Invisible cursor | ||
| 254 | |
same | Help Crosshair |
| 256 | |
same | Pencil |
| 257 | |
same | Eraser (white square) |
| 258 | |
same | Crosshair with center circle |
| 259 | |
same | Paint Bucket |
| 260 | |
same | Open Hand (grabber) |
| 261-269 | |
see below | Crosshair |
| 261-270* | n/a | |
Crosshair(16x16 pixels) |
| 271 | |
same | Select |
| 272 | |
same | Lasso |
| 280 | |
same | Finger |
| 281 | |
same | Dropper |
| 282* | n/a | |
Chevron |
| 283* | n/a | |
Chevron with flare (grab attention) |
| 284 | |
same | Vertical Size |
| 285 | |
same | Horizontal Size |
| 286 | |
same | Diagonal Size |
| 290 | |
same | Closed Hand (grabber) |
| 291 | |
same | No Drop Hand |
| 292 | |
same | Copy Closed Hand |
| 293 | |
|
Inverse System Arrow |
| 294 | |
same | Rotate (counterclockwise) |
| 295 | |
same | Parallelogram |
| 296 | |
|
Parallelogram or Horizontal 2-point arrow |
| 297 | |
same | Vertical 2-point arrow |
| 298 | |
same | Forward-diagonal 2-point arrow |
| 299 | |
same | Backward-diagonal 2-point arrow |
| 300 | |
same | Wide chevron (seagull) |
| 301 | |
same | Air Brush |
| 302 | |
same | Zoom In |
| 303 | |
same | Zoom Out |
| 304 | |
same | Magnifying Glass |
| 305* | n/a | |
Crosshair with small clear square |
| 306* | n/a | |
Crosshair with small karat |
| 307* | n/a | |
Crosshair with small filled square |
| 308* | n/a | |
Zoom Pointer |
| 309* | n/a | |
Crosshair with 4-point arrows |
| 310* | n/a | |
Rotate (clockwise) |
n/a = Not Available on that platform.
Notes:
There are times when the system can override the cursor set by Director. If this happens, the cursor can usually be reset to the desired cursor by attaching a cursor change behavior to the sprite on that frame using a "beginSprite" handler.
example:
on beginSprite me cursor 271 end
Cursor 200 may occasionally fail to hide the cursor. Also, the mouse must be moved in order for the cursor to hide. (see TechNote 437 below for more information on these issues).
Additional information
For more information about issues with cursors please refer to the following TechNotes:
The cursor changes to the I-beam in frames after a QTVR(TechNote 14099)
Cursor reappears after using cursor 200(TechNote 437)
This content requires Flash
To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.
Download the free Flash Player now!
