Xml loaded spinnig icons..

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

Post 3+ Months Ago

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

Thank you
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 26 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-2014. Ozzu® is a registered trademark of Unmelted, LLC.