How do you catch arereus in diamond?

you get the mystery gift then you go to any pokemart and there will be a guy wearing green go up to him and he will give you the azure flute, then you go to the top of mt cornet go outside look in your bag and play then there will be stairs in front of you go up and save before you get to the very top