Hi guys. I develop web game with flash and starling, and got an error when try to run my app with Flash Player 11.1:
Context3D error: Error #1063: Argument count mismatch on flash.display::Stage3D/requestContext3D().Expected 0, got 2.
When go deeper and find out that in Flash Player 11.1 requestContext3D takes no parameters, i add verification
var versionNumber:String = Capabilities.version;
var params:Array = versionNumber.split(",");
if (params[1] < 3)
stage3D.requestContext3D();
else
stage3D.requestContext3D(renderMode, mProfile);
.
How do you think is it good solution?