Flash button not responding unless you move the mouse again.

Posted on 2007-08-08
Last Modified: 2010-04-03
Flash Action Script button.

I have a button.  When you click it work like a champ.  But if you don't move the mouse at all and click it again it will not register.  It is like the flash movie will not register unless the mouse moves.

So I guess I have to reset the button when it is clicked or something.  Please help I am sure this is an easy issue but it is very frustrating.  Thank you for the help
Question by:paulmmalone
    LVL 39

    Expert Comment

    are you using a normal button with up over states or are you using listeners.

    Author Comment

    Thank you for responding Sage.  You seem to always answer my questions!
    I am using a normal button with over states and no listeners.   But I would definetly like to learn how to use listeners.  
    LVL 39

    Expert Comment

    listeners are cool but if you're using a simple button that clicks and does 1 thing such as goto a frame, then it could be overkill.
    if you look in the flash help file (F1) they have examples there of how to use listeners and it's really not difficult.
    i tried recreating your problem and I couldn't.
    can you upload your file somewhere so we can have a look.

    LVL 11

    Expert Comment

    Paul,  I have the same problem in one of my apps.   I tried for about a month to find a solution that resolved the issue and ended up chalking it up as a bug in flash.  I just made my users aware of it and they move the mouse a little before clicking on the button again.  It's extremely annoying since it's a set of navigation buttons that lets them jump from one place to another and it's the "next" button that has the issue.  I had even posted this question on EE and ended up requesting a refund since I didn't get an answer after 2 months.  I just wanted to let you know that you're not alone.  I hope someone can figure this one out for you!

    Author Comment

    Thanks Blu,
    I just realized your rank in "Sage".  That isn't your user name.  That is funny stuff.  I promise I am not a total idiot.  I took a look at the listener help in flash.  And the code makes sense.

    Here is what they have:
    var listenerObject:Object = new Object();
    listenerObject.eventName = function(eventObj:Object) {
        // Your code here

    What would I use for the  " //your code" here for refreshing the state of the button?

    Here is an example the "Forward" and "backward" buttons are the ones giving me the problems.

    Thanks again for the help.


    Author Comment

    I found a possible solution.  Create an identical button and actions cript when you click one it makes itself invisible and the other one visable with this code!
    So this is the code I put on my button called "btnForward"

    on (release) {
          _root.btnForward._visible = false
          _root.btnForward2._visible = true

    So it is really two buttons swapping out but to the end user it only looks like one image.
    LVL 39

    Accepted Solution

    hey paul.

    What would I use for the  " //your code" here for refreshing the state of the button?
    that's where you put your code for what happens when they click the button
    i can't recreate the problem without moving my mouse and just clicking ...
    it's ok if you found a solution though it's not tidy, but sometimes we just have to go the dirty route, if possible can you upload your fla or at least stick your buttons into an fla and upload those.

    blu. (or sage )

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Suggested Solutions

    Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
    This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
    The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
    This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now