Hello guys! i've been working some decent time in Game-Maker, about 4 years, I recently started new project in flash cc.

I have the character from top down view, I wanna test Movement, that if X or Y is higher or lower than 0, the animation will go , else he wil stay at frame 0, so I did in main.as file:

Code:
if (xspeed > 0) { player.gotoAndPlay(0);  } else { player.gotoAndStop(0); }
if (yspeed > 0) { player.gotoAndPlay(0);  } else { player.gotoAndStop(0); }
if (xspeed < 0) { player.gotoAndPlay(0);  } else { player.gotoAndStop(0); }
if (yspeed < 0) { player.gotoAndPlay(0);  } else { player.gotoAndStop(0); }
its in ENTER_FRAME Event, i have also movement there, everything works fine, except animations, just stops at 0. frame, and wont go to next.

Thank you so much for your time guys!