A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Can't trigger button multiple times....odd.

  1. #1
    Senior Member
    Join Date
    Aug 2002
    Location
    Texas, USA, Earth
    Posts
    124

    Can't trigger button multiple times....odd.

    Ok, so I have this spiffy lil button. In the instance, I have a:

    on (release) {
    _root.someFunction();
    }

    I also tried on (press).

    Now, clicking the button works fine the first time - it calls the function. But, if I click the button a second time (w/o moving the cursor off the button), the function isnt called.

    Waiting even a minute between clicks doesnt change anything.

    However, if I move the cursor off the button/hit area, then move it back and click it again, it works fine. I can do this really fast and it triggers everytime so its not a timing/function return issue.

    So, what am I missing? This is a standard (non-dynamic) button with simple Up/Over/Down/Hit blocks.

    TIA!

    Ahhhk!

  2. #2
    Sockpuppet
    Join Date
    Mar 2005
    Location
    Who cares?
    Posts
    177
    What's in the function?

    A trace works on every press (or release) for me?

  3. #3
    Senior Member
    Join Date
    Aug 2002
    Location
    Texas, USA, Earth
    Posts
    124
    The function is just some variable manipulation and makes no reference to the button whatsoever.

    Putting a trace in the "on (press)" before the function call also only shows the trace the first time - unless I move off the button then back.

    This is obviously some kind of wierd glitch. Been doing Flash buttons for many years now and have never run into this :/

    Ahhhk!

  4. #4
    Senior Member
    Join Date
    Aug 2002
    Location
    Texas, USA, Earth
    Posts
    124
    I lied. <bad, me...BAD!>

    I fotgot the function DOES make reference to the button. At the first line of the function I disable the button. At the last line, I re-enable the button.

    On this A64 3400 box, the function execution time is instantanious - so, again, its not a matter of the function not finishing.

    I just dont understand how/why there has to be a "roll out" before a press/release can be triggered again.

    The button does change to its over and down states....just doesnt fire the press/release event.

    Ahhhk!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center