Using arduino as programmer for AVR2560

I am using AVR2560 for my small project, it is easier for me to program in arduino mega. Now i want to transfer this program to the standalone avr 2560 in my project circuit. How am I suppose to do it.

I tried all possible way posted in any form, but it is not working for mega 2560, like bit change for D8 to D9 and many more.

Please suggest me a easiest way out to program the avr 2560, while programming in arduino platform.

Please provide a detailed explanation of what you mean by "it is not working".