標籤雲

搜尋此網誌

2008/01/31

Transition 與 TransitionManager 之其三

<續上篇>
----------------------------------------------------------
具有方向性質類():
Fly(飛入飛出), Wipe(擦去或擦入),Iris(方形或圓形做縮入或擴出),Squeeze(擠入),Rotate(旋轉進入或移出)
----------------------------------------------------------
特殊參數說明:

Fly -- startPoint
Wipe -- startPoint
Iris -- startPoint, shape(有 Iris.SQUARE 或 Iris.CIRCLE 兩種值)
Rotate -- ccw, degrees

startPoint: 起始方位參數, 由1~9表示九個方向, 圖示如下:
123
456
789

shape: fl.transitions.Iris.SQUARE (正方形) 或 fl.transitions.Iris.CIRCLE (圓形)
ccw: true代表逆時針; false代表順時針
degrees: 以註冊點為中心的旋轉角度, 建議範圍1~9999(如720就是轉三圈)

----------------------------------------------------------
//Fly (飛入飛出)
TransitionManager.start( mc, {type:Fly, direction:Transition.IN, duration:3, easing:Elastic.easeOut, startPoint:9});

//Wipe (擦去或擦入)
TransitionManager.start(img1_mc, {type:Wipe, direction:Transition.IN, duration:2, easing:None.easeNone, startPoint:1});

//Iris (方形或圓形做縮入或擴出)
TransitionManager.start(img1_mc, {type:Iris, direction:Transition.IN, duration:2, easing:Strong.easeOut, startPoint:5, shape:Iris.CIRCLE});

//Rotate (旋轉進入或移出)
TransitionManager.start( mc, {type:Rotate, direction:Transition.IN, duration:3, easing:Strong.easeInOut, ccw:false, degrees:720});
----------------------------------------------------------

沒有留言: