hello! mi name is Joe, i'm from Chile, Latin America, i developed in flex 3, but this time i want to practice flash builder 4.
actually, i want to show a popup (a TitleWindow via PopUpManager), wich has a viewstack, and i want to animate it's contents like and ipod interface, i have this code, it work's, but only fail in the first time you switch to another view, next switches have no problem. (this code is ready to copy paste and test) -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" backgroundColor="#6E6363"> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> <s:Move id="aparecer_0" duration="1000" xFrom="{-this.tw.width}" xTo="0"/> <s:Move id="desaparecer_0" duration="1000" xFrom="0" xTo="{-this.tw.width}"/> <s:Move id="aparecer_1" duration="1000" xFrom="{this.tw.width}" xTo="0"/> <s:Move id="desaparecer_1" duration="1000" xFrom="0" xTo="{this.tw.width}"/> </fx:Declarations> <s:TitleWindow id="tw" width="400" height="300" x="396" y="177"> <s:layout> <s:VerticalLayout/> </s:layout> <mx:ToggleButtonBar dataProvider="{viewstack1}"/> <s:Group width="100%" height="100%"> <mx:ViewStack id="viewstack1" width="100%" height="100%"> <s:NavigatorContent label="a" showEffect="{aparecer_0}" hideEffect="{desaparecer_0}" backgroundColor="#AF8282"> <s:Button x="111" y="94" label="Button"/> </s:NavigatorContent> <s:NavigatorContent label="b" showEffect="{aparecer_1}" hideEffect="{desaparecer_1}" backgroundColor="#8F7CD5"> <s:Label x="130" y="118" text="Label"/> </s:NavigatorContent> </mx:ViewStack> </s:Group> </s:TitleWindow> </s:Application> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- with this simple code, you can see my problem, because the first Move effect slide out of bounds the contents of the viewstack, but nexts moves dont!!!!, what can i do to make it works? than you in advance! :D

