LAS VEGAS (AP) — A 23-year-old blonde from Brooklyn, N.Y., won the Miss America crown Saturday night after deftly dealing with a question about armed guards in schools and raising the issue of child sexual abuse in her contestant platform.

En route to her victory in the Las Vegas pageant, Mallory Hagan also tap danced to James Brown's "Get Up Off of That Thing," strutted down the runway in an asymmetrical white gown, and donned a revealing black string bikini.

She defeated Miss South Carolina Ali Rogers, who took second, and Miss Oklahoma Alicia Clifton, who finished third.

Hagan wins a $50,000 college scholarship and a year as an instant celebrity and role model to many girls. Her platform, the issue she will promote during her reign, is fighting child sexual abuse.

She told The Associated Press in an interview after her win that it was her mother who encouraged her to tackle the issue. She said that sexual abuse had "rippled through" her family, touching her mother, aunt, grandmother and cousins. Her mother had trouble at first convincing others of the trauma she had faced.

"That kind of sent her into a whirlwind of anxiety and depression. So as a teen I lost my mom kind of for a couple years," she said. "She was dealing with her own issues, and that's something that now as an adult I understand, but then I certainly did not."

Hagan said she will work to make child abuse education mandatory in all 50 states.

"It's something I can hopefully change for the next generation," she said.

Hagan left her native Alabama for New York at 18 with less than $1,000 in her pocket. She began competing in pageants when she was 13 and tried for Miss New York in 2010 and 2011 before winning last year.

She studied communications at the Fashion Institute of Technology and has been living in the Park Slope neighborhood of Brooklyn.

Miss South Carolina Ali Rogers competes in the evening gown portion of the Miss America 2013 pageant on Saturday, Jan. 12, 2013, in Las Vegas. Rogers was named first runner-up. (AP Photo/Isaac Brekken)

Hagan, who aspires to be a global cosmetic company executive, ends a long dry spell for New York in the competition. The previous winner from that state was actress Vanessa Williams, who became the first black winner when she took the crown in 1984. Hagan is the first Brooklyn-dweller to claim the title.

She was good enough during preliminary contests for the 92nd annual Miss America pageant to be chosen as one of 16 semifinalists who moved on to compete in the main show. Her bid lasted through swimsuit, evening wear, and talent competitions that saw cuts after each round.

In the final moments of the show, "Good Morning America" weatherman Sam Champion asked her if schools should hire armed guards in the wake of the Newtown, Conn. shooting.

"I don't think the proper was to fight violence is with violence," she replied. "I think the proper way is to educate people on guns and the ways we can use them properly. We can lock them up, we can have gun safety classes, we can have a longer waiting period."

Hagan defeated titleholders from all 50 states plus the District of Columbia, Puerto Rico and the U.S. Virgin Islands. Several of her competitors had grabbed headlines this year because of their backstories.

Miss District of Columbia plans to undergo a preventive double mastectomy to reduce her risk of breast cancer, which killed her mother and grandmother.

Miss Montana was the pageant's first autistic contestant. Miss Iowa has Tourette's syndrome. And Miss Maine lost more than 50 pounds before winning her state crown.

During the opening number at the Planet Hollywood Resort and Casino on the Las Vegas Strip, when all the queens gave short quips about their states, Hagan referenced last year's superstorm, saying, "Sandy may have been swept away our shores but never our spirit."

The pageant, which started as little more than an Atlantic City bathing suit revue, broke viewership records in its heyday and bills itself as one of the world's largest scholarships programs for women.

But like other pageants, the show has struggled to stay relevant as national attitudes regarding women's rights have changed. More recently, the rise of reality television has provided a superabundance of options for Americans interested in seeing attractive young people in competitive pursuits.

Hagan's boyfriend Charmel Maynard said he knows that pageants are dismissed by some, but he hopes Hagan's willingness to take on the sexual abuse issue will lend legitimacy to her new role.

"I don't think it's taken seriously, but I think she's going to be a great ambassador and it could change," he said.