In a small saucepan, mix milk into flour gradually to prevent lumps. Cook, stirring constantly over low heat until thick. Cover with waxed paper and cool completely or set in bowl of ice water and stir until cooled.
In mixer bowl, combine shortening and margarine, beat 4 minutes. Add sugar; beat 4 minutes. Add cooled paste and vanilla and beat well.