How to stop (pause) Flipbook animation on fixed keyframe?

Hi!

Does anyone know why I can’t stop Flipbook animation by something like this?

	if (GetSprite()->GetPlaybackPositionInFrames() == 3)
	{
		GetSprite()->Stop();	
	}

Excuse me. Animation wasn’t stoped becouse its variable was reassigned after above code.