Link to home
Start Free TrialLog in
Avatar of paulmmalone
paulmmalone

asked on

Flash button not responding unless you move the mouse again.

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
Avatar of blue-genie
blue-genie
Flag of South Africa image

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

ASKER

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.  
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.

blu.
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!
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
};
broadcasterObject.addListener(listenerObject);

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.
http://www.southwindstechnologies.com/litchfieldstyle/default.htm.

Thanks again for the help.



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.
ASKER CERTIFIED SOLUTION
Avatar of blue-genie
blue-genie
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial