0 Replies Latest reply on Jan 29, 2008 6:01 AM by Varangian

    hitTestObject problem

    Varangian Level 1
      Hi all,

      the myFooTestDisplayObject.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!