关于Transition类,帮助中的 组件语言参考-TransitionManager 类 有详细的介绍
//遮帘过渡(blinds)
ActionScript 类名称 mx.transitions.Blinds
参数
numStrips,"遮帘"效果中的遮罩条纹数。建议的范围是 1 到 50。
dimension,一个整数,指示遮帘条纹是垂直的 (0) 还是水平的 (1)。
//
Stage.scaleMode = "noScale";
import mx.transitions.*;
import mx.transitions.easing.*;
var idArr:Array = ["image0", "image1", "image2", "image3", "image4"];
var i:Number = 0;
var setTime:Number = 6000;
//
blinds();
function blinds():Void {
var depth:Number = this.getNextHighestDepth();
var randomNum:Number = Math.floor(Math.random()*2);
var imageMc:MovieClip = this.attachMovie(idArr[i], "image"+depth, depth);
TransitionManager.start(imageMc, {type:Blinds, direction:Transition.IN, duration:4, easing:None.easeNone, numStrips:10, dimension:randomNum});
i
//像素溶解过渡(pixelDissolve)
ActionScript 类名称 mx.transitions.PixelDissolve
参数
xSections,一个整数,指示沿水平轴的遮罩矩形部分的数目。建议的范围是 1 到 50。
ySections,一个整数,指示沿垂直轴的遮罩矩形部分的数目。建议的范围是 1 到 50。
//
Stage.scaleMode = "noScale";
import mx.transitions.*;
import mx.transitions.easing.*;
var idArr:Array = ["image0", "image1", "image2", "image3", "image4"];
var i:Number = 0;
var setTime:Number = 10000;
//
pixelDissolve();
function pixelDissolve():Void {
var depth:Number = this.getNextHighestDepth();
var imageMc:MovieClip = this.attachMovie(idArr[i], "image"+depth, depth);
TransitionManager.start(imageMc, {type:PixelDissolve, direction:Transition.IN, duration:8, easing:None.easeNone, xSections:30, ySections:30});
//要应用过渡效果的MC对象
//应用的过渡效果类
i
//划入/划出过渡(wipe)
ActionScript 类名称 mx.transitions.Wipe
参数
startPoint,一个整数,指示开始位置。范围是 1 到 4 和 6 到 9:
左上,1;上中,2;右上,3;左中,4;右中,6;左下,7;下中,8;右下,9。
/*/
Stage.scaleMode = "noScale";
import mx.transitions.*;
import mx.transitions.easing.*;
var idArr:Array = ["image0", "image1", "image2", "image3", "image4"];
var numArr:Array = [1, 2, 3, 4, 6, 7, 8, 9];
var i:Number = 0;
var total:Number = 5;
var depth:Number = 0;
var loopID:Number;
var setTime:Number = 2500;
//
for (var j:Number = 0; j
本文转自:http://www.5uflash.com/flashjiaocheng/Flashdonghuatexiao/1109.html
//遮帘过渡(blinds)
ActionScript 类名称 mx.transitions.Blinds
参数
numStrips,"遮帘"效果中的遮罩条纹数。建议的范围是 1 到 50。
dimension,一个整数,指示遮帘条纹是垂直的 (0) 还是水平的 (1)。
//
Stage.scaleMode = "noScale";
import mx.transitions.*;
import mx.transitions.easing.*;
var idArr:Array = ["image0", "image1", "image2", "image3", "image4"];
var i:Number = 0;
var setTime:Number = 6000;
//
blinds();
function blinds():Void {
var depth:Number = this.getNextHighestDepth();
var randomNum:Number = Math.floor(Math.random()*2);
var imageMc:MovieClip = this.attachMovie(idArr[i], "image"+depth, depth);
TransitionManager.start(imageMc, {type:Blinds, direction:Transition.IN, duration:4, easing:None.easeNone, numStrips:10, dimension:randomNum});
i
//像素溶解过渡(pixelDissolve)
ActionScript 类名称 mx.transitions.PixelDissolve
参数
xSections,一个整数,指示沿水平轴的遮罩矩形部分的数目。建议的范围是 1 到 50。
ySections,一个整数,指示沿垂直轴的遮罩矩形部分的数目。建议的范围是 1 到 50。
//
Stage.scaleMode = "noScale";
import mx.transitions.*;
import mx.transitions.easing.*;
var idArr:Array = ["image0", "image1", "image2", "image3", "image4"];
var i:Number = 0;
var setTime:Number = 10000;
//
pixelDissolve();
function pixelDissolve():Void {
var depth:Number = this.getNextHighestDepth();
var imageMc:MovieClip = this.attachMovie(idArr[i], "image"+depth, depth);
TransitionManager.start(imageMc, {type:PixelDissolve, direction:Transition.IN, duration:8, easing:None.easeNone, xSections:30, ySections:30});
//要应用过渡效果的MC对象
//应用的过渡效果类
i
//划入/划出过渡(wipe)
ActionScript 类名称 mx.transitions.Wipe
参数
startPoint,一个整数,指示开始位置。范围是 1 到 4 和 6 到 9:
左上,1;上中,2;右上,3;左中,4;右中,6;左下,7;下中,8;右下,9。
/*/
Stage.scaleMode = "noScale";
import mx.transitions.*;
import mx.transitions.easing.*;
var idArr:Array = ["image0", "image1", "image2", "image3", "image4"];
var numArr:Array = [1, 2, 3, 4, 6, 7, 8, 9];
var i:Number = 0;
var total:Number = 5;
var depth:Number = 0;
var loopID:Number;
var setTime:Number = 2500;
//
for (var j:Number = 0; j
本文转自:http://www.5uflash.com/flashjiaocheng/Flashdonghuatexiao/1109.html