When the whole of the ball crosses the line, it's time for a throw-in.
The assistant referee will hold up the flag in the direction that the team which is awarded the throw-in is attacking.
The assistant will stand at the point where the ball crossed the line.
But only if the ball goes out in the half of the pitch he is marshalling.