I beg to differ.
Flange should be installed in towards the transmission, flat side should be outward. This provides correct offset so the chain line runs straight.
There is a big washer under the sprocket retention nut that seats against the flat surface of the sprocket.
At least that's the way I did it.