NEW YORK — Stocks that moved substantially or traded heavily Friday on the New York Stock Exchange and the Nasdaq Stock Market:

NYSE

Tempur Sealy International Inc., down $4.91 at $37.05

The mattress company posted a quarterly loss and cut its outlook for the year because of weak sales in North America.

W.P. Carey Inc., up $3.08 at $70.89

The real estate investment trust is buying Corporate Property Associates 16 - Global Inc. in a deal valued at about $4 billion.

Nasdaq

Starbucks Corp., up $5.19 at $73.36

The coffee chain's profit climbed 25 percent in the latest quarter as its coffee costs eased and more people came to its cafes.

Zynga Inc., down 49 cents at $3.01

The maker of online games "Farmville" and "Mafia Wars" is dropping its plans to pursue online casino-style games in the U.S.

Expedia Inc., down $17.80 at $47.20

The online travel company said that its second-quarter profit fell by one-third. The company has been hurt by increasing competition.

LogMeIn Inc., up $1.69 at $30.01

The company, which operates a service that lets people remotely access their computers, posted second-quarter adjusted results that topped expectations.

Deckers Outdoor Corp., down $5.32 at $53.55

The footwear maker said that its second-quarter net loss widened, hurt by lower sales of its Ugg sheepskin boots and Teva sandals.

Activision Blizzard Inc., up $2.28 at $17.46

Vivendi SA said that it is selling most of its majority stake in video game maker Activision Blizzard Inc. for $8.2 billion.