How to put animations in a list and use them

look at my code, im trying to put animations in a list so i can use them for a sprite and i did this but its not working

its not working, can anyone tell me why pls?

Nothing I can see appears wrong, so either 1. share your project or 2. show what the error is (by clicking the triangle).