Cursor changes are a common technique for multimedia product development.
In director we can customize the following three types: Director built-in cursors, bitmap cursors, and animated cursors.
First, call the director built-in cursor
Use the command cursor (n is the built-in cursor serial number, 260 is the normal arrow type), for example:
Cursor 280
--the cursor will return the hand shape!
Second, define a static bitmap cursor
Using the command cursor, and using a bitmap we can create the desired arbitrary shape of the special cursor, but it is black-and-white, static. In this way, we need two bitmap actors. The actor is also required to be less than 16*16pixes, and the bit depth must be 1-bit.
A cursor why two actors? Because the first actor is the actual shape of the cursor we need, and the second is the mask of the first actor to achieve the special transparency effect of the cursor.
If we have now found the right two actors, "Cor" and "Cor mark" respectively. The former will give us the shape of the cursor, the latter as a mask.
Next, the static bitmap cursor can be customized as long as the following statements are invoked where necessary:
Cursor ([member ' Cor ' ", member ' ' Cor Mark '])
Three, define animation cursor
Using Cursor Xtra We can create a colorful, dynamic, super-dazzle cursor. Here is an example of a production:
1. Material preparation: One or more arbitrary 8-bits bitmap, size is not limited. To guide the material as a Director actor table. For bitmaps larger than 8-bits, select the menu Modifytransfrom bitmap ... , the dialog box is set up as follows:
2. Cursor Actor: Select Menu Insertmedia elimentcursor, bring up the following dialog box:
Description
01: Click the "Add" button to place the selected member in the cursor sequence.
02: Browse The actors we've added to the cursor sequence. The number of frame numbers and cursor sequences of the current actor in the cursor sequence is indicated below.
03: Preview the cursor effect.
04: Click on the left and right button, in the top preview box to browse, select the director listed in accordance with the requirements of the bitmap actor.
05: Select the size of the cursor we need, it is recommended to adjust the material bitmap to the target cursor size.
06: For multiple-frame cursor sequences, the rate of the sequence can be adjusted here. (That is, the frequency of the cursor animation)
When the cursor sequence is set, we get the cursor actors as follows:
3. Script settings:
Cursor (Member (cursor number))