How to flash a sprint iPhone 4s to virgin mobile?

I need a step by step on how to "flash" this phone from sprint to virgin mobile. It is an iPhone 4s that I bought from somebody who previously used it on sprint and I'm trying to get it to work on virgin mobile. I'm very new to this and I need a lot of help.

You can't. You have to buy it directly from virgin mobile