JSFL Documentation

March 5th, 2008 by Steven Sacks

Finding the JSFL documentation on Adobe's site is not exactly straightforward. It's nestled deep in the support area. The best way to find it is using an advanced Google search for .pdf files with the words "extending flash cs3".

To save you that step, I've decided to post the URL to the PDF here.

http://livedocs.adobe.com/flash/9.0/main/flash_cs3_extending.pdf

Right-click and Save As if you want to download the pdf to your desktop.

Posted in JSFL

10 Responses

  1. corban baxter

    you rock! I was looking for some of this the other day too. it wasn't fun to find.

  2. Jorge Rego

    This is sweeeet…. who could have "guessed" :) You could!

    Thanks, now i play

  3. Ravinder Kumar

    This is great and very helpful. I saved the sits link for further use. Thanks a lot…..

  4. Neisen

    I also found this:
    http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00003909.html

    Hope it helps :)

  5. Kevin Henke

    What a big help. Instead of an advanced Google search for .pdf and "extending flash cs3" (which I never would have thought of), all I had to do was look for "jsfl" and I get the motherload of all resources! I will definitely be sharing this with everyone at the office. Thank you much.

  6. Dan M

    Hi, I guess think should be my first post here, Steve. This pdf is certainly great help! I have starting on my journey on JSFL, your JSFL topics has help me a lot! Thanks!

    Currently, I am working on simple jsfl scripts to aid designers in their working process in Flash IDE, a simple example is changing all the quality of images in library to certain value. Do you have any reference sites where such scripts are already written and can be used?

    Cheers! Thanks again!
    Dan
    CreativeSauce

  7. Steven Sacks

    Changing the quality of images in the library is a single JSFL command, bitmapItem.quality. You get bitmapItem by iterating through the library, which is a property of fl.getDocumentDOM(). Check out the PDF, and make sure you open the history panel in Flash and you'll be able to see the exact JSFL used to accomplish the various actions as you do them. :)

  8. Karen

    I need a way to batch a bunch of FLVs to swf video. Currently, I have an FLA file I use as a starter file. (It's set up to my specs, with logo watermark on an upper layer and the FLV component is using my custom control bar.)

    I click in the component inspector "content path" to select the FLV I want to use. I save the FLA as the same name as the FLV. Then I publish the FLA file to create the SWF. Then I go to the component inspector again, click the "content path" item to pick a new FLV, then save the FLA with the same name as the FLV. Then I hit shift F12 to publish. It's very monotonous.

    I feel there's a way to use JSFL to do these motions, but am not sure how! Any ideas? I have a folder of hundreds of FLVs that I'd like the script to go through, insert the FLV filename, save the FLA, publish to SWF, then go on to the next FLV in the folder.

    Any ideas??
    Thanks.

  9. Steven Sacks

    Unfortunately, you cannot use JSFL to automate the importing of FLV files into Flash as it requires a series of dialog interactions. However, everything after that I believe can be automated. So, you can write a script that handles saving the FLA as the same name as the FLV (most likely by looking in the library for the name of the FLV file).

    I'm not sure that you can modify the content path directly on the component, however, you could write some Actionscript to do it on the timeline, if that would work for you.

  10. Jos Koomen

    Steven! Wonderfull!!
    Keep up the good work with everything!

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

About Steven Sacks

I am a professional Flash developer with over 13 years of programming experience. I have consulted for high-profile agencies and companies in San Francisco, Los Angeles, Atlanta and New York, and developed numerous award-winning websites and rich internet applications for clients including Adobe, Fox Sports, FX Networks, Anheuser-Busch, GE, DirecTV, ESPN, The Weather Channel, Home Depot, and Coca-Cola.

I am the author of the open-source Gaia Framework for Adobe Flash, which dramatically reduces development time and makes developing Flash sites much easier.