Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
are you using a button component?
Copy link to clipboard
Copied
Yes thats right. I should add that I can press the button again (and the code is re run)
Copy link to clipboard
Copied
can you dispatch a button up event from your jsfl?
Copy link to clipboard
Copied
I can't do that via JSFL, but I could do it through ActionScript, but AS don't know when the JSFL function is finished.
Copy link to clipboard
Copied
then, do you have to use a component?
Copy link to clipboard
Copied
What's the alternative?
Copy link to clipboard
Copied
a button and a movieclip
Copy link to clipboard
Copied
Cheers, will give that a try.
Copy link to clipboard
Copied
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
Find more inspiration, events, and resources on the new Adobe Community
Explore Now