0
単純な回転エフェクトを正しく動作させるのに本当の問題があります。私はボーダーコンテナに簡単な回転効果を適用したい。ローテーションは正常に実行されますが、中心を中心に回転するのではなく、左上隅x/yを中心に回転します。自動中心変換が機能しない
私はautoCenterTransformをtrueに設定すると、自動的にこれが行われますが、それはまだ左上隅を回転していますか?おそらく私が何かを明らかに見逃している、ここで
私のコンポーネントのコードがある
...<s:BorderContainer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="50"
height="50">
<fx:Declarations>
<s:Rotate id="rotateMinus60"
target="{this}"
autoCenterTransform="true"
angleTo="-60">
</s:Rotate>
</fx:Declarations>
<fx:Script>
<![CDATA[
public function rotateObject():void{
rotateMinus60.play();
}
]]>
</fx:Script>
</s:BorderContainer>
は、私はどこか別の場所から「rotateObject」関数を呼び出していますが、それは問題ではないはず?