[問題] flex上tween的運用(已更新)
一般在Image 或 swfLoader元件,
都能運用簡單的Resize or Move....等類的控制元件,
加入easingfunction來使用簡單的tween的變化,
但是今天我想在Text元件上做出Resize的變化,
不過Resize試調整元件的長寬,並沒有辦法連字體一起調整,
當然我也能自己調整字體大小,但是這樣又沒有辦法簡單的做出tween的效果,
不知道關於這點,有沒有高手能幫忙指導呢?
嘗試了一下
<mx:Sequence id="Tryit">
<mx:Parallel duration="500" target="{example}">
<mx:Resize widthTo="300" heightTo="300" easingFunction="mx.effects.easing.Elastic.easeOut"/>
</mx:Parallel>
</mx:Sequence>
<mx:Container id="example" x="162" y="82" label="543" visible="true" width="199" height="198">
<mx:Text fontSize="50" text="Hi" width="100" height="100" x="50" y="50"/>
</mx:Container>
在scritp中讓Tryit運作起來,結果並無法讓Text有彈簧的效果,
由於對Flex還沒很熟悉,對於Container元件更是第一次接觸,
煩請幫忙看這是哪邊錯了呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.126.200.189
→
06/30 09:53, , 1F
06/30 09:53, 1F
→
06/30 10:01, , 2F
06/30 10:01, 2F
推
06/30 10:17, , 3F
06/30 10:17, 3F
→
06/30 10:18, , 4F
06/30 10:18, 4F
→
06/30 10:30, , 5F
06/30 10:30, 5F
※ 編輯: evileva 來自: 59.126.200.189 (06/30 11:57)
推
06/30 14:13, , 6F
06/30 14:13, 6F
→
06/30 14:13, , 7F
06/30 14:13, 7F