modded to enable h3d in openfl flash