Open source 3d engine, if you want it:
http://www.genesis3d.com/
Didn't really look much at it, but might work.
Read the lisence, looks good.
--EDIT--
Flash doesn't do 3d, as far as I know. Plus, it would be too hard to incorporate into a real game...