Normally I would space the mc’s on a whole number like for thumbnails, but since the widht is set to autosize, I cant do that. Help please.
var showWhat = 0;
var links:XML = new XML();
links.ignoreWhite = true;
links.onLoad = function(ok) {
if (ok) {
var entrys = this.firstChild.childNodes;
for (var i = 0; i<entrys.length; i++) {
var current = entrys*;
var secret = current.childNodes[0].firstChild.toString();
if (secret == showWhat) {
var titleBtn = menu_mc.attachMovie("title_txt", "button"+i, i);
titleBtn.titleTxt.autoSize = true;
titleBtn.titleTxt.text = current.childNodes[1].firstChild.toString();
// need help with this line
titleBtn._x =
////
titleBtn.entry = current.childNodes[2].firstChild.toString();
titleBtn.date = current.childNodes[3].firstChild.toString();
titleBtn.link = current.childNodes[4].firstChild.toString();
titleBtn.img = current.childNodes[5].firstChild.toString();
titleBtn.onRelease = function() {
trace(this.entry);
trace(this.date);
trace(this.link);
trace(this.img);
};
}
}
}
};
links.load('http://www.xml.xml');