How can we export a selection from Flash Professional as .FXG using JSFL? It appears that this is not possible... just yet! I have added this as a feature request within the Adobe Labs site for Flash Professional. Someone at Adobe suggested that I also explore the forums, so here we are. If you would also like to have this feature added, please let Adobe know by promoting the idea.
Our use case is this: we have a large Flash file with a library of over one thousand skins and assets that were built in Flash with Adobe's Flex Skins Templates. These stateful, graphical skins were used within a custom theme by several Flex 3 projects. Our ultimate goal is to bring these through Catalyst, maintaining their vectors, and use them to create Spark skins.
We've got a JSFL that can export each linked library asset, as well as any frame-labeled 'state' within these clips. However, currently we are using exportPNG, which is not ideal as it flattens our vector art into raster images. We are about to try the exportSWF option, and see what Flash Catalyst does with this. Our early attemps with importing swf's haven't been too amazing.
I'm starting to imagine some cross-product scripting in which we export symbols at a state-by-state level as .swf from Flash, then rebuild these onto layers in Illustrator, and THEN import these into Catalyst...yikes!
Anyone have a better solution?
Follow-up:
Out of pure wishful thinking I decided I would just see what happened if I pretended 'exportFXG' was already a part of JSFL. Based on the signature of 'exportPNG', i tried the following lines:
var success = fl.getDocumentDOM().exportFXG("file:///C:/mySymbol.fxg");
fl.trace("success:"+success); // output: success:true
It worked! Fantastic! I'm not sure if exportFXG is considered still in "beta" and therefore intentionally excluded from the docs, or if it was just an oversight. But at least it gives us something to experiment with.
North America
Europe, Middle East and Africa
Asia Pacific
Copyright © 2012 Adobe Systems Incorporated. All rights reserved.
Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy (updated 07-14-2009).