This is the code I wrote to make it work, but it scales them all from one point, as if they are all inside one big container, not each one in its own container "middleContainer". How can I fix this?
Thank you!! :)
var thumbsContainer:MovieClip;
var thumb_Loader: Loader;
var thumb: Loader;
var middleContainer: MovieClip;
function createThumbs(): void {
thumbsContainer = new MovieClip();
stage.addChild(thumbsContainer);
for (var i: uint = 0; i < 5 ; i++) {
thumb_URL = VideoList[i].@THUMB_URL;
thumb_Loader = new Loader();
thumb_Loader.load(new URLRequest(Thumb_URL));
thumb_Loader.contentLoaderInfo.addEventListener(Event.COMPLETE, viewThumbs)
thumb_Loader.x = i * (thumbWidth + thumbSpacing);
}
}
function viewThumbs(e: Event): void {
thumb = e.target.loader;
middleContainer = new MovieClip();
middleContainer.addChild(thumb);
thumbsContainer.addChild(middleContainer);
thumb.x -= thumbWidth/2;
thumb.y -= thumbHieght/2;
middleContainer.x += thumbWidth/2;
middleContainer.y += thumbHieght/2;
var scaleUp:Tween = new Tween (middleContainer, "scaleX", Strong.easeOut, 0, 1, 1, true)
}
// Scales All Thumbs from One point not individually :((