Temporarily disabling a button while the JSX script runs

General Discussion of Scripting for Flex, Flash & CS SDK

Moderators: Tom, Kukurykus

Jeremy Knudsen

Temporarily disabling a button while the JSX script runs

Post by Jeremy Knudsen »

Hi all,

I have not been able to figure this one... Essentially, I want to disallow a user from pressing buttons while a script is running.

For instance, I have a task based panel with some buttons. Clicking on a button calls a JSX function. While the JSX script is running, I want to disallow the user from pressing some of the button until the script is complete (disable them). Once the script is done, then I want to re-enable the button(s) so that the user can click them again.

Hopefully, that makes sense.

Thanks in advance for any help you can provide!
Jeremy

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

Jeremy Knudsen

Temporarily disabling a button while the JSX script runs

Post by Jeremy Knudsen »

I found this, but this is for "Application" not "csxsWindowedApplication" which is what I am using for the Photoshop Extension that I am building:
http://blog.flexexamples.com/2008/02/20 ... plication/

Does anyone know how I could enable the above for csxsWindowedApplication?

Thanks in advance for any help!
Jeremy