bonjour je viens à vous pour un souci de combobox à remplir de manière dynamique, donc j'ai un fichier php definit comme suit
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
 
...
$req="Select * from service";
$res=mysql_query($req);
 
$reponse = "<services>";
while($Ser= mysql_fetch_object($res)){
	$reponse.="<service><id>".$Ser->ids."</id><libelle>".$Ser->service."</libelle></service>";
 
}
$reponse.="</services>";
...
et mon mxml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 
?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" 
	xmlns="*" initialize="initializeHandler(event)">
	<mx:Script>
        <![CDATA[
 
 
            private function initializeHandler(event:Event): void{
            	listecombo.send();
            }
 
        ]]>
    </mx:Script>
    <mx:HTTPService id="listecombo" url="http://localhost/test_fx3/src/php/liste.php" useProxy="false" />
<mx:Form x="35" y="25" width="473" height="303">
<mx:VBox>
				<mx:ComboBox id="service" editable="false" dataProvider="listecombo.lastresult.services.service"/>
			</mx:VBox>
</mx:Form>
Du coup ça marche pas ais-je rater quelque chose?
cordialement