public void StopAnimating( bool resetAnim )
 {
     if ( m_AnimationTimer != null )
     {
         m_AnimationTimer.Cancel( resetAnim );
         m_AnimationTimer = null;
     }
     else if ( resetAnim )
         ResetAnimation( AttachedTo as Mobile );
 }
        public void StartAnimating( int action, int framecount, int repeatcount, bool forward, bool repeat, int delay )
        {
            if ( m_AnimationTimer != null )
            {
                m_AnimationTimer.Cancel( false );
                m_AnimationTimer = null;
            }

            m_AnimationTimer = new AnimationTimer( AttachedTo as Mobile, action, framecount, repeatcount, forward, repeat, delay );
            m_AnimationTimer.Start();
            m_AnimationTimer.RefreshAnimation();
        }