Tween Max歪斜问题

时间:2014-10-05 20:06:31

标签: actionscript-3 flash greensock skew tweenmax

我的代码如下。当我添加第二行代码,改变TweenMax函数中的偏差时,waterSkew偏差不起作用。当删除waterSkew函数的第二行时,它可以正常工作。

import com.greensock.*;
import com.greensock.easing.*;
import com.greensock.plugins.*;
TweenPlugin.activate([TransformMatrixPlugin]);

//CHANTEL Timeline variables
var cMoveTimeline:TimelineLite = new TimelineLite();

function init():void{

waterSkew();
cMove();
}

function cMove():void{
cMoveTimeline.to(C,2,{x:166.9, y:479.55});
cMoveTimeline.to(C,1,{x:166.9, y:467.7, rotation:5}, "+=.15");
cMoveTimeline.to(C,1,{x:163.3, y:471.25, rotation:-5}, "+=.25");
cMoveTimeline.to(C,1,{x:166.9, y:467.7, rotation:5});
cMoveTimeline.to(C,1,{x:166.9, y:479.55, rotation:-5}, "+=.25");
cMoveTimeline.to(C,1,{x:170.5, y:469.5, rotation:0});
}

function waterSkew():void{
TweenMax.to(water, 8, {transformMatrix:{skewX:1, skewY:-1}});
TweenMax.from(water, 8, {transformMatrix:{skewX:1, skewY:1}});
}
init();

0 个答案:

没有答案