Check out the Kinematic 2D demo, that has a kinematic player and moving platforms, plus code to move you with them. You basically check to see if the player is colliding with a platform, and if they are, match their movement to the platform;
move(floor_velocity*delta)
Check out the demo script for a full example.