El problema es el siguiente:
Le estoy aplicando dos efectos Resize a un VBox, el segundo efecto tiene la propiedad
easingFunction puesta a "Elastic.easeOut". Todo va bien cuando el VBox tiene un height fijo,
pero como necesito que se redimensione junto con la ventana, pongo la propiedad
Botton=30 y aqui ya no me funciona correctamente.
Aqui esta el codigo:
Código :
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="850" height="640"
cornerRadius="0" showStatusBar="false" creationComplete="init();">
<mx:Style source="style.css"/>
<mx:Script>
<![CDATA[
import mx.effects.easing.Elastic;
private function init():void{
}
]]>
</mx:Script>
<mx:HBox id="titlePanel" top="30" height="90" styleName="glassPods" left="30" right="30">
</mx:HBox>
<mx:VBox id="menuPanel" width="270" styleName="glassPods" left="30" top="130"
creationCompleteEffect="initMenuEffect" bottom="30">
</mx:VBox>
<mx:VBox id="contentPanel" styleName="glassPods" top="130" left="310" bottom="30" right="30">
</mx:VBox>
<mx:Sequence id="initMenuEffect" duration="800">
<mx:Resize widthFrom="0" widthTo="{menuPanel.width}" heightFrom="0" heightTo="50"/>
<mx:Resize heightFrom="50" heightTo="{menuPanel.height}" easingFunction="Elastic.easeOut"/>
</mx:Sequence>
</mx:WindowedApplication>
Si alguien tiene alguna idea por favor ayudeme.
Gracias.
