But we were told that flying such lanterns would definitely violate a Gilbert ordinance. The lanterns also are prohibited by Phoenix fire code, a city of Phoenix website states. Like tiny hot-air balloons, the lanterns use a candle or other flame source to create lift. They sure look neat.