ciao, se ho capito la richiesta ti basta aggiungere il listener:
le parti in bold sono da correggere con i nomi corretti (i tuoi non li so)
creati la pagina asp che riceve la richiesta da flash ed estrae il codice associato al nome, restituendotelo nella forma: Response.write (CODICE="&rs("CODICE")&")
in flash metti:
codice://Listener listener = new Object(); listener.cellPress = function(evt) { //CLICCO SU UN NOME E LO INSERISCO IN SCELTA scelta = dp[evt.itemIndex].TUO_CAMPO; dati_send = new LoadVars(); dati_send.sendAndLoad("estrai_codice.asp?codice="+scelta, dati_send, "POST"); dati_send.onLoad = function(success) { if (success) { _root.codice_estratto.text=dati_send.["campo"]; } } else { trace("ERRORE!!"); } }; } nome_tuo _datagrid.addEventListener("cellPress", listener);
ciao
![]()

)
Rispondi quotando