Dynamic of a flexible four-bar mechanism