vim 光标上移脚本_Flash脚本-光标技巧1:十字线光标

vim 光标上移脚本

Want to make a cross hair cursor in Flash? Look no further! Download the sample files here.

是否想在Flash中制作一个十字光标? 别再看了! 在此处下载示例文件

1. First, create a line with a length that’s equal to the length of the stage.

1.首先,创建一条线,其长度等于舞台的长度。

2. Convert the line to a movie clip, and give it an instance name of "yline".

2.将线转换为影片剪辑,并为其指定实例名称“ yline”。

3. Drag an instance of the line movie clip from the library, and give this an instance name "xline".

3.从库中拖动线影片剪辑的实例,并为其指定实例名称“ xline”。

4. Create a small circle, and convert this to a movie clip.

4.创建一个小圆圈,然后将其转换为影片剪辑。

5. Right click the circle movie clip, go to actions, and insert:

5.右键单击圆形影片剪辑,转到操作,然后插入:

onClipEvent (enterFrame)
{
startDrag ("", true);
setProperty ("/yline", _y, _y);
setProperty ("/xline", _x, _x);
}

That’s it, run the movie! You have created a simple cross hair cursor.

就是这样,放映电影! 您已经创建了一个简单的十字光标。

翻译自: https://www.sitepoint.com/trick-1-cross-hair-cursor/

vim 光标上移脚本

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值