if the platform moves it can go through the player. Then when you try to move the player it will get stuck. Moving platforms can be tricky. Search for haxepunk advanced platform engine. If I remember there is horizontal moving platforms there, could help. If not we need more details about of your implementation.