Looking for a tute or some help re: movement of objects with AS

Hello,

I’d like to move a series of objects, nestled within two film clips on the main timeline, with a series of buttons, again nestled within two film clips on the main time line.

What I’d like to do is create an image frame that resizes to fit the image that is being displayed. So, for instance, if I press button 1, I’d like the frame to be 350px high…but when I press button 2 I’d like the frame to be 500px high…then I press button 8, and the frame goes to 400px high…then I press button 1 again and it goes back to 350px…and so on.

I’m thinking that this AS would need to be placed on the main timeline, on frame one. I’m also thinking that I would need to use the _root command to say where exactly the frames and buttons are…for example, _root.thumbs.button1 for the first button and _root.frames.frame1 for the first frame.

Oh, and the frames are only two horizontal lines above and below each image…not full square frames.

However, I have no idea how I would work this so that the frames don’t jump from one position to the other with no continuity. I’d also like to add a bit of easing out to the movement.

Does anyone know of any tutorials that are similar enough for me to be able to mould them to my needs?

Cheers