mouseevent

Reset button AS3

For a class project I have made a clean the ocean "hidden pictures" game with as3, and when you click on a hidden picture it highlights it and in the legend, moves the object in the legend to a "trash bin". All this was done pretty easily, but now comes to making the game restart... Since all the animation in this project has to done i...

JFreeChart get mouse coordinates

Is there a way in JFreeChart to determine from a ChartMouseEvent that x,y coordinates (in plot space) the mouse is over? I've tried using the domain crosshair value but that seems inaccurate and lags the actual mouse event. thanks, Jeff ...

Get drag event from flash object in javascript?

I'm trying to make a draggable instance of FlowPlayer using jQuery, but I can't get any mouse events to work over the Flash object. If wmode is 'opaque' or 'window' I only have mouse events working inside the flash object, whereas with wmode set to 'transparent' I get the mouse events in jQuery but not in the flash object...does anyone ...

Handling mouse events in javafx

Can i set a function when creating an object like i can with variables? Given i have a container class and a CustomButton class: function doSomething():Void{} var button:CustomButton = CustomButton{ posX : 50; posY = 100; onMouseClicked: doSomething; } Short story: i need the main container object to handle mouse events th...

Draw object in opengl depending on x,y coordinate given by various input devices

I have multiple input devices and I want to create a cursor for each one. I'm given x and y coordinates, and I want to draw it on the screen. How do I calculate the x,y when using glTranslatef? ...

how to access the datagrid in one mxml in another component?

I have a datagrid in my mxml file, say, samp.mxml. <mx:DataGrid id="taskDataGrid" dataProvider="{initDG}" variableRowHeight="true" editable="true" width="100%" paddingBottom="1" paddingTop="1" height="55" > <mx:columns> <mx:DataGridColumn dataField="Select" editable="true" rendererIsEdito...

Detect Mouse leave stage while dragging in Actionscript 3

Event.MOUSE_LEAVE is great in Actionscript 3, but it doesn't seem to fire if the user is holding their left (or right for that matter) mouse button down. Is there a way to detect if the mouse leaves the Flash movie while the mouse is held down? Or if it is released outside the flash movie? ...

Waiting for mouse input in Java Swing

I'm working on a Java Swing application. I have a button whose action runs a query on a database and then plots the results. These commands are performed from the listener on the Run button. As I understand it, this means that the thread running at this point is from the EventQueue. Given certain input, I need to halt processing an...

capture mouse position on setInterval() in Javascript

I have a function in javascript that moves one div depending on the mouse position. This function is set on a setInterval() function and executed every second. I need to capture the mouse position like this: function mousemov() { document.getElementById("myDiv").style.left = Event.clientX; //don't work } window.onload = function() { ...

PreviewMouseRightButtonUp does not fire when Context Menu is open

If I right-click on an Image I get the following events (shown in order): 1) MouseRightButtonDown 2) PreviewMouseRightButtonUp 3) MouseRightButtonUp At this point my Application displays a context menu. If that is open, and I right click on the image again I only get this event: 1) MouseRightButtonDown Nor sure what to do to get t...

Lag problem with jQuery focus() and blur() events.

I'm attempting to create a navigation menu that uses some jQuery. I wanted keyboard users to be able to have the same experience as mouse users, so I'm duplicating the functionality found in my hover() event handler in my focus() and blur() event handlers. For some reason, this is causing noticeable lag in Firefox and IE when the user cl...

Graphic added over button is my blocking MouseEvent why?

Hi everyone my problem today is I have a couple of buttons that slide up and down, when in the up state I add an X graphic to symbolize a a close button. However the X graphic seems to be blocking my button action. I have an example in the movie I've been working on >> here <<. There are 2 movies here, the big one if you click either ...

How to make an object be ignored and letting mouse evnets pass through?

Hallo, I been having this problem for a while and I have no idea how to solve it. I have a flash game (very much like a normal memory game) that has a lot of Movieclips in it that has MouseEvents attached to them. But, when I add a bitmap over the stage (used for covering lots of unwanted things and has to be there) that is the full siz...

Why does GroupBox not have a MouseMove event?

The WinForms GroupBox control doesn't support MouseMove (or at least, not consistently), and I don't understand why. Since it descends from Control, it does have a MouseMove event, but GroupBox explicitly reintroduces it with Browsable(false), so it's not shown in the Property Grid. You can hook the MouseMove event at runtime, and somet...

Do controls in Firefox receive mouse events when their CSS visible property is false?

I'm having a problem with FIREFOX. I have an invisible list control over a drop-down control (html 'select'). Don't mind why, but I will say that the over-layer is a pop-up that appears as part of another custom control. Even though it's hidden, it's preventing me from clicking on the underlying drop-down control, making the underlyin...

Swing won't trigger mouseEntered/mouseExited properly after mouse wheel events?

I have an issue where Swing (in Java 1.6, Windows) doesn't seem to trigger mouseEntered and mouseExited events the way I want it to. I have an application where I wish to have a number of JPanels stacked vertically in a JScrollPane, and that they should be highlighted with a different colour when the mouse is over them. Simple enough pro...

How to catch onmouseleave event for TDateTimePicker component in Delphi 7

I need to detect OnMouseLeave event for TDateTimePicker component, but it doesn't contain such event in events list. Is there a way to detect it manually? ...

Mouse events on an SWT Scrollbar

Using standalone SWT Scrollbars is something of a hack (using this workaround), but it can be done. Here's a snippet: ScrolledComposite scrolledComposite = new ScrolledComposite( parent, SWT.V_SCROLL); ScrollBar scrollbar = scrolledComposite.getVerticalBar(); Shell tip = new Shell(UserInterface.getShell(), SWT.ON_TOP | SWT.NO_FO...

Receiving an (unwanted) mousemove event when clicking on an image

I have a html page, on this page there are some images, when the user clicks on one of these images, a different image replaces it. <img style="cursor:hand" src="../_Img/click_me.png" onclick="ChangePic();"> The ChangePic() function: function ChangePic() { var el = event.srcElement; el.src = '../_Img/Clicked.png';} I also have a l...

Handle tilt left / right in WPF

How can I handle tilt left or tilt right mouse event in WPF? ...