Click to go to the home page.

This Document
"Cursor Control" Behavior
Parameter Dialog Box

See Also
Writing Mouse Handlers

 

Site Nav

css drop down menu by Css3Menu.com

Cursor Control

"Cursor Control" behavior

Click to go to top of this section. What it does

When you drop this behavior on a sprite, you can configure what image the cursor displays for various mouse events. This behavior lets you use any of the system cursors built into Director.

When you drop this behavior on a sprite, you are prompted to configure the cursor changes concerning mouseEnter, mouseDown, mouseUp, mouseLeave, and mouseUpOutside, or you can select presets for all of the mouse values ("Clickable" or "Drag and Drop"), which configure the above events according to the nature of the preset.

This behavior is widely used in the demo, like in scenes 4 and 8 to indicate both "Clickable and "Drag and Drop" functionality. To find it used in the demo DIR file, display the Score, then open WFS 4 cast in the Cast window, right-click on the "Cursor Control" behavior, and select "Find in Score".

It's use is covered in multimedia production in tutorial 1 and tutorial 2.

Click to go to top of this section. What to attach it to

Attach this behavior to visible sprites that you want to change the cursor on mouse events.

It works particularly well with Window Elements; it is totally consistent with window Elements. You can use it on Menu Elements also, but there are minor inconsistencies between what the cursor indicates and what happens when you click a control. Check out scene 7 of the feature tour and see if it's up to your standards in cursor control. Also, see Writing Mouse Handlers for more information and an explanation of the reasons for the slight inconsistencies.

Click to go to top of document. Parameter Dialog Box

Drag the "Cursor Control" behavior onto a sprite. You will be prompted to configure the cursor.

See the Macromedia site for graphics of the available system cursors.

If you want the cursor to behave like a clickable sprite, either simply click "OK" (the default cursor configuration is a clickable sprite) or select "Clickable" from the box labelled "Choose a typical setting here or configure the boxes below" and then click "OK".

If you have made the sprite you drop the behavior on drag and droppable, then select "Drag and Drop" from the box labelled "Choose a typical setting here or configure the boxes below". Then click "OK". Note that the "Cursor Control" behavior does not make a sprite drag and droppable. It merely configures the cursor.

If you drop the behavior on a sprite that is a drawing tablet, then configure as below:

 

Click to go to the home pageCursor Control