Adobe Labs
 
 

cap bottom

Fireworks CS4 Export to FXG Script

Adobe® Flash® Catalyst® can import FXG graphics created in Adobe Fireworks® CS4 using the new FXG file format. FXG is an XML-based graphics file format that represents graphics in a way that follows the Flash Player 10 rendering model.

This new Export to FXG JavaScript file replaces the one that shipped with Fireworks CS4 to improve the design fidelity of graphics imported into Flash Catalyst. Install the script using the instructions below. To make use of this script, in Fireworks CS4, open the file you wish to export, then choose Commands > Export FXG, and provide a new filename. In Flash Catalyst, you can import this .fxg file at the welcome screen or by choosing File > Import Artwork..

Installation

  1. Verify that you are using Fireworks CS4 10.0.3.011
  2. Download and Unzip the Export to FXG script
  3. Move the file “Export to FXG.jsf” to the following directory, replacing the old one with the same name:
    • Win XP: <Installation Drive>:\Program Files\Adobe\Adobe Fireworks CS4\Configuration\Commands
    • Win Vista 64: <Installation Drive>:\Program Files(x86)\Configuration\Commands
    • Mac OS X: <HD>/Applications/Adobe Fireworks CS4/Configuration/Commands

Share Feedback

Please post feedback about this script to the Flash Catalyst forum where a member of the Flash Catalyst or Fireworks teams can address it.

Extending the Script

The Export to FXG.jsf file is extensible by developers. If you have extended this file, we would love to hear what you have done. Documentation on how to extend Fireworks is available on help.adobe.com with additional information available on the Adobe Developer Connection.

Release Notes

Enhancements

  1. lineHeight for Text element was always exported as %, now its exported based on value selected in Fireworks ( % or exact)
  2. Tab indention was not correct for elements which were exported as bitmaps
  3. Exporting invisible bitmap elements caused script error
  4. Updated Rectangle primitive object to export transformation matrix and roundness value.
  5. Modified / Added Application Private Data for all elements (d:userLabel , d:type etc)
  6. Exporting effects applied on Groups and Symbols

Issues Fixed

  1. Error is thrown when FXG with Stroke for text is imported in Flash Catalyst
  2. Objects with different opacity are not imported properly to Flash Catalyst
  3. Export to FXG: TypeError: currRun.size has no properties
  4. Flash Catalyst: Unsupported elements exported as bitmaps are incorrectly positioned
  5. Text shift is seen when imported to Flash Catalyst
  6. Flash Catalyst: Importing of sublayers with different visibility is not proper
  7. Flash Catalyst: Importing a stack of symbols with different visibility is not proper
  8. FXG Export: Exporting text with numeric throws error
  9. FXG Export: Visible symbol elements are not exported
  10. Exporting test file to FXG shows a negative number
  11. Flash Catalyst: One of the rectangle in the bug file shifts when imported to FC
  12. Flash Catalyst: Rectangle roundness shows different value when imported in FC
  13. Flash Catalyst: Importing test file with text runs having a mix of attributes throws error while parsing
  14. Command doesn’t Remember the last export directory
  15. Warning is not thrown before overwriting FXG file
  16. Remove copyright notification in the FXG script
  17. Exporting a selection to FXG
  18. Text gets truncated when exported to FXG
  19. Unable to import the file to FC
  20. Export to FXG should throw warning while exporting files with missing fonts
  21. FXG export creates invalid tag names starting with a number
  22. Export to FXG encounters duplicate PNG files

Known Issues

  1. Rectangle with gradient applied is not exported correctly.
  2. Masks applied on Bitmaps appear stretched in FC
  3. Masks with unsupported properties are still exported as normal elements and not bitmaps
  4. Invisible bitmap element inside the group is not exported but the tag is exported.

More Information About FXG

The FXG Specification gives some good background info on FXG and goes into great detail about how it can be used.

Learn more on opensource.adobe.com

Flash Catalyst

All Technologies

Technology Groups

Showcase Gallery