Xml loaded spinnig icons..

  • Ragamuffin
  • Born
  • Born
  • Ragamuffin
  • Posts: 1

Post 3+ Months Ago


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.onRollOver = t.setMask(swapper),over;
t.icon.onRollOut = out;
t.icon.onRelease = released;



When I add line:

[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?
:arrow: :?: :(

Thank you

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 7 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.