Bonjour tout le monde

Je n'arrive pas à faire le lien entre XML et flash.

Voici les codes

le code XML

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
 
<?xml version="1.0" encoding="windows-1252"?>  
 
	 <resultset statement="SELECT titre FROM medias" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 
  	  <row>
 
	<field name="titre"></field>
 
 
	   </row>
	  </resultset>
Le code actionscript


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
 
var chargementXML = new XML();
datasURL = "listvideo.xml";	
chargementXML.ignorWhite = true;
 
chargementXML.onLoad = function(succes){
	if (succes) {
 
	_root.indice_max = _root.datasXML.firstChild.childNodes.length;
	var myDP_array:Array = new Array();
	list.dataProvider = myDP_array;
	var accounts_array:Array = new Array();
		for (var i:Number = 0; i < _root.indice_max; i++) {
			accounts_array.push({name:_root.datasXML.firstChild.childNodes[i].attributes.label, accountID:12345});
			myDP_array.addItem({label:accounts_array[i].name, data:accounts_array[i].accountID});
		}
 
 
	}
	else{
 
	}
 
 
};
datasXML.load(datasURL);
Que dois je modifier?

Merci.

A +