I’m trying to make those space equal but the won’t work.
does anyone know how?
here’s my current code:
var lexml = new XML();
var chemin = “…/xml/”;
var tab_images = new Array();
lexml.ignoreWhite = true;
lexml.onLoad = loaderXML;
lexml.load(chemin+“company2.xml”);
// Loading xml
function loaderXML(loaded) {
var racine = this.firstChild;
var nb_elements = racine.childNodes.length;
if (loaded) {
for(i=0;i<nb_elements;i++) {
var company_name = racine.childNodes*.attributes;
var item = _root.attachMovie("company", "item"+i, i);
item.nom_txt.text = company_name.id;
// Positionning and allowing some space to each word
item.nom_txt._x = 0;
item.nom_txt._y = 15;
item.nom_txt._x += i*145;
}
//loader_ens_img(tab_images);
} else {
text_area.text = "Can NOT load the images request. Please make sure you have right path...";
}
}
Here’s the display :