vim 光标上移脚本
Many Flash developers ask me how they can change the appearance of the user’s cursor as it moves across their Flash site. Here’s the answer!
许多Flash开发人员问我,当光标在其Flash网站上移动时,如何更改用户光标的外观。 这就是答案!
Before you begin, download the sample files here.
开始之前,请在此处下载示例文件 。
1. Let’s start by creating a cursor. In the sample file I’ve created a cross hair.
1.首先创建一个游标。 在示例文件中,我创建了一个十字准线。
2. Convert the cursor object to a movie clip.
2.将光标对象转换为影片剪辑。
3. Right click the cursor movie clip, and insert this action:
3.右键单击光标影片剪辑,然后插入以下操作:
onClipEvent (load) { startDrag ("", true); }This action moves the cursor movie clip along with the cursor.
此操作将光标影片剪辑与光标一起移动。
4.In the default layer key frame, insert the action:
4.在默认的图层关键帧中,插入动作:
mouse.hide();
mouse.hide();
This action hides the mouse.
此操作将隐藏鼠标。
That’s it! Test the movie.
而已! 测试电影。
翻译自: https://www.sitepoint.com/change-cursor-appearance/
vim 光标上移脚本