Custom mouse button reliability

Hi everyone, I'm having two problems with my custom cursor, which basically works. The script below is on the first frame, which is a preloader frame The first problem is that after I click on two of the buttons leading from the home frame to other frames, a few of the other buttons will disappear upon returning to the home frame, which doesn't happen otherwise, and doesn't happen for the many other functioning buttons that are set to work in the same way. When I don't use a custom cursor, all of the buttons work. My second problem is that I'd like the cursor outline to change color on rollover for all buttons without having to specify which ones, and so I tried using SimpleButton.prototype, but I obviously made a mistake, because it doesn't work. Based on trial and error, I marked in bold the lines that seem to be causing issues. Do you see the errors?
Thanks,
Jonathan
Mouse.hide();
var cursor:Sprite = new Sprite();
cursor.graphics.lineStyle(.25, 0x000000);
cursor.graphics.beginFill(0xFFFFFF, .5);
cursor.graphics.drawRect(0,0,15,15);
cursor.graphics.endFill();
cursor.visible = false;
import flash.events.Event;
import flash.events.MouseEvent;
function mouseMove(e:MouseEvent):void
if (!cursor.visible) cursor.visible = true;
cursor.x = e.stageX;
cursor.y = e.stageY;
function cursorframe(event:Event):void
    addChild(cursor);
stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMove);
cursor.mouseEnabled = false;
cursor.mouseChildren = false;
setChildIndex(cursor, (numChildren - 1));
addEventListener(Event.ENTER_FRAME, cursorframe);
function mouseOff(evt: Event){
    cursor.visible = false;
this.stage.addEventListener(Event.MOUSE_LEAVE, mouseOff);
SimpleButton.prototype.addEventListener( MouseEvent.MOUSE_OVER, onMouseOver);
SimpleButton.prototype.addEventListener( MouseEvent.MOUSE_OUT, onMouseOut);
function onMouseOver(theEvent:MouseEvent):void
cursor.graphics.lineStyle(.25, 0xFF00FF);
function onMouseOut(theEvent:MouseEvent ):void
cursor.graphics.lineStyle(.25, 0x000000);

fix one problem at a time.  see if the following stops your problem with disappearing buttons:
Mouse.hide();
var cursor:Sprite = new Sprite();
cursor.graphics.lineStyle(.25, 0x000000);
cursor.graphics.beginFill(0xFFFFFF, .5);
cursor.graphics.drawRect(0,0,15,15);
cursor.graphics.endFill();
cursor.visible = false;
cursor.mouseEnabled = false;
cursor.mouseChildren = false;
import flash.events.Event;
import flash.events.MouseEvent;
function mouseMove(e:MouseEvent):void
if (!cursor.visible) cursor.visible = true;
addChild(cursor);
cursor.x = e.stageX;
cursor.y = e.stageY;
function mouseOff(evt: Event){
    cursor.visible = false;
this.stage.addEventListener(Event.MOUSE_LEAVE, mouseOff);

Similar Messages

  • How do i disable mouse button 4 and 5 to open new tabs or windows?

    Okay so I got myself a new mouse, its a logitech G700s mouse but I don't think that matters anyway.
    The problem is that the extra buttons on the mouse (small buttons on the side) i have are assigned as "mouse button 4" and "mouse button 5". Now to a standart mac system these buttons are assigned to open a new window or a new tab in safari but when I customly set these buttons to something else it does both of those things. For example i sat the mouse button 5 to mission control (show all windows) but now if I am using safari it also opens something in a new page if I am holding the cursor on a link.
    I just want to know how I can remove that function. To make the mouse button 5 and 4 do nothing.
    The system I use to customise the mouse buttons are a separate program. I need to know how to disable this new page function in the mac software.
    Sincerly Thomas.

    Okay so I got myself a new mouse, its a logitech G700s mouse but I don't think that matters anyway.
    The problem is that the extra buttons on the mouse (small buttons on the side) i have are assigned as "mouse button 4" and "mouse button 5". Now to a standart mac system these buttons are assigned to open a new window or a new tab in safari but when I customly set these buttons to something else it does both of those things. For example i sat the mouse button 5 to mission control (show all windows) but now if I am using safari it also opens something in a new page if I am holding the cursor on a link.
    I just want to know how I can remove that function. To make the mouse button 5 and 4 do nothing.
    The system I use to customise the mouse buttons are a separate program. I need to know how to disable this new page function in the mac software.
    Sincerly Thomas.

  • Ibm x60s and Win 7 - third mouse button plus nipple will not scroll in FF4

    I have an IBM x60s notebook with Win 7. On previous versions of Firefox I believe I could scroll down a web page successfully using the laptop's centre mouse button and the red nipple mouse.
    This seemed to have stopped working in Firefox 4 (main release) which I downloaded yesterday. The IBM mouse's scrolling action is enabled and works on other programs, so I suspect a possible bug.
    Your comments are appreciated :)

    Some of you might not be satisfied by the OSX zoom behavior, but rather would like Ctrl+"mousewheel up/down" to increase/decrease content size per app. Like in Windows.
    To be clear let's differ between the two features: OSX's whole screen (OS UI aswell) zoom and increase/decrease content size.
    Solution:
    This is the solution I came up with, which allows you to use Ctrl+"mousewheel up/down" to trigger the latter feature, the content zoom.
    1) Make sure you aren't using Ctrl as a zoom key modifier in Settings -> Accessibility -> Zoom (I use Cmd instead)
    2) Download and install BetterTouchTools (BTT) it's free and updated regularly. http://www.boastr.net
    3) Open BTT Preferences, switch to advanced mode and chose "Magic Mouse"
    Q: "But I don't have a magic mouse" A: "Doesn't matter, Normal Mice pane won't recognize mouse wheel scroll, so follow this guide".
    4) Press "Add new gesture", select Magic Mouse Gesture "Scroll Down (modifier key needed)"
    5) Set Custom Keyboard Shortcut to "Cmd + +" (don't be confused here, press Cmd and the button on your keyboard with a "+" (plus) sign)
    6) Do the same with "Scroll Up (modifier key needed)", this time of course add Custom Keyboard Shortcut to "Cmd + -"
    You might have to do this per specific app to counter some unforeseen consequences using applications that already try to counter this (like MS programs, virtual machines and the like.)

  • Disable built-in mouse button?

    Does anyone know how to disable the built-in mouse button on a Macbook Pro?! I dropped a book on it, and it dented the button inwards such that it is permanently stuck down. The OS always thinks the button is down, making the computer almost unuseable!
    Thanks for your help.
    MacBook Pro Mac OS X (10.4.8) Core Duo 2.16GHz

    Again, thanks for your response, but no need to get snarky. I do not think the frame/button would have broken on my old iBook or other laptops, based on my experience. The book was only 250 pages! I am simply complaining about the MBP's clear fragility. I know perfectly well it's my fault, and trust me, I am very angry with myself. I am also a loyal Apple customer of many years, but this MBP has been repeatedly letting me down with other flaws (faded blotch on the LCD; uneven keyboard illumination; easily scratched). I had resisted sending it in until now, because I require my computer constantly for work, but I think now is the time to call and demand a replacement. I do not think I am the first to notice the MBP's many flaws. Despite them, it is a fantastic computer.
    Also, if you will note, I was complaining about the third party repair shop, and not Apple. I was simply asking whether people thought their price/advice was reasonable. I guess you've answered the question, though in a roundabout, you-are-an-idiot-and-stop-attacking-my-beloved-Apple kind of way.

  • Find Supply Demand Form Left Mouse Button Behavior

    Release 11.5.10.2, 10G database.
    A customer has a strange mouse behaviour issue In the ASCP -> Supply/Demand form that the began after installing Demantra.
    The mouse cursor is returning to the original location that it was just before the user attempted to click in another field.
    If the customer uses custom folder, the problem is less apparent in that they can select additional fields in the folder's form..
    There is a Note.753324.1 ''Diagnosing Form Mouse Focus Problems In Applications R11i" that suggests a few options; but the this customer is on forms 6.0.8.28.0 and it is unclear if the issue in that note applies in this case.
    Does anyone have any ideas as to how to get to the root of this issue or have seen it before and have a solution?
    Edited by: Bob Marchant on Feb 23, 2009 5:20 PM
    Edited by: Bob Marchant on Apr 13, 2013 6:57 AM

    James,
    Sorry I am so lengthy. The problem is that with the technical support guy on line, when the Mouse button 4 event occurred I described to the tech that I was pushing and pulling the mouse from the back end to avoid touching the buttons on the side and every time I rolled the mouse a few inches forward the dashboard assigned to mouse button 4 appeared and next when I rolled it back the dashboard disappeared, I rolled it forward and it reappeared and so on. Then the tech wanted me to click on the apple and go into system preferences and as my cursor touched the file menu to get to the preferences that menu dropped without me left clicking the mouse. As I passed over edit and view they just dropped down.
    What do you make of that? I am presently running OSX leopard without my printer and scanner installed. If I see no problem in two days, I will plug in the printer and install it. Then after that the scanner and see if the problem happens. I will follow your suggestions about relearning the mouse though.
    Stephen
    Stephen

  • Edge S430 - Touchpad, Trackpoint & Mouse Buttons Not Functioning Correctly

    Hi.
    My new Lenovo S430's Trackpad works most of the time but sometimes just suddenly stops working and I have to restart the laptop using keyboard navigation Often this happens when the machine is under load like an antivirus scan or similar. Sometimes the Trackpad is also sluggish to respond, like it ignores the first touch.
    The Trackpoint and mouse buttons (the ones above the Touchpad) work for the first 3-5 minutes after boot up and then suddenly stops working and doesn't start again until it's restarted.
    I've tried uninstalling and reinstalling most of the drivers (for various other issues) on the machine but it hasn't helped.
    Does anyone have a solution to this problem?

    Hi there.
    First of all, I'd like to say that Lenovo Customer Care have been extremely difficult to deal with and quite unhelpful; They are no longer returning communications and have seriously damaged any faith I had in Lenovo as a brand and the extended warranty I bought is useless. I cannot recommend their products to friends or collegues as a result.
    Now that that is out of the way, what I've gleaned from the hours spent trying to get through to customer care and the minutes talking to them is that the problem is in one of three places:
    1. Microscopic crack in motherboard (highly unlikely, but still it's a hypothesis thrown around by my computer tech friends)
    2. The keyboard and touch pad connectors are improperly seated or faulty
    3. The RAM modules are improperly seated or faulty
    As far as I know there is no solution to problem 1 IF it is indeed the cause. I tend to apply the following process to try to cover both possible causes 2 and 3:
    1. Remove keyboard and connectors from laptop
    2. Remove and replace RAM modules
    3. Remove touchpad connector (it looks like a tiny connector like how the two keyboard connectors attach to the motherboard)
    4. Replace all connectors very carefully and ensuring that they are fully installed
    5. Replace keyboard
    That SHOULD do it in theory. It's worth pointing out that I haven't had to do this with my laptop since January, but the trust is broken. I used to have to do it at least once a week since I got it and it was a nightmare, especially in the middle of a busy college term.
    I hope that helps.

  • Disable Right Mouse Button Popup Menu

    How can I disable right mouse button popup menu for a LabVIEW control to use
    my custom popup menu?
    Alessio Colzi

    Sorry for the stupid question but I forgot that option.
    Thank you Gorka
    Alessio
    "Gorka Larrea" ha scritto nel messaggio
    news:[email protected]..
    > Not sure if can be made under LV 6 but under LV 5.0 you can disable
    > runtime popup menu for all the vi under VI setup right clicking the
    > icon in the right part of the front panel.
    >
    > Another option is to put a transparent decoration over your control,
    > to avoid right clicking.
    >
    > Hope this helps

  • The right mouse button on my 8740w has failed (clicks but no result, i.e Cut/Copy/Paste/Delete menu

    My right mouse button clicks but no result, i.e Cut/Copy/Paste/Delete menu does not appear.
    I think the hardware has failed.
    Note the mousepd is not the issue.  The right button is the problem
    Left button works fine

    Same deal with me except the right button has failed twice. You may find that if you push on it past the click with a bit more force it will respond. They swapped the hardware and same thing occurred.
    HP should be ashamed that they would put such awful mouse hardware on its flagship product. Whoever designed it should be fired.
    If HP had any customer loyalty they would offer a hardware update and offer it to those who are still under warranty.
    Suffice to say I will never, ever purchase an HP workstation again.
    Good luck.

  • Right mouse button with the trackpad

    I read that on the 17 inch MBP there's an option to imitate the right mouse button by clicking when having two fingers on the trackpad (instead of Ctrl-click). Can anybody say whether this is something unique to 17 inch MBP hardware or whether we can also get it to work on the 15.4 inch MBP's?

    Hello,
    I asked this yesterday in another thread. Can someone
    with a new 17" please check and see what version of
    OSX you have. Is it 10.4.6? Or maybe 10.4.7 which we
    could see in an update soon.
    Apple will not have updated the OS revision number for the newer systems.
    What they do, is update the "Build" of the OS version.
    For example, when the iMac G5 came out, there was a custom "Build" version released with that machine (only on that machine).
    Then, when the second version and 3rd versions were released, they again released custom build revisions for those machines.
    These custom "builds" are essentially the latest OS available with a couple of tweaks to enable new features unique to that machine.
    So, what they would see is a different "Build" number than the build number on the 15-inch systems.
    This number can be found by clicking on "About this Mac" in the Apple Menu. Then, click once on the "Version 10.4.6" line where it is displayed in the box. The "Version 10.4.6" line will then change to a line that reads "Build XXXXX". On my Mac Mini with the retail 10.4.6 installed, it says "Build 8I127".
    Clicking on the build number will then display your computer's serial number. Clicking on the serial number will then switch back to displaying Version 10.4.6.
    This Build number will likely be different on machines released after 10.4.6 was available to reflect customizations to 10.4.6 that are unique to that machine.
    Keep in mind that the build number also changes with each update to OS 10.4.x that you install using software update. So, this build number will only be helpful if you check it before any updates are applied.

  • Marquee shrinks when releasing mouse button

    I am editing at 100%, with square pixels, and no feather.
    EVERY time I release the mouse button in CS6 (fully updated), the Info window shows the marquee dimenstions shrink by either 1 or 2 pixels (and I see the marquee visibly move as well). This make it IMPOSSIBLE to accurately to certain kinds of editing. I have to go back to my old CS3 to be as productive! (Current workaround: edit at 200%... but I can't see all I need that way.)
    I am definitely not moving the mouse, because a) it is EVERY time, b) it is never more than 2 pixels, c) it is always a shrink, not an increase, and d) I use a trackpad: my finger is off the pad and no movement is possible, then I let go of the button and the numbers change.
    Is there some workaround/fix, or is this just another bug?
    TIA

    I have now re-tested on a 2013 round Mac Pro D700, OS X Mavericks 10.9.4 (the latest).... and with TWO versions of Photoshop newer! PS CC 2014.
    The exact problem remains in Photoshop CC 2014, albeit not all the time. (I guess that's progress?) But often enough to harm productivity, and it means I have to carefully watch and remember the XY numbers to use the marquee tool. It's nice and accurate before the mouse button is released... it just needs to KEEP the same values on release, and it shouldn't be difficult to insure that's the case. But it sometimes shrinks them.
    Increase the zoom higher, and the problem happens less, but still sometimes. Zoom in far enough (300–400%) and the marquee tool starts to work reliably--except then I can't see the whole image I'm trying to select.
    Also (related?) I have a retina (high DPI) display and the marquee isn't rendering accurately even before release: it's shifted by one retina pixel up or down. This is most obvious at 200% zoom, where you try to select full pixels and see them cut in half instead.
    There's no justification for using different math (?) the moment the button lets go. This is a really basic tool, and I pay every month for it.... but the years go by with no fix. The software that charges my credit card seems reliable at least
    Who should I contact to suggest the marquee tool be made to function at 100% zoom? Do I have any recourse available when a bug remains in three consecutive years of Photoshop? (I know the answer: choose a new career.)

  • Firefox Loses Window Focus, Mouse Button profiles change to default

    I have a G700 mouse, which supports various hotkey profiles. For default profile, i have most buttons disabled. For games, i have game-specific hotkeys, and for firefox, i have firefox specific hotkeys (new tab, close tab, etc).
    There are 2 times that I notice this behavior:
    1) During regular browsing, clicking on various links causes firefox to lose focus, and the mouse software reverts from the "firefox" profile to the "default" profile. Interacting with firefox in any way does not fix this problem. the only way for firefox to become the default profile again is to click a different window or on the desktop, and then click back into firefox. The profile seems to be lost right after clicking a (javascript) link, though the number of links clicked is arbitrary. I cannot reproduce this issue with any fixed results (number of click, time period before losing focus, etc). But I can reproduce this issue reliably.
    When the mouse buttons stop working, the keyboard hotkey shortcuts DONT stop working. I dont have to re-select the firefox window to use keyboard shortcuts, I only have to do that if i want to use the mouse shortcut.
    2) If I am in private browsing mode, clicking links (specifically for websites that contain flash) causes the window which contains flash to move into the background and the non-private window becomes the foreground. Again, the mouse loses focus and the only way to regain focus is to manually click the window or to click away on a non-firefox object, then click the window. I believe this is a flashplayer based issue, though, and is unrelated to the profiles issue. When this happens, any interaction with a flash video also forces firefox's KEYBOARD hotkeys to not work. Ctrl+w and ctrl+t dont do anything, hitting escape does not give firefox control over keyboard hotkeys, and hitting "tab" only selects elements within the flash object. For youtube, it cycles through various clickable controls.
    EDIT: I have tried resetting the firefox profile and using a completely new profile, and i have also tried syncing profiles. This is a persistent problem.

    I'm using Firefox 23. This has been a problem since I got my mouse in September ish of 2012. As I stated, I've worked with logitech on this issue, they have no idea why it happens because only firefox exhibits this behavior. No other app on my computer does this and Firefox reset and clean profile do not do anything to solve the problem. Using logitech logging, I can produce a log and output of whenever the profile switches. I might be able to use logitech scripting to output debug information about what exactly causes it but that would take dev time I don't have.

  • I used to be able to open links in a new tab by clicking my middle mouse button, but now that I've updated it to the most recent update it doesn't work anymore. How do I fix this? I really love that feature. It works in IE and Chrome but not Mozilla.

    Ok, I used to be able to open links up in a new Tab using my middle mouse button. However, I updated firefox with the automatic Updates on the 26th of October and now I no longer can open links with my middle mouse button. Why? I use this feature just about every time I go searching on the internet so I really would like it back. I couldn't find anything that it was related to in the options so I turn this over to you guys.

    Do you have that problem when running in the Firefox SafeMode? <br />
    [http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this: <br />
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • Using a custom menu button on the slide to open and close TOC in Captivate 7

    HI
    I have a custom menu button. When the user clicks I want to show TOC, ( I see there is a state to show TOC) but when the user clicks the same menu button again on that slide how can I hide the TOC. ie toggle between hide and show.
    thanks

    I described some possible scenarios: Toggle Shape buttons - Captivate 6 - Captivate blog

  • Logitech mouse buttons not working in photoshop cc 2014

    logitech mouse buttons not working in photoshop cc 2014 winds 8.1. Is this a common problem?
    I have updated the latest drivers and have a few buttons programmed with keyboard shortcuts that used to work in previous versions of Photoshop but don't work now.
    Scrolling with mouse in bridge stopped working in cc butI see it is now working.
    any ideas?

    Many Photoshop extensions are not compatible with Photoshop CC 2014 for Adobe removed support for Flash Panels in CC 2014. Many extensions panels are flash based.  Check with the developer to see if their blendmein extension works with CC 2014.
    Adobe does not maintain Photoshop so it backward compatible with prior versions of Photoshop.  This brakes things like action scripts plugins extensions etc. Keep old version of Photoshop installed....

  • Photoshop CC doesn't recognize the right mouse button of my Wacom Intuos pen tablet, how do I solve this?

    For some reason photoshop CC doesn't respond to the right mouse button that is on my tablet pen.
    It's strange because it does work for illustrator CC, so why would photoshop CC not respond to it?
    Anyhow, help please!
    I have a wacom intuos pen tablet.

    I checked my settings and they´ve always been like this:
    So that's not it.

Maybe you are looking for

  • Google chart problem with DPS

    hi, I tried to include google piechart as a web content to my folio , but I always get error  although chart generated and successfully loaded in all browsers that I tested ( safari, chrome, firefox, ie.) you can find the sample chart below http://ww

  • JTextfield background color for one line

    Hi everybody, How can I change the backgroundcolor for one single line in a textfield? I think it's nog possible in an ordinary JTextfield, does anybody know how I can do this? Best regards, Jethro

  • ITunes to iPod Video transfer issues

    Hi there I've been having some trouble transfering a specific video file from itunes onto my iPod. It's in the proper format and is in my itunes video library (and plays fine there) but it simply won't do the automatic transfer to the ipod. I've trie

  • Insert into an Access DB

    I'm trying toinsert in an access database and when I execute the Update it appears the error: java.sql.SQLException: No row count was produced the source code I use is: <%@ page import="java.io.*"%> <%@ page import="java.io.IOException"%> <%@ page im

  • Bar-code printing in smartforms

    Hi All, how to done or step by step procedure of bar-code printing in smartforms.....guide me please. Thanks, Regards, Vishal Bhagwat.