Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/neo4j/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript AdobeAIR:绘制矢量图形_Javascript_Air_Svg - Fatal编程技术网

Javascript AdobeAIR:绘制矢量图形

Javascript AdobeAIR:绘制矢量图形,javascript,air,svg,Javascript,Air,Svg,Air是否支持SVG,如果不可能,是否有其他方法通过JavaScript绘制事件敏感图形。Adobe Air有一个嵌入式WebKit,部分支持SVG 1.1作为Adobe Air应用程序中的替代渲染引擎,您可以使用Flash,这在很大程度上是基于矢量图形的。但我找到了一种在html上使用flash绘制矢量图形的方法 air.Shape = window.runtime.flash.display.Shape; this.shape = new air.Shape(); this.shape =

Air是否支持SVG,如果不可能,是否有其他方法通过JavaScript绘制事件敏感图形。

Adobe Air有一个嵌入式WebKit,部分支持SVG 1.1作为Adobe Air应用程序中的替代渲染引擎,您可以使用Flash,这在很大程度上是基于矢量图形的。

但我找到了一种在html上使用flash绘制矢量图形的方法

air.Shape = window.runtime.flash.display.Shape;
this.shape = new air.Shape();
this.shape = new air.Shape();     
this.shape.graphics.lineStyle(1,0); 
this.shape.graphics.drawCircle(0,0,200); 
this.shape.graphics.endFill(); 
window.nativeWindow.stage.addChild(this.shape); 

不幸的是,你错了。它基于webkit,但不会绘制svg。也许它会和Air2一起出现