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
| onClipEvent(load)
{
trace("actualise scrute_comtes_occupes");
//chargles les infos SQL
my_xml_infos_comtes_libres=new XML();// on crée un nouvel objet XML
my_xml_infos_comtes_libres.ignoreWhite=true;//on ignore les blancs et saute de ligne denotre XML
my_xml_infos_comtes_libres.onLoad=scanne_comtes_libres;//au moment où tu loaderas le XML tu execute cette fonction
my_xml_infos_comtes_libres.load(_global.adresse_serveur+"infos_comtes_libres_xml.php?action=recupere_tout&");
_global.scrute_comtes_occupes="fait";
function scanne_comtes_libres()
{
tempo_comtes_libres = setInterval(function ()
{
var nombreNoeud= my_xml_infos_comtes_libres.firstChild.childNodes.length
for(i=0;i<nombreNoeud;i++)
{
// va recuperer le nombre de comtés occupés
total_comtes_libres=my_xml_infos_comtes_libres.firstChild.childNodes[0].attributes.mysql_total_comtes_libres;
identite_comte_libre=my_xml_infos_comtes_libres.firstChild.childNodes.attributes.mysql_identite_comte_libre;
mysql_est_libre=my_xml_infos_comtes_libres.firstChild.childNodes.attributes.mysql_est_libre;
mysql_numero_comte_libre=my_xml_infos_comtes_libres.firstChild.childNodes.attributes.mysql_numero_comte_libre;
mysql_prix_comte_libre=my_xml_infos_comtes_libres.firstChild.childNodes.attributes.mysql_prix_comte_libre;
etc ...
} // fin du FOR
}, _global.valeur_tempos); // fin fontion setinterval
} //fin fonction scanne_variables_persos
scanne_comtes_libres(); |
Partager