|
|
 |
| |
|
|
Customized Cursor
Author:
Arjun
Level :
Beginner
Environment :
Adobe Flash MX
|
|
|
|
|
| |
This flash tutorial teaches you how to create customized flash cursor in adobe flash.
Steps for creating your own customized Flash cursor
1) Choose import which is located in the file menu and import an image.
From the library
put the image into a layer in the scene. Now select the image and go to the modify menu and click on convert to symbol. A pop up box will appear as shown below:
2) Give a name and select movie clip under that. After that, press ok.
3) Select the movie clip and press F9 or go to window menu > Development Panel and select Actions as shown below.
5 )Now you have got your actionscript window. Feed a small script into the window as shown below.
onClipEvent(load) {
Mouse.hide();
}
onClipEvent(enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}

5)Make sure that the things marked in red in the above image have come, they show that the actionscript is loaded to that image.
6) The things marked in green are events like when it should happen, and the things in blue determine what will happen. Mouse.hide(); makes the actual mouse hide from the scene. this._x = _root._xmouse; and this._y = _root._ymouse; makes the y and x coordinates of the object always equal to that of the x and y of your mouse so that it always moves with your mouse
7)Now if you press CTRL + ENTER you will get the output given below.
Here's your own customized Flash cursor!
|
|
| |
|
|
|
 |
|