Dedicated to the Lord Jesus Christ Who loved us, gave Himself for us, and washed us from our sins in His own Blood; and to the Church, which is His body.

The way to walk in the spirit is by living, conducting our actions according to, and following the leading of the Word of God as quickened by the Holy Spirit. The Holy Spirit and the Word of God agree perfectly because the Holy Spirit is the one who inspired the written Word of God.
Denying the flesh will not result in walking in the Spirit. Walking in the Spirit will result in denying the flesh. This may seem like a subtle difference, but the difference is truly profound. 
As a whole, false religions teach that as we overcome our flesh, there is a noticeable increase in the presence and power of God in our lives. That was what the Pharisees of Jesus' day and the legalistic Jews of Paul's day taught. Just the opposite is true. As we experience more of the presence and power of the Spirit of God, then the influence of the flesh is decreased. 
Victory must come in this order. We don't walk in the Spirit as a result of overcoming the flesh, rather overcoming the flesh is the result of walking in the Spirit.
It's similar to how we fill a dark room with light. We don't shovel out the darkness and then light appears. No! We simply turn on the light and the darkness flees. Much of religion preaches to stop sinning (get rid of the darkness) and then the Holy Spirit will come and empower (the light will come). That's not the way it works. Man can no more get rid of the power of the flesh on his own than he can get rid of the power of darkness without light. We have to receive the work of the Holy Spirit in our lives by grace and then the union with the Holy Spirit breaks the power of the flesh. The key to breaking the control of the flesh is to use the power of the Spirit through faith, while the flesh is still causing us problems. Those who are waiting for the Spirit to manifest after they have subdued the flesh, will wait as long as the man who is trying to get rid of the darkness so the light will appear.