How can i attach array objects to a curve while animating? i made an object and then applied the array modifier, then i attached it to a curve with the curve modifier, and it looks good but if i move the curve ( i need to animate it ) the spheres moves weird, apart from the curve...is there any way to fix this? :(

Thanks in regard.
parent the spheres to the curve so when you move the curve the sphere will follow
animate the curve using shape key