Story highlights James Doohan played Scotty in the original "Star Trek" television series

His ashes are among those of 320 people in orbit on a rocket

The rocket eventually will burn up when it falls back into Earth's atmosphere

Some of Mercury 7 astronaut Gordon Cooper's ashes also are on board

In the end, it was Scotty who got beamed up.

The ashes of late actor James Doohan, who played chief engineer Montgomery Scott in the original "Star Trek" television series and a series of subsequent films, were on the SpaceX rocket that launched a private spacecraft into orbit this week

Doohan's character was referenced in the "Beam me up, Scotty" catchphrase associated with "Star Trek."

In various versions of the command, Capt. James T. Kirk, played by William Shatner, would ask his Scottish-descended colleague to activate a matter teleportation device that would transport Kirk or others to the starship Enterprise.

While it is unclear if the exact phrase "Beam me up, Scotty" ever was uttered in a "Star Trek" episode, it became a popular bumper sticker and Doohan chose it for the title of his autobiography published in 1996. He died in 2005.

Photos: Photos: SpaceX launches new era Photos: Photos: SpaceX launches new era SpaceX launches new era for exploration – The SpaceX rocket lifts off Sunday, October 7, marking the first commercial flight to the International Space Station. It was the first of a dozen NASA-contracted flights to resupply the station. Hide Caption 1 of 10 Photos: Photos: SpaceX launches new era SpaceX launches new era for exploration – People watch as the SpaceX Falcon 9 rocket and its unmanned Dragon capsule are readied for launch Sunday in Cape Canaveral, Florida. Hide Caption 2 of 10 Photos: Photos: SpaceX launches new era SpaceX launches new era for exploration – On May 22, SpaceX launched a successful test flight that attached a spacecraft to the International Space Station. It was the first company to do so. Hide Caption 3 of 10 Photos: Photos: SpaceX launches new era SpaceX launches new era for exploration – Dragon's recovery team poses in front of the first commercial capsule to reach orbit and return safely to Earth. Hide Caption 4 of 10 Photos: Photos: SpaceX launches new era SpaceX launches new era for exploration – The Falcon 9 rocket launches on May 22 in Cape Canaveral. Hide Caption 5 of 10 Photos: Photos: SpaceX launches new era SpaceX launches new era for exploration – This image shows how Dragon returns to Earth, under parachutes, to splashdown in the ocean, much like the spacecraft of Mercury, Gemini and Apollo. Hide Caption 6 of 10 Photos: Photos: SpaceX launches new era SpaceX launches new era for exploration – The Falcon 9 rocket awaits May's launch date. Hide Caption 7 of 10 Photos: Photos: SpaceX launches new era SpaceX launches new era for exploration – The first Dragon capsule to make it into orbit and return to Earth was launched in December 2010. Here, crews haul the charred capsule out of the ocean. Hide Caption 8 of 10 Photos: Photos: SpaceX launches new era SpaceX launches new era for exploration – SpaceX's Falcon 9, carrying a Dragon space capsule, launches from Cape Canaveral in December 2010. Hide Caption 9 of 10 Photos: Photos: SpaceX launches new era SpaceX launches new era for exploration – This rendering of the Dragon capsule shows the craft's solar panels fully extended. The capsule launched in May extended its panels in orbit. Hide Caption 10 of 10

JUST WATCHED What the SpaceX rocket will do in space Replay More Videos ... MUST WATCH What the SpaceX rocket will do in space 01:41

JUST WATCHED SpaceX rocket begins milestone mission Replay More Videos ... MUST WATCH SpaceX rocket begins milestone mission 03:07

JUST WATCHED Richard Branson talks SpaceX launch Replay More Videos ... MUST WATCH Richard Branson talks SpaceX launch 07:07

Celestis, a company that provides memorial spaceflights, confirmed that some of Doohan's cremated remains were among 320 sets on the SpaceX Falcon 9 rocket launched Tuesday.

In addition, a portion of the cremated remains of Mercury 7 astronaut Gordon Cooper also were on board, the company confirmed.

The Falcon 9 rocket, which carried up the SpaceX Dragon craft for a possible rendezvous this week with the International Space Station, is expected to remain in orbit for months until burning up when it falls back into the Earth's atmosphere.

"He would rather have flown when he was alive, of course," said Doohan's widow, Wende Doohan, who watched the SpaceX launch Tuesday with the couple's 12-year-old daugher, one of three children from a 31-year marriage.

Doohan always told her he wanted his ashes flown in space, she said Thursday, adding that the contract with Celestis was not signed until after Doohan died.

"He was this enormous fan of technology, future technology, space exploration, NASA and anything with mankind reaching out," Doohan said.

Doohan and Cooper's ashes also were launched in 2007, but that flight failed to make it into space.

Charles Chafer, the CEO of Celestis, said Thursday the remains aboard the Falcon 9 rocket came from 18 countries and included many people linked to the space industry, such as workers on the Apollo program.

According to Chafer, another celebrity whose remains were included was Randy VanWarmer, who wrote the song "Just When I Needed You Most." VanWarmer died of leukemia in 2004, Chafer said.

A common theme among those on board was their interest in traveling in space when alive, Chafer said, adding "but there's also a bunch of folks sort of new age; they wanted to be part of the universe."

In Doohan's case, timing led his acting career to the stars instead of the depths of the ocean, according to his widow. He read for parts on both "Star Trek" and "Voyage to the Bottom of the Sea," and got a call back first from "Star Trek" producer Gene Roddenberry, she noted.

"No one would know him today if he'd gotten the other call first," she said.