Casey Affleck has apologized for the "unprofessional environment" he created on the set of his 2010 film "I'm Still Here".