Hello I have the fallwoing code to create a multi-dimensioanl array to hold data but somehow it doesnt work. Any ideas ? Thanks
function fnDofeatured() {
var featured:Array = new Array();
var featuredRoot = _root.data_xml.childNodes[1];
var count = featuredRoot.childNodes.length;
trace(count);
for(var i=0; i<count; i++) {
var cat_id = featuredRoot.childNodes*.attributes.cat_id;
var idx = featuredRoot.childNodes*.attributes.idx;
var info = featuredRoot.childNodes*.attributes.info;
var name = featuredRoot.childNodes*.attributes.name;
var count = featuredRoot.childNodes*.attributes.count;
var desc = featuredRoot.childNodes*.attributes.desc;
// featured*.push(cat_id,idx,info,name,count,desc);
featured*=[cat_id,idx,info,name,count,desc];
trace(featured*[5]);
}
trace(featured[0][4]);
}