i have this ongoing thing with thumbs being loaded via xml in a forloop.
I have white backgrounds behind every thumb. Now I want some movement with the backgrounds easing in to their positions.
function ScreenprintsLoad(screenprints_xml) {
var screenprintsThumbs = screenprints_xml.firstChild.firstChild.childNodes;
maincontent.createEmptyMovieClip("holder",1);
for (var i = 0; i<screenprintsThumbs.length; i++) {
var currentPicture = screenprintsThumbs*;
var currentThumb = maincontent.holder.createEmptyMovieClip("thumb_mc"+i, i);
currentThumb.id = i;
var containerThumb = currentThumb.createEmptyMovieClip("container"+i, i);
currentThumb._x = i*100;
var fabricName = currentThumb.createTextField("fabric_name"+i, i+1, -50, -80, 100, 100);
fabricName.autoSize = "center";
fabricName.text = currentPicture.attributes.fabricname;
var style_fmt:TextFormat = new TextFormat();
style_fmt.font = "Times New Roman";
style_fmt.color = 0x666666;
style_fmt.size = 12;
fabricName.antiAliasType = "normal";
fabricName.setTextFormat(style_fmt);
currentThumb.attachMovie("thumb_bg_mc","thumb_bg_mc"+i,i-1);
currentThumb.onRelease = function() {
_global.id = this.id;
gotoAndPlay(2);
};
var mcl:MovieClipLoader = new MovieClipLoader();
mcl.loadClip(currentPicture.attributes.largethumb,containerThumb);
var container:Object = new Object();
mcl.addListener(container);
container.onLoadInit = function(target:MovieClip) {
target._x = target._x-(target._width/2);
target._y = target._y-(target._height/2);
};
}
}
how would I start this, I have a simple AS ease function that I could put in. Im just confused how to integrate it into this loop. Also how would I have the thumbs consecutively tween in?
Anyone have example files?