News Corp. ( NWS) swung to a profit in its fiscal third quarter, boosted by gains at its television and film divisions.

The company posted a profit of $275 million, or 21 cents per American Depositary Receipt, compared with a loss of $4 billion, or $3.16 per ADR, in the year-ago period. The company attributed last year's loss to a one-time $4.1 billion charge related to its investment in Gemstar.

News Corp., which is controlled by Rupert Murdoch and owns the Fox television network, 20th Century Fox film studios and several satellite and newspaper properties, reported revenue of $4.4 billion for the quarter, a 14% increase over $3.8 billion in the year-earlier period.

Operating income for the company's television segment was up 82%, thanks in large part to the high ratings posted by primetime shows like "American Idol" and "Joe Millionaire." Its filmed entertainment business posted a 24% increase in operating income due to strong home video sales.

"Revenue and operating income growth of 14% and 25%, respectively, despite the economic impact of the war in Iraq, speaks to the underlying strength of our core assets," said Murdoch in a statement.

Fox Entertainment Group, which holds the company's U.S. entertainment assets and is 80.6% controlled by News Corp., reported a profit of $276 million, or 31 cents a share, beating Wall Street's expectations.

The magazine and book publishing arms of the company posted small gains, while the newspaper unit's operating income slid 8.7% to $115 million.

The company's shares were up 2% at $30.07 in afternoon trading.