Hi Guys,
I want to create a photo album. I have 8 thumbnails (thumb_01, thumb_02 etc)
I want, when the photo album opens up, the thumbnails to appear with a Interval of .7 seconds and to rescale them from width and height 0, to width and height 80, with an elastic movement at the end ( maybe that they get a little bigger before they reach their final width and height.
I have the following functions:
for setInterval:
function showClips() {
if (clips.length) {
clips[0]._visible = true;
clips.splice(0, 1);
} else {
clearInterval(id);
}
updateAfterEvent();
}
var clips = [];
var index = 0;
while (index++<8) {
var clip = eval("thumb_"+(index<10 ? "0" : "")+index);
clip._visible = false;
clips.push(clip);
}
var id = setInterval(showClips, 700);
To scale the thumbs:
function scaleThumbs (total, width, height, speed){
for (var i = 1; i <= 8; i++){
this["thumb"+i].onEnterFrame = function(){
var endW = width - this._width;
this._width += endW / speed;
var endH = height - this._height;
this._height += endW / speed;
}
}
}
My problem is this: I miss the elastic movement in the scale function and I really don’t know how to combine these two functions. Is there somebody who can help me out?