Using JSFL to determine your current Flex SDK path in Flash CS4

by Peter deHaan on November 24, 2008

in Flex, JSFL

The following example shows how you can use the fl.flexSDKPath JSFL variable to determine your Flex SDK path.

Full code after the jump.

  1. Select File > New from the main menu and select Flash JavaScript File from the New Document dialog box.
  2. Type the following code into the script editor window:
    fl.trace(fl.flexSDKPath);
    
  3. Select File > Save As from the main menu and save the .JSFL file to your desktop (or somewhere easy to find).
  4. 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.
  5. 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 }

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Previous post:

Next post: