Clayton, acho que tem razao. É que a principio, tinha tentado fazer algo com states e resize, ficou complicado... eu me embolei todinho... ai como vi esse exemplo usando o resizeEffect achei viável... mas o jeito e states mesmo...
On 5 out, 13:15, Clayton <[email protected]> wrote: > Neste caso seria, então, melhor utilizar "States". > > 2009/10/5 Bruno Carneiro <[email protected]> > > > > > > > Olhei a lista de effects do VBox, não encontrei nenhuma que me > > servisse... > > > E parece que o custo benefício de fazer esse efeito é alto demais... > > euhein... que complicado rsrsrsrs > > > On 5 out, 11:47, Gabriela Trindade Perry <[email protected]> > > wrote: > > > E parece que a história é mesmo mais ou menos por ai: > > > > /***************************************************** > > > <?xml version="1.0" encoding="utf-8"?> > > > <mx:Application > > > xmlns:mx="http://www.adobe.com/2006/mxml" > > > layout="absolute" > > > creationComplete="initApp()"> > > > > <mx:Script> > > > <![CDATA[ > > > import mx.core.Container; > > > > private function initApp():void{ > > > cv2.addEventListener > > > ("includeInLayoutChanged",checkIncludeInLayout); > > > vb.addEventListener(Event.RESIZE, checkResize); > > > } > > > > private function > > checkIncludeInLayout(evt:Event):void{ > > > trace("include in layout? "+Container > > > (evt.currentTarget).includeInLayout + ", height? "+vb.height) > > > } > > > > private function checkResize(evt:Event):void{ > > > trace('altura dentro de resize: '+vb.height) > > > } > > > ]]> > > > </mx:Script> > > > <mx:VBox borderStyle="solid" borderThickness="3" id="vb"> > > > <mx:Script> > > > <![CDATA[ > > > override protected function measure():void{ > > > super.measure(); > > > trace('altura dentro de measured: '+this.height) > > > trace('measured altura dentro de measured: > > > '+this.measuredHeight) > > > } > > > > ]]> > > > </mx:Script> > > > <mx:Canvas width="200" height="200" backgroundColor="#AAAA88"/ > > > > <mx:Canvas width="200" height="200" backgroundColor="#00FF55" > > > id="cv2" includeInLayout="{cb.selected}" visible="{cb.selected}"/> > > > <mx:CheckBox label="mostra canvas dois" selected="true" > > > id="cb"/> > > > </mx:VBox> > > > </mx:Application> > > > *****************************************************/ > > -- > Clayton Marques Pereira --~--~---------~--~----~------------~-------~--~----~ Você recebeu esta mensagem porque está inscrito na lista "flexdev" Para enviar uma mensagem, envie um e-mail para [email protected] Para sair da lista, envie um email em branco para [email protected] Mais opções estão disponíveis em http://groups.google.com/group/flexdev -~----------~----~----~----~------~----~------~--~---
