# Oh flash god, please help!

**URL:** <https://forum.kirupa.com/t/oh-flash-god-please-help/209282>\
**Category:** flash\
**Created:** [December 7, 2006, 2:18pm UTC](https://forum.kirupa.com/t/oh-flash-god-please-help/209282 "2006-12-07T14:18:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HandyMan](https://avatars.discourse-cdn.com/v4/letter/h/a587f6/32.png) [@HandyMan](https://forum.kirupa.com/u/HandyMan)\
**Post date:** [December 7, 2006, 2:18pm UTC](https://forum.kirupa.com/t/oh-flash-god-please-help/209282/1 "2006-12-07T14:18:42Z")

</div>

Hello! I have been working a bit on a function that will add a movieclip with a text within loaded from an xml, and also an image loaded the same way. The movieclip should appear under the movieclip before it. Like a box with some info …

The number should be controlled by the number of lines in the xml or something, so that the client can control the amount of “info boxes” themself. Its for a “news” section.

Here´s an example  
and this is the code I´ve come up with. I am kind of a beginner by the way.

As you may see, I have tried to modify the “3d carousell” for my puposes, but not quite successfully

```auto

var numOfItems:Number = 5;
var positionY = 300;
var positionX = 300;
 
for(var i=0;i<numOfItems;i++)
{
    var t= this.attachMovie("item", "item"+i, i+1);
    t.posY = i * (numOfItems/Stage.height);
    t.onEnterFrame = mover;
}
 
function mover()
{
    this._y = this.posY + positionY;
}
 

```

Would very much appreciate some help! Lotta lov to u geniuses!
