Use Function with UIscrollbar?

Hi

i have a problem:

when using the UIscrollbar with dynamic content, “myFunction” will not work?

Exampel: if I use the dynamic scroller.fla from this site, were would i put the Function script?

best regards
rickard andersson