Explanation of custom mouse script
| 306 views No Comments
Here’s the explanation of the custom mouse script.
<code><span style="color: #0000ff;">onClipEvent</span> (<span style="color: #0000ff;">load</span>) {
<span> </span><span style="color: #0000ff;">Mouse</span>.<span style="color: #0000ff;">hide</span>();
}
<span style="color: #0000ff;">onClipEvent</span> (<span style="color: #0000ff;">mouseMove</span>) {
<span> </span><span style="color: #0000ff;">_x</span> = <span style="color: #0000ff;">_root</span>.<span style="color: #0000ff;">_xmouse</span>;
<span> </span><span style="color: #0000ff;">_Y</span> = <span style="color: #0000ff;">_root</span>.<span style="color: #0000ff;">_ymouse</span>;
<span> </span>updateafterevent();
}</code>
The line Mouse.hide(); makes your ordinary mouse to hide
The line _x = _root._xmouse;
_Y = _root._ymouse; makes your custom to move according the co-ordinates x and y.
The line updateafterevent(); updates the event.