Gallery animated roll in and roll out

HI

I’m using flash animations, and I want to build by my self. I need help doing one thing I can’t understand.

In templatemonsters templates they build it in a efficient way.

You have the animation (roll in)
when you click a button the pictures goes out and the same animations in the begining takes the new foto and so on.

How can I do a movie clip with an animation, and inside that animation it tooks a frame inside it (in a other MC only with pictures in each frame), and when I click a button it changes between pictures using the first MC animation?

It is dificult to explain. If needed I can Post my templte code so someone can help me understand

thanks

jeans:jail: