dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: point hitTestObject

  1. #1
    I'm not Crazy :D
    Join Date
    Nov 2015
    Location
    Brazil [<o>]
    Posts
    86

    point hitTestObject

    Hello, how I can detect if "myPoint" hitTest a object?

    Code:
    var myPoint:Point = new Point(exampleX, exampleY);

  2. #2
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,773
    Take a look at the code from the answer https://stackoverflow.com/questions/...est-points-as3
    .

  3. #3
    I'm not Crazy :D
    Join Date
    Nov 2015
    Location
    Brazil [<o>]
    Posts
    86
    I tested the code, but it is returning false even if is there a object in the "coordinate target".

    Code:
    trace(hitTestPoint(x, y + 23, true));
    and also

    Code:
    trace(hitTestPoint(x, y + 23));
    Last edited by CrazY.; 10-22-2018 at 09:08 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center