1.
2,
| getObjectsUnderPoint() |
Returns an array of objects that lie under the specified point and are children (or grandchildren, and so on) of this DisplayObjectContainer instance. |
| contains() |
Determines whether the specified display object is a child of the DisplayObjectContainer instance or the instance itself. The search includes the entire display list including this DisplayObjectContainer instance. Grandchildren, great-grandchildren, and so on each return |
本文介绍 Flash API 中 getObjectsUnderPoint() 和 contains() 方法的使用。前者返回指定点下属于 DisplayObjectContainer 实例的对象数组;后者判断指定显示对象是否为 DisplayObjectContainer 实例的子对象或实例本身。
628

被折叠的 条评论
为什么被折叠?



