“The Flash” star Ezra Miller and “Harry Potter” alum Emma Watson really bonded while working on the movie “The Perks of Being a Wallflower,” so when Miller nabbed the role of Credence Barebone in the “Harry Potter” spin-off “Fantastic Beasts and Where to Find Them,” he immediately contacted Watson.

“Emma was the first person I called,” Miller said during a recent New York press conference, according to UPI. “I think, usually, if you know someone who has worked with anyone who you are about to work with, it seems rational to check in and find out what you are plunging into. And, fortunately, when I called Emma, I was given good news. She told me what a magical experience it was for her.”

Miller said Watson even gave him advice on how to best deal with director David Yates. Unlike other filmmakers, Watson revealed that Yates is unflappable.

“But, particularly, she tried to prepare me for the wonder of David Yates and help me understand,” he continued. “I asked her.... I was like, ‘Yeah, I met him and he seems so kind and calm, but when you start shooting that must all fall apart and he’s yelling at department heads to get the job done, right?’ And she was like, ‘Actually, Ezra, no, he will remain that calm through the entire production.’ Which is true and an amazing thing.”

Miller is such a huge fan of J.K. Rowling’s works, so being a part of “Fantastic Beasts” and having the chance to work with actors such as Eddie Redmayne (Newt Scamander) and Colin Farrell (Percival Graves) really meant a lot to him.

“I admire both of their work immensely. I think they’re both really brilliant, brilliant artists and yeah, it’s been really, really, fruitful,” he told Collider, adding that he is “super grateful to work with great actors. It makes it possible to slip deep into a world of illuminated fantasy.”

Meanwhile, the movie’s producer, David Heyman, promised that the film will still evoke the same level of awe and wonder as the first eight “Harry Potter” films. “The ‘Potter’ films and this film all emanate from a place of character. Newt is an outsider, a bit like all of [J.K.’s] characters,” he told The New York Times.

“Fantastic Beasts and Where to Find Them” will be released on Nov. 18. Actor Ezra Miller, pictured here at an Independent Spirit Awards event in Santa Monica, California, on Feb. 23, 2013, will star as Credence Barebone in the “Fantastic Beasts and Where to Find Them” movie this Nov. 18.Photo: Getty