How do you get jirachi in Pokemon FireRed?

In Pokemon ruby or sapphire get the rocket percentage to 99 and the count number (i think) to 9999 and it will blast you to space with the rocket. There you roam around until deoxys or jirachi appears. Then simply mirage (transfer) it to Pokemon fire red , emerald or leaf green etc.