I have some shaped created using flex primitive classes like ellipse , rectangle, path etc.
How can I find if a point is inside or outside these objects? (I need only the content area, not the transparent part.)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The hitTestPoint function is what you are looking for. Specify 3rd argument as
true,and it will do the trick.UPDATE: You need to wrap primitives by
Graphicelement, then perform checking with that element. Example: