Olá Rafael... Como assim mostrando só um? Exibindo no componente só um ou enviando para o server só um? Para resolver seu problema, se for o envio para o server, é só passar oque vc quer enviar como parametro para o httpservice...
Httpservice pode receber um object como parametro opcionalmente. Como vc está usando get seria o mesmo que chamar uma url usando url.php? var=1&var=2 ... Coloca os registros selecionados em um array e manda como parametro no seu send (tipo assim form1.send(objParams) ). On 4 abr, 14:32, "Rafael Soares Mendonça" <[EMAIL PROTECTED]> wrote: > Alguém poderia me sugerir a alteração no código abaixo para mostrar valores > selecionados no List, pois com esse código só consigo exibir um elemento > selecionado do List. > > Valeu... > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" > backgroundColor="#f6f6f6" backgroundGradientColors="[#f6f6f6, #bbbbbb]"> > > <mx:Label x="10" y="10" text="Submit form using get method" fontSize="20" > fontWeight="bold"/> > <mx:HRule x="10" y="49" width="80%"/> > > <mx:HTTPService id="form1" url="http://localhost/teste/show_request.php" > method="GET" resultFormat="text" result="{textarea1.text = > String(event.result)}"> > <mx:request> > <username>{username.selectedItems}</username> > </mx:request> > </mx:HTTPService> > > <mx:List id="username" allowMultipleSelection="true" x="343" y="71" > width="141" height="140"> > <mx:dataProvider> > <mx:Array> > <mx:String>Nenhum</mx:String> > <mx:String>Federal</mx:String> > <mx:String>Comun.Confes.Filant.</mx:String> > <mx:String>Estadual</mx:String> > <mx:String>Municipal</mx:String> > <mx:String>Particular</mx:String> > > </mx:Array> > </mx:dataProvider> > </mx:List> > <mx:Button x="178" y="71" label="Submit" click="form1.send()"/> > <mx:Label x="10" y="101" text="Result"/> > <mx:TextArea x="10" y="118" width="234" height="188" id="textarea1"/> > > </mx:Application> > > php: > > <?php > > // send a response back to the client > print "You submitted the following form information:\n"; > foreach ($_REQUEST as $k => $v) { > print " $k = $v\n"; > } > > ?> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
