javascript - Adobe 空气 : draw vector graphics

标签 javascript air svg

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

最佳答案

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

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); 

关于javascript - Adobe 空气 : draw vector graphics,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1524676/

相关文章:

javascript - 将 Angular 与 D3 库集成

javascript - 这个 && 运算符在这段代码中的作用是什么?

javascript确认不会停止提交表单

javascript - Mocha 和 Sinon 测试 Promise 超时

javascript - 数组长度不随 .push() 增加

apache-flex - 如何摆脱 "multiple describeType entries"警告?

javascript - 在 SVG 线性渐变停止偏移中绑定(bind) Angular2 值?

ios - 如何从 Flex 移动应用程序 (AIR) 中确定 IOS 版本

flash - as3 : how to emulate MouseEvents?

html - SVG 圆环图未显示在电子邮件中