Mouse Move - Track X / Y

Hi guys,
I'm trying use the attachEventListener(MOUSE_MOVE,myListener) but I don't have success. When I use this code in Internet Explorer it's work fine but if I use this code in Firefox is isn't work.
I need that code it work in Firefox.
Anybody can help this question?
Regards,
Renan

Ji,
If I run the demo 21 in this version it's work in any browser.
Do you remember if you did any change in this part of code?
In my application the listener and method are configure so:
      this.addMap= function(){
        //métodos com os temas do FOI
        themes();
        // Passa o Base.getConfig().getMapview() como parâmetro para OverView.jsp exibir o Overview
        fmeOverView.overView(mapview);
        //funcao responsavel por adicionar a escala corrente no mapa
        showScale();
        //adiciona coordenadas no mouse na tela
        showCoordMap();
        //evento listener que dispara a atualização da escala corrente   
       mapview.attachEventListener(MVEvent.ZOOM_LEVEL_CHANGE, alterScale);
        //evento listener que dispara a atualização das coordenadas do mouse
        mapview.attachEventListener(MVEvent.MOUSE_MOVE, mouseMoveOnMap);
        //TODO - Usado para efetuar o debug no codigo do oraclemaps
        //MVMapView.enableDebugMode(true);
        //MVMapView.setErrorHandler(myErrorHandler);
        Base.getConfig().getMapview().display();
        mapview.setMouseWheelZoomEnabled(true); //adiciona scroll como zoom
        mapview.setZoomAnimationEnabled(false); //remove animação ao troca nivel de zoom
        MVMapView.enableCodingHints(false);
        Base.getVariaveis().setRectangleTool(new MVRectangleTool(Base.getConfig().getDatasource() + ".C.BRANCO"));
        mapview.addRectangleTool(Base.getVariaveis().getRectangleTool());
    function mouseMoveOnMap(){
        var mousePos =  mapview.getMouseLocation();
            document.getElementById("coordenadasMouse").innerHTML = "<font size='1' face='Arial' color='black'><b> X:</b> " + mousePos.getPointX().toFixed(2) + " <br/><b> Y:</b> " + mousePos.getPointY().toFixed(2) + " </font><br/>";
    }Regards,
Renan

Similar Messages

  • Hi all, my mac book pro boots up, but my track pad operation is strange, cannot click on anything, although it moves around screen ok. Cannot launch anything, nor close anything. Cannot get task bar to pop up either with the mouse movement.

    Hi All,
    My mac book pro 13". It boots ok and skype launches on boot up. connects to internet etc. However, whilst the mouse moves around the scren ok, used via the track pad, I cannot open anything, close anything, or get the task bar to pop up.
    I can close the laptop down via the power key, and can use some short cut keys, but the track pad operation is iffy, can you suggest how I rectify this.
    I have now solved this, for future reference, I have a magic track pad as well and that was connected via bluetooth and sitting else where in the house. It blocked the laptops trackpad operations. When disconnected, my laptop track pad works fine.
    Cheers
    Jazzy
    Message was edited by: Method TV

    Hi All,
    My mac book pro 13". It boots ok and skype launches on boot up. connects to internet etc. However, whilst the mouse moves around the scren ok, used via the track pad, I cannot open anything, close anything, or get the task bar to pop up.
    I can close the laptop down via the power key, and can use some short cut keys, but the track pad operation is iffy, can you suggest how I rectify this.
    I have now solved this, for future reference, I have a magic track pad as well and that was connected via bluetooth and sitting else where in the house. It blocked the laptops trackpad operations. When disconnected, my laptop track pad works fine.
    Cheers
    Jazzy
    Message was edited by: Method TV

  • My  message bar keeps opening without my hitting the icon. It does it when I move the mouse or track pad to the left  top corner of the screen. Any fix for this?

    The Message bar opens without clicking on its icon. Usually when I bring the curser to the top left of the screen. Both with mouse and track pad.

    Hi there kellyaames,
    It sounds like you may have Hot Corners enable. You can change this setting in System Preferences > Mission Control. Take a look at the article below for more information.
    OS X Mavericks: Mission Control preferences
    http://support.apple.com/kb/PH13925
    -Griff W.

  • Mouse Down and Mouse Move  and scroll ?

    Hi,
    Here is what I want to do:
    Whenever a user presses the mouse down and the moves the mouse, I want to synchronize the scrollbar thumb and the mouse. How is it possible?
    thanks.

    hi,
    there are 2 ways to do this depending on what you need from the mouse move
    1. To get the difference from when the mouse is pressed
    on the mousedown event your store the mouse coordinates -
    myX=   stageX   or LocalX    myY=  stageY  or LocalY 
    on the mousemove event you subtract the current co-ordinates from the saved cordinates
    myXDif = myX-currentX
    myYDif = myY-currentY
    the difference will be negative or positive you can use that figure to calculate the percentage of range and then set the scrollposition
    2. Just track the mouse
    on the mouse move calculate the percentage position of the mouse to set the scrollbars
    HorizontalScrollPostion= the Max horizontal value * (LocalX /Width)
    VerticalScrollPosition= the max vertical value * (LocalY/Height)
    David

  • Mouse movements not smooth

    I just bought an iMac, and first time in my life, I am on mac.
    Mouse moments were pretty hard. On googling realize this is not just mouse, it has touch pad as well. Wow. Thanks to Apple.
    I learned how to scroll up/down screen movements, secondary click.. All looks good.
    BUT,
    No one talks about the basic mouse moment? Move the cursor to a location in same screen screen?
    Is this same as PC mouse dragging whole device? With dragging the device is pretty hard. I don't expect such thing from Apple. I seriously feel something wrong with the way I am doing, or with the device itself? How importantan is mouse pad? I am on a stable wooden desk.
    Please don't laugh at my concern, plz throw some light.

    Hey yempi,
    I can definitely understand your concern. Using the Magic Mouse to “track” on the screen is the same, you’ll move the entire device around your surface. The mouse can be used on most smooth surfaces, however if you are experiencing tracking issues try these options:
    Mouse does not track as expected (jittery, jumpy, slow, fast).
    - Choose System Preferences from the Apple () menu, then choose Mouse from the View menu. Set the Tracking slider to adjust how fast the pointer moves as you move the mouse.
    - Try using a different surface to see if the tracking improves.
    - Turn the mouse over and inspect the sensor window. Use compressed air to gently clean the sensor window if dust or debris is present.
    - If multiple Bluetooth wireless devices are in use nearby, try turning them off one at a time to see if the issue improves. Bandwidth intensive devices could affect tracking.
    Troubleshooting wireless mouse and keyboard issues
    http://support.apple.com/kb/TS3048
    Thanks,
    Matt M.

  • Bluetooth Mouse movement on Mac Mini Core Duo

    Bluetooth mouse movement and tracking is a bit strange. The pointer overshoots the target and 'hugs' the edge of the screen. It's not a problem with one particular mouse - two different manufacturers behave in exactly the same way. Both mice work fine on my PPC machines. Any ideas or solutions?

    I use a Logitech MX900 Bluetooth mouse with my PowerBook and for the most part it works fine. There are times when it just loses the plot and behaves like yours. I don't think it is a case of insufficient bandwith as Michael suspects but more a problem with intereference. I do notice that when there is a high use of my Airport connection the erratic behaviour is more prevalent.
    If you use both Airprt ans Bluetooth concurrently you might want to switch off Airport off to see if your mouse goes any better.
    Either way though you will find that a wireless USB mouse to perform better under most, if not all, situations.

  • Why does my mouse move slowly?

    Why does my mouse move slow?

    Check the setting for tracking speed. You'll find that in System Preferences > Mouse.
    Note that tracking speed has variable accelleration associated with it; it responds to the speed of the mouse movement as well as the distance. When the tracking speed is set to fast, a slow movement of the mouse will yield an approximate one-to-one response from the cursor; but if you flick the mouse quickly, the cursor will fly across thre screen.
    If you're using a non-Apple mouse, and it came with its own software, check in that control pane for a similar setting.

  • Mouse movement...way to change this?

    Hi folks. Just bought a new macbook tonight and really digging it. One thing I don't like which I remember from my first iMac is the mouse movement. I'm wondering if there is anything anyone would recommend to fix the motion. I used to use USB Overdrive for my iMac but that doesn't support the macbook track pad so I wondered if there was anything similar that did. Thanks.!

    Hai,
    You can do one thing.
    If you wan to deploy ur application.
    Open a browser window--Deploy new archive and Run.
    Dont close the browser, when you wan to deploy it agian,
    simple righclick on project--create archive.
    simple righclick on project--Deploy.
    refersh the earlier browser.
    Regards,
    Naga

  • Frozen mouse moves

    mouse moves with external mouse track pad, and internal trackpad but can't select anything, even the apple logo
    cmd tab is ineffective
    any ideas??

    We need more info. First what Mac OSX version is running? "iOS" as currently shown in your profile cannot run on any Mac computer, only Apple mobile devices.
    Next, what tasks were you performing shortly before the problem started. Had you installed any new hardware or software?

  • Mouse pad (track pad) does not work,

    Started Macbook w/o mouse. Track pad can move cursor, but "enter function" does not work.

    Did the MBP come with the trackpad, or do you have a mouse as well? To turn off the trackpad, there is a botton on the right side, see picture. Hold, you will see a light, wait until it goes off. To turn on, hold until you see the light.

  • Limiting mouse movements in Authorware

    Hi all,
    I'm trying to limit the mouse movements of a user in Authorware. So far, I've been able to make something that changes the cursor when it's over a square (the movable area). However, I have not figured out yet how to limit the mouse in going outside the border of the square. One thought was to track the point where the user left the square with the cursor and set CursorX & CursorY to these values. However, these system variables cannot be set to a value, only read (as far as I know). Does anyone has any suggestions?
    Regards,
    Frank

    Can't be done with Authorware alone...
    Easy workaround - use the SetCursor function to hide the mouse (4) when it leaves the defined area, set it to the arrow (0) when it enters. Be sure to set it to arrow as well when you leave the page otherwise.
    Harder, but does what you need - load the SetCursorPos function from WinAPI.u32 which allows you to actually set the cursor position...then similar to above, when the cursor leaves the defined area, put it back...
    Helps?
    Erik

  • Mouse and track pad not responding

    intermitently the mouse and track pad arent working. I can move the cursor put no left or right function. I have to restart computer to get them working again.

    well, it is not over yet
    the bluetooth keeps disconnecting the magic mouse
    Any advice?

  • I just created a new profile/user on my MacBook Pro. My pointer/mouse. It works fine in my older user profile, but when I go to the new profile my mac will not respond to clicks. Mouse moves but will not click. Already tried restarting and the pram zap.

    I just created a new profile/user on my MacBook Pro. My pointer/mouse on my trackpad. It works fine in my older user profile, but when I go to the new profile my mac will not respond to clicks. The Mouse moves but will not click. Already tried restarting and the pram zap. The problem starts when I log out of my main profile. I get to the login screen and my laptop stops responding to clicks. When I manage to make my way back to my main profile the mouse works perfectly.  Should I just delete the new profile and try again?

    If the modem is also a router, either use the modem in bridge and run pppoe client on the TC.. that is assuming ADSL or similar eg vdsl. If it is cable service.. and the modem is a router, then bridge the TC.. go to internet page and select connect by ethernet and below that set connection sharing to bridge.
    Please tell us more about the modem if the above gives you issues.

  • After sleep, retina MacBook Pro (Mid 2014) does not recognize usb connected mouse movement

    After sleep, retina MacBook Pro (Mid 2014, on 10.9.4) does not recognize usb connected mouse movement. I have tried a generic usb mouse and my Razer Deathadder usb mouse. Both mice work before sleep; but after sleep, the computer no longer recognizes mouse movement while still recognizing the mouse buttons when pressed. Any idea why this is occurring?

    Hello, chocotac0.  
    Thank you for visiting Apple Support Communities.
    Here are some troubleshooting steps that I would recommend when experiencing this issue.
    OS X Mavericks: Reset your computer’s PRAM
    http://support.apple.com/kb/ph14222
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/ht3964
    OS X Mavericks: If a USB device isn’t working
    http://support.apple.com/kb/PH13876
    Cheers,
    Jason H.

  • Does anyone know how to separate a movie track from an audio track on the new Mavericks Garage band. It used to be very easy on the iLife 11 version. If anyone could respond ASAP I'd be grateful. I need to make an audio file from a video.

    I urgently need to make some audio tracks from videos using the new 2013 GarageBand. In iLife11 Garageband, this was very easy. However, I cannot see how to do it in the new one. The alternative might be to revert to the iLife11 version, so does anyone know how to do this. It's extremely urgent since I need to produce these for a court custody hearing which will take place at 0800 GMT UK time on 31st October 2013. Please help.
    Thank you.

    When you drag a movie from the Media Browser to the Time lIne in GarageBand, you will see a pop-up "Extracting Audio".
    The Movie and the audio file will appear in separate tracks. You can copy the audio region from the sound track to a different track to keep it safe and then hide the Movie track.
    Léonie

Maybe you are looking for

  • Reclassification of Customer & Vendor Balances in Group Currency

    Hello It is with regards to the Reclassification of Customer & Vendor Balances vide T Code FAGLF101 - Sorting/Reclassification (New) as per IFRS. The reclassification entries are getting generated in Document & Local Currency but no values are gettin

  • IWeb Site's Load Slow and Jump/Lock Up IE - Why?

    Week 3 of trying to figure out why/how to get pages I created on iWeb to load like they do on Safari/FireFox. IE browsers either lock on loading my pages and/or are jumpy when you scroll the page. Things I have done: Changed templates, Reduced the am

  • Class naming convention

    many a times i face difficulty with the Action/Class naming convention. Say, today ..i wrote a class.....tomorrow i have to rename the name of the class so that it becomes a more meaningful name and becomes unique and understandable with the newcomer

  • Has anyone found any solution for the noise problem for an iMac 21.5"?

    I have recently bought a new iMac 21.5" 1TB.  There is constant noise which sounds like it comes from the disk drive.   It is very loud and annoying and you can hear it 10 ft away even.  I took it to the Apple store and of course it is too noisy in t

  • Cant drag and drop new music to itunes or ipod

    since updateing itunes i cant seem to drag and drop new songs over to itunes. like i was able to do in the past all the time. is it a fix or a bug with the new verson? i know i can add them in the other way but i found drag and drop so easy. thanks A