Text this: The flux homomorphism on closed hyperbolic surfaces and Anti-de Sitter three-dimensional geometry