Hayley Atwell got Joss Whedon drunk to secure a cameo in 'Avengers: Age of Ultron'.

The 32-year-old actress confessed she got given the role after enjoying a night out with the film's director, during which both of the stars drank lots of alcohol.

She said: ''It's a lovely cameo ... If Joss is telling the truth ... he gave me that part based on a drunken night out in Blacks in Soho! We just met for a drink and he said, 'I think I might write a scene for you!' So befriend your director, get him drunk ... and that will give you a bit of a career.''

The small role follows her 2011 Marvel film debut in 'Captain America: The First Avenger' as Peggy Carter, since which she has also starred in 'Captain America: The Winter Soldier' and TV series 'Agent Carter', and although she is now comfortable appearing in the blockbuster films, she admitted she consciously avoided Hollywood movies before she was approached by Marvel.

She explained to Total Film: ''A young actresses' greatest fear is getting a job, but then having to fly to LA, working all the hours God sends, being told to lose weight, go on a strict diet, all that boring old bulls**t.

''It's all about what you look like - here's the script, here are the lines, here's the director, do what we say, then go home.''