Search tutorials
1
Create a movie clip to use as a custom cursor.
2
Select the movie clip instance on the Stage.
3
Choose F9 to open the Actions panel if it is not already visible.
4
To hide the standard cursor, in the Actions toolbox, click the Objects category, click the Movie category, click Mouse, click Methods, and double-click hide.
The code should look like this:
onClipEvent(load){
Mouse.hide();
}
5
To apply the new cursor, in the Actions toolbox, click the Actions category, then click Movie Clip Control and double-click startDrag.
6
To limit the mouse movement, select the Expression box and type this for the target. Then select Lock Mouse to Center and Constrain to Rectangle, and enter values. For example, you might enter the following:
L: 0
T: 46
R: 400
B: 280
Your code should look like this:
onClipEvent (load) {
Mouse.hide();
startDrag(this, true, 0, 46, 400, 280);
}
7
Choose Control > Enter to test your custom cursor.
| » Level Basic |
|
Added: 2005-08-17 Rating: 6 Votes: 11 |
| » Author |
| I'm called hugo |
| » Download |
| Download the files used in this tutorial. |
| Download (0 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!