/ Root Cellar Remodel, Split Level Storage, Shop, Shed Pole Building on a Foundation
#111
Wall #2 is up.
Suggestion: Install the door header up tight under the plate, and just frame a 2x4 over the door. That way if you screw up it's easy to modify the height. Not so big a deal on a door, but if it were a 14' wide sliding patio door, you'd be kicking yourself. If you have the header there it's really tough to fix a wrong height. It also gives more solid support to the rafters, which is what you really care about anyway.
Ok, since I spoofed you on your flashing question, the least I can do is make things right and get you pointed in the right direction.
This website is a pretty good instructional on proper flashing techniques. I think after you review you will have a good idea what your situation needs based on the type of window you are installing.
Installing and Flashing Windows Correctly - Fine Homebuilding Article