fixed #3476

            1.  remove unused  do  while(0).
            2.  change  addAnnimationEventCallBack to add AnimationEventCallBack.