Sarah Jessica Parker has revealed that she reported a male co-star to her agent after his inappropriate behavior on set.

In an interview with NPR’s Fresh Air, which aired last Wednesday, the actress opened up about an on-set incident that made her speak to her agent and almost leave a project.

According to Parker, the co-star “was behaving, not only inappropriately, but perhaps even [she] would say, they weren’t living up to contractual obligations as well.”

“I think no matter how evolved or how modern I thought I was, I didn’t feel entirely in a position – no matter what my role was on set – I didn’t feel as powerful as the man who was behaving inappropriately,” Parker said. “Which strikes me as just stunning to say out loud, because there were plenty of occasions where it was happening and I was in a different position and I was as powerful.”

50 CELEBRITIES WHO DIED IN 2018 – TRIBUTE SLIDESHOW

“I had every right to say, ‘This is inappropriate,'” the actress continued. “I could have felt safe in going to a superior. And, in fact, I will say, when there was a situation with somebody and I did go to my agent because I felt I was no longer able to convey how uncomfortable this was making me, how inappropriate it was. Within hours everything had changed. He said to them. ‘If this continues, I have sent her a ticket, a one-way ticket out of this city’ where I was shooting ‘and she will not be returning.'”

Parker further mentioned that filming the remainder of the project was “perfectly pleasant,” but she did feel “safe and better” after talking to her agent.

She also added that she did not expect her co-star to change.

“The nature of the person who I felt was really the instigator, this was a grown man, a very big movie star and, you know, he was baked, meaning his personality, it was cooked,” she said. “He was a formed persona and that wasn’t going to change. But I felt certainly better and safer like I could finish what I had agreed to do.”

The actress also reflected on the #MeToo movement, where she explained that the movement opened her eyes to the way she had been treated by men in the past. More specifically, the way men in the industry have treated her.

“I would say, until about six or eight months ago that I started recognizing countless experiences of men behaving poorly, inappropriately, and all the ways that I had made it possible to keep coming to work or to remain on set, or to simply just push it down, push it away, find a little space for it and move on,” Parker said.

She noted that she didn’t allow her male co-star’s inappropriate actions “consume” her in the past.

“To be honest, I don’t know why I either wasn’t courageous or more destroyed by some of the things that I was privy to, that I was on the receiving end of.”

Tarana Burke founded the movement in 2006 but became more well-known in 2017 with the use of the hashtag #MeToo after the Harvey Weinstein allegations.