Amigos, estou com um problema na minha transicao fiz um fade simples, porem ele nao mostra o meu DataGrid, coloquei ele no State principal invisivel, e no outro visible, e o meu fade nao funciona. vou mandar o Mxml pra vcs darem uma olhada..
<?xml version="1.0" encoding="utf-8"?> <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="710" height="96" borderStyle="solid" borderThickness="1" backgroundColor="#E4E1E1" borderColor="#000101" creationComplete="inicializa()" verticalScrollPolicy="off"> <mx:states> <mx:State name="RESPOSTA_STATE"> <mx:SetProperty name="height" value="212"/> <mx:RemoveChild target="{button1}"/> <mx:AddChild position="lastChild"> <mx:Button x="554" y="176" label="Fechar Respostas" width="144" cornerRadius="0" click="fecharListaResposta()"/> </mx:AddChild> <mx:RemoveChild target="{lblTotalRespostas}"/> <mx:SetProperty target="{dgRespostas}" name="visible" value="true"/> <mx:SetProperty target="{btnAddResposta}" name="visible" value="true"/> <mx:SetProperty target="{btnRemoveResposta}" name="visible" value="true"/> </mx:State> </mx:states> <mx:transitions> <mx:Transition fromState="{PRINCIPAL_STATE}" toState="{RESPOSTA_STATE}"> <mx:Parallel duration="400"> <mx:Resize targets="{[this]}"/> </mx:Parallel> </mx:Transition> <mx:Transition fromState="{RESPOSTA_STATE}" toState="{PRINCIPAL_STATE}"> <mx:Parallel duration="400"> <mx:Resize targets="{[this]}"/> </mx:Parallel> </mx:Transition> </mx:transitions> <mx:DateFormatter id="dfFormataData" formatString="DD/MM/YYYY"/> <mx:Label x="10" y="10" text="Parte:" fontWeight="bold" width="74" textAlign="right"/> <mx:Label x="92" y="10" text="Label" width="375" id="lbNmParte"/> <mx:Label x="554" y="10" text="06.928.201/0001-30" width="144" id="lbCpfCnpj"/> <mx:Label x="475" y="10" text="Cpf / Cnpj:" width="71" fontWeight="bold" textAlign="right"/> <mx:Label x="10" y="36" text="Estado Civil:" fontWeight="bold"/> <mx:Label x="92" y="36" text="Label" width="164" id="lbEstadoCivil"/> <mx:Label x="554" y="36" text="Label" width="144" id="lbRg"/> <mx:Label x="517" y="36" text="RG:" fontWeight="bold" width="29" textAlign="right"/> <mx:Label x="10" y="66" id="lblTotalRespostas" color="#FF0416"/> <mx:DataGrid x="10" y="66" height="102" width="661" dataProvider="{_itemMensagem.tbRespostaItemRegistroIndisponivelList}" editable="true" id="dgRespostas" itemEditEnd="formatData(event);" visible="false"> <mx:columns> <mx:DataGridColumn headerText="Livro" dataField="nmLivro" editorDataField="value"> <mx:itemEditor> <mx:Component> <mx:ComboBox cornerRadius="0"> <mx:String>Lv 2 - Registro Geral</mx:String> <mx:String>Lv 3 - Transcrição</mx:String> </mx:ComboBox> </mx:Component> </mx:itemEditor> </mx:DataGridColumn> <mx:DataGridColumn headerText="Registro" dataField="nrRegistro"/> <mx:DataGridColumn headerText="Nr. Prenot." dataField="nrPrenotacao"/> <mx:DataGridColumn headerText="Dt. Prenot." dataField="dtPrenotacao" labelFunction="formataDataHandler" itemEditor="mx.controls.DateField" editorDataField="selectedDate"/> <mx:DataGridColumn headerText="Observação" dataField="dsObservacao"/> </mx:columns> </mx:DataGrid> <mx:Button x="679" y="67" label="+" cornerRadius="0" width="19" fontWeight="bold" textAlign="center" paddingBottom="0" paddingLeft="0" paddingRight="0" paddingTop="0" id="btnAddResposta" click="addNovaResposta()" enabled="{!_itemRespondido}" visible="false"/> <mx:Button x="679" y="97" label="-" cornerRadius="0" width="19" fontWeight="bold" textAlign="center" paddingBottom="0" paddingLeft="0" paddingRight="0" paddingTop="0" id="btnRemoveResposta" enabled="{!_itemRespondido}" click="removerResposta()" visible="false"/> <mx:Button x="554" y="62" label="Resposta" width="144" cornerRadius="0" id="button1" click="listaRespostas()"/> </mx:Canvas> Obrigado -- Você recebeu esta mensagem porque está inscrito na lista "flexdev" Para enviar uma mensagem, envie um e-mail para flexdev@googlegroups.com Para sair da lista, envie um email em branco para flexdev-unsubscr...@googlegroups.com Mais opções estão disponíveis em http://groups.google.com/group/flexdev