Can FF win return mouse coordinates while over a .swf object

Hi there,
I have a flash object embedded in a page and need to get
coordinates returned from javascript to the flash object. I can get
this to happen in IE, Safari, and FF Mac even Camino. FF windows
will not return coordinates when the mouse is over the flash
object. Is there a way to do this? I'd really appreciate any info.
Thanks.
Is this a firefox issue or the way the flash player is
implemented into firefox windows?
Here is a link for clarity:
http://client.karo.com/bcdev/
Thanks,
Beau

sorry for not using the code tags..just learn about it...thanx
my problem is.when i want to record every coordinates of the mouse while it moves..but using the printstream,it only records the end point of the mouse and not while the mouse moves/dragged.I'm developing a sketch pad program. the program needs to capture the coordinates and saved it into a file.i tried using it but keeps on saving the last point but not all
example
point A..........................point N............................point Z
i want the program to save the coordinate of point A,point B,C,D...point N....and last point Z
but it keeps on saving only point Z.can u help or give any ideas..thanx

Similar Messages

  • Flash player in firefox is not giving the exact mouse coordinates while running a flex application in firefox. Actually it was working fine in the previous versions. I mean in the ver 5.5. In the latest version its not working fine

    Hi Friends,
    I face some mouse issues with the later versions of the Firefox (6 and above). When a flex application is executed in a Firefox, It runs on the flash player in the browser. While getting the mouse coordinates, flash player is returning some bad coordinates. Please respond to this as soon as possible

    A good place to ask advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25

  • Need Mouse Coordinates While Zooming

    I want to annotate the current coordinates of the mouse pointer while the user is rubberbanding to do a zoom. MouseMove would work if I could figure out how to convert the OLE_XPOS_PIXELS coordinates to the Axes coordinates.
    Why doesn't mousemove give Axes coordinates? What is the conversion to Axes coordinates?

    As you can see, the graph does not support this particular request. In this case, when you are zooming, there is no way you can calculate the coordinates in relation to the axes. You have seen we simply get the pixel points. With this method, you could use the MouseMove command to calibrate your pixels, or in other words, see how many pixels high and long the actual graph window is, and then do scaling calculations in accordance with the min and max values of the x and y axes. This however will not be all that precise, as it is limited by the size of a pixel, and the scaling settings of the graph.
    A better way is to change the graph track mode to cwGTrackAllEvents from the zoom mode you were in. cwGTrackAllEvents mode allows you to use the PlotAreaMouseDown and Pl
    otAreaMouseUp. These two report back the XPos and YPos in terms of the axes coordinates. Then you can output these to display for the user. At the MouseDown event, you can set the Xmin and Ymax values, and at the MouseUp, set the Xmax and YMin values. This of course means you always do the zooming from upper left to lower right. The only drawback to this method is that you never view the "rubber band", as this is a zoom feature, and is immediately lost in the cwGTrackAllEvents. Hope this solves it for you.

  • How can I disable any mouse event while is another is processing?

    Hi!
    I've a problem and I need some help.
    I'm downloading an image in the MouseAdapter's mouseClicked method. So I need to disable any other mouse events produced durring this download. These events can be removed from the queue or is there is any way to disable entering mouse events to the queue while another one is processing?
    If anyone can halp me, thanks a lot.

    Interesting situation. I would suggest that the downloading be done on another thread; long processes shouldn't be handled on the swing thread in most situations. Then to stop the mouse events you'd simply disable the component that has the mouse listener until the image has finished loading. That way these events will be processed and discarded while the image is loading.
    ie,
    public void mouseClicked(MouseEvent e)
      final Component source =  (Component)e.getSource;
      source.setEnabled(false); //stop further mouse events.
      new Thread()
          public void run()
             loadImage(); //should not return until image is loaded
             source.setEnabled(true);
    }Hope that helps. :)

  • Can Dropdown menu item stay on the "roll over" state while the user's mouse is hoving over the sub

    Can Dropdown menu item stay on the "roll over" state while the user's mouse is hoving over the parent's sub-menus?
    Thanks

    Thanks for the response. My main goal here is to get the drop
    down menu word "Overview" to remain red once it reaches the frame
    "WhoWeAre" or "OurMission" on the main timeline. If I turn the
    button inside the movie clip into an MC to do this, the drop down
    menu no longer works. Any thoughts on how to get this drop down
    menu to do this?

  • Using mouse click to return image coordinates.

    Ok so I've been trying to figure out how to do this and it seems very complicated for something that really seems straightforward.
    Anyway. I have a camera that updates an image object on the front panel using a while loop. I have another image object that is updated with a still image when the "snap" button is pressed. Now what I want to do is to click on a point in the snapped image and have the VI return the coordinates of that pixel in the image coordinate frame.
    What I've got so far is an event structure in the while loop with the following to occur in the event "image object -> mouse down":
    Server reference (reference to the image object) -> Property node (last mouse position) -> output screen coordinates.
    I've got two errors that don't make a whole lot of sense to me (I haven't worked with event structures before): "event data node contains unwired or bad terminal" and "event structure one or more event cases have no events defined". This second one seems strange since I don't actually want anything to happen if there's no mouse click. The first one seems to refer to the element box on the left hand side of the event structure.
    The above is my lastest attmpt at sorting this problem and as far as I can see it should work. whatever about the errors, am I even taking the right approach with this? I'd have thought image cordinates would be a common enough thing but search the boards here, it would appear not...
    Kinda stumped here. Any help is much appreciated.
    Message Edited by RoBoTzRaWsUm on 04-14-2009 08:34 AM
    Solved!
    Go to Solution.

    Hello RoBoTzRaWsUm,
    I have taken a look at your VI, which has been taking a correct approach to the data you are looking for.  As you are using and event structure, you should be looking for an event to occur.  When using a Property Node, you are trying read an attribute of a control.  However, in an Event Structure, I believe you should be using an Invoke Node.  An Invoke Node allows your to read an event or write a method with the Control Class in LabVIEW. 
    1. Place down and Invoke Node from the Functions Palette in 'Programming'->'Application Control'
    2. Wire your Image Control reference to it
    3. Click Method, and select 'Get Last Event'
    4. Right click on 'Which Events' and 'Create Constant'.  Make the constant '1' in the array
    5. Read the 'Coordinates' Cluster from the left hand side of the Event Case by right clicking  and 'Create Indicator'
    You will find a piece of example code attached.
    Regards
    George T.
    Applications Engineering Specialist
    National Instruments UK and Ireland
    Attachments:
    UKSupportMouseClick.vi ‏39 KB

  • Get mouse coordinates when its moved over a powerpoint slideshow -URGENT

    i am writing a code to get the mouse coordinates as its moved over the screen(especially over powerpoint slide show. plz help me if u know a simple code that perform this function without a plug-in, but if i have to use a plug-in advice me.
    tahnk u very much :)

    sorry for not using the code tags..just learn about it...thanx
    my problem is.when i want to record every coordinates of the mouse while it moves..but using the printstream,it only records the end point of the mouse and not while the mouse moves/dragged.I'm developing a sketch pad program. the program needs to capture the coordinates and saved it into a file.i tried using it but keeps on saving the last point but not all
    example
    point A..........................point N............................point Z
    i want the program to save the coordinate of point A,point B,C,D...point N....and last point Z
    but it keeps on saving only point Z.can u help or give any ideas..thanx

  • How can i open a link in new window (shift + Mouse Click) while not switching to the new window

    I want to open a new window (shift + Mouse Click) while not switching to the newly opened window. The focus should remain on the window from where i have opened the link.

    You can do that with tabs, but not with windows AFAIK.

  • Can I have a mouse-over function to play sound?

    Hello all,
    I have a flash graphic here www.stainlessrhino.com top left
    corner. What I would like is for the graphic to play (soundless as
    it does now) when the page is loaded, however, if the user mouse
    over the swf a sound would play once. How would I accomplish this?
    Is it possible?
    Thank you!

    There are several ways to do this. The easiest way is to
    attach the sound to the graphic. Do this by editing the object you
    want, create a layer called sounds. Click on the first frame you
    want the sound to play in, press F6 to create a keyframe. Click in
    that keyframe and look in the Properties window. In the box labeled
    "Sound:" (go figure) you select the sound you want to play.
    If you are using a roll-over listener you can use the
    Sound.play() method to play the sound in the function. AS3.0
    example:
    myGraphic.addEventListener(MouseEvent.ROLL_OVER,
    myOverFunction);
    function myOverFunction(event:MouseEvent):void{
    play.sound(mySound);
    I recommend searching for "Playing Sounds" in the help
    documentation (F1).

  • Technical Details: The website does not support encryption for the page you are viewing. Information sent over the internet withour encryption can be seen by other people while it is in transit

    Technical Details:
    The website does not support encryption for the page you are viewing.
    Information sent over the internet withour encryption can be seen by other people while it is in transit
    == This happened ==
    Not sure how often
    == started few days ago. previously never happened before.

    I was loading a website, it then stated as below, it wasnt any of the problems stated below.
    SERVER NOT FOUND
    # Check the address for typing errors such as
    ww.example.com instead of
    www.example.com
    # If you are unable to load any pages, check your computer's network
    connection.
    # If your computer or network is protected by a firewall or proxy, make sure
    that Firefox is permitted to access the Web.
    Thus i checked the Page Info, it states that:
    Security Info on page:
    '''This website does not supply ownership information.
    Connection not Encrypted.'''
    Technical Details:
    The website does not support encryption for the page you are viewing.
    Information sent over the internet withour encryption can be seen by other people while it is in transit

  • Plotting on xy graph based on mouse coordinates

    I am looking into plotting Mouse coordinates on XY Graph continuously based on where i move. My computer's resolution is 1200x800 and i would like it to plot based on where i move.,
    Attached is my progress so far.
    Attachments:
    progress.png ‏74 KB

    The XY Graph has a method which converts coordinates to XY values. You can call it by right clicking the graph and selecting Create>>Invoke Node>>Map Coordinates to XY.
    However, if you look at the help for it, you will see that the coordinates it expects are those of the pane the graph is in, and the coordinates you have are of the screen. You can convert your global coords to pane coords by getting the VI's Front Panel Window. Panel Bounds property, building two matching XY clusters from the data and subtracting them (assuming the VI only has one pane) or you can use another loop with an event structure and a Mouse Move event (which returns local data) on the graph and then transfer the position data to your loop (you could also use a single loop, but that might be more complicated because the event structure will process every move of the mouse as a new event).
    You will also need to keep the data to place in the graph somewhere. If you open the context help window and hover over the graph's BD terminal, you will see the data types it expects and you will need to build one of those yourself. A shift register is something you might want to look into. There are also some examples showing working with graphs in the example finder (Help>>Find Examples).
    Try to take over the world!

  • Mouse Coordinate issues caused by Scaling Components in a JScrollPane

    Hi All,
    I've been attempting to write a program that includes a simple modeler. However, I've been having some trouble with being able to select components when attempting to implement zoom functionality - when I "zoom" (which is done via scroll wheel) using the scale Graphics2D method, while it zooms correctly, the mouse location of components do not seem scale.
    I've tried one of the solutions found on the forums here (create a custom event queue that adjusts the mouse coordinates) and while it seemed to work initially, if I zoom in and adjust the current view position using the scrollbars, certain components contained in the JPane will become un-selectable and I haven't been able to work out why.
    I've attached a SSCCE that reproduces the problem below - it implements a JScrollPane with a JPane with a few selectable shapes set as the Viewport. The zoom is done using the mouse scroll wheel (with wheel up being zoom in and wheel down being zoom out)
    Any help in order to fix the selection/de-selection issues on zoom would be greatly appreciated! I've spent some time reading through the forums here but have unfortunately not been able to find a workable solution around it.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class Tester extends JScrollPane
        public Tester() {
            this.setViewportView(new Model());
        public static void main (String[] args) {
            JFrame main = new JFrame();
            main.add(new Tester());
            main.setSize(500,300);
            main.setResizable(false);
            main.setVisible(true);
    class Model extends JPanel implements MouseListener, MouseWheelListener
        private GfxClass selection = null;
        private static double zoomLevel = 1;
        // zoom methods
        public void setZoom(double zoom) {
            if( zoom < 0 && zoomLevel > 1.0)
                zoomLevel += zoom;
            if( zoom > 0 && zoomLevel < 5.0)
                zoomLevel += zoom;
        public static double getZoom() { return zoomLevel; }
        public void resetZoom() { zoomLevel = 1; }
        public Model() {
            super(null);
            addMouseListener(this);
            addMouseWheelListener(this);
            MyEventQueue meq = new MyEventQueue();
            Toolkit.getDefaultToolkit().getSystemEventQueue().push(meq);
            for(int i = 0; i <7; i++) {
                double angle = Math.toRadians(i * 360 / 7);
                GfxClass oc_tmp = new GfxClass((int)(200 + 150 * Math.cos(angle)), (int)(125 + 100 * Math.sin(angle)), "Element"+i);
                add(oc_tmp);
            repaint();
        public void paint (Graphics g) {
            Graphics2D g2 = (Graphics2D) g.create();
            AffineTransform oldTr=g2.getTransform();
            g2.scale(getZoom(),getZoom());
            super.paint(g2);
            g2.setTransform(oldTr);
            setBackground (Color.white);
            super.paintBorder(g2);
        private static class MyEventQueue extends EventQueue  {
            protected void dispatchEvent(AWTEvent event) {
                AWTEvent event2=event;
                if ( !(event instanceof MouseWheelEvent) && (event instanceof MouseEvent) ) {
                    if ( event.getSource() instanceof Component && event instanceof MouseEvent) {
                        MouseEvent me=(MouseEvent)event2;
                        Component c=(Component)event.getSource();
                        Component cursorComponent=SwingUtilities.getDeepestComponentAt(c, me.getX(), me.getY());
                        JPanel zContainer= getZoomedPanel(cursorComponent);
                        if (zContainer!=null) {
                            int x=me.getX();
                            Point p=SwingUtilities.convertPoint(zContainer,0,0,(Component)event.getSource());
                            int cX=me.getX()-p.x;
                            x=x-cX+(int)(cX/getZoom());
                            int y=me.getY();
                            int cY=me.getY()-p.y;
                            y=y-cY+(int)(cY/getZoom());
                            MouseEvent ze = new MouseEvent(me.getComponent(), me.getID(), me.getWhen(), me.getModifiers(), x, y, me.getClickCount(), me.isPopupTrigger());
                            event2=ze;
                super.dispatchEvent(event2);
        public static JPanel getZoomedPanel(Component c) {
            if (c == null)
                return null;
            else if (c instanceof Model)
                return (Model)c;
            else
                return getZoomedPanel(c.getParent());
        private void deselectAll() {
            if(selection != null)
                selection.setSelected(false);
            selection = null;
        public void mouseClicked(MouseEvent arg0)  {    }
        public void mouseEntered(MouseEvent arg0)  {    }
        public void mouseExited(MouseEvent arg0)   {    }
        public void mouseReleased(MouseEvent arg0) {    }   
        public void mousePressed(MouseEvent me) {
            Component c1 = findComponentAt(me.getX(),me.getY());
            if(c1 instanceof GfxClass)
                if(selection != null)
                    selection.setSelected(false);
                selection = (GfxClass)c1;
                selection.setSelected(true);
            else
                deselectAll();
            repaint();
            return;
        public void mouseWheelMoved(MouseWheelEvent e) { // controls zoom
                int notches = e.getWheelRotation();
                if (notches < 0)
                    setZoom(0.1);
                else
                    setZoom(-0.1);
                this.setSize(new Dimension((int)(500*getZoom()),(int)(300*getZoom())));           
                this.setPreferredSize(new Dimension((int)(500*getZoom()),(int)(300*getZoom())));     
                repaint();
    class GfxClass extends Component { // simple graphical component
        private boolean isSelected = false;
        private String name;
        public GfxClass(int xPos, int yPos, String name) {
            this.name = name;
            this.setLocation(xPos,yPos);
            this.setSize(100,35);
        public void setSelected(boolean b) {
            if( b == isSelected )
                return;
            isSelected = b;
            repaint();
        public boolean isSelected() {
            return isSelected;
        public void paint(Graphics g2) {
            Graphics2D g = (Graphics2D)g2;
            if( isSelected )
                g.setColor(Color.RED);
            else
                g.setColor(Color.BLUE);
            g.fill(new Ellipse2D.Double(0,0,100,35));
            g.setColor(Color.BLACK);
            g.drawString(name, getSize().width/2 - 25, getSize().height/2);
    }Edited by: Kys99 on Feb 22, 2010 9:09 AM
    Edited by: Kys99 on Feb 22, 2010 9:10 AM

    Delete your EventQueue class. Change one line of code in your mouse pressed method.
    public void mousePressed(MouseEvent me) {
        Component c1 = findComponentAt((int) (me.getX()/getZoom()),
                                       (int) (me.getY()/getZoom()));
    }

  • Mouse Coordinates and using the getPoint method

    Hello,
    I have a mouseClicked event that uses the getPoint method to get the coordinates of the mouse. Because the mouse is a shape (the cursor), it contains more than 1 pair of coordinates, so getPoint is supposed to return the coordinates of what is called the "hit point" of the mouse. Now because I use the standard mouse cursor (an arrow), the "hit point" is supposed to be its point edge, but I get the coordinates of the other edge!
    Now if I have a big JPanel in the window (without controls) that the user can press and the program needs to respond to the clicks, there are situations that the user presses somewhere and expects to get a specific response, but instead gets another one. That's because he/she is accustomed from other applications to use the point edge, but if the 2 edges of the cursor are in different regions in the panel (and thus generate different responses), they get the response of the other edge's region.
    Is there a way to solve this?
    Thanks.

    I still don't understand your problem and apparently nobody else does either since there are no responses. Why don't you write a simple program (like I did for you on your last post) that demonstrates the problem.
    "A picture is worth a thousand words".

  • Mouse Coordinates and Timer Resolution

    First - I am not a Flash or ActionScript programmer. I have
    been asked by someone if I could port my ActiveX code (private) to
    the Flash client. In researching all of the Flash, Flex and
    ActionScript documentation, it appears that almost everything I
    need is present... Almost....
    A. My program relies on Mouse Coordinates being fed to it in
    twips. The only possible references I get to this issue have come
    from searching this forum.
    - Is it true that the X and Y coordinates are returned to
    ActionScript as floating point values that represent fractional
    pixel values that I can translate to twips?
    B. My program also relies on good timer resolution. The
    Windows GetTicks() API is not sufficient, because it is returned
    via the Windows message queue and can be off enormously at a
    MouseMove event. Therefore, in my ActiveX code, I call the
    QueryPerformanceCounter(), which gives me the resolution I need.
    - Can anyone tell me what timer API the Flash client engine
    is using for the values it returns?
    Thank you,
    Grant

    I still don't understand your problem and apparently nobody else does either since there are no responses. Why don't you write a simple program (like I did for you on your last post) that demonstrates the problem.
    "A picture is worth a thousand words".

  • Mouse coordinates.

    I want to make an applet (dimensions cca 50x100).
    But I want it to display the mouse coordinates, no matter where the cursor is (over the applet or elsewhere on the desktop).
    Can you give me some ideas? What classes to use, some approaches to my problem etc.
    Advanced thanks (like this forum is).
    iulian

    I think your only way out of this would be to use JNI. On Windows you can then use thr MouseCapture functions (or a hook function) to get mouse messages wherever the mouse is, but of course that is platform specific. Otherwise, the JVM will only get mouse messages when the mouse is over the Java window(s)

Maybe you are looking for

  • I want to create a duplicate table (button click by user) but instanceManager doesn't seem to work

    I have a table that needs to be duplicated, in whole, not just adding a row, on the next page of a form. Scenario: The user enters data (employment history) on the first table but requires an additional page with table to complete all work history. 1

  • DVDSP HD framerate and playback problem

    My HD DVD project has assets encoded at H.264 1280x720 and 23.976fps. The framerate in the Asset window reads 23.976, but the inspector window claims a frame rate of 59.94 for the asset. Can I force the interpretation to be 23.976? I am assuming this

  • SSRS 2005 check render format

    Hi, My SSRS 2005 Report Contain Hyperlinks. When I am exporting this Report into PDF, inside PDF this Hyperlink still showing up and when i click on that, it is redirect on that link. I want the Hyperlink Active in Report Manager , not after Exportin

  • "Blurring an image" in FCP.

    Hello, In a recent short movie I shot, an image of a commercial product appears on our set. I need to "blur" this image out of the video for copyright purposes. Is there an easy way to this using FCP, e.g., Motion or LiveType, for instance? Gary

  • Firefox crashing on startup every time.

    I reinstalled it and it still keeps crashing.