Movieclip resize effect

Hello friends,

need a small help…

have been looking at few slideshows where you click a thumb image… then a there is a movieclip which shows “loading” … then the movieclip resizes with tween… the on tween complete the images becomes visible.

cant understand how it is done. do i have to do something special in designing the movieclip ?

because when i load a image… the movieclip will immediately resize instantly when the image loads completely.

so any design issues or scripting issue… ??

thanks in advance

I dont have an AS answer but try using photoshop cs3 webphoto gallery and then study the js files that it automatically exports for you. i dont know that might help.

they often use a tween class, such as the built in. But the the built in tween class sucks.
but this is about how they write to get them to tween from one size to original size:

Tween(target,"_width",None,0,target._width,2,true)

this will tween the target from width 0 to its original width.

try this guide, in this guide to lot of motion, use edit it so it will use width and height :):
http://www.kirupa.com/developer/actionscript/tween.htm

Thank you…

Willl try and let you know…