In the 2008 Iron Man movie, when Tony Stark returns from captivity he holds a press conference during which he states that Stark Enterprises will no longer be a weapons manufacturer. Initially this would obviously be stone walled by Obadiah Stane, but once he was dead Tony would have had greater opportunity to maneuver the company in the direction he wanted. Presumably Tony would have continued to push in the direction of no longer selling weapons.
Even assuming that Tony was unwilling or unable to stop all weapons manufacturing over night, adjusting internal production to one or more products or services that could come close to matching the profit flow of weapons sales and Defense contracts would seem a near impossible task. The only product I could see coming close to offsetting these losses would be the miniaturized Arc Reactor, but there did not seem to be any indication that these were being sold (Ivan Vanko having a similar reactor in Iron Man 2 was a surprise to Tony).
With all of that, and assuming a large portion of Tony's personal wealth was tied up in Stark Enterprises, how did Stark Enterprises manage to maintain a cash flow sufficient enough that Tony was able to continue funding construction and development of the Iron Man platform (on behalf of Stark Enterprises?), especially while launching a year long technology expo in Iron Man 2?
I am primarily interested in answers that are linked to the movies (as I am unfamiliar with the comic and cartoon lore), however, a canon answer from alternate media is welcome.