最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
as TweenLite、TweenMax 实现抖动效果、左右抖动、上线抖动示例
时间:2013-09-30 编辑:简简单单 来源:一聚教程网
本篇文章小编给大家分享一下as TweenLite、TweenMax 实现抖动效果、左右抖动、上线抖动示例,对此感兴趣的小伙伴们赶快来看看吧。
实现也很简单:
function shakeTween(item:MovieClip, repeatCount:int):void { TweenMax.to(item,0.1,{repeat:repeatCount-1, y:item.y+(1+Math.random()*5), x:item.x+(1+Math.random()*5), delay:0.1, ease:Expo.easeInOut}); TweenMax.to(item,0.1,{y:item.y, x:item.x, delay:(repeatCount+1) * .1, ease:Expo.easeInOut}); } //change 50 to 200 or 5 to see how it works shakeTween(item, 50);
-
上一个: flash as3实现不规则碰撞程序类
相关文章
- “誉丰集团”拖欠员工工资 3个月左右没发工资了 11-14
- 小新Air13、Air12、Air13pro左右侧接口说明 10-17
- 三千元左右的笔记本哪款好 3000左右的笔记本推荐 06-15
- 上下左右光标控制物体跳动 06-18
- 左右列表内容交换传递 01-16
- 禁用鼠标左右键 01-16