The following example shows how you can use the fl.flexSDKPath JSFL variable to determine your Flex SDK path.
Full code after the jump.
- Select File > New from the main menu and select Flash JavaScript File from the New Document dialog box.
- Type the following code into the script editor window:
fl.trace(fl.flexSDKPath);
- Select File > Save As from the main menu and save the .JSFL file to your desktop (or somewhere easy to find).
- Create a new Flash ActionScript 3.0 document by selecting File > New from the main menu and selecting Flash File (ActionScript 3.0) from the New Document dialog box.
- Select Commands > Run Command from the main menu to open and run a custom JSFL command. Browse to the location of the saved .JSFL file from step 3 and click the Open button. The Flex SDK location should appear in the Output panel.
{ 0 comments… add one now }