flash as3中关于this和root的问题

flash as3中关于this和root的问题flash as3时间轴中this===root为true,但为什么this.getChildIndex()可用,但root.getChildIndex()就会报错?不是同一个引用吗?
2026年09月24日 15:27
有2个网友回答
网友(1):

root一般不用了,反正我是as3里没用过这个东西。

网友(2):

这样写就行了MovieClip(root)