Mexico did not always go by Mexico. When Mexico and parts of central United States were claimed by the Spanish it was called Viceroyalty of New Spain. Natives in the area had always called their homelands Mexico, though. The offical name of Mexico was actually drawn from it's Aztec roots. The Aztec capital was called Mexico-Tenochtitlan, which is now modern day Mexico City; this densely populated city was actually where Mexico got it's name instead of the other way around. The Mexican flag consists of three main colors. These colors are green (left) white (center) and red (right). In the center there is an eagle killing a rattle snake which represents victory.
I hope this helps. If you have any questions please let me know!