Só complementando: validateNow()method public function validateNow():void<http://livedocs.adobe.com/flex/3/langref/specialTypes.html#void>
Validate and update the properties and layout of this object and redraw it, if necessary. Processing properties that require substantial computation are normally not processed until the script finishes executing. For example setting the width property is delayed, because it may require recalculating the widths of the objects children or its parent. Delaying the processing prevents it from being repeated multiple times if the script sets the widthproperty more than once. This method lets you manually override this behavior. Extraído de [ http://livedocs.adobe.com/flex/3/langref/mx/core/UIComponent.html#validateNow() ] Abraços! 2009/2/10 Eduardo Kraus <[email protected]> > *private* *function* abreGridParcelas(evt:GenericoEvent):*void* { > > *var* popGridParcelas: listagemParcelasProcesso = > listagemParcelasProcesso(PopUpManager.createPopUp(*this*, > listagemParcelasProcesso, *true*)); > > popGridParcelas.arrParcelas = evt.arrGenerico; > > popGridParcelas.ProcessoPrincipal = *this* > .arquivoVO.PROCESSOJURIDICO; > > popGridParcelas.validateNow(); > > *PopUpManager.centerPopUp(popGridParcelas); > * > } > *Eduardo Kraus* > Desenvolvedor > [email protected] > http://blog.mxml.com.br > > > 2009/2/10 Emerson Mota <[email protected]> > > Olá a todos, >> >> >> >> Estou com um problema na centralização dos Pop-Ups, quando estava usando o >> SDK 3.1, tudo funcionava certinho, depois que mudei pro SDK 3.2, as >> centralizações bagunçaram todas, segue o código da chamada do Pop-Up: >> >> >> >> *private* *function* abreGridParcelas(evt:GenericoEvent):*void* { >> >> *var* popGridParcelas: listagemParcelasProcesso = >> listagemParcelasProcesso(PopUpManager.createPopUp(*this*, >> listagemParcelasProcesso, *true*)); >> >> popGridParcelas.arrParcelas = evt.arrGenerico; >> >> popGridParcelas.ProcessoPrincipal = *this* >> .arquivoVO.PROCESSOJURIDICO; >> >> *PopUpManager.centerPopUp(popGridParcelas); >> * >> >> } >> >> >> >> OBS.: a ocorrência só acontece quando a largura e altura do formulário é >> atribuída dinamicamente, baseado na resolução do monitor, tipo: >> >> >> >> *private* *var* altura : uint = Capabilities.screenResolutionY ; >> >> *private* *var* largura: uint = Capabilities.screenResolutionX ; >> >> >> >> e o with={largura-50} e height="{*this*.altura-200}" >> >> >> >> Ats, >> >> >> >> Emerson Mota. >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
