Mouse move event when mouse out of stage.
Hi
I'm wondering how is this task done that listen to mouse move event when user cursor is out of stage?
Hi, kennethkawamoto2
I've tried in this way: use "stage.mouseX, stage.mouseY" these two values when cursor is out of stage, and it worked quite well till now,
If you mind discribe the issue that you've metion that " Flash does not report mouse location correctly beyond stage.." more in detail, I think I should avoid this. Thank you very much!
Similar Messages
-
XY graph "mouse move" event stops generating when click on cursor
Hello All
When the mouse is moving freelly inside the XY graph control, the "mouse movement" event is fired.
The same happens when muse clicks anywhere in the graph with the exception of cursors.
hen mouse clicks on cursors the "mouse move" event is NOT generated even though the mouse is phisically moved.
Is there any explanation to this.
I enclose the example.
regards
PawelJust today I had the same problem -> my solution:
set event timeOut to some value(I have it at 1ms) then
add to globalVariables some BOOL variable that will signal if mouse is down or up (set the flag in appropriate event),
then add a case in the timeOut event which will read this
global variable(flag) -> if it's TRUE then change the needed parameter.
So even if the mouse move event isn't fired the main timeout event is.
Not a perfect solution, but better than nothing.
Peace
Waldemar -
When "Log out after X minutes of inactivity" is on, and those X minutes pass by, my MBA logs out. After that, when I want to use it again, I found that display is totally black and if I use the touchpad, then I can start seeing "what is behind" that black screen (Login Window), like you can see on the picture:
I took it to Tech Service and they didnt find out any hardware issue. Any ideas?I recently found out that this only happens when DISPLAY is set to go to sleep minutes before the "Log out after X minutes of inactivity". I had "Display sleep" option set to 5 minutes and "Log out after 10 minutes of inactivity" and this causes the display to go to sleep first (screen goes black) and then, 5 minutes later, it logs out.
If "Display sleep" is off and "Log out after X minutes of inactivity" is on, the issue does not replicate. So Im thinking it has something to do with the screen being black at the moment it logs out. Can you try and replicate that?
I will be checking the thread you suggested and hopefully oudgrad1764 can find a solution. Thanks a lot. -
Image control mouse move event updates
I would like to drag the ROI around in the Image control (holding down the left mouse button) and continually read out the ROI coordinates. I can't find a way to do this: the mouse move event does not seem to fire if I hold the left mouse button down. I assumed that I would have
1. Mouse down when I click and hold.
2. Mouse move when I move the ROI around.
3. Mouse up when I release the left mouse button.
This does not seem to be the case.
I've done a simple workaround which is
1. Use the key up event to check that the space bar has been pressed.
2. Use this to toggle a "lock" boolean which locks the target to the mouse coordinates.
3. Use the mouse move event to return the Image Control Mouse Coordinates property.
4. Unlcok the target from the mouse coordinates by pressing the space bar again.
This kind of works, but it is much less intuitive than the standard windows "click and drag".
Any comments appreciated.
Thanks.
PS The Image Control is excellent, it has saved me lots of development time. Also, the ROI tools are hugely useful.If you filter the mouse down event (MOUSE DOWN?) then the coordinated are always returned on mouse move event weather the mouse is down or not. I did get the coordinates when the left button was down anyway it was just when the right button was down which the move event was not handled (due to the popup menu consuming the event first?) I thing there is a good way to do this with dynamic event registration, and NI has a similar example of drag and drop of controls, but I am not at my LV machine to look for it right now. If I am wrong I am sorry it is early and my coffee is not brewed yet.
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA -
User moves mouse out of dial while turning it
I have a user interface problem. I'm using dials to control scrolling and zooming in a graph. But it's very easy, as a user, to click in the dial and start dragging to turn it, but end up outside the dial. And then the dial never gets the Mouse Up event. I consider this a real oversight in the GUI toolkit design; most GUI toolkits always give a mouse-up to the object that got the mouse-down, regardless of where the mouse may be when the button is lifted.
But I'm stuck with what I've got. Has anyone found a nice way of dealing with this problem? Because sometimes scrolling the graph means loading new data from a file, and that is way too time-consuming to do dynamically every time I get a Mouse Move event.
KenSee the attached - as Ravens Fan says, the pane mouse-up event can be your friend.
I set a flag in the value change event to indicate when new values are arriving, but do no processing. When the mouse is released, the new value is displayed, but only if the new data flag is true. This means that the relevant code is executed regardless of where the user ends up with the mouse and only if they have changed the dial.
Attachments:
dial-mouse up event.vi 16 KB -
Problem with MOUSE OUT event in complex MCs
Hi,
I've got a problem with detecting mouse out event (AC3)
appearing when MC
contains other embeded MCs. The Event.MOUSE_OUT seems to be
unusefull
because every MC attached to parent triggers this event. I
can't turn off
mouse listening for these objects because they are a kind of
buttons
(thumbnails in picture gallery). So MOUSE_OUT event is
triggered even when
we are still inside parent MC. More over - MC has irregular
shape which
makes impossible to check mouse position and compare it 'by
hand' with
object with not rectangular boundary. Does anybody know how
to solve this
issue ?
Regards,
Marek> yes this is expected behaviour with MOUSE_OUT, which is
why there is
> another
> event ROLL_OUT, which as Flash help says, "...is to
simplify the coding of
> rollover behaviors for display object containers with
children."
Thanks a lot Craig !
Now it works fine. -
My mouse out event interferes with my "clicked" animation...
I created a page that contains several buttons. Whenever you mouse over any given button the graphic on the page updates to new information. Everything works fine at the level. Then, I created a click event on one of the
buttons, that makes an animation play on top of the information.
Everything works fine except whenever you click on a button, the animation will play...BUT as soon as the cursor "mouses out" (intentionally or not) the whole animation goes away and the page goes
to default ( as if you've moused out without ever have clicked the button )
I'm a complete newbie and know very little about Javascript and zero about jquery. I thought I could do a "workaround" and do it very simply but none of my "simple" solutions work.
I don't want to re-think or re-design the page but I may have to.
thanksWhat if I pasted into this email? (see below)
Adobe Edge Animate Composition Actions
Edit this file with caution, being careful to preserve
function signatures and comments starting with 'Edge' to maintain the
ability to interact with these actions from within Adobe Edge Animate
(function($, Edge, compId){
var Composition = Edge.Composition, Symbol = Edge.Symbol; // aliases for commonly used Edge classes
//Edge symbol: 'stage'
(function(symbolName) {
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 1845, function(sym, e) {
sym.stop();
//Edge binding end
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 1110, function(sym, e) {
sym.stop();
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "$", "mouseover", function(sym, e) {
// play the timeline from the given position (ms or label)
sym.play("trans1");
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "$", "mouseout", function(sym, e) {
// play the timeline from the given position (ms or label)
sym.play("trans3");
//Edge binding end
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 3435, function(sym, e) {
sym.stop();
//Edge binding end
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 2705, function(sym, e) {
sym.stop();
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "$", "mouseover", function(sym, e) {
// play the timeline from the given position (ms or label)
sym.play("child1");
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "$", "mouseout", function(sym, e) {
// play the timeline from the given position (ms or label)
sym.play("child3");
//Edge binding end
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 953, function(sym, e) {
sym.stop();
//Edge binding end
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 4190, function(sym, e) {
sym.stop();
//Edge binding end
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 4930, function(sym, e) {
sym.stop();
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "$", "mouseover", function(sym, e) {
// play the timeline from the given position (ms or label)
sym.play("rec1");
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "$", "mouseout", function(sym, e) {
// play the timeline from the given position (ms or label)
sym.play("rec3");
//Edge binding end
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 6200, function(sym, e) {
sym.stop();
//Edge binding end
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 5475, function(sym, e) {
sym.stop();
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "$", "mouseover", function(sym, e) {
// play the timeline from the given position (ms or label)
sym.play("eco1");
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "$", "mouseout", function(sym, e) {
// play the timeline from the given position (ms or label)
sym.play("eco3");
//Edge binding end
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 7438, function(sym, e) {
sym.stop();
//Edge binding end
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 6759, function(sym, e) {
sym.stop();
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "$", "mouseover", function(sym, e) {
// play the timeline from the given position (ms or label)
sym.play("progman1");
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "$", "mouseout", function(sym, e) {
// play the timeline from the given position (ms or label)
sym.play("progman3");
//Edge binding end
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 14877, function(sym, e) {
sym.stop();
//Edge binding end
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 8390, function(sym, e) {
sym.stop();
//Edge binding end
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 10076, function(sym, e) {
// stop the timeline at the given position (ms or label)
sym.stop(1000);
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "$", "mouseover", function(sym, e) {
// play the timeline from the given position (ms or label)
sym.play("ed_work1");
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "$", "mouseout", function(sym, e) {
// play the timeline from the given position (ms or label)
sym.play("ed_work3");
//Edge binding end
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 8975, function(sym, e) {
sym.stop();
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "$", "click", function(sym, e) {
sym.play("reveal");
//Edge binding end
})("stage");
//Edge symbol end:'stage'
//=========================================================
//Edge symbol: 'EarlyChildhood_yarn'
(function(symbolName) {
})("EarlyChildhood_yarn");
//Edge symbol end:'EarlyChildhood_yarn'
//=========================================================
//Edge symbol: 'Transportation'
(function(symbolName) {
})("Transportation");
//Edge symbol end:'Transportation'
//=========================================================
//Edge symbol: 'recandleisure'
(function(symbolName) {
})("recandleisure");
//Edge symbol end:'recandleisure'
//=========================================================
//Edge symbol: 'ecodev'
(function(symbolName) {
})("ecodev");
//Edge symbol end:'ecodev'
//=========================================================
//Edge symbol: 'prog_mang'
(function(symbolName) {
})("prog_mang");
//Edge symbol end:'prog_mang'
//=========================================================
//Edge symbol: 'KEY'
(function(symbolName) {
})("KEY");
//Edge symbol end:'KEY'
//=========================================================
//Edge symbol: 'earlychildspinner'
(function(symbolName) {
})("earlychildspinner");
//Edge symbol end:'earlychildspinner'
})(jQuery, AdobeEdge, "EDGE-4775192"); -
how can flex tell if it's a mouseup event when the user
releases the mouse button outside the flex application? Say for
instance mousedown was done within a 500x500 embedded flex app but
mouseup is outside or relased on the HTML background. One more
thing, when we have something draggable, Flex doesn't execute the
stopDrag() when the user releases the mouse button outside the
embedded swf or fles app. Pls. help me with this. Thanks!I don't think the flex app can tell what happens outside the
app. But it can detect when it leaves the app, so I have found the
following line works fine inside initApp():
this.stage.addEventListener(Event.MOUSE_LEAVE, yourFunction);
and you have to:
import flash.display.Stage;
Doug -
Hi,
I'm using flex through a plugin, and not though a browser (like most people do). For some strange reason my flex SWF doesn't receives mouse move events. I can get the mouse move events in the application that contains the SWF, and I can tell the SWF that the events has occured, using the externalInterface API.
Once I received a call that indicates a new mouse position, I want to mimick it as a normal mouse move event. Any ideas on a simple way to do this?
thanks in advance,
VinceIf you have the stage coordinates of the mouse, you can get pretty far by calling getObjectsUnderPoint and dispatching a MouseEvent from the last element in the array (converting the stage coordinates to local).
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui -
Dynamically register "mouse move" event for a VI
Just as in the example ”Dynamically Register for Events.vi” I want to dynamically register a “Mouse Move” event. I use the “Open VI Reference” to get the reference to the VI and I connect it to the “Register For Events” block just as in the example. When I click the block I get a list of events to choose from, but the “mouse move” event is not one of them. How do I select this event?
I have got the program running by copying the “Register For Events” block from the example and into my program, but I’m interested to know how this should have been done.
I use LabView 8.0I've had the same problem in LV 8.2.1 and 8.5. I found that NI changed how to access the mouse move... it's now available under "Pane." See my attached example, a modified NI Example.
Derek
Attachments:
Dynamically Register for Events - 8X.vi 44 KB -
After waking from sleep, my iMac (Lion) is unresponsive. The mouse moves, but when I click things it won't open them.
This has happened EVERY time the iMac goes to sleep for the last few days.. the only way I have found to resolve the issue is to manually restart the computer each time via the button on the back of the iMac.
Any and all help is appreciated!
ThanksFWIW, I never sleep my machines or their HDs, just their displays and never have an issue waking up the displays, usually run 24/7. Give that a shot.
-
How to execute a method on mouse move event on an Image
Hi All,
I want to execute a method on mouse move event or mouse click event to an image.
how can i achieve this?
TIA,
VishalI am not sure if commandImageLink or goImageLink solve your requirement.
But as a workaround you can use set of ClientListener and ServerListener with af:image to achieve what you need.
using then you can capture client event and convert that into server event which you can use to call a bean method.
Inside this bean you can call a web service or method binding.
My first link in previous post shows that very well....
OR
http://naive-amseth.blogspot.com/2011/02/calling-methodbindingwebservice-on.html
Amit
Edited by: amseth on Feb 15, 2011 12:25 AM -
When working mouse will randomly move even when I'm not moving it
When working on my computer my mouse will randomly move even when I'm not moving it. It is like I have a ghost mouse that is moving across the screen by itself. I checked and made sure screen sharing isn't on. It occurs randomly from what I can tell. It happened twice tonight where I'm on a window with my hand on the mouse and the cursor will move up to the top of the screen and then to the very left (which will turn on my screen saver). I will make me feel better if someone has seen this to. It happens very quickly and I can get control of my mouse. I have seen this off and on for a while. Anyone else?
I have the same issue.
It is a wired Mighty Mouse on a 24" iMac. My Macbook Pro with Wireless Mighty Mouse has never had an issue that I can recall, only the desktop.
It's pretty **** annoying to be fencing something in on Photoshop and suddenly your mouse is up in the corner of the screen and you've selected half your picture.
Anyone have any thoughts? What are the common denominators here?
As I said, 24" iMac running 10.5.5(although it has been happening since I purchased the computer somewhere around 10.5.3) Corded Mighty Mouse, Aluminum Keyboard. Can't think of any other relevant information.... -
How to deal with the mouse events when the thread is running
Hi everybody,
I have a problem with my program.
Now I want to present a picture for some time in the Canvas,then automatically clear the screen, but when the user press the mousebutton or keybutton, I want to stop the thread and clear the screen.
How can I receive the mouse event when the thread is running?
Thanks,I use my code in a GUI applet.
I try to use the code tag, it's the first time.
Image im=sd.getStimulus(obj);
if(pos==null){
g.drawImage(im, (w-im.getWidth(null))/2,(h-im.getHeight(null))/2,null);
}else{
g.drawImage(im, pos.x,pos.y,pos.w,pos.h,null);
try{
sleep(showtime);
// Thread.sleep(showtime);
}catch(InterruptedException e){}
if(pos==null){
g.clearRect((w-im.getWidth(null))/2,(h-im.getHeight(null))/2,im.getWidth(null),im.getHeight(null));
}else{
g.clearRect(pos.x,pos.y, pos.w, pos.h);
} -
Actionscript 3 / Firefox / Mouse release outside stage
So I need to be able to detect when the user releases the
mouse button outside the stage/movie bounds. I am using
Actionscript 3 / Flash 9.
Since onReleaseOutside was nixed, and setCapture is no longer
there now that Flash 9 is final, I'm using an event listener for
mouse_up on the stage. This works sometimes... but specifically not
when running inside Firefox 2.0 on a Mac..or when wmode is set to
something non standard (opaque or transparent running on
Windows/Firefox).
This is quite critical actually, pretty easy to repro,
assuming you have Firefox and MAC. Just drag a slider component
onto your stage inside a test app. Publish, then run inside the
browser. If you drag the slider, mouse outside the movie bounds,
then release..then mouse back over movie, the slider continues to
animate - thinking you still have the mouse pressed.
I've also tried inspecting the buttonDown property of the
mouse move event..but once you've released outside the bounds of
the movie - it's always true.
More info at
http://www.justsuppose.com
I'm grasping for straws..anyone stumble across a
workaround???
Thanks,
CoreyUPDATE: Stumbled upon a workaround after much trial and
error. At least until they fix mouse_up.
So considering the mouseLeave event... This event is
dispatched usually as soon as your cursor leaves the bounds of the
player window. But... if you've moused down first, then dragged
outside window, the mouseLeave is not fired *until* Flash is done
tracking. In other words, until the user lets go of the mouse
button.
So now I listen for *both* mouse up and mouseLeave on the
stage object and I can reliably (cross browser), detect when the
user has released the mouse button in the case the cursor is
outside of the stage. In this scenario I only attach the mouseLeave
and mouseUp listeners on the stage after the user has first moused
down. I then remove them once I've detected the mouse up.
Still hoping for a fix, but at least this provides an
alternative (albeit sneaky) work around.
Maybe you are looking for
-
X220 Problems after upgrade to Win 8 Pro
Hi all, Two weeks ago I upgraded OS on my ThinkPad X220 (model 428759G, BIOS 1.37) to Windows 8 Pro X64. After upgrade I did “factory reset” (function of Windows 8), because I preferred clean installation. Then there were installed all updates via W
-
The "Sent mail" folder on my iPhone does not syncronize with the "Sent folder" in Mail on my mac. I use a .Mac account. How can i resolve this issue??? Thanks in advance, J. iMac 20inch 2Ghz Mac OS X (10.4.10)
-
When I attach certain PDF files to an email, sometimes the first page is viewable in the email. How do I eliminate this?
-
Is this bug in java-provided utf-8 Charset ???
Here is the little code I've done: String serialisation = "myVeryComplexString ..." String coding = new String(serialisation.getBytes("utf-8")); String decoding = new String(coding.getBytes(), "utf-8"); I expected that "serialisation" and "decoding"
-
N95 Maps Program Help and Suggestions Anybody??
N95 Maps Program Help and Suggestions Anybody?? havnt updated to firmware v12 yet Why can't I search my Address or Current Location and then save this as HOME or say my Start_Point_01? I have managed to save my HOME as a PEOPLE LOCATION and my friend