Bonjour,

Je débute avec le Flex (je suis habitué php/ajax).
Je rencontre un problème pour visualiser la réponse retournée par le serveur:

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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
 
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="onAppInit()">
 
	<mx:Script>
		<![CDATA[
 
			import flash.net.*;
			import mx.rpc.http.mxml.HTTPService;
 
			import mx.controls.Alert;
 
			import mx.rpc.events.ResultEvent;
            import mx.rpc.events.FaultEvent;
 
 
 
 
			private function onAppInit():void
			{
				var httpserv:HTTPService = new HTTPService();
				httpserv.url = "http://127.0.0.1/index.php";
				httpserv.useProxy = false;
				httpserv.method = "GET";
				httpserv.send();
 
				httpserv.addEventListener("result", httpResult);
                httpserv.addEventListener("fault", httpFault);
			}
 
			public function httpResult(event:ResultEvent):void {
                var result:Object = event.result;
 
				Alert.show(result.toString());
            }
 
            public function httpFault(event:FaultEvent):void {
                var faultstring:String = event.fault.faultString;
                Alert.show(faultstring); 
            }
 
		]]>
	</mx:Script>
 
</mx:Application>
Mon Alert.show(result.toString()) me retourne [object Object].
Je ne sais pas sous quelle forme ma requête est envoyée ni sa réponse.

D'habitude je regarde avec Firebug, mais avec le flex je ne vois rien
Est-ce normal ? ma requête est-elle bien envoyée ?