Bonjour, je suis débutant en AS et voici un code que j'ai écrit :
xmlPartenaires = new XML();
xmlPartenaires.ignoreWhite = true;
xmlPartenaires.onLoad = function(ok)
{
if (ok)
{
for (i = 0; i < xmlPartenaires.firstChild.childNodes.length; i++)
{
attachMovie("ScrollPane", "logo" + i, 0);
eval("logo" + i)._x = 0;
eval("logo" + i)._y = i * 10;
eval("logo" + i).setSize(150, 100);
eval("logo" + i).hScrollPolicy = off;
eval("logo" + i).vScrollPolicy = off;
eval("logo" + i).setStyle("borderStyle", "none");
eval("logo" + i).contentPath = "../partenaires/" + xmlPartenaires.firstChild.childNodes[i].attributes.logo;
eval("logo" + i).onPress = function()
{
getURL("http://" + xmlPartenaires.firstChild.childNodes[i].attributes.url, "_blank");
}
}
}
}
xmlPartenaires.load("partenaires.php");
Normalement, cela devrait créer autant de ScrollPane qu'il y a de lignes dans mon fichier XML, mais ça ne me crée qu'un seul ScrollPane dont l'URL mise dans l'évènement onPress est "undefined"... Je sèche... 
Quelqu'un aurait-il une idée ? 