In a small saucepan, add flour to milk and bring to a boil. Allow to cool. In a medium sized bowl, blend butter and shortening for four minutes with electric mixer. Add sugar and beat four more minutes. Add cooled flour and milk mixture to butter mixture. Add vanilla. Beat until smooth.