A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [RESOLVED] Simple hitTest

Threaded View

  1. #1
    </hate> dtone314's Avatar
    Join Date
    Jun 2005
    Location
    CA
    Posts
    262

    resolved [RESOLVED] Simple hitTest

    I am having trouble getting a hitTest to work. My two MCs are lines, one horizontal, one slanted. When the horizontal line gets within the "bounding box" of the slanted line the hitTest is true, but it's not touching the slanted line yet.

    I saw that the shapeFlag property comes into play here, but only when using coordinates... I'm not sure how to apply it to these two lines. I want the hitTest to be true only when the lines actually touch. I have attached a simple FLA of the problem. What am I missing here? Thanks for looking.
    Attached Files Attached Files
    -dtøne-
    Flash CS4 | AS2
    Life is a journey, not a destination.

Tags for this Thread

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