Bonjour ,

voici mon code pour me connecter en remoting à ma base de donnée, je suis un peu près sur que mon code est bon puisuqe je l'utilise sur unautre flash, mais ici il ne veux pas afficher mon trace('ok'), pourquoi?

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
 
import mx.remoting.Service;
import mx.remoting.debug.NetDebug;
import mx.remoting.PendingCall;
 
NetDebug.initialize();
 
_global.che="http://www.xxxxxxxxxxxx.fr/";
 
 
 
//creation de la connexion
var maConnection:Service=new Service(che+"gateway.php",null,"fonctions2");
 
//appel de l'illustration de fond
var illus:PendingCall=maConnection.photo_niveau();
illus.onResult=function(pData){
	trace("ok");
 
}