Setting a creation complete effect on an Accordion
- 08月 29th, 2008
-
Accordion的creationCompleteEffect,可以为每个Child都设置creationComplete,很好玩的说…
<?xml version="1.0" encoding="utf-8"?> <!-- http://blog.flexexamples.com/2008/06/22/setting-a-creation-complete-effect-on-an-accordion-container-in-flex/ --> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white"> <mx:Script> <![CDATA[ public var str:String = "12312312312312" ]]> </mx:Script> <mx:Accordion id=”accordion” creationCompleteEffect=”Dissolve” width=”400″ height=”300″> <mx:VBox id=”vBox1″ label=”Red (WipeUp)” backgroundColor=”red” creationCompleteEffect=”WipeUp” width=”100%” height=”100%”> <mx:Text text=”{str}” width=”100%” height=”100%” /> </mx:VBox> <mx:VBox id=”vBox2″ label=”Orange (WipeDown)” backgroundColor=”haloOrange” creationCompleteEffect=”WipeDown” width=”100%” height=”100%”> <mx:Text text=”{str}” width=”100%” height=”100%” /> </mx:VBox> <mx:VBox id=”vBox3″ label=”Yellow (WipeLeft)” backgroundColor=”yellow” creationCompleteEffect=”WipeLeft” width=”100%” height=”100%”> <mx:Text text=”{str}” width=”100%” height=”100%” /> </mx:VBox> <mx:VBox id=”vBox4″ label=”Green (WipeRight)” backgroundColor=”haloGreen” creationCompleteEffect=”WipeRight” width=”100%” height=”100%”> <mx:Text text=”{str}” width=”100%” height=”100%” /> </mx:VBox> <mx:VBox id=”vBox5″ label=”Blue (Iris)” backgroundColor=”haloBlue” creationCompleteEffect=”Iris” width=”100%” height=”100%”> <mx:Text text=”{str}” width=”100%” height=”100%” /> </mx:VBox> </mx:Accordion> </mx:Application>