vim 光标上移脚本
Download the sample files here.
1. Create a movieclip from any object. I used a circle.
1.从任何对象创建动画片段。 我用了一个圆圈。
![1065_tool1](https://i-blog.csdnimg.cn/blog_migrate/ddb82454d2f8c957a31de93d97151619.gif)
2. Give the movieclip instance a name. Here I’ve used "circle1".
2.给动画片段实例命名。 在这里,我使用了“ circle1”。
3. Create 3 keyframes as shown below:
3.创建三个关键帧,如下所示:
![1065_tool2](https://i-blog.csdnimg.cn/blog_migrate/ff8bd7f3d0f69bc8043e6dd4334f9b66.gif)
4. In the first key frame, use the action:
4.在第一个关键帧中,使用以下操作:
startDrag ("str1", true);
5. In the second key frame apply the action:
5.在第二个关键帧中,执行以下操作:
count = count + 1;
if (count > 10)
{ count = 1 }
duplicateMovieClip ( "str1","str"&count, count );
6. In the third key frame, insert the action:
6.在第三个关键帧中,插入操作:
gotoAndPlay (2);
7. Bravo! You’ve made your own cool cursor tracking effect!
7.太棒了! 您已经做出了自己很棒的光标跟踪效果!
vim 光标上移脚本