import fl.transitions.*;
import fl.transitions.easing.*;
function showEffect(showMC) {
var randomNum:Number = Math.floor(Math.random()*16);
switch (randomNum) {
case 0 :
//横向卷帘
TransitionManager.start(showMC, {type:Blinds, direction:Transition.IN, duration:2, easing:None.easeNone, numStrips:10, dimension:0});
break;
case 1 :
//纵向卷帘
TransitionManager.start(showMC, {type:Blinds, direction:Transition.IN, duration:2, easing:None.easeNone, numStrips:10, dimension:1});
break;
case 2 :
//淡入效果
TransitionManager.start(showMC, {type:Fade, direction:Transition.IN, duration:2, easing:None.easeNone});
break;
case 3 :
//圆形打开
TransitionManager.start(showMC, {type:Iris, direction:Transition.IN, duration:2, easing:Strong.easeOut, startPoint:2, shape:Iris.CIRCLE});
break;
case 4 :
//淡入闪光
TransitionManager.start(showMC, {typehoto, direction:Transition.IN, duration:2, easing:None.easeNone});
break;
case 5 :
//棋盘马赛克
TransitionManager.start(showMC, {typeixelDissolve, direction:Transition.IN, duration:2, easing:None.easeNone, xSections:10, ySections
flash自带的10种过渡效果
最新推荐文章于 2019-03-02 20:07:09 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)