Bonjour,

J'ai un problème pour passer une variable de php vers flash en utilisant loadVars

code php :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
 
Parse ("titreVar", $xmlfile);
 
function Parse($variable,$valeur) {
echo "&" . $variable . "=" . utf8_encode(urlencode($valeur));
}
code flash

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
 
my_lv = new LoadVars();
      my_lv.onLoad = function(success) {
      if(success){
      trace("livret.php loaded");
      trace(my_lv.titreVar);
      ob.loadExternalXML(my_lv.titreVar);
   }
   else{
      trace("livret.php loading problem");
   }
}
      my_lv.load("http://localhost/livret/livret.php");
J'obtiens

livret.php loading problem
Quelqu'un voit d'ou vient l'erreur?

Merci
Gyom