1

我可以使用 endValue 作为百分比吗?

Pages.Page1.ImageButton1.animate({
...
endValue : 30,
...
});

endValue 的类型是什么?像素?那么,我如何使用百分比?我尝试了 %30 或 30% 但没有用。

4

2 回答 2

1

以这个完整的代码为例;

Pages.Page1.ImageButton1.animate({
    property : 'Y',
    endValue : '30%',
    motionEase : SMF.UI.MotionEase.plain,
    duration : 3000,
    onFinish : function () {
        //do your action after finishing the animation
    }
});
于 2014-12-16T09:11:45.207 回答
0

您可以将其用作字符串:

Pages.Page1.ImageButton1.animate({
...
endValue : "100%",
...
});
于 2014-12-16T08:47:18.140 回答