HaxeFoundation/haxe — pull request #2954 by juakob (2014-05-04 01:56:52+00:00)
Title: Suport 3d profile for targets before flash 11.4

Flash GetContext3D is written in such a way that it has no dependencies and doesn’t even need you to compile your SWF for Flash Player 11.8 (extended profile support) or Flash Player 11.4 (constrained profile support). You can compile for any version of Flash Player starting at the first one to support Stage3D and Context3D at all: 11.0.

The change makes possible to target 11.0 and pass the Context3DProfile as just the string without getting an error. If we have Constext3DProfile as a enum we need to target at least 11.4.

Enums in general are better options but in this case, they are creating an undesirable constraint.