I have a TableView and I wish to be able to press several cells one after the other and have messages appear. At the moment the cells are often unresponsive. I found some coed for a similar problem someone was kind enough to post, however, although he claimed it worked 100% it doesn't work for me. The app won't even build. Here's the c...
Hi
I'm trying to have hitTest detect touches in a UITableView. Currently the didSelect method fails to react to numerous touches I want to ensure that every touch is detected especially as there are quite a few touches required before another view controller is pushed.I'm a total newbie to objective-C but I did manage to find a code sni...
I am trying to create basically a puzzle in Flex Builder 3. I display images from an array onto a canvas that can be dragged and dropped around the canvas. My problem is that I don't want the images to be able to overlap each other. Any ideas on how to prevent this??
They can overlap as you drag but not when dropped, they need to "snap...
I would like to design a PvP game uses flash in client and java socket server, but I do need server validates trajectory and if bullets hit target from cheating.
Is there any tutorial or paper provides how to do this ?
...
Hello,
when using OnRender to draw something on the screen, is there any way to perform Hit Testing on the drawn graphics?
Sample Code
protected override void OnRender(System.Windows.Media.DrawingContext drawingContext)
{
base.OnRender(drawingContext);
drawingContext.DrawRectangle(Brushes.Black, null, new Rect...
I am drawing 2 SVG paths much like Google Maps does with directions.
The problem I have is that the section of the first path that is overlapped by the bounding box of the second path won't fire the mouseover, mouseout or click events. Even though the event handlers are on the path dom element the events seem to fire when the mouse is ...
I am trying to implement what I used to take for granted in Winforms applications. I am a Silverlight noob, so hopefully all this is elementary.
I have a listbox in a Silverlight 4 app. I'd like to do the following:
Right-click on the listbox
Have the item under the location where I click highlight itself
I'd like a context menu to ...
I have some images drawn on a HTML5 Canvas and I want to check if they are hit on mouse click. Seems easy, I have the bounds of the images, however the images are transformed (translated and scaled). Unfortunately, the context does not have a method to get the current transform matrix, and also, there is no API for matrices multiplicatio...
I have a System.Windows.Controls.TreeView in my project, and when the user right click in it, I'm displaying a context menu. Since the context menu is built dynamically, I need to know the System.Windows.Controls.TreeViewItem that the mouse is hovering over.
How do I do this?
...
Hello.
I'm loading a flash file as a sub application to my main flex application.
The Flex application's stage is bigger then the flash i'm loading into it.
The flash application starts at top=300 and left=300 in the main flex application.
the flash file uses hitTest(_root.mouse._x,_root.mouse._y,true) to find out if the mouse cursor ...
I'm trying to hit-test a bunch of UserControls on a Canvas. I don't want the HitTest() to walk the whole way through the visual tree, so I'm using the FilterCallback to make sure I only hit-test the UserControl.
My problem is that the UserControl never hits, it should, but it doesn't. If I use the FilterCallback, I return that it hit ...
Hi,
Is there a way to know if the hitTest:withEvent: method is being thrown because of a touchesBegan, touchesMoved or touchesEnded event?
by now I only do:
if([event type]==UIEventTypeTouches)
{
}
but this is not exclusive enough
...
I have a UIView subclass with several subviews and I want to handle these events in the class:
touchesBegan:withEvent:
touchesMoved:withEvent:
touchesEnded:withEvent:
but I also want these event to be called at the subviews. How can I accomplish that?
(I have already tried with hitTest, but I only get the touchesBegan event and no t...
Ok, so my previous question did not produce any useful answers, so I'll try to come from a different direction.
My application has, potentially, several windows. Given a point in screen coordinates, I need to find which window it "falls" onto - i.e. find the Window that is foremost of all windows containing said point.
If they were Vis...
Hi,
I hava a MapView and I define a Rect. Touching the map I compare the coordinates to detect whether the rect is touched or not. But it does not work
RectF hitTestRecr = new RectF();
hitTestRecr.set(0,100,0,100);
hitTestRecr.offset(0,0);
if (hitTestRecr.contains(event.getX(),event.getY())) {
Toast.makeText(getBaseContext(), "hit...
I have a UIView subclass called Card that I move around on my board and drop on hot spots called slots. When I drop the card I use the hitTest to figure out if I am dropping the card on one of my hotspots. I want to get a property of that hot spot but I am having trouble getting that to work properly. My only guess is the hitTest return...
Trying to do hitTestObject on instances that are dynamically placed on the stage.
Receiving an error:
TypeError: Error #2007: Parameter hitTestObject must be non-null.
at flash.display::DisplayObject/_hitTest()
at flash.display::DisplayObject/hitTestObject()
at eatCircle()
ActionScript:
var circ;
var circle_ary...
By placing multiple instances of a MovieClip via linkage from the library, does anyone know how to apply hitTestObject on those instances?
I am creating a pacman style flash game in AS3. If anyone knows a good tutorial that might be helpful, feel free to let me know.
...
This is a slightly abstract question, for which I apologize. I am not necessarily looking for a specific tested solution, but rather some suggestions that I can experiment with to find the one that works the best. All suggestions are welcome - the more varied and creative the better.
Here's the problem:
I have a Silverlight TextBlock t...
I have the following user control: a dot and its name:
<UserControl x:Class="ShapeTester.StopPoint"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas...