# Carousels

**URL:** <https://forum.kirupa.com/t/carousels/223228>\
**Category:** Uncategorized\
**Created:** [April 20, 2007, 12:29pm UTC](https://forum.kirupa.com/t/carousels/223228 "2007-04-20T12:29:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![punstc](https://avatars.discourse-cdn.com/v4/letter/p/87869e/32.png) [@punstc](https://forum.kirupa.com/u/punstc)\
**Post date:** [April 20, 2007, 12:29pm UTC](https://forum.kirupa.com/t/carousels/223228/1 "2007-04-20T12:29:42Z")

</div>

I’ve been working on an xml carousel from a tutorial on [gotoandlearn.com](http://gotoandlearn.com). my problem is my pictures arent showing up like they should my container appears but remains blue. he count of items is right also. can any one tell me if i have a code error? i’ll also put a zip of my project. here is my code.

var numOfItems:Number;  
var radiusX:Number = 300;  
var radiusY:Number = 75;  
var centerX:Number = Stage.width/2;  
var centerY:Number = Stage.height/2;  
var speed:Number = 0.05;  
var perspective:Number = 130;  
var home:MovieClip = this;

var tooltip:MovieClip = this.attachMovie(“tooltip”,“tooltip”,10000);  
tooltip.\_alpha = 0;

var xml:XML = new XML();  
xml.ignoreWhite = true;

xml.onLoad = function()  
{  
var nodes = this.firstChild.childNodes;  
numOfItems = nodes.length;  
for(var i=0;i\<numOfItems;i++)  
{  
var t = home.attachMovie (“item”,“item”+1,i+1);  
t.angle = i \* ((Math.PI_2)/numOfItems);  
t.onEnterFrame = mover;  
t.toolText = nodes_.attributes.tooltip;  
t.icon.inner.loadMovie(nodes\*.attributes.image);  
t.r.inner.loadMovie(nodes\*.attributes.image);  
}  
}

xml.load(“icons.xml”);

function mover()  
{  
this.\_x = Math.cos(this.angle) \* radiusX + centerX;  
this.\_y = Math.sin(this.angle) \* radiusY + centerY;  
var s:Number = (this.\_y - perspective) / (centerY+radiusY-perspective);  
this.\_xscale = this.\_yscale = s \* 100;  
this.angle += this.\_parent.speed;  
this.swapDepths(Math.round(this.\_xscale) + 100);  
}

this.onMouseMove = function()  
{  
speed = (this.\_xmouse-centerX)/2500;  
}
