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
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!