Top-Level "Prompt" Component
I have successfully put a prompt in my JSFL for a Flash tool that gets a screen cap from a directory.
The prompt asks the user to enter a name for the screen cap. Then the script runs through another 47 lines of JSFL code.
I don't know how to handle the "Cancel" button on the prompt. As it is, clicking Cancel dumps an error message in the Output panel. What code do I need to simply stop, or get out of the script when Cancel is picked?
Thanks,
Chris
|