如果添加一個手風琴導航組件到Flex應用程序,就像這樣:如何將Flex Accordion幻燈片從一個窗格變爲另一個窗格?
<mx:Accordion x="14" y="570" width="321" height="200">
<s:NavigatorContent label="Accordion Pane 1" width="100%" height="100%">
</s:NavigatorContent>
<s:NavigatorContent label="Accordion Pane 2" width="100%" height="100%">
</s:NavigatorContent>
</mx:Accordion>
那麼你的手風琴的窗格會跳開,並立即關閉。
問題是:我應該寫些什麼代碼才能使手風琴的窗格切換動畫?
(就像Adobe的演示稱爲環法自行車Flex的)
要明白我的意思的窗格之間的動畫切換:
1)去這裏:http://www.adobe.com/devnet-apps/flex/tourdeflex/web/
2)選擇其他組件 - >容器 - >超級手風琴3)點擊超級手風琴的窗格標題並看到它們移動
謝謝!
您可以查看源代碼:http://code.google.com/p/tink/source/browse/trunk/flex4/mx/src/ws/tink/mx/containers/superAccordion /SuperAccordionHeader.as – hering 2011-03-01 16:01:55
@hering:此源代碼在Flex 4中給出了非動畫手風琴,我將解釋爲什麼在這個問題的下面 – Mikhail 2011-03-02 08:37:37