0 Replies Latest reply on Jan 30, 2008 12:49 PM by Varangian

    the hitTestObject

      Hi all,

      I am probably asking in the wrong forum. But don't know where to ask. In ActionScript I got no answer.

      the myDisplayObject.hitTestObject(anotherDisplayObject) is supposed to return true if the first object hits the second object right?

      I have this scenario. In terms of Flex speaking.. I have lots of objects inside a Canvas. When one of these objects comes to contact with another object of the same Canvas the hitTestObject works. These objects are added in a separate method.

      However something strange I am finding is when I create an object and add it to the Canvas and in the same method check if the this newly created objects hits an object already added to the Canvas the hitTestObject doesn't work.. even though visually it is supposed to hit the object.......

      why is this happening? what's wrong?

      Hope this is in the correct forum...Thanks!