Renaming the Default Output SWF with Flex Builder 3

If you want to change the default filename of the output SWF that Flex Builder generates, you can use the -output compiler option [Project Properties-> ActionScript Compiler -> Additional compiler arguments]. Note that relative paths don’t work, so you need to enter a full absolute path to the SWF:

-output=C:\dev\project\bin-debug\myname.swf

See the full list of Flex Builder 3 additional compiler options here.

4 Responses

  1. stephen says:

    hi there, very useful info here. unfortunately, im using Adobe Flex Builder 3 and there is only Flex Compiler options. When trying to use the -output argument it says Option -output cannot be used for compiling in Flex Builder. Any ideas?

  2. John Pencola says:

    Yes, it will still work… which is what I think the OP was referring to anyway. All you need to do is supply the “additional compiler arguments” field under the Flex Compiler with either “-output” or “-o” and ignore the error message that is triggered. Press “Apply” and “OK”.

  3. felix says:

    Note if your file path has spaces in it, you need to wrap it in double quotes.

    If you are on a mac get a file’s path by dragging it into the terminal window. You will need to remove the backslash in front of any spaces in the path generated by terminal. So on the mac the string should look something like:

    -o “/Volumes/Macintosh HD 2/Development/myproject/myname.swf”

  4. Reading: Renaming the Default Output SWF with Flex Builder 3 — Airtight Interactive: http://t.co/KrRnISrS

Leave a Reply

Your email address will not be published. Required fields are marked *