assassasshole99 0 Newbie Poster

Hi, when I change an animation on the player, it flashes before it changes. The method I'm using to change the animation is crude, but its all I know, so I don't even know if there's a better way. I made a player class, and I have a function to change it, all it does is store the x, and y values of the previous animation to a buffer, then delete the first animation, replace it with the new one(which puts it on x, and y coordinates of 0,0), then replace the new coordinates. A simpler and probably better way to do this is by making the layer not visible, but flash doesn't allow programmically changing layer visibility.