you can try this:
PHP Code:
// create a new XML document
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function() {
clearInterval(timer);
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
for (var i = 0; i < numOfItems; i++) {
var t = home.attachMovie("item", "item" + i, i + 1);
t.angle = i * ((Math.PI * 2) / numOfItems);
t.onEnterFrame = mover;
t.toolText = nodes[i].attributes.tooltip;
t.theTitle.text = nodes[i].attributes.title;
t.content = nodes[i].attributes.content;
t.title = nodes[i].attributes.title;
t.feature1 = nodes[i].attributes.feature1;
t.feature2 = nodes[i].attributes.feature2;
t.feature3 = nodes[i].attributes.feature3;
t.feature4 = nodes[i].attributes.feature4;
t.buynow = nodes[i].attributes.buynow;
t.icon.inner.loadMovie(nodes[i].attributes.image);
t.ref.inner.loadMovie(nodes[i].attributes.image);
t.icon.onRollOver = over;
t.icon.onRollOut = out;
t.icon.onRelease = released;
}
};
xml.load("icons.xml");
var xmlProgress = function (xmlObj:XML) {
var bytesLoaded:Number = xmlObj.getBytesLoaded();
var bytesTotal:Number = xmlObj.getBytesTotal();
var percentLoaded:Number = Math.floor((bytesLoaded / bytesTotal) * 100);
trace("milliseconds elapsed: " + getTimer());
trace("bytesLoaded: " + bytesLoaded);
trace("bytesTotal: " + bytesTotal);
trace("percent loaded: " + percentLoaded);
trace("---------------------------------");
};
var timer:Number = setInterval(xmlProgress, 100, xml);
should work with your set-up..
but I think the XML needs to be fairly large or the preloader will be very quick...no?