Cook milk and flour until thick. Then whip sugar, butter, vanilla and flavoring. Add to cold flour mixture; cream until smooth. Spread over layers and outside of cake.