Dynamically creating MovieClips

Is there any way to create dynamic animations? Say if I’m creating a game and there might be multiple sprite sheets for different NPC’s, would I have to manually create the walking/whatever other animations manually? Or is there a way to do it in code?