flash 调用 脚本_Flash脚本-光芒

flash 调用 脚本

Download the sample files here.

在此处下载示例文件

1. Open a new movie with width=400 and height=100.

1.打开宽度为400且高度为100的新电影。

2. Create a text object with name of your choice. I used "ray of light".

2.用您选择的名称创建一个文本对象。 我使用了“光线”。

3. Convert the text object to a movie clip, and give it the instance name "ray".

3.将文本对象转换为影片剪辑,并为其指定实例名称“ ray”。

1071_tool1

4. Go to the timeline of the movie "ray".

4.转到电影“ ray”的时间轴。

5. Create a new layer above the existing layer.

5.在现有层之上创建一个新层。

1071_tool2

6. In the new layer, create a rectangle as shown below. Convert it to a graphic object.

6.在新层中,如下所示创建一个矩形。 将其转换为图形对象。

1071_tool3

7. Create key frame at frame number 20. Then move the rectange to the end of the text at the 20th frame.

7.在第20帧处创建关键帧。然后将矩形移动到第20帧的文本结尾。

8. Give the graphic a motion tween.

8.给图形进行补间动画。

9. Mask the layer.

9.遮盖该层。

10. Go back to the main time line.

10.返回主时间轴。

11. Create a new layer, and drag an instance of the text movieclip from the library to the new layer.

11.创建一个新层,然后将文本动画片段的一个实例从库中拖到新层。

12. In the new layer, insert the action:

12.在新层中,插入动作:

i = "1";
alpha = "0.8";  
maxlight = "20";  
while (Number(i)<=Number(maxlight))  
{  
duplicateMovieClip ("ray0", "ray" add i, 800-i);  
setProperty ("/ray" add i, _xscale,  
getProperty("/ray" add (i-1), _xscale)+i*alpha);  
setProperty ("/ray" add i, _yscale,  
getProperty("/ray" add (i-1), _yscale)+i*alpha);  
setProperty ("/ray" add i, _alpha, 10-i*(0.5/50));  
i = Number(i)+1;  
}  
setProperty ("ray0", _visible, "0");  
stop ();

13. Run the movie. You’ll see the effect above! Congratulations!

13.运行电影。 您会看到上面的效果! 恭喜你!

翻译自: https://www.sitepoint.com/flash-script-ray-light/

flash 调用 脚本

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值