Skip to main content
anthonyl89052030
Inspiring
Feb 24, 2025 2:26 PM UTC
Question

JSFL Button getting stuck in pressed state

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!

    9 replies

    JoãoCésar17023019
    Community Expert
    Community Expert
    Feb 24, 2025 3:07 PM UTC

    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

    Translate
    kglad
    Community Expert
    Community Expert
    Feb 24, 2025 2:31 PM UTC

    are you using a button component?

    Translate
    anthonyl89052030
    Inspiring
    Feb 24, 2025 2:33 PM UTC

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

    Translate
    kglad
    Community Expert
    Community Expert
    Feb 24, 2025 2:35 PM UTC

    can you dispatch a button up event from your jsfl?

    Translate