1> Create the shape you want the pointer to be.
2> Select the shape and press F8 or "Right Click->Convert To Symbol" and name it as pointer_mc select Movie Clip Option and click ok
3>Right Click on the object and select actions. On the window that opens copy and paste the following action script :-
onClipEvent(load)
{
Mouse.hide(); //Hides the Mouse Pointer
}
onClipEvent(enterFrame)
{
this._x = _root._xmouse; //assigns the x coordinate of this object as that of the mouse
this._y = _root._ymouse; //assigns the y coordinate of this object as that of the mouse
}
onClipEvent(mouseUp)
{
Mouse.hide(); //to hide the mouse pointer after a right click
}
4 > Press Ctrl+Enter to Test the Movie.
5 > Watch the Video for Clarifications
Contact Me At :- subhrojit86@gmail.com
No comments:
Post a Comment