Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
该代码无法识别设置宽度命令:
hi.graphics.strokeColor(Color.Red, width: 5);
根据stageXL api,该width属性是一个可选的位置属性。所以你不必width:在方法调用中使用前缀:
width
width:
hi.graphics.strokeColor(Color.Red, 5);
有关详细信息,请参阅函数可选参数。
从 stageXL api你的代码应该是
hi.graphics.strokeColor(Color.Red, width = 5);
=不是:
=
: