So, I made this simple test class, main.as
package
{
import flash.display.;
import flash.text.;
import flash.system.Capabilities;
public class main extends Sprite
{
public function main()
{
var t:TextField = new TextField();
addChild(t);
t.autoSize = TextFieldAutoSize.LEFT;
t.appendText("flash version:" + String(Capabilities.version));
// t.appendText(" A flash 12 function:"+String(stage.stage3Ds[0].requestContext3DMatchingProfiles))
var s :Shape = new Shape();
s.graphics.lineStyle(2, 0x000000);
s.graphics.drawCircle(0, 0, 50);
var gd:Vector.<IGraphicsData> = s.graphics.readGraphicsData(false);
t.appendText(" IGraphicsData:" + String(gd));
}
}
}
and compiled with flex_sdk_4.6\bin\mxmlc.exe using options
-compiler.verbose-stacktraces -compiler.strict=true -debug=true -output=“main.swf” -target-player=15.1 -compiler.show-actionscript-warnings=true -static-link-runtime-shared-libraries=true main.as
and dragged the resuling swf over flashplayer_15_sa_debug.exe, which opens a flash window that says “Adobe Flash Player 15” at the top, gives the same old error message, and the textfield has the text “flash version:WIN 15,0,0,189”
Notice in the class I posted there is also some commented out code t.appendText(" A flash 12 function:"+String(stage.stage3Ds[0].requestContext3DMatchingProfiles)). If I uncomment that line then I get an error saying
ReferenceError: Error #1069: Property requestContext3DMatchingProfiles not found on flash.display.Stage3D and there is no default value.
I did that just to check if the problem was specific to readGraphicsData or not.
Still at a loss as to what could be wrong, but think it has something to do with my compiling. It is not urgent luckily though, as this is just for a personal project I’m playing with. I’ll try compiling with the flash IDE on a work computer when I get home (currently on the road with only a personal laptop, which only has cs4 and flex) to see if that resolves the problem.