Focus follows mouse

I just got Windows 7 at work.  When I used Windows XP I had a cool utility called Tweak UI.  Can I get that to work, but really the only thing I want is for updated point windows follow the mouse and not what window is on top. Is there something like this built into Windows 7?

Thank you

Hello BruceAL,

I think the solution here will have to come from a third party.

Have you checked with your IT support to see if they have an internal product or sitelicensed who will do it?

Tags: Windows

Similar Questions

  • How can I "activation follows mouse", but with a deadline on the activation?

    I am using Windows 7 now. I learned how to change the registry for that activation of follow the mouse pointer, but it is extremely frustrating when I can't not right-click on an icon in the taskbar to bring up breakfast menu on click on a recently opened or pinned without the menu item will disappear so fast since I spend my pointer in the bar of menu. I need to set a short time, so I can move the mouse pointer on the menu without it disappears so fast on me.

    I really miss the TweakUI for Windows XP utility which allowed me to have not only the activation follow the mouse but I was able to set the activation delay. Whether of 100ms, 500ms, or whatever, I could put it on myself. And by the way, I'm not trying to do the thing "lautoraise", there is no need to discuss.

    Since nothing is more a TweakUI (for Windows 7) that offers this option, I guess the only way to do it is to change the registry somehow to create a delay, but I won't do a thing for her I have not an expert tell me exactly to do.

    It would be good if there was a utility (such as TweakUI for XP) who would do this, but I have yet to find a. If anyone knows that precisely one can create a delay in activation, let me know on this subject.

    But if no utility does exist, and assuming a registry change is possible, how do I create a delay in activation?

    And if it's not too much to ask, could you please tell me how to create a registry file for each of the various delays .reg I would like, as the need at the time. For example, sometimes I have a delay of 100 ms and other times, I would like a longer delay of 500ms. It would be a huge timesaver if I could simply create a file .reg-Double-click on instead of going into the registry each time.

    Thank you

    Lee

    OK, it's tomorrow!

    As I said, right click on HKEY_CURRENT_USER\Control Panel\Desktop and export, name the file, for example: ActiveWndTrackTimeoutDefault.reg

    Then, right-click on the file that you have created and select "open with / Notepad". "."

    Then use the Notepad remove all subkeys under ' ActiveWndTrackTimeout and change the value of the dword to 100ms timeout. "

    Now save files like for example: ActiveWndTrackTimeout100.reg (I'm assuming that 100 = 100ms)

    If you then open the ActiveWndTrackTimeout100.reg file using Notepad it should read as follows:

    (3 lines of text)

    Windows Registry Editor Version 5.00

    [HKEY_CURRENT_USER\Control Panel\Desktop]

    "ActiveWndTrackTimeout" = dword:00000100

    If the above, this is what you see, then to change the registry current value to 100ms double-click the file: ActiveWndTrackTimeout100.reg

    Note: All other Panel of the registry entries will remain unchanged.

    J W Stuart: http://www.pagestart.com

  • Movie Clip limit box follow mouse

    It is a mouse to follow along with the code of elasticity, works very well.
    the problem is on the Witch of limit box that the movieclip move may or may not
    in the "BOLD" in the code box, I can stop the mc, but only in a single axis.

    for ex:
    If (x_ziel > 608) {x_ziel = 608 ;}

    It stops after the mouse, but only the _x, it continues to move the FLF (I want both to stop)

    If my video film trespass my limit "_x", id like for my MC also stops the FLF, but with the coordinate that it was just before my mouse trespass it.


    onClipEvent (load) {}
    VX = 0;
    Vy = 0;
    x_wert = this ._x;
    y_wert = this ._y;
    x_ziel = this ._x;
    y_ziel = this ._y;
    elasticity = 1.6; 1.1, quanto, maior menos elastico
    tempo = 10; 5, quanto, maior menos rapido
    }
    onClipEvent (enterFrame) {}
    x_wert = x_wert + vx;
    y_wert = y_wert + vy;
    VX = (vx + ((x_ziel-528-x_wert) /tempo)) / elasticity;
    Vy = (vy + ((y_ziel-546-y_wert) /tempo)) / elasticity;
    This ._x = x_wert;
    This ._y = y_wert;
    }
    onClipEvent (mouseMove) {}
    x_ziel = _root._xmouse;
    y_ziel = _root._ymouse;


    If {(x_ziel > 608)
    x_ziel = 608;
    }
    If {(x_ziel < 400)
    x_ziel = 400;
    }
    If {(y_ziel > 611)
    y_ziel = 611;
    }
    If {(y_ziel < 513)
    y_ziel = 513;
    }
    }


    can someone help me?

    as I say, it's difficult to know exactly what you're after without sitting with you, to small changes in desired outcome may have differences in the code, but you take when same - 2 - Please see code attached for another attempt at what you are after...

    the main problem with your code on the frame, was otherwise, your use of the onLoad. onLoad only works with movieclips connected to a class. You can actually just use onClipEvent (load) to execute code when something on the stage is loaded... it is useless anyway, because as soon as the code on this frame is processed the movieclip will have been loaded, so I just got this code in the event handler. see livedocs

  • increase or decrease the targeted window hotkey

    Hello

    I have Windows 7 Pro w / focus follows mouse (and editing the registry where it triggers automatically window).

    What I would like is to set the Alt-2 to trigger the targeted window (above all other windows, no resizing) and Alt-3 to reduce the target window (behind all other windows, no resizing).

    Is it possible w / no 3rd party applications?

    Thanks, Jim

    Hi Jim,.

    By design, it is not possible. You can only do it by pressing 'Ctrl' and the keys ' + '.

  • Location of the mouse controlling movie clips shake

    So, I want to control a rotation of clips from the film with the location of the mouse, with easing if possible. But I'm having trouble knowing where to begin. Can anyone help on this?

    The best place to start is with a focused research on Google, perhaps using search terms such as... '' Mouse pivot AS2 follow. ''

    This is one of the results of this research which may help you (depending on what you want really)...

    http://www.terrypaton.com/AS2-follow-mouse-rotation/

  • Camera stay focused when shooting video

    How do you keep the Rebel T3i in short, when shooting video of moving objects that are moving towards or away from the camera? I understand the Nikon D5100 has continuous autofocus, but the Canon EOS Rebel T3i doesn't have such a feature.

    Hi jla930,

    The AI Servo AF mode is for moving subjects when the focus distance continues to change. While you hold down the shutter button halfway, the topic will focus at all times.

    To access this mode, press the arrow key to the right (AF) and choose "AI Servo", as shown below:

    • Exposure is set at the moment the picture is taken.
    • The selection of the point AF is automatic, the camera first use the central AF point to focus. During the development automatic, if the subject moves away from the center of focus, followed continues as long as the subject is covered by another area of focus.

  • Tracker mouse, hold in place

    I got the mouse tracker, keep up work of feature (really nice, by the way!)

    But when I record a movie with them (say, one hand on the hip of the character and the other hand waving) the hands do not appear, in the reading, where they were when recording.

    Is there any solution for this?

    He is such a wonderful device of the Ch, I hope that we can make it work properly.

    Thanks in advance

    Thanks for the screenshot, that really helps show the problem is that any changes made while playback is stopped saving. This, combined with relative movement of registration followed mouse means that when you go back and read your record, hands start their rest rather than pose instead, you place prior to registration.

    We are working on a fix for this. Meanwhile, when using hold up for the mouse tracker, you must perform all your operations drag during registration and do not stop. Sorry about that!

  • How to check the position of the mouse

    Hi, I am trying to do a drag and drop and validate it, now I have my slide - déposer but I can't validate if I drag the right answer to the right place.

    Is it possible to check the position of the mouse, so when I'm draggin I use smth like:

    If (mouseX = 50 & & mouseY == 100) {}

    My answer is correct

    } else {}

    incorrect ansewer

    }

    Please help me =)

    Hello, a tutorial by Paul Trani I looked on this topic has really helped me:

    http://paultrani.com/2013/03/follow-mouse-movement-in-edge-animate/

    In it, I would use the variables posX and posY to influence your function
    I hope this helps!

    Katherine

  • We owe to the mouse eye movement of the sense.

    Hello

    How to create in as2.0 mouse eye movement of the sense.

    example site: http://www.flashuser.NET/eyes-following-mouse-cursor-AS3

    same animation, I need.

    Thnks,

    which is as2, except that I used instead of ._x .x:

    this.onMouseMove = moveF;

    paramF(eL,0,0,Stage.width,eL.width-eL.eyeball.width);

    function moveF (): Void {}

    {with (El)}

    eL.eyeball._x = eL.m * _xmouse + eL.b;

    }

    }

    function paramF(mc:MovieClip,x1:Number,y1:Number,x2:Number,y2:Number):Void {}

    MC.m = (y1 - y2) /(x1-x2);

    MC.b = y1 - mc.m * x 1;

    }

  • substitute the target of the event

    Hi, I'm doing a simple table

    on mouse down, start drawing

    moving the mouse, if the drawing, draw the line

    on the mouse upward, stop drawing

    I put the headphones on a single clip with a rectangle. If I do not fill the rectangle, mouse events do not fall within the rectangle, but if I fill the rectangle, it will paint behind the rectangle, anyway I will not see any results succesfull.

    what I did was to create another sprite and paint it. something like

    rectangle.addEventListener (draw_in_sprite, etc.)

    Manager: function draw_in_sprite (etc) {}

    etc.

    other_sprite_above_rectangle. Graphics.Draw the following mouse() line

    etc.

    }

    I can't paint a long line, because once he finished the 'move' event, the focus seems to be on canvas sprite even though that I did not define top headphones

    I also try to move some other sprite based on the events of the mouse on the stage, but when the movement of the sprite he puts under the mouse pointer, the scene is not the target of the event more

    I read the documentation and he talks about cause 'propagation', I tried to put "Event.stopPropogation" in the script but I have seen no effect work and there is no examples and explanation doesn't say much. How can I say to cancel the event management on the sprites that are superior to others?

    TNX

    If you were to draw the rectangle through actionscript, you can then use the graphics class to draw the background 'upstairs'.  now, I'm also assuming that you are referring to a "custom cursor" as "another sprite" you want to move when drawing.  so if you do a little more of this via actionscript, you can resolve some of these issues.  throw the code below on the first picture of new doc and test

    Mouse.Hide ();

    var paint: Boolean = false;

    var chalk: Sprite = new Sprite();
    chalk.graphics.lineStyle (8, 0xFFFFFF);
    chalk.graphics.moveTo (0,0);
    chalk.graphics.lineTo (15, -15);
    chalk.mouseEnabled = false;
    addChild (chalk);

    var box: Sprite = new Sprite();
    box.graphics.beginFill (0x000000);
    box.graphics.drawRect (0,0,stage.stageWidth, stage.stageHeight);
    box.graphics.endFill ();
    addChildAt (box, 0);

    box.addEventListener (MouseEvent.MOUSE_DOWN, startPaint);
    box.addEventListener (MouseEvent.MOUSE_UP, stopPaint);
    box.addEventListener (MouseEvent.MOUSE_MOVE, moveChalk);

    function moveChalk(e:MouseEvent):void {}
    If (Paint) e.target.graphics.lineTo (mouseX, mouseY);
    Chalk.x = mouseX;
    Chalk.y = mouseY;
    e.updateAfterEvent ();
    }

    function startPaint(e:MouseEvent):void {}
    box.graphics.lineStyle (4, 0xFFFFFF);
    box.graphics.moveTo (mouseX, mouseY);
    Paint = true;
    }

    function stopPaint(e:MouseEvent):void {}
    Paint = false;
    }

  • Satellite P100-347 cannot find devices with Bluetooth

    Trying to get some devices connected through Bluetooth and I try to find the Bluetooth on a P100-347 district, but he isn't here. I used the BT stack on another machine and normally there is a Bluetooth Neighbourhood shown on the desktop, but not on my laptop.

    I took a peek in the test system as well, but there is nothing there... where it is spent, and how do I get that back.

    So I guess that you take on the 'interchange Information Bluetooth"which allows to Exchange files, vCards, and images with other Bluetooth devices. If so you can start it via the menu entry in the file of the Bluetooth program or by a right mouse click on the BT system tray icon and a selection of "Bluetooth information interchange.
    Very old version also had an icon on the desktop for him. I think that it is version 3. Now, it is located in the District of normal network. To get him back on the desktop, you can do the following:
    "- Mouse-right click on the Bluetooth-> Option... system tray icon-> Bluetooth information interchange-> click the radio button"Desktop"-> Apply-> OK.
    That's all.

  • Touch Pad doesn't work does not correctly? HP-Envy-15Q004TX

    Hello
    It is the first HP product I've ever owned, I'm pretty happy with the laptop, outside of windows 8.1 However, is not the concern of this post. My mouse pad stops working when I press a key, as in if I press 'W', while trying to move the mouse on the screen then followed mouse stops. So it is impossibe to play all kinds of games and making it really difficult to do anything else and it's just embarrassing. The only button that does not affect this is the key of the SIFT.

    I have no idea what to do, y at - it a setting or something like that or I'm just miserable?

    Thank you

    puffm wrote:

    Hello
    It is the first HP product I've ever owned, I'm pretty happy with the laptop, outside of windows 8.1 However, is not the concern of this post. My mouse pad stops working when I press a key, as in if I press 'W', while trying to move the mouse on the screen then followed mouse stops. So it is impossibe to play all kinds of games and making it really difficult to do anything else and it's just embarrassing. The only button that does not affect this is the key of the SIFT.

    I have no idea what to do, y at - it a setting or something like that or I'm just miserable?

    Thank you

    Hello

    Try to disable the check of Palm, this might help you: Touchpad PalmCheck - turn on or off in Windows

    Thank you

  • Question view screen with custom fields

    I've developed a class that extends the scope and Implements DrawStyle. The field contains a bitmap with text drawn on the left of the it... nothing too complicated. I made focasable, has erased layout and drawFocus, painting, etc., but I'm having a Visual anomaly.

    On my screen (no title), I added a LabelField (non-active), and then a BitmapField (non-Focus), followed by a number of my custom fields. When the first screen, everything looks great. My first custom control has focus and is drawn as such.

    The problem occurs when I scroll through the custom control 3rd to 4th (causing the screen scroll), the 2nd custom control appears twice, the 3rd is missing and the 4th has the focus. There are also some white background that starts to show through (my controls are all black and is so the bottom of the screen and other controls).

    Of course, I'm having some trouble of painting, but it is certainly related to scrolling.

    What methods should be overritten in a custom control to ensure the scrolling will work properly?

    Which must be defined in the screen?

    1. prepare your screen unscrollable as:

    Super (NO_VERTICAL_SCROLL);

    2 use a VerticalFieldManager to add all of your components.

    Make sure verticalManager Scrollable and set its size and background color.

    Something like:

            mainManager = new VerticalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR)
            {
                //setting background color
                protected void paintBackground(Graphics graphics)
                {
                    graphics.setBackgroundColor(0x00000000);
                    graphics.clear();
                    super.paint(graphics);
                }
                //setting its height and width
                protected void sublayout( int maxWidth, int maxHeight )
                {
                    int width = Display.getWidth();
                    int height = Display.getHeight();
                    super.sublayout( width, height);
                    setExtent( width, height);
                }
            };
    

    3. now add this to your screen.

    Now your screen does not scroll and you will not get the white background at the end.

    Let me know if you have any questions.

    Concerning

    Bika

  • Adding static button in a drop-down list

    Hi all

    I add a list to verticalFieldManager with vertical scrolling function, and in the same crib from the bottom, I need to add a button (after clicking on the button I have to go on the other screen).

    Here, my problem is that whenever I scroll the list, the button does not scroll, it should look like the button on the top of the display to scroll and the list in the background. But whenever I scroll the list, list a scroll at the bottom of button.

    For more information, I add a screenshot, please find the attachment.

    I'd have a play with this, the thought took a little more time than I expected and there are a few "curve balls.

    In any case, here's some code that can do what you want.  There's some stuff in there, but see how you get on the revision of the code and the doc and the items I gave you to, to see if you can understand what is happening.

    Tested on OS 6.0 Simulator 9800, not on anything else.

    package mypackage;
    
    import java.util.Vector;
    
    import net.rim.device.api.system.Display;
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.Manager;
    import net.rim.device.api.ui.ScrollChangeListener;
    import net.rim.device.api.ui.TouchEvent;
    import net.rim.device.api.ui.XYRect;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.ListField;
    import net.rim.device.api.ui.component.ListFieldCallback;
    import net.rim.device.api.ui.component.SeparatorField;
    import net.rim.device.api.ui.component.Status;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    
    public class StaticButtonTestScreen extends MainScreen implements ListFieldCallback{
    
        private static int NUMBER_OF_ROWS_TO_ADD = 50;
        private static int NUMBER_OF_COLUMNS_TO_DISPLAY = 6;
    
        private Vector _listElements = new Vector();
        // We use a pretty crude method to supply the items to be displayed
        private ListField _listField;
        private int _requiredColumnWidth;
    
        StaticButtonTestScreen(){
    
            //! how wide will we make the columns?
            Font ourFont = this.getFont();
            _requiredColumnWidth = ourFont.getAdvance(" column 8 ");
            //! this example has fixed column widths.  They do not have to be.  Fixed is just simple to demonstrate.
    
            this.add(new LabelField("Above ListField", LabelField.FOCUSABLE));
            this.add(new SeparatorField());
            //! Add the ListField to a HorizontalFieldMaanger that can scroll horizontally.
            //! It is this that does the scrolling for us.
            StaticButtonManager myMan = new StaticButtonManager();
    
            //! Note the overridden methods in our ListField.
            _listField = new ListField() {
                //! OVerride layout so that you get the ListField defined the width that you want.
                protected void layout(int maxWidth, int maxHeight) {
                    int requiredWidth = Math.min(maxWidth, this.getPreferredWidth());
                    super.layout(requiredWidth, maxHeight);
                }
            };
            VerticalFieldManager vfm = new VerticalFieldManager(Manager.VERTICAL_SCROLLBAR | Manager.VERTICAL_SCROLL);
            // Put ListField in here so that it scrolls
            _listField.setCallback(this);
            _listField.setSize(NUMBER_OF_ROWS_TO_ADD);
            // setSearchable(true) so a key stroke will invoke indexOfList().  Try it
            _listField.setSearchable(true);
            for(int count = 0; count < NUMBER_OF_ROWS_TO_ADD; ++count) {
                String listItem = Integer.toString(count) + ".";
                _listElements.insertElementAt(listItem, count);
          }
            vfm.add(_listField);
            myMan.add(vfm);
            ButtonField bf = new SpecialButtonField("test");
            myMan.add(bf);
            this.add(myMan);
            this.add(new SeparatorField());
            this.add(new LabelField("Below ListField", LabelField.FOCUSABLE));
        }
    
        // Following methods are required by the ListFieldCallback interface
    
        public void drawListRow(ListField listField, Graphics graphics, int index, int y, int width) {
    
            int columnWidth = width/NUMBER_OF_COLUMNS_TO_DISPLAY;
            //! Use the width that we have, not the width we requested.
            //! There is a chance that they might be different, though I suspect this would only
            //! be seen during development when perhaps changes have not be made consistently. 
    
            int xpos = 0;
    
            // First column test data supplied from program
            String suppliedData = (String) this.get(listField, index);
            graphics.setColor(Color.BLACK);
            graphics.drawText(suppliedData, xpos, y);
            xpos +=  columnWidth;
    
            // Dummy up the other columns.....
            graphics.setColor(Color.RED);
            for ( int i = 1; i < NUMBER_OF_COLUMNS_TO_DISPLAY; i++ ) {
                graphics.drawText("c" + Integer.toString(i), xpos, y);
                xpos +=  columnWidth;
            }
    
        }
    
        public Object get(ListField listField, int index) {
             return _listElements.elementAt(index);
        }
    
        //! In theory, the "framework" can call this, so it should return the same
        //! value as the overridden getPreferredWidth().  But my testing suggests this is
        //! is actually never called.  But for consistency, set it correctly!
        public int getPreferredWidth(ListField litfield) {
            return _requiredColumnWidth * NUMBER_OF_COLUMNS_TO_DISPLAY;
        }
    
        // People don't know how to use this, so I'm coding this up as an example
        // In the sample code you can use the digits to find things...
        public int indexOfList(ListField listField, String prefix, int start) {
            // Search from where we currently are forward.
            for ( int i = start; i < _listElements.size(); i++ ) {
                String element = (String) this.get(listField, i);
                if ( element != null && prefix != null ) {
                    // Just being careful
                    if ( element.startsWith(prefix) ) {
                        return i;
                    }
                }
            }
            // Not found, search from beginning to where we are currently
            for ( int i = 0; i < start; i++ ) {
                String element = (String) this.get(listField, i);
                if ( element != null && prefix != null ) {
                    // Just being careful
                    if ( element.startsWith(prefix) ) {
                        return i;
                    }
                }
            }
            // Didn't find it, don't move....
            return start;
        }
    
    // Special Manager so that we can overlay the Fields
    // and because the standard optimised paint does not
    // cope with this, we need to invalidate() the Field on scroll to get
    // it repainted.
    
    // We also have a bit of work around
    
    class StaticButtonManager extends Manager implements ScrollChangeListener {
        // Implement ScrollChangeListener so tha on a scroll, we repaint
        // because the default action is optimised and does not cope
        // with the overlaid Fields.
        boolean scrollListenerSet = false;
        SpecialButtonField bf = null;
        XYRect ourExtent = new XYRect();
        public StaticButtonManager() {
            super(Manager.NO_VERTICAL_SCROLL | Manager.USE_ALL_HEIGHT);
        }
        // Override paintBackground just so we can see the extent of this Manager
        // Not necessary, just done to make it easier to see.
        public void paintBackground(Graphics g) {
            int currentBackgroundColor = g.getBackgroundColor();
            try {
                g.setBackgroundColor(0X00CCCCCC);
                g.clear();
            } finally {
                g.setBackgroundColor(currentBackgroundColor);
            }
        }
        // Only expect two Fields
        // 1) A VFM which will scroll to handle the ListField
        // 2) A button that we will stuck at the bottom right
        protected void sublayout(int maxWidth, int maxHeight) {
            maxHeight = Display.getHeight()/2;
            // Set the Height that the ListField will use when scrolling.
            if ( this.getFieldCount() != 2 ) {
                throw new RuntimeException("Incorrect number of Fields added");
            }
            VerticalFieldManager listFieldManager = (VerticalFieldManager) this.getField(0);
            if ( !scrollListenerSet ) {
                scrollListenerSet = true;
                listFieldManager.setScrollListener(this);
            }
            super.layoutChild(listFieldManager, maxWidth, maxHeight);
            super.setPositionChild(listFieldManager, 0, 0);
            if ( listFieldManager.getHeight() < maxHeight ) {
                maxHeight = listFieldManager.getHeight();
            }
            bf = (SpecialButtonField) this.getField(1);
            super.layoutChild(bf, maxWidth, maxHeight);
            super.setPositionChild(bf, maxWidth - bf.getWidth(), maxHeight - bf.getHeight());
            setExtent(maxWidth, maxHeight);
    
        }
        public void scrollChanged(Manager manager, int newHorizontalScroll, int newVerticalScroll) {
            this.invalidate(); // repaint everything....
        }
        /*
         * Might be needed, comment out code just in case
        public int getFieldAtLocation(int x, int y) {
            if ( x >= this.getWidth() - bf.getWidth() &&
                 y >= this.getHeight() - bf.getHeight() ) {
                return 1;
            }
            return super.getFieldAtLocation(x, y);
        }
        */
        // Just used to allow the user to use the trackpad to go horizontally and select the button.
        // Not really needed
        protected boolean navigationMovement(int dx, int dy, int status, int time) {
            boolean buttonInFocus = bf.isFocus();
            if ( dx > 0 && !buttonInFocus ) {
                bf.setFocus();
                return true;
            } else
            if ( dx < 0 && buttonInFocus ) {
                this.getField(0).setFocus();
                return true;
            }
            return super.navigationMovement(dx, dy, status, time);
        }
        // Because the Button keeps moving in relation t the manager
        // and the manager does not expect this,
        // We have to check the touch location ourselves
        protected boolean touchEvent(TouchEvent message) {
            int x = message.getX( 1 );
            int y = message.getY( 1 );
            getExtent(ourExtent);
            if( x < 0 || y < 0 || x > ourExtent.width || y > ourExtent.height ) {
                    // Outside the field
                    return false;
            }
            if ( x >= ourExtent.width - bf.getWidth() &&
                 y >= ourExtent.height - bf.getHeight() ) {
                bf.onClick();
                return true;
            }
            return false;
        }
    }
    // Special Button so that the Button can be clicked from the
    // Manager's touchEvent
    class SpecialButtonField extends ButtonField {
        public SpecialButtonField(String label) {
            super(label);
        }
        protected boolean navigationClick( int status, int time ) {
            onClick();
            return true;
        }
        public void onClick() {
            Status.show("Clicked: " + Integer.toString(_listField.getSelectedIndex()));
        }
    
    }
    
    }
    
  • A simple program drag / move. Bug

    Hello.

    I have a simple drag and drop of app to learn English. You hear for example: banana and need to drop this object at a certain area.

    When my kid play she finds bugs - she's my researcher.

    It is difficult to explain the bug as it is difficult to obtain, but children can easily. You click on the target object and drag it a bit, then quickly set it but do not drag IE: release the button of the mouse as it goes back to its original position. You move the mouse away and and the object following mouse even though you do not now drag and you can't fall.

    I know it's hard to imagine this, but maybe it of a bug about to slip and falls.

    private void dragHandler(e:MouseEvent)
    {
    e.currentTarget.startDrag ();
    xIni = e.currentTarget.x;
    yIni = e.currentTarget.y;
    }

    You have the following has an event listener for mouse event.

    private void checkDrag(e:MouseEvent)
    {
    e.currentTarget.stopDrag ();
    If (this.currentBubble.hitTestObject (this.dragTarget))
    {
    If (currentBubble & & currentBubble == e.currentTarget)
    {
    currentBubble.visible = false;
    blnCorrect = true;
    points = this.points + 10;
    score.score_txt. Text = String (points);
    good ++;
    vehiclePosition += 100;
    TweenLite.to (animation, 1, {x: vehiclePosition})
    trace("correct="+correct);
    If (OK == 10)
    {
    endGame();
    return;
    }
    Bubbles.splice (currentIndexArray, 1); You must specify the parameter 1 IE: remove 1
    sndChannel = soundCorrect.play ();
    sndChannel.addEventListener (Event.SOUND_COMPLETE, soundCorrectComplete)

    }
    }
    on the other
    {
    incorrect ++;
    sndChannel = soundIncorrect.play ();
    sndChannel.addEventListener (Event.SOUND_COMPLETE, soundIncorrectComplete);

    TweenLite.to (e.currentTarget, 1, {x: xIni, y: yIni, ease:Strong.easeOut, onComplete:onFinishTween});})

    }
    }

    Thus, the code should be like this:

    private function dragHandler(e:MouseEvent):void
    {
         e.currentTarget.startDrag();
         stage.addEventListener(MouseEvent.MOUSE_UP, checkDrag);
         xIni = e.currentTarget.x;
         yIni = e.currentTarget.y;
    }
    
    private function checkDrag(e:MouseEvent):void
    {
         stopDrag();
         stage.removeEventListener(MouseEvent.MOUSE_UP, checkDrag);
    }
    

    Also, I suggest you get into the habit of ALWAYS declaring data types, including what are the functions return - this is good for memory and performance. In your case: Sub should be function return datatype.

    In addition, you must stopDrag() on an object - since a single object can be moved at a time - just call stopDrag() is sufficient.

Maybe you are looking for