I've got this site. HORIZONTAL SCROLLING WEB PAGE
I'm trying to take the code from that and integrate my new 3D Carousel everything seems to work except my PLAYLIST.. ARGHHH
DOWNLOAD FILES HERE
xml.onload = function(i:Number)
{
createMP3(0);
var count = i;
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.playlist = nodes[i].attributes.playlist;
//t.playlist = playlist[count];
t.toolText = nodes[i].attributes.tooltip;
t.theTitle = nodes[i].attributes.theTitle;
t.content = nodes[i].attributes.content;
t.icon.inner.loadMovie(nodes[i].attributes.image);
t.r.inner.loadMovie(nodes[i].attributes.image);
t.icon.back._visible = false;
t.icon.onRollOver = over;
t.icon.onRollOut = out;
t.icon.onRelease = released;
count++;
createMP3(count);
}
}
xml.load("icons.xml");
AND HERE'S THE CODE THAT LOADS THE XML
xml.onload = function(i:Number)
{
createMP3(0);
var count = i;
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.playlist = nodes[i].attributes.playlist;
//t.playlist = playlist[count];
t.toolText = nodes[i].attributes.tooltip;
t.theTitle = nodes[i].attributes.theTitle;
t.content = nodes[i].attributes.content;
t.icon.inner.loadMovie(nodes[i].attributes.image);
t.r.inner.loadMovie(nodes[i].attributes.image);
t.icon.back._visible = false;
t.icon.onRollOver = over;
t.icon.onRollOut = out;
t.icon.onRelease = released;
count++;
createMP3(count);
}
}
xml.load("icons.xml");
CAN ANYONE HELP OUT? i'M NOT SURE ON HOW TO GET THE PLAYLIST TO SHOW UP & WORK
Thanks in advancem,

New Topic/Question
This topic is locked



MultiQuote






|