Greetings I'm trying to make sort of carousel menu that has an object in the centre of it, kind of column. So icons that are far spin behind it and other do in front.
Here is a part of the script that loads them and makes them work with other functions.
***
xml.onLoad = function()
{
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
.attributes.tooltip;
t.content = nodes[i].attributes.content;
t.imagp = nodes[i].attributes.img;
t.icon.inner.loadMovie(nodes[i].attributes.image)
t.r.inner.loadMovie(nodes[i].attributes.image);
t.icon.onRollOver = t.setMask(swapper),over;
t.icon.onRollOut = out;
t.icon.onRelease = released;
//t.setMask(swapper);
}
}
***
When I add line:
t.setMask(swapper);
[i]*.It is colored in the code up there. Mask applies
exactly as I want, but Only to one icon..
Could you please tell me what am I doing wrong?
And how to change script so mask would apply to all carouselling icons?
Thank you