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.
我想知道是否可以使用动作脚本动态更改框架中使用的“图形”。
我希望要么更改图形是一个实例的图像,要么更改我在当前帧中使用的图形。
干杯
另外:我可以为每个图形设置一个图层,然后使用动作脚本选择显示哪个图层吗?
在 AS 3 中,“图形”对象是只读的,因此您无法更改它。但是您可以使用graphics.clear();然后绘制另一个图像。
graphics.clear();