Scroll Bar to a movie clip

hey all,

So far this site has been really helpful to me with the web page I am working on. But now I am stuck at a point where I could not find any help from the site or from my research in other links.

Basically,

I am trying to build a flash project, where I’ve added a number of Datagrids to a layer and I am using masking to show only a part of the layer.And I have added custom scroll bars to scroll through the layer.so far so good.

now when I am using the scroll bar the layer seems to scroll perfectly fine but the controls on the layer are just static. Is there a way to bind these controls to the layer and scroll the entire layer with the controls…correct me if I am wrong. I am new to flash…so any help will be greatly appreciated.