hittest
Finding the irregularly-shaped subview that contains a point
My main view has several (perhaps many) polygonal active areas implemented as subviews. When the user touches the view, I want to identify if she hit one of those active areas.[详细]
2023-04-11 06:34 分类:问答How can I have a control return a hit from HitTest on a right click only?
I want to open a context menu when the user right clicks on an object but I want to pass all other mouse hits through it.[详细]
2023-04-10 16:12 分类:问答How to see if two shapes overlap
I\'m trying to write a simple firemonkey test app. I have a form, with a panel (align:= alClient). On the form are 2 TCircle\'s.[详细]
2023-04-10 07:33 分类:问答What is the preferred way to do a mouse rollover/rollout detection in Flash with AS3
Suppose we have a stage with two squares, like so: Suppose we\'d like the yellow square to be initially hidden, and we\'d like that as long as the mouse cursor is inside the bounds of the red square[详细]
2023-04-10 03:30 分类:问答Make hit test visible property different for grid rows
I have a grid that contains 3 rows, one of which contains a TextBox thats can be edited. The grid sits inside a paretn that provides drag functionality to enable it to moved around a canvas. In order[详细]
2023-04-09 20:14 分类:问答AS3 line of sight without using hittest object.
I\'m working on a game project, and I am working on the AI aspect of the game. I want the enemy objects to start aiming and shooting at the player when they are in sight of the enemy, and i came acros[详细]
2023-04-09 14:00 分类:问答How to scale polygons mapped to a resizeing picture
Im craeating a dart scoring program (to use myself in my dart room) and want the user to be able to click in different areas of a picture of a dart board to register the thrown darts.[详细]
2023-04-09 12:12 分类:问答How i can get hit test with image on canvas?
I create image in this way: var orc = new Image(); orc.src = \"./orc.png\"; I use image in objects like this:[详细]
2023-04-09 03:21 分类:问答Proximity 'Hit tests' from multiple arrays (Action Script 3)
I know this should be possible and Im pretty confident with my code. I have two arrays that are dynamically filled from another function. When two sprites from each array interact they should trigger[详细]
2023-04-07 05:46 分类:问答How to get the point of Visual HitTest when using a geometry as a hit test parameter
When you use a geometry for the hit test parameter is there a way to get the point of intersection (i.e. hit开发者_StackOverflow) between the two geometries, right now it only says that it has been hi[详细]
2023-04-03 08:14 分类:问答