Female filmmakers hope the R-rated comedy has proved to Hollywood that girls can be raunchy and funny — and make money at the box office.

Hollywood's a notoriously cutthroat place, but the all-girl ensemble film "Bridesmaids" has cast a mysterious, uniting spell over women in show biz who might otherwise see one another as rivals.

Weeks before the movie's May opening, female screenwriters, producers and actresses who had no connection with the R-rated Kristen Wiig film began beating the drums for it. Actress and writer Mindy Kaling ("The Office") asked her male fans on Twitter to take their girlfriends. Screenwriter Ellen Rapoport emailed her buddies, urging them to get out to the movie's debut. Writer-producer Kirsten Smith invited friends to a showing at the ArcLight Cinema in Hollywood — and even wore a bridesmaid dress.

"I took it too far," laughed Smith, best known for writing such female-driven material as "Legally Blonde" and "The House Bunny." "But it felt like something was afoot. It seemed like a political action. We needed the movie to succeed."

"Bridesmaids," which has grossed nearly $140 million for Universal since its debut, isn't the only R-rated comedy that women in Hollywood are rooting for this season: Next up are the Cameron Diaz starrer "Bad Teacher," opening Friday, and September's "What's Your Number?," starring Anna Faris. Female filmmakers are hoping that these movies, which center on flawed but empowered women behaving badly, will reverse a decade-old trend of reducing comedic roles for women to either the Type-A power suits too busy for love or girlfriends/wives determined to squash the boys' fun.

A key hurdle, though, to getting more female-driven comedies made is bringing the boys into theaters. While women often comprise at least 40% of the audience for male-driven comedies such as "The Hangover Part II," romantic comedies usually draw an opening weekend audience that is 80% female, according to Adam Fogelson, chairman of Universal. The rather raunchy "Bridesmaids," though, drew a more balanced crowd, beginning with a 65%-35% female-male split. And, he said, the audience "certainly didn't get more female over time. It got older over time."

Previous attempts over the last decade at imbuing raunchiness into comedies starring women have fizzled. The 2002 film "The Sweetest Thing," which also starred Diaz, made just $24 million, while "Spring Breakdown," with the Amy Poehler and Rachel Dratch, was never released theatrically by its studio, Warner Bros.

"As an actress who's been pitching a few different R-rated comedies around town, there's always a lot of resistance, because the thought is that women don't want to see other women being raunchy," said Faris, whose "What's Your Number?" centers on a thirtysomething woman who's slept with a lot of guys and is reluctant to add another to her list even though she desperately wants to find love.

"It's baffling to me. Now, we've got a little armor with 'Bridesmaids.' It's amazing for us as women, and as people in comedy, we'll be able to use this as a great example of why there is an audience — a huge audience. People want to see women doing interesting things."

"Bad Teacher" and "What's Your Number?" have commonalities with "Bridesmaids" beyond the R rating that may bode well for their chances at the box office. All were based on scripts that quickly caught fire and didn't go through lengthy rewrites with additional writers. They are all modestly budgeted, especially compared to an $80-million comedy such as "The Hangover Part II": "Bridesmaids" cost the most at $32.5 million; Sony's "Bad Teacher" was the cheapest at $19 million (Diaz took a giant cut from her typical fee). And they all either came with their lead actress attached or hired quickly.

"You want the film to be at a price where you can be as outrageous as possible," said Amy Pascal, co-chairman of Sony Pictures Entertainment, who priced "Bad Teacher" at the same level as a number of other R-rated movies for the studio, including "Superbad" and "Zombieland." "It doesn't need to appeal to everybody, but it will."

Hutch Parker, chairman of New Regency, which is behind "What's Your Number?," immediately sparked to the screenplay by Jen Crittenden and Gabrielle Allan (the script is based on the book "20 Times a Lady" by Karyn Bosnak). But he says it's one of only a handful over the last five years in this genre that have intrigued him.

"People are not writing this type of material in general," he said. "It may be because the cultural engineering of the town has long believed that there isn't a market for this kind of strong, liberated, but real female character."

Producer Jennifer Todd has been developing two projects in this arena for years. One, from writer-director Maggie Carey, will begin shooting this summer with "Parks and Recreation" star Aubrey Plaza, and is being financed entirely with independent money. It centers on a high-school graduate determined to acquire sexual experience before going to college.