Running animation properly

Godot Version

4.4

Question

I am getting some problems about how to design each frame within an animation. I am concerning about the ATTACKING animation; following there are the sprites i am using:

when I play the animation It looks like just he 0th frame is displayed ans suddenly animation ends

I got to try the following code:

if attack == true and is_on_floor() and anim_Sprite2D.get_animation() != "ATT":
			
		anim_Sprite2D.play("ATT")

but It keeps stoping to the first frame..

I tryed to access to the method:

func _on_animated_sprite_2d_animation_finished(animation_name):
	        print('xxXXxxXX')
		print($AnimatedSprite2D.animation)

But nothig is printed…It looks like the funtion never get called…

So it’s not animating at all? Just stuck on the first frame?

Does the animation play in the editor?