0
我是Flex和Flash Builder中的新成員,所以對於愚蠢的問題感到抱歉:)。s:以恆定的旋轉速度旋轉3D
我想要做的是一個Android應用程序。時鐘,圖像每20分鐘完成一次完整的旋轉週期。
這裏是我的代碼:
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView">
<fx:Declarations>
<s:Rotate3D
id="rotateEffect"
target="{clock}"
angleZFrom="0"
angleZTo="360"
repeatCount="999999999"
duration="1200000"
autoCenterTransform="true"
/>
</fx:Declarations>
<s:actionContent>
<s:Button click="NativeApplication.nativeApplication.exit()" icon="assets/appi_11.png"
styleName="title"/>
</s:actionContent>
<s:Image id="clock" horizontalCenter="0" source="assets/rotateMe.png" verticalCenter="0" click="rotateEffect.play()"/>
</s:View>
的問題是,有某種緩和的行爲和旋轉的速度不是恆定的。
有沒有什麼辦法可以解決這個問題?
謝謝! 我會盡力學習如何做到這一點:)。我很遺憾地使用代碼進行垃圾處理,並且由於「Rotate3D」具有持續時間版本。我認爲我可以用它來快速解決問題。 – Miha 2012-04-20 22:32:46