shell脚本随机数_Flash脚本-随机数效果

shell脚本随机数

It looks good, but this effect isn’t difficult to create. Let’s see how easy it is!

看起来不错,但是创建这种效果并不难。 让我们看看它有多简单!

…and don’t forget to download the sample files here.

…别忘了在此处下载示例文件

1. First, create a text field. I gave mine a variable name of "shuffle".

1.首先,创建一个文本字段。 我给了我一个可变的名字“洗牌”。

2. Convert the textfield to a movie clip, and name it "Random".

2.将文本字段转换为影片剪辑,并将其命名为“ Random”。

3. To convert to movie clip, select the textfield. Press f8, select radio movieclip, enter a name, and click Ok.

3.要转换为影片剪辑,请选择文本字段。 按f8,选择radio movieclip,输入名称,然后单击“确定”。

4. Right click the movie clip and access its actions. Insert this action:

4.右键单击影片剪辑并访问其动作。 插入此操作:

onClipEvent (enterFrame)
{
shuffle = random(9);
}

5. Create a duplicate of the movie clip.

5.创建影片剪辑的副本。

That’s it! Run the movie!

而已! 放映电影!

翻译自: https://www.sitepoint.com/script-random-number-effect/

shell脚本随机数

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值