私はこれを機能させようとしてきましたが、理解できないようです。クリックするとズームインする必要があるImage
コントロールがあります(マウスがクリックされた中心/変換ポイントを使用)。
ズームトランジションはうまく機能していますが、transformX
&tranformY
(autoCenterTransform
falseを指定)を設定すると、そのポイントにズームインしません。
これが(特定のポイントにではなく)ズームインするだけの私のコードです
<fx:Script>
<![CDATA[
protected function imgLogo_clickHandler(event:MouseEvent):void
{
transformer.play();
}
]]>
</fx:Script>
<fx:Declarations>
<s:Parallel id="transformer" target="{imgLogo}">
<s:Scale scaleXBy="0.5" scaleYBy="0.5" />
</s:Parallel>
</fx:Declarations>
<mx:Image id="imgLogo" width="250" x="100" y="100"
maintainAspectRatio="true" source="@Embed('src/logo.png')"
click="imgLogo_clickHandler(event)" />
どんな助けでも大歓迎です。ありがとう