Well I'm calling getObjectsUnderPoint from the TileEngine. I could see
if i was calling it from the parent, or the document class, because
TileEngine would be a child of it.
However calling getObjectsUnderPoint, shouldn't return the calling
object since that object is not a child of itself.
Well I'm calling getObjectsUnderPoint from the TileEngine. I could see
if i was calling it from the parent, or the document class, because
TileEngine would be a child of it.
However calling getObjectsUnderPoint, shouldn't return the calling
object since that object is not a child of itself.
My TileEngine class does extend the display list, which is how I'm
calling 'getObjectsUnderPoint' as a method of TileEngine (by extension
if sprite).
The documentation states that, that method will return an array with all
the (and only) CHILDREN of the display object that calls it.
So if i
Probably your tile engine have extended Sprite or MovieClip and you added it
to the display list. Therefore, the tile engine as a whole is the parent
sprite/mc and the tile is a child of the tile engine. Could that be it?
Rich
___
Why might this happen.
I'm calling getObjectsUnderPoint, and it's returning the calling object
as part of the array.
---
this.getObjectsUnderPoint(new Point(10, 10));
---
called from the TileEngine instance returns this array:
--
[object TileEngine],[object Tile]
--
checking to see if it's
5 matches
Mail list logo