Re: [Flashcoders] Why would this happen?

2007-08-30 Thread mario gonzalez
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.

Re: [Flashcoders] Why would this happen?

2007-08-29 Thread mario gonzalez
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.

Re: [Flashcoders] Why would this happen?

2007-08-29 Thread Mario Gonzalez
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

Re: [Flashcoders] Why would this happen?

2007-08-26 Thread Rich Shupe
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 ___

[Flashcoders] Why would this happen?

2007-08-25 Thread Mario Gonzalez
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