Skip to main content
anthonyl89052030
Inspiring
February 24, 2025
Question

JSFL Button getting stuck in pressed state

  • February 24, 2025
  • 2 replies
  • 814 views

Hi there, I'm building some extensions for Animate via ActionScript calling JSFL functions. I've built quite a few features now, but for the first time encountering a strange issue - when a button is pressed to run a particular JSFL function, it's remaining pressed even after the code has finished executing.

 

I'm afraid I can't share the code, but just so it's clear you can see the buttons. I'm assuming, for whatever reason, Actionscript is under the impression that the code is still executing? If anyone has come across this before would love to know how you resolved it!

 

Thanks for any help!

    2 replies

    JoãoCésar17023019
    Community Expert
    February 24, 2025

    Hi.

     

    When are you firing the JSFL call? On click, mouse up, mouse down...?

    If you're using mouse down, maybe you should consider using click or mouse up, to make sure AS3 will be able to update the UI as expected.

     

    Regards,

    JC

    kglad
    Community Expert
    February 24, 2025

    are you using a button component?

    anthonyl89052030
    Inspiring
    February 24, 2025

    Yes thats right. I should add that I can press the button again (and the code is re run)

    kglad
    Community Expert
    February 24, 2025

    can you dispatch a button up event from your jsfl?