LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-01-2006, 01:55 AM
DenkouNova's Avatar
DenkouNova DenkouNova is offline
Registered User
 
Join Date: Mar 2006
Location: Laval, Quebec, Canada
Posts: 21
Rep Power: 0
DenkouNova is on a distinguished road
Want to disable a button for double-click

I've got this little program here. It's possible to change its language with a button click, changing several texts, component labels, changing a few data grids' data provider...

Which takes about 1.5 second overall. What I want to do is make sure users can't click repeatedly on language switch button, and thus freeze the program for 10 seconds or so. I've fooled around with stuff, disabling the button as I click to enable it again when it's finished, working with an "isProcessing" boolean, nothing works.

My animation totally freezes during processing, so that:

frame 1: click
frame 2: processing, takes 1.5 second (button is fisabled)
frame 3, after 1.5 second: finished (button is enabled)

I've tested a few ifs, and if the button is disabled, nothing happens when it is clicked. What I think happens upon double-click is this:

frame 1: click
frame 2: processing (1.5 sec) -- button is clicked for a second time, but since we're busy we'll take care of that in the next frame (button is disabled)
frame 3: finished, button is enabled, now button click event is taken
frame 4: processing again since the button has been pressed (1.5 sec)


...I don't really know what to do.

Any clues?
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
need help loading flv movie onto stage from button click james890 Flash 8 0 02-23-2008 05:25 PM
combine button double click with drag function dirk Actionscript 2.0 0 01-26-2006 04:18 PM
double click on button olocin Flash MX 0 06-09-2005 02:04 AM
Disable Enter button so it's set for my functions CitizenKane General Flash 0 03-10-2005 09:16 AM
Desperately need help playing random sounds on button click Bomu Newbies 0 10-04-2004 09:32 PM




All times are GMT. The time now is 05:18 PM.